doc: do not use @acronym
[gnulib.git] / ChangeLog
1 2012-08-24  Paul Eggert  <eggert@cs.ucla.edu>
2
3         doc: do not use @acronym
4         * doc/inet_ntoa.texi (inet_ntoa):
5         * doc/parse-datetime.texi (Seconds since the Epoch)
6         (Specifying time zone rules):
7         * doc/posix-functions/inet_ntoa.texi (inet_ntoa):
8         Don't use @acronym.  Problem reported by John Darlington in
9         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00124.html>.
10
11 2012-08-23  Paul Eggert  <eggert@cs.ucla.edu>
12
13         stdnoreturn: port to newer GCCs
14         * m4/stdnoreturn.m4 (gl_STDNORETURN_H): Avoid problems with
15         bleeding-edge GCC that complains about 'int _Noreturn foo (void);'.
16         Problem reported by Jim Meyering in
17         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00121.html>.
18         Also, rename the 'test' function to a void a clash with the
19         already-supplied 'main' function; this fixes a bug that incorrectly
20         rejected GCC 4.7.1's <stdnoreturn.h>.
21         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h):
22         Document GCC problem.
23
24 2012-08-22  Reuben Thomas  <rrt@sc3d.org>
25
26         pipe-filter: fix comment typo
27         * lib/pipe-filter.h: Mention correct function.
28
29 2012-08-22  Paul Eggert  <eggert@cs.ucla.edu>
30
31         execinfo: new module
32         This is for Emacs.  Currently, it provides a no-effect stub
33         on all platforms where it does not already work.
34         It already works on glibc-based systems, and on Solaris 11.
35         * lib/execinfo.c, lib/execinfo.in.h, m4/execinfo.m4, modules/execinfo:
36         New files.
37         * doc/glibc-headers/execinfo.texi (execinfo.h):
38         * MODULES.html.sh (Misc): Document it.
39
40 2012-08-20  Paul Eggert  <eggert@cs.ucla.edu>
41
42         extern-inline: support old GCC 'inline'
43         * m4/extern-inline.m4 (gl_EXTERN_INLINE): Use pre-C99 GCC 'inline'
44         if available.  This applies to GCC versions 2.7 through 4.2, or
45         when newer GCC is using -fgnu89-inline.  The goal is to address
46         some of the performance issues mentioned by Bruno Haible in
47         <http://lists.gnu.org/archive/html/bug-gnulib/2012-08/msg00097.html>.
48
49 2012-08-20  Eric Blake  <eblake@redhat.com>
50
51         maint.mk: avoid redundant file name in message
52         * top/maint.mk (sc_prohibit_strcmp, sc_unmarked_diagnostics)
53         (sc_prohibit_defined_have_decl_tests, sc_const_long_option)
54         (sc_makefile_path_separator_check): Remove bogus $(ME).
55
56 2012-08-20  Mike Frysinger <vapier@gentoo.org>
57
58         timer-time: fix link order when static linking on glibc
59         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
60         _after_ -lrt so that it's significant.
61
62 2012-08-19  Paul Eggert  <eggert@cs.ucla.edu>
63
64         timespec: omit unnecessary AC_C_INLINE
65         * m4/timespec.m4 (gl_TIMESPEC): Do not require AC_C_INLINE.
66
67         stat-time: omit unnecessary AC_C_INLINE
68         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
69         Do not require AC_C_INLINE.
70
71         ignore-value: omit unnecessary AC_C_INLINE
72         * modules/ignore-value (configure.ac): Do not require AC_C_INLINE.
73
74         sys_select: avoid 'static inline'
75         * lib/sys_select.in.h (rpl_fd_isset): Now static, not static inline.
76
77         mktime: avoid 'static inline'
78         * lib/mktime.c (leapyear, ydhms_diff): Now static, not static inline.
79         * m4/mktime.m4 (gl_PREREQ_MKTIME): Do not require AC_C_INLINE.
80
81 2012-08-19  Bruno Haible  <bruno@clisp.org>
82
83         gnulib-tool: Improve coding style.
84         * gnulib-tool (func_emit_tests_Makefile_am): Set perhapsLT, like in
85         func_emit_lib_Makefile_am.
86         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
87
88 2012-08-19  Bruno Haible  <bruno@clisp.org>
89
90         gnulib-tool: Fix indentation.
91         * gnulib-tool (func_import): Fix indentation.
92
93 2012-08-19  Bruno Haible  <bruno@clisp.org>
94
95         gnulib-tool: Remove old file names from .cvsignore, .gitignore.
96         * gnulib-tool (func_update_ignorelist): Don't use 'join -v 1' command
97         on the list of removed files.
98
99 2012-08-17  Paul Eggert  <eggert@cs.ucla.edu>
100
101         test-parse-datetime: avoid glibc leap-second glitch
102         * tests/test-parse-datetime.c (main): Set TZ to US Eastern time
103         with the 2012 rules.  Problem reported by Bruce Dubbs in
104         <http://bugs.gnu.org/12206>.
105
106 2012-08-14  Bruno Haible  <bruno@clisp.org>
107
108         gnulib-tool: Fix indentation of generated gnulib-comp.m4 file.
109         * gnulib-tool (func_emit_autoconf_snippet): Initialize indentation
110         from argument.
111         Reported and fix suggested by Dmitriy Selyutin <ghostman.sd@gmail.com>.
112
113 2012-08-14  Eric Blake  <eblake@redhat.com>
114
115         ldexp: relax license
116         * modules/ldexp (License): Trivial relax, since the module only
117         provides a permissively licensed m4 file.
118
119 2012-08-13  Bruno Haible  <bruno@clisp.org>
120
121         gnulib-tool: Fix persistence of --witness-c-macro option.
122         * gnulib-tool (func_import): Fix typo in emit of gl_WITNESS_C_MACRO.
123         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
124
125 2012-08-11  Eric Blake  <eblake@redhat.com>
126
127         count-leading-zeros: use a lookup table on non-gcc compilers
128         * lib/count-leading-zeros.h (count_leading_zeros_32): Use an
129         alternate implementation, suggested by Jim Meyering.
130
131 2012-08-10  Eric Blake  <eblake@redhat.com>
132
133         count-leading-zeros: new module
134         * modules/count-leading-zeros: New module.
135         * m4/count-leading-zeros.m4: New file.
136         * lib/count-leading-zeros.h: Likewise.
137         * modules/count-leading-zeros-tests: New test.
138         * tests/test-count-leading-zeros.c: New file.
139         * MODULES.html.sh (Integer arithmetic functions): Document it.
140
141 2012-08-07  Simon Josefsson  <simon@josefsson.org>
142             Jim Meyering  <meyering@redhat.com>
143
144         maintainer-makefile: Fix syntax error with dash.
145         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): Quote arguments.
146         (sc_vulnerable_makefile_CVE-2012-3386): Likewise.
147
148 2012-08-05  Jim Meyering  <meyering@redhat.com>
149
150         extern-inline: also ignore -Wmissing-declarations
151         * m4/extern-inline.m4: Also ignore -Wmissing-declarations,
152         required with gcc-4.8.0-to-be.
153
154         maint.mk: sc_prohibit_magic_number_exit: avoid new false positives
155         * top/maint.mk (sc_prohibit_magic_number_exit): Also filter out matches
156         for /error ?([^,]*)/.  This avoids false-positives for strings like
157         "Unknown error (252)", introduced via commit v0.0-7538-g92875a6.
158
159 2012-08-02  Stefano Lattarini  <stefano.lattarini@gmail.com>
160
161         gnumakefile: better interaction with Automake-NG
162         * modules/gnumakefile [Makefile.am]: The makefiles generated by
163         Automake-NG always contain a definition of VPATH, even in non-VPATH
164         builds (its value being simply '.' in that case).  So, in the
165         'clean-GNUmakefile' rule, to determine whether running under a
166         VPATH setup, compare '$(srcdir)' to '.' rather than checking whether
167         '$(VPATH)' expands to the empty string.
168
169 2012-08-02  Carlo de Falco  <carlo.defalco@polimi.it>  (tiny change)
170
171         base64: Use extern C scope in header file, for C++.
172         * lib/base64.h: Add C++ namespace protection.
173
174 2012-08-02  Paul Eggert  <eggert@cs.ucla.edu>
175
176         stat-time, timespec, u64: support naive out-of-dir builds
177         * lib/stat-time.c, lib/timespec.c, lib/u64.c:
178         Use '#include "foo.h"', not '#include <foo.h>', when including
179         one's own interface.  This works better when configuring with
180         out-of-directory builds, since packages need not add an
181         otherwise-unnecessary -I$(topdir_src)/lib to DEFAULT_INCLUDES.
182
183 2012-08-01  Paul Eggert  <eggert@cs.ucla.edu>
184
185         utimens: use extern-inline
186         * lib/utimens.c (_GL_UTIMENS_INLINE): Define when including utimens.h.
187         * lib/utimens.h: Add copyright notice, since this is now large enough
188         to copyright.  Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
189         (_GL_UTIMENS_INLINE): New macro.  Use it instead of 'static inline'.
190         * modules/utimens (Depends-on): Add extern-inline.
191
192         u64: use extern-inline
193         * lib/u64.c: New file.
194         * lib/u64.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
195         (_GL_U64_INLINE): New macro.  Use it instead of 'static inline'.
196         * modules/u64 (Files): Add lib/u64.c.
197         (Depends-on): Add extern-inline.
198         (configure.ac): No need to require AC_C_INLINE, since extern-inline
199         does that now.
200         (lib_SOURCES): Add u64.c.
201
202         timespec: use extern-inline
203         * lib/timespec.c: New file.
204         * lib/timespec.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
205         (_GL_TIMESPEC_INLINE): New macro.  Use it instead of 'static inline'.
206         * modules/timespec (Files): Add lib/timespec.c.
207         (Depends-on): Add extern-inline.
208         (lib_SOURCES): Add timespec.c.
209
210         stat-time: use extern-inline
211         * lib/stat-time.c: New file.
212         * lib/stat-time.h: Use _GL_INLINE_HEADER_BEGIN, _GL_INLINE_HEADER_END.
213         (_GL_STAT_TIME_INLINE): New macro.  Use it instead of 'static inline'.
214         * modules/stat-time (Files): Add lib/stat-time.c.
215         (Depends-on): Add extern-inline.
216         (lib_SOURCES): Add stat-time.c.
217
218         extern-inline: new module
219         * modules/extern-inline, m4/extern-inline.m4: New files.
220         This is for better support of 'extern inline' a la ISO C99,
221         with a portable alternative on compilers that do not support
222         C99-style 'extern inline'.  Using 'extern inline' shrinks the size
223         of the Emacs executable, when compiled with debugging disabled,
224         which is a typical way that Emacs is built while developing.
225
226 2012-08-01  Akim Demaille  <akim@lrde.epita.fr>
227
228         maint.mk: a "release-commit" wrapper to do-release-commit-and-tag
229         * build-aux/do-release-commit-and-tag: Move variable definitions
230         together.
231         ($branch): Instead of defaulting to "master", default to the current
232         branch (as gnu-web-doc-update does).
233         (help): Display the current values of the option arguments.
234         * top/maint.mk (release-commit): New.
235         * top/README-release: Simplify the corresponding step.
236
237 2012-07-30  Eric Blake  <eblake@redhat.com>
238
239         passfd: fix comment on recvfd
240         * lib/passfd.c (recvfd): Fix comment.
241         Reported by Jann Horn <jannhorn@googlemail.com>.
242
243 2012-07-30  Jim Meyering  <meyering@redhat.com>
244
245         maint.mk: avoid a sub-shell
246         * top/maint.mk (release-prep): Remove unneeded sub-shell.
247
248 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
249
250         maint.mk: use silent-rules support from Automake
251         * top/maint.mk (news-check, vc-diff-check, announcement)
252         (no-submodule-changes, alpha beta stable, release-prep)
253         (web-manual, update-copyright): Use $(AM_V_GEN) and $(AM_V_at).
254
255 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
256
257         maint.mk: provide a web-manual-update target
258         * top/maint.mk: here.
259         * top/README-release: Use it to simplify the web manual update step.
260
261 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
262
263         README-release: shorten the circuit to post a news
264         * top/README-release: Point directly to the news submission form.
265
266 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
267
268         gnu-web-doc-update: fix --help
269         * build-aux/gnu-web-doc-update: The information "top level" was written
270         twice.
271
272 2012-07-30  Akim Demaille  <akim@lrde.epita.fr>
273
274         maint.mk: absolute VPATH issue
275         * top/maint.mk (release-prep): Help Git find .git/.
276         From Jim Meyering.
277
278 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
279
280         gitlog-to-changelog: fix previous change
281         * build-aux/gitlog-to-changelog: Fix condition.
282         Add missing ";".
283
284 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
285
286         gitlog-to-changelog: don't expect .git to be in $srcdir
287         Reported by Bruno Haible.
288         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00265.html>
289         * build-aux/gitlog-to-changelog (&git_dir_option): New.
290         Use it.
291
292 2012-07-29  Akim Demaille  <akim@lrde.epita.fr>
293
294         maint.mk: absolute VPATH build fix
295         * top/maint.mk (gpg_key_ID): Help git find .git when, for instance,
296         $(srcdir) is not a parent of $(builddir).
297
298 2012-07-28  John Darrington  <john@darrington.wattle.id.au>
299
300         clean-temp: Fix memory leak.
301         * lib/clean-temp.c (cleanup_temp_dir): Free also the 'subdirs' and
302         'files' members of tmpdir.
303
304 2012-07-27  Jim Meyering  <meyering@redhat.com>
305
306         maint.mk: new rule: refresh-gnulib-patches
307         I noticed that 8 of coreutils' 9 gl/**/*.diff files were stale.
308         Use this rule to refresh them.
309         * top/maint.mk (refresh-gnulib-patches): New rule.
310
311 2012-07-24  Bruno Haible  <bruno@clisp.org>
312
313         gnulib-tool: Fix handling of inctests variable.
314         * gnulib-tool: Canonicalize $inctests also in 'update' mode.
315         Reported by Nick Bowler <nbowler@elliptictech.com>.
316
317 2012-07-22  Bruno Haible  <bruno@clisp.org>
318
319         getpass: Assume AC_CHECK_DECLS_ONCE invocation, like in getpass.m4.
320         * lib/getpass.h: Assume HAVE_DECL_GETPASS is defined.
321         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
322         Remove exemption for getpass.h.
323         Suggested by Eric Blake.
324
325 2012-07-20  Eric Blake  <eblake@redhat.com>
326
327         verify: document conflict with -Wnested-externs
328         * lib/verify.h: Give hint about usage when gcc warnings are enabled.
329
330         maint.mk: forbid exit(-1)
331         * top/maint.mk (sc_prohibit_magic_number_exit): Detect negatives.
332
333 2012-07-20  Paul Eggert  <eggert@cs.ucla.edu>
334
335         fsusage: port back to Solaris
336         * lib/fsusage.c (get_fs_usage): Fix busted logic causing compile-time
337         error (fsd not declared) on Solaris 10.  Reported privately by
338         Andrew Borodin.
339
340 2012-07-19  Akim Demaille  <akim@lrde.epita.fr>
341
342         gnu-web-doc-update: fix error messages
343         * build-aux/gnu-web-doc-update: Don't pass $ME to die.
344
345         gnu-web-doc-update: check the requirements.
346         * build-aux/gnu-web-doc-update (find_tool): Import from bootstrap.
347         ($CVS, $CVSU, $GIT, $RSYNC, $XARGS): New.
348         * build-aux/bootstrap (find_tool): Comment change.
349
350 2012-07-17  Akim Demaille  <akim@lrde.epita.fr>
351
352         maint.mk: minor simplication.
353         * top/maint.mk (_sc_excl): Use $(or...) instead of $(if...)
354         for default values.
355
356 2012-07-15  Akim Demaille  <akim@lrde.epita.fr>
357
358         gitlog-to-changelog: VPATH build issues
359         If builddir is not a subdirectory of srcdir, running git from it will
360         fail.
361         * build-aux/gitlog-to-changelog (--srcdir): New option.
362
363 2012-07-15  Bruno Haible  <bruno@clisp.org>
364
365         fpending: Assume AC_CHECK_DECLS_ONCE invocation, like in fpending.m4.
366         * lib/fpending.h: Assume HAVE_DECL___FPENDING is defined.
367         * cfg.mk (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests)
368         Remove exemption for fpending.h.
369         Suggested by Eric Blake.
370
371 2012-07-15  Paul Eggert  <eggert@cs.ucla.edu>
372
373         pthread_sigmask: fix bug on FreeBSD 9
374         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_INEFFECTIVE]:
375         Include string.h.
376         (pthread_sigmask) [PTHREAD_SIGMASK_INEFFECTIVE]:
377         When calling pthread_sigmask (1729, NEW, OLD), specify non-null NEW;
378         this avoids a bug on FreeBSD 9, where pthread_sigmask is effective
379         but pthread_sigmask (1729, NULL, NULL) returns zero.
380         See <http://bugs.gnu.org/11884>.
381         Avoid the need to call pthread_sigmask (1729, ...) in most cases,
382         by inspecting whether the main call changed the old mask.
383
384 2012-07-15  Reuben Thomas  <rrt@sc3d.org>
385
386         README-release: make it more legible
387         * top/README-release: Improve typography slightly.
388
389 2012-07-15  Jim Meyering  <meyering@redhat.com>
390
391         maint: require that each sc_... command start with "@"
392         * Makefile (sc_prohibit_sc_omitted_at): New rule so that
393         "make sc_maint" helps us avoid this nit.
394
395 2012-07-15  Jim Meyering  <meyering@redhat.com>
396
397         maint.mk: add leading "@" to quiet new "make syntax-check" rule
398         * top/maint.mk (sc_prohibit_defined_have_decl_tests): Add "@".
399
400 2012-07-13  Eric Blake  <eblake@redhat.com>
401
402         maint.mk: new syntax check for HAVE_DECL checks
403         * top/maint.mk (sc_prohibit_defined_have_decl_tests): New rule.
404         * cfg.mk
405         (exclude_file_name_regexp--sc_prohibit_defined_have_decl_tests):
406         Exempt some false positives.
407         Based on a report by Karel Zak.
408
409         argp: make HAVE_DECL usage consistent
410         * lib/argp-parse.c (__argp_parse): Check contents of HAVE_DECL
411         macros, not whether they are defined.
412         * m4/argp.m4 (gl_ARGP): Always define HAVE_DECL_* macros, per
413         convention with other declaration checks.
414         Reported by Karel Zak, with suggestions from Paul Eggert.
415
416         stat-time: relax license to LGPLv2+
417         * modules/stat-time (License): Relax, with consent of all authors.
418
419         strndup: fix m4 usage error
420         * m4/strndup.m4 (gl_FUNC_STRNDUP): HAVE_DECL_STRNDUP is always
421         defined, to either 0 or 1.
422         Reported by Karel Zak.
423
424 2012-07-11  Jim Meyering  <meyering@redhat.com>
425
426         maint: enable the sc_avoid_if_before_free syntax-check rule
427         * cfg.mk (local-checks-to-skip): Enable sc_avoid_if_before_free.
428         (if_before_free_offenders_): Define.
429         (if_before_free_basename_re_): Define.
430         Exempt current files with useless if-before-free.
431
432 2012-07-11  Paul Eggert  <eggert@cs.ucla.edu>
433
434         gettext: do not assume '#define ... defined ...' behavior
435         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS):
436         Do not use '#define FOO ... defined BAR ...', as the C standard says
437         it's not portable to expect that this works after macro expansion.
438         Problem reported for gzip by Steven M. Schweda in
439         <http://lists.gnu.org/archive/html/bug-gzip/2012-07/msg00000.html>.
440
441 2012-07-10  Paul Eggert  <eggert@cs.ucla.edu>
442
443         getloadavg: clean out old Emacs and Autoconf cruft
444         See Glenn Morris in <http://bugs.gnu.org/11905>.
445         * lib/getloadavg.c: Include <config.h>, <stdbool.h> always.
446         Include <sys/param.h> if HAVE_SYS_PARAM_H, not if unix or __unix.
447         (LDAV_CVT): Remove no-longer-used LOAD_AVE_CVT hook.
448         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Check for <sys/param.h>.
449
450 2012-07-10  Akim Demaille  <akim@lrde.epita.fr>
451
452         bootstrap: let warn be like tests/init.sh's warn_
453         Reported by Jim Meyering.
454         * build-aux/bootstrap (warn): Remove, replaced by...
455         (warnf_, warn_): these.
456         Adjust callers.
457         Shorten messages that no longer fit in 80 columns.
458
459 2012-07-09  Bruno Haible  <bruno@clisp.org>
460
461         getopt: Simplify after Emacs changed.
462         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Inline gl_GETOPT_IFELSE.
463         (gl_GETOPT_IFELSE): Remove macro.
464
465 2012-07-09  Jim Meyering  <meyering@redhat.com>
466
467         maint.mk: add sc_vulnerable_makefile_CVE-2012-3386
468         * top/maint.mk (sc_vulnerable_makefile_CVE-2012-3386): New rule.
469
470         maint.mk: _sc_search_regexp, sc_vulnerable_makefile_CVE-2009-4029: fix
471         Bugs in both of those conspired to make the
472         sc_vulnerable_makefile_CVE-2009-4029 rule 99% useless.
473         _sc_search_regexp's handling of non-empty $in_files would filter
474         out any offending file names.  sc_vulnerable_makefile_CVE-2009-4029's
475         choice of in_files value meant there would be no match in most
476         projects, due to the presence of two or more Makefile.in files.
477         * top/maint.mk (_sc_search_regexp) [in_vc_files,in_files]: Clarify.
478         Fix a bug in how a non-empty $$in_files was processed:
479         (sc_vulnerable_makefile_CVE-2009-4029): Fix erroneous use of in_files:
480         in spite of the name, it's a regexp, not a list of file names.
481
482 2012-07-09  Paul Eggert  <eggert@cs.ucla.edu>
483
484         getloadavg, getopt: fix commentary re configure.in
485         Autoconf is deprecating the name 'configure.in', so change it to
486         to the new name 'configure.ac' in a couple of places.
487         * lib/getloadavg.c: configure.in -> configure.ac, in comment.
488         * m4/getopt.m4 (gl_GETOPT_IFELSE, gl_GETOPT_SUBSTITUTE_HEADER)
489         (gl_PREREQ_GETOPT): Remove obsolete commentary re Emacs configure.in.
490         Emacs has renamed it to configure.ac, and it no longer refers
491         to these macros anyway.
492
493         timespec: mark functions with const attributes
494         * lib/timespec.h (timespec_add, timespec_sub, dtotimespec):
495         Mark with _GL_ATTRIBUTE_CONST.
496
497 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
498
499         canonicalize[-lgpl]: handle "guessing" values when cross-building
500         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
501         (gl_CANONICALIZE_LGPL): Check whether $gl_cv_func_realpath_works
502         matches "*yes" instead of just "yes".  Regression introduced in commit
503         e0bcf6626cde8dad4bfbdc4045c744f0cd8b9e24.
504
505 2012-07-07  Ludovic Courtès  <ludo@gnu.org>
506             Bruno Haible  <bruno@clisp.org>
507
508         canonicalize: make the right guess when cross-compiling to GNU
509         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Match also "gnu*" to
510         determine whether cross-compiling to glibc systems, so as to
511         include GNU/Hurd.
512
513 2012-07-06  Paul Eggert  <eggert@cs.ucla.edu>
514
515         timespec-sub: avoid duplicate include
516         * lib/timespec-sub.c: Do not include <config.h> twice.
517         Reported by Juanma Barranquero.
518
519 2012-07-06  Akim Demaille  <akim@lrde.epita.fr>
520
521         bootstrap: use a more consistent error reporting scheme
522         * build-aux/bootstrap (warn, die): New.
523         Use them.
524
525 2012-07-05  Paul Eggert  <eggert@cs.ucla.edu>
526
527         sys_time: allow too-wide tv_sec
528         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Allow struct
529         timeval even if tv_sec is wider than time_t.  This allows
530         OpenBSD 5.1 amd64 and fixes an Emacs porting glitch with utimens.c,
531         as without this patch gnulib replaces struct timeval
532         and OpenBSD futimes therefore has a type mismatch.
533         * doc/posix-headers/sys_time.texi: Mention this.
534
535         pthread: check for both pthread_create and pthread_join
536         * m4/pthread.m4 (gl_PTHREAD_CHECK): Revert previous change, but
537         alter the check so that it tests for both pthread_create and
538         pthread_join.  This should be more portable to hosts like OSF/1 5.1.
539         Suggested by Bruno Haible and Richard Yao in
540         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00048.html>.
541
542         parse-datetime: doc tuneup
543         * doc/parse-datetime.texi: Index "leap seconds" and fix minor
544         spacing issues.
545
546 2012-07-05  Akim Demaille  <akim@lrde.epita.fr>
547
548         do-release-commit-and-tag: fix the previous commit
549         * build-aux/do-release-commit-and-tag: Actually the test was right,
550         but the comment and the error message were misleading.
551         Fix comment, and improve error message.
552         Perform check first, so that NEWS is not modified uselessly.
553
554         do-release-commit-and-tag: fix typo
555         * build-aux/do-release-commit-and-tag: Be sure that NEWS does
556         _not_ start with a stub.
557
558 2012-07-04  Paul Eggert  <eggert@cs.ucla.edu>
559
560         pthread: check for pthread_create, not pthread_join
561         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_create, not
562         pthread_join.  On FreeBSD 9, pthread_create is in libpthread but
563         pthread_join in libc.  I hope this removes the need for all the
564         OSF/1 5.1 pthread_join business.  Reported by Richard Yao in
565         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00042.html>.
566
567 2012-07-04  Jim Meyering  <meyering@redhat.com>
568
569         parse-datetime: fix failure to diagnose invalid input
570         date -d "$(printf '\xb0')" would print 00:00:00 with today's date
571         rather than diagnosing the invalid input.  Now it reports this:
572         date: invalid date '\260'
573         * lib/parse-datetime.y (to_uchar): Define.
574         (yylex): Don't sign-extend "other" bytes.
575         * m4/parse-datetime.m4: Require AC_C_INLINE for first use of "inline".
576         Thanks to Bruno Haible for the patch to this file.
577         * tests/test-parse-datetime.c (main): Add a test to trigger the bug.
578         Peter Evans reported the bug in GNU date: http://bugs.gnu.org/11843
579
580 2012-07-03  Jim Meyering  <meyering@redhat.com>
581
582         bootstrap: do not require now-removed build-aux/missing
583         Now that build-aux/missing is, er, missing, bootstrap would
584         silently fail.
585         * build-aux/bootstrap (gnulib_extra_files): Remove $build_aux/missing
586         from the list, now that (since commit v0.0-7489-gd0f486f) the file is
587         no longer part of gnulib.
588         Diagnose the failure.
589
590 2012-07-03  Paul Eggert  <eggert@cs.ucla.edu>
591
592         alloca: add support for HP NonStop TNS/E native
593         * lib/alloca.in.h (alloca): Support the new host.
594         From a suggestion by Joachim Schmitz in
595         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00355.html>.
596
597 2012-07-02  Pádraig Brady  <P@draigBrady.com>
598
599         fsusage: remove code not needed on non GNU/Linux systems.
600
601         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
602         Don't include headers no longer needed in this case.
603         * lib/fsusage.c [STAT_STATVFS &&
604         ! (__linux__ && (__GLIBC__||__UCLIBC__))]: Undefine
605         STAT_STATFS2_FRSIZE to exclude code not used in this case.
606
607 2012-07-02  Paul Eggert  <eggert@cs.ucla.edu>
608
609         fsusage: include files needed for glibc 2.6 fallback
610         * lib/fsusage.c [STAT_STATVFS || STAT_STATVFS64]:
611         Include <sys/param.h>, <sys/mount.h>, <sys/vfs.h>
612         as they are needed for the 2.6 < glibc/Linux < 2.6.36 fallback.
613         Problem reported by Ludovic Courtès in
614         <http://lists.gnu.org/archive/html/bug-gnulib/2012-07/msg00005.html>.
615
616         fsusage: avoid needless check on GNU/Linux
617         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Omit STAT_STATFS3_OSF1 check
618         on GNU/Linux systems, since it can't possibly work.
619
620 2012-07-01  Bruno Haible  <bruno@clisp.org>
621
622         log: Fix an autoconf >= 2.64 warning.
623         * modules/log (configure.ac): Require, not invoke, gl_FUNC_LOG.
624         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
625
626 2012-06-28  Bruno Haible  <bruno@clisp.org>
627
628         log10f: Fix possible configuration problem.
629         * m4/log10f.m4 (gl_FUNC_LOG10F): Augment LIBS by $LOG10F_LIBM, not
630         $LOGF_LIBM.
631         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
632
633 2012-06-28  Bruno Haible  <bruno@clisp.org>
634
635         remove: No longer override on all platforms. Fixes bug from 2010-03-20.
636         * m4/remove.m4 (gl_FUNC_REMOVE): Test gl_cv_func_unlink_honors_slashes,
637         not gl_cv_func_unlink_works.
638         Reported by Carlos O'Donell <carlos_odonell@mentor.com>.
639
640 2012-06-27  Eric Blake  <eblake@redhat.com>
641
642         config: drop scripts that automake says are not independent
643         * config/srclist.txt: Drop elisp-comp, missing, and ylwrap.
644         * build-aux/elisp-comp: Delete.
645         * build-aux/missing: Likewise.
646         * build-aux/ylwrap: Likewise.
647         * modules/elisp-comp: Likewise.
648         * MODULES.html.sh: Drop mention of elisp-comp.
649         * NEWS: Mention this.
650
651 2012-06-26  Paul Eggert  <eggert@cs.ucla.edu>
652
653         root-uid: new module
654         This is for portability to Tandem's NonStop Kernel.
655         * lib/root-uid.h, modules/root-uid: New files.
656         * lib/euidaccess.c, lib/pt_chown.c, lib/unlinkdir.c:
657         * lib/write-any-file.c, tests/test-sethostname2.c:
658         Include "root-uid.h".
659         * lib/euidaccess.c (euidaccess):
660         * lib/pt_chown.c (main):
661         * lib/unlinkdir.c (cannot_unlink_dir):
662         * lib/write-any-file.c (can_write_any_file):
663         * m4/mknod.m4 (gl_FUNC_MKNOD):
664         * tests/test-sethostname2.c (geteuid, main):
665         Don't assume ROOT_UID == 0.
666         * modules/euidaccess (Depends-on):
667         * modules/pt_chown (Depends-on):
668         * modules/sethostname-tests (Depends-on):
669         * modules/unlinkdir (Depends-on):
670         * modules/write-any-file (Depends-on):
671         Add root-uid.
672
673         regex: use locale-independent comparison for codeset name
674         See Bruno Haible's comment in <http://bugs.gnu.org/10305#120>.
675         * lib/regcomp.c (init_dfa): Use just ASCII case comparison
676         for codeset name.
677         * lib/regex_internal.h: Do not include <strings.h>, since we
678         no longer use strcasecmp.
679         * modules/regex (Depends-on): Remove strcase.
680
681 2012-06-23  Bruno Haible  <bruno@clisp.org>
682
683         getopt-posix: No longer guarantee that option processing is resettable.
684         * doc/posix-functions/getopt.texi: Drop description of problem with
685         internal state. Fix info about mingw and msvc9.
686         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't require a resettable
687         option processing by getopt(). Run three test programs instead of one.
688         Simplify cross-compilation guess.
689         * NEWS: Mention the change.
690         Reported by Rich Felker <dalias@aerifal.cx>.
691
692 2012-06-26  Bruno Haible  <bruno@clisp.org>
693
694         argp, regex: Ensure strcasecmp gets declared.
695         * lib/argp-help.c: Include <strings.h>.
696         * lib/regex_internal.h: Likewise.
697         Reported and suggested by Joachim Schmitz <jojo@schmitz-digital.de>.
698
699 2012-06-24  Bruno Haible  <bruno@clisp.org>
700
701         ptsname_r: Make it consistent with ptsname on AIX.
702         * lib/ptsname_r.c (__ptsname_r): For AIX, use nearly the same
703         implementation as for OSF/1.
704         * tests/test-ptsname_r.c (main) [AIX]: Use the modern way of opening
705         a pty master.
706
707         ptsname_r: Make it consistent with ptsname on OSF/1.
708         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
709         OSF/1.
710
711 2012-06-24  Bruno Haible  <bruno@clisp.org>
712
713         ttyname_r: Fix result on OSF/1, Solaris.
714         * lib/ttyname_r.c (ttyname_r): Produce a NUL-terminated result.
715
716 2012-06-24  Bruno Haible  <bruno@clisp.org>
717
718         ptsname_r: Add support for Solaris.
719         * lib/ptsname_r.c (__ptsname_r): Add a different implementation for
720         Solaris.
721
722         ptsname_r: Fix test failure on native Windows.
723         * modules/ptsname_r (Depends-on): Add isatty.
724
725         ptsname_r: Fix test failures on IRIX, Solaris.
726         * m4/ptsname_r.m4 (gl_PREREQ_PTSNAME_R): Test whether isatty sets
727         errno when it fails. Define ISATTY_FAILS_WITHOUT_SETTING_ERRNO
728         accordingly.
729         * lib/ptsname_r.c: Include <fcntl.h>.
730         (__ptsname_r): When isatty returned false, then on IRIX, Solaris
731         set errno if fd is invalid.
732         * tests/test-isatty.c (main): Update comments.
733
734 2012-06-24  Bruno Haible  <bruno@clisp.org>
735
736         ptsname test: Extend test.
737         * tests/test-ptsname.c: Include <errno.h>.
738         (main): Test behaviour with invalid file descriptor.
739
740 2012-06-23  Paul Eggert  <eggert@cs.ucla.edu>
741
742         time: fix obsolete comment
743         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Remove obsolete
744         reference to HAVE_STRUCT_TIMESPEC in comment.
745
746 2012-06-23  Bruno Haible  <bruno@clisp.org>
747
748         getopt-gnu: Handle suboptimal getopt_long's abbreviation handling.
749         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): If getopt_long exists but
750         does not handle abbreviated long options with equivalent
751         disambiguations, set gl_replace_getopt to yes.
752         * doc/posix-functions/getopt.texi: Mention the OpenBSD 5.0 problem.
753
754 2012-06-22  Paul Eggert  <eggert@cs.ucla.edu>
755
756         time_r: fix typo that always overrode localtime_r decl
757         * m4/time_r.m4 (gl_TIME_R): Use AC_CHECK_DECLS, not
758         AC_CHECK_DECLS_ONCE, since localtime_r is declared in <time.h>,
759         not in a standard include.
760
761 2012-06-22  Bruno Haible  <bruno@clisp.org>
762
763         Write "Mac OS X" instead of "MacOS X".
764         * README: Write "Mac OS X" instead of "MacOS X".
765         * build-aux/bootstrap: Likewise.
766         * build-aux/install-reloc: Likewise.
767         * lib/acl-internal.h: Likewise.
768         * lib/acl_entries.c: Likewise.
769         * lib/argp-ba.c: Likewise.
770         * lib/argp-pv.c: Likewise.
771         * lib/config.charset: Likewise.
772         * lib/copy-acl.c: Likewise.
773         * lib/csharpexec.c: Likewise.
774         * lib/euidaccess.c: Likewise.
775         * lib/fbufmode.c: Likewise.
776         * lib/fflush.c: Likewise.
777         * lib/file-has-acl.c: Likewise.
778         * lib/filemode.h: Likewise.
779         * lib/fpurge.c: Likewise.
780         * lib/freadable.c: Likewise.
781         * lib/freadahead.c: Likewise.
782         * lib/freading.c: Likewise.
783         * lib/freadptr.c: Likewise.
784         * lib/freadseek.c: Likewise.
785         * lib/fseeko.c: Likewise.
786         * lib/fseterr.c: Likewise.
787         * lib/fsusage.c: Likewise.
788         * lib/fwritable.c: Likewise.
789         * lib/fwriting.c: Likewise.
790         * lib/get-rusage-as.c: Likewise.
791         * lib/get-rusage-data.c: Likewise.
792         * lib/getdomainname.c: Likewise.
793         * lib/idpriv-drop.c: Likewise.
794         * lib/idpriv-droptemp.c: Likewise.
795         * lib/localcharset.c: Likewise.
796         * lib/locale.in.h: Likewise.
797         * lib/localename.c: Likewise.
798         * lib/mbsrtowcs-state.c: Likewise.
799         * lib/nproc.c: Likewise.
800         * lib/passfd.c: Likewise.
801         * lib/posix_openpt.c: Likewise.
802         * lib/printf-parse.c: Likewise.
803         * lib/progreloc.c: Likewise.
804         * lib/safe-read.h: Likewise.
805         * lib/safe-write.h: Likewise.
806         * lib/sched.in.h: Likewise.
807         * lib/set-mode-acl.c: Likewise.
808         * lib/signal.in.h: Likewise.
809         * lib/stdint.in.h: Likewise.
810         * lib/stdio-impl.h: Likewise.
811         * lib/stdlib.in.h: Likewise.
812         * lib/strtod.c: Likewise.
813         * lib/sys_select.in.h: Likewise.
814         * lib/tcgetsid.c: Likewise.
815         * lib/unistd.in.h: Likewise.
816         * lib/unlockpt.c: Likewise.
817         * lib/vasnprintf.c: Likewise.
818         * lib/vma-iter.c: Likewise.
819         * lib/wcsrtombs-state.c: Likewise.
820         * m4/acl.m4: Likewise.
821         * m4/acosl.m4: Likewise.
822         * m4/asinl.m4: Likewise.
823         * m4/atanl.m4: Likewise.
824         * m4/c-stack.m4: Likewise.
825         * m4/cosl.m4: Likewise.
826         * m4/expl.m4: Likewise.
827         * m4/extensions.m4: Likewise.
828         * m4/fdatasync.m4: Likewise.
829         * m4/fmal.m4: Likewise.
830         * m4/frexp.m4: Likewise.
831         * m4/frexpf.m4: Likewise.
832         * m4/frexpl.m4: Likewise.
833         * m4/fsusage.m4: Likewise.
834         * m4/getdomainname.m4: Likewise.
835         * m4/getloadavg.m4: Likewise.
836         * m4/getopt.m4: Likewise.
837         * m4/gettext.m4: Likewise.
838         * m4/gnulib-common.m4: Likewise.
839         * m4/intdiv0.m4: Likewise.
840         * m4/intlmacosx.m4: Likewise.
841         * m4/largefile.m4: Likewise.
842         * m4/ldexpl.m4: Likewise.
843         * m4/link-follow.m4: Likewise.
844         * m4/locale-ar.m4: Likewise.
845         * m4/locale-fr.m4: Likewise.
846         * m4/locale-ja.m4: Likewise.
847         * m4/locale-tr.m4: Likewise.
848         * m4/locale-zh.m4: Likewise.
849         * m4/locale_h.m4: Likewise.
850         * m4/lock.m4: Likewise.
851         * m4/logl.m4: Likewise.
852         * m4/mathfunc.m4: Likewise.
853         * m4/minus-zero.m4: Likewise.
854         * m4/mktime.m4: Likewise.
855         * m4/mmap-anon.m4: Likewise.
856         * m4/multiarch.m4: Likewise.
857         * m4/nanosleep.m4: Likewise.
858         * m4/nocrash.m4: Likewise.
859         * m4/poll.m4: Likewise.
860         * m4/printf-frexpl.m4: Likewise.
861         * m4/printf.m4: Likewise.
862         * m4/signbit.m4: Likewise.
863         * m4/sinl.m4: Likewise.
864         * m4/sqrtl.m4: Likewise.
865         * m4/strerror_r.m4: Likewise.
866         * m4/tanl.m4: Likewise.
867         * m4/threadlib.m4: Likewise.
868         * m4/ttyname_r.m4: Likewise.
869         * m4/unlink.m4: Likewise.
870         * m4/visibility.m4: Likewise.
871         * m4/wcwidth.m4: Likewise.
872         * tests/minus-zero.h: Likewise.
873         * tests/test-alloca-opt.c: Likewise.
874         * tests/test-copy-acl.sh: Likewise.
875         * tests/test-copy-file.sh: Likewise.
876         * tests/test-fdatasync.c: Likewise.
877         * tests/test-file-has-acl.sh: Likewise.
878         * tests/test-flock.c: Likewise.
879         * tests/test-fsync.c: Likewise.
880         * tests/test-localename.c: Likewise.
881         * tests/test-malloca.c: Likewise.
882         * tests/test-nonblocking-pipe.h: Likewise.
883         * tests/test-nonblocking-socket.h: Likewise.
884         * tests/test-openpty.c: Likewise.
885         * tests/test-posix_openpt.c: Likewise.
886         * tests/test-ptsname.c: Likewise.
887         * tests/test-ptsname_r.c: Likewise.
888         * tests/test-sameacls.c: Likewise.
889         * tests/test-select.h: Likewise.
890         * tests/test-set-mode-acl.sh: Likewise.
891         * tests/test-snprintf-posix.h: Likewise.
892         * tests/test-sprintf-posix.h: Likewise.
893         * tests/test-strtod.c: Likewise.
894         * tests/test-time.c: Likewise.
895         * tests/test-vasnprintf-posix.c: Likewise.
896         * tests/test-vasprintf-posix.c: Likewise.
897         * doc/acl-resources.txt: Likewise.
898         * doc/**/*.texi: Likewise.
899         Reported by Max Horn <max@quendi.de>.
900
901 2012-06-22  Bruno Haible  <bruno@clisp.org>
902
903         grantpt: Relax requirement regarding invalid file descriptors.
904         * lib/grantpt.c: Don't include <fcntl.h>.
905         (grantpt): Don't verify the validity of the file descriptor.
906         * modules/grantpt (Depends-on): Remove fcntl-h.
907         * tests/test-grantpt.c (main): Allow grantpt to succeed for invalid
908         file descriptors.
909         * doc/posix-functions/grantpt.texi: Document more platforms on which
910         grantpt succeeds for invalid file descriptors.
911         Reported by Rich Felker <dalias@aerifal.cx>.
912
913 2012-06-22  Bruno Haible  <bruno@clisp.org>
914
915         fbufmode test: Don't test unportable behaviour.
916         * tests/test-fbufmode.c (test_mode): New function, extracted from main.
917         (main): Invoke it three times.
918         Reported by Szabolcs Nagy <nsz@port70.net>
919         and Rich Felker <dalias@aerifal.cx>.
920
921 2012-06-21  Bruno Haible  <bruno@clisp.org>
922
923         gnulib-tool: Refactor inctests variable.
924         * gnulib-tool: Normalize inctests to 'true' or 'false', not ''.
925         (func_modules_transitive_closure,
926         func_modules_transitive_closure_separately,
927         func_import, func_create_testdir): Update.
928
929         gnulib-tool: --create-[mega]testdir, --[mega]test implies --with-tests.
930         * gnulib-tool: Accept option --without-tests.
931         (func_usage): Document --without-tests option. Rearrange.
932         (inctests): Normalize according to the mode.
933         * NEWS: Mention the change.
934         Suggested by Simon Josefsson.
935
936 2012-06-21  Bruce Korb  <bkorb@gnu.org>
937
938         parse-duration test: Avoid spurious output.
939         * tests/test-parse-duration.sh: Reindent with leading tabs.
940
941 2012-06-21  Jim Meyering  <meyering@redhat.com>
942
943         maint: disable the strncpy prohibition
944         * cfg.mk: Do not prohibit strncpy here.
945
946 2012-06-21  Bruno Haible  <bruno@clisp.org>
947
948         nonblocking: Avoid compilation error on mingw64.
949         * m4/stdio_h.m4 (gl_STDIO_H): Invoke gl_MODULE_INDICATOR for scanf,
950         fscanf.
951         * modules/vscanf (configure.ac): Invoke gl_MODULE_INDICATOR.
952         * modules/vfscanf (configure.ac): Likewise.
953         * lib/stdio-read.c (scanf, fscanf, vscanf, vfscanf): Enable function
954         definition only if stdio.h has prepared it.
955         Reported by Daniel P. Berrange <berrange@redhat.com>.
956
957 2012-06-20  Bernd Jendrissek  <bernd.jendrissek@gmail.com>  (tiny change)
958
959         gnulib-tool: Use readlink if it is available.
960         * gnulib-tool (func_readlink): Choose function more appropriately.
961
962 2012-06-21  Paul Eggert  <eggert@cs.ucla.edu>
963
964         posixtm-tests: port to buggy compiler
965         Problem reported by Simon Josefsson in
966         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00246.html>.
967         * modules/posixtm-tests (Depends-on): Add stdint.
968         * tests/test-posixtm.c (struct posixtm_test.t_expected):
969         Now of type int_least64_t, not int64_t, both because that's
970         what INT64_C returns and because int_least64_t works even
971         on 72-bit hosts.
972         (T): Use INT64_C on constants outside the traditional int range,
973         to work around compiler bug noted by Simon.
974
975         mktime: fix integer overflow in 'configure'-time test
976         * m4/mktime.m4 (gl_FUNC_MKTIME): Do not rely on undefined behavior
977         after integer overflow.  Problem reported by Rich Felker in
978         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00257.html>.
979         Also, don't look for further instances of a bug if we've already
980         found one instance; this helps 'configure' run faster.
981
982 2012-06-20  John Darrington  <john@darrington.wattle.id.au>  (tiny change)
983
984         tmpfile, clean-temp: Fix invocation of GetVersionEx.
985         * lib/tmpfile.c (supports_delete_on_close): Initialize parameter for
986         GetVersionEx correctly.
987         * lib/clean-temp.c (supports_delete_on_close): Likewise.
988
989 2012-06-20  Bruno Haible  <bruno@clisp.org>
990
991         fdopen: Allow implementations that don't reject invalid fd arguments.
992         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Let the test pass if fdopen(-1,...)
993         succeeds.
994         Reported by Rich Felker <dalias@aerifal.cx>.
995
996 2012-06-20  Simon Josefsson  <simon@josefsson.org>
997
998         * modules/parse-duration-tests (test_parse_duration_LDADD): Don't
999         bring in LIBINTL.
1000
1001 2012-06-20  Paul Eggert  <eggert@cs.ucla.edu>
1002
1003         init.sh: do not rely on autoupated PWD
1004         This addresses symptoms of the problem reported by Nelson H.F. Beebe in
1005         <http://lists.gnu.org/archive/html/bug-gzip/2012-06/msg00008.html>.
1006         Although Nelson's bug was not necessarily fixed by this patch,
1007         it seems wise to make the change for safety.
1008         * tests/init.sh (path_prepend_): Do not rely on PWD updating
1009         automagically after 'cd'; this is not reliable on older shells.
1010         (setup_): Fail if we cannot cd to temporary directory.
1011
1012 2012-06-19  Bruno Haible  <bruno@clisp.org>
1013
1014         stat, fstat: Avoid warnings on mingw64.
1015         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Undefine before
1016         redefining.
1017         * lib/fstat.c (stat, fstat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Likewise.
1018         Reported by Daniel P. Berrange <berrange@redhat.com>.
1019
1020 2012-06-19  Bruno Haible  <bruno@clisp.org>
1021
1022         stdioext: Add support for musl libc.
1023
1024         * m4/fbufmode.m4 (gl_FUNC_FBUFMODE): Test whether __fbufsize exists.
1025         * lib/fbufmode.c (fbufmode): Add conditional code for musl.
1026
1027         * m4/fseterr.m4: New file.
1028         * lib/fseterr.h (fseterr): Define as an alias of __fseterr if that
1029         function exists.
1030         * modules/fseterr (Files): Add m4/fseterr.m4.
1031         (configure.ac): Invoke gl_FUNC_FSETERR. Compile fseterr.c if
1032         __fseterr does not exist.
1033         (Makefile.am): Remove fseterr.c from lib_SOURCES.
1034
1035         * lib/freadable.h: Update comment.
1036
1037         * lib/fwritable.h: Update comment.
1038
1039         * lib/freading.h: Update comment.
1040
1041         * lib/fwriting.h: Update comment.
1042
1043         * m4/freadahead.m4: New file.
1044         * lib/freadahead.h (freadahead): Define as an alias of __freadahead if
1045         that function exists.
1046         * modules/freadahead (Files): Add m4/freadahead.m4.
1047         (configure.ac): Invoke gl_FUNC_FREADAHEAD. Compile freadahead.c if
1048         __freadahead does not exist.
1049         (Makefile.am): Remove freadahead.c from lib_SOURCES.
1050
1051         * m4/freadptr.m4: New file.
1052         * lib/freadptr.h (freadptr): Define as an alias of __freadptr if that
1053         function exists.
1054         * modules/freadptr (Files): Add m4/freadptr.m4.
1055         (configure.ac): Invoke gl_FUNC_FREADPTR. Compile freadptr.c if
1056         __freadptr does not exist.
1057         (Makefile.am): Remove freadptr.c from lib_SOURCES.
1058
1059         * m4/freadseek.m4: New file.
1060         * lib/freadseek.c (freadptrinc): Use __freadptrinc if that function
1061         exists.
1062         * modules/freadseek (Files): Add m4/freadseek.m4.
1063         (configure.ac): Invoke gl_FUNC_FREADSEEK.
1064
1065         * lib/fpurge.c (fpurge): Update comment.
1066
1067         Reported by and with help from Rich Felker <dalias@aerifal.cx>.
1068
1069 2012-06-19  Bruno Haible  <bruno@clisp.org>
1070
1071         *printf-posix: Put more info into config.log.
1072         * m4/printf.m4 (gl_PRINTF_ENOMEM): Emit conftest's error output and
1073         exit code into config.log.
1074
1075 2012-06-19  Bruno Haible  <bruno@clisp.org>
1076
1077         getopt-gnu: Fix exit code overflow in autoconf test.
1078         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Squash exit code values,
1079         to keep them below < 128.
1080
1081 2012-06-17  Jim Meyering  <meyering@redhat.com>
1082
1083         maint.mk: fix typo in code to derive GPG key at release time
1084         * top/maint.mk (gpg_key_ID): Fix typo: $3 -> $$3
1085
1086 2012-06-17  Paul Eggert  <eggert@cs.ucla.edu>
1087
1088         regex: avoid warning when pointers are not long
1089         * lib/regcomp.c (parse_dup_op, mark_opt_subexp): Cast between void *
1090         and uintptr_t, not long, for portability to hosts where pointers and
1091         long have different sizes.  Issue noted by Daniel P. Berrange in
1092         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00122.html>
1093         and fix suggested by Bruno Haible in
1094         <http://lists.gnu.org/archive/html/bug-gnulib/2012-06/msg00128.html>.
1095
1096 2012-06-17  Bruno Haible  <bruno@clisp.org>
1097
1098         dummy: Relicense into the public domain.
1099         * modules/dummy (License): Set to "public domain".
1100         Suggested by Reuben Thomas.
1101
1102 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1103
1104         announce-gen: VPATH issues
1105         * build-aux/announce-gen (--srcdir): New option, used to trim the
1106         $srcdir part of the path from $builddir to NEWS.
1107         * top/maint.mk (announcement): Adjust.
1108
1109 2012-06-12  Akim Demaille  <akim@lrde.epita.fr>
1110
1111         gnu-web-doc-update: VPATH builds
1112         * build-aux/gnu-web-doc-update (--builddir): New option.
1113         Revamp the handling of options.
1114         Prefer $(...) to `...`.
1115         Don't pass --tmpdir=. to mktemp, it is useless given that we specify
1116         the template, and it is GNU mktemp specific.
1117         Prefer set -e to long series of &&.
1118         Restore the initial git branch, not "master".
1119         Properly initialize submodules (don't rely only on bootstrap).
1120         Do not reconfigure blindly, use config.status.
1121         * top/README-release: Update instructions for gnu-web-doc-update.
1122
1123 2012-06-11  Jim Meyering  <meyering@redhat.com>
1124
1125         maint.mk: revert most of the previous change re "all these"
1126         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Remove that pair.
1127         For rationale, see the discussion at
1128         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30912
1129
1130 2012-06-10  Karl Berry  <karl@gnu.org>
1131
1132         * build-aux/gnupload: with --dry-run, do not ask for gpg pw.
1133
1134         * build-aux/gnupload: implement --replace, ftp-upload protocol v1.2.
1135
1136 2012-06-10  Bruce Korb  <bkorb@gnu.org>
1137
1138         parse-duration: Relicense under LGPLv2+.
1139         * modules/parse-duration (License): Change to LGPLv2+.
1140
1141 2012-06-10  Jim Meyering  <meyering@redhat.com>
1142
1143         maint.mk: prohibit common grammar error: "all these"
1144         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Add "all these" to
1145         the list of prohibited word sequences.  It should be "all of these".
1146         * lib/tempname.c (__gen_tempname): Fix one of them.
1147
1148 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1149
1150         do-release-commit-and-tag: support VPATH builds
1151         * build-aux/do-release-commit-and-tag: Prefer $(...) to `...`.
1152         (noteworthy): Defined earlier to factor its value.
1153         (noteworthy_stub): New.
1154         Use it to factor.
1155         (help_version): Split into...
1156         (help, version): these.
1157         Adjust the option processing part.
1158         Support "--option=value" in addition to "--option value".
1159         (builddir): New.
1160         (--builddir): New option.
1161         * top/README-release: Document this.
1162         Reword slightly so that the reader cannot understand that he
1163         has to do these steps before calling do-release-commit-and-tag.
1164
1165 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1166
1167         readme-release: also require announce-gen and maintainer-makefile
1168         * modules/readme-release (Depends-on): here.
1169         * modules/announce-gen, modules/do-release-commit-and-tag,
1170         modules/gnu-web-doc-update, modules/maintainer-makefile
1171         (Description): Point to readme-release.
1172
1173 2012-06-07  Akim Demaille  <akim@lrde.epita.fr>
1174
1175         maint.mk: fix VPATH issues.
1176         * top/maint.mk (news-check): GNU Make understand $< very well.
1177         (release-prep): NEWS is in $(srcdir).
1178
1179 2012-06-05  Akim Demaille  <akim@lrde.epita.fr>
1180
1181         readme-release: require the promoted modules.
1182         * modules/readme-release (Depends-on): Add
1183         do-release-commit-and-tag, gnupload, and gnu-web-doc-update, used
1184         in this text.
1185
1186 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1187             Bruno Haible  <bruno@clisp.org>
1188
1189         error, strerror-override: Support mingw64 from Fedora 17.
1190         * lib/errno.in.h (GNULIB_defined_ESTREAMS): Use a different indicator
1191         for ETXTBSY, ENODATA, ENOSR, ENOSTR, ETIME, EOTHER, compared to
1192         EINPROGRESS.
1193         * lib/strerror-override.h (strerror_override): Test it.
1194         * lib/strerror-override.c (strerror_override): Likewise.
1195         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also ETXTBSY.
1196
1197 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1198             Bruno Haible  <bruno@clisp.org>
1199
1200         error, strerror-override: Support mingw64 from Fedora 17.
1201         * lib/errno.in.h (GNULIB_defined_ENOTRECOVERABLE): Use a different
1202         indicator for ENOTRECOVERABLE, compared to EOWNERDEAD.
1203         * lib/strerror-override.h (strerror_override): Test it.
1204         * lib/strerror-override.c (strerror_override): Likewise.
1205
1206 2012-06-03  Bruno Haible  <bruno@clisp.org>
1207
1208         error, strerror-override: Support new errno values from POSIX:2008.
1209         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also EOWNERDEAD and
1210         ENOTRECOVERABLE.
1211         * lib/errno.in.h (EOWNERDEAD, ENOTRECOVERABLE): Define on all
1212         platforms.
1213         * lib/strerror-override.c (strerror_override): Conditionalize the
1214         EOWNERDEAD, ENOTRECOVERABLE handling on GNULIB_defined_EOWNERDEAD.
1215         * lib/strerror-override.h (strerror_override): Declare also if
1216         GNULIB_defined_EOWNERDEAD is defined.
1217         * tests/test-errno.c (e130, e131): New variables.
1218         * doc/posix-headers/errno.texi: Mention the status for EOWNERDEAD,
1219         ENOTRECOVERABLE.
1220         Reported by Paolo Bonzini.
1221
1222 2012-05-31  Jim Meyering  <meyering@redhat.com>
1223
1224         savewd: add missing dependency on sys_wait module
1225         * modules/savewd (Depends-on): Add sys_wait, needed at least
1226         for MSVC.  Report and suggested change by Michael Goffioul.
1227
1228 2012-05-29  Paul Eggert  <eggert@cs.ucla.edu>
1229
1230         system-quote-tests: port to CentOS 5
1231         Problem reported by Tom G. Christensen in
1232         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00255.html>.
1233         * tests/test-system-quote-child.c (fclose, fprintf): Undef.
1234
1235 2012-05-29  Jim Meyering  <meyering@redhat.com>
1236
1237         maint: fix typos in comments and ChangeLog
1238         Culprits identified and fixed mostly automatically using these commands:
1239         git ls-files | misspellings -f - |grep -v '^ERROR:' |perl -pe \
1240         's/^(.*?)\[(\d+)\]: (\w+) -> "(.*?)"$/sed -i '\''${2}s!$3!$4!'\'' $1/'
1241         using http://github.com/lyda/misspell-check
1242         * ChangeLog: Fix typos.
1243         * doc/solaris-versions: Likewise.
1244         * lib/regexec.c (re_search_stub): Likewise.
1245         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
1246
1247 2012-05-27  Paul Eggert  <eggert@cs.ucla.edu>
1248
1249         manywarnings: remove duplicate -Wmultichar entry
1250         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Remove duplicate
1251         entry for -Wmultichar.  -Wno-multichar is in the GCC 4.7.0 manual,
1252         so keep the entry marked as documented.
1253
1254 2012-05-27  Karl Berry  <karl@gnu.org>
1255
1256         * config/srclist.txt (mktime.c): remove last libc sync,
1257         perhaps just temporarily.
1258
1259 2012-05-26  Paul Eggert  <eggert@cs.ucla.edu>
1260
1261         regex: don't assume uint64_t or uint32_t
1262         * lib/regcomp.c (init_word_char): Don't assume that the types
1263         uint64_t and uint32_t exist.  The C standard doesn't guarantee
1264         them, and on some 32-bit compilers there is no uint64_t.
1265         Problem reported by Gianluigi Tiesi in
1266         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00154.html>.
1267
1268 2012-05-25  Jim Meyering  <meyering@redhat.com>
1269
1270         maint.mk: add strncpy-prohibiting syntax-check rule
1271         * top/maint.mk (sc_prohibit_strncpy): New rule, from coreutils.
1272
1273 2012-05-24  Jim Meyering  <meyering@redhat.com>
1274
1275         maint.mk: compute $(gpg_key_ID) more portably
1276         * top/maint.mk (gpg_key_ID): Use awk in place of sed '{...;...;}'.
1277         That use of sed is not portable to some fringe systems.
1278         Reported by Paul Eggert in
1279         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30793/focus=30802
1280
1281 2012-05-23  Paul Eggert  <eggert@cs.ucla.edu>
1282
1283         mktime: sync from glibc
1284         * config/srclist.txt: Uncomment mktime.c.
1285         * lib/mktime.c: Sync from glibc master.  This incorporates 3 changes.
1286         First, indent with tabs, since glibc uses tabs and doesn't want to
1287         change and we'd rather be identical to glibc.  Also, two small
1288         coding changes:
1289         (isdst_differ): Use &&, not &, as && is the usual style.
1290         (__mktime_internal): Rename local var from abs_diff to approx_abs_diff
1291         for clarity.
1292
1293 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1294
1295         announce-gen: du -h is more portable than du --human
1296         * build-aux/announce-gen (sizes): Invoke du with -h instead
1297         of --human.  Accept leading white space in its output.
1298
1299 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1300
1301         announce-gen: Improve diagnostics.
1302         * build-aux/announce-gen: When parsing command line options,
1303         prefer "announce-gen: option --release-type requires an argument"
1304         to "Option release-type requires an argument".
1305
1306 2012-05-23  Akim Demaille  <akim@lrde.epita.fr>
1307
1308         maint.mk: gpg_key_ID: use sed more portably
1309         * top/maint.mk (gpg_key_ID): End sed block with a semicolon before
1310         the closing brace.
1311         (refresh-po): Fuse two sed invocations into one.
1312
1313 2012-05-15  Akim Demaille  <akim@lrde.epita.fr>
1314
1315         gitlog-to-changelog: support the log message format used in Bison.
1316         * build-aux/gitlog-to-changelog: Support --strip-tab and
1317         --strip-cherry-picked.
1318
1319 2012-05-21  Paolo Bonzini  <bonzini@gnu.org>
1320
1321         poll/select: prevent busy-waiting.  SwitchToThread() only gives away
1322         the rest of the current time slice to another thread in the current
1323         process. So if the thread that feeds the file decscriptor we're
1324         polling is not in the current process, we get busy-waiting.
1325         * lib/poll.c: Use SleepEx(1, TRUE) instead of SwitchToThread().
1326         Patch from Theodore Leblond.
1327         * lib/select.c: Split polling out of the loop that sets the output
1328         fd_sets.  Check for zero result and loop if the wait timeout is
1329         infinite.
1330
1331 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1332
1333         select: Fix build error on IRIX 6.5.
1334         * lib/select.c: Include stddef.h for NULL.
1335
1336 2012-05-21  Simon Josefsson  <simon@josefsson.org>
1337
1338         gc: fix libgcrypt detection on older machines.
1339         * m4/gc.m4: Reject libgcrypt earlier than 1.4.4.  Collapse
1340         copyright years because the file has been distributed every year
1341         since it was created.
1342
1343 2012-05-18  Paul Eggert  <eggert@cs.ucla.edu>
1344
1345         crypto: fix bug in large buffer handling
1346         Problem reported by Serge Belyshev for glibc in
1347         <http://sourceware.org/bugzilla/show_bug.cgi?id=14090> and for gnulib in
1348         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00226.html>.
1349         * lib/md4.c (md4_process_block):
1350         * lib/md5.c (md5_process_block):
1351         * lib/sha1.c (sha1_process_block):
1352         * lib/sha256.c (sha256_process_block):
1353         Don't assume the buffer length is less than 2**32.
1354         * lib/sha512.c (sha512_process_block): Likewise.
1355         Here, the bug is present only in the rare case where the host does
1356         not support uint64_t or where size_t is wider than 64 bits.
1357         Use u64size to work around the problems.
1358         * lib/u64.h (u64size): New macro.
1359
1360 2012-05-15  Pádraig Brady  <P@draigBrady.com>
1361
1362         fsusage: fix block size returned on older Linux 2.6
1363
1364         * lib/fsusage.c: Fall back to (struct statfs).f_frsize
1365         which is available since Linux 2.6.
1366         * m4/fsusage.m4 (STAT_STATFS2_FRSIZE): Always define
1367         when the member is available so it can be used as a fallback.
1368         * doc/posix-functions/statvfs.texi: Mention the hang issue
1369         on Linux < 2.6.36.
1370
1371 2012-05-14  Paul Eggert  <eggert@cs.ucla.edu>
1372
1373         bootstrap: suppress stderr chatter
1374         * build-aux/bootstrap (insert_sorted_if_absent, main program):
1375         Omit unnecessary chatter to stderr.  The main program chatter
1376         was there only inadvertantly.
1377
1378         bootstrap: .gitignore files created by autopoint, libtool
1379         I ran into this problem when bootstrapping the latest diffutils.
1380         After './bootstrap', 'git status' reported lots of untracked files
1381         m4/codeset.m4, m4/gettext.m4, etc.  These files were created by
1382         autopoint and do not need to be version-controlled.
1383         * build-aux/bootstrap: Put into .gitignore the files that
1384         autopoint and libtool create, by keeping track of files that exist
1385         after but not before these programs are run.
1386         (version_controlled_file): Move up.  2nd arg is now full file
1387         name, not base name; this is more convenient.  Put CVS at the end,
1388         as it's now somewhat deprecated.
1389
1390 2012-05-14  Jim Meyering  <meyering@redhat.com>
1391
1392         ignore-value.h: remove unused _GL_ATTRIBUTE_DEPRECATED definition
1393         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Remove now-unused
1394         definition.  Reported by Bruno Haible.
1395
1396 2012-05-13  Bruno Haible  <bruno@clisp.org>
1397             Paul Eggert  <eggert@cs.ucla.edu>
1398
1399         binary-io: Define set_binary_mode function.
1400         * lib/binary-io.h (set_binary_mode): New function.
1401         (SET_BINARY): Define in terms of set_binary_mode.
1402         * modules/binary-io (configure.ac): Require AC_C_INLINE.
1403         * tests/test-binary-io.c (main): Accept an argument, and test either
1404         set_binary_mode or SET_BINARY depending on the argument.
1405         * tests/test-binary-io.sh: Invoke test-binary-io twice, with an
1406         argument. Clean up also t-bin-out0.tmp.
1407
1408 2012-05-13  Stefano Lattarini  <stefano.lattarini@gmail.com>
1409
1410         bootstrap: take advantage of POSIX shell features
1411
1412         The 'bootstrap' script offered by Gnulib script already uses POSIX
1413         shell features (like $((...)) arithmetic expansions) that are not
1414         supported by legacy Bourne shells like Solaris 10 /bin/sh.  This
1415         means that bootstrap must already be run using a proper POSIX shell,
1416         which will thus provide more features, like ${var#pattern} parameter
1417         expansion or inversion of a command exit status with '!'.  We can
1418         thus use these features to improve the clarity and the performances
1419         of the bootstrap script.
1420
1421         Suggested by Eric Blake.
1422
1423         * build-aux/bootstrap: Prefer xpg4 parameter expansions over use
1424         of sed/expr plus command substitutions, to save some forks.  While
1425         we are at it, prefer the POSIX $(...) form of command substitution,
1426         rather than the legacy form `...` (since the former is visually
1427         clearer and interacts better with quoting), and prefer the idiom:
1428           "if ! CMD; then ACTION ..."
1429         over the idiom:
1430           "if CMD; then :; else ACTION ..."
1431         which was required by legacy Bourne shells not supporting '!'.
1432
1433 2012-05-12  Bruno Haible  <bruno@clisp.org>
1434
1435         system-quote: Add more comments.
1436         * lib/system-quote.h: Add more comments about wilcards and limitations.
1437         Suggested by Eli Zaretskii <eliz@gnu.org>.
1438
1439         sh-quote, system-quote: Add comments about wildcards.
1440         * lib/sh-quote.h: Clarify what happens with wildcard characters.
1441         * lib/system-quote.h: Likewise.
1442         Reported by Eli Zaretskii <eliz@gnu.org>.
1443
1444 2012-05-11  Paul Eggert  <eggert@cs.ucla.edu>
1445
1446         fsusage: check for GNU/Linux statvfs problem dynamically
1447         * lib/fsusage.c [STAT_STATVFS && __linux__ && (__GLIBC__||__UCLIBC__)]:
1448         Define STAT_STATFS2_BSIZE too, since in this case the code now
1449         checks dynamically whether statvfs is reliable, falling back on
1450         Linux-style statfs otherwise.
1451         (statvfs_works): New function, for dynamically testing statvfs.
1452         (get_fs_usage) [STAT_STATVFS]: Use it.
1453         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Remove static check for
1454         statvfs on GNU/Linux hosts, since it's now done dynamically.
1455
1456 2012-05-10  Bruno Haible  <bruno@clisp.org>
1457
1458         system-quote, execute, spawn-pipe: Escape '?' on Windows.
1459         * lib/system-quote.c (SHELL_SPECIAL_CHARS, CMD_SPECIAL_CHARS): Add the
1460         '?' character.
1461         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Likewise.
1462         * tests/test-system-quote-main.c (check_all): Check also strings like
1463         "??????????".
1464         Reported by Eli Zaretskii <eliz@gnu.org>.
1465
1466 2012-05-10  Paul Eggert  <eggert@cs.ucla.edu>
1467
1468         _Noreturn: port config.h to gcc -Wundef
1469         * m4/gnulib-common.m4 (gl_COMMON_BODY): Check that __STDC_VERSION__ is
1470         defined before using it, for gcc -Wundef.  Reported by Akim Demaille in
1471         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00147.html>.
1472
1473 2012-05-10  Bruno Haible  <bruno@clisp.org>
1474
1475         system-quote: Refactor.
1476         * lib/system-quote.h (system_quote_copy): Fix comment.
1477         * lib/system-quote.c (windows_createprocess_quote, windows_cmd_quote):
1478         New functions, extracted from system_quote_copy.
1479         (system_quote_length, system_quote_copy): Use these functions.
1480         Reported by Paul Eggert.
1481
1482 2012-05-08  Bruno Haible  <bruno@clisp.org>
1483
1484         execute, spawn-pipe: Escape '*' characters in arguments on Windows.
1485         * lib/w32spawn.h (SHELL_SPECIAL_CHARS): Add the '*' character.
1486
1487 2012-05-08  Bruno Haible  <bruno@clisp.org>
1488
1489         Tests for module 'system-quote'.
1490         * modules/system-quote-tests: New file.
1491         * tests/test-system-quote.sh: New file.
1492         * tests/test-system-quote-main.c: New file.
1493         * tests/test-system-quote-child.c: New file.
1494
1495         New module 'system-quote'.
1496         * lib/system-quote.h: New file.
1497         * lib/system-quote.c: New file.
1498         * modules/system-quote: New file.
1499
1500 2012-05-08  Bruno Haible  <bruno@clisp.org>
1501
1502         sh-quote: Make C++ safe and allow multiple inclusion.
1503         * lib/sh-quote.h: Add double-inclusion guard. For C++, wrap function
1504         declarations in extern "C".
1505
1506 2012-05-08  Bruno Haible  <bruno@clisp.org>
1507
1508         sh-quote tests: Make tests stricter.
1509         * tests/test-sh-quote.c (check_one): Check the return value of
1510         shell_quote_copy.
1511         (main): Check a string with a CR character. Check a string that
1512         contains UCHAR_MAX.
1513
1514 2012-05-08  Akim Demaille  <akim@lrde.epita.fr>
1515
1516         warnings.m4: provide a means to specify the program to compile.
1517         * m4/warnings.m4 (gl_COMPILER_OPTION_IF): New, extracted from...
1518         (gl_WARN_ADD): here.
1519         Use gl_AS_VAR_APPEND.
1520         Support an argument to specify the program to compile.
1521         (gl_WARN_ADD): Accept an argument to specify the program to compile.
1522         AC_SUBST the WARN_CFLAGS when they are used.
1523         * modules/warnings (configure.ac): Don't AC_SUBST WARN_CFLAGS,
1524         leave this to gl_WARN_ADD.
1525
1526 2012-05-08  Eric Blake  <eblake@redhat.com>
1527
1528         doc: recommendations on gettext version
1529         * doc/gnulib-tool.texi (gettextize and autopoint): Document the
1530         choice between versions.
1531         * DEPENDENCIES (gettext): Cover both approaches.
1532
1533 2012-05-08  Jim Meyering  <meyering@redhat.com>
1534
1535         init.sh: explain why EXEEXT support uses aliases rather than functions
1536         * tests/init.sh: Add a comment.
1537
1538         init.sh: don't let bash aliases interfere with tests
1539         * tests/init.sh: Undefine any pre-defined aliases if the selected shell
1540         is bash.  This avoids problems for those who alias standard commands to
1541         non-conforming uses, like those reported in http://bugs.gnu.org/11256.
1542         Suggested by Tim Mooney <Tim.Mooney@ndsu.edu>.
1543
1544 2012-05-07  Paul Eggert  <eggert@cs.ucla.edu>
1545
1546         stdint: be more consistent with glibc, SunOS libc
1547         * lib/stdint.in.h (gl_int_fast8_t, gl_uint_fast8_t)
1548         (gl_int_fast16_t, gl_uint_fast16_t)
1549         (gl_int_fast32_t, gl_uint_fast32_t)
1550         (INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX)
1551         (INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX)
1552         (INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
1553         Be consistent with glibc by default, and with SunOS 5.10 and later
1554         if __sun is defined.  This lessens the likelihood of clashes if
1555         code compiled for older hosts is combined with code compiled for
1556         newer ones.  Problem reported by Niels Möller in
1557         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00074.html>.
1558
1559 2012-05-07  Eric Blake  <eblake@redhat.com>
1560
1561         isatty: relax license to LGPLv2+
1562         * modules/isatty (License): Relax license.
1563
1564 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1565
1566         stat-size: comment fix
1567         * lib/stat-size.h: Remove obsolete comment about indenting.
1568
1569 2012-05-06  Bruno Haible  <bruno@clisp.org>
1570
1571         Tests for module 'sh-quote'.
1572         * modules/sh-quote-tests: New file.
1573         * tests/test-sh-quote.c: New file.
1574
1575 2012-05-06  Bruno Haible  <bruno@clisp.org>
1576
1577         sh-quote: Improve shell_quote_argv's signature.
1578         * lib/sh-quote.h (shell_quote_argv): Make argument array a 'const *'.
1579         * lib/sh-quote.c (shell_quote_argv): Likewise.
1580
1581 2012-05-06  Paul Eggert  <eggert@cs.ucla.edu>
1582
1583         stdint: document issues with int_fast8_t etc.
1584         * doc/posix-headers/stdint.texi (stdint.h): Say that other
1585         stdint.h substitutes may define these types differently.  See
1586         <http://lists.gnu.org/archive/html/bug-gnulib/2012-05/msg00071.html>.
1587
1588 2012-05-05  Bruno Haible  <bruno@clisp.org>
1589
1590         nanosleep: Avoid guessing wrong when cross-compiling to Linux.
1591         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require AC_CANONICAL_HOST. When
1592         cross-compiling, set gl_cv_func_nanosleep to either 'guessing no'
1593         or 'guessing no (mishandles large arguments)'.
1594
1595 2012-05-05  Bruno Haible  <bruno@clisp.org>
1596
1597         link-follow: Avoid guessing wrong when cross-compiling to glibc/Linux.
1598         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Require
1599         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1600         set gl_cv_func_link_follows_symlink to "guessing no".
1601
1602 2012-05-05  Bruno Haible  <bruno@clisp.org>
1603
1604         tzset: Avoid guessing wrong when cross-compiling to glibc systems.
1605         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require AC_CANONICAL_HOST. When
1606         cross-compiling to a glibc platform, set gl_cv_func_tzset_clobber to
1607         "guessing no".
1608         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Update.
1609
1610 2012-05-05  Bruno Haible  <bruno@clisp.org>
1611
1612         d-ino: Avoid guessing "no" when cross-compiling to glibc/Linux systems.
1613         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Require
1614         AC_CANONICAL_HOST. When cross-compiling to a glibc/Linux platform,
1615         set gl_cv_struct_dirent_d_ino to "guessing yes".
1616
1617 2012-05-05  Bruno Haible  <bruno@clisp.org>
1618
1619         fseeko-tests, ftello-tests: Avoid "guessing no" when cross-compiling.
1620         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Require AC_CANONICAL_HOST. When
1621         cross-compiling to a glibc platform, set gl_cv_func_ungetc_works to
1622         "guessing yes".
1623
1624 2012-05-05  Bruno Haible  <bruno@clisp.org>
1625
1626         signbit: Avoid "guessing no" when cross-compiling to glibc systems.
1627         * m4/signbit.m4 (gl_SIGNBIT): Require AC_CANONICAL_HOST. When cross-
1628         compiling to a glibc system, set gl_cv_func_signbit and
1629         gl_cv_func_signbit_gcc to "guessing yes".
1630
1631 2012-05-05  Bruno Haible  <bruno@clisp.org>
1632
1633         strerror: Avoid "guessing no" when cross-compiling to glibc systems.
1634         * m4/strerror.m4 (gl_FUNC_STRERROR): Require AC_CANONICAL_HOST. When
1635         cross-compiling to a glibc platform, set gl_cv_func_working_strerror
1636         to "guessing yes".
1637         (gl_FUNC_STRERROR_0): Require AC_CANONICAL_HOST. When cross-compiling
1638         to a glibc platform, set gl_cv_func_strerror_0_works to "guessing yes".
1639
1640 2012-05-05  Bruno Haible  <bruno@clisp.org>
1641
1642         canonicalize[-lgpl]: Avoid "guessing no" when cross-compiling to glibc.
1643         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Require
1644         AC_CANONICAL_HOST. When cross-compiling to a glibc system, set
1645         gl_cv_func_realpath_works to "guessing yes".
1646
1647 2012-05-05  Bruno Haible  <bruno@clisp.org>
1648
1649         gettimeofday: Avoid bad guess when cross-compiling to glibc systems.
1650         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY_CLOBBER): Require
1651         AC_CANONICAL_HOST. When cross-compiling, guess no on glibc platforms.
1652
1653 2012-05-04  Bruno Haible  <bruno@clisp.org>
1654
1655         Tweak last commit.
1656         * m4/off_t.m4 (gl_TYPE_OFF_T): Tweak comments.
1657         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
1658
1659 2012-05-04  Paul Eggert  <eggert@cs.ucla.edu>
1660
1661         unistd_h: make it easier to avoid sys_types_h
1662         This is useful for Emacs, which has its own method of porting to
1663         Windows, and which therefore does not need the sys_types_h module.
1664         * m4/off_t.m4: New file, defining gl_TYPE_OFF_T, which contains
1665         code moved here from gl_SYS_TYPES_H.
1666         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Require it instead of
1667         using the code directly.
1668         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_TYPE_OFF_T, not
1669         gl_SYS_TYPES_H.
1670         * modules/sys_types (Files):
1671         * modules/unistd (Files): Add m4/off_t.m4.
1672
1673 2012-05-03  Bruno Haible  <bruno@clisp.org>
1674
1675         lstat: Avoid "guessing no" when cross-compiling to glibc systems.
1676         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): When cross-
1677         compiling, set gl_cv_func_lstat_dereferences_slashed_symlink to
1678         "guessing yes" or "guessing no".
1679         (gl_FUNC_LSTAT): Update.
1680         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Update.
1681         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
1682         * m4/unlinkat.m4 (gl_FUNC_UNLINKAT): Update.
1683
1684 2012-05-03  Bruno Haible  <bruno@clisp.org>
1685
1686         *alloc-gnu, eealloc: Avoid "guessing no" when cross-compiling to glibc.
1687         * m4/malloc.m4 (_AC_FUNC_MALLOC_IF): Override in autoconf < 2.70.
1688         * m4/realloc.m4 (_AC_FUNC_REALLOC_IF): Override in autoconf < 2.70.
1689         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Require AC_CANONICAL_HOST. When
1690         cross-compiling, choose the first alternative on glibc systems.
1691         * modules/eealloc (Files): Add m4/malloc.m4, m4/realloc.m4.
1692
1693 2012-05-03  Bruno Haible  <bruno@clisp.org>
1694
1695         getgroups: Avoid "guessing no" when cross-compiling to glibc systems.
1696         * m4/getgroups.m4 (AC_FUNC_GETGROUPS): Override in autoconf < 2.70.
1697         (gl_FUNC_GETGROUPS): Adapt to change of ac_cv_func_getgroups_works.
1698
1699 2012-05-03  Bruno Haible  <bruno@clisp.org>
1700
1701         chown: Avoid "guessing no" when cross-compiling to glibc systems.
1702         * m4/chown.m4 (AC_FUNC_CHOWN): Override in autoconf < 2.70.
1703
1704 2012-05-03  Bruno Haible  <bruno@clisp.org>
1705
1706         Avoid "guessing no" guesses when cross-compiling to glibc systems.
1707         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Require AC_CANONICAL_HOST. When cross-
1708         compiling to glibc systems, set gl_cv_func_cbrtl_ieee to "guessing yes".
1709         * m4/ceil.m4 (gl_FUNC_CEIL): Require AC_CANONICAL_HOST. When cross-
1710         compiling to glibc systems, set gl_cv_func_ceil_ieee to "guessing yes".
1711         * m4/ceilf.m4 (gl_FUNC_CEILF): Require AC_CANONICAL_HOST. When cross-
1712         compiling to glibc systems, set gl_cv_func_ceilf_ieee to "guessing yes".
1713         * m4/ceill.m4 (gl_FUNC_CEILL): Require AC_CANONICAL_HOST. When cross-
1714         compiling to glibc systems, set gl_cv_func_ceill_ieee to "guessing yes".
1715         * m4/chown.m4 (gl_FUNC_CHOWN): Require AC_CANONICAL_HOST. When cross-
1716         compiling to glibc systems, set gl_cv_func_chown_slash_works,
1717         gl_cv_func_chown_ctime_works to "guessing yes".
1718         * m4/lchown.m4 (gl_FUNC_LCHOWN): Update.
1719         * m4/exp2l.m4 (gl_FUNC_EXP2L): Require AC_CANONICAL_HOST. When cross-
1720         compiling to glibc systems, set gl_cv_func_exp2l_ieee to "guessing yes".
1721         * m4/expm1.m4 (gl_FUNC_EXPM1): Require AC_CANONICAL_HOST. When cross-
1722         compiling to glibc systems, set gl_cv_func_expm1_ieee to "guessing yes".
1723         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require AC_CANONICAL_HOST. When cross-
1724         compiling to glibc systems, set gl_cv_func_open_directory_works to
1725         "guessing yes".
1726         * m4/fstat.m4 (gl_FUNC_FSTAT): Update.
1727         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require AC_CANONICAL_HOST. When
1728         cross-compiling to glibc systems, set gl_cv_func_fdopendir_works to
1729         "guessing yes".
1730         * m4/floor.m4 (gl_FUNC_FLOOR): Require AC_CANONICAL_HOST. When cross-
1731         compiling to glibc systems, set gl_cv_func_floor_ieee to "guessing yes".
1732         * m4/floorf.m4 (gl_FUNC_FLOORF): Require AC_CANONICAL_HOST. When cross-
1733         compiling to glibc systems, set gl_cv_func_floorf_ieee to
1734         "guessing yes".
1735         * m4/fmod.m4 (gl_FUNC_FMOD): Require AC_CANONICAL_HOST. When cross-
1736         compiling to glibc systems, set gl_cv_func_fmod_ieee to "guessing yes".
1737         * m4/fmodf.m4 (gl_FUNC_FMODF): Require AC_CANONICAL_HOST. When cross-
1738         compiling to glibc systems, set gl_cv_func_fmodf_ieee to "guessing yes".
1739         * m4/fmodl.m4 (gl_FUNC_FMODL): Require AC_CANONICAL_HOST. When cross-
1740         compiling to glibc systems, set gl_cv_func_fmodl_ieee to "guessing yes".
1741         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Require AC_CANONICAL_HOST. When
1742         cross-compiling to glibc systems, set gl_cv_func_getgroups_works to
1743         "guessing yes".
1744         * m4/hypot.m4 (gl_FUNC_HYPOT): Require AC_CANONICAL_HOST. When cross-
1745         compiling to glibc systems, set gl_cv_func_hypot_ieee to "guessing yes".
1746         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Require AC_CANONICAL_HOST. When cross-
1747         compiling to glibc systems, set gl_cv_func_hypotf_ieee to
1748         "guessing yes".
1749         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Require AC_CANONICAL_HOST. When cross-
1750         compiling to glibc systems, set gl_cv_func_hypotl_ieee to
1751         "guessing yes".
1752         * m4/link.m4 (gl_FUNC_LINK): Require AC_CANONICAL_HOST. When cross-
1753         compiling to glibc systems, set gl_cv_func_link_works to "guessing yes".
1754         * m4/log.m4 (gl_FUNC_LOG): Require AC_CANONICAL_HOST. When cross-
1755         compiling to glibc systems, set gl_cv_func_log_ieee to "guessing yes".
1756         * m4/logf.m4 (gl_FUNC_LOGF): Require AC_CANONICAL_HOST. When cross-
1757         compiling to glibc systems, set gl_cv_func_logf_ieee to "guessing yes".
1758         * m4/log10.m4 (gl_FUNC_LOG10): Require AC_CANONICAL_HOST. When cross-
1759         compiling to glibc systems, set gl_cv_func_log10_ieee to "guessing yes".
1760         * m4/log10f.m4 (gl_FUNC_LOG10F): Require AC_CANONICAL_HOST. When cross-
1761         compiling to glibc systems, set gl_cv_func_log10f_ieee to
1762         "guessing yes".
1763         * m4/log1p.m4 (gl_FUNC_LOG1P): Require AC_CANONICAL_HOST. When cross-
1764         compiling to glibc systems, set gl_cv_func_log1p_ieee to "guessing yes".
1765         * m4/log1pf.m4 (gl_FUNC_LOG1PF): Require AC_CANONICAL_HOST. When cross-
1766         compiling to glibc systems, set gl_cv_func_log1pf_ieee to
1767         "guessing yes".
1768         * m4/log1pl.m4 (gl_FUNC_LOG1PL): Require AC_CANONICAL_HOST. When cross-
1769         compiling to glibc systems, set gl_cv_func_log1pl_ieee to
1770         "guessing yes".
1771         * m4/log2.m4 (gl_FUNC_LOG2): Require AC_CANONICAL_HOST. When cross-
1772         compiling to glibc systems, set gl_cv_func_log2_ieee to "guessing yes".
1773         * m4/log2f.m4 (gl_FUNC_LOG2F): Require AC_CANONICAL_HOST. When cross-
1774         compiling to glibc systems, set gl_cv_func_log2f_ieee to "guessing yes".
1775         * m4/mkdir.m4 (gl_FUNC_MKDIR): Require AC_CANONICAL_HOST. When cross-
1776         compiling to glibc systems, set gl_cv_func_mkdir_trailing_slash_works,
1777         gl_cv_func_mkdir_trailing_dot_works to "guessing yes".
1778         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Require AC_CANONICAL_HOST. When cross-
1779         compiling to glibc systems, set gl_cv_func_mkfifo_works to
1780         "guessing yes".
1781         * m4/mknod.m4 (gl_FUNC_MKNOD): Require AC_CANONICAL_HOST. When cross-
1782         compiling to glibc systems, set gl_cv_func_mknod_works to
1783         "guessing yes".
1784         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_CANONICAL_HOST. When
1785         cross-compiling to glibc systems, set gl_cv_func_working_mkstemp to
1786         "guessing yes".
1787         * m4/modf.m4 (gl_FUNC_MODF): Require AC_CANONICAL_HOST. When cross-
1788         compiling to glibc systems, set gl_cv_func_modf_ieee to "guessing yes".
1789         * m4/modff.m4 (gl_FUNC_MODFF): Require AC_CANONICAL_HOST. When cross-
1790         compiling to glibc systems, set gl_cv_func_modff_ieee to "guessing yes".
1791         * m4/modfl.m4 (gl_FUNC_MODFL): Require AC_CANONICAL_HOST. When cross-
1792         compiling to glibc systems, set gl_cv_func_modfl_ieee to "guessing yes".
1793         * m4/putenv.m4 (gl_FUNC_PUTENV): Require AC_CANONICAL_HOST. When cross-
1794         compiling to glibc systems, set gl_cv_func_svid_putenv to
1795         "guessing yes".
1796         * m4/readlink.m4 (gl_FUNC_READLINK): Require AC_CANONICAL_HOST. When
1797         cross-compiling to glibc systems, set gl_cv_func_readlink_works to
1798         "guessing yes".
1799         * m4/remainder.m4 (gl_FUNC_REMAINDER): Require AC_CANONICAL_HOST. When
1800         cross-compiling to glibc systems, set gl_cv_func_remainder_ieee to
1801         "guessing yes".
1802         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Require AC_CANONICAL_HOST.
1803         When cross-compiling to glibc systems, set gl_cv_func_remainderf_ieee
1804         to "guessing yes".
1805         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Require AC_CANONICAL_HOST.
1806         When cross-compiling to glibc systems, set gl_cv_func_remainderl_ieee
1807         to "guessing yes".
1808         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require AC_CANONICAL_HOST. When cross-
1809         compiling to glibc systems, set gl_cv_func_rmdir_works to
1810         "guessing yes".
1811         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. When cross-
1812         compiling to glibc systems, set gl_cv_func_unlink_honors_slashes,
1813         gl_cv_func_unlink_parent_fails to "guessing yes".
1814         * m4/remove.m4 (gl_FUNC_REMOVE): Update.
1815         * m4/rename.m4 (gl_FUNC_RENAME): Require AC_CANONICAL_HOST. When cross-
1816         compiling to glibc systems, set gl_cv_func_rename_slash_dst_works,
1817         gl_cv_func_rename_slash_src_works, gl_cv_func_rename_link_works,
1818         gl_cv_func_rename_dest_works to "guessing yes".
1819         * m4/round.m4 (gl_FUNC_ROUND): Require AC_CANONICAL_HOST. When cross-
1820         compiling to glibc systems, set gl_cv_func_round_ieee to "guessing yes".
1821         * m4/roundf.m4 (gl_FUNC_ROUNDF): Require AC_CANONICAL_HOST. When cross-
1822         compiling to glibc systems, set gl_cv_func_roundf_ieee to
1823         "guessing yes".
1824         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require AC_CANONICAL_HOST. When cross-
1825         compiling to glibc systems, set gl_cv_func_roundl_ieee to
1826         "guessing yes".
1827         * m4/setenv.m4 (gl_FUNC_SETENV): Require AC_CANONICAL_HOST. When cross-
1828         compiling to glibc systems, set gl_cv_func_setenv_works to
1829         "guessing yes".
1830         (gl_FUNC_UNSETENV): Require AC_CANONICAL_HOST. When cross-
1831         compiling to glibc systems, set gl_cv_func_unsetenv_works to
1832         "guessing yes".
1833         * m4/sleep.m4 (gl_FUNC_SLEEP): Require AC_CANONICAL_HOST. When cross-
1834         compiling to glibc systems, set gl_cv_func_sleep_works to
1835         "guessing yes".
1836         * m4/stat.m4 (gl_FUNC_STAT): Require AC_CANONICAL_HOST. When cross-
1837         compiling to glibc systems, set gl_cv_func_stat_file_slash to
1838         "guessing yes".
1839         * m4/symlink.m4 (gl_FUNC_SYMLINK): Require AC_CANONICAL_HOST. When
1840         cross-compiling to glibc systems, set gl_cv_func_symlink_works to
1841         "guessing yes".
1842         * m4/trunc.m4 (gl_FUNC_TRUNC): Require AC_CANONICAL_HOST. When cross-
1843         compiling to glibc systems, set gl_cv_func_trunc_ieee to "guessing yes".
1844         * m4/truncf.m4 (gl_FUNC_TRUNCF): Require AC_CANONICAL_HOST. When cross-
1845         compiling to glibc systems, set gl_cv_func_truncf_ieee to
1846         "guessing yes".
1847         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require AC_CANONICAL_HOST. When cross-
1848         compiling to glibc systems, set gl_cv_func_truncl_ieee to
1849         "guessing yes".
1850         * m4/usleep.m4 (gl_FUNC_USLEEP): Require AC_CANONICAL_HOST. When cross-
1851         compiling to glibc systems, set gl_cv_func_usleep_works to
1852         "guessing yes".
1853         * m4/utimens.m4 (gl_UTIMENS): Require AC_CANONICAL_HOST. When cross-
1854         compiling to glibc systems, set gl_cv_func_futimesat_works to
1855         "guessing yes".
1856
1857 2012-05-03  Bruno Haible  <bruno@clisp.org>
1858
1859         Say "guessing yes" or "guessing no" when cross-compiling.
1860         * m4/dup2.m4 (gl_FUNC_DUP2): When cross-compiling, set
1861         gl_cv_func_dup2_works to "guessing yes" or "guessing no".
1862         * m4/getdelim.m4 (gl_FUNC_GETDELIM): When cross-compiling, set
1863         gl_cv_func_working_getdelim to "guessing yes" or "guessing no".
1864         * m4/getline.m4 (gl_FUNC_GETLINE): When cross-compiling, set
1865         am_cv_func_working_getline to "guessing yes" or "guessing no".
1866         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, set
1867         gl_cv_func_memmem_works_always to "guessing yes" or "guessing no".
1868         (gl_FUNC_MEMMEM): When cross-compiling, set
1869         gl_cv_func_memmem_works_fast to "guessing yes" or "guessing no".
1870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): When cross-compiling, set
1871         gl_cv_func_stpncpy to "guessing yes" or "guessing no".
1872         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): When cross-compiling,
1873         set gl_cv_func_strcasestr_works_always to "guessing yes" or
1874         "guessing no".
1875         (gl_FUNC_STRCASESTR): When cross-compiling, set
1876         gl_cv_func_strcasestr_linear to "guessing yes" or "guessing no".
1877         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): When cross-compiling, set
1878         gl_cv_func_strstr_works_always to "guessing yes" or "guessing no".
1879         (gl_FUNC_STRSTR): When cross-compiling, set
1880         gl_cv_func_strstr_linear to "guessing yes" or "guessing no".
1881         * m4/strtod.m4 (gl_FUNC_STRTOD): When cross-compiling, set
1882         gl_cv_func_strtod_works to "guessing yes" or "guessing no".
1883         * m4/wctype_h.m4 (gl_WCTYPE_H): When cross-compiling, set
1884         gl_cv_func_iswcntrl_works to "guessing yes" or "guessing no".
1885
1886 2012-05-01  Bruno Haible  <bruno@clisp.org>
1887
1888         relocatable-prog: Enable ELF ORIGIN trick also on GNU/kFreeBSD.
1889         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Treat kFreeBSD like Linux.
1890         * build-aux/reloc-ldflags: Likewise.
1891         Suggested by Steven Chamberlain <steven@pyro.eu.org>.
1892
1893 2012-05-01  Bruno Haible  <bruno@clisp.org>
1894
1895         gnulib-tool: Remove transitional code.
1896         * gnulib-tool: Don't warn about --import with 0 arguments any more.
1897         Reported by Dmitriy Selyutin <ghostman.sd@gmail.com>.
1898
1899 2012-05-01  Bruno Haible  <bruno@clisp.org>
1900
1901         getcwd: Fix misindentation.
1902         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Fix indentation.
1903
1904 2012-04-29  Paul Eggert  <eggert@cs.ucla.edu>
1905
1906         exclude: process exclude and include directives in order
1907         This restores the pre-2009 behavior, and is part of a fix of a
1908         grep bug reported by Quentin Arce in
1909         <http://lists.gnu.org/archive/html/bug-grep/2012-04/msg00056.html>.
1910         * lib/exclude.c (struct exclude): Remove 'tail' member.
1911         (new_exclude_segment): Prepend the new segment instead of appending.
1912         Return void, since that's now more convenient.
1913         (file_pattern_matches): Renamed from excluded_file_pattern_p.
1914         (file_name_matches): Renamed from excluded_file_name_p.
1915         (file_pattern_matches, file_name_matches):
1916         Return true if the pattern matches, not if it excludes.
1917         All callers changed.
1918         (excluded_file_name): Process the list in reverse order;
1919         since the list is now reversed this restores the pre-2009 behavior.
1920         (add_exclude): Adjust to new reversed-order list.  Use local var
1921         rather than macro, for clarity.
1922         * tests/test-exclude7.sh: Adjust to corrected behavior.
1923
1924         exclude: handle wildcards with FNM_NOESCAPE and with trailing \
1925         * lib/exclude.c (unescape_pattern): Don't worry about unescaped [;
1926         it's not possible here.  Handle the case of \ at end of pattern
1927         without dumping core.
1928         (add_exclude): Do not unescape the pattern if FNM_NOESCAPE is used.
1929
1930         _Noreturn: future-proof non-GNU and non-MSVC compilers
1931         * build-aux/snippet/_Noreturn.h (_Noreturn):
1932         * m4/gnulib-common.m4 (gl_COMMON_BODY):
1933         Do not define _Noreturn if __STDC_VERSION__ indicates this is
1934         C11 or later.  This is more likely to work with random future C
1935         compilers that are neither GNUish nor MSVCish.  See Vincent Lefevre in
1936         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00195.html>.
1937
1938         exclude: handle wildcards with FNM_EXTMATCH
1939         * lib/exclude.c (fnmatch_pattern_has_wildcards): Also treat '+(',
1940         '+@', '!(' as wildcards, if FNM_EXTMATCH.  Make it clear in a
1941         comment that "has wildcards" really means "has or may have
1942         wildcards".  Simplify by avoiding the need to call strcspn.
1943
1944 2012-04-29  Bruno Haible  <bruno@clisp.org>
1945
1946         gnulib-tool: Fix list of authors.
1947         * gnulib-tool (func_version): Add Paul Eggert to list of authors.
1948
1949 2012-04-26  Stefano Lattarini  <stefano.lattarini@gmail.com>
1950
1951         bootstrap: support Automake-NG in $buildreq
1952         * bootstrap (check_versions): Handle automake and aclocal from
1953         Automake-NG specially.  They can be specified as respectively
1954         the "automake-ng" and "aclocal-ng" requirements.
1955
1956 2012-04-25  Eric Blake  <eblake@redhat.com>
1957
1958         bootstrap: only force latest Makefile.in.in for gettext module
1959         * build-aux/bootstrap (with_gettext): Only install latest
1960         Makefile.in.in for projects requesting bleeding edge gettext.
1961
1962 2012-04-22  Bruno Haible  <bruno@clisp.org>
1963
1964         doc: Mention reason for replacement on glibc/Linux systems.
1965         * doc/posix-functions/dprintf.texi: Mention the problem with special
1966         'long double' values.
1967         * doc/posix-functions/fprintf.texi: Likewise.
1968         * doc/posix-functions/printf.texi: Likewise.
1969         * doc/posix-functions/snprintf.texi: Likewise.
1970         * doc/posix-functions/sprintf.texi: Likewise.
1971         * doc/posix-functions/vdprintf.texi: Likewise.
1972         * doc/posix-functions/vfprintf.texi: Likewise.
1973         * doc/posix-functions/vprintf.texi: Likewise.
1974         * doc/posix-functions/vsnprintf.texi: Likewise.
1975         * doc/posix-functions/vsprintf.texi: Likewise.
1976         * doc/posix-functions/fcntl.texi: Add glibc/Linux to the list of
1977         platforms with F_DUPFD_CLOEXEC problems.
1978         * doc/posix-functions/glob.texi: Mention which platforms are affected
1979         by the problem with symbolic links.
1980         * doc/posix-functions/linkat.texi: Mention the problem with
1981         AT_SYMLINK_FOLLOW on Linux.
1982
1983 2012-04-22  Bruno Haible  <bruno@clisp.org>
1984
1985         pwrite: Don't replace on all platforms.
1986         * m4/pwrite.m4 (gl_FUNC_PWRITE): Fix syntax error in test program.
1987
1988 2012-04-22  Bruno Haible  <bruno@clisp.org>
1989
1990         rint* tests: Avoid gcc warnings.
1991         * tests/test-rint.c (INFINITY, NAN): Undefine before redefining.
1992         * tests/test-rintf.c (INFINITY, NAN): Likewise.
1993         * tests/test-rintl.c (INFINITY, NAN): Likewise.
1994
1995 2012-04-21  Bruno Haible  <bruno@clisp.org>
1996
1997         users.txt: Update.
1998         * users.txt: Add freedink, wdiff. Update URLs for projects that have
1999         switched from CVS to git, bzr, or svn.
2000
2001 2012-04-21  Bruno Haible  <bruno@clisp.org>
2002
2003         Large File Support for native Windows platforms.
2004
2005         * m4/largefile.m4 (gl_LARGEFILE): New macro.
2006         * modules/largefile (configure.ac): Require gl_LARGEFILE.
2007
2008         * lib/sys_types.in.h (off_t) [WINDOWS_64_BIT_OFF_T]: Define to a 64-bit
2009         type.
2010         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Set WINDOWS_64_BIT_OFF_T.
2011         * modules/sys_types (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T.
2012         * doc/posix-headers/sys_types.texi: Mention the effect of the
2013         'largefile' module.
2014
2015         * lib/fcntl.in.h: Add comments about off_t.
2016         * modules/fcntl-h (Depends-on): Add sys_types.
2017
2018         * lib/unistd.in.h [WINDOWS_64_BIT_OFF_T]: Include <sys/types.h>.
2019         (ftruncate): Replace it if REPLACE_FTRUNCATE is 1.
2020         * m4/unistd_h.m4 (gl_UNISTD_H): Require gl_SYS_TYPES_H.
2021         (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_FTRUNCATE.
2022         * modules/unistd (Depends-on): Add sys_types.
2023         (Makefile.am): Substitute WINDOWS_64_BIT_OFF_T, REPLACE_FTRUNCATE.
2024
2025         * lib/lseek.c (rpl_lseek) [_GL_WINDOWS_64_BIT_OFF_T]: Use _lseeki64
2026         instead of lseek.
2027         * m4/lseek.m4 (gl_FUNC_LSEEK): Require gl_SYS_TYPES_H. Set
2028         REPLACE_LSEEK if WINDOWS_64_BIT_OFF_T is 1.
2029         * modules/lseek (Depends-on): Add sys_types.
2030
2031         * lib/ftruncate.c: Put under GPLv3+. Include <windows.h>,
2032         msvc-nothrow.h.
2033         (SetFileSize): New function.
2034         (ftruncate) [_GL_WINDOWS_64_BIT_OFF_T]: New implementation.
2035         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Set REPLACE_FTRUNCATE on Windows
2036         if Large File Support is requested.
2037         * modules/ftruncate (configure.ac): Consider REPLACE_FTRUNCATE.
2038         (Depends-on): Add sys_types, msvc-nothrow. Update conditions.
2039
2040         * lib/stdio.in.h: Add comments about off_t.
2041         * modules/stdio (Depends-on): Add sys_types.
2042
2043         * lib/ftello.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _ftelli64 or ftello64
2044         instead of ftello.
2045         * m4/ftello.m4 (gl_FUNC_FTELLO): Require gl_SYS_TYPES_H. Set
2046         REPLACE_FTELLO if WINDOWS_64_BIT_OFF_T is 1.
2047         (gl_PREREQ_FTELLO): New macro.
2048         * modules/ftello (Depends-on): Add sys_types.
2049         (configure.ac): Incoke gl_PREREQ_FTELLO.
2050
2051         * lib/fseeko.c [_GL_WINDOWS_64_BIT_OFF_T]: Use _fseeki64 or fseeko64
2052         instead of fseeko.
2053         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require gl_SYS_TYPES_H. Set
2054         REPLACE_FSEEKO if WINDOWS_64_BIT_OFF_T is 1.
2055         (gl_PREREQ_FSEEKO): New macro.
2056         * modules/fseeko (Depends-on): Add sys_types.
2057         (configure.ac): Invoke gl_PREREQ_FSEEKO.
2058
2059         * lib/sys_stat.in.h: Add comments about off_t.
2060         (stat, fstat) [WINDOWS_64_BIT_ST_SIZE]: Define to variants that use a
2061         64-bit integer for st_size in 'struct stat'.
2062         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Set WINDOWS_64_BIT_ST_SIZE.
2063         Define _GL_WINDOWS_64_BIT_ST_SIZE.
2064         * modules/sys_stat (Depends-on): Add sys_types.
2065         (Makefile.am): Substitute WINDOWS_64_BIT_ST_SIZE.
2066
2067         * lib/stat.c (stat) [_GL_WINDOWS_64_BIT_ST_SIZE]: Define to _stati64
2068         instead of stat or _stat.
2069
2070         * lib/fstat.c [_GL_WINDOWS_64_BIT_ST_SIZE]: Use _fstati64 and
2071         'struct _stati64' instead of fstat and 'struct stat'.
2072         * m4/fstat.m4 (gl_FUNC_FSTAT): Require gl_HEADER_SYS_STAT_H. Set
2073         REPLACE_FSTAT if WINDOWS_64_BIT_ST_SIZE is 1.
2074
2075         Reported by Ray Satiro <raysatiro@yahoo.com>.
2076
2077 2012-04-19  Eric Blake  <eblake@redhat.com>
2078
2079         bootstrap: accommodate older libtool
2080         * build-aux/bootstrap (use_libtool): Cater to libtool 1.5.22.
2081         Reported by Daniel P. Berrange.
2082
2083 2012-04-19  Jim Meyering  <meyering@redhat.com>
2084
2085         announce-gen: avoid failure due to lack of Digest::SHA1
2086         Even with the preferred Digest::SHA available, this script
2087         would fail when the backup module, Digest::SHA1, was not installed.
2088         * build-aux/announce-gen: Quote the conditional use of "use".
2089         Reported by Reuben Thomas in:
2090         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30444
2091
2092         bootstrap: don't let a user's CDPATH setting affect this script
2093         When CDPATH is set, cd will sometimes generate output.
2094         When "cd" is run in a subshell whose output matters, that
2095         surprising-to-some output can cause malfunction.
2096         Unsetting CDPATH turns off this shell "feature."
2097         * build-aux/bootstrap (CDPATH): Unset.
2098         Reported by Reuben Thomas in:
2099         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30435
2100         and inspired by his patch here:
2101         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/30440
2102
2103 2012-04-16  Akim Demaille  <akim@lrde.epita.fr>
2104         and Jim Meyering  <meyering@redhat.com>
2105
2106         maint.mk: catch "see @xref{}" and similar
2107         * top/maint.mk (prohibit_undesirable_word_seq_RE_): Also
2108         prohibit "See also @xref{", "Also see @pxref{", and similar.
2109
2110 2012-04-16  Jim Meyering  <meyering@redhat.com>
2111
2112         bootstrap: really use gnulib's po/Makefile.in.in
2113         * build-aux/bootstrap: Correct the source file name in previous change.
2114         Reported by Akim Demaille.
2115
2116         configmake: correct minor inconsistency in Makefile rule
2117         * modules/configmake (Makefile.am): All other rules like this one
2118         run the final "mv -f ..." in the same backslash-continued command
2119         as the one that does everything else.  This one put the mv -f ...
2120         command on a separate, non-backslash-continued line.
2121         Make it like the others.
2122
2123         bootstrap: use gnulib's po/Makefile.in.in, not the one from gettext
2124         * build-aux/bootstrap: Use gnulib's po/Makefile.in.in, not
2125         the one from gettext.  Reported by Akim Demaille.
2126
2127 2012-04-16  Joel E. Denny  <joeldenny@joeldenny.org>
2128
2129         Fix recursion of install-* into po directories.
2130         Bison's install-pdf bug reported by Hans Aberg at
2131         <http://lists.gnu.org/archive/html/bug-bison/2011-05/msg00008.html>.
2132         * build-aux/po/Makefile.in.in (install-dvi, install-html)
2133         (install-info, install-pdf, install-ps): New targets.
2134
2135 2012-04-16  Jim Meyering  <meyering@redhat.com>
2136
2137         maint: avoid spurious "make sc_maint" failure
2138         * cfg.mk (exclude_file_name_regexp--sc_trailing_blank): Also
2139         exempt all *.class file names, for lib/javaversion.class.
2140
2141 2012-04-15  Bruno Haible  <bruno@clisp.org>
2142
2143         lseek: Make configure test independent of environment.
2144         * m4/lseek.m4 (gl_FUNC_LSEEK): Require AC_CANONICAL_HOST. On native
2145         Windows, we know that lseek() on pipes is broken; skip the runtime
2146         test.
2147
2148 2012-04-14  Bruno Haible  <bruno@clisp.org>
2149
2150         stat: Bypass buggy override in mingw64.
2151         * m4/stat.m4 (gl_FUNC_STAT): Update comments.
2152         * lib/stat.c (stat) [mingw64]: Define to _stat.
2153         * doc/posix-functions/stat.texi: Mention mingw64 bug.
2154
2155 2012-04-14  Bruno Haible  <bruno@clisp.org>
2156
2157         pathmax: Fix compilation error on MSVC 9.
2158         * modules/pathmax (Depends-on): Add unistd.
2159
2160 2012-04-12  Paul Eggert  <eggert@cs.ucla.edu>
2161
2162         README: document pointer comparison assumption
2163         * README (Portability guidelines): Document assumption about
2164         pointer comparisons, in response to a recent bug-gnulib comment by
2165         Jeffrey Kegler.
2166
2167 2012-04-12  Bruno Haible  <bruno@clisp.org>
2168
2169         Tests for module 'getrusage'.
2170         * modules/getrusage-tests: New file.
2171         * tests/test-getrusage.c: New file.
2172
2173         New module 'getrusage'.
2174         * lib/sys_resource.in.h: Include arg-nonnull.h, c++defs.h,
2175         warn-on-use.h.
2176         (getrusage): New declaration.
2177         * lib/getrusage.c: New file.
2178         * m4/getrusage.m4: New file.
2179         * m4/sys_resource_h.m4 (gl_HEADER_SYS_RESOURCE): Test whether getrusage
2180         is declared.
2181         (gl_SYS_RESOURCE_H_DEFAULTS): Initialize GNULIB_GETRUSAGE,
2182         HAVE_GETRUSAGE.
2183         * modules/sys_resource (Depends-on): Add snippet/arg-nonnull,
2184         snippet/c++defs, snippet/warn-on-use.
2185         (Makefile.am): Update generation of sys/resource.h. Substitute
2186         GNULIB_GETRUSAGE, HAVE_GETRUSAGE.
2187         * modules/getrusage: New file.
2188         * doc/posix-functions/getrusage.texi: Mention the new module.
2189
2190 2012-04-12  Bruno Haible  <bruno@clisp.org>
2191
2192         Tests for module 'sys_resource'.
2193         * modules/sys_resource-tests: New file.
2194         * tests/test-sys_resource.c: New file.
2195
2196         New module 'sys_resource'.
2197         * lib/sys_resource.in.h: New file.
2198         * m4/sys_resource_h.m4: New file.
2199         * modules/sys_resource: New file.
2200         * doc/posix-headers/sys_resource.texi: Mention the new module.
2201
2202 2012-04-12  LRN  <lrn1986@gmail.com>  (tiny change)
2203
2204         ioctl: Fix compilation error on mingw.
2205         * lib/ioctl.c: Include <windows.h>.
2206         Also reported by Ray Satiro <raysatiro@yahoo.com>.
2207
2208 2012-04-04  Jim Meyering  <meyering@redhat.com>
2209
2210         regex: correct #pragma guard expression
2211         * lib/regex.c: -Wsuggest-attribute=pure was introduced in gcc-4.6,
2212         not 4.3.  Correct its cpp guard expression.
2213
2214 2012-04-04  Paul Eggert  <eggert@cs.ucla.edu>
2215
2216         regex: remove unnecessary type punning
2217         Problem reported by Vladimir Serbinenko in
2218         <http://lists.gnu.org/archive/html/bug-gnulib/2012-04/msg00006.html>.
2219         * lib/regex.h (struct re_pattern_buffer): Change the type of
2220         __REPB_PREFIX(buffer) from unsigned char * to struct re_dfa_t *.
2221         Fix comment to match code.
2222         * lib/regcomp.c (re_compile_fastmap, re_compile_fastmap_iter, regfree)
2223         (re_compile_internal, free_workarea_compile, analyze, lower_subexp)
2224         (parse, parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
2225         * lib/regexec.c (regexec, re_search_stub, re_search_internal)
2226         (set_regs):
2227         Omit no-longer-necessary casts.
2228
2229 2012-04-03  Bruno Haible  <bruno@clisp.org>
2230
2231         Tests for module 'ilogbl'.
2232         * modules/ilogbl-tests: New file.
2233         * tests/test-ilogbl.c: New file.
2234
2235         New module 'ilogbl'.
2236         * lib/math.in.h (ilogbl): New declaration.
2237         * lib/ilogbl.c: New file.
2238         * m4/ilogbl.m4: New file.
2239         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbl is declared.
2240         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBL, HAVE_ILOGBL.
2241         * modules/math (Makefile.am): Substitute GNULIB_ILOGBL, HAVE_ILOGBL.
2242         Split sed invocation, to avoid the limit of 100 substitutions of
2243         HP-UX 'sed'.
2244         * modules/ilogbl: New file.
2245         * tests/test-math-c++.cc: Check the declaration of ilogbl.
2246         * doc/posix-functions/ilogbl.texi: Mention the new module.
2247
2248 2012-04-03  Bruno Haible  <bruno@clisp.org>
2249
2250         Tests for module 'ilogbf'.
2251         * modules/ilogbf-tests: New file.
2252         * tests/test-ilogbf.c: New file.
2253
2254         New module 'ilogbf'.
2255         * lib/math.in.h (ilogbf): New declaration.
2256         * lib/ilogbf.c: New file.
2257         * m4/ilogbf.m4: New file.
2258         * m4/math_h.m4 (gl_MATH_H): Test whether ilogbf is declared.
2259         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGBF, HAVE_ILOGBF,
2260         REPLACE_ILOGBF.
2261         * modules/math (Makefile.am): Substitute GNULIB_ILOGBF, HAVE_ILOGBF,
2262         REPLACE_ILOGBF.
2263         * modules/ilogbf: New file.
2264         * tests/test-math-c++.cc: Check the declaration of ilogbf.
2265         * doc/posix-functions/ilogbf.texi: Mention the new module.
2266
2267 2012-04-03  Bruno Haible  <bruno@clisp.org>
2268
2269         Tests for module 'ilogb'.
2270         * modules/ilogb-tests: New file.
2271         * tests/test-ilogb.c: New file.
2272         * tests/test-ilogb.h: New file, based on tests/test-logb.h and
2273         tests/test-logb-ieee.h.
2274
2275         New module 'ilogb'.
2276         * lib/math.in.h (ilogb): New declaration.
2277         * lib/ilogb.c: New file.
2278         * m4/ilogb.m4: New file.
2279         * m4/math_h.m4 (gl_MATH_H): Test whether ilogb is declared.
2280         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ILOGB, HAVE_ILOGB,
2281         REPLACE_ILOGB.
2282         * modules/math (Makefile.am): Substitute GNULIB_ILOGB, HAVE_ILOGB,
2283         REPLACE_ILOGB.
2284         * modules/ilogb: New file.
2285         * tests/test-math-c++.cc: Check the declaration of ilogb.
2286         * doc/posix-functions/ilogb.texi: Mention the new module.
2287
2288 2012-04-03  Bruno Haible  <bruno@clisp.org>
2289
2290         math: Provide FP_ILOGB0 and FP_ILOGBNAN.
2291         * lib/math.in.h (FP_ILOGB0, FP_ILOGBNAN): Define fallback.
2292         * tests/test-math.c: Check that FP_ILOGB0, FP_ILOGBNAN are defined.
2293         (main): Check their values.
2294         * doc/posix-headers/math.texi: Mention the FP_ILOGB0, FP_ILOGBNAN
2295         problem.
2296
2297 2012-04-03  Bruno Haible  <bruno@clisp.org>
2298
2299         Tests for module 'logbl-ieee'.
2300         * modules/logbl-ieee-tests: New file.
2301         * tests/test-logbl-ieee.c: New file.
2302
2303         New module 'logbl-ieee'.
2304         * modules/logbl-ieee: New file.
2305
2306         Tests for module 'logb-ieee'.
2307         * modules/logb-ieee-tests: New file.
2308         * tests/test-logb-ieee.c: New file.
2309
2310         New module 'logb-ieee'.
2311         * modules/logb-ieee: New file.
2312
2313         Tests for module 'logbf-ieee'.
2314         * modules/logbf-ieee-tests: New file.
2315         * tests/test-logbf-ieee.c: New file.
2316         * tests/test-logb-ieee.h: New file.
2317
2318         New module 'logbf-ieee'.
2319         * modules/logbf-ieee: New file.
2320
2321 2012-04-03  Bruno Haible  <bruno@clisp.org>
2322
2323         Tests for module 'logbl'.
2324         * modules/logbl-tests: New file.
2325         * tests/test-logbl.c: New file.
2326
2327         New module 'logbl'.
2328         * lib/math.in.h (logbl): New declaration.
2329         * lib/logbl.c: New file.
2330         * m4/logbl.m4: New file.
2331         * m4/math_h.m4 (gl_MATH_H): Test whether logbl is declared.
2332         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBL, HAVE_LOGBL,
2333         REPLACE_LOGBL.
2334         * modules/math (Makefile.am): Substitute GNULIB_LOGBL, HAVE_LOGBL,
2335         REPLACE_LOGBL.
2336         * modules/logbl: New file.
2337         * tests/test-math-c++.cc: Check the declaration of logbl.
2338         * doc/posix-functions/logbl.texi: Mention the new module.
2339
2340 2012-04-02  Bruno Haible  <bruno@clisp.org>
2341
2342         Tests for module 'logbf'.
2343         * modules/logbf-tests: New file.
2344         * tests/test-logbf.c: New file.
2345
2346         New module 'logbf'.
2347         * lib/math.in.h (logbf): New declaration.
2348         * lib/logbf.c: New file.
2349         * m4/logbf.m4: New file.
2350         * m4/math_h.m4 (gl_MATH_H): Test whether logbf is declared.
2351         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGBF, HAVE_LOGBF,
2352         REPLACE_LOGBF.
2353         * modules/math (Makefile.am): Substitute GNULIB_LOGBF, HAVE_LOGBF,
2354         REPLACE_LOGBF.
2355         * modules/logbf: New file.
2356         * tests/test-math-c++.cc: Check the declaration of logbf.
2357         * doc/posix-functions/logbf.texi: Mention the new module.
2358
2359 2012-04-02  Bruno Haible  <bruno@clisp.org>
2360
2361         logb tests: More tests.
2362         * tests/test-logb.h: New file, based on tests/test-logb.c and
2363         tests/test-frexp.h.
2364         * tests/test-logb.c: Include minus-zero.h, test-logb.h.
2365         (main): Just invoke test_function.
2366         * modules/logb-tests (Files): Add tests/test-logb.h,
2367         tests/minus-zero.h, tests/randomd.c.
2368         (Makefile.am): Add randomd.c to test_logb_SOURCES.
2369
2370         logb: Provide replacement and workarounds.
2371         * lib/math.in.h (logb): Ensure declaration. Replace if REPLACE_LOGB
2372         is 1.
2373         * lib/logb.c: New file.
2374         * m4/logb.m4 (gl_FUNC_LOGB_WORKS): New macro.
2375         (gl_FUNC_LOGB): Invoke it. Set HAVE_LOGB, REPLACE_LOGB.
2376         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGB.
2377         * modules/math (Makefile.am): Substitute REPLACE_LOGB.
2378         * modules/logb (Files): Add lib/logb.c.
2379         (Depends-on): Add isfinite, frexp, isnand.
2380         (configure.ac): Compile the replacement code logb.c if needed.
2381         * tests/test-math-c++.cc: Check the declaration of logb.
2382         * doc/posix-functions/logb.texi: Mention the replacement and the bug
2383         with subnormal numbers.
2384
2385 2012-04-02  Bruno Haible  <bruno@clisp.org>
2386
2387         log10* tests: Speed up.
2388         * tests/test-log10.h (test_function): Reduce amount of random numbers
2389         to test.
2390
2391 2012-04-01  Bruno Haible  <bruno@clisp.org>
2392
2393         logf-ieee: Fix test whether logf works.
2394         * m4/logf.m4 (gl_FUNC_LOGF): Fix typo in test program.
2395
2396 2012-04-01  Bruno Haible  <bruno@clisp.org>
2397
2398         log10l: Work around log10l-ieee test failure on IRIX 6.5.
2399         * lib/log10l.c: Include <float.h>
2400         (log10l): On IRIX, normalize the +Infinity value.
2401         * modules/log10l (Depends-on): Add 'float'.
2402         * doc/posix-functions/log10l.texi: Mention the IRIX problem with
2403         +Infinity.
2404
2405         log10f-ieee: Work around test failure on NetBSD 5.1.
2406         * m4/log10f-ieee.m4: New file.
2407         * m4/log10f.m4 (gl_FUNC_LOG10F): If gl_FUNC_LOG10F_IEEE is present,
2408         test whether log10f works with a negative argument. Replace it if not.
2409         * lib/log10f.c (log10f): For negative arguments, return NaN.
2410         * modules/log10f-ieee (Files): Add m4/log10f-ieee.m4.
2411         (configure.ac): Invoke gl_FUNC_LOG10F_IEEE.
2412         * doc/posix-functions/log10f.texi: Mention the log10f-ieee module.
2413
2414         log10f-ieee: Work around test failure on Solaris 9.
2415         * modules/log10f-ieee (Depends-on): Add log10-ieee.
2416         (configure.ac): Require gl_FUNC_LOG10F.
2417
2418         log10-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
2419         * m4/log10-ieee.m4: New file.
2420         * m4/log10.m4 (gl_FUNC_LOG10): If gl_FUNC_LOG10_IEEE is present, test
2421         whether log10 works with a negative argument. Replace it if not.
2422         * lib/log10.c (log10): For negative arguments, return NaN.
2423         * modules/log10-ieee (Files): Add m4/log10-ieee.m4.
2424         (configure.ac): Invoke gl_FUNC_LOG10_IEEE.
2425         * doc/posix-functions/log10.texi: Mention the log10-ieee module.
2426
2427         Tests for module 'log10l-ieee'.
2428         * modules/log10l-ieee-tests: New file.
2429         * tests/test-log10l-ieee.c: New file.
2430
2431         New module 'log10l-ieee'.
2432         * modules/log10l-ieee: New file.
2433
2434         Tests for module 'log10-ieee'.
2435         * modules/log10-ieee-tests: New file.
2436         * tests/test-log10-ieee.c: New file.
2437
2438         New module 'log10-ieee'.
2439         * modules/log10-ieee: New file.
2440
2441         Tests for module 'log10f-ieee'.
2442         * modules/log10f-ieee-tests: New file.
2443         * tests/test-log10f-ieee.c: New file.
2444         * tests/test-log10-ieee.h: New file.
2445
2446         New module 'log10f-ieee'.
2447         * modules/log10f-ieee: New file.
2448
2449 2012-04-01  Bruno Haible  <bruno@clisp.org>
2450
2451         log10l: Work around AIX 5.1, IRIX 6.5, OSF/1 5.1 bug.
2452         * lib/math.in.h (log10l): Override if REPLACE_LOG10L is 1.
2453         * lib/log10l.c (log10l): If log10l exists, use it and provide just the
2454         workaround.
2455         * m4/log10l.m4 (gl_FUNC_LOG10L_WORKS): New macro.
2456         (gl_FUNC_LOG10L): Invoke it. Set REPLACE_LOG10L.
2457         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10L.
2458         * modules/math (Makefile.am): Substitute REPLACE_LOG10L.
2459         * modules/log10l (configure.ac): Consider REPLACE_LOG10L.
2460         (Depends-on): Update conditions.
2461         * doc/posix-functions/log10l.texi: Mention the MSVC9, AIX 5.1,
2462         IRIX 6.5, OSF/1 5.1 problems.
2463
2464 2012-04-01  Bruno Haible  <bruno@clisp.org>
2465
2466         log10f: Work around OSF/1 5.1 bug.
2467         * lib/math.in.h (log10f): Override if REPLACE_LOG10F is 1.
2468         * lib/log10f.c (log10f): If logf exists, use it and provide just the
2469         workaround.
2470         * m4/log10f.m4 (gl_FUNC_LOG10F_WORKS): New macro.
2471         (gl_FUNC_LOG10F): Invoke it. Set REPLACE_LOG10F.
2472         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG10F.
2473         * modules/math (Makefile.am): Substitute REPLACE_LOG10F.
2474         * modules/log10f (configure.ac): Consider REPLACE_LOG10F.
2475         (Depends-on): Update conditions.
2476         * doc/posix-functions/log10f.texi: Mention the OSF/1 5.1 problem.
2477
2478 2012-04-01  Bruno Haible  <bruno@clisp.org>
2479
2480         log10: Work around OSF/1 5.1 bug.
2481         * lib/math.in.h (log10): New declaration.
2482         * lib/log10.c: New file.
2483         * m4/log10.m4 (gl_FUNC_LOG10_WORKS): New macro.
2484         (gl_FUNC_LOG10): Invoke it. Set REPLACE_LOG10.
2485         * m4/math_h.m4 (gl_MATH_H): Test whether log10 is declared.
2486         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10, REPLACE_LOG10.
2487         * modules/math (Makefile.am): Substitute GNULIB_LOG10, REPLACE_LOG10.
2488         * modules/log10 (Files): Add lib/log10.c.
2489         (Depends-on): Add math.
2490         (configure.ac): If REPLACE_LOG10 is 1, compile an override.
2491         * tests/test-math-c++.cc: Check the declaration of log10.
2492         * doc/posix-functions/log10.texi: Mention the OSF/1 5.1 problem.
2493
2494 2012-03-31  Bruno Haible  <bruno@clisp.org>
2495
2496         log10l tests: More tests.
2497         * modules/log10l-tests (Files): Add tests/test-log10l.h,
2498         tests/minus-zero.h, tests/randoml.c.
2499         (Makefile.am): Add randoml.c to test_log10l_SOURCES.
2500         * tests/test-log10l.c: Include <float.h>, minus-zero.h, test-log10l.h.
2501         (main): Invoke test_function.
2502
2503         log10f tests: More tests.
2504         * modules/log10f-tests (Files): Add tests/test-log10.h,
2505         tests/minus-zero.h, tests/randomf.c.
2506         (Makefile.am): Add randomf.c to test_log10f_SOURCES.
2507         * tests/test-log10f.c: Include <float.h>, minus-zero.h, test-log10.h.
2508         (main): Invoke test_function.
2509
2510         log10 tests: More tests.
2511         * tests/test-log10.h: New file.
2512         * modules/log10-tests (Files): Add tests/test-log10.h,
2513         tests/minus-zero.h, tests/randomd.c.
2514         (Makefile.am): Add randomd.c to test_log10_SOURCES.
2515         * tests/test-log10.c: Include <float.h>, minus-zero.h, test-log10.h.
2516         (main): Invoke test_function.
2517
2518 2012-03-31  Simon Josefsson  <simon@josefsson.org>
2519
2520         fflush: Fix syntax error.
2521         * lib/fflush.c: Include unused-parameter.h, needed for
2522         _GL_UNUSED_PARAMETER.
2523         * modules/fflush (Depends-on): Add snippet/unused-parameter.
2524
2525 2012-03-30  Paul Eggert  <eggert@cs.ucla.edu>
2526
2527         regex: pacify GCC when compiling GRUB
2528         * lib/regcomp.c (init_dfa): Make a pointer 'const', to avoid
2529         a diagnostic.  Reported by Vladimir Serbinenko in
2530         <http://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00163.html>.
2531
2532 2012-03-29  Eric Blake  <eblake@redhat.com>
2533
2534         stdio: don't assume gets any more
2535         * m4/stdio_h.m4 (gl_STDIO_H, gl_STDIO_H_DEFAULTS): Drop gets
2536         support.
2537         * modules/stdio (Makefile.am): Likewise.
2538         * lib/stdio-read.c (gets): Likewise.
2539         * tests/test-stdio-c++.cc: Likewise.
2540         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix comment.
2541         * lib/stdio.in.h (gets): Make warning occur in more places.
2542         * doc/posix-functions/gets.texi (gets): Update documentation.
2543         Reported by Christer Solskogen.
2544
2545         maint.mk: fix syntax checks without exclusions
2546         * top/maint.mk (_sc_search_regexp): Allow for empty variable.
2547         Reported by Daniel P. Berrange.
2548
2549         strerror_r: avoid compiler warning
2550         * lib/strerror_r.c (strerror_r): Hoist extern declaration to top
2551         level.
2552
2553         fflush: avoid compiler warning
2554         * lib/fflush.c (update_fpos_cache): Mark variables that are
2555         potentially unused.
2556
2557 2012-03-25  Bruno Haible  <bruno@clisp.org>
2558
2559         Tests for module 'localeconv'.
2560         * modules/localeconv-tests: New file.
2561         * tests/test-localeconv.c: New file.
2562
2563         New module 'localeconv'.
2564         * lib/locale.in.h (localeconv): New declaration.
2565         * lib/localeconv.c: New file.
2566         * m4/localeconv.m4: New file.
2567         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_LOCALECONV,
2568         REPLACE_LOCALECONV.
2569         * modules/locale (Makefile.am): Substitute GNULIB_LOCALECONV,
2570         REPLACE_LOCALECONV.
2571         * modules/localeconv: New file.
2572         * modules/nl_langinfo (Depends-on): Add localeconv.
2573         * modules/human (Depends-on): Likewise.
2574         * doc/posix-functions/localeconv.texi: Mention the new module.
2575
2576 2012-03-25  Bruno Haible  <bruno@clisp.org>
2577
2578         locale: Provide a complete 'struct lconv'.
2579         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2580         'struct lconv' does not contain int_p_cs_precedes.
2581         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2582         * doc/posix-headers/locale.texi: Update.
2583
2584         locale: Provide a complete 'struct lconv' on Solaris 10, 11.
2585         * m4/locale_h.m4 (gl_LOCALE_H): On Solaris, define _LCONV_C99.
2586         * doc/posix-headers/locale.texi: Update.
2587
2588         locale: Provide a working 'struct lconv'.
2589         * lib/locale.in.h (lconv): Override if REPLACE_STRUCT_LCONV is 1.
2590         * m4/locale_h.m4 (gl_LOCALE_H): Set REPLACE_STRUCT_LCONV to 1 if
2591         'struct lconv' does not even contain decimal_point.
2592         (gl_LOCALE_H_DEFAULTS): Initialize REPLACE_STRUCT_LCONV.
2593         * modules/locale (Makefile.am): Substitute REPLACE_STRUCT_LCONV.
2594         * tests/test-locale.c (main): Check that 'struct lconv' is complete.
2595         * doc/posix-headers/locale.texi: Mention the problems with
2596         'struct lconv'.
2597         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
2598
2599 2012-03-24  Bruno Haible  <bruno@clisp.org>
2600
2601         Enable common subexpression optimization in GCC.
2602         * lib/unitypes.in.h (_UC_ATTRIBUTE_CONST, _UC_ATTRIBUTE_PURE): New
2603         macros.
2604         * lib/unicase.in.h (uc_toupper, uc_tolower, uc_totitle): Declare with
2605         GCC attribute 'const'.
2606         (uc_locale_language): Declare with GCC attribute 'pure'.
2607         * lib/unicase/caseprop.h (uc_is_cased, uc_is_case_ignorable): Declare
2608         with GCC attribute 'const'.
2609         * lib/unictype.in.h (uc_is_general_category_withtable,
2610         uc_combining_class, uc_combining_class_name,
2611         uc_combining_class_long_name, uc_bidi_class_name,
2612         uc_bidi_category_name, uc_bidi_class_long_name, uc_bidi_class,
2613         uc_bidi_category, uc_is_bidi_class, uc_is_bidi_category,
2614         uc_decimal_value, uc_digit_value, uc_numeric_value,
2615         uc_joining_type_name, uc_joining_type_long_name, uc_joining_type,
2616         uc_joining_group_name, uc_joining_group, uc_is_property_*, uc_script,
2617         uc_block, uc_is_c_whitespace, uc_is_java_whitespace,
2618         uc_c_ident_category, uc_java_ident_category, uc_is_alnum, uc_is_alpha,
2619         uc_is_cntrl, uc_is_digit, uc_is_graph, uc_is_lower, uc_is_print,
2620         uc_is_punct, uc_is_space, uc_is_upper, uc_is_xdigit, uc_is_blank):
2621         Declare with GCC attribute 'const'.
2622         (uc_general_category_name, uc_general_category_long_name,
2623         uc_general_category_byname, uc_general_category,
2624         uc_is_general_category, uc_combining_class_byname,
2625         uc_bidi_class_byname, uc_bidi_category_byname, uc_joining_type_byname,
2626         uc_joining_group_byname, uc_script_byname, uc_is_script, uc_is_block):
2627         Declare with GCC attribute 'pure'.
2628         * lib/unigbrk.in.h (uc_graphemeclusterbreak_property,
2629         uc_is_grapheme_break, u8_grapheme_next, u16_grapheme_next,
2630         u32_grapheme_next, u8_grapheme_prev, u16_grapheme_prev,
2631         u32_grapheme_prev, lib/uniname.in.h (unicode_name_character): Declare
2632         with GCC attribute 'pure'.
2633         * lib/uninorm.in.h (uc_composition): Declare with GCC attribute
2634         'const'.
2635         (uninorm_decomposing_form): Declare with GCC attribute 'pure'.
2636         * lib/unistr.in.h (): Declare with GCC attribute 'const'.
2637         (u8_check, u16_check, u32_check, u8_mblen, u16_mblen, u32_mblen,
2638         u8_cmp, u16_cmp, u32_cmp, u8_cmp2, u16_cmp2, u32_cmp2, u8_chr, u16_chr,
2639         u32_chr, u8_mbsnlen, u16_mbsnlen, u32_mbsnlen, u8_strmblen,
2640         u16_strmblen, u32_strmblen, u8_strlen, u16_strlen, u32_strlen,
2641         u8_strnlen, u16_strnlen, u32_strnlen, u8_strcmp_gnu, u8_strcmp,
2642         u16_strcmp, u32_strcmp, u8_strncmp, u16_strncmp, u32_strncmp,
2643         u8_strchr, u16_strchr, u32_strchr, u8_strrchr, u16_strrchr,
2644         u32_strrchr, u8_strcspn, u16_strcspn, u32_strcspn, u8_strspn,
2645         u16_strspn, u32_strspn, u8_strpbrk, u16_strpbrk, u32_strpbrk,
2646         u8_strstr, u16_strstr, u32_strstr, u8_startswith, u16_startswith,
2647         u32_startswith, u8_endswith, u16_endswith, u32_endswith): Declare with
2648         GCC attribute 'pure'.
2649         * lib/uniwbrk.in.h (uc_wordbreak_property): Declare with GCC attribute
2650         'const'.
2651         * lib/uniwidth.in.h (uc_width): Simplify declaration.
2652         (u8_width, u16_width, u32_width, u8_strwidth, u16_strwidth,
2653         u32_strwidth): Declare with GCC attribute 'pure'.
2654
2655         Enable common subexpression optimization in GCC.
2656         * lib/dirent.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2657         (alphasort): Declare with GCC attribute 'pure'.
2658         * lib/stdlib.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2659         (atoll): Declare with GCC attribute 'pure'.
2660         * lib/string.in.h (mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
2661         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
2662         mbsspn, strverscmp): Declare with GCC attribute 'pure'.
2663         * lib/wchar.in.h (_GL_ATTRIBUTE_PURE): Define, like in string.in.h.
2664         (btowc, wctob, wcwidth, wmemchr, wmemcmp, wcslen, wcsnlen, wcscmp,
2665         wcsncmp, wcscasecmp, wcsncasecmp, wcschr, wcsrchr, wcscspn, wcsspn,
2666         wcspbrk, wcsstr, wcswidth): Declare with GCC attribute 'pure'.
2667
2668 2012-03-24  Bruno Haible  <bruno@clisp.org>
2669
2670         gnulib-tool: Avoid unintended error output from 'cmp'.
2671         * gnulib-tool (func_add_file, func_update_file, func_import): Use
2672         "cmp -s", not "cmp > /dev/null".
2673
2674 2012-03-23  Stefano Lattarini  <stefano.lattarini@gmail.com>
2675
2676         gnulib-tool: fix imprecise comments w.r.t. an automake bug
2677
2678         It's not just Automake versions < 1.9b that creates an empty
2679         pkgdatadir at installation time if pkgdata_DATA is specified
2680         to empty; modern automake versions do this as well, at least
2681         until automake 1.11.4 (not yet released at the moment of writing,
2682         but soon to appear).  That behaviour was generally considered a
2683         feature rather than a bug, at least until this discussion:
2684         <http://lists.gnu.org/archive/html/automake/2012-03/msg00014.html>
2685
2686         See also automake bugs #10997 and #11030.
2687
2688         * gnulib-tool (func_emit_lib_Makefile_am): Adjust comments.  Add
2689         reference to relevant automake bug numbers.
2690         (func_emit_tests_Makefile_am): Likewise.
2691
2692 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2693
2694         announce-gen: use Digest::SHA when possible
2695         * build-aux/announce-gen: Use Digest::SHA when possible, falling
2696         back to Digest::SHA1 if necessary.
2697
2698 2012-03-20  Jim Meyering  <meyering@redhat.com>
2699
2700         tests: avoid gcc warnings about argv vs. const initializers
2701         * tests/test-posix_spawn1.c (main): Cast to "(char *)" to avoid two
2702         warnings about discarding 'const' qualifier from pointer target type.
2703         * tests/test-posix_spawn2.c (main): Likewise.
2704
2705 2012-03-20  Reuben Thomas  <rrt@sc3d.org>
2706
2707         README-release: simplify slightly
2708         * top/README-release: Run "git checkout master" only once.
2709
2710 2012-03-15  Mark Wielaard  <mark@klomp.org>
2711
2712         git-merge-changelog: add specific example on how to use with hg.
2713         * lib/git-merge-changelog.c: Add example on how to use in .hgrc.
2714
2715 2012-03-18  Mark Wielaard  <mark@klomp.org>
2716
2717         lib/git-merge-changelog.c (status): Report bugs to bug-gnulib@gnu.org.
2718
2719 2012-03-18  Andreas Oberritter  <obi@opendreambox.org>
2720
2721         git-version-gen: don't let "prefix" envvar cause trouble
2722         * build-aux/git-version-gen (prefix): Initialize properly,
2723         so as not to use a value specified via the environment.
2724         Details here: http://thread.gmane.org/gmane.comp.gnu.parted.bugs/10810
2725
2726 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2727
2728         regex: diagnose too-large repeat counts in EREs
2729         Previously, the code did not diagnose the too-large repeat count
2730         in EREs like 'b{1000000000}'; instead, it silently treated the ERE
2731         as if it were 'b\{1000000000}', which is unexpected.
2732         * lib/regcomp.c (parse_dup_op): Fail with REG_ESIZE if a repeat count
2733         is too large.  REG_ESIZE is used nowhere else, and the diagnostic
2734         is a reasonable one for this problem.  Another option would be to
2735         create a new REG_OVERFLOW error for repeat counts that are too large.
2736         (fetch_number): Return RE_DUP_MAX + 1, not REG_ERROR, if the repeat
2737         count is too large, so that the caller can distinguish the two cases.
2738         * lib/regex.h (_REG_ESIZE): Document that this is now a generic
2739         "Too large" return code, and that repeat counts are one example of this.
2740
2741 2012-03-16  Paul Eggert  <eggert@cs.ucla.edu>
2742
2743         doc: some glibc x32 integer width issues
2744         * doc/posix-headers/sys_types.texi (sys/types.h):
2745         * doc/posix-headers/time.texi (time.h):
2746         Mention that glibc x32 does not conform to POSIX in a couple of
2747         areas related to integer widths.
2748
2749 2012-03-15  Bruno Haible  <bruno@clisp.org>
2750
2751         fmal: Avoid test failure on OpenBSD 5.1/SPARC64.
2752         * lib/fma.c (VOLATILE): New macro.
2753         (FUNC): Use it to work around a GCC compiler bug.
2754
2755 2012-03-13  Bruno Haible  <bruno@clisp.org>
2756
2757         hypotl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2758         * m4/hypotl.m4 (gl_FUNC_HYPOTL_WORKS): New macro.
2759         (gl_FUNC_HYPOTL): Invoke it. If the function does not work, set
2760         REPLACE_HYPOTL to 1.
2761         * doc/posix-functions/hypotl.texi: Mention the OpenBSD 5.1/SPARC bug.
2762
2763 2012-03-13  Bruno Haible  <bruno@clisp.org>
2764
2765         remainderl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2766         * m4/remainderl.m4 (gl_FUNC_REMAINDERL_WORKS): New macro.
2767         (gl_FUNC_REMAINDERL): Invoke it. If the function does not work, set
2768         REPLACE_REMAINDERL to 1.
2769         * doc/posix-functions/remainderl.texi: Mention the OpenBSD 5.1/SPARC
2770         bug.
2771
2772 2012-03-13  Bruno Haible  <bruno@clisp.org>
2773
2774         sqrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2775         * lib/math.in.h (sqrtl): Replace it if REPLACE_SQRTL is 1.
2776         * m4/sqrtl.m4 (gl_FUNC_SQRTL_WORKS): New macro.
2777         (gl_FUNC_SQRTL): Invoke it. Set REPLACE_SQRTL to 1 if sqrtl() produces
2778         too big rounding errors.
2779         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_SQRTL.
2780         * modules/math (Makefile.am): Substitute REPLACE_SQRTL.
2781         * modules/sqrtl (configure.ac): Consider REPLACE_SQRTL.
2782         (Depends-on): Update conditions.
2783         * tests/test-sqrtl.c (my_ldexpl): New function.
2784         (main): Add test of a particular value.
2785         * doc/posix-functions/sqrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2786
2787 2012-03-13  Pádraig Brady  <P@draigBrady.com>
2788
2789         doc: Update timer_* platform portability notes.
2790         * doc/posix-functions/timer_create.texi: Add platforms (OpenBSD 4.9)
2791         that always return ENOSYS.
2792         * doc/posix-functions/timer_delete.texi: Likewise.
2793         * doc/posix-functions/timer_gettime.texi: Likewise.
2794         * doc/posix-functions/timer_settime.texi: Likewise.
2795
2796 2012-03-13  Bruno Haible  <bruno@clisp.org>
2797
2798         cbrtl: Bypass broken implementation in OpenBSD 5.1/SPARC.
2799         * m4/cbrtl.m4 (gl_FUNC_CBRTL_WORKS): New macro.
2800         (gl_FUNC_CBRTL): Invoke it. If the function does not work, set
2801         REPLACE_CBRTL to 1.
2802         * doc/posix-functions/cbrtl.texi: Mention the OpenBSD 5.1/SPARC bug.
2803
2804 2012-03-13  Bruno Haible  <bruno@clisp.org>
2805
2806         remainderl: Avoid compilation error on AIX >= 5.2.
2807         * lib/math.in.h (remainderl): Undefine macro from the system header.
2808
2809 2012-03-13  Bruno Haible  <bruno@clisp.org>
2810
2811         Avoid compilation errors with MSVC option -fp:strict.
2812         * lib/cbrt.c: Use MSVC specific pragma fenv_access.
2813         * lib/cbrtf.c: Likewise.
2814         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
2815
2816 2012-03-12  Bruno Haible  <bruno@clisp.org>
2817
2818         uninorm: Don't crash in out-of-memory conditions.
2819         * lib/uninorm/u-normalize-internal.h (FUNC): Handle malloc() failure
2820         gracefully.
2821         * lib/uninorm/uninorm-filter.c (uninorm_filter_write): Likewise.
2822         Based on a report and patch by Stephen Gallagher <sgallagh@redhat.com>.
2823
2824 2012-03-13  Akim Demaille  <akim@lrde.epita.fr>
2825
2826         quote: fix syntax-check
2827         * top/maint.mk (sc_prohibit_quote_without_use): quote.h
2828         also exports quote_quoting_options.
2829
2830 2012-03-12  Simon Josefsson  <simon@josefsson.org>
2831
2832         Collapse list of copyright years to ranges.  See
2833         <https://lists.gnu.org/archive/html/bug-gnulib/2012-03/msg00051.html>.
2834         * build-aux/bootstrap.conf, build-aux/csharpcomp.sh.in,
2835         build-aux/csharpexec.sh.in, build-aux/gnupload,
2836         build-aux/install-reloc, build-aux/javacomp.sh.in,
2837         build-aux/javaexec.sh.in, build-aux/ldd.sh.in,
2838         build-aux/move-if-change, build-aux/reloc-ldflags,
2839         build-aux/relocatable.sh.in, build-aux/x-to-1.in: Fix copyright.
2840
2841 2012-03-11  Bruno Haible  <bruno@clisp.org>
2842
2843         log2f-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2844         * m4/log2f-ieee.m4: New file.
2845         * m4/log2f.m4 (gl_FUNC_LOG2F): If gl_FUNC_LOG2F_IEEE is present, test
2846         whether log2f works with a minus zero argument. Replace it if not.
2847         * modules/log2f-ieee (Files): Add m4/log2f-ieee.m4.
2848         (Depends-on): Add log2-ieee.
2849         (configure.ac): Invoke gl_FUNC_LOG2F_IEEE.
2850         * doc/posix-functions/log2f.texi: Mention the log2f-ieee module.
2851
2852         log2-ieee: Work around test failure on NetBSD 5.1 and Solaris 10.
2853         * m4/log2-ieee.m4: New file.
2854         * m4/log2.m4 (gl_FUNC_LOG2): If gl_FUNC_LOG2_IEEE is present, test
2855         whether log2 works with a minus zero argument. Replace it if not.
2856         * modules/log2-ieee (Files): Add m4/log2-ieee.m4.
2857         (configure.ac): Invoke gl_FUNC_LOG2_IEEE.
2858         * doc/posix-functions/log2.texi: Mention the log2-ieee module.
2859
2860         Tests for module 'log2l-ieee'.
2861         * modules/log2l-ieee-tests: New file.
2862         * tests/test-log2l-ieee.c: New file.
2863
2864         New module 'log2l-ieee'.
2865         * modules/log2l-ieee: New file.
2866
2867         Tests for module 'log2-ieee'.
2868         * modules/log2-ieee-tests: New file.
2869         * tests/test-log2-ieee.c: New file.
2870
2871         New module 'log2-ieee'.
2872         * modules/log2-ieee: New file.
2873
2874         Tests for module 'log2f-ieee'.
2875         * modules/log2f-ieee-tests: New file.
2876         * tests/test-log2f-ieee.c: New file.
2877         * tests/test-log2-ieee.h: New file.
2878
2879         New module 'log2f-ieee'.
2880         * modules/log2f-ieee: New file.
2881
2882 2012-03-11  Bruno Haible  <bruno@clisp.org>
2883
2884         Tests for module 'log2l'.
2885         * modules/log2l-tests: New file.
2886         * tests/test-log2l.c: New file.
2887
2888         New module 'log2l'.
2889         * lib/math.in.h (log2l): New declaration.
2890         * lib/log2l.c: New file.
2891         * m4/log2l.m4: New file.
2892         * m4/math_h.m4 (gl_MATH_H): Test whether log2l is declared.
2893         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2L, HAVE_DECL_LOG2L,
2894         REPLACE_LOG2L.
2895         * modules/math (Makefile.am): Substitute GNULIB_LOG2L, HAVE_DECL_LOG2L,
2896         REPLACE_LOG2L.
2897         * modules/log2l: New file.
2898         * tests/test-math-c++.cc: Check the declaration of log2l.
2899         * doc/posix-functions/log2l.texi: Mention the new module and the IRIX
2900         and OSF/1 problems.
2901
2902 2012-03-11  Bruno Haible  <bruno@clisp.org>
2903
2904         Tests for module 'log2f'.
2905         * modules/log2f-tests: New file.
2906         * tests/test-log2f.c: New file.
2907
2908         New module 'log2f'.
2909         * lib/math.in.h (log2f): New declaration.
2910         * lib/log2f.c: New file.
2911         * m4/log2f.m4: New file.
2912         * m4/math_h.m4 (gl_MATH_H): Test whether log2f is declared.
2913         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2F, HAVE_DECL_LOG2F,
2914         REPLACE_LOG2F.
2915         * modules/math (Makefile.am): Substitute GNULIB_LOG2F, HAVE_DECL_LOG2F,
2916         REPLACE_LOG2F.
2917         * modules/log2f: New file.
2918         * tests/test-math-c++.cc: Check the declaration of log2f.
2919         * doc/posix-functions/log2f.texi: Mention the new module and the IRIX
2920         and OSF/1 and Cygwin problems.
2921
2922 2012-03-11  Bruno Haible  <bruno@clisp.org>
2923
2924         Tests for module 'log2'.
2925         * modules/log2-tests: New file.
2926         * tests/test-log2.c: New file.
2927         * tests/test-log2.h: New file.
2928
2929         New module 'log2'.
2930         * lib/math.in.h (log2): New declaration.
2931         * lib/log2.c: New file.
2932         * m4/log2.m4: New file.
2933         * m4/math_h.m4 (gl_MATH_H): Test whether log2 is declared.
2934         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG2, HAVE_DECL_LOG2,
2935         REPLACE_LOG2.
2936         * modules/math (Makefile.am): Substitute GNULIB_LOG2, HAVE_DECL_LOG2,
2937         REPLACE_LOG2.
2938         * modules/log2: New file.
2939         * tests/test-math-c++.cc: Check the declaration of log2.
2940         * doc/posix-functions/log2.texi: Mention the new module and the IRIX
2941         and OSF/1 and Cygwin problems.
2942
2943 2012-03-11  Bruno Haible  <bruno@clisp.org>
2944
2945         exp2* tests: More tests.
2946         * tests/test-exp2.h (test_function): Test all integral arguments that
2947         don't need to overflow or denormalized numbers.
2948         * tests/test-exp2.c (MAX_EXP, MIN_EXP): New macros.
2949         * tests/test-exp2f.c (MAX_EXP, MIN_EXP): Likewise.
2950         * tests/test-exp2l.c (MAX_EXP, MIN_EXP): Likewise.
2951
2952 2012-03-10  Bruno Haible  <bruno@clisp.org>
2953
2954         log1pl-ieee: Work around test failure on AIX 7.1.
2955         * modules/log1pl-ieee (Depends-on): Add log1p-ieee.
2956
2957         log1pl-ieee: Work around test failure on IRIX 6.5.
2958         * m4/log1pl-ieee.m4: New file.
2959         * m4/log1pl.m4 (gl_FUNC_LOG1PL): If gl_FUNC_LOG1PL_IEEE is present,
2960         test whether log1pl works with a minus zero argument. Replace it if
2961         not.
2962         * lib/math.in.h (log1pl): Override if REPLACE_LOG1PL is 1.
2963         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1PL.
2964         * modules/math (Makefile.am): Substitute REPLACE_LOG1PL.
2965         * modules/log1pl (configure.ac): Consider REPLACE_LOG1PL.
2966         (Depends-on): Update conditions.
2967         * modules/log1pl-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2968         m4/signbit.m4.
2969         (configure.ac): Invoke gl_FUNC_LOG1PL_IEEE.
2970         * doc/posix-functions/log1pl.texi: Mention the log1pl-ieee module.
2971
2972         log1pf-ieee: Work around test failure on OpenBSD 4.9 and AIX 7.1.
2973         * m4/log1pf-ieee.m4: New file.
2974         * m4/log1pf.m4 (gl_FUNC_LOG1PF): If gl_FUNC_LOG1PF_IEEE is present,
2975         test whether log1pf works with a minus zero argument. Replace it if
2976         not.
2977         * modules/log1pf-ieee (Files): Add m4/log1pf-ieee.m4, m4/minus-zero.m4,
2978         m4/signbit.m4.
2979         (configure.ac): Invoke gl_FUNC_LOG1PF_IEEE.
2980         * doc/posix-functions/log1pf.texi: Mention the log1pf-ieee module.
2981
2982         log1pf-ieee: Work around test failure on AIX 5.1 and HP-UX 11.
2983         * modules/log1pf-ieee (Depends-on): Add log1p-ieee.
2984         (configure.ac): Require gl_FUNC_LOG1PF.
2985
2986         log1p-ieee: Work around test failure on AIX 7.1 and HP-UX 11.
2987         * m4/log1p-ieee.m4: New file.
2988         * m4/log1p.m4 (gl_FUNC_LOG1P): If gl_FUNC_LOG1P_IEEE is present, test
2989         whether log1p works with a minus zero argument. Replace it if not.
2990         * lib/math.in.h (log1p): Override if REPLACE_LOG1P is 1.
2991         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOG1P.
2992         * modules/math (Makefile.am): Substitute REPLACE_LOG1P.
2993         * modules/log1p (configure.ac): Consider REPLACE_LOG1P.
2994         (Depends-on): Update conditions.
2995         * modules/log1p-ieee (Files): Add m4/log1p-ieee.m4, m4/minus-zero.m4,
2996         m4/signbit.m4.
2997         (configure.ac): Invoke gl_FUNC_LOG1P_IEEE.
2998         * doc/posix-functions/log1p.texi: Mention the log1p-ieee module.
2999
3000         Tests for module 'log1pl-ieee'.
3001         * modules/log1pl-ieee-tests: New file.
3002         * tests/test-log1pl-ieee.c: New file.
3003
3004         New module 'log1pl-ieee'.
3005         * modules/log1pl-ieee: New file.
3006
3007         Tests for module 'log1p-ieee'.
3008         * modules/log1p-ieee-tests: New file.
3009         * tests/test-log1p-ieee.c: New file.
3010
3011         New module 'log1p-ieee'.
3012         * modules/log1p-ieee: New file.
3013
3014         Tests for module 'log1pf-ieee'.
3015         * modules/log1pf-ieee-tests: New file.
3016         * tests/test-log1pf-ieee.c: New file.
3017         * tests/test-log1p-ieee.h: New file.
3018
3019         New module 'log1pf-ieee'.
3020         * modules/log1pf-ieee: New file.
3021
3022 2012-03-10  Bruno Haible  <bruno@clisp.org>
3023
3024         Tests for module 'log1pl'.
3025         * modules/log1pl-tests: New file.
3026         * tests/test-log1pl.c: New file.
3027
3028         New module 'log1pl'.
3029         * lib/math.in.h (log1pl): New declaration.
3030         * lib/log1pl.c: New file.
3031         * m4/log1pl.m4: New file.
3032         * m4/math_h.m4 (gl_MATH_H): Test whether log1pl is declared.
3033         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PL, HAVE_LOG1PL.
3034         * modules/math (Makefile.am): Substitute GNULIB_LOG1PL, HAVE_LOG1PL.
3035         * modules/log1pl: New file.
3036         * tests/test-math-c++.cc: Check the declaration of log1pl.
3037         * doc/posix-functions/log1pl.texi: Mention the new module.
3038
3039 2012-03-10  Bruno Haible  <bruno@clisp.org>
3040
3041         Tests for module 'log1pf'.
3042         * modules/log1pf-tests: New file.
3043         * tests/test-log1pf.c: New file.
3044
3045         New module 'log1pf'.
3046         * lib/math.in.h (log1pf): New declaration.
3047         * lib/log1pf.c: New file.
3048         * m4/log1pf.m4: New file.
3049         * m4/math_h.m4 (gl_MATH_H): Test whether log1pf is declared.
3050         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1PF, HAVE_LOG1PF,
3051         REPLACE_LOG1PF.
3052         * modules/math (Makefile.am): Substitute GNULIB_LOG1PF, HAVE_LOG1PF,
3053         REPLACE_LOG1PF.
3054         * modules/log1pf: New file.
3055         * tests/test-math-c++.cc: Check the declaration of log1pf.
3056         * doc/posix-functions/log1pf.texi: Mention the new module.
3057
3058 2012-03-10  Bruno Haible  <bruno@clisp.org>
3059
3060         log1p tests: More tests.
3061         * tests/test-log1p.h: New file.
3062         * modules/log1p-tests (Files): Add tests/test-log1p.h, tests/randomd.c.
3063         (Makefile.am): Add randomd.c to test_log1p_SOURCES.
3064         * tests/test-log1p.c: Include <float.h> and test-log1p.h.
3065         (main): Invoke test_function.
3066
3067         log1p: Provide replacement for Minix and MSVC.
3068         * lib/math.in.h (log1p): New declaration.
3069         * lib/log1p.c: New file.
3070         * m4/log1p.m4: New file.
3071         * m4/math_h.m4 (gl_MATH_H): Test whether log1p is declared.
3072         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG1P, HAVE_LOG1P.
3073         * modules/math (Makefile.am): Substitute GNULIB_LOG1P, HAVE_LOG1P.
3074         * modules/log1p (Files): Add lib/log1p.c, m4/log1p.m4.
3075         (Depends-on): Add math, isnand, log, round.
3076         (configure.ac): Invoke gl_FUNC_LOG1P. Arrange to compile replacement if
3077         HAVE_LOG1P is 0.
3078         * tests/test-math-c++.cc: Check the declaration of log1p.
3079         * doc/posix-functions/log1p.texi: Mention the replacement.
3080
3081 2012-03-10  Bruno Haible  <bruno@clisp.org>
3082
3083         math tests: Small simplification.
3084         * tests/test-exp.h (test_function): Use the same err_bound for
3085         'double' on platforms with sizeof (long double) == sizeof (double)
3086         than on platforms with sizeof (long double) > sizeof (double).
3087         * tests/test-exp2.h (test_function): Likewise.
3088         * tests/test-expm1.h (test_function): Likewise.
3089         * tests/test-log.h (test_function): Likewise.
3090
3091 2012-03-10  Bruno Haible  <bruno@clisp.org>
3092
3093         Fix some comments.
3094         * lib/expl.c: Fix an ambiguous comment.
3095         * lib/expm1.c: Likewise.
3096         * lib/expm1l.c: Likewise.
3097         * lib/exp2.c: Likewise.
3098         * lib/exp2l.c: Likewise.
3099
3100 2012-03-10  Paul Eggert  <eggert@cs.ucla.edu>
3101
3102         regex: allow inclusion of <regex.h> before <limits.h>
3103         Without this patch, portable programs had to include <limits.h> before
3104         <regex.h> if they wanted a consistent value for RE_DUP_MAX.
3105         I ran into this problem with a test version of GNU grep on Solaris 8.
3106         * lib/regex.h: Include <limits.h> if _REGEX_INCLUDE_LIMITS_H.
3107         This is done conditionally so that this change can be merged
3108         back to glibc.
3109         * m4/regex.m4 (gl_REGEX): Define _REGEX_INCLUDE_LIMITS_H if
3110         using the included regex.
3111
3112         fts: depend on fdopendir
3113         * modules/fts (Depends-on): Depend on fdopendir.  This is needed
3114         on Solaris 8, at least, since it lacks fdopendir.  Evidently the
3115         problem was introduced when fdopendir was split out.
3116
3117 2012-03-10  Bruno Haible  <bruno@clisp.org>
3118
3119         Remove unused variables.
3120         * m4/fmodf.m4 (gl_FUNC_FMODF): Remove unused variable 'i'.
3121         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3122
3123 2012-03-10  Bruno Haible  <bruno@clisp.org>
3124
3125         isnanf-nolibm: Fix last commit.
3126         * lib/isnanf-nolibm.h [IRIX]: Don't include <ieeefp.h>. Declare isnanf.
3127
3128         isnanf-nolibm: Make it work on IRIX 6.5 with cc.
3129         * lib/isnanf-nolibm.h [IRIX]: Include <ieeefp.h>.
3130
3131 2012-03-10  Bruno Haible  <bruno@clisp.org>
3132
3133         logf-ieee: Work around test failure on NetBSD 5.1.
3134         * m4/logf-ieee.m4: New file.
3135         * m4/logf.m4 (gl_FUNC_LOGF): If gl_FUNC_LOGF_IEEE is present, test
3136         whether logf works with a negative argument. Replace it if not.
3137         * lib/logf.c (logf): For negative arguments, return NaN.
3138         * modules/logf-ieee (Files): Add m4/logf-ieee.m4.
3139         (configure.ac): Invoke gl_FUNC_LOGF_IEEE.
3140         * doc/posix-functions/logf.texi: Mention the logf-ieee module.
3141
3142         logf-ieee: Work around test failure on Solaris 9.
3143         * modules/logf-ieee (Depends-on): Add log-ieee.
3144         (configure.ac): Require gl_FUNC_LOGF.
3145
3146         log-ieee: Work around test failure on NetBSD 5.1 and Solaris 11.
3147         * m4/log-ieee.m4: New file.
3148         * m4/log.m4 (gl_FUNC_LOG): If gl_FUNC_LOG_IEEE is present, test whether
3149         log works with a negative argument. Replace it if not.
3150         * lib/log.c (log): For negative arguments, return NaN.
3151         * modules/log-ieee (Files): Add m4/log-ieee.m4.
3152         (configure.ac): Invoke gl_FUNC_LOG_IEEE.
3153         * doc/posix-functions/log.texi: Mention the log-ieee module.
3154
3155         Tests for module 'logl-ieee'.
3156         * modules/logl-ieee-tests: New file.
3157         * tests/test-logl-ieee.c: New file.
3158
3159         New module 'logl-ieee'.
3160         * modules/logl-ieee: New file.
3161
3162         Tests for module 'log-ieee'.
3163         * modules/log-ieee-tests: New file.
3164         * tests/test-log-ieee.c: New file.
3165
3166         New module 'log-ieee'.
3167         * modules/log-ieee: New file.
3168
3169         Tests for module 'logf-ieee'.
3170         * modules/logf-ieee-tests: New file.
3171         * tests/test-logf-ieee.c: New file.
3172         * tests/test-log-ieee.h: New file.
3173
3174         New module 'logf-ieee'.
3175         * modules/logf-ieee: New file.
3176
3177 2012-03-10  Bruno Haible  <bruno@clisp.org>
3178
3179         log: Fix bug introduced on 2012-03-09.
3180         * m4/log.m4 (gl_FUNC_LOG): Require gl_MATH_H_DEFAULTS.
3181
3182 2012-03-10  Pádraig Brady  <P@draigBrady.com>
3183
3184         timer-time: link explicitly with pthreads on glibc
3185         * m4/timer_time.m4 (LIB_TIMER_TIME): Add -lpthread
3186         to support static linking, when newer glibc is
3187         detected, as that contains pthread emulation of
3188         POSIX timer functions where required.
3189         * modules/timer-time: Depend on threadlib to
3190         pull in the appropriate library to link.
3191
3192 2012-03-10  Bruno Haible  <bruno@clisp.org>
3193
3194         log* tests: More tests.
3195         * tests/test-log.h: New file.
3196         * tests/test-log.c: Include <float.h>, minus-zero.h, test-log.h.
3197         (main): Invoke test_function.
3198         * tests/test-logf.c: Include <float.h>, minus-zero.h, test-log.h.
3199         (main): Invoke test_function.
3200         * tests/test-logl.c: Include <float.h>, minus-zero.h, test-log.h.
3201         (main): Invoke test_function.
3202         * modules/log-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3203         tests/randomd.c.
3204         (Makefile.am): Add randomd.c to test_log_SOURCES.
3205         * modules/logf-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3206         tests/randomf.c.
3207         (Makefile.am): Add randomf.c to test_logf_SOURCES.
3208         * modules/logl-tests (Files): Add tests/test-log.h, tests/minus-zero.h,
3209         tests/randoml.c.
3210         (Depends-on): Add 'float'.
3211         (Makefile.am): Add randoml.c to test_logl_SOURCES.
3212
3213 2012-03-09  Bruno Haible  <bruno@clisp.org>
3214
3215         logl: Work around OSF/1 5.1 bug.
3216         * lib/math.in.h (logl): Override if REPLACE_LOGL is 1.
3217         * lib/logl.c (logl): If logl exists, use it and provide just the
3218         workaround.
3219         * m4/logl.m4 (gl_FUNC_LOGL_WORKS): New macro.
3220         (gl_FUNC_LOGL): Invoke it. Set REPLACE_LOGL.
3221         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGL.
3222         * modules/math (Makefile.am): Substitute REPLACE_LOGL.
3223         * modules/logl (configure.ac): Consider REPLACE_LOGL.
3224         (Depends-on): Update conditions.
3225         * doc/posix-functions/logl.texi: Mention the OSF/1 5.1 problem.
3226
3227 2012-03-09  Bruno Haible  <bruno@clisp.org>
3228
3229         logf: Work around OSF/1 5.1 bug.
3230         * lib/math.in.h (logf): Override if REPLACE_LOGF is 1.
3231         * lib/logf.c (logf): If logf exists, use it and provide just the
3232         workaround.
3233         * m4/logf.m4 (gl_FUNC_LOGF_WORKS): New macro.
3234         (gl_FUNC_LOGF): Invoke it. Set REPLACE_LOGF.
3235         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_LOGF.
3236         * modules/math (Makefile.am): Substitute REPLACE_LOGF.
3237         * modules/logf (configure.ac): Consider REPLACE_LOGF.
3238         (Depends-on): Update conditions.
3239         * doc/posix-functions/logf.texi: Mention the OSF/1 5.1 problem.
3240
3241 2012-03-09  Bruno Haible  <bruno@clisp.org>
3242
3243         log: Work around OSF/1 5.1 bug.
3244         * lib/math.in.h (log): New declaration.
3245         * lib/log.c: New file.
3246         * m4/log.m4 (gl_FUNC_LOG_WORKS): New macro.
3247         (gl_FUNC_LOG): Invoke it. Set REPLACE_LOG.
3248         * m4/math_h.m4 (gl_MATH_H): Test whether log is declared.
3249         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG, REPLACE_LOG.
3250         * modules/math (Makefile.am): Substitute GNULIB_LOG, REPLACE_LOG.
3251         * modules/log (Files): Add lib/log.c.
3252         (Depends-on): Add math.
3253         (configure.ac): If REPLACE_LOG is 1, compile an override.
3254         * tests/test-math-c++.cc: Check the declaration of log.
3255         * doc/posix-functions/log.texi: Mention the OSF/1 5.1 problem.
3256
3257 2012-03-09  Jim Meyering  <meyering@redhat.com>
3258
3259         readtokens.c: adjust wording in a comment
3260         * lib/readtokens.c: Insert omitted "that" in a comment.
3261
3262 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3263
3264         modechange: add notations +40, 00440, etc.
3265         * lib/modechange.c (mode_compile): Support new notations
3266         +40, -40, =440, 00440.  See <http://debbugs.gnu.org/8391>.
3267
3268 2012-03-08  Bruno Haible  <bruno@clisp.org>
3269
3270         exp2l-ieee: Work around test failure on OpenBSD 4.9 and IRIX 6.5.
3271         * m4/exp2l-ieee.m4: New file.
3272         * m4/exp2l.m4 (gl_FUNC_EXP2L): If gl_FUNC_EXP2L_IEEE is present,
3273         test whether exp2l works with a NaN argument and with a negative
3274         infinity argument. Replace it if not.
3275         * lib/math.in.h (exp2l): Override if REPLACE_EXP2L is 1.
3276         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXP2L.
3277         * modules/math (Makefile.am): Substitute REPLACE_EXP2L.
3278         * modules/exp2l (configure.ac): Consider REPLACE_EXP2L.
3279         (Depends-on): Update conditions.
3280         * modules/exp2l-ieee (Files): Add m4/exp2l-ieee.m4.
3281         (configure.ac): Invoke gl_FUNC_EXP2L_IEEE.
3282         * doc/posix-functions/exp2l.texi: Mention the exp2l-ieee module.
3283
3284         Tests for module 'exp2l-ieee'.
3285         * modules/exp2l-ieee-tests: New file.
3286         * tests/test-exp2l-ieee.c: New file.
3287
3288         New module 'exp2l-ieee'.
3289         * modules/exp2l-ieee: New file.
3290
3291         Tests for module 'exp2-ieee'.
3292         * modules/exp2-ieee-tests: New file.
3293         * tests/test-exp2-ieee.c: New file.
3294
3295         New module 'exp2-ieee'.
3296         * modules/exp2-ieee: New file.
3297
3298         Tests for module 'exp2f-ieee'.
3299         * modules/exp2f-ieee-tests: New file.
3300         * tests/test-exp2f-ieee.c: New file.
3301         * tests/test-exp2-ieee.h: New file.
3302
3303         New module 'exp2f-ieee'.
3304         * modules/exp2f-ieee: New file.
3305
3306 2012-03-08  Bruno Haible  <bruno@clisp.org>
3307
3308         Tests for module 'exp2l'.
3309         * modules/exp2l-tests: New file.
3310         * tests/test-exp2l.c: New file.
3311
3312         New module 'exp2l'.
3313         * lib/math.in.h (exp2l): New declaration.
3314         * lib/exp2l.c: New file.
3315         * lib/expl-table.c: New file, extracted from lib/expl.c.
3316         * lib/expl.c (gl_expl_table): New declaration.
3317         (expl): Remove expl_table. Update reference.
3318         * m4/exp2l.m4: New file.
3319         * m4/math_h.m4 (gl_MATH_H): Test whether exp2l is declared.
3320         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2L, HAVE_DECL_EXP2L.
3321         * modules/math (Makefile.am): Substitute GNULIB_EXP2L, HAVE_DECL_EXP2L.
3322         * modules/exp2l: New file.
3323         * modules/expl (Files): Add lib/expl-table.c.
3324         (configure.ac): Compile also expl-table.c.
3325         * tests/test-math-c++.cc: Check the declaration of exp2l.
3326         * doc/posix-functions/exp2l.texi: Mention the new module and the IRIX
3327         problem.
3328
3329 2012-03-08  Bruno Haible  <bruno@clisp.org>
3330
3331         Tests for module 'exp2f'.
3332         * modules/exp2f-tests: New file.
3333         * tests/test-exp2f.c: New file.
3334
3335         New module 'exp2f'.
3336         * lib/math.in.h (exp2f): New declaration.
3337         * lib/exp2f.c: New file.
3338         * m4/exp2f.m4: New file.
3339         * m4/math_h.m4 (gl_MATH_H): Test whether exp2f is declared.
3340         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2F, HAVE_DECL_EXP2F.
3341         * modules/math (Makefile.am): Substitute GNULIB_EXP2F, HAVE_DECL_EXP2F.
3342         * modules/exp2f: New file.
3343         * tests/test-math-c++.cc: Check the declaration of exp2f.
3344         * doc/posix-functions/exp2f.texi: Mention the new module and the
3345         IRIX problem.
3346
3347 2012-03-08  Bruno Haible  <bruno@clisp.org>
3348
3349         Tests for module 'exp2'.
3350         * modules/exp2-tests: New file.
3351         * tests/test-exp2.c: New file.
3352         * tests/test-exp2.h: New file.
3353
3354         New module 'exp2'.
3355         * lib/math.in.h (exp2): New declaration.
3356         * lib/exp2.c: New file.
3357         * m4/exp2.m4: New file.
3358         * m4/math_h.m4 (gl_MATH_H): Test whether exp2 is declared.
3359         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXP2, HAVE_DECL_EXP2,
3360         REPLACE_EXP2.
3361         * modules/math (Makefile.am): Substitute GNULIB_EXP2, HAVE_DECL_EXP2,
3362         REPLACE_EXP2.
3363         * modules/exp2: New file.
3364         * tests/test-math-c++.cc: Check the declaration of exp2.
3365         * doc/posix-functions/exp2.texi: Mention the new module and the IRIX
3366         and OpenBSD problems.
3367
3368 2012-03-08  Paul Eggert  <eggert@cs.ucla.edu>
3369
3370         savedir: fix comment typo
3371         * lib/savedir.c (savedirstream): Fix typo in comment.
3372
3373 2012-03-08  Bruno Haible  <bruno@clisp.org>
3374
3375         test-readtokens.c: use const; remove unwarranted cast
3376         * tests/test-readtokens.c: Declare delim to be const, to avoid a cast.
3377
3378 2012-03-08  Bruno Haible  <bruno@clisp.org>
3379
3380         fmal: Avoid compilation error on AIX.
3381         * lib/math.in.h (fmal): Undefine macro before declaration. Needed on
3382         AIX 5.2..7.1.
3383
3384 2012-03-08  Bruno Haible  <bruno@clisp.org>
3385
3386         fma, fmaf, fmal: Override undeclared system functions on IRIX 6.5.
3387         * m4/fma.m4 (gl_FUNC_FMA): If fma() exists but is not declared,
3388         arrange to set REPLACE_FMA=1, not HAVE_FMA=0.
3389         * m4/fmaf.m4 (gl_FUNC_FMAF): If fmaf() exists but is not declared,
3390         arrange to set REPLACE_FMAF=1, not HAVE_FMAF=0.
3391         * m4/fmal.m4 (gl_FUNC_FMAL): If fmal() exists but is not declared,
3392         arrange to set REPLACE_FMAL=1, not HAVE_FMAL=0.
3393
3394 2012-03-08  Bruno Haible  <bruno@clisp.org>
3395
3396         remainderf: Override buggy system function on IRIX 6.5.
3397         * m4/remainderf.m4 (gl_FUNC_REMAINDERF_WORKS): New macro.
3398         (gl_FUNC_REMAINDERF): Invoke it. Don't assume remainderf() is declared
3399         when it exists.
3400         * doc/posix-functions/remainderf.texi: Mention the IRIX problems.
3401
3402 2012-03-08  Jim Meyering  <meyering@redhat.com>
3403
3404         test-readtokens.c: avoid const-related compilation warnings
3405         * tests/test-readtokens.c: Avoid const-related compilation warnings.
3406
3407 2012-03-07  Jim Meyering  <meyering@redhat.com>
3408             Bruno Haible  <bruno@clisp.org>
3409
3410         frexp-nolibm, frexpl-nolibm tests: Fix bug introduced on 2012-03-03.
3411         * modules/frexp-nolibm-tests (Files): Add tests/test-frexp.h,
3412         tests/randomd.c.
3413         (Makefile.am): Add randomd.c to test_frexp_nolibm_SOURCES.
3414         * modules/frexpl-nolibm-tests (Files): Add tests/test-frexp.h,
3415         tests/randoml.c.
3416         (Makefile.am): Add randoml.c to test_frexpl_nolibm_SOURCES.
3417
3418 2012-03-07  Bruno Haible  <bruno@clisp.org>
3419
3420         expm1l: Avoid compilation error on AIX.
3421         * lib/math.in.h (expm1l): Undefine macro before declaration. Needed on
3422         AIX 5.2..7.1.
3423
3424 2012-03-07  Bruno Haible  <bruno@clisp.org>
3425
3426         expm1l: Don't override undeclared system function on IRIX 6.5.
3427         * lib/math.in.h (expm1l): Test HAVE_DECL_EXPM1L, not HAVE_EXPM1L.
3428         * m4/expm1l.m4 (gl_FUNC_EXPM1L): Don't assume expm1l() is declared when
3429         it exists. Set HAVE_DECL_EXPM1L.
3430         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_EXPM1L, not
3431         HAVE_EXPM1L.
3432         * modules/math (Makefile.am): Substitute HAVE_DECL_EXPM1L, not
3433         HAVE_EXPM1L.
3434         * doc/posix-functions/expm1l.texi: Mention missing declaration problem.
3435
3436 2012-03-07  Bruno Haible  <bruno@clisp.org>
3437
3438         remainderl: Don't override undeclared system function on IRIX 6.5.
3439         * lib/math.in.h (remainderl): Test HAVE_DECL_REMAINDERL, not
3440         HAVE_REMAINDERL.
3441         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Don't assume remainderl() is
3442         declared when it exists. Set HAVE_DECL_REMAINDERL.
3443         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_REMAINDERL,
3444         not HAVE_REMAINDERL.
3445         * modules/math (Makefile.am): Substitute HAVE_DECL_REMAINDERL, not
3446         HAVE_REMAINDERL.
3447         * doc/posix-functions/remainderl.texi: Mention missing declaration
3448         problem.
3449
3450 2012-03-07  Bruno Haible  <bruno@clisp.org>
3451
3452         rintf: Don't override undeclared system function on IRIX 6.5.
3453         * lib/math.in.h (rintf): Test HAVE_DECL_RINTF, not HAVE_RINTF.
3454         * m4/rintf.m4 (gl_FUNC_RINTF): Don't assume rintf() is declared when it
3455         exists. Set HAVE_DECL_RINTF.
3456         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_RINTF, not
3457         HAVE_RINTF.
3458         * modules/math (Makefile.am): Substitute HAVE_DECL_RINTF, not
3459         HAVE_RINTF.
3460         * doc/posix-functions/rintf.texi: Mention missing declaration problem.
3461
3462 2012-03-07  Bruno Haible  <bruno@clisp.org>
3463
3464         roundl: Avoid compilation error on AIX.
3465         * lib/math.in.h (roundl): Undefine macro before declaration. Needed on
3466         AIX 5.2..7.1.
3467
3468 2012-03-07  Bruno Haible  <bruno@clisp.org>
3469
3470         roundl: Don't override undeclared system function on IRIX 6.5.
3471         * m4/roundl.m4 (gl_FUNC_ROUNDL): Search for roundl() in the libraries
3472         also when it is not declared. Set HAVE_ROUNDL. For replacement code,
3473         test HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3474         * modules/roundl (configure.ac): For replacement code, test
3475         HAVE_ROUNDL, not HAVE_DECL_ROUNDL.
3476         (Depends-on): Update conditions.
3477         * doc/posix-functions/roundl.texi: Mention the IRIX problem.
3478
3479 2012-03-07  Bruno Haible  <bruno@clisp.org>
3480
3481         roundf: Don't override undeclared system function on IRIX 6.5.
3482         * m4/roundf.m4 (gl_FUNC_ROUNDF): Search for roundf() in the libraries
3483         also when it is not declared. Set HAVE_ROUNDF. For replacement code,
3484         test HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3485         * modules/roundf (configure.ac): For replacement code, test
3486         HAVE_ROUNDF, not HAVE_DECL_ROUNDF.
3487         (Depends-on): Update conditions.
3488         * modules/roundf-ieee (Depends-on): Update conditions.
3489         * doc/posix-functions/roundf.texi: Mention the IRIX problem.
3490
3491 2012-03-07  Bruno Haible  <bruno@clisp.org>
3492
3493         round: Don't override undeclared system function on IRIX 6.5.
3494         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Accept an optional third
3495         argument.
3496         * m4/round.m4 (gl_FUNC_ROUND): Search for round() in the libraries
3497         also when it is not declared. Set HAVE_ROUND. For replacement code,
3498         test HAVE_ROUND, not HAVE_DECL_ROUND.
3499         * modules/round (configure.ac): For replacement code, test HAVE_ROUND,
3500         not HAVE_DECL_ROUND.
3501         (Depends-on): Update conditions.
3502         * modules/round-ieee (Depends-on): Update conditions.
3503         * doc/posix-functions/round.texi: Mention the IRIX problem.
3504
3505 2012-03-07  Bruno Haible  <bruno@clisp.org>
3506
3507         copysignf: Don't override undeclared system function on IRIX 6.5.
3508         * lib/math.in.h (copysignf): Test HAVE_DECL_COPYSIGNF, not
3509         HAVE_COPYSIGNF.
3510         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Don't assume copysignf() is
3511         declared when it exists. Set HAVE_DECL_COPYSIGNF.
3512         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_COPYSIGNF,
3513         not HAVE_COPYSIGNF.
3514         * modules/math (Makefile.am): Substitute HAVE_DECL_COPYSIGNF, not
3515         HAVE_COPYSIGNF.
3516         * doc/posix-functions/copysignf.texi: Mention missing declaration
3517         problem.
3518
3519 2012-03-07  Jim Meyering  <meyering@redhat.com>
3520
3521         readtokens: add tests
3522         * modules/readtokens-tests: New file.
3523         * tests/test-readtokens.c: New file.
3524
3525 2012-03-07  Jim Meyering  <meyering@redhat.com>
3526
3527         quotearg: the module must now include quote.h
3528         With commit v0.0-7133-g6417476, quotearg.c includes "quote.h".
3529         So must the module.
3530         * modules/quotearg (Files): Add quote.h.
3531
3532 2012-03-06  Paul Eggert  <eggert@cs.ucla.edu>
3533
3534         readtokens: avoid core dumps with unusual calling patterns
3535         Reported by Xu Zhongxing in <http://debbugs.gnu.org/10953>.
3536         * lib/readtokens.c: Include limits.h.
3537         (word, bits_per_word, get_nth_bit, set_nth_bit): New.
3538         (readtoken): Don't cache the delimiters; the cache code was buggy
3539         if !delim && saved_delim, or if the new n_delim differs from the old.
3540         Also, it wasn't thread-safe.
3541
3542 2012-03-07  Bruno Haible  <bruno@clisp.org>
3543
3544         quote: Adhere to common module description layout.
3545         * modules/quote (Makefile.am): Add back empty section.
3546
3547 2012-03-06  Akim Demaille  <demaille@gostai.com>
3548
3549         quote: fuse into quotearg
3550         This patch is made for the benefit of Bison.
3551         quote does not leave the choice of the quoting style to the user.
3552         quoting_style provides poor customizability, yet quoting_options,
3553         which is very rich, is hidden inside quotearg.c.  So in order to
3554         allow quote customization, move its implementation to quotearg.c.
3555         * lib/quote.c: Remove.
3556         * modules/quote: Adjust.
3557         * lib/quotearg.c (quoting_options_from_style): Fix a compiler
3558         warning: provide all the members of literal structs.
3559         (quote_quoting_options): New.
3560         (quote, quote_n): Import implementation from quote.c.
3561         * lib/quote.h: Import the comments from quote.c.
3562         (quote_quoting_options): New.
3563
3564 2012-03-06  Bruno Haible  <bruno@clisp.org>
3565
3566         Tests for module 'expm1l-ieee'.
3567         * modules/expm1l-ieee-tests: New file.
3568         * tests/test-expm1l-ieee.c: New file.
3569
3570         New module 'expm1l-ieee'.
3571         * modules/expm1l-ieee: New file.
3572
3573         Tests for module 'expm1f-ieee'.
3574         * modules/expm1f-ieee-tests: New file.
3575         * tests/test-expm1f-ieee.c: New file.
3576
3577         New module 'expm1f-ieee'.
3578         * modules/expm1f-ieee: New file.
3579
3580         Tests for module 'expm1-ieee'.
3581         * modules/expm1-ieee-tests: New file.
3582         * tests/test-expm1-ieee.c: New file.
3583         * tests/test-expm1-ieee.h: New file.
3584
3585         New module 'expm1-ieee'.
3586         * modules/expm1-ieee: New file.
3587         * m4/expm1-ieee.m4: New file.
3588         * m4/expm1.m4 (gl_FUNC_EXPM1): If gl_FUNC_EXPM1_IEEE is present, test
3589         whether expm1 works with a minus zero argument. Replace it if not.
3590         * lib/math.in.h (expm1): Override if REPLACE_EXPM1 is 1.
3591         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1.
3592         * modules/math (Makefile.am): Substitute REPLACE_EXPM1.
3593         * modules/expm1 (configure.ac): Consider REPLACE_EXPM1.
3594         (Depends-on): Update conditions.
3595         * doc/posix-functions/expm1.texi: Mention the expm1-ieee module and the
3596         AIX problem.
3597
3598 2012-03-06  Bruno Haible  <bruno@clisp.org>
3599
3600         Work around expm1f bug on IRIX 6.5.
3601         * lib/math.in.h (expm1f): Override if REPLACE_EXPM1F is 1.
3602         * m4/expm1f.m4 (gl_FUNC_EXPM1F_WORKS): New macro.
3603         (gl_FUNC_EXPM1F): Invoke it. Set REPLACE_EXPM1F to 1 if expm1f() does
3604         not work.
3605         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_EXPM1F.
3606         * modules/math (Makefile.am): Substitute REPLACE_EXPM1F.
3607         * modules/expm1f (configure.ac): Consider REPLACE_EXPM1F.
3608         (Depends-on): Update conditions.
3609         * doc/posix-functions/expm1f.texi: Mention the IRIX 6.5 bug.
3610
3611 2012-03-06  Bruno Haible  <bruno@clisp.org>
3612
3613         Tests for module 'expm1l'.
3614         * modules/expm1l-tests: New file.
3615         * tests/test-expm1l.c: New file.
3616
3617         New module 'expm1l'.
3618         * lib/math.in.h (expm1l): New declaration.
3619         * lib/expm1l.c: New file.
3620         * m4/expm1l.m4: New file.
3621         * m4/math_h.m4 (gl_MATH_H): Test whether expm1l is declared.
3622         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1L, HAVE_EXPM1L.
3623         * modules/math (Makefile.am): Substitute GNULIB_EXPM1L, HAVE_EXPM1L.
3624         * modules/expm1l: New file.
3625         * tests/test-math-c++.cc: Check the declaration of expm1l.
3626         * doc/posix-functions/expm1l.texi: Mention the new module.
3627
3628 2012-03-06  Bruno Haible  <bruno@clisp.org>
3629
3630         Tests for module 'expm1f'.
3631         * modules/expm1f-tests: New file.
3632         * tests/test-expm1f.c: New file.
3633
3634         New module 'expm1f'.
3635         * lib/math.in.h (expm1f): New declaration.
3636         * lib/expm1f.c: New file.
3637         * m4/expm1f.m4: New file.
3638         * m4/math_h.m4 (gl_MATH_H): Test whether expm1f is declared.
3639         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1F, HAVE_EXPM1F.
3640         * modules/math (Makefile.am): Substitute GNULIB_EXPM1F, HAVE_EXPM1F.
3641         * modules/expm1f: New file.
3642         * tests/test-math-c++.cc: Check the declaration of expm1f.
3643         * doc/posix-functions/expm1f.texi: Mention the new module.
3644
3645 2012-03-06  Bruno Haible  <bruno@clisp.org>
3646
3647         Tests for module 'expm1'.
3648         * modules/expm1-tests: New file.
3649         * tests/test-expm1.c: New file.
3650         * tests/test-expm1.h: New file.
3651
3652         New module 'expm1'.
3653         * lib/math.in.h (expm1): New declaration.
3654         * lib/expm1.c: New file.
3655         * m4/expm1.m4: New file.
3656         * m4/math_h.m4 (gl_MATH_H): Test whether expm1 is declared.
3657         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPM1, HAVE_EXPM1.
3658         * modules/math (Makefile.am): Substitute GNULIB_EXPM1, HAVE_EXPM1.
3659         * modules/expm1: New file.
3660         * tests/test-math-c++.cc: Check the declaration of expm1.
3661         * doc/posix-functions/expm1.texi: Mention the new module.
3662
3663 2012-03-06  Bruno Haible  <bruno@clisp.org>
3664
3665         math: Ensure declarations of math functions.
3666         * modules/acosf (Depends-on): Add 'extensions'.
3667         * modules/asinf (Depends-on): Likewise.
3668         * modules/atan2f (Depends-on): Likewise.
3669         * modules/atanf (Depends-on): Likewise.
3670         * modules/cbrt (Depends-on): Likewise.
3671         * modules/cbrtf (Depends-on): Likewise.
3672         * modules/cbrtl (Depends-on): Likewise.
3673         * modules/copysignf (Depends-on): Likewise.
3674         * modules/copysignl (Depends-on): Likewise.
3675         * modules/cosf (Depends-on): Likewise.
3676         * modules/coshf (Depends-on): Likewise.
3677         * modules/expf (Depends-on): Likewise.
3678         * modules/fabsf (Depends-on): Likewise.
3679         * modules/fabsl (Depends-on): Likewise.
3680         * modules/fmaf (Depends-on): Likewise.
3681         * modules/fmal (Depends-on): Likewise.
3682         * modules/fmodf (Depends-on): Likewise.
3683         * modules/fmodl (Depends-on): Likewise.
3684         * modules/frexpf (Depends-on): Likewise.
3685         * modules/frexpl (Depends-on): Likewise.
3686         * modules/hypot (Depends-on): Likewise.
3687         * modules/hypotf (Depends-on): Likewise.
3688         * modules/hypotl (Depends-on): Likewise.
3689         * modules/ldexpf (Depends-on): Likewise.
3690         * modules/ldexpl (Depends-on): Likewise.
3691         * modules/log10f (Depends-on): Likewise.
3692         * modules/log10l (Depends-on): Likewise.
3693         * modules/log1p (Depends-on): Likewise.
3694         * modules/logb (Depends-on): Likewise.
3695         * modules/logf (Depends-on): Likewise.
3696         * modules/modff (Depends-on): Likewise.
3697         * modules/modfl (Depends-on): Likewise.
3698         * modules/powf (Depends-on): Likewise.
3699         * modules/remainderf (Depends-on): Likewise.
3700         * modules/remainderl (Depends-on): Likewise.
3701         * modules/rintf (Depends-on): Likewise.
3702         * modules/rintl (Depends-on): Likewise.
3703         * modules/sinf (Depends-on): Likewise.
3704         * modules/sinhf (Depends-on): Likewise.
3705         * modules/sqrtf (Depends-on): Likewise.
3706         * modules/tanf (Depends-on): Likewise.
3707         * modules/tanhf (Depends-on): Likewise.
3708         * m4/acosf.m4 (gl_FUNC_ACOSF): Require gl_USE_SYSTEM_EXTENSIONS.
3709         * m4/asinf.m4 (gl_FUNC_ASINF): Likewise.
3710         * m4/atan2f.m4 (gl_FUNC_ATAN2F): Likewise.
3711         * m4/atanf.m4 (gl_FUNC_ATANF): Likewise.
3712         * m4/cbrt.m4 (gl_FUNC_CBRT): Likewise.
3713         * m4/cbrtf.m4 (gl_FUNC_CBRTF): Likewise.
3714         * m4/cbrtl.m4 (gl_FUNC_CBRTL): Likewise.
3715         * m4/copysignf.m4 (gl_FUNC_COPYSIGNF): Likewise.
3716         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Likewise.
3717         * m4/cosf.m4 (gl_FUNC_COSF): Likewise.
3718         * m4/coshf.m4 (gl_FUNC_COSHF): Likewise.
3719         * m4/expf.m4 (gl_FUNC_EXPF): Likewise.
3720         * m4/fabsf.m4 (gl_FUNC_FABSF): Likewise.
3721         * m4/fabsl.m4 (gl_FUNC_FABSL): Likewise.
3722         * m4/fmaf.m4 (gl_FUNC_FMAF): Likewise.
3723         * m4/fmal.m4 (gl_FUNC_FMAL): Likewise.
3724         * m4/fmodf.m4 (gl_FUNC_FMODF): Likewise.
3725         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
3726         * m4/frexpf.m4 (gl_FUNC_FREXPF): Likewise.
3727         * m4/frexpl.m4 (gl_FUNC_FREXPL): Likewise.
3728         * m4/hypot.m4 (gl_FUNC_HYPOT): Likewise.
3729         * m4/hypotf.m4 (gl_FUNC_HYPOTF): Likewise.
3730         * m4/hypotl.m4 (gl_FUNC_HYPOTL): Likewise.
3731         * m4/ldexpf.m4 (gl_FUNC_LDEXPF): Likewise.
3732         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
3733         * m4/log10f.m4 (gl_FUNC_LOG10F): Likewise.
3734         * m4/log10l.m4 (gl_FUNC_LOF10L): Likewise.
3735         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
3736         * m4/logf.m4 (gl_FUNC_LOGF): Likewise.
3737         * m4/modff.m4 (gl_FUNC_MODFF): Likewise.
3738         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
3739         * m4/powf.m4 (gl_FUNC_POWF): Likewise.
3740         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Likewise.
3741         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
3742         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
3743         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
3744         * m4/sinf.m4 (gl_FUNC_SINF): Likewise.
3745         * m4/sinhf.m4 (gl_FUNC_SINHF): Likewise.
3746         * m4/sqrtf.m4 (gl_FUNC_SQRTF): Likewise.
3747         * m4/tanf.m4 (gl_FUNC_TANF): Likewise.
3748         * m4/tanhf.m4 (gl_FUNC_TANHF): Likewise.
3749
3750 2012-03-06  Bruno Haible  <bruno@clisp.org>
3751
3752         math: Update module names in warnings.
3753         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
3754         tanl): Use specific module name in warn-on-use warning.
3755
3756 2012-03-06  Bruno Haible  <bruno@clisp.org>
3757
3758         expl: Simplify computation.
3759         * lib/expl.c (expl): Simplify computation of exp_y. Fix comment.
3760
3761 2012-03-05  Bruno Haible  <bruno@clisp.org>
3762
3763         exp* tests: More tests.
3764         * tests/test-exp.h: New file.
3765         * tests/test-exp.c: Include <float.h> and test-exp.h.
3766         (main): Invoke test_function.
3767         * tests/test-expf.c: Include <float.h> and test-exp.h.
3768         (main): Invoke test_function.
3769         * tests/test-expl.c: Include <float.h> and test-exp.h.
3770         (main): Invoke test_function.
3771         * modules/exp-tests (Files): Add tests/test-exp.h, tests/randomd.c.
3772         (Makefile.am): Add randomd.c to test_exp_SOURCES.
3773         * modules/expf-tests (Files): Add tests/test-exp.h, tests/randomf.c.
3774         (Makefile.am): Add randomf.c to test_expf_SOURCES.
3775         * modules/expl-tests (Files): Add tests/test-exp.h, tests/randoml.c.
3776         (Depends-on): Add 'float'.
3777         (Makefile.am): Add randoml.c to test_expl_SOURCES.
3778
3779         expl: Fix precision of computed result.
3780         * lib/expl.c: Completely rewritten.
3781         * modules/expl (Depends-on): Add isnanl, roundl, ldexpl. Remove floorl.
3782         (Maintainer): Add me.
3783         * m4/expl.m4 (gl_FUNC_EXPL): Update computation of EXPL_LIBM.
3784
3785 2012-03-05  Bruno Haible  <bruno@clisp.org>
3786
3787         cbrt* tests: More tests.
3788         * tests/test-cbrt.h: New file.
3789         * tests/test-cbrt.c: Include <float.h> and test-cbrt.h.
3790         (main): Invoke test_function.
3791         * tests/test-cbrtf.c: Include <float.h> and test-cbrt.h.
3792         (main): Invoke test_function.
3793         * tests/test-cbrtl.c: Include <float.h> and test-cbrt.h.
3794         (main): Invoke test_function.
3795         * modules/cbrt-tests (Files): Add tests/test-cbrt.h, tests/randomd.c.
3796         (Makefile.am): Add randomd.c to test_cbrt_SOURCES.
3797         * modules/cbrtf-tests (Files): Add tests/test-cbrt.h, tests/randomf.c.
3798         (Makefile.am): Add randomf.c to test_cbrtf_SOURCES.
3799         * modules/cbrtl-tests (Files): Add tests/test-cbrt.h, tests/randoml.c.
3800         (Depends-on): Add 'float'.
3801         (Makefile.am): Add randoml.c to test_cbrtl_SOURCES.
3802
3803 2012-03-05  Bruno Haible  <bruno@clisp.org>
3804
3805         hypot* tests: More tests.
3806         * tests/test-hypot.h: New file, partially extracted from
3807         tests/test-hypotl.c.
3808         * tests/test-hypot.c: Include test-hypot.h.
3809         (main): Invoke test_function.
3810         * tests/test-hypotf.c: Include test-hypot.h.
3811         (main): Invoke test_function.
3812         * tests/test-hypotl.c: Include fpucw.h and test-hypot.h.
3813         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING and test_function.
3814         * modules/hypot-tests (Files): Add tests/test-hypot.h, tests/randomd.c.
3815         (Makefile.am): Add randomd.c to test_hypot_SOURCES.
3816         * modules/hypotf-tests (Files): Add tests/test-hypot.h,
3817         tests/randomf.c.
3818         (Makefile.am): Add randomf.c to test_hypotf_SOURCES.
3819         * modules/hypotl-tests (Files): Add tests/test-hypot.h,
3820         tests/randoml.c.
3821         (Depends-on): Add 'fpucw', 'float'.
3822         (Makefile.am): Add randoml.c to test_hypotl_SOURCES.
3823
3824 2012-03-05  Bruno Haible  <bruno@clisp.org>
3825
3826         fpucw: Doc about FreeBSD.
3827         * lib/fpucw.h: Mention FreeBSD in comments.
3828
3829 2012-03-04  Bruno Haible  <bruno@clisp.org>
3830
3831         sqrt* tests: More tests.
3832         * tests/test-sqrt.h: New file.
3833         * tests/test-sqrt.c: Include <float.h> and test-sqrt.h.
3834         (main): Invoke test_function.
3835         * tests/test-sqrtf.c: Include <float.h> and test-sqrt.h.
3836         (main): Invoke test_function.
3837         * tests/test-sqrtl.c: Include <float.h> and test-sqrt.h.
3838         (main): Invoke test_function.
3839         * modules/sqrt-tests (Files): Add tests/test-sqrt.h, tests/randomd.c.
3840         (Makefile.am): Add randomd.c to test_sqrt_SOURCES.
3841         * modules/sqrtf-tests (Files): Add tests/test-sqrt.h, tests/randomf.c.
3842         (Makefile.am): Add randomf.c to test_sqrtf_SOURCES.
3843         * modules/sqrtl-tests (Files): Add tests/test-sqrt.h, tests/randoml.c.
3844         (Depends-on): Add 'float'.
3845         (Makefile.am): Add randoml.c to test_sqrtl_SOURCES.
3846
3847 2012-03-04  Bruno Haible  <bruno@clisp.org>
3848
3849         remainder* tests: More tests.
3850         * tests/test-remainder.h: New file, based on tests/test-fmod.h.
3851         * tests/test-remainder.c: Include <float.h> and test-remainder.h.
3852         (main): Invoke test_function.
3853         * tests/test-remainderf.c: Include <float.h> and test-remainder.h.
3854         (main): Invoke test_function.
3855         * tests/test-remainderl.c: Include <float.h> and test-remainder.h.
3856         (main): Invoke test_function.
3857         * modules/remainder-tests (Files): Add tests/test-remainder.h,
3858         tests/randomd.c.
3859         (Makefile.am): Add randomd.c to test_remainder_SOURCES.
3860         * modules/remainderf-tests (Files): Add tests/test-remainder.h,
3861         tests/randomf.c.
3862         (Makefile.am): Add randomf.c to test_remainderf_SOURCES.
3863         * modules/remainderl-tests (Files): Add tests/test-remainder.h,
3864         tests/randoml.c.
3865         (Depends-on): Add 'float'.
3866         (Makefile.am): Add randoml.c to test_remainderl_SOURCES.
3867
3868 2012-03-04  Bruno Haible  <bruno@clisp.org>
3869
3870         remainder, remainderf, remainderl: Fix computation for large quotients.
3871         * lib/remainder.c: Completely rewritten.
3872         * lib/remainderf.c (remainderf): Use implementation of remainder.c with
3873         USE_FLOAT.
3874         * lib/remainderl.c (remainderl): Use implementation of remainder.c with
3875         USE_LONG_DOUBLE.
3876         * modules/remainder (Depends-on): Add isfinite, signbit, fabs, fmod,
3877         isnand, isinf. Remove round, fma.
3878         * modules/remainderf (Files): Add lib/remainder.c.
3879         (Depends-on): Add isfinite, signbit, fabsf, fmodf, isnanf, isinf.
3880         Remove roundf, fmaf.
3881         * modules/remainderl (Files): Add lib/remainder.c.
3882         (Depends-on): Add float, isfinite, signbit, fabsl, fmodl, isnanl,
3883         isinf. Remove roundl, fmal.
3884         * m4/remainder.m4 (gl_FUNC_REMAINDER): Update computation of
3885         REMAINDER_LIBM.
3886         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): Update computation of
3887         REMAINDERF_LIBM.
3888         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Update computation of
3889         REMAINDERL_LIBM.
3890
3891 2012-03-04  Bruno Haible  <bruno@clisp.org>
3892
3893         fmod* tests: More tests.
3894         * tests/test-fmod.h (my_ldexp): New function.
3895         (test_function): Reduce amount of random numbers to test. Add tests
3896         of very large quotients x / y.
3897         * tests/test-fmod.c (MAX_EXP): New macro.
3898         * tests/test-fmodf.c (MAX_EXP): Likewise.
3899         * tests/test-fmodl.c (MAX_EXP): Likewise.
3900
3901 2012-03-04  Bruno Haible  <bruno@clisp.org>
3902
3903         fmod, fmodl: Fix computation for large quotients x / y.
3904         * lib/fmod.c: Completely rewritten.
3905         * lib/fmodl.c (fmodl): Use implementation of fmod.c with
3906         USE_LONG_DOUBLE.
3907         * modules/fmod (Depends-on): Add isfinite, signbit, fabs, frexp, ldexp,
3908         isnand. Remove fma.
3909         * modules/fmodl (Files): Add lib/fmod.c.
3910         (Depends-on): Add float, isfinite, signbit, fabsl,
3911         frexpl, ldexpl, isnanl. Remove fma.
3912         * m4/fmod.m4 (gl_FUNC_FMOD): Update computation of FMOD_LIBM.
3913         * m4/fmodl.m4 (gl_FUNC_FMODL): Update computation of FMODL_LIBM.
3914
3915 2012-03-03  Bruno Haible  <bruno@clisp.org>
3916
3917         fmod* tests: More tests.
3918         * tests/test-fmod.h: New file.
3919         * tests/test-fmod.c: Include <float.h> and test-fmod.h.
3920         (main): Invoke test_function.
3921         * tests/test-fmodf.c: Include <float.h> and test-fmod.h.
3922         (main): Invoke test_function.
3923         * tests/test-fmodl.c: Include <float.h> and test-fmod.h.
3924         (main): Invoke test_function.
3925         * modules/fmod-tests (Files): Add tests/test-fmod.h, tests/randomd.c.
3926         (Makefile.am): Add randomd.c to test_fmod_SOURCES.
3927         * modules/fmodf-tests (Files): Add tests/test-fmod.h, tests/randomf.c.
3928         (Makefile.am): Add randomf.c to test_fmodf_SOURCES.
3929         * modules/fmodl-tests (Files): Add tests/test-fmod.h, tests/randoml.c.
3930         (Depends-on): Add 'float'.
3931         (Makefile.am): Add randoml.c to test_fmodl_SOURCES.
3932
3933 2012-03-03  Bruno Haible  <bruno@clisp.org>
3934
3935         rint* tests: More tests.
3936         * tests/test-rint.h: New file, partially extracted from
3937         tests/test-rintl.c.
3938         * tests/test-rint.c: Include test-rint.h.
3939         (main): Invoke test_function.
3940         * tests/test-rintf.c: Include test-rint.h.
3941         (main): Invoke test_function.
3942         * tests/test-rintl.c: Include test-rint.h.
3943         (main): Invoke test_function.
3944         * modules/rint-tests (Files): Add tests/test-rint.h, tests/randomd.c.
3945         (Makefile.am): Add randomd.c to test_rint_SOURCES.
3946         * modules/rintf-tests (Files): Add tests/test-rint.h, tests/randomf.c.
3947         (Makefile.am): Add randomf.c to test_rintf_SOURCES.
3948         * modules/rintl-tests (Files): Add tests/test-rint.h, tests/randoml.c.
3949         (Makefile.am): Add randoml.c to test_rintl_SOURCES.
3950
3951 2012-03-03  Bruno Haible  <bruno@clisp.org>
3952
3953         modf* tests: More tests.
3954         * tests/test-modf.h: New file.
3955         * tests/test-modf.c: Include <float.h> and test-modf.h.
3956         (main): Invoke test_function.
3957         * tests/test-modff.c: Include <float.h> and test-modf.h.
3958         (main): Invoke test_function.
3959         * tests/test-modfl.c: Include <float.h> and test-modf.h.
3960         (main): Invoke test_function.
3961         * modules/modf-tests (Files): Add tests/test-modf.h, tests/randomd.c.
3962         (Makefile.am): Add randomd.c to test_modf_SOURCES.
3963         * modules/modff-tests (Files): Add tests/test-modf.h, tests/randomf.c.
3964         (Makefile.am): Add randomf.c to test_modff_SOURCES.
3965         * modules/modfl-tests (Files): Add tests/test-modf.h, tests/randoml.c.
3966         (Depends-on): Add 'float'.
3967         (Makefile.am): Add randoml.c to test_modfl_SOURCES.
3968
3969 2012-03-03  Bruno Haible  <bruno@clisp.org>
3970
3971         fabs* tests: More tests.
3972         * tests/test-fabs.h: New file, partially extracted from
3973         tests/test-fabsl.c.
3974         * tests/test-fabs.c (RANDOM): New macro.
3975         * tests/test-fabsf.c (RANDOM): New macro.
3976         * tests/test-fabsl.c (RANDOM): New macro.
3977         * modules/fabs-tests (Files): Add tests/randomd.c.
3978         (Makefile.am): Add randomd.c to test_fabs_SOURCES.
3979         * modules/fabsf-tests (Files): Add tests/randomf.c.
3980         (Makefile.am): Add randomf.c to test_fabsf_SOURCES.
3981         * modules/fabsl-tests (Files): Add tests/randoml.c.
3982         (Makefile.am): Add randoml.c to test_fabsl_SOURCES.
3983
3984 2012-03-03  Bruno Haible  <bruno@clisp.org>
3985
3986         ldexp* tests: More tests.
3987         * tests/test-ldexp.h (test_function): Add some pseudo-randomized tests.
3988         * tests/test-ldexp.c (RANDOM): New macro.
3989         * tests/test-ldexpf.c (RANDOM): New macro.
3990         * tests/test-ldexpl.c (RANDOM): New macro.
3991         * modules/ldexp-tests (Files): Add tests/randomd.c.
3992         (Makefile.am): Add randomd.c to test_ldexp_SOURCES.
3993         * modules/ldexpf-tests (Files): Add tests/randomf.c.
3994         (Makefile.am): Add randomf.c to test_ldexpf_SOURCES.
3995         * modules/ldexpl-tests (Files): Add tests/randoml.c.
3996         (Makefile.am): Add randoml.c to test_ldexpl_SOURCES.
3997
3998 2012-03-03  Bruno Haible  <bruno@clisp.org>
3999
4000         frexp* tests: More tests.
4001         * tests/test-frexp.h (test_function): Add some pseudo-randomized tests.
4002         * tests/test-frexp.c (RANDOM): New macro.
4003         * tests/test-frexpf.c (RANDOM): New macro.
4004         * tests/test-frexpl.c (RANDOM): New macro.
4005         * modules/frexp-tests (Files): Add tests/randomd.c.
4006         (Makefile.am): Add randomd.c to test_frexp_SOURCES.
4007         * modules/frexpf-tests (Files): Add tests/randomf.c.
4008         (Makefile.am): Add randomf.c to test_frexpf_SOURCES.
4009         * modules/frexpl-tests (Files): Add tests/randoml.c.
4010         (Makefile.am): Add randoml.c to test_frexpl_SOURCES.
4011
4012 2012-03-03  Bruno Haible  <bruno@clisp.org>
4013
4014         Support for pseudo-random numbers in tests.
4015         * tests/randomf.c: New file.
4016         * tests/randomd.c: New file.
4017         * tests/randoml.c: New file.
4018         * tests/macros.h (randomf, randomd, randoml): New declarations.
4019
4020 2012-03-03  Bruno Haible  <bruno@clisp.org>
4021
4022         frexp* tests: Refactor.
4023         * tests/test-frexp.h: New file, extracted from tests/test-frexpl.c.
4024         * tests/test-frexp.c: Include and use it.
4025         * tests/test-frexpf.c: Likewise.
4026         * tests/test-frexpl.c: Likewise.
4027         * modules/frexp-tests (Files): Add tests/test-frexp.h.
4028         * modules/frexpf-tests (Files): Likewise.
4029         * modules/frexpl-tests (Files): Likewise.
4030
4031 2012-03-02  Jim Meyering  <meyering@redhat.com>
4032
4033         maint: don't specify XZ_OPT=-9ev in dist-related rule
4034         Using xz's -9 option is warranted only if you have a very large
4035         tarball (see xz's documentation for the sizes vs. presets), and
4036         requires 64MiB of memory at decompression time.
4037         * top/maint.mk (alpha beta stable): Don't specify XZ_OPT=-9ev.
4038         Automake's default of just "-e" is fine.  Override on a
4039         per-package basis by setting XZ_OPT e.g., in cfg.mk.
4040
4041 2012-03-01  Eric Blake  <eblake@redhat.com>
4042
4043         maint.mk: allow announcement for non-gnulib project
4044         * maint.mk (announcement): Skip gnulib version if not used.
4045
4046 2012-03-01  Jim Meyering  <meyering@redhat.com>
4047
4048         maint.mk: avoid spurious failure of _sc_search_regexp-using tests
4049         * top/maint.mk: Initialize _sc_search_regexp parameters, so that
4050         envvar settings cannot interfere.  Otherwise, setting envvars like
4051         prohibit=foo require=bar, etc. would cause spurious test failures.
4052
4053 2012-03-01  Eric Blake  <eblake@redhat.com>
4054
4055         maint.mk: add per-line exclusions to prohibitions
4056         * maint.mk (_sc_search_regexp): Add $exclude parameter.
4057         (sc_prohibit_strcmp, sc_unmarked_diagnostics)
4058         (sc_const_long_option): Use it.
4059
4060 2012-03-01  Bruno Haible  <bruno@clisp.org>
4061
4062         Tests for module 'expl-ieee'.
4063         * modules/expl-ieee-tests: New file.
4064         * tests/test-expl-ieee.c: New file.
4065
4066         New module 'expl-ieee'.
4067         * modules/expl-ieee: New file.
4068
4069         Tests for module 'exp-ieee'.
4070         * modules/exp-ieee-tests: New file.
4071         * tests/test-exp-ieee.c: New file.
4072
4073         New module 'exp-ieee'.
4074         * modules/exp-ieee: New file.
4075
4076         Tests for module 'expf-ieee'.
4077         * modules/expf-ieee-tests: New file.
4078         * tests/test-expf-ieee.c: New file.
4079         * tests/test-exp-ieee.h: New file.
4080
4081         New module 'expf-ieee'.
4082         * modules/expf-ieee: New file.
4083
4084 2012-02-29  Bruno Haible  <bruno@clisp.org>
4085
4086         cbrtl-ieee: Work around test failure on IRIX 6.5.
4087         * m4/cbrtl-ieee.m4: New file.
4088         * m4/cbrtl.m4 (gl_FUNC_CBRTL): If gl_FUNC_CBRTL_IEEE is present,
4089         test whether cbrtl works with a minus zero argument. Replace it if not.
4090         * lib/math.in.h (cbrtl): Override if REPLACE_CBRTL is 1.
4091         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTL.
4092         * modules/math (Makefile.am): Substitute REPLACE_CBRTL.
4093         * modules/cbrtl (configure.ac): Consider REPLACE_CBRTL.
4094         (Depends-on): Update conditions.
4095         * modules/cbrtl-ieee (Files): Add m4/cbrtl-ieee.m4, m4/minus-zero.m4,
4096         m4/signbit.m4.
4097         (configure.ac): Invoke gl_FUNC_CBRTL_IEEE.
4098         * lib/cbrtl.c (cbrtl) [IRIX]: Avoid an unnecessary addition.
4099         * doc/posix-functions/cbrtl.texi: Mention the cbrtl-ieee module.
4100
4101         Tests for module 'cbrtl-ieee'.
4102         * modules/cbrtl-ieee-tests: New file.
4103         * tests/test-cbrtl-ieee.c: New file.
4104
4105         New module 'cbrtl-ieee'.
4106         * modules/cbrtl-ieee: New file.
4107
4108         Tests for module 'cbrt-ieee'.
4109         * modules/cbrt-ieee-tests: New file.
4110         * tests/test-cbrt-ieee.c: New file.
4111
4112         New module 'cbrt-ieee'.
4113         * modules/cbrt-ieee: New file.
4114
4115         Tests for module 'cbrtf-ieee'.
4116         * modules/cbrtf-ieee-tests: New file.
4117         * tests/test-cbrtf-ieee.c: New file.
4118         * tests/test-cbrt-ieee.h: New file.
4119
4120         New module 'cbrtf-ieee'.
4121         * modules/cbrtf-ieee: New file.
4122
4123 2012-02-29  Bruno Haible  <bruno@clisp.org>
4124
4125         cbrtf: Work around bug in IRIX 6.5 system function.
4126         * lib/math.in.h (cbrtf): Override if REPLACE_CBRTF is 1.
4127         * m4/cbrtf.m4 (gl_FUNC_CBRTF_WORKS): New macro.
4128         (gl_FUNC_CBRTF): Invoke it. Set REPLACE_CBRTF to 1 if cbrtf() does not
4129         work.
4130         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_CBRTF.
4131         * modules/math (Makefile.am): Substitute REPLACE_CBRTF.
4132         * modules/cbrtf (configure.ac): Consider REPLACE_CBRTF.
4133         (Depends-on): Update conditions.
4134         * doc/posix-functions/cbrtf.texi: Mention the IRIX 6.5 problem.
4135
4136 2012-02-29  Bruno Haible  <bruno@clisp.org>
4137
4138         Tests for module 'cbrtl'.
4139         * modules/cbrtl-tests: New file.
4140         * tests/test-cbrtl.c: New file.
4141
4142         New module 'cbrtl'.
4143         * lib/math.in.h (cbrtl): New declaration.
4144         * lib/cbrtl.c: New file.
4145         * m4/cbrtl.m4: New file.
4146         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtl is declared.
4147         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTL, HAVE_CBRTL,
4148         HAVE_DECL_CBRTL.
4149         * modules/math (Makefile.am): Substitute GNULIB_CBRTL, HAVE_CBRTL,
4150         HAVE_DECL_CBRTL.
4151         * modules/cbrtl: New file.
4152         * tests/test-math-c++.cc: Check the declaration of cbrtl.
4153         * doc/posix-functions/cbrtl.texi: Mention the new module.
4154
4155 2012-02-29  Bruno Haible  <bruno@clisp.org>
4156
4157         Tests for module 'cbrtf'.
4158         * modules/cbrtf-tests: New file.
4159         * tests/test-cbrtf.c: New file.
4160
4161         New module 'cbrtf'.
4162         * lib/math.in.h (cbrtf): New declaration.
4163         * lib/cbrtf.c: New file.
4164         * m4/cbrtf.m4: New file.
4165         * m4/math_h.m4 (gl_MATH_H): Test whether cbrtf is declared.
4166         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRTF, HAVE_CBRTF,
4167         HAVE_DECL_CBRTF.
4168         * modules/math (Makefile.am): Substitute GNULIB_CBRTF, HAVE_CBRTF,
4169         HAVE_DECL_CBRTF.
4170         * modules/cbrtf: New file.
4171         * tests/test-math-c++.cc: Check the declaration of cbrtf.
4172         * doc/posix-functions/cbrtf.texi: Mention the new module.
4173
4174 2012-02-29  Bruno Haible  <bruno@clisp.org>
4175
4176         cbrt: Provide replacement on MSVC and Minix.
4177         * lib/math.in.h (cbrt): New declaration.
4178         * lib/cbrt.c: New file.
4179         * m4/cbrt.m4: New file.
4180         * m4/math_h.m4 (gl_MATH_H): Test whether cbrt is declared.
4181         (gl_MATH_H_DEFAULTS): Initialize GNULIB_CBRT, HAVE_CBRT.
4182         * modules/math (Makefile.am): Substitute GNULIB_CBRT, HAVE_CBRT.
4183         * modules/cbrt (Files): Add lib/cbrt.c, m4/cbrt.m4.
4184         (Depends-on): Add dependencies.
4185         (configure.ac): Arrange to compile replacement if HAVE_CBRT is 0.
4186         * tests/test-math-c++.cc: Check the declaration of cbrt.
4187         * doc/posix-functions/cbrt.texi: Mention that the module provides a
4188         replacement.
4189
4190 2012-02-29  Bruno Haible  <bruno@clisp.org>
4191
4192         hypotl-ieee: Work around test failure on OSF/1 and native Windows.
4193         * m4/hypotl-ieee.m4: New file.
4194         * m4/hypotl.m4 (gl_FUNC_HYPOTL): If gl_FUNC_HYPOTL_IEEE is present,
4195         test whether hypotl works with mixed NaN and Infinity arguments.
4196         Replace it if not.
4197         * lib/math.in.h (hypotl): Override if REPLACE_HYPOTL is 1.
4198         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_HYPOTL.
4199         * modules/math (Makefile.am): Substitute REPLACE_HYPOTL.
4200         * modules/hypotl (configure.ac): Consider REPLACE_HYPOTL.
4201         (Depends-on): Update conditions.
4202         * modules/hypotl-ieee (Files): Add m4/hypotl-ieee.m4.
4203         (Depends-on): Add hypot-ieee.
4204         (configure.ac): Invoke gl_FUNC_HYPOTL_IEEE.
4205         * doc/posix-functions/hypotl.texi: Mention the hypotl-ieee module.
4206
4207         hypotf-ieee: Work around test failure on OSF/1 and native Windows.
4208         * m4/hypotf-ieee.m4: New file.
4209         * m4/hypotf.m4 (gl_FUNC_HYPOTF): If gl_FUNC_HYPOTF_IEEE is present,
4210         test whether hypotf works with mixed NaN and Infinity arguments.
4211         Replace it if not.
4212         * modules/hypotf-ieee (Files): Add m4/hypotf-ieee.m4.
4213         (Depends-on): Add hypot-ieee.
4214         (configure.ac): Invoke gl_FUNC_HYPOTF_IEEE.
4215         * doc/posix-functions/hypotf.texi: Mention the hypotf-ieee module.
4216
4217         hypot-ieee: Work around test failure on OSF/1 and native Windows.
4218         * lib/math.in.h (hypot): New declaration.
4219         * lib/hypot.c: New file.
4220         * m4/hypot-ieee.m4: New file.
4221         * m4/hypot.m4 (gl_FUNC_HYPOT): If gl_FUNC_HYPOT_IEEE is present, test
4222         whether hypot works with mixed NaN and Infinity arguments. Replace it
4223         if not.
4224         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOT,
4225         REPLACE_HYPOT.
4226         * modules/math (Makefile.am): Substitute GNULIB_HYPOT, REPLACE_HYPOT.
4227         * modules/hypot (Files): Add lib/hypot.c.
4228         (Depends-on): Add dependencies.
4229         (configure.ac): Arrange to compile replacement if REPLACE_HYPOT is 1.
4230         * modules/hypot-ieee (Files): Add m4/hypot-ieee.m4.
4231         (configure.ac): Invoke gl_FUNC_HYPOT_IEEE.
4232         * tests/test-math-c++.cc: Check the declaration of hypot.
4233         * doc/posix-functions/hypot.texi: Mention the hypot-ieee module.
4234
4235         Tests for module 'hypotl-ieee'.
4236         * modules/hypotl-ieee-tests: New file.
4237         * tests/test-hypotl-ieee.c: New file.
4238
4239         New module 'hypotl-ieee'.
4240         * modules/hypotl-ieee: New file.
4241
4242         Tests for module 'hypot-ieee'.
4243         * modules/hypot-ieee-tests: New file.
4244         * tests/test-hypot-ieee.c: New file.
4245
4246         New module 'hypot-ieee'.
4247         * modules/hypot-ieee: New file.
4248
4249         Tests for module 'hypotf-ieee'.
4250         * modules/hypotf-ieee-tests: New file.
4251         * tests/test-hypotf-ieee.c: New file.
4252         * tests/test-hypot-ieee.h: New file.
4253
4254         New module 'hypotf-ieee'.
4255         * modules/hypotf-ieee: New file.
4256
4257 2012-02-29  Bruno Haible  <bruno@clisp.org>
4258
4259         Remove unused variables.
4260         * m4/fmod.m4 (gl_FUNC_FMOD): Remove unused variable 'i'.
4261         * m4/fmodl.m4 (gl_FUNC_FMODL): Likewise.
4262         * m4/remainder.m4 (gl_FUNC_REMAINDER): Likewise.
4263         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): Likewise.
4264
4265 2012-02-29  Eric Blake  <eblake@redhat.com>
4266
4267         termios: fix pid_t always, not just for tcgetsid
4268         * doc/posix-headers/termios.texi (termios.h): Mention problem.
4269         * lib/termios.in.h (include): Ensure pid_t on all platforms, not
4270         just when building tcgetsid.
4271
4272 2012-02-29  Bruno Haible  <bruno@clisp.org>
4273
4274         Tests for module 'hypotl'.
4275         * modules/hypotl-tests: New file.
4276         * tests/test-hypotl.c: New file.
4277
4278         New module 'hypotl'.
4279         * lib/math.in.h (hypotl): New declaration.
4280         * lib/hypotl.c: New file.
4281         * m4/hypotl.m4: New file.
4282         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4283         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTL, HAVE_HYPOTL.
4284         * modules/math (Makefile.am): Substitute GNULIB_HYPOTL, HAVE_HYPOTL.
4285         * modules/hypotl: New file.
4286         * tests/test-math-c++.cc: Check the hypotl declaration.
4287         * doc/posix-functions/hypotl.texi: Mention the new module.
4288
4289 2012-02-29  Eric Blake  <eblake@redhat.com>
4290
4291         tcgetsid: fix cygwin header bug
4292         * lib/termios.in.h (includes) [Cygwin]: Ensure pid_t is defined.
4293
4294         docs: update cygwin progress
4295         * doc/posix-functions/llround.texi (llround): Added in cygwin
4296         1.7.8.
4297         * doc/posix-functions/llroundf.texi (llroundf): Likewise.
4298         * doc/glibc-functions/program_invocation_name.texi
4299         (program_invocation_name): Likewise.
4300         * doc/glibc-functions/program_invocation_short_name.texi
4301         (program_invocation_short_name): Likewise.
4302         * doc/glibc-functions/madvise.texi (madvise): Likewise.
4303         * doc/glibc-functions/pthread_yield.texi (pthread_yield):
4304         Likewise.
4305         * doc/posix-functions/pthread_spin_destroy.texi
4306         (pthread_spin_destroy): Added in cygwin 1.7.10.
4307         * doc/posix-functions/pthread_spin_init.texi (pthread_spin_init):
4308         Likewise.
4309         * doc/posix-functions/pthread_spin_lock.texi (pthread_spin_lock):
4310         Likewise.
4311         * doc/posix-functions/pthread_spin_trylock.texi
4312         (pthread_spin_trylock): Likewise.
4313         * doc/posix-functions/pthread_spin_unlock.texi
4314         (pthread_spin_unlock): Likewise.
4315         * doc/posix-functions/pthread_setschedprio.texi
4316         (pthread_setschedprio): Likewise.
4317         * doc/posix-functions/pthread_attr_getstack.texi
4318         (pthread_attr_getstack): Likewise.
4319         * doc/pastposix-functions/pthread_attr_getstackaddr.texi
4320         (pthread_attr_getstackaddr): Likewise.
4321         * doc/glibc-functions/pthread_getattr_np.texi
4322         (pthread_getattr_np): Likewise.
4323         * doc/glibc-functions/sys_siglist.texi (sys_siglist): Likewise.
4324         * doc/glibc-functions/sysinfo.texi (sysinfo): Likewise.
4325         * doc/posix-functions/clock_settime.texi (clock_settime):
4326         Likewise.
4327         * doc/posix-functions/pthread_attr_getguardsize.texi
4328         (pthread_attr_getguardsize): Likewise.
4329         * doc/posix-functions/pthread_attr_setguardsize.texi
4330         (pthread_attr_setguardsize): Likewise.
4331         * doc/posix-functions/pthread_attr_setstack.texi
4332         (pthread_attr_setstack): Likewise.
4333         * doc/pastposix-functions/pthread_attr_setstackaddr.texi
4334         (pthread_attr_setstackaddr): Likewise.
4335         * doc/posix-functions/clock_getcpuclockid.texi
4336         (clock_getcpuclockid): Likewise.
4337         * doc/posix-functions/pthread_getcpuclockid.texi
4338         (pthread_getcpuclockid): Likewise.
4339         * doc/glibc-functions/error.texi (error): Likewise.
4340         * doc/glibc-functions/error_at_line.texi (error_at_line):
4341         Likewise.
4342         * doc/glibc-functions/error_message_count.texi
4343         (error_message_count): Likewise.
4344         * doc/glibc-functions/error_one_per_line.texi
4345         (error_one_per_line): Likewise.
4346         * doc/glibc-functions/error_print_progname.texi
4347         (error_print_progname): Likewise.
4348         * doc/posix-functions/pthread_condattr_getclock.texi
4349         (pthread_condattr_getclock): Likewise.
4350         * doc/posix-functions/pthread_condattr_setclock.texi
4351         (pthread_condattr_setclock): Likewise.
4352         * doc/posix-functions/clock_nanosleep.texi (clock_nanosleep):
4353         Likewise.
4354         * doc/glibc-functions/getgrouplist.texi (getgrouplist): Likewise.
4355         * doc/glibc-functions/getpt.texi (getpt): Likewise.
4356         * doc/glibc-functions/get_current_dir_name.texi
4357         (get_current_dir_name): Likewise.
4358         * doc/glibc-functions/pthread_sigqueue.texi (pthread_sigqueue):
4359         Likewise.
4360         * doc/posix-functions/tcgetsid.texi (tcgetsid): Likewise, but with
4361         wrong return type.
4362         * doc/glibc-functions/scandirat.texi (scandirat): Added in cygwin
4363         1.7.11.
4364
4365 2012-02-29  Bruno Haible  <bruno@clisp.org>
4366
4367         Tests for module 'hypotf'.
4368         * modules/hypotf-tests: New file.
4369         * tests/test-hypotf.c: New file.
4370
4371         New module 'hypotf'.
4372         * lib/math.in.h (hypotf): New declaration.
4373         * lib/hypotf.c: New file.
4374         * m4/hypotf.m4: New file.
4375         * m4/math_h.m4 (gl_MATH_H): Test whether hypotf is declared.
4376         (gl_MATH_H_DEFAULTS): Initialize GNULIB_HYPOTF, HAVE_HYPOTF,
4377         REPLACE_HYPOTF.
4378         * modules/math (Makefile.am): Substitute GNULIB_HYPOTF, HAVE_HYPOTF,
4379         REPLACE_HYPOTF.
4380         * modules/hypotf: New file.
4381         * tests/test-math-c++.cc: Check the hypotf declaration.
4382         * doc/posix-functions/hypotf.texi: Mention the new module.
4383
4384         hypot: Prepare for hypotf module.
4385         * m4/hypot.m4: New file.
4386         * modules/hypot (Files): Add m4/hypot.m4.
4387         (configure.ac): Invoke gl_FUNC_HYPOT.
4388
4389 2012-02-29  Bruno Haible  <bruno@clisp.org>
4390
4391         hypot tests: More tests.
4392         * tests/test-hypot.c: Include <float.h>.
4393         (main): Add tests about overflow and underflow.
4394
4395 2012-02-29  Bruno Haible  <bruno@clisp.org>
4396
4397         math code: Add comments.
4398         * lib/acosl.c: Add comment about related glibc source files.
4399         * lib/asinl.c: Likewise.
4400         * lib/atanl.c: Likewise.
4401         * lib/expl.c: Likewise.
4402         * lib/logl.c: Likewise.
4403         * lib/sincosl.c: Likewise.
4404         * lib/sinl.c: Likewise.
4405         * lib/tanl.c: Likewise.
4406         * lib/trigl.c: Likewise.
4407         * lib/cosl.c: Likewise. Fix comments.
4408
4409 2012-02-28  Bruno Haible  <bruno@clisp.org>
4410
4411         math: Ensure HUGE_VAL, HUGE_VALF, HUGE_VALL are defined.
4412         * lib/math.in.h (HUGE_VAL, HUGE_VALF, HUGE_VALL): Define fallbacks.
4413         * tests/test-math.c: Include macros.h. Check that HUGE_VAL, HUGE_VALF,
4414         HUGE_VALL are defined.
4415         (numeric_equald): Renamed from numeric_equal.
4416         (numeric_equalf, numeric_equall): New functions.
4417         (main): Check also HUGE_VALF, HUGE_VALL.
4418         * modules/math-tests (Files): Add tests/macros.h.
4419         * doc/posix-headers/math.texi: Document the problems with HUGE_VALF and
4420         HUGE_VALL.
4421
4422 2012-02-28  Bruno Haible  <bruno@clisp.org>
4423
4424         doc: Move ISO C11 feature notes into POSIX chapters.
4425         * doc/posix-functions/aligned_alloc.texi: Renamed from
4426         doc/glibc-functions/aligned_alloc.texi.
4427         * doc/posix-functions/quick_exit.texi: Renamed from
4428         doc/glibc-functions/quick_exit.texi.
4429         * doc/posix-headers/uchar.texi: Renamed from
4430         doc/glibc-headers/uchar.texi.
4431         * doc/posix-functions/c16rtomb.texi: Renamed from
4432         doc/glibc-functions/c16rtomb.texi.
4433         * doc/posix-functions/c32rtomb.texi: Renamed from
4434         doc/glibc-functions/c32rtomb.texi.
4435         * doc/posix-functions/mbrtoc16.texi: Renamed from
4436         doc/glibc-functions/mbrtoc16.texi.
4437         * doc/posix-functions/mbrtoc32.texi: Renamed from
4438         doc/glibc-functions/mbrtoc32.texi.
4439         * doc/gnulib.texi: Update.
4440         (Glibc uchar.h): Remove section.
4441         Suggested by Eric Blake.
4442
4443 2012-02-29  Paul Eggert  <eggert@cs.ucla.edu>
4444
4445         stdnoreturn: port to MSVC better
4446         MSVC standard headers use __declspec(noreturn), so #define noreturn
4447         to empty on that platform.  Reported by Bruno Haible in
4448         <http://lists.gnu.org/archive/html/bug-gnulib/2012-02/msg00152.html>.
4449         * lib/stdnoreturn.in.h (noreturn): Define to empty on MSVC.
4450         * doc/posix-headers/stdnoreturn.texi (stdnoreturn.h): Document this.
4451
4452 2012-02-28  Bruno Haible  <bruno@clisp.org>
4453
4454         doc: Mention new glibc headers and functions.
4455         * doc/glibc-headers/uchar.texi: New file.
4456         * doc/glibc-functions/aligned_alloc.texi: New file.
4457         * doc/glibc-functions/c16rtomb.texi: New file.
4458         * doc/glibc-functions/c32rtomb.texi: New file.
4459         * doc/glibc-functions/clock_adjtime.texi: New file.
4460         * doc/glibc-functions/fanotify_init.texi: New file.
4461         * doc/glibc-functions/fanotify_mark.texi: New file.
4462         * doc/glibc-functions/inet6_opt_append.texi: New file.
4463         * doc/glibc-functions/inet6_opt_find.texi: New file.
4464         * doc/glibc-functions/inet6_opt_finish.texi: New file.
4465         * doc/glibc-functions/inet6_opt_get_val.texi: New file.
4466         * doc/glibc-functions/inet6_opt_init.texi: New file.
4467         * doc/glibc-functions/inet6_opt_next.texi: New file.
4468         * doc/glibc-functions/inet6_opt_set_val.texi: New file.
4469         * doc/glibc-functions/inet6_rth_add.texi: New file.
4470         * doc/glibc-functions/inet6_rth_getaddr.texi: New file.
4471         * doc/glibc-functions/inet6_rth_init.texi: New file.
4472         * doc/glibc-functions/inet6_rth_reverse.texi: New file.
4473         * doc/glibc-functions/inet6_rth_segments.texi: New file.
4474         * doc/glibc-functions/inet6_rth_space.texi: New file.
4475         * doc/glibc-functions/login.texi: New file.
4476         * doc/glibc-functions/mbrtoc16.texi: New file.
4477         * doc/glibc-functions/mbrtoc32.texi: New file.
4478         * doc/glibc-functions/name_to_handle_at.texi: New file.
4479         * doc/glibc-functions/ntp_gettimex.texi: New file.
4480         * doc/glibc-functions/open_by_handle_at.texi: New file.
4481         * doc/glibc-functions/prlimit.texi: New file.
4482         * doc/glibc-functions/process_vm_readv.texi: New file.
4483         * doc/glibc-functions/process_vm_writev.texi: New file.
4484         * doc/glibc-functions/recvmmsg.texi: New file.
4485         * doc/glibc-functions/scandirat.texi: New file.
4486         * doc/glibc-functions/sendmmsg.texi: New file.
4487         * doc/glibc-functions/setns.texi: New file.
4488         * doc/glibc-functions/timespec_get.texi: New file.
4489         * doc/gnulib.texi: Include them.
4490         (Glibc sys/fanotify.h, Glibc sys/resource.h, Glibc uchar.h): New
4491         sections.
4492         Reported by Eric Blake.
4493
4494 2012-02-28  Bruno Haible  <bruno@clisp.org>
4495
4496         Avoid compilation errors with MSVC option -fp:strict.
4497         * lib/floor.c: Use MSVC specific pragma fenv_access.
4498         * lib/ceil.c: Likewise.
4499         * lib/trunc.c: Likewise.
4500         * lib/round.c: Likewise.
4501         * lib/rint.c: Likewise.
4502         * lib/fma.c: Likewise.
4503         * lib/integer_length.c: Likewise.
4504         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
4505         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
4506         * tests/test-floor2.c: Likewise.
4507         * tests/test-floorf2.c: Likewise.
4508         * tests/test-ceil2.c: Likewise.
4509         * tests/test-ceilf2.c: Likewise.
4510         * tests/test-trunc2.c: Likewise.
4511         * tests/test-truncf2.c: Likewise.
4512         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
4513
4514 2012-02-27  Bruno Haible  <bruno@clisp.org>
4515
4516         Tests for module 'sqrtl-ieee'.
4517         * modules/sqrtl-ieee-tests: New file.
4518         * tests/test-sqrtl-ieee.c: New file.
4519
4520         New module 'sqrtl-ieee'.
4521         * modules/sqrtl-ieee: New file.
4522
4523         Tests for module 'sqrt-ieee'.
4524         * modules/sqrt-ieee-tests: New file.
4525         * tests/test-sqrt-ieee.c: New file.
4526
4527         New module 'sqrt-ieee'.
4528         * modules/sqrt-ieee: New file.
4529
4530         Tests for module 'sqrtf-ieee'.
4531         * modules/sqrtf-ieee-tests: New file.
4532         * tests/test-sqrtf-ieee.c: New file.
4533         * tests/test-sqrt-ieee.h: New file.
4534
4535         New module 'sqrtf-ieee'.
4536         * modules/sqrtf-ieee: New file.
4537
4538 2012-02-27  Bruno Haible  <bruno@clisp.org>
4539
4540         remainderl-ieee: Work around test failure on OSF/1.
4541         * m4/remainderl-ieee.m4: New file.
4542         * m4/remainderl.m4 (gl_FUNC_REMAINDERL): If gl_FUNC_REMAINDERL_IEEE is
4543         present, test whether remainderl works with a zero second argument.
4544         Replace it if not.
4545         * lib/math.in.h (remainderl): Override if REPLACE_REMAINDERL is 1.
4546         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERL.
4547         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERL.
4548         * modules/remainderl (configure.ac): Consider REPLACE_REMAINDERL.
4549         (Depends-on): Update conditions.
4550         * modules/remainderl-ieee (Files): Add m4/remainderl-ieee.m4.
4551         (Depends-on): Add remainder-ieee.
4552         (configure.ac): Invoke gl_FUNC_REMAINDERL_IEEE.
4553         * doc/posix-functions/remainderl.texi: Mention the remainderl-ieee
4554         module.
4555
4556         remainderf-ieee: Work around test failure on OSF/1.
4557         * m4/remainderf-ieee.m4: New file.
4558         * m4/remainderf.m4 (gl_FUNC_REMAINDERF): If gl_FUNC_REMAINDERF_IEEE is
4559         present, test whether remainderf works with a zero second argument.
4560         Replace it if not.
4561         * lib/math.in.h (remainderf): Override if REPLACE_REMAINDERF is 1.
4562         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDERF.
4563         * modules/math (Makefile.am): Substitute REPLACE_REMAINDERF.
4564         * modules/remainderf (configure.ac): Consider REPLACE_REMAINDERF.
4565         (Depends-on): Update conditions.
4566         * modules/remainderf-ieee (Files): Add m4/remainderf-ieee.m4.
4567         (Depends-on): Add remainder-ieee.
4568         (configure.ac): Invoke gl_FUNC_REMAINDERF_IEEE.
4569         * doc/posix-functions/remainderf.texi: Mention the remainderf-ieee
4570         module.
4571
4572         remainder-ieee: Work around test failure on OSF/1.
4573         * m4/remainder-ieee.m4: New file.
4574         * m4/remainder.m4 (gl_FUNC_REMAINDER): If gl_FUNC_REMAINDER_IEEE is
4575         present, test whether remainder works with a zero second argument.
4576         Replace it if not.
4577         * lib/math.in.h (remainder): Override if REPLACE_REMAINDER is 1.
4578         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_REMAINDER.
4579         * modules/math (Makefile.am): Substitute REPLACE_REMAINDER.
4580         * modules/remainder (configure.ac): Consider REPLACE_REMAINDER.
4581         (Depends-on): Update dependencies.
4582         * modules/remainder-ieee (Files): Add m4/remainder-ieee.m4.
4583         (configure.ac): Invoke gl_FUNC_REMAINDER_IEEE.
4584         * doc/posix-functions/remainder.texi: Mention the remainder-ieee module.
4585
4586         Tests for module 'remainderl-ieee'.
4587         * modules/remainderl-ieee-tests: New file.
4588         * tests/test-remainderl-ieee.c: New file.
4589
4590         New module 'remainderl-ieee'.
4591         * modules/remainderl-ieee: New file.
4592
4593         Tests for module 'remainder-ieee'.
4594         * modules/remainder-ieee-tests: New file.
4595         * tests/test-remainder-ieee.c: New file.
4596
4597         New module 'remainder-ieee'.
4598         * modules/remainder-ieee: New file.
4599
4600         Tests for module 'remainderf-ieee'.
4601         * modules/remainderf-ieee-tests: New file.
4602         * tests/test-remainderf-ieee.c: New file.
4603         * tests/test-remainder-ieee.h: New file.
4604
4605         New module 'remainderf-ieee'.
4606         * modules/remainderf-ieee: New file.
4607
4608 2012-02-27  Bruno Haible  <bruno@clisp.org>
4609
4610         modff, modfl: Fix configure syntax error.
4611         * m4/modff.m4 (gl_FUNC_MODFF): Insert ':' command in 'if'.
4612         * m4/modfl.m4 (gl_FUNC_MODFL): Likewise.
4613
4614 2012-02-27  Bruno Haible  <bruno@clisp.org>
4615
4616         fmodl-ieee: Work around test failures on OSF/1, MSVC 9.
4617         * m4/fmodl-ieee.m4: New file.
4618         * m4/fmodl.m4 (gl_FUNC_FMODL): If gl_FUNC_FMODL_IEEE is present, test
4619         whether fmodl works with zero arguments. Replace it if not.
4620         * modules/fmodl-ieee (Files): Add m4/fmodl-ieee.m4.
4621         (Depends-on): Add fmod-ieee.
4622         (configure.ac): Invoke gl_FUNC_FMODL_IEEE.
4623         * doc/posix-functions/fmodl.texi: Mention the fmodl-ieee module.
4624
4625         fmodf-ieee: Work around test failure on OSF/1.
4626         * m4/fmodf-ieee.m4: New file.
4627         * m4/fmodf.m4 (gl_FUNC_FMODF): If gl_FUNC_FMODF_IEEE is present, test
4628         whether fmodf works with zero arguments. Replace it if not.
4629         * lib/math.in.h (fmodf): Override if REPLACE_FMODF is 1.
4630         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FMODF.
4631         * modules/math (Makefile.am): Substitute REPLACE_FMODF.
4632         * modules/fmodf (configure.ac): Consider REPLACE_FMODF.
4633         (Depends-on): Update dependencies.
4634         * modules/fmodf-ieee (Files): Add m4/fmodf-ieee.m4.
4635         (configure.ac): Invoke gl_FUNC_FMODF_IEEE.
4636         * doc/posix-functions/fmodf.texi: Mention the problem on OSF/1.
4637
4638         fmodf-ieee: Work around test failure on MSVC 9.
4639         * modules/fmodf-ieee (Depends-on): Add fmod-ieee.
4640         * doc/posix-functions/fmodf.texi: Mention the fmodf-ieee module.
4641
4642         fmod-ieee: Work around test failures on OSF/1, mingw.
4643         * m4/fmod-ieee.m4: New file.
4644         * m4/fmod.m4 (gl_FUNC_FMOD): If gl_FUNC_FMOD_IEEE is present, test
4645         whether fmod works with zero arguments. Replace it if not.
4646         * lib/math.in.h (fmod): New declaration.
4647         * lib/fmod.c: New file.
4648         * m4/math_h.m4 (gl_MATH_H): Test whether fmod is declared.
4649         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMOD, REPLACE_FMOD.
4650         * modules/math (Makefile.am): Substitute GNULIB_FMOD, REPLACE_FMOD.
4651         * modules/fmod (Files): Add lib/fmod.c.
4652         (Depends-on): Add math, isinf, trunc, fma.
4653         (configure.ac): Arrange to compile lib/fmod.c if needed.
4654         * modules/fmod-ieee (Files): Add m4/fmod-ieee.m4, m4/minus-zero.m4,
4655         m4/signbit.m4.
4656         (configure.ac): Invoke gl_FUNC_FMOD_IEEE.
4657         * tests/test-math-c++.cc: Check the declaration of fmod.
4658         * doc/posix-functions/fmod.texi: Mention the fmod-ieee module.
4659
4660         fmodl-ieee: Fix test failures.
4661         * lib/fmodl.c (fmodl): Treat Inf specially.
4662         * modules/fmodl (Depends-on): Add isinf.
4663
4664         Tests for module 'fmodl-ieee'.
4665         * modules/fmodl-ieee-tests: New file.
4666         * tests/test-fmodl-ieee.c: New file.
4667
4668         New module 'fmodl-ieee'.
4669         * modules/fmodl-ieee: New file.
4670
4671         Tests for module 'fmod-ieee'.
4672         * modules/fmod-ieee-tests: New file.
4673         * tests/test-fmod-ieee.c: New file.
4674
4675         New module 'fmod-ieee'.
4676         * modules/fmod-ieee: New file.
4677
4678         Tests for module 'fmodf-ieee'.
4679         * modules/fmodf-ieee-tests: New file.
4680         * tests/test-fmodf-ieee.c: New file.
4681         * tests/test-fmod-ieee.h: New file.
4682
4683         New module 'fmodf-ieee'.
4684         * modules/fmodf-ieee: New file.
4685
4686 2012-02-27  Bruno Haible  <bruno@clisp.org>
4687
4688         Tests for module 'rintl-ieee'.
4689         * modules/rintl-ieee-tests: New file.
4690         * tests/test-rintl-ieee.c: New file.
4691
4692         New module 'rintl-ieee'.
4693         * modules/rintl-ieee: New file.
4694
4695         Tests for module 'rint-ieee'.
4696         * modules/rint-ieee-tests: New file.
4697         * tests/test-rint-ieee.c: New file.
4698
4699         New module 'rint-ieee'.
4700         * modules/rint-ieee: New file.
4701
4702         Tests for module 'rintf-ieee'.
4703         * modules/rintf-ieee-tests: New file.
4704         * tests/test-rintf-ieee.c: New file.
4705         * tests/test-rint-ieee.h: New file.
4706
4707         New module 'rintf-ieee'.
4708         * modules/rintf-ieee: New file.
4709
4710 2012-02-26  Paul Eggert  <eggert@cs.ucla.edu>
4711
4712         regex: re_search etc. should return -2 when memory exhausted
4713         This bug was uncovered when testing 'grep'.  Without the fix,
4714         re_search and friends return -1 when memory is exhausted, but -1
4715         means no match, and this causes grep to falsely report no-match
4716         instead of memory-exhaustion.  See
4717         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=13762>.
4718         * lib/regexec.c (re_search_stub): Return -2 (not -1) if there is
4719         trouble; this can occur if re_search_internal ran out of memory.
4720
4721 2012-02-26  Bruno Haible  <bruno@clisp.org>
4722
4723         modfl-ieee: Work around test failures on IRIX, OSF/1, mingw.
4724         * m4/modfl-ieee.m4: New file.
4725         * m4/modfl.m4 (gl_FUNC_MODFL): If gl_FUNC_MODFL_IEEE is present, test
4726         whether modfl works with Inf. Replace it if not.
4727         * lib/math.in.h (modfl): Override if REPLACE_MODFF is 1.
4728         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFL.
4729         * modules/math (Makefile.am): Substitute REPLACE_MODFL.
4730         * modules/modfl (configure.ac): Consider REPLACE_MODFL.
4731         (Depends-on): Update dependencies.
4732         * modules/modfl-ieee (Files): Add m4/modfl-ieee.m4, m4/minus-zero.m4,
4733         m4/signbit.m4.
4734         (configure.ac): Invoke gl_FUNC_MODFL_IEEE.
4735         * doc/posix-functions/modfl.texi: Mention the modfl-ieee module.
4736
4737         modfl-ieee: Fix dependencies.
4738         * modules/modfl-ieee (Depends-on): Add modf-ieee.
4739
4740         modfl-ieee: Fix test failures.
4741         * lib/modfl.c (modfl): Treat NaN and Inf specially.
4742         * modules/modfl (Depends-on): Add isfinite, isinf.
4743
4744         modff-ieee: Work around test failures on *BSD, IRIX, OSF/1, etc.
4745         * m4/modff-ieee.m4: New file.
4746         * m4/modff.m4 (gl_FUNC_MODFF): If gl_FUNC_MODFF_IEEE is present, test
4747         whether modff works with NaN and Inf. Replace it if not.
4748         * lib/math.in.h (modff): Override if REPLACE_MODFF is 1.
4749         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_MODFF.
4750         * modules/math (Makefile.am): Substitute REPLACE_MODFF.
4751         * modules/modff (configure.ac): Consider REPLACE_MODFF.
4752         (Depends-on): Update dependencies.
4753         * modules/modff-ieee (Files): Add m4/modff-ieee.m4, m4/minus-zero.m4,
4754         m4/signbit.m4.
4755         (Depends-on): Add modf-ieee.
4756         (configure.ac): Invoke gl_FUNC_MODFF_IEEE.
4757         * doc/posix-functions/modff.texi: Mention the modff-ieee module.
4758
4759         modf-ieee: Work around test failures on *BSD, IRIX, OSF/1, Cygwin.
4760         * m4/modf-ieee.m4: New file.
4761         * m4/modf.m4 (gl_FUNC_MODF): If gl_FUNC_MODF_IEEE is present, test
4762         whether modf works with NaN and Inf. Replace it if not.
4763         * lib/math.in.h (modf): New declaration.
4764         * lib/modf.c: New file.
4765         * m4/math_h.m4 (gl_MATH_H): Test whether modf is declared.
4766         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODF, REPLACE_MODF.
4767         * modules/math (Makefile.am): Substitute GNULIB_MODF, REPLACE_MODF.
4768         * modules/modf (Files): Add lib/modf.c.
4769         (Depends-on): Add math, isfinite, trunc, isinf.
4770         (configure.ac): Addrange to compile lib/modf.c if needed.
4771         * modules/modf-ieee (Files): Add m4/modf-ieee.m4, m4/minus-zero.m4,
4772         m4/signbit.m4.
4773         (configure.ac): Invoke gl_FUNC_MODF_IEEE.
4774         * tests/test-math-c++.cc: Check the declaration of modf.
4775         * doc/posix-functions/modf.texi: Mention the modf-ieee module.
4776
4777         Tests for module 'modfl-ieee'.
4778         * modules/modfl-ieee-tests: New file.
4779         * tests/test-modfl-ieee.c: New file.
4780
4781         New module 'modfl-ieee'.
4782         * modules/modfl-ieee: New file.
4783
4784         Tests for module 'modf-ieee'.
4785         * modules/modf-ieee-tests: New file.
4786         * tests/test-modf-ieee.c: New file.
4787
4788         New module 'modf-ieee'.
4789         * modules/modf-ieee: New file.
4790
4791         Tests for module 'modff-ieee'.
4792         * modules/modff-ieee-tests: New file.
4793         * tests/test-modff-ieee.c: New file.
4794         * tests/test-modf-ieee.h: New file.
4795
4796         New module 'modff-ieee'.
4797         * modules/modff-ieee: New file.
4798
4799 2012-02-26  Bruno Haible  <bruno@clisp.org>
4800
4801         Tests for module 'fabsl-ieee'.
4802         * modules/fabsl-ieee-tests: New file.
4803         * tests/test-fabsl-ieee.c: New file.
4804
4805         New module 'fabsl-ieee'.
4806         * modules/fabsl-ieee: New file.
4807
4808         Tests for module 'fabs-ieee'.
4809         * modules/fabs-ieee-tests: New file.
4810         * tests/test-fabs-ieee.c: New file.
4811
4812         New module 'fabs-ieee'.
4813         * modules/fabs-ieee: New file.
4814
4815         Tests for module 'fabsf-ieee'.
4816         * modules/fabsf-ieee-tests: New file.
4817         * tests/test-fabsf-ieee.c: New file.
4818         * tests/test-fabs-ieee.h: New file.
4819
4820         New module 'fabsf-ieee'.
4821         * modules/fabsf-ieee: New file.
4822
4823 2012-02-26  Bruno Haible  <bruno@clisp.org>
4824
4825         Tests for module 'fmal-ieee'.
4826         * modules/fmal-ieee-tests: New file.
4827         * tests/test-fmal-ieee.c: New file.
4828
4829         New module 'fmal-ieee'.
4830         * modules/fmal-ieee: New file.
4831
4832         Tests for module 'fma-ieee'.
4833         * modules/fma-ieee-tests: New file.
4834         * tests/test-fma-ieee.c: New file.
4835
4836         New module 'fma-ieee'.
4837         * modules/fma-ieee: New file.
4838
4839         Tests for module 'fmaf-ieee'.
4840         * modules/fmaf-ieee-tests: New file.
4841         * tests/test-fmaf-ieee.c: New file.
4842         * tests/test-fma-ieee.h: New file.
4843
4844         New module 'fmaf-ieee'.
4845         * modules/fmaf-ieee: New file.
4846
4847 2012-02-26  Bruno Haible  <bruno@clisp.org>
4848
4849         Tests for module 'ldexpl-ieee'.
4850         * modules/ldexpl-ieee-tests: New file.
4851         * tests/test-ldexpl-ieee.c: New file.
4852
4853         New module 'ldexpl-ieee'.
4854         * modules/ldexpl-ieee: New file.
4855
4856         Tests for module 'ldexp-ieee'.
4857         * modules/ldexp-ieee-tests: New file.
4858         * tests/test-ldexp-ieee.c: New file.
4859
4860         New module 'ldexp-ieee'.
4861         * modules/ldexp-ieee: New file.
4862
4863         Tests for module 'ldexpf-ieee'.
4864         * modules/ldexpf-ieee-tests: New file.
4865         * tests/test-ldexpf-ieee.c: New file.
4866         * tests/test-ldexp-ieee.h: New file.
4867
4868         New module 'ldexpf-ieee'.
4869         * modules/ldexpf-ieee: New file.
4870
4871 2012-02-26  Bruno Haible  <bruno@clisp.org>
4872
4873         Refactor frexp*-ieee tests.
4874         * tests/test-frexp-ieee.h: New file.
4875         * tests/test-frexpf-ieee.c: Include test-frexp-ieee.h.
4876         (main): Just call test_function.
4877         * tests/test-frexp-ieee.c: Include test-frexp-ieee.h.
4878         (main): Just call test_function.
4879         * tests/test-frexpl-ieee.c: Include test-frexp-ieee.h.
4880         (main): Just call test_function.
4881         * modules/frexpf-ieee-tests (Files): Add tests/test-frexp-ieee.h.
4882         * modules/frexp-ieee-tests (Files): Likewise.
4883         * modules/frexpl-ieee-tests (Files): Likewise.
4884
4885         Tests for module 'frexpl-ieee'.
4886         * modules/frexpl-ieee-tests: New file.
4887         * tests/test-frexpl-ieee.c: New file.
4888
4889         New module 'frexpl-ieee'.
4890         * modules/frexpl-ieee: New file.
4891
4892         Tests for module 'frexp-ieee'.
4893         * modules/frexp-ieee-tests: New file.
4894         * tests/test-frexp-ieee.c: New file.
4895
4896         New module 'frexp-ieee'.
4897         * modules/frexp-ieee: New file.
4898
4899         Tests for module 'frexpf-ieee'.
4900         * modules/frexpf-ieee-tests: New file.
4901         * tests/test-frexpf-ieee.c: New file.
4902
4903         New module 'frexpf-ieee'.
4904         * modules/frexpf-ieee: New file.
4905
4906 2012-02-26  Bruno Haible  <bruno@clisp.org>
4907
4908         roundl-ieee tests: More tests.
4909         * tests/test-roundl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4910         (main): Add tests for [MX] shaded specification in POSIX.
4911         * modules/roundl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4912         (Depends-on): Add isnanl-nolibm.
4913
4914         round-ieee tests: More tests.
4915         * tests/test-round-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4916         (main): Add tests for [MX] shaded specification in POSIX.
4917         * modules/round-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4918         (Depends-on): Add isnand-nolibm.
4919
4920         roundf-ieee tests: More tests.
4921         * tests/test-roundf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4922         (main): Add tests for [MX] shaded specification in POSIX.
4923         * modules/roundf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4924         (Depends-on): Add isnanf-nolibm.
4925
4926         truncl-ieee tests: More tests.
4927         * tests/test-truncl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4928         (main): Add tests for [MX] shaded specification in POSIX.
4929         * modules/truncl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4930         (Depends-on): Add isnanl-nolibm.
4931
4932         trunc-ieee tests: More tests.
4933         * tests/test-trunc-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4934         (main): Add tests for [MX] shaded specification in POSIX.
4935         * modules/trunc-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4936         (Depends-on): Add isnand-nolibm.
4937
4938         truncf-ieee tests: More tests.
4939         * tests/test-truncf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4940         (main): Add tests for [MX] shaded specification in POSIX.
4941         * modules/truncf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4942         (Depends-on): Add isnanf-nolibm.
4943
4944         ceill-ieee tests: More tests.
4945         * tests/test-ceill-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4946         (main): Add tests for [MX] shaded specification in POSIX.
4947         * modules/ceill-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4948         (Depends-on): Add isnanl-nolibm.
4949
4950         ceil-ieee tests: More tests.
4951         * tests/test-ceil-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4952         (main): Add tests for [MX] shaded specification in POSIX.
4953         * modules/ceil-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4954         (Depends-on): Add isnand-nolibm.
4955
4956         ceilf-ieee tests: More tests.
4957         * tests/test-ceilf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4958         (main): Add tests for [MX] shaded specification in POSIX.
4959         * modules/ceilf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4960         (Depends-on): Add isnanf-nolibm.
4961
4962         floorl-ieee tests: More tests.
4963         * tests/test-floorl-ieee.c: Include isnanl-nolibm.h, infinity.h, nan.h.
4964         (main): Add tests for [MX] shaded specification in POSIX.
4965         * modules/floorl-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4966         (Depends-on): Add isnanl-nolibm.
4967
4968         floor-ieee tests: More tests.
4969         * tests/test-floor-ieee.c: Include isnand-nolibm.h, infinity.h, nan.h.
4970         (main): Add tests for [MX] shaded specification in POSIX.
4971         * modules/floor-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4972         (Depends-on): Add isnand-nolibm.
4973
4974         floorf-ieee tests: More tests.
4975         * tests/test-floorf-ieee.c: Include isnanf-nolibm.h, infinity.h, nan.h.
4976         (main): Add tests for [MX] shaded specification in POSIX.
4977         * modules/floorf-ieee-tests (Files): Add tests/infinity.h, tests/nan.h.
4978         (Depends-on): Add isnanf-nolibm.
4979
4980 2012-02-26  Bruno Haible  <bruno@clisp.org>
4981
4982         fpieee: More comments.
4983         * m4/fpieee.m4 (gl_FP_IEEE): Add more comments.
4984
4985 2012-02-25  Bruno Haible  <bruno@clisp.org>
4986
4987         Tests for module 'log10l'.
4988         * modules/log10l-tests: New file.
4989         * tests/test-log10l.c: New file.
4990         * tests/test-math-c++.cc: Check the declaration of log10l.
4991
4992         New module 'log10l'.
4993         * lib/math.in.h (log10l): New declaration.
4994         * lib/log10l.c: New file.
4995         * m4/log10l.m4: New file.
4996         * modules/log10l: New file.
4997         * m4/math_h.m4 (gl_MATH_H): Test whether log10l is declared.
4998         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10L, HAVE_LOG10L,
4999         HAVE_DECL_LOG10L.
5000         * modules/math (Makefile.am): Substitute GNULIB_LOG10L, HAVE_LOG10L,
5001         HAVE_DECL_LOG10L.
5002         * doc/posix-functions/log10l.texi: Mention the new module.
5003
5004 2012-02-25  Bruno Haible  <bruno@clisp.org>
5005
5006         fmodl, remainder*: Avoid wrong results due to rounding errors.
5007         * lib/fmodl.c (fmodl): Correct the result if it is not within the
5008         expected bounds.
5009         * lib/remainderf.c (remainderf): Likewise.
5010         * lib/remainder.c (remainder): Likewise.
5011         * lib/remainderl.c (remainderl): Likewise.
5012
5013 2012-02-25  Bruno Haible  <bruno@clisp.org>
5014
5015         Tests for module 'remainderl'.
5016         * modules/remainderl-tests: New file.
5017         * tests/test-remainderl.c: New file.
5018         * tests/test-math-c++.cc: Check the declaration of remainderl.
5019
5020         New module 'remainderl'.
5021         * lib/math.in.h (remainderl): New declaration.
5022         * lib/remainderl.c: New file.
5023         * m4/remainderl.m4: New file.
5024         * modules/remainderl: New file.
5025         * m4/math_h.m4 (gl_MATH_H): Test whether remainderl is declared.
5026         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERL, HAVE_REMAINDERL.
5027         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERL,
5028         HAVE_REMAINDERL.
5029         * doc/posix-functions/remainderl.texi: Mention the new module.
5030
5031 2012-02-25  Bruno Haible  <bruno@clisp.org>
5032
5033         Tests for module 'remainderf'.
5034         * modules/remainderf-tests: New file.
5035         * tests/test-remainderf.c: New file.
5036         * tests/test-math-c++.cc: Check the declaration of remainderf.
5037
5038         New module 'remainderf'.
5039         * lib/math.in.h (remainderf): New declaration.
5040         * lib/remainderf.c: New file.
5041         * m4/remainderf.m4: New file.
5042         * modules/remainderf: New file.
5043         * m4/math_h.m4 (gl_MATH_H): Test whether remainderf is declared.
5044         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDERF, HAVE_REMAINDERF.
5045         * modules/math (Makefile.am): Substitute GNULIB_REMAINDERF,
5046         HAVE_REMAINDERF.
5047         * doc/posix-functions/remainderf.texi: Mention the new module.
5048
5049 2012-02-25  Bruno Haible  <bruno@clisp.org>
5050
5051         remainder: Support for MSVC.
5052         * lib/math.in.h (remainder): New declaration.
5053         * lib/remainder.c: New file.
5054         * m4/remainder.m4: New file.
5055         * modules/remainder (Files): Add lib/remainder.c, m4/remainder.m4.
5056         (Depends-on): Add math, round, fma.
5057         (configure.ac): Use results of gl_FUNC_REMAINDER.
5058         * m4/math_h.m4 (gl_MATH_H): Test whether remainder is declared.
5059         (gl_MATH_H_DEFAULTS): Initialize GNULIB_REMAINDER, HAVE_REMAINDER,
5060         HAVE_DECL_REMAINDER.
5061         * modules/math (Makefile.am): Substitute GNULIB_REMAINDER,
5062         HAVE_REMAINDER, HAVE_DECL_REMAINDER.
5063         * tests/test-math-c++.cc: Check the declaration of remainder.
5064         * doc/posix-functions/remainder.texi: Mention that the MSVC and IRIX 5
5065         problems are fixed.
5066
5067 2012-02-25  Bruno Haible  <bruno@clisp.org>
5068
5069         Tests for module 'fmodl'.
5070         * modules/fmodl-tests: New file.
5071         * tests/test-fmodl.c: New file.
5072         * tests/test-math-c++.cc: Check the declaration of fmodl.
5073
5074         New module 'fmodl'.
5075         * lib/math.in.h (fmodl): New declaration.
5076         * lib/fmodl.c: New file.
5077         * m4/fmodl.m4: New file.
5078         * m4/math_h.m4 (gl_MATH_H): Test whether fmodl is declared.
5079         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODL, HAVE_FMODL,
5080         REPLACE_FMODL.
5081         * modules/math (Makefile.am): Substitute GNULIB_FMODL, HAVE_FMODL,
5082         REPLACE_FMODL.
5083         * modules/fmodl: New file.
5084         * doc/posix-functions/fmodl.texi: Mention the new module.
5085
5086 2012-02-25  Bruno Haible  <bruno@clisp.org>
5087
5088         Tests for module 'modfl'.
5089         * modules/modfl-tests: New file.
5090         * tests/test-modfl.c: New file.
5091         * tests/test-math-c++.cc: Check the declaration of modfl.
5092
5093         New module 'modfl'.
5094         * lib/math.in.h (modfl): New declaration.
5095         * lib/modfl.c: New file.
5096         * m4/modfl.m4: New file.
5097         * m4/math_h.m4 (gl_MATH_H): Test whether modfl is declared.
5098         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFL, HAVE_MODFL.
5099         * modules/math (Makefile.am): Substitute GNULIB_MODFL, HAVE_MODFL.
5100         * modules/modfl: New file.
5101         * doc/posix-functions/modfl.texi: Mention the new module.
5102
5103 2012-02-25  Bruno Haible  <bruno@clisp.org>
5104
5105         Tests for module 'fabsl'.
5106         * modules/fabsl-tests: New file.
5107         * tests/test-fabsl.c: New file.
5108         * tests/test-math-c++.cc: Check the declaration of fabsl.
5109
5110         New module 'fabsl'.
5111         * lib/math.in.h (fabsl): New declaration.
5112         * lib/fabsl.c: New file.
5113         * m4/fabsl.m4: New file.
5114         * m4/math_h.m4 (gl_MATH_H): Test whether fabsl is declared.
5115         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSL, HAVE_FABSL,
5116         REPLACE_FABSL.
5117         * modules/math (Makefile.am): Substitute GNULIB_FABSL, HAVE_FABSL,
5118         REPLACE_FABSL.
5119         * modules/fabsl: New file.
5120         * doc/posix-functions/fabsl.texi: Mention the new module.
5121
5122 2012-02-25  Bruno Haible  <bruno@clisp.org>
5123
5124         fabs tests: More tests.
5125         * tests/test-fabs.c: Include <string.h>, minus-zero.h.
5126         (zero): New variable.
5127         (main): Add tests for signed zero.
5128         * modules/fabs-tests (Files): Add tests/minus-zero.h.
5129
5130         fabsf tests: More tests.
5131         * tests/test-fabsf.c: Include <string.h>, minus-zero.h.
5132         (zero): New variable.
5133         (main): Add tests for signed zero.
5134         * modules/fabsf-tests (Files): Add tests/minus-zero.h.
5135
5136 2012-02-24  Bruno Haible  <bruno@clisp.org>
5137
5138         atanl: Provide function definition on MSVC.
5139         * m4/atanl.m4 (gl_FUNC_ATANL): Test also whether atanl can be used as a
5140         function pointer.
5141         * lib/math.in.h (atanl): Undefine if it does not exist as a function.
5142
5143 2012-02-24  Bruno Haible  <bruno@clisp.org>
5144
5145         acosl: Provide function definition on MSVC.
5146         * m4/acosl.m4 (gl_FUNC_ACOSL): Test also whether acosl can be used as a
5147         function pointer.
5148         * lib/math.in.h (acosl): Undefine if it does not exist as a function.
5149
5150 2012-02-24  Bruno Haible  <bruno@clisp.org>
5151
5152         asinl: Provide function definition on MSVC.
5153         * m4/asinl.m4 (gl_FUNC_ASINL): Test also whether asinl can be used as a
5154         function pointer.
5155         * lib/math.in.h (asinl): Undefine if it does not exist as a function.
5156
5157 2012-02-24  Bruno Haible  <bruno@clisp.org>
5158
5159         tanl: Provide function definition on MSVC.
5160         * m4/tanl.m4 (gl_FUNC_TANL): Test also whether tanl can be used as a
5161         function pointer.
5162         * lib/math.in.h (tanl): Undefine if it does not exist as a function.
5163
5164 2012-02-24  Bruno Haible  <bruno@clisp.org>
5165
5166         cosl: Provide function definition on MSVC.
5167         * m4/cosl.m4 (gl_FUNC_COSL): Test also whether cosl can be used as a
5168         function pointer.
5169         * lib/math.in.h (cosl): Undefine if it does not exist as a function.
5170
5171 2012-02-24  Bruno Haible  <bruno@clisp.org>
5172
5173         sinl: Provide function definition on MSVC.
5174         * m4/sinl.m4 (gl_FUNC_SINL): Test also whether sinl can be used as a
5175         function pointer.
5176         * lib/math.in.h (sinl): Undefine if it does not exist as a function.
5177
5178 2012-02-24  Bruno Haible  <bruno@clisp.org>
5179
5180         logl: Provide function definition on MSVC.
5181         * m4/logl.m4 (gl_FUNC_LOGL): Test also whether logl can be used as a
5182         function pointer.
5183         * lib/math.in.h (logl): Undefine if it does not exist as a function.
5184
5185 2012-02-24  Bruno Haible  <bruno@clisp.org>
5186
5187         expl: Provide function definition on MSVC.
5188         * m4/expl.m4 (gl_FUNC_EXPL): Test also whether expl can be used as a
5189         function pointer.
5190         * lib/math.in.h (expl): Undefine if it does not exist as a function.
5191
5192 2012-02-24  Bruno Haible  <bruno@clisp.org>
5193
5194         sqrtl: Provide function definition on MSVC.
5195         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Test also whether sqrtl can be used as
5196         a function pointer.
5197         * lib/math.in.h (sqrtl): Undefine if it does not exist as a function.
5198
5199 2012-02-24  Bruno Haible  <bruno@clisp.org>
5200
5201         ceill: Provide function definition on MSVC.
5202         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Test also whether ceill can be
5203         used as a function pointer.
5204         * lib/math.in.h (ceill): Undefine if it is not declared as a function.
5205
5206 2012-02-24  Bruno Haible  <bruno@clisp.org>
5207
5208         floorl: Provide function definition on MSVC.
5209         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Test also whether floorl can be
5210         used as a function pointer.
5211         * lib/math.in.h (floorl): Undefine if it is not declared as a function.
5212
5213 2012-02-24  Bruno Haible  <bruno@clisp.org>
5214
5215         ceilf: Provide function definition on MSVC.
5216         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Test also whether ceilf can be
5217         used as a function pointer.
5218         * lib/math.in.h (ceilf): Undefine if it is not declared as a function.
5219
5220 2012-02-24  Bruno Haible  <bruno@clisp.org>
5221
5222         floorf: Provide function definition on MSVC.
5223         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Test also whether floorf can be
5224         used as a function pointer.
5225         * lib/math.in.h (floorf): Undefine if it is not declared as a function.
5226
5227 2012-02-24  Paul Eggert  <eggert@cs.ucla.edu>
5228
5229         stdnoreturn: new module
5230         This implements a replacement for C11's <stdnoreturn.h>.
5231         * doc/gnulib.texi (Header File Substitutes): Add stdnoreturn.
5232         * doc/posix-headers/stdnoreturn.texi, lib/stdnoreturn.in.h:
5233         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
5234         * tests/test-stdnoreturn.c: New files.
5235
5236 2012-02-24  Stanislav Brabec  <sbrabec@suse.cz>  (tiny change)
5237
5238         regex: fix false multibyte matches in some regular expressions
5239         See <http://sourceware.org/bugzilla/show_bug.cgi?id=13637>
5240         and <http://sourceware.org/ml/libc-alpha/2012-02/msg00521.html>.
5241         * lib/regex_internal.c (re_string_skip_chars):
5242         Fix miscomputation of remain_len that may cause incomplete
5243         multi-byte character and false match.
5244
5245 2012-02-24  Jim Meyering  <meyering@redhat.com>
5246
5247         maint.mk: tell sc_prohibit_strcmp to ding "0 == strcmp (...)", too
5248         * top/maint.mk (sc_prohibit_strcmp): Also prohibit uses of strcmp
5249         uses with "==" *before* the call, e.g., 0 == strcmp (...)
5250         Remove now-unnecessary str''cmp obfuscation.
5251         Suggested by Akim Demaille.
5252
5253 2012-02-24  Bruno Haible  <bruno@clisp.org>
5254
5255         streq: Rename macro.
5256         * lib/streq.h (STREQ_OPT): Renamed from STREQ.
5257         * NEWS: Mention the change.
5258         * lib/mbrtowc.c (mbrtowc): Update.
5259         * lib/uniwidth/cjk.h (is_cjk_encoding): Update.
5260         * lib/wcwidth.c (wcwidth): Update.
5261         Suggested by Akim Demaille and Jim Meyering.
5262
5263 2012-02-20  Paul Eggert  <eggert@cs.ucla.edu>
5264
5265         regex: fix typo in definition of MIN
5266         * lib/regex_internal.h (MIN): Fix typo.  Problem reported by Thomas
5267         Schwinge in <http://sourceware.org/bugzilla/show_bug.cgi?id=11638#c4>.
5268
5269 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5270             Bruno Haible  <bruno@clisp.org>
5271
5272         acl: Don't use ACL_CNT and similar ops, since they are unreliable.
5273         * lib/file-has-acl.c (file_has_acl) [HP-UX, NonStop Kernel]: Read the
5274         entries into a stack-allocated buffer directly.
5275         * lib/copy-acl.c (qcopy_acl) [HP-UX, NonStop Kernel]: Likewise.
5276
5277 2012-02-19  Paul Eggert  <eggert@cs.ucla.edu>
5278             Bruno Haible  <bruno@clisp.org>
5279
5280         acl: Don't use GETACLCNT and similar ops, since they are unreliable.
5281
5282          - There were several instances of this pattern:
5283
5284              for (;;) {
5285                n = acl (f, GETACLCNT, 0, NULL);
5286                [ allocate an array A of size N ]
5287                if (acl (f, GETACL, n, a) == n)
5288                  break;
5289              }
5290
5291            This loop might never terminate if some other process is constantly
5292            manipulating the file's ACL.  The loop should be rewritten to
5293            terminate.
5294
5295          - The acl (... GETACLNT ...) call is merely an optimization; its value
5296            is merely a hint as to how big to make the array.  A better
5297            optimization is to avoid the acl (... GETACLNT ...)  call entirely,
5298            and just guess a reasonably-big size, growing the size and trying
5299            again if it's not large enough.  This guarantees termination, and
5300            saves a system call.
5301
5302         * lib/acl-internal.h: Include <limits.h>.
5303         (MIN, SIZE_MAX): New macros.
5304         * lib/file-has-acl.c (file_has_acl) [Solaris]: Read the entries into
5305         a stack-allocated buffer, and use malloc if it does not fit. Don't
5306         use GETACLCNT.
5307         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5308
5309 2012-02-19  Bruno Haible  <bruno@clisp.org>
5310
5311         acl: Fix endless loop on Solaris with vxfs.
5312         * lib/file-has-acl.c (file_has_acl) [Solaris]: Treat a failing
5313         acl()/facl() call for ACE_GETACL like a failing call for ACE_GETACLCNT.
5314         * lib/set-mode-acl.c (qset_acl) [Solaris]: Likewise.
5315         * lib/copy-acl.c (qcopy_acl)[Solaris]: Likewise.
5316         * tests/test-sameacls.c (main)[Solaris]: Likewise.
5317         Reported by Bill Jones in
5318         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=10639>, via Paul Eggert.
5319
5320 2012-02-19  Bruno Haible  <bruno@clisp.org>
5321
5322         acl: Fix copy-acl test failure on Solaris 11 2011-11.
5323         * lib/file-has-acl.c (NEW_ACE_WRITEA_DATA): New macro.
5324         (acl_ace_nontrivial): Relax the restrictions on access_masks[] so
5325         that this function returns 0 in some more cases.
5326
5327 2012-02-19  Bruno Haible  <bruno@clisp.org>
5328
5329         acl: Update doc references.
5330         * doc/acl-resources.txt: Update links to Solaris documentation.
5331
5332 2012-02-19  Bruno Haible  <bruno@clisp.org>
5333
5334         Fix test failure in many locales on Solaris 11.
5335         * tests/test-pipe-filter-gi1.c (main): Don't use range expression in
5336         'tr' arguments.
5337         * tests/test-pipe-filter-ii1.c (main): Likewise.
5338         * build-aux/bootstrap (check_versions): Run 'tr' command with range
5339         expressions in the C locale.
5340         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
5341         * m4/host-os.m4 (gl_HOST_OS): Likewise.
5342
5343 2012-02-19  Bruno Haible  <bruno@clisp.org>
5344
5345         gnulib-tool: Improve usage message.
5346         * gnulib-tool (func_usage): Move doc of --help and --version to the
5347         section "Operation modes".
5348
5349 2012-02-18  Reuben Thomas  <rrt@sc3d.org>
5350
5351         README-release: make it easier to execute commands
5352         * top/README-release: break commands out on to separate lines.
5353
5354 2012-02-16  Stefano Lattarini  <stefano.lattarini@gmail.com>
5355
5356         GNUmakefile: simplify detection of unconfigured trees
5357         * top/GNUmakefile: Use $(wildcard) instead of $(shell) to determine
5358         whether the tree make is being run from is already configured or
5359         not.  Related simplifications.
5360
5361 2012-02-13  Simon Josefsson  <simon@josefsson.org>
5362
5363         * gnulib-tool (func_usage): Document --help and --version.
5364
5365 2012-02-11  Jim Meyering  <meyering@redhat.com>
5366
5367         bootstrap: don't exit 0 upon gnulib-tool failure
5368         * build-aux/bootstrap (gnulib_tool): If gnulib-tool fails, exit with
5369         its exit status, not 0.
5370
5371 2011-12-19  Reuben Thomas  <rrt@sc3d.org>
5372
5373         README-release: various improvements
5374         * top/README-release: Give a command to push changes for the
5375         release.  Add "distcheck" to list of other pre-release checks.
5376         Fix instance of "make stable" which should be "make TYPE".
5377
5378 2012-02-09  Paul Eggert  <eggert@cs.ucla.edu>
5379
5380         maint: replace FSF snail-mail addresses with URLs
5381         * config/argz.mk, lib/accept4.c, lib/alignof.h, lib/alloca.in.h:
5382         * lib/alphasort.c, lib/arcfour.c, lib/arcfour.h, lib/arctwo.c:
5383         * lib/arctwo.h, lib/argz.c, lib/arpa_inet.in.h, lib/asnprintf.c:
5384         * lib/asprintf.c, lib/assert.in.h, lib/base32.c, lib/base32.h:
5385         * lib/base64.c, lib/base64.h, lib/c-ctype.c, lib/c-ctype.h:
5386         * lib/c-strcase.h, lib/c-strcasecmp.c, lib/c-strncasecmp.c:
5387         * lib/check-version.c, lib/check-version.h, lib/config.charset:
5388         * lib/ctype.in.h, lib/des.c, lib/des.h, lib/dup3.c, lib/errno.in.h:
5389         * lib/float+.h, lib/fnmatch.c, lib/fnmatch.in.h, lib/fnmatch_loop.c:
5390         * lib/fseeko.c, lib/gai_strerror.c, lib/gc-gnulib.c:
5391         * lib/gc-libgcrypt.c, lib/gc-pbkdf2-sha1.c, lib/gc.h:
5392         * lib/getaddrinfo.c, lib/getdelim.c, lib/getfilecon.c, lib/getline.c:
5393         * lib/getlogin_r.c, lib/getpass.c, lib/getpass.h, lib/gettext.h:
5394         * lib/gettimeofday.c, lib/glob.in.h, lib/glthread/cond.c:
5395         * lib/glthread/cond.h, lib/glthread/lock.c, lib/glthread/lock.h:
5396         * lib/glthread/thread.c, lib/glthread/thread.h:
5397         * lib/glthread/threadlib.c, lib/glthread/yield.h, lib/hmac-md5.c:
5398         * lib/hmac-sha1.c, lib/hmac.h, lib/iconv.c, lib/iconv.in.h:
5399         * lib/iconv_close.c, lib/iconv_open.c, lib/inet_ntop.c, lib/isfinite.c:
5400         * lib/isinf.c, lib/iswblank.c, lib/langinfo.in.h, lib/link.c:
5401         * lib/localcharset.c, lib/localcharset.h, lib/lseek.c, lib/malloc.c:
5402         * lib/malloca.c, lib/malloca.h, lib/md2.c, lib/md2.h, lib/md4.c:
5403         * lib/md4.h, lib/md5.c, lib/md5.h, lib/memmem.c, lib/mempcpy.c:
5404         * lib/memset.c, lib/memxor.c, lib/memxor.h, lib/minmax.h, lib/mktime.c:
5405         * lib/msvc-inval.c, lib/msvc-inval.h, lib/msvc-nothrow.c:
5406         * lib/msvc-nothrow.h, lib/netdb.in.h, lib/netinet_in.in.h, lib/nproc.c:
5407         * lib/nproc.h, lib/obstack_printf.c, lib/pathmax.h, lib/pipe.c:
5408         * lib/pipe2.c, lib/poll.c, lib/poll.in.h, lib/printf-args.c:
5409         * lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h:
5410         * lib/pselect.c, lib/pthread.in.h, lib/pty-private.h, lib/pty.in.h:
5411         * lib/read-file.c, lib/read-file.h, lib/ref-add.sin, lib/ref-del.sin:
5412         * lib/regcomp.c, lib/regex.c, lib/regex.h, lib/regex_internal.c:
5413         * lib/regex_internal.h, lib/regexec.c, lib/rijndael-alg-fst.c:
5414         * lib/rijndael-alg-fst.h, lib/rijndael-api-fst.c:
5415         * lib/rijndael-api-fst.h, lib/rint.c, lib/rintf.c, lib/rintl.c:
5416         * lib/round.c, lib/roundf.c, lib/roundl.c, lib/scandir.c, lib/select.c:
5417         * lib/sha1.c, lib/sha1.h, lib/size_max.h, lib/snprintf.c:
5418         * lib/stdalign.in.h, lib/stdarg.in.h, lib/stdbool.in.h:
5419         * lib/stddef.in.h, lib/stdint.in.h, lib/stdio.in.h, lib/str-kmp.h:
5420         * lib/str-two-way.h, lib/strcasecmp.c, lib/strcasestr.c, lib/strdup.c:
5421         * lib/striconv.c, lib/striconv.h, lib/string.in.h, lib/strings.in.h:
5422         * lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c, lib/strpbrk.c:
5423         * lib/strptime.c, lib/strsep.c, lib/strstr.c, lib/strverscmp.c:
5424         * lib/sys_file.in.h, lib/sys_ioctl.in.h, lib/sys_select.in.h:
5425         * lib/sys_socket.in.h, lib/sys_stat.in.h, lib/sys_time.in.h:
5426         * lib/sys_times.in.h, lib/sys_types.in.h, lib/sys_uio.in.h:
5427         * lib/sys_utsname.in.h, lib/sys_wait.in.h, lib/tcgetsid.c:
5428         * lib/termios.in.h, lib/time.in.h, lib/time_r.c, lib/timegm.c:
5429         * lib/times.c, lib/unictype/3level.h, lib/unictype/3levelbit.h:
5430         * lib/unistd.in.h, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c:
5431         * lib/vsnprintf.c, lib/waitpid.c, lib/wchar.in.h, lib/wctype.in.h:
5432         * lib/xsize.h, tests/test-closein.c, tests/test-des.c:
5433         * tests/test-fclose.c, tests/test-fgetc.c, tests/test-filevercmp.c:
5434         * tests/test-fputc.c, tests/test-fread.c, tests/test-fwrite.c:
5435         * tests/test-gc-arcfour.c, tests/test-gc-arctwo.c, tests/test-gc-des.c:
5436         * tests/test-gc-hmac-md5.c, tests/test-gc-hmac-sha1.c:
5437         * tests/test-gc-md2.c, tests/test-gc-md4.c, tests/test-gc-md5.c:
5438         * tests/test-gc-pbkdf2-sha1.c, tests/test-gc-rijndael.c:
5439         * tests/test-gc-sha1.c, tests/test-gc.c, tests/test-getdelim.c:
5440         * tests/test-getline.c, tests/test-getndelim2.c, tests/test-md2.c:
5441         * tests/test-md4.c, tests/test-parse-datetime.c, tests/test-perror.c:
5442         * tests/test-perror2.c, tests/test-pipe.c, tests/test-pipe2.c:
5443         * tests/test-poll.c, tests/test-quotearg-simple.c:
5444         * tests/test-quotearg.c, tests/test-quotearg.h:
5445         * tests/test-round-ieee.c, tests/test-round1.c:
5446         * tests/test-roundf-ieee.c, tests/test-roundf1.c:
5447         * tests/test-roundl-ieee.c, tests/test-roundl.c:
5448         * tests/test-safe-alloc.c, tests/test-sigpipe.c:
5449         * tests/test-spawn-pipe-child.c, tests/test-spawn-pipe-main.c:
5450         * tests/test-strerror.c, tests/test-strerror_r.c:
5451         * tests/test-strsignal.c, tests/test-strverscmp.c:
5452         * tests/test-xmemdup0.c:
5453         Replace FSF snail mail addresses with URLs, as per GNU coding
5454         standards.  See glibc bug
5455         <http://sourceware.org/bugzilla/show_bug.cgi?id=13673>.
5456
5457 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
5458
5459         README-release: capitalize a word and split a line
5460         * top/README-release: Fix punctuation and spacing.
5461
5462 2012-02-08  Akim Demaille  <demaille@gostai.com>
5463
5464         fatal-signal: use C prototypes (with explicit void).
5465         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
5466         (init_fatal_signal_set, block_fatal_signals): Fix signatures.
5467
5468 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5469
5470         regex: spelling fix
5471         * lib/regexec.c: spelling fix
5472
5473         regex: rely on stdint.h for SIZE_MAX
5474         * lib/regex_internal.h (SIZE_MAX): Remove; stdint.h supplies this now.
5475
5476 2012-02-07  Paul Eggert  <eggert@cs.ucla.edu>
5477
5478         regex: merge glibc changes
5479
5480         * lib/regcomp.c (init_dfa): Tighten overflow checks to test
5481         for IDX_MAX too, since IDX_MAX can be much less than SIZE_MAX.
5482         (init_word_char): Work even if bitset words are not exactly 32 or
5483         64 bits wide.  Don't assume there are no padding bits.
5484         * lib/regex.c [_LIBC]: Do not include <config.h>.
5485         [!_LIBC]: Add pragmas to ignore -Wsuggest-attributes=pure
5486         and -Wtype-limits.
5487         * lib/regex.h (__USE_GNU): Renamed from __USE_GNU_REGEX, to avoid
5488         needless disagreement with glibc.  All uses changed.  Define it to
5489         1 only if _GNU_SOURCE, to match glibc.
5490         (_REG_RM_NAME): Remove; no longer needed, since the names in
5491         question are now all protected by __USE_GNU.
5492         (_REG_RE_NAME): Remove; replaced by glibc's __REPB_PREFIX.
5493         (REG_TRANSLATE_TYPE): Remove; replaced by glibc's __RE_TRANSLATE_TYPE.
5494         * lib/regex_internal.h (MIN): New macro.
5495
5496         2012-01-03 Ulrich Drepper <drepper@gmail.com>
5497         * lib/regcomp.c (init_word_char): Optimize regex a bit.
5498
5499         2011-12-30 Jakub Jelinek <jakub@redhat.com>
5500         * lib/regex_internal.c (re_string_fetch_byte_case):
5501         Fix up regcomp/regexec.  The problem is that parse_bracket_symbol
5502         is miscompiled, and it turns out it is because of an incorrect
5503         attribute on re_string_fetch_byte_case.  Unlike
5504         re_string_peek_byte_case, this one is really not pure, it modifies
5505         memory (increments pstr->cur_idx), and with the pure attribute GCC
5506         assumed it doesn't and it cached the presumed value of
5507         regexp->cur_idx in a variable across the
5508          for (;; ++i)
5509            {
5510              if (i >= BRACKET_NAME_BUF_SIZE)
5511                return REG_EBRACK;
5512              if (token->type == OP_OPEN_CHAR_CLASS)
5513                ch = re_string_fetch_byte_case (regexp);
5514              else
5515                ch = re_string_fetch_byte (regexp);
5516              if (re_string_eoi(regexp))
5517                return REG_EBRACK;
5518              if (ch == delim && re_string_peek_byte (regexp, 0) == ']')
5519                break;
5520              elem->opr.name[i] = ch;
5521            }
5522
5523         2011-11-29 Andreas Schwab <schwab@redhat.com>
5524         * lib/regcomp.c (build_equiv_class):
5525         Fix access after end of search string in regex matcher.
5526
5527         2011-11-12 Ulrich Drepper <drepper@redhat.com>
5528         * lib/regex_internal.c, lib/regex_internal.h: Fix warnings in regex.
5529
5530         2011-10-12 Ulrich Drepper <drepper@redhat.com>
5531         * lib/regcomp.c (parse_branch): One more regex memory leak fixed.
5532
5533         2011-10-11 Ulrich Drepper <drepper@redhat.com>
5534         * lib/regcomp.c (parse_branch, parse_sub_exp):
5535         More regex memory leak fixes and tests.
5536         (parse_sub_exp, parse_bracket_exp):
5537         Fix memory leak for some invalid regular expressions.
5538
5539         2011-05-28 Ulrich Drepper <drepper@gmail.com>
5540         * lib/regex_internal.c, lib/regexec.c:
5541         Fix unnecessary overallocation due to incomplete character.  When
5542         incomplete characters are found at the end of a string the code
5543         ran amok and allocated lots of memory.  Stricter limits are now in
5544         place.
5545
5546         2011-05-20 Reuben Thomas <rrt@sc3d.org>
5547         * lib/regex.h: Update documentation.
5548
5549         2011-05-16 Aharon Robbins <arnold@skeeve.com>
5550         * lib/regex.h: Update RE_SYNTAX*_AWK constants.
5551
5552         2010-05-05 Andreas Schwab <schwab@redhat.com>
5553         * lib/regexec.c (find_collation_sequence_value):
5554         Fix lookup of collation sequence value during regexp matching.
5555
5556         2010-01-22 Ulrich Drepper <drepper@redhat.com>
5557         * lib/regex_internal.c (re_dfa_add_node): Extend overflow detection.
5558
5559         2008-01-16 Ulrich Drepper <drepper@redhat.com>
5560         * lib/regex.h: Cleanup namespace.
5561
5562         2007-11-26 Ulrich Drepper <drepper@redhat.com>
5563         * lib/regex.h (REG_ENOSYS): Define REG_ENOSYS also for __USE_XOPEN2K.
5564
5565         2007-08-26 Ulrich Drepper <drepper@redhat.com>
5566         * lib/regex_internal.h: Prevent some declarations and definitions
5567         to be seen when used in tests.
5568
5569         2005-05-06 Ulrich Drepper <drepper@redhat.com>
5570         * lib/regex_internal.h: Include bits/libc-lock.h or define dummy
5571         __libc_lock_* macros if not _LIBC.
5572         (struct re_dfa_t): Add lock.
5573
5574 2012-02-07  Eric Blake  <eblake@redhat.com>
5575
5576         maint.mk: also prohibit lower-case @var@
5577         * top/maint.mk (sc_makefile_at_at_check): Enhance check to cover
5578         lower case, like @top_srcdir@.
5579
5580 2012-02-04  Eric Blake  <eblake@redhat.com>
5581
5582         canonicalize: avoid uninitialized memory use
5583         * lib/canonicalize-lgpl.c (__realpath): Avoid possibility of
5584         random '/' left in dest.
5585         * lib/canonicalize.c (canonicalize_filename_mode): Likewise.
5586
5587 2012-02-04  Bruno Haible  <bruno@clisp.org>
5588
5589         isatty: Fix test failure of ptsname_r on native Windows.
5590         * lib/isatty.c (_isatty_nothrow): Upon exception, return 0, not -1,
5591         and don't set errno.
5592         (isatty): Test first whether fd is valid. Set errno when returning 0.
5593
5594 2012-02-04  Bruno Haible  <bruno@clisp.org>
5595
5596         spawn-pipe tests: Fix a NULL program name in a diagnostic.
5597         * tests/test-spawn-pipe-main.c: Include progname.h.
5598         (main): Invoke set_program_name.
5599         * modules/spawn-pipe-tests (Depends-on): Add progname.
5600
5601         nonblocking-socket tests: Fix a NULL program name in a diagnostic.
5602         * tests/test-nonblocking-socket-main.c: Include progname.h.
5603         (main): Invoke set_program_name.
5604         * modules/nonblocking-socket-tests (Depends-on): Add progname.
5605
5606         nonblocking-pipe tests: Fix a NULL program name in a diagnostic.
5607         * tests/test-nonblocking-pipe-main.c: Include progname.h.
5608         (main): Invoke set_program_name.
5609         * modules/nonblocking-pipe-tests (Depends-on): Add progname.
5610
5611 2012-02-04  Eric Blake  <eblake@redhat.com>
5612
5613         canonicalize-lgpl: fix // handling
5614         * lib/canonicalize-lgpl.c (__realpath): Don't convert /// to //.
5615
5616         canonicalize: fix // handling
5617         * lib/canonicalize.c (canonicalize_filename_mode): Don't convert
5618         /// to //, since only // is special.
5619
5620 2012-02-04  Bruno Haible  <bruno@clisp.org>
5621
5622         ioctl: Fix test failure on native Windows.
5623         * lib/ioctl.c: Include msvc-nothrow.h.
5624         (primary_ioctl): If fd is not a valid handle, set errno to EBADF.
5625
5626 2012-02-04  Bruno Haible  <bruno@clisp.org>
5627
5628         fsync: Avoid test failure on native Windows.
5629         * lib/fsync.c (fsync) [Windows]: Don't fail if the handle is merely
5630         read-only.
5631
5632 2012-02-04  Bruno Haible  <bruno@clisp.org>
5633
5634         sys_select: Avoid syntax error on OpenBSD 5.0.
5635         * lib/sys_select.in.h [OpenBSD]: When /usr/include/pthread.h is
5636         currently being included, just include the system's <sys/select.h>.
5637
5638 2012-02-04  Bruno Haible  <bruno@clisp.org>
5639
5640         sys_select: Avoid syntax error on OpenBSD 5.0.
5641         * lib/sys_select.in.h: Include <signal.h> only after the include_next
5642         <sys/select.h>, not before.
5643         Reported by Jiri B <jirib@devio.us>.
5644
5645 2012-02-04  Bruno Haible  <bruno@clisp.org>
5646
5647         get-rusage-as, get-rusage-data tests: Avoid test failure with gcc-4.7.
5648         * tests/test-get-rusage-as.c (main): Assign the malloc() results to
5649         global variables.
5650         * tests/test-get-rusage-data.c (main): Likewise.
5651         Reported by Jim Meyering.
5652
5653 2012-02-04  Bruno Haible  <bruno@clisp.org>
5654
5655         stdioext: Fix last commit.
5656         * lib/fwritable.c [EPLAN9]: Include <fcntl.h>.
5657
5658 2012-02-03  Bruno Haible  <bruno@clisp.org>
5659
5660         stdioext: Add tentative support for Plan9.
5661         * lib/stdio-impl.h: Include <errno.h>.
5662         * lib/fseterr.c (fseterr) [EPLAN9]: Add conditional code.
5663         * lib/freadable.c (freadable): Likewise.
5664         * lib/fwritable.c (fwritable): Likewise.
5665         * lib/fbufmode.c (fbufmode): Likewise.
5666         * lib/freading.c (freading): Likewise.
5667         * lib/fwriting.c (fwriting): Likewise.
5668         * lib/freadptr.c (freadptr): Likewise.
5669         * lib/freadseek.c (freadptrinc): Likewise.
5670         * lib/freadahead.c (freadahead): Likewise.
5671         * lib/fpurge.c (fpurge): Likewise.
5672         * lib/fseeko.c (rpl_fseeko): Likewise.
5673         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Plan9.
5674         Reported by Jens Staal <staal1978@gmail.com>.
5675
5676 2012-02-02  Jim Meyering  <meyering@redhat.com>
5677
5678         file-has-acl: suppress a warning from gcc -Wsuggest-attribute=const
5679         * lib/file-has-acl.c (file_has_acl): This function (for some #ifdefs)
5680         would evoke a new gcc warning.  Given all of the #ifdefs, it is better
5681         not even to try to add the attribute.  Instead, add a pragma to suppress
5682         the suggestion/warning.
5683
5684 2012-01-31  Karl Berry  <karl@gnu.org>
5685
5686         setstate doc: typo.
5687         * doc/posix-functions/setstate.texi (setstate): { not (.
5688
5689 2012-01-31  Bruno Haible  <bruno@clisp.org>
5690
5691         popen: Make more robust on Windows.
5692         * lib/popen.c: On native Windows, use the _popen based code even if
5693         HAVE_POPEN is set.
5694         * doc/posix-functions/popen.texi: Mention necessity of COMSPEC
5695         environment variable on native Windows.
5696
5697 2012-01-30  Bruno Haible  <bruno@clisp.org>
5698
5699         pclose: Fix typo.
5700         * lib/stdio.in.h (pclose): Fix typo in warning message.
5701
5702 2012-01-30  Bruno Haible  <bruno@clisp.org>
5703
5704         doc about getlogin_r, setstate.
5705         * doc/posix-functions/getlogin_r.texi: List the incompatible
5706         declaration problem under "not fixed by gnulib".
5707         * doc/posix-functions/setstate.texi: Mention incompatible declaration
5708         problem on Solaris 11 and other platforms.
5709
5710 2012-01-30  Chuanchang Jia  <chuanchang.jia@gmail.com>  (tiny change)
5711             Bruno Haible  <bruno@clisp.org>
5712
5713         poll tests: Make test more robust.
5714         * tests/test-poll.c: Include macros.h.
5715         (test_accept_first, test_pair, test_socket_pair, test_pipe): Verify
5716         return value of various I/O operations.
5717         * modules/poll-tests (Files): Add tests/macros.h.
5718
5719 2012-01-30  Bruno Haible  <bruno@clisp.org>
5720
5721         sys_stat: Fix support for mingw64 and MSVC.
5722         * lib/sys_stat.in.h (stat) [AIX]: Don't redefine 'stat' if the system
5723         header files already do it.
5724         (stat) [mingw, msvc]: Redefine the symbol to which stat is defined, not
5725         stat itself.
5726         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5727
5728 2012-01-30  Bruno Haible  <bruno@clisp.org>
5729
5730         wcwidth: Work around bug in UTF-8 locale on OpenBSD 5.0.
5731         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test also wcwidth of U+05B0.
5732         * doc/posix-functions/wcwidth.texi: Mention the OpenBSD 5.0 bug.
5733
5734 2012-01-29  Bruno Haible  <bruno@clisp.org>
5735
5736         quotearg: Fix test failure on MacOS X 10.5.
5737         * tests/test-quotearg-simple.c: Include localcharset.h.
5738         (main): If the locale encoding is not ASCII, bypass the tests of
5739         locale_quoting_style and clocale_quoting_style.
5740         * modules/quotearg-tests (Depends-on): Add 'localcharset'.
5741
5742 2012-01-29  Jim Meyering  <meyering@redhat.com>
5743
5744         maint.mk: sc_prohibit_canonicalize_without_use: avoid false positive
5745         * top/maint.mk (sc_prohibit_canonicalize_without_use): Also
5746         detect uses of canonicalize_file_name.
5747
5748 2012-01-28  Bruno Haible  <bruno@clisp.org>
5749
5750         test-framework-sh: Fix test failure with AIX 7.1 diff.
5751         * tests/init.sh (compare_): Don't use 'diff -u' if it inserts a space
5752         in column 1, like 'diff -c' does.
5753         * tests/test-init.sh (test_compare): Don't repeat the test from init.sh
5754         whether 'diff -u' is used. Instead, test whether the output contains
5755         some '@' character.
5756
5757 2012-01-28  Paul Eggert  <eggert@cs.ucla.edu>
5758
5759         strtoimax: eliminate need for stdint.h, inttypes.h checks
5760         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't use
5761         gl_AC_HEADER_STDINT_H or gl_AC_HEADER_INTTYPES_H.  This reduces
5762         the prerequisites for a recently-introduced strtoimax test.
5763         I guess this might cause strtoimax to be replaced when not
5764         strictly necessary on older hosts, but this shouldn't introduce
5765         any bugs and it should make Emacs 'configure' faster on typical
5766         modern hosts.  Problem discovered when importing the latest gnulib
5767         to an Emacs test version.
5768         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4.
5769
5770 2012-01-28  Bruno Haible  <bruno@clisp.org>
5771
5772         sys_time: Override 'struct timeval' on some native Windows platforms.
5773         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Test whether tv_sec
5774         has the right type. Set REPLACE_STRUCT_TIMEVAL if not.
5775         (gl_HEADER_SYS_TIME_H_DEFAULTS): Initialize REPLACE_STRUCT_TIMEVAL.
5776         * lib/sys_time.in.h: Include <winsock2.h> also when 'struct timeval'
5777         needs to be overridden.
5778         (timeval): Override if REPLACE_STRUCT_TIMEVAL is set.
5779         * modules/sys_time (Makefile.am): Substitute REPLACE_STRUCT_TIMEVAL.
5780         * tests/test-sys_select.c: Check that the tv_sec member has the same
5781         size as a 'time_t'.
5782         * tests/test-sys_time.c: Likewise.
5783         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): If REPLACE_STRUCT_TIMEVAL
5784         is set, set also REPLACE_GETTIMEOFDAY.
5785         * lib/gettimeofday.c (gettimeofday): If 'struct timeval' is overridden,
5786         convert the resulting 'struct timeval' before returning.
5787         * lib/select.c: Include <sys/time.h>.
5788         (select, timeval): Undefine at the right place.
5789         * modules/select (Depends-on): Add sys_time.
5790         * doc/posix-headers/sys_time.texi: Mention the problem with tv_sec on
5791         some Windows platforms.
5792         Reported by Marc-André Lureau <marcandre.lureau@redhat.com>.
5793
5794 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5795
5796         accept4, fcntl, socket modules: Avoid warnings on x86_64 mingw64.
5797         * lib/accept4.c (accept4): Use intptr_t to convert handle pointer to
5798         an integer.
5799         * lib/fcntl.c (dupfd): Likewise.
5800         * lib/w32sock.h (SOCKET_TO_FD): Likewise.
5801
5802 2012-01-28  Bruno Haible  <bruno@clisp.org>
5803
5804         fcntl: Avoid compilation error on native Windows.
5805         * modules/fcntl (Depends-on): Add 'close'.
5806
5807 2012-01-28  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5808
5809         select, poll, isatty: Avoid warnings on x86_64 mingw64.
5810         * lib/select.c (IsConsoleHandle): Use intptr_t to convert handle
5811         pointer to an integer.
5812         * lib/poll.c (IsConsoleHandle): Likewise.
5813         * lib/isatty.c (IsConsoleHandle): Likewise.
5814
5815 2012-01-28  Jim Meyering  <meyering@redhat.com>
5816
5817         doc: clarify README-release
5818         * top/README-release: Clarify: you should make a point to have
5819         the latest stable versions of build tools in your PATH, and the
5820         reference to buildreq is solely for its list of tool names, not
5821         for its minimal-functional version numbers.
5822         Prompted by discussion with Reuben Thomas and Gary V. Vaughan.
5823
5824         maint.mk: use more readable (yet functionally equivalent) quoting
5825         It is common to quote a single quote in a single quoted string like
5826         this:  '...'\''...'.  Unless you know the idiom, that looks like
5827         gibberish, so prefer to double-quote the string when possible.
5828         Then you can use a more readable, lone single quote: "...'..."
5829         * top/maint.mk (sc_cast_of_argument_to_free): Quoting like this
5830         "don't" is more readable than the equivalent 'don'\''t'.
5831         (sc_cast_of_x_alloc_return_value): Likewise.
5832         (sc_cast_of_alloca_return_value): Likewise.
5833         (sc_makefile_path_separator_check): Similar: use ":" in '...',
5834         rather than '\'':'\''.
5835
5836 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5837
5838         stdalign: relax _Alignof and tighten _Alignas test
5839         * m4/stdalign.m4 (gl_STDALIGN_H): Relax the _Alignof test,
5840         as it was too strict: alignof must divide offsetof, but it need
5841         not equal offsetof.  Inspired by Joseph S. Myers's comment
5842         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=52023#c10>.
5843         Conversely, tighten the _Alignas test a bit, as the resulting
5844         alignment must be exactly 8.
5845
5846 2012-01-27  Bruno Haible  <bruno@clisp.org>
5847
5848         stdalign: Document the last change.
5849         * doc/posix-headers/stdalign.texi: Mention GCC bug 52023.
5850
5851 2012-01-27  Paul Eggert  <eggert@cs.ucla.edu>
5852
5853         stdalign: check that alignof and offsetof are consistent
5854         * m4/stdalign.m4 (gl_STDALIGN_H): Check for GCC bug 52023.
5855         Problem reported for gnulib by Richard W.M. Jones in
5856         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00340.html>.
5857
5858 2012-01-27  Jim Meyering  <meyering@redhat.com>
5859
5860         update-copyright: accept new option: UPDATE_COPYRIGHT_USE_INTERVALS=2
5861         * build-aux/update-copyright: When UPDATE_COPYRIGHT_USE_INTERVALS=2,
5862         convert a sequence with gaps to the minimal containing range.
5863         For example, convert 2000, 2004-2007, 2009 to 2000-2009.
5864         * tests/test-update-copyright.sh: Test for this.
5865         The FSF confirmed it is ok to do this, assuming there is at
5866         least one significant change per year in the affected range:
5867         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29554/focus=29860
5868
5869 2012-01-26  Bruno Haible  <bruno@clisp.org>
5870
5871         pipe2: refine doc about thread-safety
5872         * doc/glibc-functions/pipe2.texi: Clarify the extent of the
5873         multithread-safety problem.
5874         * doc/glibc-functions/accept4.texi: Likewise.
5875
5876 2012-01-26  Bruno Haible  <bruno@clisp.org>
5877
5878         posix_spawn_file_actions_addopen: Fix 2012-01-08 commit.
5879         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN):
5880         In the test program, include <fcntl.h>, for O_RDONLY.
5881
5882 2012-01-26  Eric Blake  <eblake@redhat.com>
5883
5884         pipe2: document lack of thread-safety in replacement
5885         * doc/glibc-functions/pipe2.texi (pipe2): Mention thread safety
5886         issue in replacement.
5887         * doc/glibc-functions/accept4.texi (accept4): Likewise.
5888         Based on a report by Eric Wong.
5889
5890 2012-01-24  Marc-André Lureau  <marcandre.lureau@redhat.com>  (tiny change)
5891             Bruno Haible  <bruno@clisp.org>
5892
5893         malloca: Avoid warnings on x86_64 mingw64.
5894         * lib/malloca.c: Include <stdint.h>.
5895         (mmalloca, freea): Use uintptr_t to convert pointers to integers.
5896         * modules/malloca (Depends-on): Add stdint.
5897         * modules/relocatable-prog-wrapper (Depends-on): Likewise.
5898
5899 2012-01-25  Paul Eggert  <eggert@cs.ucla.edu>
5900
5901         obstack: remove __STDC__ conditionals
5902         * lib/obstack.h: Remove __STDC__ conditionals, as suggested by Joseph
5903         S. Myers in <http://cygwin.com/ml/libc-alpha/2012-01/msg00104.html>.
5904         This leaves lib/localcharset.c, m4/iconv.m4, and a confusing comment in
5905         m4/include_next.m4 as the only gnulib-maintained places that still
5906         refer to __STDC__.
5907
5908 2012-01-24  Bruno Haible  <bruno@clisp.org>
5909
5910         havelib: Modern quoting.
5911         * build-aux/config.rpath: Quote 'like this', not `like this', as per
5912         the recent change to the GNU coding standards.
5913
5914 2012-01-24  Bruno Haible  <bruno@clisp.org>
5915
5916         stdint: Improve support for Android.
5917         * lib/stdint.in.h: Test __ANDROID__, not __BIONIC__.
5918         Reported by Simon Josefsson <simon@josefsson.org>.
5919
5920 2012-01-23  Paul Eggert  <eggert@cs.ucla.edu>
5921
5922         doc: omit trailing empty lines from INSTALL etc.
5923         * doc/Makefile (INSTALL): Omit trailing empty lines.
5924         (INSTALL.ISO, INSTALL.UTF-8): Build from INSTALL, so that these also
5925         omit trailing empty lines.  This simplifies the build procedure.
5926
5927 2012-01-23  Jim Meyering  <meyering@redhat.com>
5928
5929         tests: avoid spurious warnings about gl_sockets_startup
5930         Fedora rawhide's gcc version 4.7.0 20120119 with -Wunused-value
5931         would warn about every use of "gl_sockets_startup (SOCKETS_1_1);"
5932         reporting a "statement with no effect".
5933         * tests/test-accept.c (main): Mark as "(void)".
5934         * tests/test-accept4.c (main): Likewise.
5935         * tests/test-bind.c (main): Likewise.
5936         * tests/test-connect.c (main): Likewise.
5937         * tests/test-getpeername.c (main): Likewise.
5938         * tests/test-getsockname.c (main): Likewise.
5939         * tests/test-getsockopt.c (main): Likewise.
5940         * tests/test-listen.c (main): Likewise.
5941         * tests/test-recv.c (main): Likewise.
5942         * tests/test-recvfrom.c (main): Likewise.
5943         * tests/test-send.c (main): Likewise.
5944         * tests/test-sendto.c (main): Likewise.
5945         * tests/test-setsockopt.c (main): Likewise.
5946         * tests/test-shutdown.c (main): Likewise.
5947
5948 2012-01-21  Bruno Haible  <bruno@clisp.org>
5949
5950         locale-fr.m4: Fix for Android.
5951         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Avoid compilation
5952         failure of the test program on Bionic libc.
5953
5954 2012-01-21  Jim Meyering  <meyering@redhat.com>
5955
5956         bootstrap: fail when bootstrap_post_import_hook fails
5957         Otherwise, it's far too easy to miss diagnostics emitted
5958         between gnulib-tool's output and that of running configure.
5959         * build-aux/bootstrap: Fail when bootstrap_post_import_hook fails.
5960
5961 2012-01-17  Jim Meyering  <meyering@redhat.com>
5962
5963         maint: enable sc_trailing_blank
5964         * build-aux/pmccabe.css: Remove trailing blanks.
5965         * doc/acl-cygwin.txt: Likewise.
5966         * doc/gnu-oids.texi: Likewise
5967         * cfg.mk: Enable sc_trailing_blank.
5968         Exempt build-aux/texinfo.tex and doc/Copyright/assign.future.manual.
5969
5970 2012-01-17  Jim Meyering  <meyering@redhat.com>
5971
5972         maint: enable sc_prohibit_openat_without_use
5973         * cfg.mk: Enable sc_prohibit_openat_without_use.
5974         Exempt lib/selinux-at.c.
5975
5976 2012-01-17  Jim Meyering  <meyering@redhat.com>
5977
5978         maint: enable sc_prohibit_cloexec_without_use
5979         * cfg.mk: Enable sc_prohibit_cloexec_without_use.
5980         * lib/dup-safer-flag.c: Don't include "cloexec.h".  Not needed.
5981
5982 2012-01-17  Jim Meyering  <meyering@redhat.com>
5983
5984         maint: enable sc_prohibit_intprops_without_use
5985         * cfg.mk: Enable sc_prohibit_intprops_without_use
5986         * tests/test-nanosleep.c: Don't include "intprops.h".  Not needed.
5987
5988 2012-01-17  Jim Meyering  <meyering@redhat.com>
5989
5990         maint: enable sc_prohibit_hash_pjw_without_use
5991         * cfg.mk: Enable sc_prohibit_hash_pjw_without_use.
5992         * top/maint.mk (sc_prohibit_hash_pjw_without_use): Adjust regexp
5993         to match any use of \<hash_pjw\>, i.e., not necessarily with a
5994         following " (".
5995
5996 2012-01-17  Jim Meyering  <meyering@redhat.com>
5997
5998         maint: enable double-word-prohibiting rule
5999         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_doubled_word.
6000         Exempt three files.
6001
6002 2012-01-17  Jim Meyering  <meyering@redhat.com>
6003
6004         maint: remove empty lines at EOF, but excluding modules/*
6005         Apply syntax rules at home as well as abroad.  Most changes
6006         were induced by running this:
6007           make srcdir=. _build-aux=build-aux -f top/maint.mk \
6008             sc_prohibit_empty_lines_at_EOF | grep -v modules/ \
6009             | xargs perl -pi -0777 -e 's/\n\n+$/\n/'
6010         * cfg.mk (local-checks-to-skip): Enable sc_prohibit_empty_lines_at_EOF.
6011         Exempt modules/* and two binary files.
6012         Also exempt doc/INSTALL*, per request from Bruno Haible.
6013         * doc/regexprops-generic.texi: *Add* a newline at EOF.  There was none.
6014         * doc/Copyright/assign.translation.manual: Remove empty lines at EOF.
6015         * doc/Copyright/request-assign.future: Likewise.
6016         * doc/Copyright/request-disclaim.changes: Likewise.
6017         * doc/INSTALL: Likewise.
6018         * doc/INSTALL.ISO: Likewise.
6019         * doc/INSTALL.UTF-8: Likewise.
6020         * doc/acl-cygwin.txt: Likewise.
6021         * doc/acl-resources.txt: Likewise.
6022         * doc/fdl-1.2.texi: Likewise.
6023         * doc/fdl-1.3.texi: Likewise.
6024         * doc/fdl.texi: Likewise.
6025         * lib/argp-pin.c: Likewise.
6026         * lib/round.c: Likewise.
6027         * lib/unicase/u16-totitle.c: Likewise.
6028         * lib/unictype/block_test.c: Likewise.
6029         * lib/uninorm/canonical-decomposition.c: Likewise.
6030         * m4/README: Likewise.
6031         * m4/relocatable-lib.m4: Likewise.
6032         * tests/test-isnand-nolibm.c: Likewise.
6033         * tests/test-isnand.c: Likewise.
6034         * tests/uninorm/NormalizationTest.txt: Likewise.
6035
6036 2012-01-17  Jim Meyering  <meyering@redhat.com>
6037
6038         maint: add framework to run syntax-check rules against gnulib sources
6039         * cfg.mk: New file, to disable all currently-failing tests.
6040         We'll enable them one by one, as they are made to pass.
6041         * Makefile (sc_maint): New rule.
6042
6043 2012-01-21  Bruno Haible  <bruno@clisp.org>
6044
6045         stdint: Add support for Android.
6046         * lib/stdint.in.h: When included from Bionic <sys/types.h>, just
6047         include the system's <stdint.h>.
6048         Reported by Simon Josefsson <simon@josefsson.org>.
6049
6050 2012-01-19  Jim Meyering  <meyering@redhat.com>
6051
6052         bootstrap: add bootstrap_post_import_hook
6053         Bison does still need something like the gnulib_mk_hook whose
6054         invocation I had to remove along with slurp in commit 767ccd40.
6055         Technically, we could get along without it, but doing so would
6056         have required living with a warning and a mandatory post-bootstrap
6057         automake rerun.
6058         * build-aux/bootstrap (gnulib_mk_hook): Remove definition, too.
6059         (bootstrap_post_import_hook): New function.
6060         Invoke it after gnulib-tool --import and before autoreconf.
6061
6062 2012-01-18  Jim Meyering  <meyering@redhat.com>
6063
6064         gitlog-to-changelog: don't use "no_"-prefixed variable name
6065         * build-aux/gitlog-to-changelog (main): Use getopt's "!" attribute
6066         to enable both --cluster and --no-cluster.  Change variable name,
6067         s/\$no_cluster/$cluster/, and reverse usage to match.
6068
6069         gitlog-to-changelog: use "||", not "or" in expressions
6070         * build-aux/gitlog-to-changelog (main): Use "||", not "or" in
6071         expressions.
6072
6073 2012-01-17  Joel E. Denny  <joeldenny@joeldenny.org>
6074
6075         gitlog-to-changelog: new option --no-cluster
6076         * build-aux/gitlog-to-changelog: New option --no-cluster, disables
6077         clustering of adjacent commit messages.
6078
6079 2012-01-17  Jim Meyering  <meyering@redhat.com>
6080
6081         maint: spell file systems with two words, not one
6082         * m4/ls-mntd-fs.m4 (MOUNTED_INTERIX_STATVFS): Spell file systems with
6083         two words, not one.
6084
6085 2012-01-16  Jim Meyering  <meyering@redhat.com>
6086
6087         bootstrap: add a FIXME comment to ensure we eventually remove the hack
6088         * build-aux/bootstrap (gnulib_tool_options): Add comment.
6089
6090 2012-01-16  Eric Blake  <eblake@redhat.com>
6091
6092         bootstrap: cater to autoconf 2.59
6093         * build-aux/bootstrap (AUTORECONF): Work even when --no-recursive
6094         is not available.
6095
6096         bootstrap: properly check for libtool
6097         * build-aux/bootstrap (libtoolize): Also run libtool when older
6098         usage is detected.
6099
6100 2012-01-15  Bruno Haible  <bruno@clisp.org>
6101
6102         Improve support for MSVC 9.
6103         * lib/unistd.in.h: Include <io.h> when needed to avoid redefinition
6104         clashes on MSVC.
6105         * lib/fcntl.in.h: Likewise.
6106         * lib/stdlib.in.h: Likewise.
6107         * lib/sys_stat.in.h: Likewise.
6108
6109 2011-01-15  Stefano Lattarini  <stefano.lattarini@gmail.com>
6110
6111         gnupload: we hold the master copy of this script now
6112         For motivation and more information, see:
6113         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00222.html>
6114         * build-aux/gnupload: Make it clear in the heading comments that the
6115         master copy of this file is maintained by gnulib.  Since we are at
6116         it, bump its copyright year and ...
6117         ($scriptversion): ... the date in its version.
6118         ($usage): Patches and bug reports should be sent to the gnulib list,
6119         not the automake one.
6120         * config/srclist.txt: Don't try to sync 'gnupload' from automake
6121         anymore.
6122
6123 2012-01-15  Bruno Haible  <bruno@clisp.org>
6124
6125         Fix module 'random'.
6126         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether random, srandom,
6127         initstate, setstate are declared.
6128
6129 2012-01-14  Bruno Haible  <bruno@clisp.org>
6130
6131         Tests for module 'random'.
6132         * modules/random-tests: New file.
6133         * tests/test-random.c: New file, based on tests/test-random_r.c.
6134
6135         New module 'random'.
6136         * lib/stdlib.in.h (random, srandom, initstate, setstate): New
6137         declarations.
6138         * lib/random.c: New file, based on glibc/stdlib/random.c.
6139         * m4/random.m4: New file.
6140         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RANDOM,
6141         HAVE_RANDOM.
6142         * modules/stdlib (Makefile.am): Substitute GNULIB_RANDOM, HAVE_RANDOM.
6143         * modules/random: New file.
6144         * config/srclist.txt: Add an entry for random.c.
6145         * doc/posix-functions/random.texi: Mention the 'random' module.
6146         * doc/posix-functions/initstate.texi: Likewise.
6147         * doc/posix-functions/setstate.texi: Likewise.
6148         * doc/posix-functions/srandom.texi: Likewise.
6149
6150 2012-01-12  Bruno Haible  <bruno@clisp.org>
6151
6152         random_r: Use common idioms.
6153         * lib/random_r.c: Include <stdlib.h> first.
6154
6155         random_r: Override incompatible API on AIX, OSF/1.
6156         * lib/stdlib.in.h (random_r, srandom_r, initstate_r, setstate_r):
6157         Override the system function if REPLACE_RANDOM_R is 1.
6158         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Require AC_CANONICAL_HOST. On AIX
6159         and OSF/1, set REPLACE_RANDOM_R.
6160         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_RANDOM_R.
6161         * modules/stdlib (Makefile.am): Substitute REPLACE_RANDOM_R.
6162         * modules/random_r (configure.ac): Test REPLACE_RANDOM_R.
6163         * doc/glibc-functions/initstate_r.texi: Mention the AIX, OSF/1 problem.
6164         * doc/glibc-functions/random_r.texi: Likewise.
6165         * doc/glibc-functions/setstate_r.texi: Likewise.
6166
6167         random_r: Support for MSVC 9.
6168         * lib/random_r.c: Include stdint.h, not inttypes.h.
6169
6170 2012-01-12  Eric Blake  <eblake@redhat.com>
6171
6172         inet_ntop: guard extra work by IF_LINT
6173         * lib/inet_ntop.c (inet_ntop6): Mark spurious initialization, for
6174         better code generation when not checking for warnings.
6175         Suggested by Paul Eggert and Jim Meyering.
6176
6177         strptime: fix regression on mingw
6178         * lib/strptime.c (__strptime_internal) [!_LIBC && !HAVE_TM_GMTOFF]:
6179         Fix regression.  Reported by Bruno Haible.
6180
6181 2012-01-11  Reuben Thomas  <rrt@sc3d.org>
6182             Bruno Haible  <bruno@clisp.org>
6183
6184         copy-file: add error-code-returning variant.
6185         * lib/copy-file.h (GL_COPY_ERR_*): New enumeration items.
6186         (qcopy_file_preserving): New declaration.
6187         * lib/copy-file.c (qcopy_file_preserving): Renamed from
6188         copy_file_preserving. Change return type to 'int'. Don't emit an error
6189         message here.
6190         (copy_file_preserving): New function.
6191         * tests/test-copy-file.c: Include <stdlib.h>.
6192         (main): Test qcopy_file_preserving if the environment variable
6193         NO_STDERR_OUTPUT is set.
6194         * tests/test-copy-file-1.sh: Invoke test-copy-file.sh a second time,
6195         with NO_STDERR_OUTPUT
6196         * tests/test-copy-file-2.sh: Likewise.
6197
6198 2012-01-10  Bruno Haible  <bruno@clisp.org>
6199
6200         copy-file: Use 'quote' module consistently.
6201         * lib/copy-file.c (copy_file_preserving): Use quote().
6202
6203         copy-file: Refactor.
6204         * lib/copy-file.c: Include quote.h.
6205         (copy_file_preserving): Call qcopy_acl instead of copy_acl. Emit error
6206         message here.
6207         * modules/copy-file (Depends-on): Add quote.
6208
6209         acl: Export qcopy_acl.
6210         * lib/acl.h (qcopy_acl): New declaration.
6211         * lib/copy-acl.c (qcopy_acl): Make non-static.
6212
6213         acl: Rename a local variable.
6214         * lib/set-mode-acl.c (set_acl): Use same variable name as in copy_acl.
6215
6216         acl: Align return values of copy_acl and qcopy_acl.
6217         * lib/copy-acl.c (copy_acl): Return the same value as qcopy_acl,
6218         maybe < -1.
6219
6220 2012-01-11  Eric Blake  <eblake@redhat.com>
6221
6222         strptime: silence gcc warnings
6223         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT],
6224         [!_LIBC && !HAVE_TM_GMTOFF]: Avoid unused variables.
6225         Reported by Daniel P. Berrange.
6226
6227         inet_ntop: silence gcc warning
6228         * lib/inet_ntop.c (inet_ntop6): Initialize best.base.
6229         Reported by Daniel P. Berrange.
6230
6231 2012-01-11  Dmitry V. Levin  <ldv@altlinux.org>
6232
6233         getloadavg test: skip the test on GNU/Linux without /proc mounted
6234         GNU libc implements getloadavg(3) on Linux by parsing /proc/loadavg
6235         file.  When /proc is not mounted, it always fails with ENOENT.
6236         * tests/test-getloadavg.c (main): Treat ENOENT return code from
6237         getloadavg(3) the same way as ENOSYS and ENOTSUP.
6238
6239 2012-01-10  Bruno Haible  <bruno@clisp.org>
6240
6241         regex: Avoid link error on MSVC 9.
6242         * modules/regex (Depends-on): Add wctype.
6243
6244 2012-01-10  Bruno Haible  <bruno@clisp.org>
6245
6246         doc: Mention --with-tests option.
6247         * gnulib-tool (func_usage): Suggest --with-tests for --test etc.
6248         * doc/gnulib.texi (Extra tests modules): Mention the need to pass
6249         --with-tests.
6250         Reported by Reuben Thomas.
6251
6252 2012-01-10  Reuben Thomas  <rrt@sc3d.org>
6253
6254         users.txt: order package names lexicographically.
6255         * users.txt: Order package names lexicographically.
6256
6257 2012-01-10  Jim Meyering  <meyering@redhat.com>
6258
6259         maint.mk: fix description in comment
6260         * top/maint.mk (require_exactly_one_NL_at_EOF_): Fix comment.
6261
6262         ignore-value: remove deprecated ignore_ptr function
6263         * lib/ignore-value.h (ignore_ptr): Remove deprecated function.
6264         * NEWS: Note this.
6265
6266 2012-01-09  Jim Meyering  <meyering@redhat.com>
6267
6268         test-init.sh: avoid a subshell
6269         * tests/test-init.sh: Remove protective subshell.
6270         Suggested by Bernhard Voelker.  While a subshell is normally
6271         required to protect against older shells (Solaris, FreeBSD) that
6272         warn about a missing program before performing redirection, the
6273         shell-selection tests performed by init.sh probably exclude any
6274         offending shell.
6275
6276 2012-01-08  Bruno Haible  <bruno@clisp.org>
6277
6278         setlocale tests: Avoid test failure on Solaris 11 2011-11.
6279         * tests/test-setlocale2.sh: Use 'env' to set the LC_ALL environment
6280         variable.
6281
6282 2012-01-08  Bruno Haible  <bruno@clisp.org>
6283
6284         posix_spawn_file_actions_addopen: Work around Solaris 11 2011-11 bug.
6285         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6286         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6287         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN): New
6288         macro.
6289         * lib/spawn.in.h (posix_spawn_file_actions_addopen): Test
6290         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6291         * lib/spawn_faction_addopen.c: Add workaround implementation if
6292         HAVE_WORKING_POSIX_SPAWN.
6293         * modules/spawn (Makefile): Substitute
6294         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN.
6295         * modules/posix_spawn_file_actions_addopen (configure.ac): Invoke
6296         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN. Test
6297         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDOPEN, not REPLACE_POSIX_SPAWN.
6298         (Depends-on): Update conditions.
6299         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
6300         the Solaris 11 bug.
6301
6302 2012-01-08  Bruno Haible  <bruno@clisp.org>
6303
6304         posix_spawn_file_actions_adddup2: Work around Solaris 11 2011-11 bug.
6305         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6306         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6307         * m4/posix_spawn.m4 (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2): New
6308         macro.
6309         * lib/spawn.in.h (posix_spawn_file_actions_adddup2): Test
6310         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6311         * lib/spawn_faction_adddup2.c: Add workaround implementation if
6312         HAVE_WORKING_POSIX_SPAWN.
6313         * modules/spawn (Makefile): Substitute
6314         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2.
6315         * modules/posix_spawn_file_actions_adddup2 (configure.ac): Invoke
6316         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2. Test
6317         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDDUP2, not REPLACE_POSIX_SPAWN.
6318         (Depends-on): Update conditions.
6319         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
6320         the Solaris 11 bug.
6321
6322 2012-01-08  Bruno Haible  <bruno@clisp.org>
6323
6324         posix_spawn_file_actions_addclose: Work around Solaris 11 2011-11 bug.
6325         * m4/spawn_h.m4 (gl_SPAWN_H_DEFAULTS): Initialize
6326         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6327         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Define
6328         HAVE_WORKING_POSIX_SPAWN.
6329         (gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE): New macro.
6330         * lib/spawn.in.h (posix_spawn_file_actions_addclose): Test
6331         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6332         * lib/spawn_faction_addclose.c: Add workaround implementation if
6333         HAVE_WORKING_POSIX_SPAWN.
6334         * modules/spawn (Makefile): Substitute
6335         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE.
6336         * modules/posix_spawn_file_actions_addclose (configure.ac): Invoke
6337         gl_FUNC_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE. Test
6338         REPLACE_POSIX_SPAWN_FILE_ACTIONS_ADDCLOSE, not REPLACE_POSIX_SPAWN.
6339         (Depends-on): Update conditions.
6340         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
6341         the Solaris 11 bug.
6342
6343 2012-01-08  Bruno Haible  <bruno@clisp.org>
6344
6345         doc: Update for Solaris 11 2011-11.
6346         * doc/*/*.texi: Mention Solaris 11 2011-11 where appropriate.
6347         * m4/printf.m4: Update comments.
6348
6349 2012-01-08  Bruno Haible  <bruno@clisp.org>
6350
6351         mktime: Avoid compilation error on Solaris 11.
6352         * lib/mktime.c (WRAPV): Define to 0 on all non-glibc systems.
6353
6354 2012-01-08  Bruno Haible  <bruno@clisp.org>
6355
6356         doc: Small fix.
6357         * doc/posix-headers/nl_types.texi: Correct platforms list.
6358
6359 2012-01-08  Simon Josefsson  <simon@josefsson.org>
6360
6361         Add lgpl-3.0 module.
6362         * MODULES.html.sh (Support for building documentation): Add
6363         lgpl-3.0.
6364         * modules/lgpl-3.0: New file.
6365
6366 2012-01-08  Jim Meyering  <meyering@redhat.com>
6367
6368         select.c: indent with spaces, not TABs
6369         * lib/select.c (windows_poll_handle): Indent with spaces, not TABs.
6370
6371 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6372
6373         quotearg: do not use grave accent for left quote
6374         * lib/quotearg.c (gettext_quote): Map "`" to "'" for
6375         locale_quoting_style.
6376         (quotearg_buffer_restyled): Fix example.
6377         * tests/test-quotearg-simple.c (results_g): Adjust test vectors.
6378
6379 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6380
6381         quotearg: fall back to Unicode single quotes in UTF-8, GB-18030 locales
6382         Most programs do not have translation catalogs for English and much
6383         less separate catalogs for British and American English.  Drop the
6384         suggestion to translators about these two, and provide it
6385         automatically for Unicode locales.  Like most programs, even those
6386         using American English, we use single quotation marks.  This conflicts
6387         with the American typographic convention, but works better when you
6388         cite the entire error message within double quotes.  It also tries not
6389         to clash with established practice and with what non-gnulib programs
6390         will usually do.
6391         * lib/quotearg.c (gettext_quote): Hard-code U+2018 and U+2019 when
6392         using an UTF-8 or GB-18030 locale.  The list of other locales with
6393         quotes was provided by Bruno Haible.
6394         (quotearg_buffer_restyled): Adjust instructions to translators.
6395         * lib/quotearg.h (locale_quoting_style): Do not put an example in the
6396         text, since this would be wrong when using Unicode.
6397         * modules/quotearg: Depend on c-strcaseeq.
6398
6399 2012-01-07  Paolo Bonzini  <bonzini@gnu.org>
6400
6401         quotearg: fix Wikipedia link
6402         * lib/quotearg.c (quotearg_buffer_restyled): Fix link to Wikipedia.
6403
6404 2012-01-07  Simon Josefsson  <simon@josefsson.org>
6405
6406         Fix for mingw with MSVC9.
6407         * m4/ld-version-script.m4: Check that compiler rejects version
6408         scripts with syntax errors.  Reported by Bruno Haible
6409         <bruno@clisp.org>.
6410
6411 2012-01-06  Bruno Haible  <bruno@clisp.org>
6412
6413         Talk about "native Windows API", not "Woe32".
6414         * lib/accept4.c: Update comments to mention native Windows.
6415         * lib/execute.c: Likewise.
6416         * lib/fatal-signal.c: Likewise.
6417         * lib/localcharset.c: Likewise.
6418         * lib/nanosleep.c: Likewise.
6419         * lib/nl_langinfo.c: Likewise.
6420         * lib/pclose.c: Likewise.
6421         * lib/pipe-filter-gi.c: Likewise.
6422         * lib/pipe-filter-ii.c: Likewise.
6423         * lib/pipe.c: Likewise.
6424         * lib/pipe2.c: Likewise.
6425         * lib/popen.c: Likewise.
6426         * lib/progreloc.c: Likewise.
6427         * lib/relocatable.c: Likewise.
6428         * lib/sigaction.c: Likewise.
6429         * lib/sigprocmask.c: Likewise.
6430         * lib/spawn-pipe.h: Likewise.
6431         * lib/spawn-pipe.c: Likewise.
6432         * lib/spawni.c: Likewise.
6433         * lib/stat-time.h: Likewise.
6434         * lib/w32spawn.h: Likewise.
6435         * tests/test-isatty.c: Likewise.
6436         * lib/config.charset: More comments.
6437         * doc/gnulib-intro.texi: Mention native Windows.
6438         * doc/posix-functions/_Exit_C99.texi: Likewise.
6439         * doc/posix-headers/fcntl.texi: Likewise.
6440
6441 2012-01-06  Guillem Jover  <guillem@hadrons.org>  (tiny change)
6442
6443         argp: Avoid crash if translator uses % characters in a translation.
6444         * lib/argp-parse.c (argp_version_parser): Use a "%s" format string.
6445         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6446
6447 2012-01-06  Paul Eggert  <eggert@cs.ucla.edu>
6448
6449         doc: C11 and C++11 are now official
6450         * doc/posix-headers/assert.texi, doc/posix-headers/stdalign.texi:
6451         * doc/verify.texi, stdalign.in.h, verify.h, m4/gnulib-common.m4:
6452         * m4/stdalign.m4, modules/assert-h, modules/snippet/_Noreturn:
6453         * modules/stdalign:
6454         Replace references to draft C1X to C11, and to draft C++0X to C++11.
6455
6456 2012-01-06  Bruno Haible  <bruno@clisp.org>
6457
6458         uc-is-grapheme-break tests: Tweak.
6459         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Fix an error
6460         message.
6461
6462 2012-01-06  Bruno Haible  <bruno@clisp.org>
6463
6464         test-init.sh: correct the test for diff -u
6465         * tests/test-init.sh: Also redirect stdout to /dev/null.
6466
6467 2012-01-05  Paul Eggert  <eggert@cs.ucla.edu>
6468
6469         Use ', not `, for quoting output.
6470         * build-aux/announce-gen (usage, sizes, print_news_deltas)
6471         (print_changelog_deltas, get_tool_versions, main program):
6472         * build-aux/git-version-gen:
6473         * build-aux/gitlog-to-changelog (usage, parse_amend_file):
6474         * build-aux/move-if-change (help):
6475         * build-aux/useless-if-before-free (usage, main program):
6476         * check-module (parse_module_file, usage)
6477         (find_included_lib_files, check_module):
6478         * lib/argmatch.c (main) [TEST]:
6479         * lib/argp-help.c (_help):
6480         * lib/getopt1.c (main) [TEST]:
6481         * lib/git-merge-changelog.c (usage):
6482         * lib/xstrtol-error.c (xstrtol_error):
6483         * m4/alloca.m4 (_AC_LIBOBJ_ALLOCA):
6484         * m4/argz.m4 (gl_FUNC_ARGZ):
6485         * m4/bison.m4 (gl_BISON):
6486         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU):
6487         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS):
6488         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
6489         * m4/fpending.m4 (gl_PREREQ_FPENDING):
6490         * m4/gc-random.m4 (gl_GC_RANDOM):
6491         * m4/intl.m4 (gt_CHECK_DECL):
6492         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK):
6493         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT)
6494         (AC_TYPE_UNSIGNED_LONG_LONG_INT):
6495         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS):
6496         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK):
6497         * m4/onceonly.m4 (AC_CHECK_FUNCS_ONCE):
6498         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION):
6499         * tests/test-dirname.c (main):
6500         * tests/test-getpass.c (main):
6501         * tests/test-iconvme.c (main):
6502         * tests/test-parse-datetime.c (LOG):
6503         * tests/test-xstrtoimax.sh:
6504         * tests/test-xstrtol.sh:
6505         * tests/test-xstrtoll.sh:
6506         * tests/test-xstrtoumax.sh:
6507         * tests/unigbrk/test-uc-is-grapheme-break.c (main):
6508         * top/GNUmakefile (abort-due-to-no-makefile):
6509         Quote 'like this', not `like this', as per the recent change to
6510         the GNU coding standards.
6511
6512 2012-01-05  Bruno Haible  <bruno@clisp.org>
6513
6514         strtoimax: Don't force a replacement on systems where intmax_t is int.
6515         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Use a different test if
6516         'intmax_t' is not larger than 'int'.
6517         Reported by Pádraig Brady <P@draigBrady.com>.
6518
6519 2012-01-05  Bruno Haible  <bruno@clisp.org>
6520
6521         doc: Mention NetBSD bugs.
6522         * doc/posix-functions/*printf.texi: Mention a NetBSD 5.1 bug.
6523         * doc/posix-functions/nl_langinfo.texi: Mention another NetBSD 5.1 bug.
6524
6525 2012-01-05  Bruno Haible  <bruno@clisp.org>
6526
6527         strtoumax tests: Enhance tests.
6528         * tests/test-strtoumax.c (main): Add tests for large values.
6529
6530 2012-01-05  Bruno Haible  <bruno@clisp.org>
6531
6532         strtoimax: Work around AIX 5.1 bug.
6533         * lib/inttypes.in.h (strtoimax): Allow overriding the system's
6534         definition.
6535         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Check against the AIX 5.1 bug.
6536         Set HAVE_STRTOIMAX.
6537         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Initialize
6538         REPLACE_STRTOIMAX.
6539         * modules/inttypes-incomplete (Makefile.am): Substitute
6540         REPLACE_STRTOIMAX.
6541         * modules/strtoimax (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
6542         (configure.ac): Test HAVE_STRTOIMAX, REPLACE_STRTOIMAX.
6543         (Depends-on): Update conditions.
6544         * tests/test-strtoimax.c (main): Add tests for large values.
6545         * doc/posix-functions/strtoimax.texi: Mention the AIX 5.1 bug.
6546
6547 2012-01-05  Bruno Haible  <bruno@clisp.org>
6548
6549         inttypes: Modernize.
6550         * lib/inttypes.in.h (strtoimax, strtoumax): Use the C++ safe idioms.
6551         * modules/inttypes-incomplete (Depends-on): Add snippet/c++defs.
6552         (Makefile.am): Update inttypes.h rule.
6553
6554 2012-01-05  Jim Meyering  <meyering@redhat.com>
6555
6556         init.sh: don't waste a subshell just to redirect stderr
6557         * tests/init.sh: In testing for diff -u and diff -c, use a
6558         stderr-redirecting exec inside `...` rather than a subshell.
6559
6560         test-init.sh: avoid failure on HP-UX 11.00
6561         * tests/test-init.sh: Skip "diff -u"-comparing step when compare
6562         resolves to diff -c or cmp.  Reported by Bruno Haible.
6563
6564 2012-01-05  Bruno Haible  <bruno@clisp.org>
6565
6566         Tests for module 'strtoull'.
6567         * modules/strtoull-tests: New file.
6568         * tests/test-strtoull.c: New file, based on tests/test-strtoumax.c.
6569
6570 2012-01-05  Bruno Haible  <bruno@clisp.org>
6571
6572         Tests for module 'strtoll'.
6573         * modules/strtoll-tests: New file.
6574         * tests/test-strtoll.c: New file, based on tests/test-strtoimax.c.
6575
6576 2012-01-05  Bruno Haible  <bruno@clisp.org>
6577
6578         Tests for module 'strtoul'.
6579         * modules/strtoul-tests: New file.
6580         * tests/test-strtoul.c: New file, based on tests/test-strtoumax.c.
6581
6582 2012-01-05  Bruno Haible  <bruno@clisp.org>
6583
6584         Tests for module 'strtol'.
6585         * modules/strtol-tests: New file.
6586         * tests/test-strtol.c: New file, based on tests/test-strtoimax.c.
6587
6588 2012-01-04  Jim Meyering  <meyering@redhat.com>
6589
6590         test-init.sh: accommodate Solaris 5.10's different diff -u output
6591         * tests/test-init.sh: Also exempt @@ lines from the comparison
6592         of diff output, since Solaris 5.10 and GNU diff formats differ.
6593         Reported by Stefano Lattarini.
6594
6595 2012-01-04  Paul Eggert  <eggert@cs.ucla.edu>
6596
6597         test-posixtm: don't assume signed integer wraparound
6598         * tests/test-posixtm.c (main): Don't assume wraparound semantics
6599         after signed integer overflow.  Inspired by (though it may not
6600         fix) Bruno Haible's bug report in
6601         <http://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00066.html>.
6602
6603         Spell out "Windows 9x" and "Windows XP".
6604         * lib/poll.c, lib/select.c: In comments, replace "Win9x" with
6605         "Windows 9x" and "WinXP" with "Windows XP".
6606
6607 2012-01-04  Jim Meyering  <meyering@redhat.com>
6608
6609         test-vc-list-files-cvs.sh: remove obsolete comment
6610         * tests/test-vc-list-files-cvs.sh: Remove obsolete comment about
6611         double exit.  Now that's all encapsulated via skip_ and Exit.
6612
6613 2012-01-04  Bruno Haible  <bruno@clisp.org>
6614
6615         Talk about "native Windows API", not "Win32".
6616         * lib/classpath.c: Update comments to mention native Windows.
6617         * lib/csharpexec.c: Likewise.
6618         * lib/dup2.c: Likewise.
6619         * lib/error.c: Likewise.
6620         * lib/fcntl.c: Likewise.
6621         * lib/filename.h: Likewise.
6622         * lib/findprog.c: Likewise.
6623         * lib/get-rusage-as.c: Likewise.
6624         * lib/get-rusage-data.c: Likewise.
6625         * lib/getpagesize.c: Likewise.
6626         * lib/javaexec.c: Likewise.
6627         * lib/msvc-inval.c: Likewise.
6628         * lib/msvc-nothrow.c: Likewise.
6629         * lib/nanosleep.c: Likewise.
6630         * lib/nonblocking.c: Likewise.
6631         * lib/printf-parse.c: Likewise.
6632         * lib/setlocale.c: Likewise.
6633         * lib/sigaction.c: Likewise.
6634         * lib/strerror_r.c: Likewise.
6635         * lib/tmpdir.c: Likewise.
6636         * lib/vasnprintf.c: Likewise.
6637         * lib/w32spawn.h: Likewise.
6638         * lib/waitpid.c: Likewise.
6639         * lib/stdio.in.h (fdopen, fopen, freopen): Likewise.
6640         * m4/locale-ar.m4: Likewise.
6641         * m4/locale-fr.m4: Likewise.
6642         * m4/locale-ja.m4: Likewise.
6643         * m4/locale-tr.m4: Likewise.
6644         * m4/locale-zh.m4: Likewise.
6645         * m4/printf.m4: Likewise.
6646         * tests/test-cloexec.c: Likewise.
6647         * tests/test-copy-acl.sh: Likewise.
6648         * tests/test-copy-file.sh: Likewise.
6649         * tests/test-file-has-acl.sh: Likewise.
6650         * tests/test-set-mode-acl.sh: Likewise.
6651         * tests/test-dup-safer.c: Likewise.
6652         * tests/test-dup2.c: Likewise.
6653         * tests/test-dup3.c: Likewise.
6654         * tests/test-fcntl.c: Likewise.
6655         * tests/test-nonblocking-pipe.h: Likewise.
6656         * tests/test-nonblocking-socket.h: Likewise.
6657         * tests/test-pipe.c: Likewise.
6658         * tests/test-pipe2.c: Likewise.
6659         * tests/test-spawn-pipe-child.c: Likewise.
6660         * doc/acl-resources.txt: Likewise.
6661         * lib/getaddrinfo.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6662         * tests/test-poll.c (WINDOWS_NATIVE): Likewise.
6663         * tests/test-select.h (WINDOWS_NATIVE): Likewise.
6664         * lib/localcharset.c: Update comments to mention native Windows.
6665         (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6666         * lib/localename.c: Likewise.
6667         * lib/progreloc.c: Likewise.
6668         * lib/relocatable.c: Likewise.
6669         * lib/poll.c (WINDOWS_NATIVE): Renamed from WIN32_NATIVE.
6670         (windows_compute_revents): Renamed from win32_compute_revents.
6671         (windows_compute_revents_socket): Renamed from
6672         win32_compute_revents_socket.
6673         * lib/select.c: Update comments to mention native Windows.
6674         (windows_poll_handle): Renamed from win32_poll_handle.
6675         * m4/threadlib.m4: Update comments to mention native Windows.
6676         (gl_THREADLIB_EARLY_BODY, gl_THREADLIB_BODY): Expect
6677         --enable-threads=windows instead of --enable-threads=win32. Set
6678         USE_WINDOWS_THREADS, not USE_WIN32_THREADS.
6679         * lib/glthread/lock.h: Update comments to mention native Windows.
6680         (USE_WINDOWS_THREADS): Renamed from USE_WIN32_THREADS.
6681         * lib/glthread/lock.c (USE_WINDOWS_THREADS): Renamed from
6682         USE_WIN32_THREADS.
6683         * lib/glthread/cond.h (USE_WINDOWS_THREADS): Likewise.
6684         * lib/glthread/cond.c (USE_WINDOWS_THREADS): Likewise.
6685         * lib/glthread/thread.h (USE_WINDOWS_THREADS): Likewise.
6686         * lib/glthread/thread.c (USE_WINDOWS_THREADS): Likewise.
6687         * lib/glthread/tls.h (USE_WINDOWS_THREADS): Likewise.
6688         * lib/glthread/tls.c (USE_WINDOWS_THREADS): Likewise.
6689         * lib/glthread/yield.h (USE_WINDOWS_THREADS): Likewise.
6690         * tests/test-cond.c (USE_WINDOWS_THREADS): Likewise.
6691         * tests/test-thread_create.c (USE_WINDOWS_THREADS): Likewise.
6692         * tests/test-lock.c (USE_WINDOWS_THREADS): Likewise.
6693         (TEST_WINDOWS_THREADS): Renamed from TEST_WIN32_THREADS.
6694         * tests/test-tls.c: Likewise.
6695         Rationale:
6696         Microsoft renamed the "Win32 API" to "Windows API", as it is available
6697         on both 32-bit and 64-bit Windows systems.
6698         But in gnulib, we treat Cygwin like a Unix platform, therefore the main
6699         line of distinction is between "native Windows" on one side and Unix/
6700         POSIX systems on the other side. More details in
6701         <https://lists.gnu.org/archive/html/bug-gnulib/2012-01/msg00027.html>.
6702         Suggested by Paul Eggert.
6703
6704 2012-01-03  Bruno Haible  <bruno@clisp.org>
6705
6706         isatty: Support for MSVC 9.
6707         * doc/posix-functions/isatty.texi: Mention the MSVC problem.
6708         * lib/isatty.c: Include <errno.h>, msvc-inval.h.
6709         (_isatty_nothrow): New function.
6710         (isatty): Use it instead of _isatty.
6711         (IsConsoleHandle): Add comment, from Paolo Bonzini.
6712         * lib/poll.c (IsConsoleHandle): Likewise.
6713         * lib/select.c (IsConsoleHandle): Likewise.
6714         * m4/isatty.m4 (gl_FUNC_ISATTY): Fix comment. Reported by Eli Zaretskii.
6715         (gl_PREREQ_ISATTY): New macro.
6716         * modules/isatty (Depends-on): Add msvc-inval.
6717         (configure.ac): Invoke gl_PREREQ_ISATTY.
6718
6719 2012-01-03  Jim Meyering  <meyering@redhat.com>
6720
6721         maint.mk: remove temporary transition aid from over 1.5 years ago
6722         * top/maint.mk (_prohibit_regexp): Remove definition whose sole
6723         purpose was to aid in the transition (avoiding silent malfunction)
6724         from that old name to the new _sc_search_regexp.  This shim was
6725         added by commit 219c504b.
6726
6727         init.sh: do not try to accommodate compare arguments starting with "-"
6728         * tests/init.sh (compare_dev_null_): Do not try to accommodate
6729         compare arguments that start with "-".  Besides, we do not worry
6730         about this when invoking diff or cmp; why start now with sed?
6731         Using "--" to separate options from argument would trigger sed
6732         failure in at least Solaris 7, HP-UX 11.00, IRIX 6.5, FreeBSD 6.4,
6733         OpenBSD 4.9 and NetBSD 5.1.  Reported by Bruno Haible.
6734
6735 2012-01-02  Bruno Haible  <bruno@clisp.org>
6736
6737         Enhance tests for module 'isatty'.
6738         * modules/isatty-tests (Depends-on): Add pipe-posix.
6739         * tests/test-isatty.c: Include <fcntl.h>.
6740         (DEV_NULL): New macro.
6741         (main): Test the resut of isatty() also on regular files, pipes, and
6742         /dev/null.
6743
6744         New module 'isatty'.
6745         * lib/unistd.in.h (isatty): New declaration.
6746         * lib/isatty.c: New file, based on an idea of
6747         Bastien Roucariès <roucaries.bastien@gmail.com>.
6748         * m4/isatty.m4: New file.
6749         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether isatty is declared.
6750         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ISATTY, REPLACE_ISATTY.
6751         * modules/unistd (Makefile.am): Substitute GNULIB_ISATTY,
6752         REPLACE_ISATTY.
6753         * modules/isatty: New file.
6754         * doc/posix-functions/isatty.texi: Mention the new module.
6755         Suggested by Paolo Bonzini.
6756
6757 2012-01-02  Bruno Haible  <bruno@clisp.org>
6758
6759         canonicalize: Tweak 2011-12-29 commit.
6760         * lib/canonicalize.c (canonicalize_filename_mode): Fix typo in comment.
6761         * lib/canonicalize.h (canonicalize_filename_mode): Update specification.
6762
6763 2012-01-02  Jim Meyering  <meyering@redhat.com>
6764
6765         gitlog-to-changelog: describe input syntax in --help output
6766         * build-aux/gitlog-to-changelog (usage) [SPECIAL SYNTAX]: New section.
6767
6768         gitlog-to-changelog: fix typo in --help: show backslash before email @
6769         * build-aux/gitlog-to-changelog (usage): An "@" was backslash-escaped
6770         in sources, but not in actual output.
6771
6772 2011-12-30  Jim Meyering  <meyering@redhat.com>
6773
6774         gitlog-to-changelog: don't malfunction when name contains %-directive
6775         * build-aux/gitlog-to-changelog (main): Don't let a %-directive
6776         in a name string cause trouble.  E.g., with a user name of "%s",
6777         gitlog-to-changelog would fail with "Missing argument in sprintf at..."
6778
6779 2011-12-30  Gary V. Vaughan  <gary@gnu.org>
6780
6781         gitlog-to-changelog: Copyright-paperwork-exempt: yes == (tiny change)
6782         * build-aux/gitlog-to-changelog (main): Map the string, at beginning
6783         of line in a git commit log, "Copyright-paperwork-exempt: yes", to
6784         the "  (tiny change)" notation that is appended to the standard
6785         ChangeLog "date  name  email" header line.
6786
6787 2012-01-01  Jim Meyering  <meyering@redhat.com>
6788
6789         test-framework-sh: init.sh: fix "make dist" failure
6790         When using gnulib-tool's --with-tests option and any module that
6791         depends on test-framework-sh, "make dist" would fail due to the
6792         lack of init.sh *in lib/*.  The EXTRA_DIST += init.sh is required
6793         in the gltests directory, and not in the gllib/ directory.
6794         One way to work around that is to move the EXTRA_DIST += init.sh
6795         from the primary module to the -tests one:
6796         * modules/test-framework-sh-tests (EXTRA_DIST): Add init.sh here, ...
6797         * modules/test-framework-sh (Makefile.am): ...not here.
6798         Reported by Tom G. Christensen in
6799         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29519
6800
6801         version-etc: update copyright year reported by --version
6802         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2012.
6803
6804 2011-12-31  Pádraig Brady  <P@draigBrady.com>
6805
6806         canonicalize: only stat() if required
6807         * lib/canonicalize.c (canonicalize_filename_mode):
6808         Avoid calling l?stat() when both CAN_MISSING,
6809         and CAN_NOLINKS are set, as we neither need
6810         to resolve symlinks or test component existence.
6811
6812 2011-12-31  Paul Eggert  <eggert@cs.ucla.edu>
6813
6814         doc: cover st_ino issues once; add OpenVMS etc.
6815         * doc/posix-functions/stat.texi (stat):
6816         * doc/posix-functions/lstat.texi (lstat):
6817         * doc/posix-functions/fstatat.texi (fstatat):
6818         * doc/posix-functions/fstat.texi (fstat):
6819         Move general 'struct stat' stuff to sys_stat.texi,
6820         leaving behind a pointer.
6821         * doc/posix-headers/sys_stat.texi (sys/stat.h):
6822         Merge duplicate info about 'struct stat' problems into here.
6823         Mention issues with OpenVMS, GNU/Linux NFS, NetApp, ClearCase,
6824         and suggest partial workarounds.
6825
6826         same-inode: port to OpenVMS
6827         * lib/same-inode.h (SAME_INODE): Port to OpenVMS by checking all
6828         three st_ino values.
6829
6830 2011-12-30  Pádraig Brady  <P@draigBrady.com>
6831
6832         canonicalize: fix references to stat() and lstat()
6833         * lib/canonicalize.c (canonicalize_filename_mode):
6834         Ensure references always resolve to a replacement
6835         function if required (even via a macro).
6836
6837 2011-12-30  Jim Meyering  <meyering@redhat.com>
6838
6839         gitlog-to-changelog: remove a little duplication
6840         * build-aux/gitlog-to-changelog (main): Grep @lines once,
6841         rather than twice.
6842
6843 2011-12-29  Pádraig Brady  <P@draigBrady.com>
6844
6845         canonicalize: add support for not resolving symlinks
6846         * lib/canonicalize.h: Add the CAN_NOLINKS flag to
6847         indicate we don't want to follow symlinks.  Also
6848         provide CAN_MODE_MASK to aid setting these existing
6849         mutually exclusive values.
6850         * lib/canonicalize.c (canonicalize_filename_mode):
6851         Extract the flags from can_mode parameter, which
6852         are currently just used to select between stat()
6853         and lstat().  Also ensure that mutually exclusive
6854         values are flagged immediately as invalid.
6855         * tests/test-canonicalize.c: Verify symlinks are
6856         not followed, and that invalid flag combinations
6857         are diagnosed.
6858
6859 2011-12-25  Jim Meyering  <meyering@redhat.com>
6860
6861         gitlog-to-changelog: do not clump multi-paragraph entries
6862         Identical header lines (date,name,email+coauthors) are suppressed,
6863         thus putting all entries with those same characteristics under
6864         a single header.  However, when a log entry consists of two or
6865         more paragraphs, it may not be clear where it starts and ends.
6866         This change makes it so that such an entry is always separated
6867         from others by a header line, even when that header would
6868         otherwise be suppressed.
6869         * build-aux/gitlog-to-changelog: Implement the above.
6870         Inspired by a related request from Stefano Lattarini in
6871         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/29456
6872
6873 2011-12-25  Paul Eggert  <eggert@cs.ucla.edu>
6874
6875         announce-gen: fix `cmd' typo in diagnostic
6876         * build-aux/announce-gen (print_changelog_deltas): Fix typo in
6877         diagnostic: a missing '$' meant that the command was not output.
6878
6879 2011-12-23  Jim Meyering  <meyering@redhat.com>
6880
6881         test-framework-sh: distribute init.sh
6882         * modules/test-framework-sh (EXTRA_DIST): Append init.sh.
6883         Otherwise, "make -C gnulib-tests check" (at least in grep) would
6884         fail due to the lack of init.sh.
6885
6886         maint: remove explicit Files: tests/init.sh; depend on test-framework-sh
6887         * modules/atexit-tests: Rather than listing tests/init.sh,
6888         now that there's a module for it, simply depend on that new module.
6889         * modules/closein-tests: Likewise.
6890         * modules/exclude-tests: Likewise.
6891         * modules/getcwd-tests: Likewise.
6892         * modules/perror-tests: Likewise.
6893         * modules/pread-tests: Likewise.
6894         * modules/pwrite-tests: Likewise.
6895         * modules/vc-list-files-tests: Likewise.
6896         * modules/verify-tests: Likewise.
6897         * modules/xalloc-die-tests: Likewise.
6898         * modules/xstrtoimax-tests: Likewise.
6899         * modules/xstrtol-tests: Likewise.
6900         * modules/xstrtoll-tests: Likewise.
6901         * modules/xstrtoumax-tests: Likewise.
6902         * modules/yesno-tests: Likewise.
6903
6904 2011-12-22  Jim Meyering  <meyering@redhat.com>
6905
6906         test-framework-sh: add minimal tests of init.sh's compare function
6907         * modules/test-framework-sh-tests: New file.
6908         * tests/test-init.sh: New file.
6909
6910         test-framework-sh: new module
6911         * modules/test-framework-sh: New file.
6912         * MODULES.html.sh (Support for maintaining and releasing projects):
6913         List it.
6914
6915         init.sh: do not emit simulated diff output to stderr
6916         * tests/init.sh (compare_dev_null_): Print to stdout, not stderr.
6917
6918 2011-12-22  Reuben Thomas  <rrt@sc3d.org>
6919
6920         .gitignore: ignore gnulib.dvi and regex.info
6921         * doc/.gitignore:add gnulib.dvi and regex.info
6922
6923 2011-12-22  Jim Meyering  <meyering@redhat.com>
6924
6925         init.sh: correct previous change
6926         * tests/init.sh (compare): My previous change was wrong.
6927         Don't clobber "$?".  Spotted by Stefano Lattarini and Pádraig Brady.
6928
6929         init.sh: avoid unwarranted test failure when using "set -e"
6930         * tests/init.sh (compare): Ignore nonzero exit from compare_dev_null_.
6931         Otherwise, in a test script that uses "set -e" (like many in vc-dwim)
6932         a use like "compare exp out" would get evoke an unconditional failure.
6933
6934 2011-12-21  Alfred M. Szmidt  <ams@gnu.org>
6935
6936         bootstrap: fix it to honor $ACLOCAL_FLAGS once again
6937         The 2011-12-17 change, commit 767ccd40, replaced a manual invocation
6938         of aclocal that used explicit $ACLOCAL_FLAGS with an invocation of
6939         autoreconf that did not.
6940         * build-aux/bootstrap: Use $ACLOCAL_FLAGS when invoking autoreconf.
6941         Reported by Mats Erik Andersson <gnu@gisladisker.se>.
6942
6943 2011-12-17  Jim Meyering  <meyering@redhat.com>
6944
6945         bootstrap: remove some now-unneeded code
6946         This script arose back when gnulib-tool was young.
6947         Since then, it has seen improvements that render much of this
6948         script unnecessary.  In particular, it can now make symlinks
6949         to the files it uses.  Also, I no longer see as much value in
6950         marking files as read-only via comments.
6951         If you relied on the symlink-creation feature of the preceding
6952         version of this script, you can get most of that functionality
6953         by adding the --symlink option to the definition of
6954         gnulib_tool_option_extras in your bootstrap.conf file.
6955         * build-aux/bootstrap (AUTOPOINT, AUTORECONF): Factor out definitions.
6956         Run autopoint and libtoolize *before* gnulib-tool.
6957         After it, run an abbreviated autoreconf, rather than a loop around
6958         all tools.
6959         (slirp, bt_mark_as_generated): Remove functions.
6960
6961 2011-12-18  Paul Eggert  <eggert@cs.ucla.edu>
6962
6963         ftoastr: fix typo
6964         * lib/ftoastr.h: Fix misspelling in comment.
6965
6966 2011-12-18  Reuben Thomas  <rrt@sc3d.org>
6967
6968         * top/README-release: fix punctuation.
6969
6970 2011-12-17  Jim Meyering  <meyering@redhat.com>
6971
6972         bootstrap: correct the recent buildreq change
6973         The 2011-12-07 commit, 39f5f1e4, omitted some '*'s, and thus
6974         had no effect.
6975         * build-aux/bootstrap (buildreq): Bracket each search term with
6976         "*...*", so that the shell "case" statement works as intended.
6977         Add comments.
6978
6979 2011-12-17  Bernhard Voelker  <mail@bernhard-voelker.de>
6980
6981         build: let bootstrap resort to wget when downloading .po files
6982         * build-aux/bootstrap (download_po_files): Fallback to wget when
6983         downloading the .po files via rsync fails.  This is necessary to
6984         bootstrap from behind a strict firewall.
6985
6986 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6987
6988         stdint: don't assume C++11 when compiling with g++
6989         Problem reported for glibc 2.14 and g++ by Alexander V. Lukyanov in
6990         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00099.html>.
6991         * m4/stdint.m4 (gl_STDINT_H): Don't go to extra work to make it
6992         work also in C++ before C++11, as that improperly inhibits
6993         generating a substitute stdint.h for that case.
6994
6995 2011-12-15  Paul Eggert  <eggert@cs.ucla.edu>
6996
6997         alloca: protect comment from gnulib-tool
6998         * lib/alloca.c: Change "GCC version 2" to "GCC 2" in comment, so
6999         that gnulib-tool doesn't think it's a license, and munge it to
7000         say "GCC version 3".
7001
7002 2011-12-15  Ludovic Courtès  <ludo@gnu.org>  (tiny change)
7003
7004         localcharset: Use an absolute path in TESTS_ENVIRONMENT.
7005         * modules/localcharset (LOCALCHARSET_TESTS_ENVIRONMENT): Use
7006         $(abs_top_builddir) instead of $(top_builddir).
7007
7008 2011-12-14  Alex Nelson  <ajnelson@cs.ucsc.edu>  (tiny change)
7009
7010         strftime-tests: also test nanoseconds
7011         * tests/test-strftime.c (T): Add a test of %N.
7012
7013 2011-12-13  Paul Eggert  <eggert@cs.ucla.edu>
7014
7015         inttypes, stdint: add C++11 support
7016         C++11 says there's no need to define __STDC_CONSTANT_MACROS etc.
7017         when including inttypes.h and stdint.h.  Support this change to
7018         the standard.
7019         * doc/posix-headers/inttypes.texi (inttypes.h):
7020         * doc/posix-headers/stdint.texi (stdint.h): Document this.
7021         * lib/inttypes.in.h (__STDC_FORMAT_MACROS) [! __cplusplus]:
7022         Define if not defined already, for the benefit of pre-C++11 hosts.
7023         Define the standard format macros (e.g., PRId8) always.
7024         * lib/stdint.in.h (__STDC_CONSTANT_MACROS, __STDC_LIMIT_MACROS):
7025         Likewise, if __cpluspus.  Define the standard constant and limit
7026         macros (e.g., INT8_C, INT8_MAX) always.
7027         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Do not define
7028         GL_TRIGGER_STDC_LIMIT_MACROS or __STDC_LIMIT_MACROS; no longer needed.
7029         * m4/stdint.m4 (gl_STDINT_H): Update comments about these macros.
7030         * tests/test-inttypes.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS)
7031         (__STDC_FORMAT_MACROS): Do not define, since we assume C++11 API now.
7032         * tests/test-stdint.c (__STDC_LIMIT_MACROS, __STDC_CONSTANT_MACROS):
7033         Likewise.
7034
7035 2011-12-12  Paul Eggert  <eggert@cs.ucla.edu>
7036
7037         nonblocking tests: Fix test failure on Linux/PPC.
7038         Suggested by Prerna Saxena in
7039         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00080.html>.
7040         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/PPC64]:
7041         Set to 1100000.
7042
7043 2011-12-12  Jim Meyering  <meyering@redhat.com>
7044
7045         argmatch: don't hard-code `' when listing valid option arguments
7046         * lib/argmatch.c (argmatch_valid): Don't hard-code `%s'.  Instead,
7047         use the quote function to add quotes.  Use fputs rather than
7048         fprintf for the format string with no format directive.
7049
7050 2011-12-07  Eric Blake  <eblake@redhat.com>
7051
7052         bootstrap: detect tools required by gnulib-tool
7053         * build-aux/bootstrap (buildreq): Provide minimum implicit
7054         dependencies.
7055         * DEPENDENCIES: Mention patch as a prereq.
7056
7057 2011-12-04  Bruno Haible  <bruno@clisp.org>
7058
7059         sethostname: Port to Windows platforms.
7060         * lib/sethostname.c: Provide an alternate implementation for Windows
7061         platforms.
7062         * tests/test-sethostname2.c (geteuid): Redefine on Cygwin.
7063         (main): Skip the test if sethostname() fails with EPERM. On Windows
7064         platforms, don't check the result of gethostname().
7065
7066 2011-12-04  Bruno Haible  <bruno@clisp.org>
7067             Jim Meyering  <meyering@redhat.com>
7068
7069         tests: Avoid spurious error message on platforms without mktemp program.
7070         * tests/init.sh (mktempd_): Run mktemp in a subcommand.
7071
7072 2011-12-04  Bruno Haible  <bruno@clisp.org>
7073
7074         sethostname: Fix documentation.
7075         * doc/glibc-functions/sethostname.texi: Move the Solaris problem to the
7076         "not fixed" section.
7077
7078 2011-12-03  Bruno Haible  <bruno@clisp.org>
7079
7080         gnulib-tool: Verify that the License field is present and non-empty.
7081         * gnulib-tool (func_get_license_raw): New function, extracted from
7082         func_get_license.
7083         (func_get_license): Use it. Warn if the module is not a test module and
7084         has no license.
7085         Suggested by Jim Meyering.
7086
7087 2011-12-03  Bruno Haible  <bruno@clisp.org>
7088
7089         sethostname tests: Fix link error on mingw.
7090         * tests/test-sethostname1.c: New file, extracted from
7091         tests/test-sethostname.c.
7092         * tests/test-sethostname2.c: New file, extracted from
7093         tests/test-sethostname.c.
7094         * tests/test-sethostname.c: Remove file.
7095         * modules/sethostname-tests (Files): Add tests/test-sethostname1.c,
7096         tests/test-sethostname2.c. Remove tests/test-sethostname.c.
7097         (Depends-on): Add gethostname.
7098         (Makefile.am): Compile both test-sethostname1 and test-sethostname2.
7099         Link the latter with $(GETHOSTNAME_LIB).
7100
7101         sethostname tests: Fix compilation error on mingw.
7102         * tests/test-sethostname.c: Don't include <sys/types.h>.
7103         (geteuid): Use a dummy value without uid_t.
7104         * modules/sethostname-tests (Depends-on): Remove sys_types.
7105
7106         sethostname tests: Avoid a gcc warning.
7107         * tests/test-sethostname.c (main): Remove an unused variable.
7108
7109         Tweak last commit.
7110         * modules/sethostname-tests (Files): Sort by decreasing importance.
7111         (configure.ac): Check for geteuid.
7112         * tests/test-sethostname.c (main): Emit error messages to stderr. Skip
7113         the test when there's nothing to test. Drop an unnecessary cast.
7114         Improve an error message. Verify that the final sethostname() call
7115         succeeds.
7116
7117 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7118
7119         Add a test suite for the sethostname module.
7120         * modules/sethostname-tests: New file.  A test program
7121         for the sethostname module.
7122         * tests/test-sethostname.c: Likewise.
7123
7124 2011-12-03  Bruno Haible  <bruno@clisp.org>
7125
7126         Tweak last commit.
7127         * lib/unistd.in.h (sethostname): Keep declarations in alphabetic order.
7128         Fix preprocessor directives indentation. Fix typos.
7129         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Keep alphabetic order.
7130         * modules/unistd (Makefile): Likewise.
7131
7132 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7133
7134         Integrate the sethostname module into unistd.
7135         * lib/unistd.in.h: Integrate the SETHOSTNAME preprocessor handling
7136         into the unistd.h header.
7137         * m4/unistd_h.m4: Setup the autoconf handling for the SETHOSTNAME
7138         preprocessor directives.
7139         * modules/unistd: Setup the Makefile substitutions of the
7140         SETHOSTNAME preprocessor directives.
7141
7142 2011-12-03  Bruno Haible  <bruno@clisp.org>
7143
7144         Tweak last commit.
7145         * lib/sethostname.c: Don't include <string.h>.
7146         (sethostname): No need to copy the argument string to the stack. Don't
7147         call clearerr. Preserve errno when fprintf failed.
7148         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): Comment about HOST_NAME_MAX.
7149         Don't invoke AC_REPLACE_FUNCS.
7150         * modules/sethostname (Link): Remove empty section.
7151         * doc/glibc-functions/sethostname.texi: Gnulib does not fix the ENOSYS
7152         failure problem.
7153
7154 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7155
7156         New module 'sethostname'.
7157         * lib/sethostname.c (sethostname): New file.  Provide sethostname
7158         for systems that lack it.
7159         * m4/sethostname.m4 (gl_FUNC_SETHOSTNAME): New file.  Detection of
7160         sethostname declaration and function.
7161         * modules/sethostname: New file.  Define the sethostname module.
7162
7163 2011-12-03  Bruno Haible  <bruno@clisp.org>
7164
7165         Tweak last commit.
7166         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Trim blank line.
7167
7168 2011-12-01  Ben Walton  <bwalton@artsci.utoronto.ca>
7169
7170         Split the HOST_NAME_MAX detection into a separate m4 macro.
7171         * m4/gethostname.m4 (gl_PREREQ_HOST_NAME_MAX): Make this a separate
7172         macro so it can be used by the pending sethostname module.
7173
7174 2011-12-03  Bruno Haible  <bruno@clisp.org>
7175
7176         Fix module descriptions syntax.
7177         * modules/argv-iter (License): Fix syntax.
7178         * modules/di-set (License): Likewise.
7179         * modules/ino-map (License): Likewise.
7180         Reported by Stefano Lattarini <stefano.lattarini@gmail.com>.
7181
7182 2011-12-02  Paul Eggert  <eggert@cs.ucla.edu>
7183
7184         stdalign: port to Clang 3.0
7185         Problem reported by Simon Josefsson in
7186         <http://lists.gnu.org/archive/html/bug-gnulib/2011-12/msg00005.html>.
7187         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Clang 3.0,
7188         which has <stdalign.h> but which does not define alignof.
7189         * m4/stdalign.m4 (gl_STDALIGN_H): Check for Clang 3.0's problem.
7190
7191 2011-12-01  Eric Blake  <eblake@redhat.com>
7192
7193         mktempd: silence dd usage
7194         * build-aux/mktempd (rand_bytes): Silence dd.
7195
7196 2011-11-30  Simon Josefsson  <simon@josefsson.org>
7197
7198         manywarnings: Don't mention gcc version in docstring.
7199         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Doc fix.  Suggested by
7200         Jim Meyering <meyering@redhat.com>.
7201
7202 2011-11-30  Jim Meyering  <meyering@redhat.com>
7203
7204         hash: mark a few floating point constants with "f" suffix
7205         * lib/hash.c (DEFAULT_GROWTH_THRESHOLD, DEFAULT_GROWTH_FACTOR)
7206         (DEFAULT_SHRINK_THRESHOLD, DEFAULT_SHRINK_FACTOR): Mark literal
7207         floating point constants with "f", since they're destined to be
7208         saved/used as "float"s.
7209
7210 2011-11-29  Paolo Bonzini  <bonzini@gnu.org>
7211
7212         float tests: Correct and re-enable assertion about LDBL_MIN_EXP.
7213         * tests/test-float.c (test_long_double): Correct and re-enable the
7214         assertion about LDBL_MIN_EXP that was disabled on 2011-08-31.
7215
7216 2011-11-29  Matthew Wala  <wala1@illinois.edu>  (tiny change)
7217
7218         Avoid subtracting two pointers that don't point into the same block.
7219         * lib/argp-help.c (hol_append): Reorder pointer subtractions so that
7220         only pointers into the same memory block are subtracted. We cannot
7221         assume that sizeof (ptrdiff_t) == sizeof (void *).
7222
7223 2011-11-29  Eric Blake  <eblake@redhat.com>
7224
7225         maint.mk: add syntax check for use of compare from init.sh
7226         * top/maint.mk (sc_prohibit_reversed_compare_failure): New rule,
7227         moved here from coreutils.
7228
7229         manywarnings: drop -Wunsuffixed-float-constants
7230         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): C99 does not allow
7231         '1.0D', which is the only way to silence this warning for 'double'.
7232
7233 2011-11-29  Jim Meyering  <meyering@redhat.com>
7234
7235         hash: mark compute_bucket_size with the pure attribute
7236         * lib/hash.c (compute_bucket_size): Use _GL_ATTRIBUTE_PURE.
7237
7238         quotearg, propername: correct pragma guard expression
7239         * lib/quotearg.c: Enable pragma for gcc-4.6 and newer, not 4.3 and newer.
7240         * lib/propername.c: Likewise.  Reported by Bernhard Voelker.
7241
7242 2011-11-28  Jim Meyering  <meyering@redhat.com>
7243
7244         propername: do not mark proper_name with the const attribute
7245         * lib/propername.h (proper_name): Do *not* mark as _GL_ATTRIBUTE_CONST,
7246         since it examines data pointed to by its parameter.
7247         * lib/propername.c (proper_name): Instead, add a pragma to suppress
7248         the suggestion from -Wsuggest-attribute=const.
7249
7250         propername: mark one more function as const
7251         * lib/propername.h (proper_name): Mark as _GL_ATTRIBUTE_CONST.
7252
7253 2011-11-27  Jim Meyering  <meyering@redhat.com>
7254
7255         mark functions with const and pure attributes
7256
7257         Mark functions per suggestions from gcc-4.6 when using these options:
7258         -Wsuggest-attribute=pure -Wsuggest-attribute=const.
7259         Use gnulib's _GL_ATTRIBUTE_PURE and _GL_ATTRIBUTE_CONST macros.
7260         Follow these guidelines: when possible, apply the attribute to
7261         an extern declaration, not to its definition.  Apply it to the
7262         definition only when the definition is static.
7263         * lib/argmatch.h (argmatch, argmatch_to_argument): Mark.
7264         * lib/argv-iter.h (argv_iter_n_args): Likewise.
7265         * lib/base64.h (isbase64): Likewise.
7266         * lib/basename-lgpl.c (last_component, base_len): Likewise.
7267         * lib/c-ctype.h (c_isascii, c_isalnum, c_isalpha): Likewise.
7268         (c_isblank, c_iscntrl, c_isdigit, c_islower, c_isgraph): Likewise.
7269         (c_isprint, c_ispunct, c_isspace, c_isupper, c_isxdigit): Likewise.
7270         (c_tolower, c_toupper): Likewise.
7271         * lib/c-strcase.h (c_strcasecmp, c_strncasecmp): Likewise.
7272         * lib/chdir-long.c (find_non_slash): Likewise.
7273         * lib/dirname.h (base_len, dir_len, last_component): Likewise.
7274         * lib/exclude.h (fnmatch_pattern_has_wildcards): Likewise.
7275         * lib/file-type.h (file_type): Likewise.
7276         * lib/filenamecat-lgpl.c (longest_relative_suffix): Likewise.
7277         * lib/filevercmp.c (verrevcmp): Likewise.
7278         * lib/freadahead.h (freadahead): Likewise.
7279         * lib/fts.c (fts_maxarglen): Likewise.
7280         * lib/hash-pjw.h (hash_pjw): Likewise.
7281         * lib/hash-triple.h (triple_hash_no_name, triple_compare_ino_str):
7282         * lib/hash.c (is_prime, next_prime): Likewise.
7283         * lib/hash.c (hash_get_n_buckets, hash_get_n_buckets_used): Likewise.
7284         (hash_get_n_entries, hash_get_max_bucket_length): Likewise.
7285         (hash_table_ok, hash_get_first, hash_string): Likewise.
7286         (compute_bucket_size): Likewise.
7287         * lib/i-ring.h (i_ring_empty): Likewise.
7288         * lib/isnan.c (isnanl): Likewise.
7289         * lib/math.h (isnanl, rpl_isnanl): Likewise.
7290         * lib/memcasecmp.h (memcasecmp): Likewise.
7291         * lib/memchr2.h (memchr2): Likewise.
7292         * lib/memcmp2.h (memcmp2): Likewise.
7293         * lib/parse-datetime.y (lookup_zone): Likewise.
7294         * lib/sockets.h (gl_sockets_startup, gl_sockets_cleanup)
7295         [!WINDOWS_SOCKETS]: Likewise.
7296         * lib/strnlen1.h (strnlen1): Likewise.
7297         * lib/uniwidth.in.h (uc_width): Likewise.
7298         * lib/quotearg.c: Add pragma to avoid unwarranted suggestion from
7299         gcc's -Wsuggest-attribute=pure for quoting_options_from_style.
7300         (quoting_options_from_style): Add a comment.
7301         * lib/propername.h (proper_name): Add a comment.
7302
7303 2011-11-27  Bruno Haible  <bruno@clisp.org>
7304
7305         Remove unused macros from !_LIBC code in glibc-borrowed files.
7306         * lib/fnmatch.c (STRCOLL): Remove macro.
7307         * lib/fnmatch_loop.c (STRCOLL): Remove undef.
7308         * lib/glob.c (__stat, __readdir64): Remove macros.
7309         * lib/tempname.c (__open64, __xstat64): Remove macros.
7310         Suggested by Paul Eggert.
7311
7312 2011-11-27  Bruno Haible  <bruno@clisp.org>
7313
7314         getcwd: Fix link error on MSVC 9.
7315         * modules/getcwd (Depends-on): Add readdir, rewinddir.
7316
7317 2011-11-27  Bruno Haible  <bruno@clisp.org>
7318
7319         Don't set REPLACE_FOO to 1 if HAVE_FOO is 0.
7320         * m4/opendir.m4 (gl_FUNC_OPENDIR): Don't set REPLACE_OPENDIR to 1 if
7321         HAVE_OPENDIR is 0.
7322         * m4/closedir.m4 (gl_FUNC_CLOSEDIR): Don't set REPLACE_CLOSEDIR to 1 if
7323         HAVE_CLOSEDIR is 0.
7324         * m4/dup2.m4 (gl_FUNC_DUP2): Don't set REPLACE_DUP2 to 1 if HAVE_DUP2
7325         is 0.
7326         * m4/dup3.m4 (gl_FUNC_DUP3): Update comments.
7327
7328 2011-11-27  Bruno Haible  <bruno@clisp.org>
7329
7330         getcwd: Fix bug from 2011-08-17.
7331         * m4/getcwd.m4 (gl_FUNC_GETCWD): Set REPLACE_GETCWD to 1 only on
7332         platforms that need it.
7333         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Consider a return
7334         code of 4 to be a failure, not a success. This ensures that
7335         REPLACE_GETCWD becomes 1 on OpenBSD 4.9 and NetBSD 5.1.
7336
7337 2011-11-27  Bruno Haible  <bruno@clisp.org>
7338
7339         binary-io tests: Avoid test failure on mingw when libtool is used.
7340         * tests/test-binary-io.c (main): Don't remove t-bin-out2.tmp here.
7341         Don't verify the size of t-bin-out1.tmp here.
7342         * tests/test-binary-io.sh: Verify it here.
7343         Reported by Simon Josefsson.
7344
7345 2011-11-26  Bruno Haible  <bruno@clisp.org>
7346
7347         Fix conflict between two instantiations of module 'unistd'.
7348         * gnulib-tool (func_emit_autoconf_snippet): Substitute
7349         ${include_guard_prefix} also in the autoconf snippet.
7350         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Don't set GNULIB_UNISTD_H_GETOPT.
7351         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Don't initialize
7352         GNULIB_UNISTD_H_GETOPT.
7353         * modules/getopt-posix (configure.ac): Set the
7354         GNULIB_${gl_include_guard_prefix}_UNISTD_H_GETOPT variable.
7355         * modules/getopt-gnu (configure.ac): Likewise.
7356         * modules/unistd (Makefile.am): Change the substitution value of
7357         GNULIB_UNISTD_H_GETOPT to depend on the include guard prefix.
7358         Reported by Simon Josefsson.
7359
7360 2011-11-25  Bruno Haible  <bruno@clisp.org>
7361
7362         pagealign_alloc: Doc and comments.
7363         * doc/posix-functions/posix_memalign.texi: Refer to the pagealign_alloc
7364         module.
7365         * lib/pagealign_alloc.c (pagealign_alloc): Add comment.
7366
7367 2011-11-25  Jim Meyering  <meyering@redhat.com>
7368
7369         test-update-copyright.sh: avoid false-positive failure
7370         * tests/test-update-copyright.sh: Use $TMP.? (not $TMP.*), to work
7371         around false positive failure on Cygwin/Windows.  The latter was
7372         matching erroneously-created files with names like
7373         update-copyright.test-ex.4.bak.  Reported by Simon Josefsson.
7374
7375 2011-11-25  Simon Josefsson  <simon@josefsson.org>
7376
7377         valgrind-tests.m4: Avoid breakage if valgrind on bash fails.
7378         * m4/valgrind-tests.m4: Check that the parameters that will be
7379         used works, not just a subset of them.  Reported by Bruno Haible
7380         <bruno@clisp.org>.
7381
7382 2011-11-24  Jim Meyering  <meyering@redhat.com>
7383
7384         test-stdalign.c: comment out long double tests
7385         * tests/test-stdalign.c: Don't try to reduce alignment of long double
7386         variables.  That provokes errors like this from gcc-4.7.0 20111124:
7387         error: '_Alignas' specifiers cannot reduce alignment of \
7388         'static_longdouble_alignas'.
7389
7390 2011-11-22  Jim Meyering  <meyering@redhat.com>
7391
7392         init.sh: make "compare /dev/null FILE" output more readable
7393         * tests/init.sh (compare_): Document the preferred order of arguments.
7394         (emit_diff_u_header_): New function.
7395         (compare_dev_null_): Emit a simulated diff, rather than just the
7396         contents of the unexpected file.  Suggestion from Bruno Haible.
7397
7398 2011-11-21  Jim Meyering  <meyering@redhat.com>
7399             Eric Blake  <eblake@redhat.com>
7400
7401         init.sh: work around OSF/1 5.1's mishandling of /dev/null
7402         * tests/init.sh: Make our compare function slightly more portable.
7403         Reported by Bruno Haible in
7404         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/4020
7405
7406 2011-11-21  Simon Josefsson  <simon@josefsson.org>
7407
7408         * m4/gnulib-common.m4 (_Noreturn): Check that _MSC_VER is defined
7409         before using it, in code that ends up in config.h.
7410
7411 2011-11-20  Bruno Haible  <bruno@clisp.org>
7412
7413         getcwd: Work around getcwd bug on AIX 5..7.
7414         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Require
7415         AC_CANONICAL_HOST. Assign exit code 31 to the bug seen on AIX 5.1..7.1.
7416         Use a different value for gl_cv_func_getcwd_path_max. Move the
7417         definition of HAVE_PARTLY_WORKING_GETCWD from here...
7418         * m4/getcwd.m4 (gl_FUNC_GETCWD): ... to here. Invoke
7419         gl_FUNC_GETCWD_PATH_MAX also when $gl_cv_func_getcwd_null is 'no'.
7420         Define HAVE_MINIMALLY_WORKING_GETCWD.
7421         * lib/getcwd.c (__getcwd): Don't use the system's getcwd on platforms
7422         where it is not even minimally working, that is, on AIX.
7423         * tests/test-getcwd.c (test_long_name): Distinguish the same cases as
7424         m4/getcwd-path-max.m4.
7425         (main): Update exit code computation.
7426         * doc/posix-functions/getcwd.texi: Mention list of platforms where
7427         getcwd does not handle long file names.
7428
7429 2011-11-20  Bruno Haible  <bruno@clisp.org>
7430
7431         getcwd: Fix bug from 2009-09-10.
7432         * m4/getcwd.m4 (gl_FUNC_GETCWD): Treat "guessing yes" like "yes", not
7433         like "no".
7434
7435 2011-11-20  Simon Josefsson  <simon@josefsson.org>
7436
7437         * m4/manywarnings.m4: Add more warnings from gcc 4.6.2.
7438
7439 2011-11-20  Bruno Haible  <bruno@clisp.org>
7440
7441         fma tests: Avoid shadowing local variables.
7442         * tests/test-fma2.h (test_function): Reduce scope of x, y, z, result,
7443         expected.
7444
7445 2011-11-20  Bruno Haible  <bruno@clisp.org>
7446
7447         copysignf tests: Fix.
7448         * tests/test-copysignf.c: Fix signature check.
7449
7450 2011-11-20  Bruno Haible  <bruno@clisp.org>
7451
7452         fma: Remove unused code.
7453         * lib/fma.c (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): Remove
7454         unused macros.
7455
7456 2011-11-20  Bruno Haible  <bruno@clisp.org>
7457
7458         sethostname: Fix doc about AIX.
7459         * doc/glibc-functions/sethostname.texi: Drop mention that AIX 5.1 lacks
7460         sethostname; it has it.
7461
7462         sethostname: Mention more portability problems.
7463         * doc/glibc-functions/sethostname.texi: Mention the missing declaration
7464         problem.
7465         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
7466
7467 2011-11-19  Bruno Haible  <bruno@clisp.org>
7468
7469         Depend on module fcntl-h when AT_FDCWD is used.
7470         * modules/utimens (Depends-on): Add fcntl-h.
7471         * modules/areadlinkat (Depends-on): Likewise.
7472         * modules/areadlinkat-with-size (Depends-on): Likewise.
7473         * modules/faccessat (Depends-on): Likewise.
7474         * modules/fchmodat (Depends-on): Likewise.
7475         * modules/fchownat (Depends-on): Likewise.
7476         * modules/getcwd (Depends-on): Likewise.
7477         * modules/mkdirat (Depends-on): Likewise.
7478         * modules/mkfifoat (Depends-on): Likewise.
7479         * modules/readlinkat (Depends-on): Likewise.
7480         * modules/symlinkat (Depends-on): Likewise.
7481         * modules/dup2-tests (Depends-on): Likewise.
7482         * modules/fdutimensat-tests (Depends-on): Likewise.
7483         * modules/futimens-tests (Depends-on): Likewise.
7484
7485 2011-11-19  Bruno Haible  <bruno@clisp.org>
7486
7487         euidaccess: Update a comment.
7488         * lib/euidaccess.c: Update comment about platforms with faccessat.
7489
7490 2011-11-19  Bruno Haible  <bruno@clisp.org>
7491
7492         openat: Fix file list.
7493         * modules/openat (Files): Remove lib/at-func.c.
7494
7495 2011-11-19  Bruno Haible  <bruno@clisp.org>
7496
7497         fstatat: Simplify.
7498         * lib/fstatat.c (AT_FUNC_NAME): Define as fstatat. On platforms where
7499         gnulib should define rpl_fstatat, there is a
7500         "#define fstatat rpl_fstatat" in <sys/stat.h>.
7501
7502 2011-11-19  Bruno Haible  <bruno@clisp.org>
7503
7504         Ensure 'inline' can be used in tests/test-utimens-common.h.
7505         * modules/fdutimensat-tests (configure.ac): Require AC_C_INLINE.
7506         * modules/futimens-tests (configure.ac): Likewise.
7507         * modules/utimens-tests (configure.ac): Likewise.
7508         * modules/utimensat-tests (configure.ac): Likewise.
7509
7510 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7511
7512         * lib/hash.c (hash_insert): Use hash_insert_if_absent,
7513         not hash_insert0.
7514         (hash_insert_if_absent): Doc fix.
7515
7516 2011-11-19  Simon Josefsson  <simon@josefsson.org>
7517
7518         * m4/readline.m4 (gl_FUNC_READLINE): Check for readline/history.h.
7519
7520 2011-11-18  Paul Eggert  <eggert@cs.ucla.edu>
7521
7522         test-getcwd: disambiguate exit status
7523         * tests/test-getcwd.c (test_long_name): Return 0..7.
7524         (main): Exit with an unambiguous exit status.  The old
7525         code yielded a mysterious mixture of two failure codes.
7526
7527         fstatat: fix configuration bug on mingw, OpenBSD 4, Solaris 8
7528         * lib/fstatat.c (AT_FUNC_NAME): Use HAVE_FSTAT, not
7529         HAVE_WORKING_FSTATAT_ZERO_FLAG, to decide whether to define
7530         rpl_fstatat or fstatat.  This should fix the other problem
7531         reported by Kai Habel in
7532         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7533         A similar problem was reported for OpenBSD 4.6 by Mats Erik Andersson
7534         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00239.html>
7535         and I reproduced it on a Solaris 8 host we still have in production.
7536
7537 2011-11-18  Jim Meyering  <meyering@redhat.com>
7538
7539         hash: deprecate poorly-named hash_insert0: use hash_insert_if_absent
7540         * lib/hash.c (hash_insert_if_absent): Rename from hash_insert0.
7541         Add a sentence to the comment.
7542         (hash_insert0): New function that simply calls hash_insert_if_absent.
7543         * lib/hash.h (hash_insert_if_absent): Declare it.
7544         (hash_insert0): Add deprecation attribute.
7545         (_GL_ATTRIBUTE_DEPRECATED): Define.
7546         * lib/di-set.c (di_set_insert): Use hash_insert_if_absent,
7547         not hash_insert0.
7548         * NEWS: Mention it, even though it's not really an incompatible change.
7549
7550 2011-11-18  Dagobert Michelsen  <dam@opencsw.org>  (tiny change)
7551
7552         openat: avoid compilation failure due to lack of <errno.h> inclusion
7553         * lib/openat.c: Include <errno.h>.
7554
7555 2011-11-17  Paul Eggert  <eggert@cs.ucla.edu>
7556
7557         * modules/getcwd (Depends-on): Add fdopendir.
7558         This fixes one of the two problems reported by Kai Habel in
7559         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00237.html>.
7560
7561         modules/crypto/gc-*: simplify dependencies and fix stdalign.h bug
7562         stdalign problem reported by Ian Beckwith in
7563         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00238.html>.
7564         * modules/crypto/gc-arcfour (Depends-on):
7565         Depend conditionally on crypto/arcfour.
7566         * modules/crypto/gc-arctwo (Depends-on):
7567         Depend conditionally on crypto/arctwo.
7568         * modules/crypto/gc-des (Depends-on):
7569         Depend conditionally on crypto/des.
7570         * modules/crypto/gc-hmac-md5 (Depends-on):
7571         Depend conditionally on crypto/hmac-md5.
7572         * modules/crypto/gc-hmac-sha1 (Depends-on):
7573         Depend conditionally on crypto/hmac-sha1.
7574         * modules/crypto/gc-md2 (Depends-on): Remove stdint, minmax.
7575         * modules/crypto/gc-md4 (Depends-on):
7576         Depend conditionally on crypto/md4.
7577         * modules/crypto/gc-md5 (Depends-on):
7578         Depend conditionally on crypto/md5.
7579         * modules/crypto/gc-rijndael (Depends-on):
7580         Depend conditionally on crypto/rijndael.
7581         * modules/crypto/gc-sha1 (Depends-on):
7582         Depend conditionally on crypto/sha1.
7583         * modules/crypto/gc-arcfour:
7584         * modules/crypto/gc-arctwo:
7585         * modules/crypto/gc-des:
7586         * modules/crypto/gc-hmac-md5:
7587         * modules/crypto/gc-hmac-sha1:
7588         * modules/crypto/gc-md2:
7589         * modules/crypto/gc-md4:
7590         * modules/crypto/gc-md5:
7591         * modules/crypto/gc-rijndael:
7592         * modules/crypto/gc-sha1:
7593         (Files, Depends-on, configure.ac): Remove now-unnecessary stuff,
7594         now that the conditional dependencies do the work for us.
7595
7596 2011-11-17  Jim Meyering  <meyering@redhat.com>
7597
7598         tests: factor st_ctime-comparison out of two headers
7599         * tests/test-utimens-common.h (ctime_compare): Define.
7600         * tests/test-futimens.h (test_futimens): Replace open-coded equivalent.
7601         * tests/test-lutimens.h (test_lutimens): Likewise.
7602         * tests/test-utimens.h (test_utimens): Likewise.
7603
7604         test-getcwd: don't leave behind a confdir3/ directory upon interrupt
7605         Invoke the test program via an init.sh-using wrapper.
7606         * tests/test-getcwd.sh: New file.
7607         * modules/getcwd-tests (Files): Add it.
7608         (Makefile.am) [TESTS]: Invoke the shell script wrapper.
7609
7610 2011-11-01  Gary V. Vaughan  <gary@gnu.org>
7611
7612         gitlog-to-changelog: support multi-author commits.
7613         The FSF cares about keeping track of all authors of patches to its
7614         projects, but Git doesn't provide obvious support for multi-author
7615         changesets. Consensus seems to be forming around the use of extra
7616         Signed-off-by inspired lines in the log message formatted as
7617         `Co-authored-by: A U Thor <email@example.com>' for round-tripping
7618         multi-author commits between version control systems.
7619         * gitlog-to-changelog: Extract `Co-authored-by:' lines from the git
7620         log message and output in standard ChangeLog multi-author format.
7621         Reported by Peter Rosin <peda@lysator.liu.se>
7622
7623 2011-11-15  Ben Walton <bwalton@artsci.utoronto.ca>  (tiny change)
7624             Bruno Haible  <bruno@clisp.org>
7625
7626         Fix some modules' file list.
7627         * modules/fstatat (Files): Add m4/lstat.m4.
7628         * modules/openat (Files): Likewise.
7629         * modules/unlinkat (Files): Likewise.
7630
7631 2011-11-15  Gary V. Vaughan  <gary@gnu.org>
7632
7633         maint.mk: fix tight-scope.mk generation in VPATH builds.
7634         * top/maint.mk (tight-scope.mk): Make sure to prefix file
7635         reference with $(srcdir) so that the file is found correctly even
7636         when running `make syntax-check' in a VPATH build.
7637
7638 2011-11-13  Bruno Haible  <bruno@clisp.org>
7639             Jim Meyering  <meyering@redhat.com>
7640
7641         Silence successful tests that use 'compare' on AIX, HP-UX, Solaris.
7642         * tests/init.sh (compare): Remove "No differences encountered" or
7643         synonymous output from the 'diff' program.
7644
7645 2011-11-13  Bruno Haible  <bruno@clisp.org>
7646
7647         Makefile: Tweak indentation.
7648         * Makefile: Use tab as first character in every line that contains rule
7649         commands.
7650
7651 2011-11-13  Bruno Haible  <bruno@clisp.org>
7652
7653         Syntax check for copyright statements.
7654         * check-copyright: New file.
7655         * Makefile (sc_check_copyright): New rule.
7656
7657 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7658
7659         * build-aux/git-version-gen: Add --prefix to configure the tag
7660         match string.
7661
7662 2011-11-13  Simon Josefsson  <simon@josefsson.org>
7663
7664         * build-aux/git-version-gen: Add --help and --version.
7665
7666 2011-11-12  Jim Meyering  <meyering@redhat.com>
7667
7668         revamp the other test-exclude?.sh scripts to use init.sh, too
7669         * tests/test-exclude1.sh: Use init.sh.
7670         * tests/test-exclude2.sh: Likewise.
7671         * tests/test-exclude3.sh: Likewise.
7672         * tests/test-exclude4.sh: Likewise.
7673         * tests/test-exclude5.sh: Likewise.
7674         * tests/test-exclude6.sh: Likewise.
7675         * tests/test-exclude7.sh: Likewise.
7676         * tests/test-exclude8.sh: Likewise.
7677         * modules/exclude-tests (Files): List init.sh.
7678
7679         test-exclude2.sh, test-exclude5.sh: fail if test-exclude fails
7680         These shell scripts ignored failure of the binary test-exclude,
7681         so making the latter return 77 didn't cause them to be skipped.
7682         * tests/test-exclude5.sh: Exit with test-exclude's error status
7683         when that program fails.  Revamp to use init.sh.
7684         * tests/test-exclude2.sh: Likewise.
7685
7686         test-exclude: fix a typo
7687         * tests/test-exclude.c (main): Test for "leading_dir", not "leading-dir".
7688
7689 2011-11-11  Bruno Haible  <bruno@clisp.org>
7690
7691         obstack: Fix compilation error on MSVC 9.
7692         * lib/obstack.c (print_and_abort): Declare with _Noreturn specifier.
7693
7694 2011-11-11  Jim Meyering  <meyering@redhat.com>
7695
7696         test-exclude: skip tests rather than failing on deficient systems
7697         * tests/test-exclude.c (main): Skip tests that use FNM_CASEFOLD
7698         and FNM_LEADING_DIR on systems that lack the definitions.  This affects
7699         at least Solaris 9.  Reported and diagnosed by Dagobert Michelsen in
7700         http://thread.gmane.org/gmane.comp.gnu.grep.bugs/3947/focus=3950
7701
7702 2011-11-10  Bruno Haible  <bruno@clisp.org>
7703
7704         ptsname_r test: Avoid gcc warning on glibc systems.
7705         * tests/test-ptsname_r.c (null_ptr): New function.
7706         (test_errors): Use it.
7707
7708 2011-11-10  Bruno Haible  <bruno@clisp.org>
7709
7710         ptsname_r: Avoid compilation error on OSF/1 5.1.
7711         * lib/stdlib.in.h (ptsname_r): Override if REPLACE_PTSNAME_R is 1.
7712         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_PTSNAME_R.
7713         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): Set REPLACE_PTSNAME_R if the
7714         function is not declared or incompatibly declared.
7715         * modules/stdlib (Makefile.am): Substitute REPLACE_PTSNAME_R.
7716         * modules/ptsname_r (Depends-on, configure.ac): Update.
7717         * doc/glibc-functions/ptsname_r.texi: Mention the OSF/1 problems.
7718
7719 2011-11-10  Bruno Haible  <bruno@clisp.org>
7720
7721         fstatat: Make cross-compilation guess succeed everywhere except on AIX.
7722         * m4/fstatat.m4 (gl_FUNC_FSTATAT): Require AC_CANONICAL_HOST.
7723         When cross-compiling, guess yes on all platforms except AIX.
7724         Reported by Ludovic Courtès <ludo@gnu.org>.
7725
7726 2011-11-09  Bruno Haible  <bruno@clisp.org>
7727
7728         ptsname_r tests: Fix bugs.
7729         * tests/test-ptsname_r.c (test_errors): Change return type to 'void'.
7730         Fix ptsname_r calls. Reduce loop rounds to a reasonable amount.
7731
7732 2011-11-09  Paul Eggert  <eggert@cs.ucla.edu>
7733
7734         fstatat: work with cross-compilation
7735         Problem reported by Ludovic Courtès in
7736         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00136.html>.
7737         * m4/fstatat.m4 (gl_FUNC_FSTATAT): When cross-compiling, report
7738         "cross-compiling" and assume the bug is present.  Replace
7739         FSTATAT_ZERO_FLAG_BROKEN with HAVE_WORKING_FSTATAT_ZERO_FLAG with
7740         an inverted sense, to be more conservative about our assumptions.
7741         * lib/fstatat.c (rpl_fstatat): Adjust to renamed macro.
7742
7743 2011-11-09  Bruno Haible  <bruno@clisp.org>
7744
7745         Improve MODULES.html output.
7746         * modules/mkfifoat (Description): Use the word "function".
7747         * modules/readlinkat (Description): Likewise.
7748         * modules/symlinkat (Description): Likewise.
7749
7750 2011-11-09  Eric Blake  <eblake@redhat.com>
7751
7752         ptsname_r-tests: new test module
7753         * modules/ptsname_r-tests: New module.
7754         * tests/test-ptsname_r.c: New file.
7755
7756         ptsname_r: new module
7757         * modules/ptsname_r: New module.
7758         * m4/ptsname_r.m4 (gl_FUNC_PTSNAME_R): New file.
7759         * lib/ptsname.c (__ptsname_r): Split...
7760         * lib/ptsname_r.c: ...into new file.
7761         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
7762         (gl_STDLIB_H_DEFAULTS): Set witness defaults.
7763         * modules/stdlib (Makefile.am): Substitute witnesses.
7764         * lib/stdlib.in.h (ptsname_r): Declare it.
7765         * doc/glibc-functions/ptsname_r.texi (ptsname_r): Document it.
7766         * MODULES.html.sh (Misc): Likewise.
7767         * modules/ptsname (Depends-on): Alter dependency.
7768         * doc/posix-functions/ptsname.texi (ptsname): Mention new module.
7769
7770 2011-11-09  Jim Meyering  <meyering@redhat.com>
7771
7772         announce-gen: be more concise when there's only one URL+tarball
7773         * build-aux/announce-gen (get_tool_versions): When you distribute
7774         only one type of tarball, combine the first two "Here are..."
7775         sections and make the key-checking grammar independent of
7776         how many tarballs there are.
7777
7778 2011-11-09  Eric Blake  <eblake@redhat.com>
7779
7780         openpty: provide a stub on mingw
7781         * lib/pty.in.h (includes): Provide forward declarations.
7782         * lib/openpty.c (openpty) [mingw]: Provide ENOSYS stub.
7783
7784         raise: fix mingw handling of SIGPIPE
7785         * lib/sigprocmask.c (_gl_raise_SIGPIPE): Provide a return value.
7786
7787 2011-11-08  Bruno Haible  <bruno@clisp.org>
7788
7789         More conditional dependencies.
7790         * modules/faccessat (Depends-on): Add conditions.
7791         * modules/fchmodat (Depends-on): Likewise.
7792         * modules/fchownat (Depends-on): Likewise.
7793         * modules/fstatat (Depends-on): Likewise.
7794         * modules/mkfifoat (Depends-on): Likewise.
7795         * modules/readlinkat (Depends-on): Likewise.
7796         * modules/symlinkat (Depends-on): Likewise.
7797         * modules/unlinkat (Depends-on): Likewise.
7798         * modules/utimensat (Depends-on): Likewise.
7799         * modules/mkdirat (Depends-on): Add sys_stat. Add conditions.
7800         * modules/linkat (Depends-on): Refine the conditions.
7801         * modules/renameat (Depends-on): Likewise.
7802
7803 2011-11-08  Bruno Haible  <bruno@clisp.org>
7804
7805         faccessat: Move AC_LIBOBJ invocation to module description.
7806         * m4/faccessat.m4 (gl_PREREQ_FACCESSAT): New macro.
7807         (gl_FUNC_FACESSAT): Don't test for access() here. Move AC_LIBOBJ
7808         invocation from here...
7809         * modules/faccessat (configure.ac): ... to here. Invoke
7810         gl_PREREQ_FACCESSAT.
7811
7812 2011-11-08  Bruno Haible  <bruno@clisp.org>
7813
7814         faccessat: Simplify autoconf macro.
7815         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Don't require gl_FUNC_OPENAT,
7816         gl_FUNC_EUIDACCESS.
7817
7818 2011-11-08  Bruno Haible  <bruno@clisp.org>
7819
7820         renameat: Fix dependencies.
7821         * modules/renameat (Depends-on): Add stdbool.
7822
7823 2011-11-08  Bruno Haible  <bruno@clisp.org>
7824
7825         mkfifoat: Fix module description.
7826         * modules/mkfifoat (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR,
7827         not gl_UNISTD_MODULE_INDICATOR.
7828
7829 2011-11-08  Bruno Haible  <bruno@clisp.org>
7830
7831         fstatat: Remove unused dependency.
7832         * modules/fstatat (Depends-on): Remove fstat.
7833
7834 2011-11-08  Simon Josefsson  <simon@josefsson.org>
7835
7836         GNUmakefile: behave when Makefile is missing.
7837         * top/GNUmakefile: Always initialize _build-aux and _autoreconf.
7838
7839 2011-11-08  Bruno Haible  <bruno@clisp.org>
7840
7841         openat: Conditionalize dependencies.
7842         * lib/openat.c: Reduce the scope of some #includes.
7843         * modules/openat (Depends-on): Add conditions.
7844
7845 2011-11-07  Jim Meyering  <meyering@redhat.com>
7846
7847         maint.mk: extract GPG key ID without using a temporary file
7848         * top/maint.mk (gpg_key_ID): Extract GPG key ID from signed tag, but
7849         without using a temporary file.  Based on a suggestion from Werner Koch
7850         in http://thread.gmane.org/gmane.comp.encryption.gpg.devel/16496
7851
7852 2011-11-07  Eric Blake  <eblake@redhat.com>
7853
7854         grantpt: fix typo
7855         * lib/stdlib.in.h (grantpt): Check correct function.
7856
7857         maint.mk: silence new syntax check
7858         * top/maint.mk (sc_prohibit_dirent_without_use): Add missing @.
7859
7860 2011-11-06  Bruno Haible  <bruno@clisp.org>
7861
7862         Doc about floating-point and math API.
7863         * doc/posix-headers/float.texi: Mention problem with FLT_ROUNDS.
7864         * doc/posix-headers/math.texi: Mention problem with math_errhandling.
7865
7866 2011-11-06  Bruno Haible  <bruno@clisp.org>
7867
7868         stdalign tests: Skip the test when compiled by Sun C.
7869         * tests/test-stdalign.c (main): Skip the test on Sun C.
7870
7871 2011-11-06  Bruno Haible  <bruno@clisp.org>
7872
7873         ansi-c++-opt: Complete the 2011-06-05 change.
7874         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is found but
7875         does not support namespaces, set the variable to "no", not to ":".
7876
7877 2011-11-06  Paul Eggert  <eggert@cs.ucla.edu>
7878
7879         * doc/posix-headers/stdalign.texi (stdalign.h): Mention Sun review ID.
7880
7881 2011-11-06  Bruno Haible  <bruno@clisp.org>
7882
7883         copysignl: Fix result for zero argument on HP-UX 11 with HP C.
7884         * lib/copysignl.c (compute_minus_zerol) [HP-UX]: New function.
7885         (minus_zerol) [HP-UX]: New macro.
7886         (unary_minus) [HP-UX]: New function.
7887         (copysignl) [HP-UX]: Use unary_minus function.
7888
7889 2011-11-06  Bruno Haible  <bruno@clisp.org>
7890
7891         ldexp, ldexpf, ldexpl: Enhance tests.
7892         * tests/test-ldexp.h: New file, combining code from tests/test-ldexp.c
7893         and tests/test-ldexpl.c.
7894         * tests/test-ldexpl.c: (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO,
7895         LDEXP, MIN_EXP, MAX_EXP): New macros.
7896         Include test-ldexp.h.
7897         (main): Just call test_function.
7898         * tests/test-ldexp.c: Include float.h, isnand-nolibm.h, minus-zero.h,
7899         infinity.h, nan.h.
7900         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7901         MAX_EXP): New macros.
7902         Include test-ldexp.h.
7903         (x, y): Remove variables.
7904         (main): Just call test_function.
7905         * tests/test-ldexpf.c: Include float.h, isnanf-nolibm.h, minus-zero.h,
7906         infinity.h, nan.h.
7907         (DOUBLE, ISNAN, INFINITY, NAN, L_, MINUS_ZERO, LDEXP, MIN_EXP,
7908         MAX_EXP): New macros.
7909         Include test-ldexp.h.
7910         (x, y): Remove variables.
7911         (main): Just call test_function.
7912         * modules/ldexpl-tests (Files): Add tests/test-ldexp.h.
7913         * modules/ldexp-tests (Files): Add tests/test-ldexp.h,
7914         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7915         (Depends-on): Add isnand-nolibm, signbit, float.
7916         * modules/ldexpf-tests (Files): Add tests/test-ldexp.h,
7917         tests/minus-zero.h, tests/infinity.h, tests/nan.h.
7918         (Depends-on): Add isnanf-nolibm, signbit, float.
7919
7920 2011-11-06  Bruno Haible  <bruno@clisp.org>
7921
7922         math tests: Cosmetics.
7923         * tests/test-math-c++.cc: Reorder declarations.
7924
7925 2011-11-05  Bruno Haible  <bruno@clisp.org>
7926
7927         fma*: Simplify test.
7928         * tests/test-fma2.h (FORGIVE_GLIBC_BUG): Remove macro.
7929         (test_function): Remove all if (FORGIVE_GLIBC_BUG) statements.
7930
7931         Tests for module 'fmal'.
7932         * modules/fmal-tests: New file.
7933         * tests/test-fmal1.c: New file.
7934         * tests/test-fmal2.c: New file.
7935
7936         New module 'fmal'.
7937         * lib/math.in.h (fmal): New declaration.
7938         * lib/fmal.c: New file.
7939         * m4/fmal.m4: New file.
7940         * m4/math_h.m4 (gl_MATH_H): Test whethern fmal is declared.
7941         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAL, HAVE_FMAL, REPLACE_FMAL.
7942         * modules/math (Makefile.am): Substitute GNULIB_FMAL, HAVE_FMAL,
7943         REPLACE_FMAL.
7944         * modules/fmal: New file.
7945         * doc/posix-functions/fmal.texi: Mention the new module and the various
7946         bugs.
7947
7948         Tests for module 'fmaf'.
7949         * modules/fmaf-tests: New file.
7950         * tests/test-fmaf1.c: New file.
7951         * tests/test-fmaf2.c: New file.
7952
7953         New module 'fmaf'.
7954         * lib/math.in.h (fmaf): New declaration.
7955         * lib/fmaf.c: New file.
7956         * m4/fmaf.m4: New file.
7957         * m4/math_h.m4 (gl_MATH_H): Test whethern fmaf is declared.
7958         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMAF, HAVE_FMAF, REPLACE_FMAF.
7959         * modules/math (Makefile.am): Substitute GNULIB_FMAF, HAVE_FMAF,
7960         REPLACE_FMAF.
7961         * modules/fmaf: New file.
7962         * doc/posix-functions/fmaf.texi: Mention the new module and the various
7963         bugs.
7964
7965         Tests for module 'fma'.
7966         * modules/fma-tests: New file.
7967         * tests/test-fma1.c: New file.
7968         * tests/test-fma1.h: New file.
7969         * tests/test-fma2.c: New file.
7970         * tests/test-fma2.h: New file.
7971
7972         New module 'fma'.
7973         * lib/math.in.h (fma): New declaration.
7974         * lib/fma.c: New file.
7975         * m4/fma.m4: New file.
7976         * m4/fegetround.m4: New file.
7977         * m4/math_h.m4 (gl_MATH_H): Test whethern fma is declared.
7978         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMA, HAVE_FMA, REPLACE_FMA.
7979         * modules/math (Makefile.am): Substitute GNULIB_FMA, HAVE_FMA,
7980         REPLACE_FMA.
7981         * modules/fma: New file.
7982         * doc/posix-functions/fma.texi: Mention the new module and the various
7983         bugs.
7984
7985         Extend gl_MATHFUNC.
7986         * m4/mathfunc.m4 (gl_MATHFUNC): Accept an 4th parameter of INCLUDES.
7987         Support 'void' as argument type.
7988         * m4/rint.m4 (gl_FUNC_RINT): Update gl_MATHFUNC invocation.
7989
7990 2011-11-05  Jim Meyering  <meyering@redhat.com>
7991
7992         maint.mk: also prohibit inclusion of dirent.h without use
7993         * top/maint.mk (sc_prohibit_dirent_without_use): New rule.
7994
7995 2011-11-05  Bruno Haible  <bruno@clisp.org>
7996
7997         ldexpl tests: Avoid test failure on MSVC 9.
7998         * tests/test-ldexpl.c (main): Use a temporary variable for the expected
7999         value. Needed in order to enforce the conversion from a value greater
8000         than LDBL_MAX to Infinity.
8001
8002 2011-11-05  Bruno Haible  <bruno@clisp.org>
8003
8004         New modules 'at-internal', 'openat-h', split off from module 'openat'.
8005         * modules/at-internal: New file, extracted from modules/openat.
8006         * modules/openat-h: New file.
8007         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_OPENAT. Don't
8008         invoke gl_PREREQ_OPENAT and gl_MODULE_INDICATOR.
8009         * modules/openat (Description): Add reference to POSIX function.
8010         (Files): Remove lib/openat.h, lib/openat-proc.c.
8011         (Depends-on): Add at-internal, openat-h. Remove fdopendir, gettext-h,
8012         intprops, unistd.
8013         (configure.ac): Remove AC_LIBOBJ of openat-proc. Invoke
8014         gl_PREREQ_OPENAT, gl_MODULE_INDICATOR here. Invoke
8015         gl_FCNTL_MODULE_INDICATOR.
8016         (Include): Remove unistd.h, openat.h.
8017         * modules/areadlinkat (Files): Add lib/at-func.c.
8018         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8019         openat-die, openat-h, save-cwd.
8020         * modules/areadlinkat-with-size (Files): Add lib/at-func.c.
8021         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8022         openat-die, openat-h, save-cwd, unistd.
8023         * modules/faccessat (Files): Add lib/at-func.c, lib/openat-priv.h.
8024         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8025         openat-h, save-cwd. Remove fcntl-h, openat.
8026         * modules/fchmodat (Files): Remove lib/openat.h.
8027         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8028         openat, stdbool, unistd.
8029         * modules/fchownat (Files): Remove lib/openat.h.
8030         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8031         openat, stdbool, sys_stat.
8032         * modules/fdopendir (Files): Remove lib/openat-priv.h,
8033         lib/openat-proc.c.
8034         (Depends-on): Add at-internal.
8035         (condigure.ac): Remove AC_LIBOBJ of openat-proc.
8036         * modules/fstatat (Files): Remove lib/openat.h.
8037         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8038         stdbool, unistd.
8039         * modules/fts (Depends-on): Add openat-h.
8040         * modules/linkat (Depends-on): Add at-internal, openat-h. Remove
8041         openat.
8042         * modules/mkdirat (Files): Remove lib/openat.h.
8043         (Depends-on): Add at-internal, openat-h. Remove dirent, fcntl-h,
8044         openat, stdbool, sys_stat.
8045         * modules/mkfifoat (Files): Add lib/at-func.c.
8046         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8047         openat-h, save-cwd. Remove fcntl-h, openat.
8048         * modules/openat-die (Depends-on): Add openat-h. Remove openat.
8049         * modules/readlinkat (Files): Add lib/at-func.c.
8050         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8051         openat-h, save-cwd. Remove fcntl-h, openat.
8052         * modules/renameat (Depends-on): Add at-internal, openat-h. Remove
8053         openat.
8054         * modules/selinux-at (Files): Add lib/at-func.c.
8055         (Depends-on): Add at-internal, dosname, errno, extensions, fchdir,
8056         fcntl-h, openat-die, openat-h, save-cwd, unistd. Remove openat.
8057         * modules/symlinkat (Files): Add lib/at-func.c.
8058         (Depends-on): Add at-internal, dosname, errno, fchdir, openat-die,
8059         openat-h, save-cwd. Remove fcntl-h, openat.
8060         * modules/unlinkat (Files): Remove lib/openat.h.
8061         (Depends-on): Add at-internal, openat-h. Remove dirent, openat,
8062         stdbool.
8063         * modules/utimensat (Files): Add lib/at-func.c.
8064         (Depends-on): Add at-internal, dosname, errno, fchdir, fcntl-h,
8065         openat-die, openat-h, save-cwd.
8066         * modules/fchownat-tests (Depends-on): Add openat-h. Remove openat.
8067         * modules/fdutimensat-tests (Depends-on): Add openat.
8068         * modules/fstatat-tests (Depends-on): Add openat-h.
8069         * modules/readlinkat-tests (Depends-on): Add openat.
8070         * modules/symlinkat-tests (Depends-on): Add openat.
8071
8072 2011-11-05  Bruno Haible  <bruno@clisp.org>
8073
8074         openat: Include <stdbool.h>.
8075         * lib/openat.c: Include <stdbool.h>.
8076
8077 2011-11-04  Bruno Haible  <bruno@clisp.org>
8078
8079         fchownat, renameat, unlinkat: Fix dependencies.
8080         * modules/fchownat (Depends-on): Add fstatat.
8081         * modules/renameat (Depends-on): Likewise.
8082         * modules/unlinkat (Depends-on): Likewise.
8083
8084 2011-11-04  Paul Eggert  <eggert@cs.ucla.edu>
8085
8086         openat: remove direct dependency on dirent
8087         * lib/openat.h: Don't include <dirent.h>; it's no longer needed,
8088         and hasn't been needed ever since fdopendir was split into its own
8089         module on 2009-08-31.
8090         * modules/openat (Depends-on): Remove dirent.
8091
8092 2011-11-04  Bruno Haible  <bruno@clisp.org>
8093
8094         renameat: Optimize code size.
8095         * modules/renameat (configure.ac): Don't compile at-func2.c if
8096         REPLACE_RENAMEAT is 1.
8097
8098 2011-11-04  Bruno Haible  <bruno@clisp.org>
8099
8100         openat tests: Fix file list.
8101         * modules/openat-tests (Files): Add tests/test-open.h.
8102
8103 2011-11-04  Bruno Haible  <bruno@clisp.org>
8104
8105         openat, fchmodat, fchownat, linkat, renameat: Fix dependencies.
8106         * modules/fchmodat (Depends-on): Add openat-die.
8107         * modules/fchownat (Depends-on): Likewise.
8108         * modules/linkat (Depends-on): Likewise.
8109         * modules/renameat (Depends-on): Likewise.
8110         * modules/openat (Depends-on): Add dirent.
8111
8112 2011-11-04  Jim Meyering  <meyering@redhat.com>
8113
8114         at-func*.c: fix comments
8115         * lib/at-func2.c: Correct/improve first-line comment.
8116         * lib/at-func.c: Correct grammar in first-line comment.
8117
8118 2011-11-04  Bruno Haible  <bruno@clisp.org>
8119
8120         New module 'mkdirat', split off from module 'openat'.
8121         * m4/mkdirat.m4: New file. extracted from m4/openat.m4.
8122         * m4/openat.m4 (gl_FUNC_OPENAT): Don't require gl_SYS_STAT_H_DEFAULTS.
8123         Don't test for mkdirat. Don't set GNULIB_MKDIRAT, HAVE_MKDIRAT.
8124         * modules/mkdirat: New file, extracted from modules/openat.
8125         * modules/openat (Files): Remove lib/mkdirat.c.
8126         (Depends-on): Remove mkdir.
8127         (configure.ac): Remove AC_LIBOBJ of mkdirat.
8128         (Include): Remove <sys/stat.h>.
8129         * modules/mkdirat-tests: New file, extracted from modules/openat-tests.
8130         * modules/openat-tests (Files): Remove tests/test-mkdirat.c,
8131         tests/test-mkdir.h.
8132         (Depends-on): Remove ignore-value.
8133         (Makefile.am): Remove rules for test-mkdirat.
8134         * doc/posix-functions/mkdirat.texi: Mention module 'mkdirat' instead
8135         of module 'openat'.
8136         * NEWS: Mention the change.
8137
8138 2011-11-04  Bruno Haible  <bruno@clisp.org>
8139
8140         closedir: Avoid warning on mingw.
8141         * lib/closedir.c: Include <unistd.h>.
8142
8143 2011-11-04  Bruno Haible  <bruno@clisp.org>
8144
8145         New module 'fstatat', split off from module 'openat'.
8146         * lib/openat.h (statat, lstatat): Enable only if GNULIB_FSTATAT is
8147         defined.
8148         * m4/fstatat.m4: New file. extracted from m4/openat.m4.
8149         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FSTATAT. Don't invoke
8150         gl_FUNC_FSTATAT.
8151         (gl_FUNC_FSTATAT): Moved to m4/fstatat.m4.
8152         * modules/fstatat: New file, extracted from modules/openat.
8153         * modules/openat (Files): Remove lib/fstatat.c.
8154         (Depends-on): Remove lstat.
8155         (configure.ac): Remove AC_LIBOBJ of fstatat.
8156         * modules/fstatat-tests: New file, extracted from modules/openat-tests.
8157         * modules/openat-tests (Files): Remove tests/test-fstatat.c,
8158         tests/test-lstat.h, tests/test-stat.h.
8159         (Depends-on): Remove getcwd-lgpl.
8160         (Makefile.am): Remove rules for test-fstatat.
8161         * doc/posix-functions/fstatat.texi: Mention module 'fstatat' instead
8162         of module 'openat'.
8163         * NEWS: Mention the change.
8164         * modules/getcwd (Depends-on): Add fstatat.
8165         * modules/linkat (Depends-on): Likewise.
8166         * modules/mkfifoat-tests (Depends-on): Likewise.
8167         * modules/utimensat (Depends-on): Add fstatat. Remove openat.
8168
8169 2011-11-03  Bruno Haible  <bruno@clisp.org>
8170
8171         New module 'unlinkat', split off from module 'openat'.
8172         * m4/unlinkat.m4: New file, extracted from m4/openat.m4.
8173         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_UNLINKAT,
8174         REPLACE_UNLINKAT, HAVE_UNLINKAT. Don't test for unlinkat.
8175         * modules/unlinkat: New file, extracted from modules/openat. Correct
8176         the dependency conditions.
8177         * modules/openat (Files): Remove lib/unlinkat.c.
8178         (Depends-on): Remove rmdir, unlink.
8179         (configure.ac): Remove AC_LIBOBJ of unlinkat.
8180         * modules/unlinkat-tests: New file, extracted from modules/openat-tests.
8181         * modules/openat-tests (Files): Remove tests/test-unlinkat.c,
8182         tests/test-rmdir.h, tests/test-unlink.h.
8183         (Depends-on): Remove unlinkdir.
8184         (Makefile.am): Remove rules for test-unlinkat.
8185         * doc/posix-functions/unlinkat.texi: Mention module 'unlinkat' instead
8186         of module 'openat'.
8187         * NEWS: Mention the change.
8188         * modules/linkat-tests (Depends-on): Add unlinkat.
8189         * modules/mkfifoat-tests (Depends-on): Likewise.
8190         * modules/readlinkat-tests (Depends-on): Likewise.
8191
8192 2011-11-02  Bruno Haible  <bruno@clisp.org>
8193
8194         New module 'fchmodat', split off from module 'openat'.
8195         * lib/openat.h (chmodat, lchmodat): Enable only if GNULIB_FCHMODAT is
8196         defined.
8197         * m4/fchmodat.m4: New file, extracted from m4/openat.m4.
8198         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHMODAT. Don't test
8199         for fchmodat, lchmod. Don't set HAVE_FCHMODAT.
8200         * modules/fchmodat: New file, extracted from modules/openat.
8201         * modules/openat (Files): Remove lib/fchmodat.c.
8202         (configure.ac): Remove AC_LIBOBJ of fchmodat.
8203         * modules/fchmodat-tests: New file, extracted from modules/openat-tests.
8204         * modules/openat-tests (Files): Remove tests/test-fchmodat.c.
8205         (Makefile.am): Remove rules for test-fchmodat.
8206         * doc/posix-functions/fchmodat.texi: Mention module 'fchmodat' instead
8207         of module 'openat'.
8208         * NEWS: Mention the change.
8209
8210 2011-11-02  Jim Meyering  <meyering@redhat.com>
8211
8212         putenv: indent #definition of "environ" to placate cppi
8213         * lib/putenv.c (environ): Make indentation reflect cpp nesting.
8214
8215         gitlog-to-changelog: provide a ChangeLog-repair mechanism
8216         Git logs are often treated as immutable, because editing them
8217         changes the SHA1 checksums of all descendants.  Thus, errors in
8218         git logs tend to stay there forever.  However, when we generate
8219         a ChangeLog file -- typically for distribution -- from that git log,
8220         we can actually make corrections in the generated file.  The key
8221         lies in recording in machine-readable/applicable form the desired
8222         corrections.  See --help for description and an example.
8223         * build-aux/gitlog-to-changelog (parse_amend_file): New function.
8224         (usage): Describe it; alphabetize option descriptions.
8225         (main): Honor the new option, carefully.
8226
8227 2011-11-01  Jim Meyering  <meyering@redhat.com>
8228
8229         gitlog-to-changelog: avoid an infloop
8230         * build-aux/gitlog-to-changelog: Don't infloop for a commit log
8231         that ends up being empty.
8232
8233 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8234
8235         * MODULES.html.sh: Fix sed-script shell quoting and locale issues.
8236         (func_module): Replace foo=` ... sed -e COMPLICATED ... ` with
8237         bar=COMPLICATED; foo=` ... sed -e "$bar" ... ` when COMPLICATED
8238         contains (possibly-quoted) backslashes.  This should avoid
8239         all-too-common shell bugs if COMPLICATED contains backslashes in
8240         the "wrong" places.  Reported by David Evans in
8241         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00013.html>.
8242         When 'sed' uses character ranges like A-Z, invoke it in the C locale,
8243         because we want ASCII ranges.  Is there some reason we don't use
8244         the C locale everywhere in this script?
8245         (func_module, top level): Avoid unwanted pathname expansion when
8246         $repo_url_prefix or $repo_url_suffix_repl contain shell
8247         metacharacters like '?' and '*'.
8248
8249 2011-11-01  Bruno Haible  <bruno@clisp.org>
8250
8251         fchownat: Improve description.
8252         * modules/fchownat (Description): Add link to function.
8253
8254 2011-11-01  Paul Eggert  <eggert@cs.ucla.edu>
8255
8256         * tests/test-stdalign.c (TEST_ALIGNMENT): Shrink back to 8.
8257         mingw supports alignments only up to 8 (!).  Reported by Bruno Haible in
8258         <http://lists.gnu.org/archive/html/bug-gnulib/2011-11/msg00006.html>.
8259         * doc/posix-headers/stdalign.texi (stdalign.h): Document this.
8260
8261 2011-11-01  Bruno Haible  <bruno@clisp.org>
8262
8263         alignof: Avoid collision with stdalign module.
8264         * lib/alignof.h (alignof): Remove macro.
8265         * NEWS: Mention the change.
8266         Reported by Paul Eggert.
8267
8268 2011-11-01  Bruno Haible  <bruno@clisp.org>
8269
8270         New module 'fchownat', split off from module 'openat'.
8271         * lib/openat.h (chownat, lchownat): Enable only if GNULIB_FCHOWNAT is
8272         defined.
8273         * m4/fchownat.m4: New file, extracted from m4/openat.m4.
8274         * m4/openat.m4 (gl_FUNC_OPENAT): Don't set GNULIB_FCHOWNAT. Don't
8275         invoke gl_FUNC_FCHOWNAT.
8276         (gl_FUNC_FCHOWNAT_DEREF_BUG, gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG,
8277         gl_FUNC_FCHOWNAT): Moved to m4/fchownat.m4.
8278         * modules/fchownat: New file, extracted from modules/openat.
8279         * modules/openat (Files): Remove lib/fchownat.c.
8280         (Depends-on): Remove lchown.
8281         (configure.ac): Remove AC_LIBOBJ of fchownat.
8282         * modules/fchownat-tests: New file, extracted from modules/openat-tests.
8283         * modules/openat-tests (Files): Remove tests/test-fchownat.c,
8284         tests/test-chown.h, tests/test-lchown.h, tests/nap.h.
8285         (Depends-on): Remove mgetgroups, usleep, stat-time.
8286         (configure.ac): Remove test for getegid.
8287         (Makefile.am): Remove rules for test-fchownat.
8288         * doc/posix-functions/fchownat.texi: Mention module 'fchownat' instead
8289         of module 'openat'.
8290         * NEWS: Mention the change.
8291
8292 2011-10-31  Paul Eggert  <eggert@cs.ucla.edu>
8293
8294         stdalign: port better to MSVC and to Sun C 5.11
8295         This fixes some of the problems reported by Bruno Haible in
8296         <http://lists.gnu.org/archive/html/bug-gnulib/2011-10/msg00300.html>.
8297         * doc/posix-headers/stdalign.texi (stdalign.h): Document more
8298         shortcomings of MSVC and of Sun C 5.11.
8299         * lib/stdalign.in.h (_Alignas): Omit bogus extra parenthesis
8300         around __declspec arg.
8301         * modules/stdalign-tests (Files): Add tests/macros.h.
8302         * tests/test-stdalign.c: Do not include <stdlib.h>; no longer needed.
8303         Include macros.h, for ASSERT.
8304         (DECLARE_ALIGNED): Remove.
8305         (TEST_ALIGNMENT): Define to 16 if alignment is supported (more likely
8306         to catch bug), and to 1 if not (simplifies the rest of the code).
8307         (CHECK_STATIC): Always declare the alignment test vars; that's simpler.
8308         (CHECK_AUTO): Remove.
8309         (CHECK_ALIGNED): Check only the alignment of the static vars,
8310         since auto var alignment isn't supported by Sun C 5.11.
8311         (CHECK_TYPES): Remove.  All uses replaced by inline code, so that
8312         ASSERT failures are easier to diagnose.
8313
8314 2011-10-31  Bruno Haible  <bruno@clisp.org>
8315
8316         doc about some IRIX 5.3 problems.
8317         * doc/posix-functions/getpwnam_r.texi: Mention incompatible declaration
8318         on IRIX 5.3.
8319         * doc/posix-headers/poll.texi: Mention missing nfds_t on IRIX 5.3.
8320         * doc/posix-functions/ptsname.texi: Mention missing declaration on IRIX
8321         5.3.
8322         * doc/posix-functions/grantpt.texi: Likewise.
8323         * doc/posix-functions/unlockpt.texi: Likewise.
8324         * doc/posix-functions/lgamma.texi: Likewise.
8325         * doc/posix-functions/nextafter.texi: Likewise.
8326         * doc/posix-functions/remainder.texi: Likewise.
8327         * doc/posix-functions/select.texi: Mention misplaced declaration on
8328         IRIX 5.3.
8329         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8330
8331 2011-10-31  Dmitry V. Levin  <ldv@altlinux.org>
8332
8333         gitlog-to-changelog: fix git-log invocation.
8334         git-log mishandles date strings before 1970-01-01 UTC, and there is
8335         no use to specify --since=1970-01-01 by default anyway.
8336         * build-aux/gitlog-to-changelog: By default, when no --since option
8337         was given, do not specify explicit --since option to git-log.
8338
8339 2011-10-30  Dmitry V. Levin  <ldv@altlinux.org>
8340
8341         gitlog-to-changelog: new option --append-dot.
8342         * build-aux/gitlog-to-changelog: New option --append-dot, makes the
8343         first non-blank line of each commit message terminated with a dot.
8344
8345 2011-10-30  Bruno Haible  <bruno@clisp.org>
8346
8347         ffsl, ffsll: Avoid compilation error due to 'restrict'.
8348         * lib/ffsl.h: Include <config.h>.
8349         Suggested by Tom G. Christensen <tgc@jupiterrise.com>.
8350
8351 2011-10-30  Jim Meyering  <meyering@redhat.com>
8352
8353         GNUmakefile: reenable "make syntax-check" for most projects
8354         Since Friday's commit 05e2d798, "maint.mk: don't maintain a second
8355         build-aux variable", "syntax-check" would do nothing but succeed with
8356         the "No version control files detected..." diagnostic (unless you
8357         happened to override _build-aux via cfg.mk).
8358         * top/GNUmakefile (_autoreconf, _build-aux): Move default definitions
8359         to precede inclusion of maint.mk.  Otherwise, these variables would
8360         be used undefined in any project that does not override the default.
8361
8362 2011-10-29  Dmitry V. Levin  <ldv@altlinux.org>
8363
8364         gitlog-to-changelog: treat a message with only blank lines as empty.
8365         * build-aux/gitlog-to-changelog: Move the code that removes leading and
8366         trailing blank lines before the code that issues a warning about an
8367         empty commit message.
8368
8369 2011-10-30  Jim Meyering  <meyering@redhat.com>
8370
8371         test-parse-datetime.c: avoid new DST-related false positive test failure
8372         * tests/test-parse-datetime.c (gmt_offset): Determine the "gmt_offset"
8373         based on the time/date we'll convert, not the current time.
8374         Otherwise, the moment we cross a DST boundary like today's in
8375         Europe, (CEST to CET), that offset ends up being one hour off.
8376
8377 2011-10-27  Bruno Haible  <bruno@clisp.org>
8378
8379         fstat: Tweak documentation.
8380         * modules/fstat (Description): More precise description.
8381
8382 2011-10-27  Bruno Haible  <bruno@clisp.org>
8383
8384         Update documentation regarding 'largefile' module.
8385         * doc/posix-functions/fstat.texi: Tweak wording.
8386         * doc/posix-functions/opendir.texi: Mention that the module fixes the
8387         problems with huge directories and/or small ino_t types.
8388         * doc/posix-functions/readdir.texi: Likewise.
8389         * doc/posix-functions/rewinddir.texi: Likewise.
8390
8391 2011-10-28  Gary V. Vaughan  <gary@gnu.org>
8392
8393         maint.mk: don't maintain a second build-aux variable.
8394         * maint.mk (build_aux): Removed.  The maintainer-makefile module
8395         depends on GNUmakefile, which already maintains a cfg.mk
8396         overridable $(_build-aux) for projects with a non-standard
8397         build-aux directory location, although without the $(srcdir)
8398         prefix.  Use that variable consistently instead of introducing a
8399         second one.  Adjust all call sites.
8400
8401 2011-10-27  Paul Eggert  <eggert@cs.ucla.edu>
8402
8403         Add stdalign module and use it in other modules.
8404         This is based on a previous proposal by Bruno Haible
8405         <https://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00226.html>.
8406
8407         stdalign: new module
8408         * doc/posix-headers/stdalign.texi, lib/stdalign.in.h, m4/stdalign.m4:
8409         * modules/stdalign: New files.
8410         * MODULES.html.sh (c1x_core_properties): Add stdalign.
8411         * doc/gnulib.texi (Header File Substitutes): Add stdalign.
8412
8413         stdalign-tests: new module
8414         * modules/stdalign-tests, tests/test-stdalign.c: New files.
8415
8416         argp: use stdalign
8417         * lib/argp-parse.c: Include <stdalign.h>.
8418         (alignof): Remove.
8419         * modules/argp (Depends-on): Add stdalign.
8420
8421         crypto libraries: use stdalign
8422         * lib/md4.c, lib/md5.c, lib/sha1.c, lib/sha256.c, lib/sha512.c:
8423         Include <stdalign.h> and <stdint.h>.  Do not include <stddef.h>.
8424         Do not include <stdlib.h> twice, in md4.c.
8425         (UNALIGNED_P): Simplify by using alignof.  Use uintptr_t, not size_t,
8426         because we are accessing a pointer's bit-pattern, not a size.
8427         * modules/crypto/gc-md4 (Depends-on): Add stdalign.
8428         * modules/crypto/gc-md5, modules/crypto/gc-sha1, modules/crypto/md4:
8429         * modules/crypto/md5, modules/crypto/sha1, modules/crypto/sha256:
8430         * modules/crypto/sha512: Likewise.
8431
8432         sys_socket: use stdalign, not alignof
8433         * lib/sys_socket.in.h: Include <stdalign.h> instead of <alignof.h>.
8434         * modules/sys_socket (Depends-on): Depend on stdalign, not alignof.
8435
8436 2011-10-27  Bruno Haible  <bruno@clisp.org>
8437
8438         raise test: Avoid a test failure on Linux/MIPS.
8439         * tests/test-raise.c (main): Try raising signal 199, not 99. Needed
8440         because 99 is a valid signal on Linux/MIPS.
8441
8442 2011-10-27  Bruno Haible  <bruno@clisp.org>
8443
8444         nonblocking tests: Fix test failure on Linux/MIPS.
8445         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/MIPS]:
8446         Set to 270000.
8447
8448 2011-10-27  Bruno Haible  <bruno@clisp.org>
8449
8450         utimensat: Work around problem on Linux/hppa.
8451         * lib/utimensat.c (rpl_utimensat) [Linux/hppa]: Reject invalid tv_nsec
8452         values.
8453         * doc/posix-functions/utimensat.texi: Mention the problem on Linux/hppa.
8454
8455 2011-10-25  Jim Meyering  <meyering@redhat.com>
8456
8457         maint.mk: fix a bug in sc_prohibit_stddef_without_use
8458         * top/maint.mk (sc_prohibit_stddef_without_use): Don't require / *\(/
8459         after symbols like NULL, size_t, etc.
8460         Reported by Alfred M. Szmidt.
8461
8462         maint.mk: exempt ENODATA from a syntax-check rule
8463         * top/maint.mk (gl_extract_significant_defines_): Also exempt ENODATA
8464         from the sc_prohibit_always-defined_macros syntax-check rule.
8465         Add a comment.  See this for more details:
8466         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739/focus=28795
8467
8468 2011-10-23  Jim Meyering  <meyering@redhat.com>
8469
8470         fts: close parent dir FD before returning from post-traversal fts_read
8471         The problem: the fts-using "mkdir -p A/B; rm -rf A" would attempt to
8472         unlink A, even though an FD open on A remained.  This is suboptimal
8473         (holding a file descriptor open longer than needed), but otherwise not
8474         a problem on Unix-like kernels.  However, on Cygwin with certain Novell
8475         file systems, (see http://cygwin.com/ml/cygwin/2011-10/msg00365.html),
8476         that represents a real problem: it causes the removal of A to fail
8477         with e.g., "rm: cannot remove `A': Device or resource busy"
8478
8479         fts visits each directory twice and keeps a cache (fts_fd_ring) of
8480         directory file descriptors.  After completing the final, FTS_DP,
8481         visit of a directory, RESTORE_INITIAL_CWD intended to clear the FD
8482         cache, but then proceeded to add a new FD to it via the subsequent
8483         FCHDIR (which calls cwd_advance_fd and i_ring_push).  Before, the
8484         final file descriptor would be closed only via fts_close's call to
8485         fd_ring_clear.  Now, it is usually closed earlier, via the final
8486         FTS_DP-returning fts_read call.
8487         * lib/fts.c (restore_initial_cwd): New function, converted from
8488         the macro.  Call fd_ring_clear *after* FCHDIR, not before it.
8489         Update callers.
8490         Reported by Franz Sirl via the above URL, with analysis by Eric Blake
8491         in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28739
8492
8493 2011-10-23  Gary V. Vaughan  <gary@gnu.org>
8494             Bruno Haible  <bruno@clisp.org>
8495             Jim Meyering  <jim@meyering.net>
8496
8497         readme-release: improve safety of release prep instructions.
8498         * README-release: Don't git pull all branches when only master
8499         is needed for the release process.
8500         Run make maintainer-clean before changing trees and merging.
8501         Don't try to run ./configure right after git pull in case files
8502         that influence the bootstrap process have changed, move the
8503         ./configure step to after running ./bootstrap.
8504         Don't bootstrap "one last time"... it's the first time!
8505
8506 2011-10-22  Bruno Haible  <bruno@clisp.org>
8507
8508         errno, strerror-override: Support for MSVC 10.
8509         * lib/errno.in.h (GNULIB_defined_ETXTBSY): Remove macro.
8510         (ENOMSG, EIDRM, ENOLINK, EPROTO, EBADMSG, EOVERFLOW, ENOTSUP,
8511         ENETRESET, ECONNABORTED, ECANCELED, EINPROGRESS, EALREADY, ENOTSOCK,
8512         EDESTADDRREQ, EMSGSIZE, EPROTOTYPE, ENOPROTOOPT, EPROTONOSUPPORT,
8513         EOPNOTSUPP, EAFNOSUPPORT, EADDRINUSE, EADDRNOTAVAIL, ENETDOWN,
8514         ENETUNREACH, ECONNRESET, ENOBUFS, EISCONN, ENOTCONN, ETIMEDOUT,
8515         ECONNREFUSED, ELOOP, EHOSTUNREACH, EWOULDBLOCK, ETXTBSY) [Win32]:
8516         Assign values compatible with MSVC 10.
8517         (ENODATA, ENOSR, ENOSTR, ENOTRECOVERABLE, EOWNERDEAD, ETIME, EOTHER):
8518         New macros.
8519         (GNULIB_defined_EWINSOCK): New macro.
8520         * lib/strerror-override.c (strerror_override): Update accordingly.
8521         * lib/strerror-override.h: Likewise.
8522         * lib/w32sock.h (set_winsock_errno): Map those WSA* values that are no
8523         longer equal to the corresponding errno value.
8524         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8525
8526 2011-10-22  Bruno Haible  <bruno@clisp.org>
8527
8528         perror: Recognize when test program crashes.
8529         * m4/perror.m4 (gl_FUNC_PERROR): If the test program crashes due to
8530         strerror, set gl_cv_func_perror_works to no.
8531         Reported by Daniel Richard G. <skunk@iskunk.org>.
8532
8533         perror: Fix indentation.
8534         * m4/perror.m4 (gl_FUNC_PERROR): Fix indentation.
8535
8536 2011-10-22  Bruno Haible  <bruno@clisp.org>
8537
8538         isfinite, isinf, isnan, signbit: Don't define as a macro in C++.
8539         * lib/math.in.h (_GL_MATH_CXX_REAL_FLOATING_DECL_1,
8540         _GL_MATH_CXX_REAL_FLOATING_DECL_2): nEW MACROS.
8541         (isfinite, isinf, isnan, signbit): In C++, define as overloaded
8542         functions, not as a macro.
8543         * tests/test-math-c++.cc (REAL_FLOATING_CHECK, OVERLOADED_CHECK): New
8544         macros.
8545         (isfinite, isinf, isnan, signbit): Check overloaded functions and
8546         absence of macro.
8547         Suggested by Eric Blake.
8548         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
8549
8550 2011-10-21  Bruno Haible  <bruno@clisp.org>
8551
8552         relocatable-prog-wrapper: Don't leave object files behind.
8553         * build-aux/install-reloc: Re-synchronize list of .o files to be
8554         removed with list of compilation units.
8555
8556 2011-10-20  Bruno Haible  <bruno@clisp.org>
8557
8558         openpty, posix_openpt: Remove code duplication.
8559         * lib/posix_openpt.c: Add comments about platforms, from lib/openpty.c.
8560         * lib/openpty.c: Include <stdlib.h>.
8561         (openpty): Use posix_openpt on all platforms except IRIX.
8562         * modules/openpty (Depends-on): Add posix_openpt. Add conditions.
8563
8564 2011-10-20  Bruno Haible  <bruno@clisp.org>
8565
8566         unlockpt: Detect invalid argument.
8567         * lib/unlockpt.c: Include <fcntl.h>.
8568         (unlockpt): Check whether fd is valid, using fcntl().
8569         * modules/unlockpt (Depends-on): Add fcntl-h.
8570
8571 2011-10-20  Bruno Haible  <bruno@clisp.org>
8572
8573         openpty: Avoid compilation error on AIX 6.1.
8574         * lib/pty.in.h [AIX]: Include <sys/ioctl.h>, for 'struct winsize'.
8575
8576 2011-10-20  Bruno Haible  <bruno@clisp.org>
8577
8578         posix_openpt: Support for OpenBSD.
8579         * lib/posix_openpt.c [OpenBSD]: Include <sys/ioctl.h>, <sys/tty.h>.
8580         (posix_openpt) [OpenBSD]: New code.
8581         * lib/grantpt.c: Include <fcntl.h>.
8582         (grantpt) [OpenBSD]: Only test whether fd is valid, nothing else.
8583         * modules/grantpt (Depends-on): Add fcntl-h.
8584
8585 2011-10-20  Bruno Haible  <bruno@clisp.org>
8586
8587         posix_openpt test: Coding style.
8588         * tests/test-posix_openpt.c: Use GNU coding style.
8589
8590 2011-10-20  Bruno Haible  <bruno@clisp.org>
8591
8592         grantpt: Support --avoid=pt_chown.
8593         * modules/grantpt (Files): Add lib/pty-private.h.
8594
8595 2011-10-20  Bruno Haible  <bruno@clisp.org>
8596
8597         posix_openpt: Fix autoconf macro.
8598         * m4/posix_openpt.m4 (gl_FUNC_POSIX_OPENPT): Fix variable name. Remove
8599         unneeded check for _getpty.
8600
8601 2011-10-20  Bruno Haible  <bruno@clisp.org>
8602
8603         openpty: Update comments.
8604         * lib/openpty.c: Add comments about Minix.
8605
8606 2011-10-19  Eric Blake  <eblake@redhat.com>
8607
8608         openpty: relax license
8609         * modules/openpty (License): Change from LGPLv3+ to LGPLv2+.
8610
8611         pt_chown: use configmake to simplify build
8612         * modules/pt_chown (Makefile.am): Drop line guaranteed by configmake.
8613
8614         ptsname and others: relax license
8615         * modules/grantpt (License): Change from LGPLv3+ to LGPLv2+.
8616         * modules/unlockpt (License): Likewise.
8617         * modules/pt_chown (License): Likewise.
8618         * modules/ptsname (License): Likewise.
8619         * modules/ttyname_r (License): Likewise.
8620
8621 2011-10-19  Jim Meyering  <meyering@redhat.com>
8622
8623         posix_openpt: remove spurious #endif
8624         * lib/posix_openpt.c (posix_openpt): Remove spurious #endif.
8625
8626 2011-10-19  Gary V. Vaughan  <gary@gnu.org>
8627
8628         maint.mk: Respect $(build_aux) in web-manual rule.
8629         * top/maint.mk (web-manual): Find gen-announce script in user's
8630         $(build_aux) directory instead of hard-coding 'build-aux'.
8631
8632 2011-10-19  Bruno Haible  <bruno@clisp.org>
8633
8634         posix_openpt: Fix compilation error.
8635         * lib/posix_openpt.c (posix_openpt): Renamed from posix_openpty.
8636         * doc/posix-functions/posix_openpt.texi: Mention ENOENT error code.
8637         Mention the openpty module as an alternative.
8638
8639 2011-10-19  Bruno Haible  <bruno@clisp.org>
8640
8641         Support for old NeXTstep 3.3 frexp().
8642         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Check for alarm. Limit the
8643         execution time of the test to 5 seconds.
8644         Reported by Daniel Richard G. <skunk@iskunk.org>.
8645
8646 2011-10-19  Bruno Haible  <bruno@clisp.org>
8647
8648         Support for old NeXTstep 3.3 sed.
8649         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): In the sed address
8650         part, use /.../, not \|...|. Escape periods in the header file name.
8651         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
8652         Reported by Daniel Richard G. <skunk@iskunk.org>.
8653
8654 2011-10-18  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8655
8656         Support for old NeXTstep 3.3 gcc.
8657         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Write
8658         'defined __STRICT_ANSI__', not '__STRICT_ANSI__'.
8659         * lib/math.in.h (_GL_NUM_UINT_WORDS etc.): Likewise.
8660         * lib/spawn.in.h (_Restrict_arr_): Likewise.
8661         * lib/regex.h (_Restrict_arr_): Likewise.
8662         * lib/regex_internal.h (re_token_t): Likewise.
8663         * lib/regexec.c (check_node_accept_bytes): Likewise.
8664         * tests/test-printf-posix.c (func1, func2, func3, func4): Likewise.
8665
8666 2011-10-18  Eric Blake  <eblake@redhat.com>
8667
8668         posix_openpt: new module
8669         * modules/posix_openpt: New module.
8670         * m4/posix_openpt.m4: New file.
8671         * lib/posix_openpt.c: Likewise.
8672         * m4/stdlib_h.m4 (gl_STDLIB_H): Check for decl.
8673         (gl_STDLIB_H_DEFAULTS): Set defaults.
8674         * modules/stdlib (Makefile.am): Substitute macros.
8675         * lib/stdlib.in.h (posix_openpt): Declare.
8676         * MODULES.html.sh (systems lacking POSIX:2008): Document it.
8677         * doc/posix-functions/posix_openpt.texi (posix_openpt): Likewise.
8678         * modules/posix_openpt-tests: New test module.
8679         * tests/test-posix_openpt.c: New test.
8680
8681 2011-10-15  Bruno Haible  <bruno@clisp.org>
8682
8683         xstrtoll: Fix compilation failure.
8684         * lib/xstrtol.c (ULLONG_MAX, LLONG_MAX, LLONG_MIN): New macros, taken
8685         from lib/strtol.c.
8686         * doc/posix-headers/limits.texi: Mention missing numerical limits on
8687         some platforms.
8688         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
8689
8690 2011-10-15  Bruno Haible  <bruno@clisp.org>
8691
8692         vasnprintf: Optimize bit search operation.
8693         * lib/vasnprintf.c (divide): Use optimizations from integer_length.c.
8694         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require
8695         gl_DOUBLE_EXPONENT_LOCATION.
8696         * modules/vasnprintf (Files): Add m4/exponentd.m4.
8697         * modules/unistdio/u8-vasnprintf (Files): Likewise.
8698         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
8699         * modules/unistdio/u16-vasnprintf (Files): Likewise.
8700         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
8701         * modules/unistdio/u32-vasnprintf (Files): Likewise.
8702         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
8703         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
8704         * m4/isnand.m4 (gl_PREREQ_ISNAND): Use AC_REQUIRE.
8705
8706 2011-10-15  Bruno Haible  <bruno@clisp.org>
8707
8708         vasnprintf: Fix comments.
8709         * lib/vasnprintf.c (decode_long_double, decode_double): Fix comments.
8710
8711 2011-10-14  Bruno Haible  <bruno@clisp.org>
8712
8713         Tests for module 'integer_length_ll'.
8714         * modules/integer_length_ll-tests: New file.
8715         * tests/test-integer_length_ll.c: New file.
8716
8717         New module 'integer_length_ll'.
8718         * lib/integer_length_ll.c: New file.
8719         * modules/integer_length_ll: New file.
8720
8721 2011-10-14  Bruno Haible  <bruno@clisp.org>
8722
8723         Tests for module 'integer_length_l'.
8724         * modules/integer_length_l-tests: New file.
8725         * tests/test-integer_length_l.c: New file.
8726
8727         New module 'integer_length_l'.
8728         * lib/integer_length_l.c: New file.
8729         * modules/integer_length_l: New file.
8730
8731 2011-10-14  Bruno Haible  <bruno@clisp.org>
8732
8733         Tests for module 'integer_length'.
8734         * modules/integer_length-tests: New file.
8735         * tests/test-integer_length.c: New file.
8736
8737         New module 'integer_length'.
8738         * lib/integer_length.h: New file.
8739         * lib/integer_length.c: New file.
8740         * modules/integer_length: New file.
8741
8742 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8743
8744         popen: Fix dependency conditions.
8745         * modules/popen (Depends-on, configure.ac): Fix shell syntax error.
8746
8747 2011-10-14  Daniel Richard G.  <skunk@iskunk.org>  (tiny change)
8748
8749         perror: Fix autoconf test.
8750         * m4/perror.m4 (gl_FUNC_PERROR): In the test program, include
8751         <stdlib.h> and <string.h>.
8752
8753 2011-10-14  Bruno Haible  <bruno@clisp.org>
8754
8755         ffsl: Optimize on 64-bit platforms.
8756         * lib/ffsl.h (FUNC): Omit a test from the last loop round. Do loop
8757         unrolling.
8758
8759 2011-10-13  Bruno Haible  <bruno@clisp.org>
8760
8761         ffsl: Optimize on 32-bit platforms.
8762         * lib/ffsl.h (FUNC): If TYPE has the same representation as 'int', just
8763         use ffs() without a loop.
8764
8765         ffsl, ffsll: Optimize for GCC.
8766         * lib/ffsl.h (FUNC): Use GCC_BUILTIN if defined.
8767         * lib/ffsl.c (GCC_BUILTIN): New macro.
8768         * lib/ffsll.c (GCC_BUILTIN): Likewise.
8769
8770 2011-10-13  Bruno Haible  <bruno@clisp.org>
8771
8772         ffs, bcopy, memset: Support symbol renaming via config.h.
8773         * lib/ffs.c: Include <config.h>.
8774         * lib/bcopy.c: Likewise.
8775         * lib/memset.c: Likewise.
8776
8777 2011-10-10  Bruno Haible  <bruno@clisp.org>
8778
8779         atanl: Simplify for platforms where 'long double' == 'double'.
8780         * lib/atanl.c (atanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8781         alternative implementation.
8782         * m4/atanl.m4 (gl_FUNC_ATANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8783         Determine ATANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8784         * modules/atanl (Depends-on): Add atan. Update conditions.
8785
8786 2011-10-10  Bruno Haible  <bruno@clisp.org>
8787
8788         acosl: Simplify for platforms where 'long double' == 'double'.
8789         * lib/acosl.c (acosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8790         alternative implementation.
8791         * m4/acosl.m4 (gl_FUNC_ACOSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8792         Determine ACOSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8793         * modules/acosl (Depends-on): Add acos. Update conditions.
8794
8795 2011-10-10  Bruno Haible  <bruno@clisp.org>
8796
8797         asinl: Simplify for platforms where 'long double' == 'double'.
8798         * lib/asinl.c (asinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8799         alternative implementation.
8800         * m4/asinl.m4 (gl_FUNC_ASINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8801         Determine ASINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8802         * modules/asinl (Depends-on): Add asin. Update conditions.
8803
8804 2011-10-10  Bruno Haible  <bruno@clisp.org>
8805
8806         tanl: Simplify for platforms where 'long double' == 'double'.
8807         * lib/tanl.c (tanl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8808         implementation.
8809         * m4/tanl.m4 (gl_FUNC_TANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8810         Determine TANL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8811         * modules/tanl (Depends-on): Add tan. Update conditions.
8812         (configure.ac): Don't compile trigl.c if
8813         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8814
8815 2011-10-10  Bruno Haible  <bruno@clisp.org>
8816
8817         cosl: Simplify for platforms where 'long double' == 'double'.
8818         * lib/cosl.c (cosl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8819         implementation.
8820         * m4/cosl.m4 (gl_FUNC_COSL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8821         Determine COSL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8822         * modules/cosl (Depends-on): Add cos. Update conditions.
8823         (configure.ac): Don't compile sincosl.c and trigl.c if
8824         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8825
8826 2011-10-10  Bruno Haible  <bruno@clisp.org>
8827
8828         sinl: Simplify for platforms where 'long double' == 'double'.
8829         * lib/sinl.c (sinl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8830         implementation.
8831         * m4/sinl.m4 (gl_FUNC_SINL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8832         Determine SINL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8833         * modules/sinl (Depends-on): Add sin. Update conditions.
8834         (configure.ac): Don't compile sincosl.c and trigl.c if
8835         HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8836
8837 2011-10-10  Bruno Haible  <bruno@clisp.org>
8838
8839         logl: Simplify for platforms where 'long double' == 'double'.
8840         * lib/logl.c (logl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8841         implementation.
8842         * m4/logl.m4 (gl_FUNC_LOGL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8843         Determine LOGL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8844         * modules/logl (Depends-on): Add log. Update conditions.
8845
8846 2011-10-10  Bruno Haible  <bruno@clisp.org>
8847
8848         expl: Simplify for platforms where 'long double' == 'double'.
8849         * lib/expl.c (expl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New alternative
8850         implementation.
8851         * m4/expl.m4 (gl_FUNC_EXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8852         Determine EXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8853         * modules/expl (Depends-on): Add exp. Update conditions.
8854
8855 2011-10-10  Bruno Haible  <bruno@clisp.org>
8856
8857         sqrtl: Simplify for platforms where 'long double' == 'double'.
8858         * lib/sqrtl.c (sqrtl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8859         alternative implementation.
8860         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8861         Determine SQRTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8862         * modules/sqrtl (Depends-on): Update conditions.
8863
8864 2011-10-10  Bruno Haible  <bruno@clisp.org>
8865
8866         ldexpl: Simplify for platforms where 'long double' == 'double'.
8867         * lib/ldexpl.c (ldexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8868         alternative implementation.
8869         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8870         Determine LDEXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8871         * modules/ldexpl (Depends-on): Add ldexp. Update conditions.
8872
8873 2011-10-10  Tom G. Christensen  <tgc@jupiterrise.com>  (tiny change)
8874
8875         ffsll: set correct witness
8876         * modules/ffsll (configure.ac): Fix typo.
8877
8878 2011-10-10  Bruno Haible  <bruno@clisp.org>
8879
8880         printf-frexpl: Simplify for platforms where 'long double' == 'double'.
8881         * lib/printf-frexpl.c: Include <config.h>.
8882         (printf_frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8883         * lib/printf-frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a
8884         second time.
8885         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Require
8886         gl_LONG_DOUBLE_VS_DOUBLE.
8887         * modules/printf-frexpl (Depends-on): Add printf-frexp. Update
8888         conditions.
8889
8890 2011-10-10  Bruno Haible  <bruno@clisp.org>
8891
8892         frexpl: Simplify for platforms where 'long double' == 'double'.
8893         * lib/frexpl.c: Include <config.h>.
8894         (frexpl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8895         * lib/frexp.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8896         time.
8897         * m4/frexpl.m4 (gl_FUNC_FREXPL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8898         Determine FREXPL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8899         (gl_FUNC_FREXPL_NO_LIBM): Require gl_LONG_DOUBLE_VS_DOUBLE.
8900         * modules/frexpl (Depends-on): Add frexp. Update conditions.
8901         * modules/frexpl-nolibm (Depends-on): Add frexp-nolibm. Update
8902         conditions.
8903
8904 2011-10-10  Jim Meyering  <meyering@redhat.com>
8905
8906         test-renameat: don't leave behind a temporary file
8907         * tests/test-renameat.c (main): Don't forget to remove a temporary file.
8908           ERROR: files left in build directory after distclean:
8909           ./gltests/test-renameat.too
8910           make[1]: *** [distcleancheck] Error 1
8911         Reported by Tom G. Christensen.
8912
8913 2011-10-09  Bruno Haible  <bruno@clisp.org>
8914
8915         rint: Determine RINT_LIBM correctly on AIX 7.
8916         * m4/mathfunc.m4 (gl_MATHFUNC): Try to invoke the function also
8917         directly, not only through a function pointer. Also accept an optional
8918         4th argument with extra code.
8919         * m4/rint.m4 (gl_FUNC_RINT): Pass an extra code that gets turned into a
8920         rintf() call by gcc when optimizing.
8921
8922         mathfunc.m4: Refactor.
8923         * m4/mathfunc.m4 (gl_MATHFUNC): Assign the argument list to a temporary
8924         m4 variable.
8925
8926 2011-10-09  Bruno Haible  <bruno@clisp.org>
8927
8928         rintl: Simplify for platforms where 'long double' == 'double'.
8929         * lib/rintl.c: Include <config.h>.
8930         (rintl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8931         * lib/rint.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8932         time.
8933         * m4/rintl.m4 (gl_FUNC_RINTL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8934         Determine RINTL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8935         * modules/rintl (Depends-on): Add rint. Update conditions.
8936
8937 2011-10-09  Bruno Haible  <bruno@clisp.org>
8938
8939         roundl: Simplify for platforms where 'long double' == 'double'.
8940         * lib/roundl.c: Include <config.h>.
8941         (roundl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8942         * lib/round.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8943         time.
8944         * m4/roundl.m4 (gl_FUNC_ROUNDL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8945         Determine ROUNDL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8946         * modules/roundl (Depends-on): Add round. Update conditions.
8947
8948 2011-10-09  Bruno Haible  <bruno@clisp.org>
8949
8950         truncl: Simplify for platforms where 'long double' == 'double'.
8951         * lib/truncl.c: Include <config.h>.
8952         (truncl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8953         * lib/trunc.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8954         time.
8955         * m4/truncl.m4 (gl_FUNC_TRUNCL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8956         Determine TRUNCL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8957         * modules/truncl (Depends-on): Add trunc. Update conditions.
8958
8959 2011-10-09  Bruno Haible  <bruno@clisp.org>
8960
8961         ceill: Simplify for platforms where 'long double' == 'double'.
8962         * lib/ceill.c: Include <config.h>.
8963         (ceill) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8964         * lib/ceil.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8965         time.
8966         * m4/ceill.m4 (gl_FUNC_CEILL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8967         Determine CEILL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8968         * modules/ceill (Depends-on): Add ceil. Update conditions.
8969
8970 2011-10-09  Bruno Haible  <bruno@clisp.org>
8971
8972         floorl: Simplify for platforms where 'long double' == 'double'.
8973         * lib/floorl.c: Include <config.h>.
8974         (floorl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New function.
8975         * lib/floor.c [!USE_LONG_DOUBLE]: Don't include <config.h> a second
8976         time.
8977         * m4/floorl.m4 (gl_FUNC_FLOORL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8978         Determine FLOORL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8979         * modules/floorl (Depends-on): Add floor. Update conditions.
8980
8981 2011-10-09  Bruno Haible  <bruno@clisp.org>
8982
8983         rint: Fix ordering constraints.
8984         * m4/rint.m4 (gl_FUNC_RINT): Require gl_MATH_H_DEFAULTS.
8985         * m4/rintf.m4 (gl_FUNC_RINTF): Likewise.
8986         * m4/rintl.m4 (gl_FUNC_RINTL): Likewise.
8987
8988 2011-10-09  Bruno Haible  <bruno@clisp.org>
8989
8990         copysignl: Simplify for platforms where 'long double' == 'double'.
8991         * lib/copysignl.c (copysignl) [HAVE_SAME_LONG_DOUBLE_AS_DOUBLE]: New
8992         alternative.
8993         * m4/copysignl.m4 (gl_FUNC_COPYSIGNL): Require gl_LONG_DOUBLE_VS_DOUBLE.
8994         Determine COPYSIGNL_LIBM according to HAVE_SAME_LONG_DOUBLE_AS_DOUBLE.
8995         * modules/copysignl (Depends-on): Add copysign. Update conditions.
8996
8997 2011-10-09  Bruno Haible  <bruno@clisp.org>
8998
8999         Tests for module 'rintl'.
9000         * modules/rintl-tests: New file.
9001         * tests/test-rintl.c: New file.
9002
9003         New module 'rintl'.
9004         * lib/math.in.h (rintl): New declaration.
9005         * lib/rintl.c: New file.
9006         * m4/rintl.m4: New file.
9007         * m4/math_h.m4 (gl_MATH_H): Test whether rintl is declared.
9008         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTL, HAVE_RINTL.
9009         * modules/math (Makefile.am): Substitute GNULIB_RINTL, HAVE_RINTL.
9010         * modules/rintl: New file.
9011         * tests/test-math-c++.cc: Check the declaration of rintl.
9012         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9013         $(RINTL_LIBM). Needed on IRIX 6.5 with cc.
9014         * doc/posix-functions/rintl.texi: Mention the new module.
9015
9016 2011-10-09  Bruno Haible  <bruno@clisp.org>
9017
9018         Tests for module 'rintf'.
9019         * modules/rintf-tests: New file.
9020         * tests/test-rintf.c: New file.
9021
9022         New module 'rintf'.
9023         * lib/math.in.h (rintf): New declaration.
9024         * lib/rintf.c: New file.
9025         * m4/rintf.m4: New file.
9026         * m4/math_h.m4 (gl_MATH_H): Test whether rintf is declared.
9027         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINTF, HAVE_RINTF.
9028         * modules/math (Makefile.am): Substitute GNULIB_RINTF, HAVE_RINTF.
9029         * modules/rintf: New file.
9030         * tests/test-math-c++.cc: Check the declaration of rintf.
9031         * doc/posix-functions/rintf.texi: Mention the new module.
9032
9033 2011-10-09  Bruno Haible  <bruno@clisp.org>
9034
9035         rint: Support for MSVC.
9036         * lib/math.in.h (rint): New declaration.
9037         * lib/rint.c: New file.
9038         * m4/rint.m4: New file.
9039         * m4/math_h.m4 (gl_MATH_H): Test whether rint is declared.
9040         (gl_MATH_H_DEFAULTS): Initialize GNULIB_RINT, HAVE_RINT.
9041         * modules/math (Makefile.am): Substitute GNULIB_RINT, HAVE_RINT.
9042         * modules/rint (Description): Fix.
9043         (Files): Add lib/rint.c, m4/rint.m4.
9044         (Depends-on): Add math.
9045         (configure.ac): Invoke gl_FUNC_RINT, AC_LIBOBJ,
9046         gl_MATH_MODULE_INDICATOR.
9047         * tests/test-math-c++.cc: Check the declaration of rint.
9048         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9049         $(RINT_LIBM). Needed on IRIX 6.5 with cc.
9050         * doc/posix-functions/rint.texi: Mention the replacement provided by
9051         the module.
9052
9053         rint tests: More tests.
9054         * tests/test-rint.c: Include <float.h>, <stdio.h>, isnand-nolibm.h,
9055         minus-zero.h, infinity.h, nan.h.
9056         (main): Skip the test if the current rounding mode is not standard. Add
9057         tests for negative numbers, minus zero, infinity, NaN.
9058         * modules/rint-tests (Files): Add tests/minus-zero.h, tests/infinity.h,
9059         tests/nan.h.
9060         (Depends-on): Add isnand-nolibm.
9061
9062 2011-10-09  Bruno Haible  <bruno@clisp.org>
9063
9064         Tests for module 'copysignl'.
9065         * modules/copysignl-tests: New file.
9066         * tests/test-copysignl.c: New file.
9067
9068         New module 'copysignl'.
9069         * lib/math.in.h (copysignl): New declaration.
9070         * lib/copysignl.c: New file.
9071         * m4/copysignl.m4: New file.
9072         * m4/math_h.m4 (gl_MATH_H): Test whether copysignl is declared.
9073         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNL, HAVE_COPYSIGNL.
9074         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNL,
9075         HAVE_COPYSIGNL.
9076         * modules/copysignl: New file.
9077         * tests/test-math-c++.cc: Check the declaration of copysignl.
9078         * modules/math-c++-tests (Makefile.am): Link test-math-c++ against
9079         $(COPYSIGNL_LIBM). Needed on IRIX 6.5 with cc.
9080         * doc/posix-functions/copysignl.texi: Mention the new module.
9081
9082 2011-10-09  Bruno Haible  <bruno@clisp.org>
9083
9084         Tests for module 'copysignf'.
9085         * modules/copysignf-tests: New file.
9086         * tests/test-copysignf.c: New file.
9087
9088         New module 'copysignf'.
9089         * lib/math.in.h (copysignf): New declaration.
9090         * lib/copysignf.c: New file.
9091         * m4/copysignf.m4: New file.
9092         * m4/math_h.m4 (gl_MATH_H): Test whether copysignf is declared.
9093         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGNF, HAVE_COPYSIGNF.
9094         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGNF,
9095         HAVE_COPYSIGNF.
9096         * modules/copysignf: New file.
9097         * tests/test-math-c++.cc: Check the declaration of copysignf.
9098         * doc/posix-functions/copysignf.texi: Mention the new module.
9099
9100 2011-10-09  Bruno Haible  <bruno@clisp.org>
9101
9102         Ensure that HAVE_* variables are set to 1 before they are set to 0.
9103         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Require gl_DIRENT_H_DEFAULTS.
9104         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS.
9105         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
9106         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Require
9107         gl_SIGNAL_H_DEFAULTS.
9108
9109 2011-10-09  Bruno Haible  <bruno@clisp.org>
9110
9111         poll: Make macro safer.
9112         * m4/poll.m4 (gl_FUNC_POLL): Complain if, after invoking gl_POLL_H,
9113         ac_cv_header_poll_h is not set.
9114
9115 2011-10-09  Bruno Haible  <bruno@clisp.org>
9116
9117         copysign: Provide replacement.
9118         * lib/math.in.h (copysign): New declaration.
9119         * lib/copysign.c: New file.
9120         * m4/copysign.m4: New file.
9121         * m4/math_h.m4 (gl_MATH_H): Test whether copysign is declared.
9122         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COPYSIGN, HAVE_COPYSIGN.
9123         * modules/math (Makefile.am): Substitute GNULIB_COPYSIGN,
9124         HAVE_COPYSIGN.
9125         * modules/copysign (Description): Clarify.
9126         (Files): Add lib/copysign.c, m4/copysign.m4.
9127         (Depends-on): Add math, signbit.
9128         (configure.ac): Invoke gl_FUNC_COPYSIGN, AC_LIBOBJ,
9129         gl_MATH_MODULE_INDICATOR.
9130         * tests/test-math-c++.cc: Check the declaration of copysign.
9131         * doc/posix-functions/copysign.texi: Mention the effects of the module
9132         on Minix and MSVC.
9133
9134 2011-10-09  Bruno Haible  <bruno@clisp.org>
9135
9136         isinf: Ensure macro on AIX 5.1.
9137         * m4/isinf.m4 (gl_ISINF): Also test whether isinf is defined as a
9138         macro.
9139         * doc/posix-functions/isinf.texi: Mention also AIX 5.1 as deficient.
9140
9141 2011-10-09  Bruno Haible  <bruno@clisp.org>
9142
9143         *printf-posix tests: Fix for platforms where 'long double' == 'double'.
9144         * modules/snprintf-posix-tests (configure.ac): Require
9145         gl_LONG_DOUBLE_VS_DOUBLE.
9146         * modules/sprintf-posix-tests (configure.ac): Likewise.
9147         * modules/vasnprintf-posix-tests (configure.ac): Likewise.
9148         * modules/vasprintf-posix-tests (configure.ac): Likewise.
9149         * modules/vsnprintf-posix-tests (configure.ac): Likewise.
9150         * modules/vsprintf-posix-tests (configure.ac): Likewise.
9151         * tests/test-snprintf-posix.h (test_function): Avoid 80-bit long double
9152         tests on platforms where 'long double' is the same as 'double'.
9153         * tests/test-sprintf-posix.h (test_function): Likewise.
9154         * tests/test-vasnprintf-posix.c (test_function): Likewise.
9155         * tests/test-vasprintf-posix.c (test_function): Likewise.
9156
9157         *printf: Fix for platforms where 'long double' == 'double'.
9158         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
9159         gl_LONG_DOUBLE_VS_DOUBLE. Don't blindly assume 80-bit 'long double'.
9160         * modules/dprintf-posix (Files): Add m4/math_h.m4.
9161         * modules/fprintf-posix (Files): Likewise.
9162         * modules/obstack-printf-posix (Files): Likewise.
9163         * modules/snprintf-posix (Files): Likewise.
9164         * modules/sprintf-posix (Files): Likewise.
9165         * modules/vasnprintf (Files): Likewise.
9166         * modules/vasnprintf-posix (Files): Likewise.
9167         * modules/vasprintf-posix (Files): Likewise.
9168         * modules/vdprintf-posix (Files): Likewise.
9169         * modules/vfprintf-posix (Files): Likewise.
9170         * modules/vsnprintf-posix (Files): Likewise.
9171         * modules/vsprintf-posix (Files): Likewise.
9172         * modules/unistdio/u8-vasnprintf (Files): Likewise.
9173         * modules/unistdio/u8-u8-vasnprintf (Files): Likewise.
9174         * modules/unistdio/u16-vasnprintf (Files): Likewise.
9175         * modules/unistdio/u16-u16-vasnprintf (Files): Likewise.
9176         * modules/unistdio/u32-vasnprintf (Files): Likewise.
9177         * modules/unistdio/u32-u32-vasnprintf (Files): Likewise.
9178         * modules/unistdio/ulc-vasnprintf (Files): Likewise.
9179
9180         isnanl[-nolibm]: Fix for platforms where 'long double' == 'double'.
9181         * lib/isnan.c (rpl_isnanl): Don't blindly assume 80-bit 'long double'.
9182         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Require gl_LONG_DOUBLE_VS_DOUBLE.
9183         (gl_FUNC_ISNANL_WORKS): Likewise. Don't blindly assume 80-bit
9184         'long double'.
9185         * modules/isnanl-nolibm (Files): Add m4/math_h.m4.
9186
9187         isinf: Fix for platforms where 'long double' == 'double'.
9188         * m4/isinf.m4 (gl_ISINFL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9189         Don't blindly assume 80-bit 'long double'.
9190
9191         isfinite: Fix for platforms where 'long double' == 'double'.
9192         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Require gl_LONG_DOUBLE_VS_DOUBLE.
9193         Don't blindly assume 80-bit 'long double'.
9194
9195         isfinite, isinf, isnan tests: Avoid syntax error on MSVC 9.
9196         * m4/math_h.m4 (gl_LONG_DOUBLE_VS_DOUBLE): New macro.
9197         * modules/isfinite-tests (configure.ac): Require
9198         gl_LONG_DOUBLE_VS_DOUBLE.
9199         * modules/isinf-tests (configure.ac): Likewise.
9200         * modules/isnan-tests (configure.ac): Likewise.
9201         * modules/isnanl-tests (configure.ac): Likewise.
9202         * modules/isnanl-nolibm-tests (configure.ac): Likewise.
9203         * tests/test-isfinite.c (test_isfinitel): Avoid 80-bit long double
9204         tests on platforms where 'long double' is the same as 'double'.
9205         * tests/test-isinf.c (test_isinfl): Likewise.
9206         * tests/test-isnan.c (test_long_double): Likewise.
9207         * tests/test-isnanl.h (main): Likewise.
9208
9209 2011-10-08  Bruno Haible  <bruno@clisp.org>
9210
9211         Tests for module 'tanhf'.
9212         * modules/tanhf-tests: New file.
9213         * tests/test-tanhf.c: New file.
9214
9215         New module 'tanhf'.
9216         * lib/math.in.h (tanhf): New declaration.
9217         * lib/tanhf.c: New file.
9218         * m4/tanhf.m4: New file.
9219         * m4/math_h.m4 (gl_MATH_H): Test whether tanhf is declared.
9220         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANHF, HAVE_TANHF.
9221         * modules/math (Makefile.am): Substitute GNULIB_TANHF, HAVE_TANHF.
9222         * modules/tanhf: New file.
9223         * tests/test-math-c++.cc: Check the declaration of tanhf.
9224         * doc/posix-functions/tanhf.texi: Mention the new module.
9225
9226         tanh: Use a .m4 file.
9227         * m4/tanh.m4: New file.
9228         * modules/tanh (Files): Add it.
9229         (configure.ac): Just invoke gl_FUNC_TANH.
9230
9231 2011-10-08  Bruno Haible  <bruno@clisp.org>
9232
9233         Tests for module 'coshf'.
9234         * modules/coshf-tests: New file.
9235         * tests/test-coshf.c: New file.
9236
9237         New module 'coshf'.
9238         * lib/math.in.h (coshf): New declaration.
9239         * lib/coshf.c: New file.
9240         * m4/coshf.m4: New file.
9241         * m4/math_h.m4 (gl_MATH_H): Test whether coshf is declared.
9242         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSHF, HAVE_COSHF.
9243         * modules/math (Makefile.am): Substitute GNULIB_COSHF, HAVE_COSHF.
9244         * modules/coshf: New file.
9245         * tests/test-math-c++.cc: Check the declaration of coshf.
9246         * doc/posix-functions/coshf.texi: Mention the new module.
9247
9248         cosh: Use a .m4 file.
9249         * m4/cosh.m4: New file.
9250         * modules/cosh (Files): Add it.
9251         (configure.ac): Just invoke gl_FUNC_COSH.
9252
9253 2011-10-08  Bruno Haible  <bruno@clisp.org>
9254
9255         Tests for module 'sinhf'.
9256         * modules/sinhf-tests: New file.
9257         * tests/test-sinhf.c: New file.
9258
9259         New module 'sinhf'.
9260         * lib/math.in.h (sinhf): New declaration.
9261         * lib/sinhf.c: New file.
9262         * m4/sinhf.m4: New file.
9263         * m4/math_h.m4 (gl_MATH_H): Test whether sinhf is declared.
9264         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINHF, HAVE_SINHF.
9265         * modules/math (Makefile.am): Substitute GNULIB_SINHF, HAVE_SINHF.
9266         * modules/sinhf: New file.
9267         * tests/test-math-c++.cc: Check the declaration of sinhf.
9268         * doc/posix-functions/sinhf.texi: Mention the new module.
9269
9270         sinh: Use a .m4 file.
9271         * m4/sinh.m4: New file.
9272         * modules/sinh (Files): Add it.
9273         (configure.ac): Just invoke gl_FUNC_SINH.
9274
9275 2011-10-08  Bruno Haible  <bruno@clisp.org>
9276
9277         Tests for module 'atan2f'.
9278         * modules/atan2f-tests: New file.
9279         * tests/test-atan2f.c: New file.
9280
9281         New module 'atan2f'.
9282         * lib/math.in.h (atan2f): New declaration.
9283         * lib/atan2f.c: New file.
9284         * m4/atan2f.m4: New file.
9285         * m4/math_h.m4 (gl_MATH_H): Test whether atan2f is declared.
9286         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATAN2F, HAVE_ATAN2F.
9287         * modules/math (Makefile.am): Substitute GNULIB_ATAN2F, HAVE_ATAN2F.
9288         * modules/atan2f: New file.
9289         * tests/test-math-c++.cc: Check the declaration of atan2f.
9290         * doc/posix-functions/atan2f.texi: Mention the new module.
9291
9292         atan2: Use a .m4 file.
9293         * m4/atan2.m4: New file.
9294         * modules/atan2 (Files): Add it.
9295         (configure.ac): Just invoke gl_FUNC_ATAN2.
9296
9297 2011-10-08  Bruno Haible  <bruno@clisp.org>
9298
9299         Tests for module 'atanf'.
9300         * modules/atanf-tests: New file.
9301         * tests/test-atanf.c: New file.
9302
9303         New module 'atanf'.
9304         * lib/math.in.h (atanf): New declaration.
9305         * lib/atanf.c: New file.
9306         * m4/atanf.m4: New file.
9307         * m4/math_h.m4 (gl_MATH_H): Test whether atanf is declared.
9308         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ATANF, HAVE_ATANF.
9309         * modules/math (Makefile.am): Substitute GNULIB_ATANF, HAVE_ATANF.
9310         * modules/atanf: New file.
9311         * tests/test-math-c++.cc: Check the declaration of atanf.
9312         * doc/posix-functions/atanf.texi: Mention the new module.
9313
9314         atan: Use a .m4 file.
9315         * m4/atan.m4: New file.
9316         * modules/atan (Files): Add it.
9317         (configure.ac): Just invoke gl_FUNC_ATAN.
9318
9319 2011-10-08  Bruno Haible  <bruno@clisp.org>
9320
9321         Tests for module 'acosf'.
9322         * modules/acosf-tests: New file.
9323         * tests/test-acosf.c: New file.
9324
9325         New module 'acosf'.
9326         * lib/math.in.h (acosf): New declaration.
9327         * lib/acosf.c: New file.
9328         * m4/acosf.m4: New file.
9329         * m4/math_h.m4 (gl_MATH_H): Test whether acosf is declared.
9330         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ACOSF, HAVE_ACOSF.
9331         * modules/math (Makefile.am): Substitute GNULIB_ACOSF, HAVE_ACOSF.
9332         * modules/acosf: New file.
9333         * tests/test-math-c++.cc: Check the declaration of acosf.
9334         * doc/posix-functions/acosf.texi: Mention the new module.
9335
9336         acos: Use a .m4 file.
9337         * m4/acos.m4: New file.
9338         * modules/acos (Files): Add it.
9339         (configure.ac): Just invoke gl_FUNC_ACOS.
9340
9341 2011-10-08  Bruno Haible  <bruno@clisp.org>
9342
9343         Tests for module 'asinf'.
9344         * modules/asinf-tests: New file.
9345         * tests/test-asinf.c: New file.
9346
9347         New module 'asinf'.
9348         * lib/math.in.h (asinf): New declaration.
9349         * lib/asinf.c: New file.
9350         * m4/asinf.m4: New file.
9351         * m4/math_h.m4 (gl_MATH_H): Test whether asinf is declared.
9352         (gl_MATH_H_DEFAULTS): Initialize GNULIB_ASINF, HAVE_ASINF.
9353         * modules/math (Makefile.am): Substitute GNULIB_ASINF, HAVE_ASINF.
9354         * modules/asinf: New file.
9355         * tests/test-math-c++.cc: Check the declaration of asinf.
9356         * doc/posix-functions/asinf.texi: Mention the new module.
9357
9358         asin: Use a .m4 file.
9359         * m4/asin.m4: New file.
9360         * modules/asin (Files): Add it.
9361         (configure.ac): Just invoke gl_FUNC_ASIN.
9362
9363 2011-10-08  Bruno Haible  <bruno@clisp.org>
9364
9365         Tests for module 'tanf'.
9366         * modules/tanf-tests: New file.
9367         * tests/test-tanf.c: New file.
9368
9369         New module 'tanf'.
9370         * lib/math.in.h (tanf): New declaration.
9371         * lib/tanf.c: New file.
9372         * m4/tanf.m4: New file.
9373         * m4/math_h.m4 (gl_MATH_H): Test whether tanf is declared.
9374         (gl_MATH_H_DEFAULTS): Initialize GNULIB_TANF, HAVE_TANF.
9375         * modules/math (Makefile.am): Substitute GNULIB_TANF, HAVE_TANF.
9376         * modules/tanf: New file.
9377         * tests/test-math-c++.cc: Check the declaration of tanf.
9378         * doc/posix-functions/tanf.texi: Mention the new module.
9379
9380         tan: Use a .m4 file.
9381         * m4/tan.m4: New file.
9382         * modules/tan (Files): Add it.
9383         (configure.ac): Just invoke gl_FUNC_TAN.
9384
9385 2011-10-08  Bruno Haible  <bruno@clisp.org>
9386
9387         Tests for module 'cosf'.
9388         * modules/cosf-tests: New file.
9389         * tests/test-cosf.c: New file.
9390
9391         New module 'cosf'.
9392         * lib/math.in.h (cosf): New declaration.
9393         * lib/cosf.c: New file.
9394         * m4/cosf.m4: New file.
9395         * m4/math_h.m4 (gl_MATH_H): Test whether cosf is declared.
9396         (gl_MATH_H_DEFAULTS): Initialize GNULIB_COSF, HAVE_COSF.
9397         * modules/math (Makefile.am): Substitute GNULIB_COSF, HAVE_COSF.
9398         * modules/cosf: New file.
9399         * tests/test-math-c++.cc: Check the declaration of cosf.
9400         * doc/posix-functions/cosf.texi: Mention the new module.
9401
9402         cos: Use a .m4 file.
9403         * m4/cos.m4: New file.
9404         * modules/cos (Files): Add it.
9405         (configure.ac): Just invoke gl_FUNC_COS.
9406
9407 2011-10-08  Bruno Haible  <bruno@clisp.org>
9408
9409         Tests for module 'sinf'.
9410         * modules/sinf-tests: New file.
9411         * tests/test-sinf.c: New file.
9412
9413         New module 'sinf'.
9414         * lib/math.in.h (sinf): New declaration.
9415         * lib/sinf.c: New file.
9416         * m4/sinf.m4: New file.
9417         * m4/math_h.m4 (gl_MATH_H): Test whether sinf is declared.
9418         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SINF, HAVE_SINF.
9419         * modules/math (Makefile.am): Substitute GNULIB_SINF, HAVE_SINF.
9420         * modules/sinf: New file.
9421         * tests/test-math-c++.cc: Check the declaration of sinf.
9422         * doc/posix-functions/sinf.texi: Mention the new module.
9423
9424         sin: Use a .m4 file.
9425         * m4/sin.m4: New file.
9426         * modules/sin (Files): Add it.
9427         (configure.ac): Just invoke gl_FUNC_SIN.
9428
9429 2011-10-08  Bruno Haible  <bruno@clisp.org>
9430
9431         Tests for module 'powf'.
9432         * modules/powf-tests: New file.
9433         * tests/test-powf.c: New file.
9434
9435         New module 'powf'.
9436         * lib/math.in.h (powf): New declaration.
9437         * lib/powf.c: New file.
9438         * m4/powf.m4: New file.
9439         * m4/math_h.m4 (gl_MATH_H): Test whether powf is declared.
9440         (gl_MATH_H_DEFAULTS): Initialize GNULIB_POWF, HAVE_POWF.
9441         * modules/math (Makefile.am): Substitute GNULIB_POWF, HAVE_POWF.
9442         * modules/powf: New file.
9443         * tests/test-math-c++.cc: Check the declaration of powf.
9444         * doc/posix-functions/powf.texi: Mention the new module.
9445
9446         pow: Use a .m4 file.
9447         * m4/pow.m4: New file.
9448         * modules/pow (Files): Add it.
9449         (configure.ac): Just invoke gl_FUNC_POW.
9450
9451 2011-10-08  Bruno Haible  <bruno@clisp.org>
9452
9453         Tests for module 'log10f'.
9454         * modules/log10f-tests: New file.
9455         * tests/test-log10f.c: New file.
9456
9457         New module 'log10f'.
9458         * lib/math.in.h (log10f): New declaration.
9459         * lib/log10f.c: New file.
9460         * m4/log10f.m4: New file.
9461         * m4/math_h.m4 (gl_MATH_H): Test whether log10f is declared.
9462         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOG10F, HAVE_LOG10F.
9463         * modules/math (Makefile.am): Substitute GNULIB_LOG10F, HAVE_LOG10F.
9464         * modules/log10f: New file.
9465         * tests/test-math-c++.cc: Check the declaration of log10f.
9466         * doc/posix-functions/log10f.texi: Mention the new module.
9467
9468         log10: Use a .m4 file.
9469         * m4/log10.m4: New file.
9470         * modules/log10 (Files): Add it.
9471         (configure.ac): Just invoke gl_FUNC_LOG10.
9472
9473 2011-10-08  Bruno Haible  <bruno@clisp.org>
9474
9475         Tests for module 'logf'.
9476         * modules/logf-tests: New file.
9477         * tests/test-logf.c: New file.
9478
9479         New module 'logf'.
9480         * lib/math.in.h (logf): New declaration.
9481         * lib/logf.c: New file.
9482         * m4/logf.m4: New file.
9483         * m4/math_h.m4 (gl_MATH_H): Test whether logf is declared.
9484         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGF, HAVE_LOGF.
9485         * modules/math (Makefile.am): Substitute GNULIB_LOGF, HAVE_LOGF.
9486         * modules/logf: New file.
9487         * tests/test-math-c++.cc: Check the declaration of logf.
9488         * doc/posix-functions/logf.texi: Mention the new module.
9489
9490         log: Use a .m4 file.
9491         * m4/log.m4: New file.
9492         * modules/log (Files): Add it.
9493         (configure.ac): Just invoke gl_FUNC_LOG.
9494
9495 2011-10-08  Bruno Haible  <bruno@clisp.org>
9496
9497         Tests for module 'expf'.
9498         * modules/expf-tests: New file.
9499         * tests/test-expf.c: New file.
9500
9501         New module 'expf'.
9502         * lib/math.in.h (expf): New declaration.
9503         * lib/expf.c: New file.
9504         * m4/expf.m4: New file.
9505         * m4/math_h.m4 (gl_MATH_H): Test whether expf is declared.
9506         (gl_MATH_H_DEFAULTS): Initialize GNULIB_EXPF, HAVE_EXPF.
9507         * modules/math (Makefile.am): Substitute GNULIB_EXPF, HAVE_EXPF.
9508         * modules/expf: New file.
9509         * tests/test-math-c++.cc: Check the declaration of expf.
9510         * doc/posix-functions/expf.texi: Mention the new module.
9511
9512         exp: Use a .m4 file.
9513         * m4/exp.m4: New file.
9514         * modules/exp (Files): Add it.
9515         (configure.ac): Just invoke gl_FUNC_EXP.
9516
9517 2011-10-08  Bruno Haible  <bruno@clisp.org>
9518
9519         Tests for module 'sqrtf'.
9520         * modules/sqrtf-tests: New file.
9521         * tests/test-sqrtf.c: New file.
9522
9523         New module 'sqrtf'.
9524         * lib/math.in.h (sqrtf): New declaration.
9525         * lib/sqrtf.c: New file.
9526         * m4/sqrtf.m4: New file.
9527         * m4/math_h.m4 (gl_MATH_H): Test whether sqrtf is declared.
9528         (gl_MATH_H_DEFAULTS): Initialize GNULIB_SQRTF, HAVE_SQRTF.
9529         * modules/math (Makefile.am): Substitute GNULIB_SQRTF, HAVE_SQRTF.
9530         * modules/sqrtf: New file.
9531         * tests/test-math-c++.cc: Check the declaration of sqrtf.
9532         * doc/posix-functions/sqrtf.texi: Mention the new module.
9533
9534 2011-10-08  Bruno Haible  <bruno@clisp.org>
9535
9536         Tests: Avoid link failures w.r.t. libintl.
9537         * modules/faccessat-tests (Makefile.am): Link test-faccessat against
9538         $(LIBINTL).
9539         * modules/fchdir-tests (Makefile.am): Link test-fchdir against
9540         $(LIBINTL).
9541         * modules/getcwd-lgpl-tests (Makefile.am): Link test-getcwd-lgpl
9542         against $(LIBINTL).
9543         * modules/getcwd-tests (Makefile.am): Link test-getcwd against
9544         $(LIBINTL).
9545         * modules/openat-tests (Makefile.am): Link test-fchmodat against
9546         $(LIBINTL).
9547         * modules/stat-tests (Makefile.am): Link test-stat against $(LIBINTL).
9548
9549 2011-10-08  Bruno Haible  <bruno@clisp.org>
9550
9551         pow tests: Defeat compiler optimizations.
9552         * tests/test-pow.c (main): Assign arguments to x and y before use.
9553
9554 2011-10-08  Bruno Haible  <bruno@clisp.org>
9555
9556         gnulib-tool: Improve last commit.
9557         * gnulib-tool (func_modules_transitive_closure): Simplify code.
9558         (func_emit_autoconf_snippets): Instead of invoking func_acceptable,
9559         ignore dependencies that are not among the modules list.
9560
9561 2011-10-07  Paul Eggert  <eggert@cs.ucla.edu>
9562
9563         gnulib-tool: don't follow dependencies to avoided modules
9564         This fixes a bug that is related to the previous one.
9565         * gnulib-tool (func_modules_transitive_closure)
9566         (func_emit_autoconf_snippets):
9567         Check whether a dependency is acceptable before using it.
9568         (--extract-dependencies): Report an error if --avoid is also used,
9569         since this combination of options is not yet supported.
9570
9571         gnulib-tool: fix typo that broke Emacs on powerpc-apple-darwin9.8.0.
9572         Problem reported by Peter Dyballa in
9573         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=9696>.
9574         * gnulib-tool (func_emit_autoconf_snippets): Quote with "", not '',
9575         when echoing "$condition".
9576
9577 2011-10-07  Bruno Haible  <bruno@clisp.org>
9578
9579         Fix documentation about math functions on MacOS X.
9580         * doc/posix-functions/exp2.texi: Don't say the function is missing on
9581         MacOS X 10.5.
9582         * doc/posix-functions/fdim.texi: Likewise.
9583         * doc/posix-functions/feclearexcept.texi: Likewise.
9584         * doc/posix-functions/fegetenv.texi: Likewise.
9585         * doc/posix-functions/fegetround.texi: Likewise.
9586         * doc/posix-functions/feholdexcept.texi: Likewise.
9587         * doc/posix-functions/feraiseexcept.texi: Likewise.
9588         * doc/posix-functions/fesetenv.texi: Likewise.
9589         * doc/posix-functions/fesetround.texi: Likewise.
9590         * doc/posix-functions/fetestexcept.texi: Likewise.
9591         * doc/posix-functions/feupdateenv.texi: Likewise.
9592         * doc/posix-functions/fmax.texi: Likewise.
9593         * doc/posix-functions/fmin.texi: Likewise.
9594         * doc/posix-functions/log2.texi: Likewise.
9595         * doc/posix-functions/modff.texi: Likewise.
9596         * doc/posix-functions/nan.texi: Likewise.
9597         * doc/posix-functions/nanf.texi: Likewise.
9598         * doc/posix-functions/nextafterf.texi: Likewise.
9599         * doc/posix-functions/remquo.texi: Likewise.
9600
9601 2011-10-07  Bruno Haible  <bruno@clisp.org>
9602
9603         modff: Drop assumption about library that defines modff.
9604         * m4/modff.m4 (gl_FUNC_MODFF): Use gl_MATHFUNC macro instead of
9605         AC_CHECK_FUNCS.
9606         * modules/modff (Files): Add m4/mathfunc.m4.
9607
9608 2011-10-07  Bernhard Voelker  <mail@bernhard-voelker.de>
9609
9610         raise tests: Avoid a GCC warning.
9611         * tests/test-raise.c (handler): Use _Noreturn.
9612
9613 2011-10-07  Bruno Haible  <bruno@clisp.org>
9614
9615         Tests for module 'ldexpf'.
9616         * modules/ldexpf-tests: New file.
9617         * tests/test-ldexpf.c: New file.
9618
9619         New module 'ldexpf'.
9620         * lib/math.in.h (ldexpf): New declaration.
9621         * lib/ldexpf.c: New file.
9622         * m4/ldexpf.m4: New file.
9623         * m4/math_h.m4 (gl_MATH_H): Test whether ldexpf is declared.
9624         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LDEXPF, HAVE_LDEXPF.
9625         * modules/math (Makefile.am): Substitute GNULIB_LDEXPF, HAVE_LDEXPF.
9626         * modules/ldexpf: New file.
9627         * tests/test-math-c++.cc: Check the declaration of ldexpf.
9628         * doc/posix-functions/ldexpf.texi: Mention the new module.
9629
9630 2011-10-06  Bruno Haible  <bruno@clisp.org>
9631
9632         frexpf: Work around problems on IRIX and mingw.
9633         * lib/math.in.h (frexpf): Consider also REPLACE_FREXPF.
9634         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPF.
9635         * m4/frexpf.m4 (gl_FUNC_FREXPF_WORKS): New macro.
9636         (gl_FUNC_FREXPF): Invoke it. Set REPLACE_FREXPF.
9637         * modules/frexpf (Depends-on, configure.ac): Consider REPLACE_FREXPF.
9638         * modules/math (Makefile.am): Substitute REPLACE_FREXPF.
9639         * doc/posix-functions/frexpf.texi: Mention the IRIX and mingw problems.
9640
9641 2011-10-06  Bruno Haible  <bruno@clisp.org>
9642
9643         fabsf: Drop assumption about library that defines fabsf.
9644         * m4/fabsf.m4 (gl_FUNC_FABSF): Use gl_MATHFUNC macro instead of
9645         AC_CHECK_FUNCS.
9646         * modules/fabsf (Files): Add m4/mathfunc.m4.
9647
9648 2011-10-06  Bruno Haible  <bruno@clisp.org>
9649
9650         frexpf: Drop assumption about library that defines frexpf.
9651         * m4/mathfunc.m4 (gl_MATHFUNC): Support also the argument types
9652         'int *', 'float *', 'long double *', 'float', 'long double'.
9653         * m4/frexpf.m4 (gl_FUNC_FREXPF): Use gl_MATHFUNC macro instead of
9654         AC_CHECK_FUNCS.
9655         * modules/frexpf (Files): Add m4/mathfunc.m4.
9656
9657         Tests for module 'frexpf'.
9658         * modules/frexpf-tests: New file.
9659         * tests/test-frexpf.c: New file.
9660
9661         New module 'frexpf'.
9662         * lib/math.in.h (frexpf): New declaration.
9663         * lib/frexpf.c: New file.
9664         * m4/frexpf.m4: New file.
9665         * m4/math_h.m4 (gl_MATH_H): Test whether frexpf is declared.
9666         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPF, HAVE_FREXPF.
9667         * modules/math (Makefile.am): Substitute GNULIB_FREXPF, HAVE_FREXPF.
9668         * modules/frexpf: New file.
9669         * tests/test-math-c++.cc: Check the declaration of frexpf.
9670         * doc/posix-functions/frexpf.texi: Mention the new module.
9671
9672 2011-10-06  Bruno Haible  <bruno@clisp.org>
9673
9674         math: Sort function declarations of math.in.h.
9675         * lib/math.in.h (frexp, logb): Move declarations.
9676
9677 2011-10-05  Bruno Haible  <bruno@clisp.org>
9678
9679         Tests for module 'modff'.
9680         * modules/modff-tests: New file.
9681         * tests/test-modff.c: New file.
9682
9683         New module 'modff'.
9684         * lib/math.in.h (modff): New declaration.
9685         * lib/modff.c: New file.
9686         * m4/modff.m4: New file.
9687         * m4/math_h.m4 (gl_MATH_H): Test whether modff is declared.
9688         (gl_MATH_H_DEFAULTS): Initialize GNULIB_MODFF, HAVE_MODFF.
9689         * modules/math (Makefile.am): Substitute GNULIB_MODFF, HAVE_MODFF.
9690         * modules/modff: New file.
9691         * tests/test-math-c++.cc: Check the declaration of modff.
9692         * doc/posix-functions/modff.texi: Mention the new module.
9693
9694         modf tests: Make test sharper.
9695         * tests/test-modf.c (main): Strengthen upper bound.
9696
9697         modf: Use a .m4 file.
9698         * m4/modf.m4: New file.
9699         * modules/modf (Files): Add it.
9700         (configure.ac): Just invoke gl_FUNC_MODF.
9701
9702 2011-10-05  Bruno Haible  <bruno@clisp.org>
9703
9704         Tests for module 'fmodf'.
9705         * modules/fmodf-tests: New file.
9706         * tests/test-fmodf.c: New file.
9707
9708         New module 'fmodf'.
9709         * lib/math.in.h (fmodf): New declaration.
9710         * lib/fmodf.c: New file.
9711         * m4/fmodf.m4: New file.
9712         * m4/math_h.m4 (gl_MATH_H): Test whether fmodf is declared.
9713         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FMODF, HAVE_FMODF.
9714         * modules/math (Makefile.am): Substitute GNULIB_FMODF, HAVE_FMODF.
9715         * modules/fmodf: New file.
9716         * tests/test-math-c++.cc: Check the declaration of fmodf.
9717         * doc/posix-functions/fmodf.texi: Mention the new module.
9718
9719         fmod: Use a .m4 file.
9720         * m4/fmod.m4: New file.
9721         * modules/fmod (Files): Add it.
9722         (configure.ac): Just invoke gl_FUNC_FMOD.
9723
9724 2011-10-05  Bruno Haible  <bruno@clisp.org>
9725
9726         Tests for module 'fabsf'.
9727         * modules/fabsf-tests: New file.
9728         * tests/test-fabsf.c: New file.
9729
9730         New module 'fabsf'.
9731         * lib/math.in.h (fabsf): New declaration.
9732         * lib/fabsf.c: New file.
9733         * m4/fabsf.m4: New file.
9734         * m4/math_h.m4 (gl_MATH_H): Test whether fabsf is declared.
9735         (gl_MATH_H_DEFAULTS): Initialize GNULIB_FABSF, HAVE_FABSF.
9736         * modules/math (Makefile.am): Substitute GNULIB_FABSF, HAVE_FABSF.
9737         * modules/fabsf: New file.
9738         * tests/test-math-c++.cc: Check the declaration of fabsf.
9739         * doc/posix-functions/fabsf.texi: Mention the new module.
9740
9741         fabs: Use a .m4 file.
9742         * m4/fabs.m4: New file.
9743         * modules/fabs (Files): Add it.
9744         (configure.ac): Just invoke gl_FUNC_FABS.
9745
9746 2011-10-05  Jim Meyering  <meyering@redhat.com>
9747
9748         file-has-acl: revert both recent changes, 80af92af and 95f7c57f
9749         * lib/file-has-acl.c: While the 2011-10-03 change does fix the
9750         ls -lL regression introduced in coreutils-8.12, it does so at the
9751         cost of an additional stat call in the common case.  Besides, now
9752         that the kernel change that prompted commit 95f7c57f has been reverted
9753         (see https://bugzilla.redhat.com/show_bug.cgi?id=720325#c24)
9754         we have no use for commit 95f7c57f, "file-has-acl: use
9755         acl_extended_file_nofollow if available".
9756
9757 2011-10-03  Kamil Dudka  <kdudka@redhat.com>
9758
9759         file-has-acl: revert unintended change in behavior of ls -L
9760         * lib/file-has-acl.c (acl_extended_file_wrap): New function,
9761         derived from...
9762         (file_has_acl): ...code here.  Call it.
9763         This problem was introduced with 2011-07-22 commit 95f7c57f,
9764         "file-has-acl: use acl_extended_file_nofollow if available".
9765         See http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/28538
9766
9767 2011-10-03  Bruno Haible  <bruno@clisp.org>
9768
9769         poll: Avoid link errors on MSVC.
9770         * m4/poll.m4 (gl_FUNC_POLL): Determine LIB_POLL.
9771         * modules/poll (Depends-on): Add sockets.
9772         (Link): New section.
9773         * NEWS: Mention the change.
9774         * modules/poll-tests (Makefile.am): Link test-poll against $(LIB_POLL).
9775         * modules/poll-h-c++-tests (Makefile.am): Link test-poll-h-c++ against
9776         $(LIB_POLL) instead of $(LIBSOCKET).
9777
9778 2011-10-03  Bruno Haible  <bruno@clisp.org>
9779
9780         sys_select tests: Fix link error on MSVC 9.
9781         * modules/sys_select-c++-tests (Makefile.am): Link test-sys_select-c++
9782         with $(LIB_SELECT) instead of $(LIBSOCKET).
9783
9784 2011-10-03  Bruno Haible  <bruno@clisp.org>
9785
9786         sys_select: Fix compilation error on mingw.
9787         * lib/sys_select.in.h: On native Windows, include <io.h>.
9788
9789 2011-10-03  Bruno Haible  <bruno@clisp.org>
9790
9791         wmemset: Support for MSVC.
9792         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Use a small test program to test
9793         whether wmemset() exists.
9794
9795 2011-10-03  Bruno Haible  <bruno@clisp.org>
9796
9797         wmemmove: Support for MSVC.
9798         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Use a small test program to test
9799         whether wmemmove() exists.
9800
9801 2011-10-03  Bruno Haible  <bruno@clisp.org>
9802
9803         wmemcpy: Support for MSVC.
9804         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Use a small test program to test
9805         whether wmemcpy() exists.
9806
9807 2011-10-03  Bruno Haible  <bruno@clisp.org>
9808
9809         wmemcmp: Support for MSVC.
9810         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Use a small test program to test
9811         whether wmemcmp() exists.
9812
9813 2011-10-03  Bruno Haible  <bruno@clisp.org>
9814
9815         wmemchr: Support for MSVC.
9816         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Use a small test program to test
9817         whether wmemchr() exists.
9818
9819 2011-10-03  Bruno Haible  <bruno@clisp.org>
9820
9821         glthread/*, strsignal: Support for MSVC.
9822         * lib/glthread/cond.h: Define WIN32_LEAN_AND_MEAN, so as to avoid
9823         including <winsock.h> on MSVC 9.
9824         * lib/glthread/lock.h: Likewise.
9825         * lib/glthread/thread.h: Likewise.
9826         * lib/glthread/tls.h: Likewise.
9827         * lib/glthread/yield.h: Likewise.
9828         * lib/strsignal.c: Include <string.h> first. Don't include <unistd.h>
9829         if HAVE_UNISTD_H is false.
9830         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Test for <unistd.h>.
9831
9832 2011-10-03  Bruno Haible  <bruno@clisp.org>
9833
9834         nonblocking tests: Fix test failure on OpenBSD/SPARC64.
9835         * tests/test-nonblocking-socket.h (SOCKET_DATA_BLOCK_SIZE) [OpenBSD]:
9836         Set to 100000.
9837
9838 2011-10-03  Bruno Haible  <bruno@clisp.org>
9839
9840         acl: Fix specification.
9841         * lib/file-has-acl.c (file_has_acl): Fix specification.
9842
9843 2011-10-03  Bruno Haible  <bruno@clisp.org>
9844
9845         relocatable-lib[-lgpl]: Avoid expensive /proc access on Linux, Cygwin.
9846         * lib/relocatable.c (ENABLE_COSTLY_RELOCATABLE): New macro.
9847         (compute_curr_prefix, shared_library_fullname,
9848         find_shared_library_fullname, get_shared_library_fullname, relocate):
9849         Use it together with PIC && INSTALLDIR.
9850         Reported by <jojelino@gmail.com>
9851         via Charles Wilson <cygwin@cwilson.fastmail.fm>.
9852
9853 2011-10-01  Jim Meyering  <meyering@redhat.com>
9854
9855         maint.mk: adjust a release-related rule not to require use of gzip
9856         * top/maint.mk (writable-files): Don't hard-code use of .tar.gz.
9857         Instead, check each file in $(DIST_ARCHIVES).  This is better for
9858         projects that build only .tar.xz files.  Also fix an erroneous test.
9859
9860         test-linkat: don't leave behind a temporary file
9861         * tests/test-linkat.c (main): Don't forget to remove a temporary file.
9862         Otherwise, coreutils' "make distcheck" would fail with this:
9863           Only in /c/cu/tests/torture/coreutils/test/\
9864             coreutils-8.13.22-d5caf.old/gnulib-tests: test-linkat.too
9865           make[2]: *** [my-distcheck] Error 1
9866
9867         float, math: add omitted file
9868         * lib/itold.c: Add file, required for yesterday's float change.
9869
9870 2011-10-01  Bruno Haible  <bruno@clisp.org>
9871
9872         isinf: Fix for OpenBSD/x86.
9873         * m4/isinf.m4 (gl_ISINFL_WORKS): Also test the behaviour of isinf on
9874         pseudo-NaNs, pseudo-Infinities, and other non-IEEE values.
9875         * doc/posix-functions/isinf.texi: Mention the problem on OpenBSD/x86.
9876
9877 2011-10-01  Bruno Haible  <bruno@clisp.org>
9878
9879         isfinite: Fix syntax error in configure test.
9880         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Fix syntax error.
9881
9882         isfinite: Fix typo.
9883         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): When cross-compiling, set
9884         gl_cv_func_isfinitel_works, not gl_cv_func_isnanl_works.
9885
9886 2011-10-01  Bruno Haible  <bruno@clisp.org>
9887
9888         nonblocking tests: Fix test failure on Linux/IA-64.
9889         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/IA-64]:
9890         Set to 270000.
9891
9892 2011-10-01  Bruno Haible  <bruno@clisp.org>
9893
9894         mkfifoat tests: Fix a test failure on mingw.
9895         * tests/test-mkfifoat.c (main): Allow mkfifoat or test_mknodat to fail
9896         with error ENOSYS.
9897
9898 2011-09-30  Bruno Haible  <bruno@clisp.org>
9899
9900         float, math: Fix 'int' to 'long double' conversion on Linux/SPARC64.
9901         * m4/float_h.m4 (gl_FLOAT_H): Test conversion from 'int' to
9902         'long double'. Set REPLACE_ITOLD.
9903         * lib/float.in.h (_Qp_itoq, _gl_float_fix_itold): New declarations.
9904         * lib/math.in.h (_Qp_itoq, _gl_math_fix_itold): New declarations.
9905         * lib/itold.c: New file.
9906         * modules/float (Files): Add lib/itold.c.
9907         (configure.ac): When REPLACE_ITOLD is 1, arrange to compile itold.c.
9908         (Makefile.am): Substitute REPLACE_ITOLD.
9909         * modules/math (Depends-on): Add float.
9910         (Makefile.am): Substitute REPLACE_ITOLD.
9911         * doc/posix-headers/float.texi: Mention problem on Linux/SPARC64.
9912         * doc/posix-headers/math.texi: Likewise.
9913         * doc/posix-functions/logl.texi: Likewise.
9914
9915 2011-09-30  Bruno Haible  <bruno@clisp.org>
9916
9917         nonblocking tests: Fix test failure on Linux/SPARC (32-bit and 64-bit).
9918         * tests/test-nonblocking-pipe.h (PIPE_DATA_BLOCK_SIZE) [Linux/SPARC]:
9919         Set to 140000.
9920
9921 2011-09-30  Bruno Haible  <bruno@clisp.org>
9922
9923         gnulib-tool: Improve suggestion where to put gl_EARLY invocation.
9924         * gnulib-tool (func_import): If the configure.ac has an AC_PROG_CC_STDC
9925         invocation, say "right after AC_PROG_CC_STDC", not "right after
9926         AC_PROG_CC".
9927         Reported by Gary V. Vaughan <gary@gnu.org>.
9928
9929 2011-09-30  Bruno Haible  <bruno@clisp.org>
9930
9931         Centralize C99 requirement.
9932         * m4/gnulib-common.m4 (gl_PROG_CC_C99): New macro.
9933         * modules/stdarg (configure.ac-early): Invoke it instead of
9934         AC_PROG_CC_STDC.
9935         Reported by Gary V. Vaughan and Paul Eggert.
9936
9937 2011-09-29  Bruno Haible  <bruno@clisp.org>
9938
9939         float: Fix LDBL_MAX value on Linux/PowerPC.
9940         * m4/float_h.m4 (gl_FLOAT_H): Set FLOAT_H and REPLACE_FLOAT_LDBL also
9941         on Linux/PowerPC.
9942         * lib/float.in.h (LDBL_MAX): Redefine also on Linux/PowerPC.
9943         * lib/float.c (gl_LDBL_MAX): Also define on Linux/PowerPC.
9944         * doc/posix-headers/float.texi: Mention Linux/PowerPC as an affected
9945         platform.
9946         Reported by Andreas Metzler <ametzler@downhill.at.eu.org>.
9947
9948 2011-09-29  Bruno Haible  <bruno@clisp.org>
9949
9950         doc: Improve doc about gl_EARLY.
9951         * doc/gnulib-tool.texi (Initial import): Mention where to place an
9952         AC_PROG_CC_STDC invocation.
9953         Reported by Gary V. Vaughan <gary@gnu.org>.
9954
9955 2011-09-28  Bruno Haible  <bruno@clisp.org>
9956
9957         fgetc, fputc, fread, fwrite tests: Fix link error.
9958         * tests/test-fgetc.c (main): Don't invoke gl_msvc_inval_ensure_handler
9959         on non-MSVC platforms.
9960         * tests/test-fputc.c (main): Likewise.
9961         * tests/test-fread.c (main): Likewise.
9962         * tests/test-fwrite.c (main): Likewise.
9963         Reported by Jim Meyering.
9964
9965 2011-09-27  Bruno Haible  <bruno@clisp.org>
9966
9967         fputc, fwrite tests: Avoid test failure on MSVC.
9968         * tests/test-fgetc.c: Include msvc-inval.h.
9969         (main): Invoke gl_msvc_inval_ensure_handler.
9970         * tests/test-fputc.c: Include msvc-inval.h.
9971         (main): Invoke gl_msvc_inval_ensure_handler.
9972         * tests/test-fread.c: Include msvc-inval.h.
9973         (main): Invoke gl_msvc_inval_ensure_handler.
9974         * tests/test-fwrite.c: Include msvc-inval.h.
9975         (main): Invoke gl_msvc_inval_ensure_handler.
9976         * modules/fgetc-tests (Depends-on): Add msvc-inval.
9977         * modules/fputc-tests (Depends-on): Likewise.
9978         * modules/fread-tests (Depends-on): Likewise.
9979         * modules/fwrite-tests (Depends-on): Likewise.
9980
9981 2011-09-27  Bruno Haible  <bruno@clisp.org>
9982
9983         raise: Fix double declaration with modules 'sigprocmask' and 'sigpipe'.
9984         * lib/signal.in.h (GNULIB_defined_signal_blocking): New macro.
9985         (raise): Remove older, duplicated declaration.
9986         (_gl_raise_SIGPIPE): New declaration.
9987         * lib/sigprocmask.c (_gl_raise_SIGPIPE): New function.
9988         (rpl_raise): Remove function.
9989         * lib/raise.c (rpl_raise, raise): Merge into a single function. Handle
9990         a gnulib-defined SIGPIPE here.
9991         * m4/raise.m4 (gl_FUNC_RAISE): Set REPLACE_RAISE also if the module
9992         'sigprocmask' has detected missing signal-blocking and the module
9993         'sigpipe' is enabled.
9994         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
9995
9996 2011-09-26  Gijs van Tulder  <gvtulder@gmail.com>
9997
9998         base64-tests: avoid memory leak
9999         * tests/test-base64.c (main): Plug memory leak.
10000
10001         base32: new module
10002         * modules/base32: New module.
10003         * lib/base32.c: New file.
10004         * lib/base32.h: Likewise.
10005         * m4/base32.m4: Likewise.
10006         * modules/base32-tests: New test.
10007         * tests/test-base32.c: Likewise.
10008         * MODULES.html.sh (Misc): Mention it.
10009
10010 2011-09-26  Paul Eggert  <eggert@cs.ucla.edu>
10011
10012         gnulib: use more-standard license notice wording
10013         * gnulib-tool (func_emit_copyright_notice): When emitting a
10014         license notice into a file, use the standard wording as suggested
10015         by the current information for GNU maintainers, except say "file"
10016         rather than "program".  The new wording gives a license version
10017         number, which addresses an issue raised by Glenn Morris in
10018         <http://lists.gnu.org/archive/html/bug-gnulib/2011-09/msg00397.html>.
10019         * m4/onceonly.m4: Use that same wording here, too.
10020
10021         dup2: minor simplification
10022         * m4/dup2.m4 (gl_PREREQ_DUP2): Don't require AC_C_INLINE,
10023         as lib/dup2.c no longer uses 'inline'.
10024
10025 2011-09-25  Bruno Haible  <bruno@clisp.org>
10026
10027         strings: Fix compilation error on MSVC.
10028         * lib/strings.in.h: Include <stddef.h> for size_t.
10029
10030 2011-09-25  Bruno Haible  <bruno@clisp.org>
10031
10032         fflush et al.: Document limitation on MSVC.
10033         * doc/posix-functions/fflush.texi: Document possible crash in handling
10034         mode other than DEFAULT_HANDLING.
10035         * doc/posix-functions/fgetc.texi: Likewise.
10036         * doc/posix-functions/fputc.texi: Likewise.
10037         * doc/posix-functions/fread.texi: Likewise.
10038         * doc/posix-functions/fwrite.texi: Likewise.
10039
10040 2011-09-25  Bruno Haible  <bruno@clisp.org>
10041
10042         msvc-inval: Allow three invalid parameter handling modes.
10043         * lib/msvc-inval.h: Don't include <stdlib.h> here.
10044         (DEFAULT_HANDLING, HAIRY_LIBRARY_HANDLING, SANE_LIBRARY_HANDLING): New
10045         macros.
10046         (gl_msvc_inval_ensure_handler, TRY_MSVC_INVAL, CATCH_MSVC_INVAL,
10047         DONE_MSVC_INVAL): Implement DEFAULT_HANDLING. Treat
10048         SANE_LIBRARY_HANDLING as a no-op.
10049         * lib/msvc-inval.c: Treat SANE_LIBRARY_HANDLING as a no-op. Include
10050         <stdlib.h>.
10051         (gl_msvc_invalid_parameter_handler): Implement DEFAULT_HANDLING.
10052
10053 2011-09-25  Bruno Haible  <bruno@clisp.org>
10054
10055         msvc-inval: Make handler multithread-safe.
10056         * lib/msvc-inval.h (struct gl_msvc_inval_per_thread): New type.
10057         (gl_msvc_inval_restart, gl_msvc_inval_restart_valid): Remove
10058         declarations.
10059         (gl_msvc_inval_current): New declaration.
10060         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10061         Operate on the structure returned by gl_msvc_inval_current().
10062         * lib/msvc-inval.c (gl_msvc_inval_restart, gl_msvc_inval_restart_valid):
10063         Remove varaiables.
10064         (tls_index, tls_initialized): New variables.
10065         (not_per_thread): New variable.
10066         (gl_msvc_inval_current): New function.
10067         (gl_msvc_invalid_parameter_handler) [!_MSC_VER]: Use the structure
10068         returned by gl_msvc_inval_current().
10069
10070 2011-09-25  Bruno Haible  <bruno@clisp.org>
10071
10072         msvc-inval: Install handler globally.
10073         * lib/msvc-inval.h (STATUS_GNULIB_INVALID_PARAMETER): Define also for
10074         !_MSC_VER.
10075         (gl_msvc_invalid_parameter_handler): Remove declaration.
10076         (gl_msvc_inval_restart_valid, gl_msvc_inval_ensure_handler): New
10077         declarations.
10078         (TRY_MSVC_INVAL, CATCH_MSVC_INVAL, DONE_MSVC_INVAL) [!_MSC_VER]:
10079         Install the handler globally, don't uninstall it.
10080         * lib/msvc-inval.c (gl_msvc_inval_restart_valid): New variable.
10081         (gl_msvc_invalid_parameter_handler): Make static. If the restart is not
10082         currently valid, call RaiseException instead.
10083         (gl_msvc_inval_initialized, gl_msvc_inval_ensure_handler): Define also
10084         for !_MSC_VER.
10085
10086 2011-09-25  Bruno Haible  <bruno@clisp.org>
10087
10088         strerror_r-posix: Fix for MSVC 9.
10089         * lib/strerror_r.c (local_snprintf): New function.
10090         (snprintf): Define to local_snprintf, not to _snprintf.
10091
10092 2011-09-25  Bruno Haible  <bruno@clisp.org>
10093
10094         ftruncate: Support for MSVC 9.
10095         * lib/ftruncate.c: Include errno.h, msvc-inval.h.
10096         (chsize_nothrow): New function.
10097         (chsize): Redefine as a macro.
10098         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): Require AC_C_INLINE.
10099         * modules/ftruncate (Depends-on): Add msvc-inval.
10100
10101 2011-09-25  Bruno Haible  <bruno@clisp.org>
10102
10103         New module 'fstat'.
10104         * lib/sys_stat.in.h (fstat): Declare only if GNULIB_FSTAT is set.
10105         * lib/fstat.c: New file, based on a piece of lib/fchdir.c.
10106         * lib/fchdir.c (rpl_fstat): Remove function.
10107         * m4/fstat.m4: New file.
10108         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_FSTAT.
10109         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Test whether fstat is
10110         declared.
10111         (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_FSTAT.
10112         * modules/sys_stat (Makefile.am): Substitute GNULIB_FSTAT.
10113         * modules/fstat: New file.
10114         * modules/sys_stat-tests (Depends-on): Remove fstat-tests.
10115         * tests/test-sys_stat-c++.cc (fstat): Check only if GNULIB_TEST_FSTAT
10116         is set.
10117         * doc/posix-functions/fstat.texi: Mention the new module and the
10118         problem on MSVC.
10119         * NEWS: Mention the change.
10120         * modules/acl (Depends-on): Add fstat.
10121         * modules/chdir-safer (Depends-on): Likewise.
10122         * modules/chown (Depends-on): Likewise.
10123         * modules/copy-file (Depends-on): Likewise.
10124         * modules/fchdir (Depends-on): Likewise.
10125         * modules/fdopendir (Depends-on): Likewise.
10126         * modules/fopen (Depends-on): Likewise.
10127         * modules/fts (Depends-on): Likewise.
10128         * modules/getcwd (Depends-on): Likewise.
10129         * modules/isapipe (Depends-on): Likewise.
10130         * modules/linkat (Depends-on): Likewise.
10131         * modules/lseek (Depends-on): Likewise.
10132         * modules/mkdir-p (Depends-on): Likewise.
10133         * modules/open (Depends-on): Likewise.
10134         * modules/openat (Depends-on): Likewise.
10135         * modules/read-file (Depends-on): Likewise.
10136         * modules/renameat (Depends-on): Likewise.
10137         * modules/utimens (Depends-on): Likewise.
10138
10139 2011-09-25  Bruno Haible  <bruno@clisp.org>
10140
10141         linkat: Fix compilation on MSVC 9.
10142         * lib/linkat.c: Don't include <stdint.h>.
10143
10144 2011-09-25  Bruno Haible  <bruno@clisp.org>
10145
10146         fclose: Support for MSVC 9.
10147         * lib/fclose.c: Include msvc-inval.h.
10148         (fclose_nothrow): New function.
10149         (rpl_fclose): Use it.
10150         * modules/fclose (Depends-on): Add msvc-inval.
10151         * doc/posix-functions/fclose.texi: Mention the problem on MSVC.
10152
10153 2011-09-24  Paul Eggert  <eggert@cs.ucla.edu>
10154
10155         dup2: minor simplifications
10156         * lib/dup2.c (ms_windows_dup2): Omit 'inline' as it's not clear
10157         that it's a performance win.
10158         (rpl_dup2): Change "if !((defined _WIN32 || defined __WIN32__) &&
10159         ! defined __CYGWIN__)" to "ifdef F_GETFL".
10160
10161 2011-09-24  Jim Meyering  <meyering@redhat.com>
10162
10163         test-futimens: avoid a warning from gcc -Wshadow
10164         * tests/test-futimens.h (test_futimens): Rename inner local, s/fd/fd0/
10165         to avoid a shadowing warning.
10166
10167 2011-09-24  Bruno Haible  <bruno@clisp.org>
10168
10169         fdopen: Support for MSVC 9.
10170         * m4/fdopen.m4 (gl_FUNC_FDOPEN): Set REPLACE_FDOPEN also if
10171         HAVE_MSVC_INVALID_PARAMETER_HANDLER is 1.
10172         * lib/fdopen.c: Include msvc-inval.h.
10173         (fdopen_nothrow): New function.
10174         (rpl_fdopen): Use it.
10175         * modules/fdopen (Depends-on): Add msvc-inval.
10176         * modules/fclose-tests (Depends-on): Add fdopen.
10177         * modules/fflush-tests (Depends-on): Likewise.
10178         * modules/fgetc-tests (Depends-on): Likewise.
10179         * modules/fputc-tests (Depends-on): Likewise.
10180         * modules/fread-tests (Depends-on): Likewise.
10181         * modules/freopen-tests (Depends-on): Likewise.
10182         * modules/fseeko-tests (Depends-on): Likewise.
10183         * modules/ftello-tests (Depends-on): Likewise.
10184         * modules/fwrite-tests  (Depends-on): Likewise.
10185         * doc/posix-functions/fdopen.texi: Mention the problem on MSVC.
10186
10187 2011-09-24  Bruno Haible  <bruno@clisp.org>
10188
10189         fgetc, fputc, fread, fwrite tests: Avoid compilation error on MSVC.
10190         * modules/fgetc-tests (Depends-on): Add unistd.
10191         * modules/fputc-tests (Depends-on): Likewise.
10192         * modules/fread-tests (Depends-on): Likewise.
10193         * modules/fwrite-tests (Depends-on): Likewise.
10194
10195 2011-09-24  Bruno Haible  <bruno@clisp.org>
10196
10197         dup: Simplify autoconf test.
10198         * m4/dup.m4 (gl_FUNC_DUP): Don't run a test program. Instead, just rely
10199         on gl_MSVC_INVAL's result.
10200
10201 2011-09-24  Bruno Haible  <bruno@clisp.org>
10202
10203         Tests for function fwrite().
10204         * modules/fwrite-tests: New file.
10205         * tests/test-fwrite.c: New file.
10206         * modules/stdio-tests (Depends-on): Add fwrite-tests.
10207
10208         Tests for function fread().
10209         * modules/fread-tests: New file.
10210         * tests/test-fread.c: New file.
10211         * modules/stdio-tests (Depends-on): Add fread-tests.
10212
10213         Activate fputc tests.
10214         * modules/stdio-tests (Depends-on): Add fputc-tests.
10215
10216         Enhance fgetc, fputc tests.
10217         * tests/test-fgetc.c (main): Also test the stream's error indicator.
10218         * tests/test-fputc.c (main): Likewise.
10219
10220 2011-09-24  Bruno Haible  <bruno@clisp.org>
10221
10222         write: Support for MSVC 9.
10223         * lib/unistd.in.h (write): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10224         is not 1.
10225         * lib/write.c (write_nothrow): New function.
10226         (rpl_write): Define also when GNULIB_NONBLOCKING or GNULIB_SIGPIPE is
10227         not 1. Use write_nothrow.
10228         * m4/write.m4 (gl_FUNC_WRITE): Replace read if the platform has an
10229         invalid parameter handler.
10230         (gl_PREREQ_WRITE): New macro.
10231         * modules/write (Depends-on): Add msvc-inval.
10232         (configure.ac): Invoke gl_PREREQ_WRITE.
10233         * doc/posix-functions/write.texi: Mention the problem on MSVC.
10234
10235 2011-09-24  Bruno Haible  <bruno@clisp.org>
10236
10237         read: Fix last commit.
10238         * lib/read.c (read_nothrow): Change return type to 'ssize_t'.
10239
10240 2011-09-24  Bruno Haible  <bruno@clisp.org>
10241
10242         dup2: Fix last commit.
10243         * lib/dup2.c: Restore comments. Treat Cygwin like Unix.
10244         (rpl_dup2): Disable fcntl workaround on native Windows.
10245
10246         sigprocmask: Make code safer.
10247         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' before the code
10248         section that changes macro definitions for this compilation unit.
10249
10250 2011-09-23  Paul Eggert  <eggert@cs.ucla.edu>
10251
10252         dup2: clarify by coalescing Windows-specific material
10253         * lib/dup2.c: Move '#include "msvc-inval.h"' and '#include
10254         "msvc-nothrow.h"' to the Windows-specific section, so that the
10255         Emacs source need not contain these include files.
10256         (ms_windows_dup2): Rename from dup2_nothrow, and move all the
10257         Windows-specific fixes into this function rather than just the
10258         nothrow fix, as this shortens and clarifies the code.  Always
10259         define as a function, as that's a bit cleaner than having it be
10260         sometimes a function and sometimes a macro.
10261         (rpl_dup2): Move the Windows-specific stuff out of here and into
10262         ms_windows_dup2.  Don't protect the Haiku-related fix with
10263         "#if !defined __linux__", as the same code also works around
10264         a Linux kernel bug, and it doesn't add any system calls on any
10265         platform.  Add comment about FreeBSD 6.1.
10266
10267         sigprocmask: move #include directive
10268         * lib/sigprocmask.c: Move '#include "msvc-inval.h"' to the
10269         Windows-specific section, so that the Emacs source need not
10270         contain msvc-inval.h.
10271
10272 2011-09-23  Bruno Haible  <bruno@clisp.org>
10273
10274         read: Support for MSVC 9.
10275         * lib/unistd.in.h (read): Replace also when GNULIB_UNISTD_H_NONBLOCKING
10276         is not 1.
10277         * lib/read.c (read_nothrow): New function.
10278         (rpl_read): Define also when GNULIB_NONBLOCKING is not 1. Use
10279         read_nothrow.
10280         * m4/read.m4 (gl_FUNC_READ): Replace read if the platform has an
10281         invalid parameter handler.
10282         (gl_PREREQ_READ): New macro.
10283         * modules/read (Depends-on): Add msvc-inval.
10284         (configure.ac): Invoke gl_PREREQ_READ.
10285         * doc/posix-functions/read.texi: Mention the problem on MSVC.
10286
10287 2011-09-23  Bruno Haible  <bruno@clisp.org>
10288
10289         close: Support for MSVC 9.
10290         * lib/close.c: Include <errno.h>, msvc-inval.h.
10291         (close_nothrow): New function.
10292         (rpl_close): Use it.
10293         * m4/close.m4 (gl_FUNC_CLOSE): Replace close if the platform has an
10294         invalid parameter handler.
10295         * modules/close (Depends-on): Add msvc-inval.
10296         * modules/dup2-tests (Depends-on): Add close.
10297         * modules/dup3-tests (Depends-on): Likewise.
10298         * modules/fcntl-tests (Depends-on): Likewise.
10299         * modules/spawn-pipe-tests (Depends-on): Likewise.
10300         * modules/unistd-safer-tests (Depends-on): Likewise.
10301         * doc/posix-functions/close.texi: Mention the problem on MSVC.
10302
10303 2011-09-23  Bruno Haible  <bruno@clisp.org>
10304
10305         New module 'dup'.
10306         * lib/unistd.in.h (dup): Declare only if the 'dup' module is in use.
10307         Allow replacement.
10308         * lib/dup.c: New file.
10309         * lib/fchdir.c (rpl_dup): Remove function.
10310         * m4/dup.m4: New file.
10311         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_DUP here.
10312         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether 'dup' is declared.
10313         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP.
10314         * modules/unistd (Makefile.am): Substitute GNULIB_DUP.
10315         * modules/dup: New file.
10316         * tests/test-unistd-c++.cc: Check the signature of 'dup' only if the
10317         'dup' module is in use.
10318         * modules/fdopendir (Depends-on): Add dup.
10319         * modules/fdutimensat-tests (Depends-on): Likewise.
10320         * modules/fts (Depends-on): Likewise.
10321         * modules/futimens-tests (Depends-on): Likewise.
10322         * modules/posix_spawnp-tests (Depends-on): Likewise.
10323         * modules/unistd-safer-tests (Depends-on): Likewise.
10324         * modules/utimens-tests (Depends-on): Likewise.
10325         * doc/posix-functions/dup.texi: Mention the new module and the problem
10326         on MSVC.
10327
10328 2011-09-23  Bruno Haible  <bruno@clisp.org>
10329
10330         getdtablesize: Support for MSVC 9.
10331         * lib/getdtablesize.c: Include msvc-inval.h.
10332         (_setmaxstdio_nothrow): New function.
10333         (_setmaxstdio): Redefine it.
10334         * m4/getdtablesize.m4 (gl_PREREQ_GETDTABLESIZE): New macro.
10335         * modules/getdtablesize (Depends-on): Add msvc-inval.
10336         (configure.ac): Invoke gl_PREREQ_GETDTABLESIZE.
10337
10338 2011-09-23  Bruno Haible  <bruno@clisp.org>
10339
10340         signal-h: Rename from signal.
10341         * modules/signal-h: Renamed from modules/signal.
10342         * modules/pthread_sigmask (Depends-on): Update.
10343         * modules/raise (Depends-on): Likewise.
10344         * modules/sigaction (Depends-on): Likewise.
10345         * modules/sigpipe (Depends-on): Likewise.
10346         * modules/sigprocmask (Depends-on): Likewise.
10347         * modules/sys_select (Depends-on): Likewise.
10348         * modules/signal-h-tests: Renamed from modules/signal-tests.
10349         (Files, Depends-on, Makefile.am): Update.
10350         * tests/test-signal-h.c: Renamed from tests/test-signal.c.
10351         * modules/signal-h-c++-tests: Renamed from modules/signal-c++-tests.
10352         (Files, Makefile.am): Update.
10353         * tests/test-signal-h-c++.cc: Renamed from tests/test-signal-c++.cc.
10354         * tests/test-signal-h-c++2.cc: Renamed from tests/test-signal-c++2.cc.
10355         * modules/signal: New placeholder file.
10356         * MODULES.html.sh (Support for systems lacking POSIX:2008): Update.
10357         * doc/posix-headers/signal.texi: Update.
10358         * NEWS: Mention the change.
10359
10360 2011-09-23  Bruno Haible  <bruno@clisp.org>
10361
10362         sigprocmask: Avoid crashes through signal() on MSVC 9.
10363         * lib/sigprocmask.c: Include msvc-inval.h.
10364         (signal_nothrow): New function.
10365         (signal): Redefine it.
10366         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Require AC_C_INLINE.
10367         * modules/sigprocmask (Depends-on): Add msvc-inval.
10368         * doc/posix-functions/signal.texi: Mention the problem on MSVC.
10369
10370 2011-09-23  Bruno Haible  <bruno@clisp.org>
10371
10372         Tests for module 'raise'.
10373         * modules/raise-tests: New file.
10374         * tests/test-raise.c: New file.
10375
10376         raise: Support for MSVC.
10377         * lib/signal.in.h (raise): New declaration.
10378         * lib/raise.c (raise_nothrow, rpl_raise): New alternate implementation
10379         for native Windows platforms.
10380         * m4/raise.m4: New file.
10381         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize GNULIB_RAISE,
10382         HAVE_RAISE, REPLACE_RAISE.
10383         * modules/signal (Makefile.am): Substitute GNULIB_RAISE, HAVE_RAISE,
10384         REPLACE_RAISE.
10385         * modules/raise (Status, Notice): Remove fields.
10386         (Files): Add m4/raise.m4.
10387         (Depends-on): Add signal, msvc-inval.
10388         (configure.ac): Use the common idioms.
10389         (Maintainer): Add me.
10390         * tests/test-signal-c++.cc: Check the signature of raise.
10391         * doc/posix-functions/raise.texi: Mention the problem on MSVC.
10392
10393 2011-09-23  Bruno Haible  <bruno@clisp.org>
10394
10395         pipe2: Fix compilation on pre-C99 compilers.
10396         * lib/pipe2.c (pipe2): Surround verify(...) declaration with braces.
10397
10398 2011-09-23  Bruno Haible  <bruno@clisp.org>
10399
10400         New module 'msvc-nothrow'. Makes _get_osfhandle safe on MSVC 9.
10401         * lib/msvc-nothrow.h: New file.
10402         * lib/msvc-nothrow.c: New file.
10403         * m4/msvc-nothrow.m4: New file.
10404         * modules/msvc-nothrow: New file.
10405         * lib/dup2.c: Include msvc-nothrow.h.
10406         (rpl_dup2): No need to protect _get_osfhandle call here.
10407         * lib/accept4.c: Include msvc-nothrow.h.
10408         * lib/error.c: Likewise.
10409         * lib/fcntl.c: Likewise.
10410         * lib/lseek.c: Likewise.
10411         * lib/nonblocking.c: Likewise.
10412         * lib/poll.c: Likewise.
10413         * lib/read.c: Likewise.
10414         * lib/select.c: Likewise.
10415         * lib/sockets.h: Likewise.
10416         * lib/sockets.c: Likewise.
10417         * lib/stdio-read.c: Likewise.
10418         * lib/stdio-write.c: Likewise.
10419         * lib/write.c: Likewise.
10420         * lib/w32sock.h: Likewise.
10421         * lib/w32spawn.h: Likewise.
10422         * lib/flock.c: Include msvc-nothrow.h instead of <io.h>.
10423         * lib/fsync.c: Likewise.
10424         * lib/isapipe.c: Likewise.
10425         * modules/dup2 (Depends-on): Add msvc-nothrow.
10426         * modules/accept4 (Depends-on): Likewise.
10427         * modules/error (Depends-on): Likewise.
10428         * modules/fcntl (Depends-on): Likewise.
10429         * modules/lseek (Depends-on): Likewise.
10430         * modules/nonblocking (Depends-on): Likewise.
10431         * modules/poll (Depends-on): Likewise.
10432         * modules/read (Depends-on): Likewise.
10433         * modules/select (Depends-on): Likewise.
10434         * modules/sockets (Depends-on): Likewise.
10435         * modules/sigpipe (Depends-on): Likewise.
10436         * modules/write (Depends-on): Likewise.
10437         * modules/accept (Depends-on): Likewise.
10438         * modules/bind (Depends-on): Likewise.
10439         * modules/connect (Depends-on): Likewise.
10440         * modules/gethostname (Depends-on): Likewise.
10441         * modules/getpeername (Depends-on): Likewise.
10442         * modules/getsockname (Depends-on): Likewise.
10443         * modules/getsockopt (Depends-on): Likewise.
10444         * modules/ioctl (Depends-on): Likewise.
10445         * modules/listen (Depends-on): Likewise.
10446         * modules/recv (Depends-on): Likewise.
10447         * modules/recvfrom (Depends-on): Likewise.
10448         * modules/send (Depends-on): Likewise.
10449         * modules/sendto (Depends-on): Likewise.
10450         * modules/setsockopt (Depends-on): Likewise.
10451         * modules/shutdown (Depends-on): Likewise.
10452         * modules/socket (Depends-on): Likewise.
10453         * modules/execute (Depends-on): Likewise.
10454         * modules/spawn-pipe (Depends-on): Likewise.
10455         * modules/flock (Depends-on): Likewise.
10456         * modules/fsync (Depends-on): Likewise.
10457         * modules/isapipe (Depends-on): Likewise.
10458         * tests/test-cloexec.c: Include msvc-nothrow.h.
10459         * tests/test-dup-safer.c: Likewise.
10460         * tests/test-dup2.c: Likewise.
10461         * tests/test-dup3.c: Likewise.
10462         * tests/test-fcntl.c: Likewise.
10463         * tests/test-pipe.c: Likewise.
10464         * tests/test-pipe2.c: Likewise.
10465         * modules/cloexec-tests (Depends-on): Add msvc-nothrow.
10466         * modules/unistd-safer-tests (Depends-on): Likewise.
10467         * modules/dup2-tests (Depends-on): Likewise.
10468         * modules/dup3-tests (Depends-on): Likewise.
10469         * modules/fcntl-tests (Depends-on): Likewise.
10470         * modules/pipe-posix-tests (Depends-on): Likewise.
10471         * modules/pipe2-tests (Depends-on): Likewise.
10472
10473 2011-09-23  Bruno Haible  <bruno@clisp.org>
10474
10475         dup2: Make code more maintainable.
10476         * lib/dup2.c (dup2_nothrow): New function, extracted from rpl_dup2.
10477         (rpl_dup2): Use it.
10478         * m4/dup2.m4 (gl_PREREQ_DUP2): New macro.
10479         * modules/dup2 (configure.ac): Invoke it.
10480         Reported by Paul Eggert.
10481
10482 2011-09-23  Bruno Haible  <bruno@clisp.org>
10483
10484         msvc-inval: Fix compilation error.
10485         * lib/msvc-inval.h: Include <excpt.h>.
10486
10487 2011-09-23  Bruno Haible  <bruno@clisp.org>
10488
10489         mkdir: Tweak for MSVC 9.
10490         * lib/sys_stat.in.h: Update comments.
10491         * doc/posix-functions/mkdir.texi: Mention problem on MSVC 9.
10492
10493         Tests for module 'chdir'.
10494         * modules/chdir-tests: New file.
10495         * tests/test-chdir.c: New file.
10496
10497         New module 'chdir'.
10498         * modules/chdir: New file.
10499         * lib/unistd.in.h: Include <io.h>, <direct.h> also for chdir.
10500         (chdir): New declaration.
10501         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether chdir is declared.
10502         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CHDIR.
10503         * modules/unistd (Makefile.am): Substitute GNULIB_CHDIR.
10504         * tests/test-unistd-c++.cc: Check signature of chdir.
10505         * doc/posix-functions/chdir.texi: Mention problem on native Windows.
10506         * modules/chdir-long (Depends-on): Add chdir.
10507         * modules/fchdir (Depends-on): Likewise.
10508         * modules/rename (Depends-on): Likewise.
10509         * modules/savewd (Depends-on): Likewise.
10510
10511         rmdir: Support for mingw, MSVC 9.
10512         * lib/unistd.in.h: Include <io.h> and <direct.h> also for rmdir.
10513         * doc/posix-functions/getcwd.texi: Mention problem on native Windows.
10514
10515         getcwd: Tweak for MSVC 9.
10516         * lib/unistd.in.h: Update comments.
10517         * doc/posix-functions/getcwd.texi: Mention problem on MSVC 9.
10518
10519 2011-09-22  Bruno Haible  <bruno@clisp.org>
10520
10521         strerror_r-posix: Avoid a link error on MSVC.
10522         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Check for snprintf.
10523         * lib/strerror_r.c (snprintf): Define to _snprintf if it doesn't exist.
10524
10525 2011-09-22  Bruno Haible  <bruno@clisp.org>
10526
10527         select: Avoid link errors on MSVC.
10528         * m4/select.m4 (gl_FUNC_SELECT): Determine LIB_SELECT.
10529         * modules/select (Link): Replace $(LIBSOCKET) with $(LIB_SELECT).
10530         * modules/pselect (Link): Likewise.
10531         * NEWS: Mention the change.
10532         * modules/select-tests (Makefile.am): Link test-select, test-select-fd,
10533         test-select-stdin against $(LIB_SELECT).
10534         * modules/pselect-tests (Makefile.am): Link test-pselect against
10535         $(LIB_SELECT).
10536
10537 2011-09-22  Bruno Haible  <bruno@clisp.org>
10538
10539         select: Avoid compilation error on MSVC.
10540         * lib/select.c: Don't include <stdbool.h>.
10541
10542 2011-09-21  Bruno Haible  <bruno@clisp.org>
10543
10544         Consolidate all uses of PATH_MAX in *.m4 files.
10545         * m4/pathmax.m4 (gl_PATHMAX_SNIPPET, gl_PATHMAX_SNIPPET_PREREQ): New
10546         macros.
10547         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Use gl_PATHMAX_SNIPPET_PREREQ
10548         and gl_PATHMAX_SNIPPET.
10549         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
10550         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
10551         * modules/chdir-long (Files): Add m4/pathmax.m4.
10552         * modules/getcwd (Files): Likewise.
10553
10554 2011-09-21  Bruno Haible  <bruno@clisp.org>
10555
10556         ftruncate: Un-deprecate, concentrate on Win32 support.
10557         * modules/ftruncate (Status, Notice): Remove sections.
10558         (Depends-on): Add largefile.
10559         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Drop failure message on
10560         non-mingw platforms.
10561         * lib/ftruncate.c: Remove code for the older platforms. For Win32,
10562         include <io.h>.
10563         * modules/perror-tests (Depends-on): Add ftruncate.
10564         * doc/posix-functions/ftruncate.texi: Mention the MSVC problem and the
10565         'ftruncate' module.
10566
10567 2011-09-21  Bruno Haible  <bruno@clisp.org>
10568
10569         Add dependencies to new dirent related modules.
10570         * modules/opendir (Depends-on): Add closedir.
10571         * modules/getcwd (Depends-on): Add opendir, closedir.
10572         * modules/dirent-safer-tests (Depends-on): Likewise.
10573         * modules/fdopendir-tests (Depends-on): Likewise.
10574         * modules/rename-tests (Depends-on): Add opendir, readdir, closedir.
10575         * modules/renameat-tests (Depends-on): Likewise.
10576
10577 2011-09-21  Bruno Haible  <bruno@clisp.org>
10578
10579         opendir: Avoid compilation error on mingw.
10580         * lib/opendir.c: Include <stddef.h> always. Include <unistd.h> as well.
10581         * modules/opendir (Depends-on): Add unistd.
10582
10583 2011-09-21  Bruno Haible  <bruno@clisp.org>
10584
10585         ftruncate tests: Avoid a test failure on mingw.
10586         * tests/test-ftruncate.c (main): Allow a failure with EACCES.
10587
10588 2011-09-21  Bruno Haible  <bruno@clisp.org>
10589
10590         select tests: Avoid test failures on OSF/1 5.1 and mingw.
10591         * tests/test-select.h (test_bad_fd): Disable all tests on OSF/1 and
10592         native Windows.
10593
10594 2011-09-21  Bruno Haible  <bruno@clisp.org>
10595
10596         New module 'fdopen'.
10597         * lib/stdio.in.h (fdopen): New declaration.
10598         * lib/fdopen.c: New file.
10599         * m4/fdopen.m4: New file.
10600         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FDOPEN,
10601         REPLACE_FDOPEN.
10602         * modules/stdio (Makefile.am): Substitute GNULIB_FDOPEN,
10603         REPLACE_FDOPEN.
10604         * modules/fdopen: New file.
10605         * modules/stdio-tests (Depends-on): Remove fdopen-tests.
10606         * tests/test-stdio-c++.cc: Check signature of fdopen.
10607         * doc/posix-functions/fdopen.texi: Mention the new module.
10608
10609 2011-09-21  Bruno Haible  <bruno@clisp.org>
10610
10611         unlockpt tests: Avoid test failure on NetBSD 5.1.
10612         * tests/test-unlockpt.c (main): Skip the EBADF tests on NetBSD.
10613         * doc/posix-functions/unlockpt.texi: Mention the bug on NetBSD.
10614
10615 2011-09-21  Bruno Haible  <bruno@clisp.org>
10616
10617         getlogin, getlogin_r tests: Avoid test failure on Linux/SPARC.
10618         * tests/test-getlogin.c (main): Allow a failure with EINVAL.
10619         * tests/test-getlogin_r.c (main): Likewise.
10620
10621 2011-09-20  Bruno Haible  <bruno@clisp.org>
10622
10623         time tests: Don't require pid_t.
10624         * doc/posix-headers/time.texi: Revert last change.
10625         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Revert last change.
10626         * tests/test-time.c: Comment out the check for pid_t.
10627
10628 2011-09-20  Bruno Haible  <bruno@clisp.org>
10629
10630         fsync tests: Avoid a test failure on mingw.
10631         * tests/test-fsync.c (main): Allow a failure with EIO.
10632
10633 2011-09-20  Bruno Haible  <bruno@clisp.org>
10634
10635         euidaccess: Update comments.
10636         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Update comments.
10637
10638 2011-09-20  Bruno Haible  <bruno@clisp.org>
10639
10640         Ensure EBADF returns for socket functions on mingw.
10641         * lib/accept.c (rpl_accept): Fail with error EBADF if the file
10642         descriptor is invalid.
10643         * lib/bind.c (rpl_bind): Likewise.
10644         * lib/connect.c (rpl_connect): Likewise.
10645         * lib/getpeername.c (rpl_getpeername): Likewise.
10646         * lib/getsockname.c (rpl_getsockname): Likewise.
10647         * lib/getsockopt.c (rpl_getsockopt): Likewise.
10648         * lib/listen.c (rpl_listen): Likewise.
10649         * lib/recv.c (rpl_recv): Likewise.
10650         * lib/recvfrom.c (rpl_recvfrom): Likewise.
10651         * lib/send.c (rpl_send): Likewise.
10652         * lib/sendto.c (rpl_sendto): Likewise.
10653         * lib/setsockopt.c (rpl_setsockopt): Likewise.
10654         * lib/shutdown.c (rpl_shutdown): Likewise.
10655
10656 2011-09-20  Bruno Haible  <bruno@clisp.org>
10657
10658         select tests: EBADF tests.
10659         * tests/test-select.h (do_select_bad_fd, do_select_bad_fd_nowait,
10660         test_bad_fd): New functions.
10661         (test_function): Invoke also test_bad_fd.
10662
10663 2011-09-20  Bruno Haible  <bruno@clisp.org>
10664
10665         Tests for module 'posix_spawn_file_actions_addopen.
10666         * modules/posix_spawn_file_actions_addopen-tests: New file.
10667         * tests/test-posix_spawn_file_actions_addopen.c: New file.
10668
10669         Tests for module 'posix_spawn_file_actions_adddup2'.
10670         * modules/posix_spawn_file_actions_adddup2-tests: New file.
10671         * tests/test-posix_spawn_file_actions_adddup2.c: New file.
10672
10673         Tests for module 'posix_spawn_file_actions_addclose'.
10674         * modules/posix_spawn_file_actions_addclose-tests: New file.
10675         * tests/test-posix_spawn_file_actions_addclose.c: New file.
10676
10677 2011-09-20  Bruno Haible  <bruno@clisp.org>
10678
10679         Tests for module 'unlockpt'.
10680         * modules/unlockpt-tests: New file.
10681         * tests/test-unlockpt.c: New file.
10682         * doc/posix-functions/unlockpt.texi: Mention the Cygwin 1.7 problem.
10683
10684         Tests for module 'grantpt'.
10685         * modules/grantpt-tests: New file.
10686         * tests/test-grantpt.c: New file.
10687         * doc/posix-functions/grantpt.texi: Mention the Cygwin 1.7 problem.
10688
10689 2011-09-20  Bruno Haible  <bruno@clisp.org>
10690
10691         freopen tests: EBADF tests.
10692         * tests/test-freopen.c: Include errno.h, unistd.h.
10693         (main): Add tests for EBADF, commented out for the moment.
10694
10695         fclose tests: EBADF tests.
10696         * tests/test-fclose.c (main): Add tests for EBADF.
10697
10698         fflush tests: EBADF tests.
10699         * tests/test-fflush.c: Include errno.h, macros.h.
10700         (main): Add tests for EBADF.
10701
10702         ftello tests: EBADF tests.
10703         * tests/test-ftello4.sh: New file.
10704         * tests/test-ftello4.c: New file.
10705         * modules/ftello-tests (Files): Add them.
10706         (Makefile.am): Arrange to compile test-ftello4 and run test-ftello4.sh.
10707
10708         fseeko tests: EBADF tests.
10709         * tests/test-fseeko4.sh: New file.
10710         * tests/test-fseeko4.c: New file.
10711         * modules/fseeko-tests (Files): Add them.
10712         (Makefile.am): Arrange to compile test-fseeko4 and run test-fseeko4.sh.
10713
10714         Tests for function fputc().
10715         * modules/fputc-tests: New file.
10716         * tests/test-fputc.c: New file.
10717         * modules/stdio-tests (Depends-on): Add fputc-tests.
10718
10719         Tests for function fgetc().
10720         * modules/fgetc-tests: New file.
10721         * tests/test-fgetc.c: New file.
10722         * modules/stdio-tests (Depends-on): Add fgetc-tests.
10723
10724         Tests for function fdopen().
10725         * modules/fdopen-tests: New file.
10726         * tests/test-fdopen.c: New file.
10727         * modules/stdio-tests (Depends-on): Add fdopen-tests.
10728
10729         Tests for module 'vdprintf'.
10730         * modules/vdprintf-tests: New file.
10731         * tests/test-vdprintf.c: New file.
10732
10733         Tests for module 'dprintf'.
10734         * modules/dprintf-tests: New file.
10735         * tests/test-dprintf.c: New file.
10736
10737 2011-09-20  Bruno Haible  <bruno@clisp.org>
10738
10739         Tests for module 'ioctl'.
10740         * modules/ioctl-tests: New file.
10741         * tests/test-ioctl.c: New file.
10742
10743 2011-09-20  Bruno Haible  <bruno@clisp.org>
10744
10745         fcntl tests: EBADF tests.
10746         * tests/test-fcntl.c (main): Add more tests for EBADF.
10747
10748 2011-09-20  Bruno Haible  <bruno@clisp.org>
10749
10750         utimensat tests: EBADF tests.
10751         * tests/test-utimensat.c (main): Add tests for EBADF.
10752
10753         renameat tests: EBADF tests.
10754         * tests/test-renameat.c (main): Add tests for EBADF.
10755
10756         mkfifoat tests: EBADF tests.
10757         * tests/test-mkfifoat.c (main): Add tests for EBADF.
10758
10759         readlinkat tests: EBADF tests.
10760         * tests/test-readlinkat.c (main): Add tests for EBADF.
10761
10762         symlinkat tests: EBADF tests.
10763         * tests/test-symlinkat.c (main): Add tests for EBADF.
10764
10765         linkat tests: EBADF tests.
10766         * tests/test-linkat.c (main): Add tests for EBADF.
10767
10768         Tests for module 'faccessat'.
10769         * modules/faccessat-tests: New file.
10770         * tests/test-faccessat.c: New file.
10771
10772         fdopendir tests: EBADF tests.
10773         * tests/test-fdopendir.c (main): Add more tests for EBADF.
10774
10775         openat tests: EBADF tests.
10776         * tests/test-fchownat.c (main): Add tests for EBADF.
10777         * tests/test-fstatat.c (main): Likewise.
10778         * tests/test-mkdirat.c (main): Likewise.
10779         * tests/test-openat.c (main): Likewise.
10780         * tests/test-unlinkat.c (main): Likewise.
10781         * tests/test-fchmodat.c: New file.
10782         * modules/openat-tests (Files): Add tests/test-fchmodat.c.
10783         (Makefile.am): Also run 'test-fchmodat'.
10784
10785 2011-09-20  Bruno Haible  <bruno@clisp.org>
10786
10787         utimens, futimens, fdutimensat tests: EBADF tests.
10788         * tests/test-futimens.h (test_futimens): Add more tests for EBADF.
10789
10790         Tests for function fstat().
10791         * modules/fstat-tests: New file.
10792         * tests/test-fstat.c: New file.
10793         * modules/sys_stat-tests (Depends-on): Add fstat-tests.
10794
10795 2011-09-20  Bruno Haible  <bruno@clisp.org>
10796
10797         test-ttyname_r tests: EBADF tests.
10798         * tests/test-ttyname_r.c (main): Add tests for EBADF.
10799
10800         Tests for module 'isatty'.
10801         * modules/isatty-tests: New file.
10802         * tests/test-isatty.c: New file.
10803
10804         Tests for module 'write'.
10805         * modules/write-tests: New file.
10806         * tests/test-write.c: New file.
10807
10808         Tests for module 'read'.
10809         * modules/read-tests: New file.
10810         * tests/test-read.c: New file.
10811
10812         pwrite tests: EBADF tests.
10813         * tests/test-pwrite.c (main): Add tests for EBADF.
10814
10815         pread tests: EBADF tests.
10816         * tests/test-pread.c (main): Add tests for EBADF.
10817
10818         lseek tests: EBADF tests.
10819         * tests/test-lseek.c (main): Add more tests for EBADF.
10820
10821         Tests for module 'ftruncate'.
10822         * modules/ftruncate-tests: New file.
10823         * tests/test-ftruncate.sh: New file.
10824         * tests/test-ftruncate.c: New file.
10825
10826         fsync tests: EBADF tests.
10827         * tests/test-fsync.c (main): Add more tests for EBADF.
10828
10829         fdatasync tests: EBADF tests.
10830         * tests/test-fdatasync.c (main): Add more tests for EBADF.
10831
10832         Tests for module 'fchown'.
10833         * modules/fchown-tests: New file.
10834         * tests/test-fchown.c: New file.
10835
10836         Tests for module 'fchmod'.
10837         * modules/fchmod-tests: New file.
10838         * tests/test-fchmod.c: New file.
10839
10840         fchdir tests: EBADF tests.
10841         * tests/test-fchdir.c (main): Add more tests for EBADF.
10842
10843         dup2 tests: EBADF tests.
10844         * tests/test-dup2.c (main): Add more tests for EBADF.
10845
10846         Tests for module 'dup'.
10847         * modules/dup-tests: New file.
10848         * tests/test-dup.c: New file.
10849
10850         Tests for module 'close'.
10851         * modules/close-tests: New file.
10852         * tests/test-close.c: New file.
10853
10854 2011-09-20  Bruno Haible  <bruno@clisp.org>
10855
10856         Tests for module 'shutdown'.
10857         * modules/shutdown-tests: New file.
10858         * tests/test-shutdown.c: New file.
10859
10860         Tests for module 'setsockopt'.
10861         * modules/setsockopt-tests: New file.
10862         * tests/test-setsockopt.c: New file.
10863
10864         Tests for module 'sendto'.
10865         * modules/sendto-tests: New file.
10866         * tests/test-sendto.c: New file.
10867
10868         Tests for module 'send'.
10869         * modules/send-tests: New file.
10870         * tests/test-send.c: New file.
10871
10872         Tests for module 'recvfrom'.
10873         * modules/recvfrom-tests: New file.
10874         * tests/test-recvfrom.c: New file.
10875
10876         Tests for module 'recv'.
10877         * modules/recv-tests: New file.
10878         * tests/test-recv.c: New file.
10879
10880         Tests for module 'listen'.
10881         * modules/listen-tests: New file.
10882         * tests/test-listen.c: New file.
10883
10884         Tests for module 'getsockopt'.
10885         * modules/getsockopt-tests: New file.
10886         * tests/test-getsockopt.c: New file.
10887
10888         Tests for module 'getsockname'.
10889         * modules/getsockname-tests: New file.
10890         * tests/test-getsockname.c: New file.
10891
10892         Tests for module 'getpeername'.
10893         * modules/getpeername-tests: New file.
10894         * tests/test-getpeername.c: New file.
10895
10896         Tests for module 'connect'.
10897         * modules/connect-tests: New file.
10898         * tests/test-connect.c: New file.
10899
10900         Tests for module 'bind'.
10901         * modules/bind-tests: New file.
10902         * tests/test-bind.c: New file.
10903
10904         accept4 tests: Fix for native Windows.
10905         * tests/test-accept4.c: Include sockets.h.
10906         (main): Invoke gl_sockets_startup.
10907         * modules/accept4-tests (Depends-on): Add sockets.
10908
10909         accept tests: Fix for native Windows.
10910         * tests/test-accept.c: Include sockets.h.
10911         (main): Invoke gl_sockets_startup.
10912         * modules/accept-tests (Depends-on): Add sockets.
10913
10914 2011-09-19  Bruno Haible  <bruno@clisp.org>
10915
10916         msvc-inval: Require a semicolon after DONE_MSVC_INVAL.
10917         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Wrap in a
10918         do...while(0).
10919         * lib/dup2.c (rpl_dup2): Add a semicolon after DONE_MSVC_INVAL.
10920         Suggested by Paul Eggert.
10921
10922 2011-09-19  Bruno Haible  <bruno@clisp.org>
10923
10924         sched: Ensure pid_t is defined.
10925         * m4/sched_h.m4 (gl_SCHED_H): Arrange to override <sched.h> if it does
10926         not define pid_t.
10927         * lib/sched.in.h: Include <sys/types.h>.
10928         * doc/posix-headers/sched.texi: Mention the pid_t problem.
10929         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
10930
10931 2011-09-19  Bruno Haible  <bruno@clisp.org>
10932
10933         msvc-inval: Ensure the entire expansion is a single statement.
10934         * lib/msvc-inval.h (TRY_MSVC_INVAL, DONE_MSVC_INVAL): Add an extra pair
10935         of braces.
10936
10937 2011-09-19  Jim Meyering  <meyering@redhat.com>
10938
10939         tests: use printf, not echo in init.sh's warn_ function
10940         * tests/init.sh (warn_): Use printf, not echo.  The latter would
10941         misbehave when given strings containing a backslash or starting
10942         with e.g., -n.  James Youngman suggested setting IFS.
10943
10944 2011-09-19  Eric Blake  <eblake@redhat.com>
10945
10946         futimens: enhance test
10947         * tests/test-futimens.h (test_futimens): Also check for EBADF on
10948         closed non-negative fd.
10949
10950         date: accept 'hence' as opposite of 'ago'
10951         * lib/parse-datetime.y (relative_time_table): Add 'hence'.
10952         * tests/test-parse-datetime.c (main): Enhance test.
10953         Suggested by Jesse Wilson.
10954
10955 2011-09-19  Jim Meyering  <meyering@redhat.com>
10956
10957         getcwd: don't fail in a deep directory on a system without openat
10958         Before this change, getcwd would fail when called from a directory
10959         of depth PATH_MAX / 3 or greater.  That was due to the fact that
10960         the non-openat implementation used "..", "../..", "../../..", etc.
10961         to access ancestor directories.  With too many, that string would
10962         be longer than PATH_MAX.
10963         * lib/getcwd.c (HAVE_OPENAT_SUPPORT): Define also when we are
10964         using gnulib's openat replacement.
10965         * m4/openat.m4: Set GNULIB_OPENAT, so getcwd.c knows when
10966         we're using the replacement function.
10967
10968 2011-09-14  Martin von Gagern  <Martin.vGagern@gmx.net>
10969
10970         maint.mk: avoid warnings from perl about missing files
10971         * top/maint.mk (def_sym_regex): Ignore files listed in
10972         $(gl_other_headers_) that do not exist, say because a project
10973         does not use a corresponding module.
10974
10975 2011-09-18  Paul Eggert  <eggert@cs.ucla.edu>
10976
10977         stat: use pathmax.h only if needed
10978         * lib/stat.c: Include pathmax.h only if REPLACE_FUNC_STAT_DIR.
10979         This is better for Emacs, which does not have a mingw port and
10980         therefore can avoid the pathmax module.
10981
10982         utimens: remove dependency on dup2
10983         * lib/utimens.c (fdutimens): Don't invoke dup2; it's not needed
10984         to work around the Linux kernel bug.
10985         * modules/utimens (Depends-on): Remove dup2.
10986
10987 2011-09-18  Bruno Haible  <bruno@clisp.org>
10988
10989         inet_ntop, inet_pton: Look for it also in libresolv.
10990         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): If the function was not found in
10991         libnsl, search for it in libresolv.
10992         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
10993         Needed on Solaris 7.
10994
10995 2011-09-18  Bruno Haible  <bruno@clisp.org>
10996
10997         accept, accept4 tests: Avoid link error on Solaris.
10998         * modules/accept-tests (Makefile.am): Link test-accept against
10999         $(LIBSOCKET).
11000         * modules/accept4-tests (Makefile.am): Link test-accept4 against
11001         $(LIBSOCKET).
11002
11003         accept4: Avoid link error on Solaris.
11004         * modules/accept4 (Link): New section.
11005
11006         socket functions: Avoid link errors on Solaris.
11007         * modules/accept (Depends-on): Add socketlib.
11008         (Link): New section.
11009         * modules/bind (Depends-on): Add socketlib.
11010         (Link): New section.
11011         * modules/connect (Depends-on): Add socketlib.
11012         (Link): New section.
11013         * modules/getpeername (Depends-on): Add socketlib.
11014         (Link): New section.
11015         * modules/getsockname (Depends-on): Add socketlib.
11016         (Link): New section.
11017         * modules/getsockopt (Depends-on): Add socketlib.
11018         (Link): New section.
11019         * modules/listen (Depends-on): Add socketlib.
11020         (Link): New section.
11021         * modules/recv (Depends-on): Add socketlib.
11022         (Link): New section.
11023         * modules/recvfrom (Depends-on): Add socketlib.
11024         (Link): New section.
11025         * modules/send (Depends-on): Add socketlib.
11026         (Link): New section.
11027         * modules/sendto (Depends-on): Add socketlib.
11028         (Link): New section.
11029         * modules/setsockopt (Depends-on): Add socketlib.
11030         (Link): New section.
11031         * modules/shutdown (Depends-on): Add socketlib.
11032         (Link): New section.
11033         * modules/socket (Depends-on): Add socketlib.
11034         (Link): New section.
11035
11036 2011-09-18  Bruno Haible  <bruno@clisp.org>
11037
11038         ptsname tests: Let the test fail rather than hang (e.g. on AIX 5.1).
11039         * tests/test-ptsname.c (main): Terminate the test if it takes longer
11040         than 5 seconds.
11041         * modules/ptsname-tests (configure.ac): Test for alarm.
11042
11043 2011-09-18  Bruno Haible  <bruno@clisp.org>
11044
11045         posix_spawn_file_actions_add*: Fix module dependencies.
11046         * modules/posix_spawn_file_actions_addclose (Dependencies): Add
11047         posix_spawn_file_actions_init.
11048         * modules/posix_spawn_file_actions_adddup2 (Dependencies): Likewise.
11049         * modules/posix_spawn_file_actions_addopen (Dependencies): Likewise.
11050
11051 2011-09-18  Bruno Haible  <bruno@clisp.org>
11052
11053         rename, renameat tests: Avoid test failures on FreeBSD 6.4.
11054         * tests/test-rename.h (test_rename): Allow error code EEXIST.
11055         * tests/test-renameat.c (main): Likewise.
11056
11057 2011-09-18  Bruno Haible  <bruno@clisp.org>
11058
11059         Tests for module 'accept4'.
11060         * modules/accept4-tests: New file.
11061         * tests/test-accept4.c: New file.
11062
11063 2011-09-18  Bruno Haible  <bruno@clisp.org>
11064
11065         Tests for module 'accept'.
11066         * modules/accept-tests: New file.
11067         * tests/test-accept.c: New file.
11068
11069 2011-09-18  Bruno Haible  <bruno@clisp.org>
11070
11071         dup2: Support for MSVC.
11072         * lib/dup2.c: Include msvc-inval.h.
11073         (rpl_dup2): Handle invalid parameter notifications during dup2 and
11074         _get_osfhandle calls.
11075         * modules/dup2 (Depends-on): Add msvc-inval.
11076         * doc/posix-functions/dup2.texi: Mention problem on MSVC.
11077
11078         New module 'msvc-inval'.
11079         * lib/msvc-inval.h: New file.
11080         * lib/msvc-inval.c: New file.
11081         * m4/msvc-inval.m4: New file.
11082         * modules/msvc-inval: New file.
11083
11084 2011-09-17  Bruno Haible  <bruno@clisp.org>
11085
11086         Tests for module 'pclose'.
11087         * modules/pclose-tests: New file.
11088
11089         New module 'pclose'.
11090         * lib/stdio.in.h (pclose): New declaration.
11091         * lib/pclose.c: New file.
11092         * m4/pclose.m4: New file.
11093         * m4/stdio_h.m4 (gl_STDIO_H): Test whether pclose is declared.
11094         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PCLOSE, HAVE_PCLOSE.
11095         * modules/stdio (Makefile.am): Substitute GNULIB_PCLOSE, HAVE_PCLOSE.
11096         * modules/pclose: New file.
11097         * modules/popen-tests (Depends-on): Add pclose.
11098         * modules/popen-safer-tests (Depends-on): Likewise.
11099         * doc/posix-functions/pclose.texi: Mention the new module.
11100
11101 2011-09-17  Bruno Haible  <bruno@clisp.org>
11102
11103         popen: Support for MSVC.
11104         * lib/stdio.in.h (popen): Declare it if the system lacks this function.
11105         * lib/popen.c (popen): Provide alternate definition for native Windows.
11106         * m4/popen.m4 (gl_FUNC_POPEN): Test if popen exists. Set HAVE_POPEN.
11107         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_POPEN.
11108         * modules/popen (Depends-on, configure.ac): Update condition.
11109         * modules/stdio (Makefile.am): Substitute HAVE_POPEN.
11110         * doc/posix-functions/popen.texi: Mention that the MSVC problem is
11111         fixed.
11112
11113 2011-09-17  Bruno Haible  <bruno@clisp.org>
11114
11115         isnanl, isnand, isnanf: Work around MSVC bug.
11116         * lib/isnan.c (FUNC): Use alternate ways of computing NaN and Infinity.
11117
11118 2011-09-17  Bruno Haible  <bruno@clisp.org>
11119
11120         sys_socket tests: Fix recent mistake.
11121         * tests/test-sys_socket.c (t1): Avoid collision of identifiers.
11122
11123 2011-09-17  Bruno Haible  <bruno@clisp.org>
11124
11125         putenv: Support for MSVC.
11126         * modules/putenv (Depends-on): Add environ.
11127         * lib/putenv.c (environ): Disable declaration.
11128         * lib/unistd.in.h: Update comment.
11129
11130 2011-09-17  Bruno Haible  <bruno@clisp.org>
11131
11132         math: Avoid macro redefinition warnings on MSVC.
11133         * lib/math.in.h (ceilf, ceill, floorf, floorl, frexpl, ldexpl):
11134         Undefine before redefining.
11135
11136 2011-09-17  Bruno Haible  <bruno@clisp.org>
11137
11138         doc: Mention functions which are declared as macros.
11139         * doc/posix-functions/*[fl].texi: Mention that some functions are
11140         defined as macros with arguments only.
11141
11142 2011-09-17  Bruno Haible  <bruno@clisp.org>
11143
11144         Add dependencies to new dirent related modules.
11145         * modules/backupfile (Depends-on): Add opendir, readdir, closedir.
11146         * modules/fts (Depends-on): Likewise.
11147         * modules/glob (Depends-on): Likewise.
11148         * modules/savedir (Depends-on): Likewise.
11149         * modules/scandir (Depends-on): Likewise.
11150         * modules/dirent-safer (Depends-on): Add opendir, closedir.
11151         * modules/fdopendir (Depends-on): Add opendir.
11152
11153 2011-09-17  Bruno Haible  <bruno@clisp.org>
11154
11155         inet_pton: Support for MSVC on Windows Vista or newer.
11156         * lib/arpa_inet.in.h (inet_pton): Also consider REPLACE_INET_PTON.
11157         * lib/inet_pton.c (rpl_inet_pton): Use a simple wrapper if
11158         HAVE_DECL_INET_PTON is defined.
11159         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11160         On platforms with <winsock2.h>, test whether inet_pton is declared in
11161         <ws2tcpip.h>. If so, arrange to replace it.
11162         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11163         REPLACE_INET_PTON.
11164         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_PTON.
11165         * modules/inet_pton (Files): Add m4/sys_socket_h.m4.
11166         (Depends-on, configure.ac): Update condition.
11167         * doc/posix-functions/inet_pton.texi: Mention the MSVC problem.
11168
11169 2011-09-17  Bruno Haible  <bruno@clisp.org>
11170
11171         inet_ntop: Support for MSVC on Windows Vista or newer.
11172         * lib/arpa_inet.in.h (inet_ntop): Also consider REPLACE_INET_NTOP.
11173         * lib/inet_ntop.c (rpl_inet_ntop): Use a simple wrapper if
11174         HAVE_DECL_INET_NTOP is defined.
11175         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Invoke gl_PREREQ_SYS_H_WINSOCK2.
11176         On platforms with <winsock2.h>, test whether inet_ntop is declared in
11177         <ws2tcpip.h>. If so, arrange to replace it.
11178         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Initialize
11179         REPLACE_INET_NTOP.
11180         * modules/arpa_inet (Makefile.am): Substitute REPLACE_INET_NTOP.
11181         * modules/inet_ntop (Files): Add m4/sys_socket_h.m4.
11182         (Depends-on, configure.ac): Update condition.
11183         * doc/posix-functions/inet_ntop.texi: Mention the MSVC problem.
11184
11185 2011-09-16  Eric Blake  <eblake@redhat.com>
11186
11187         test-fsync: yet another enhancement
11188         * tests/test-fsync.c (main): Also test behavior on read-only text
11189         file.
11190
11191 2011-09-16  Bruno Haible  <bruno@clisp.org>
11192
11193         Enhance fsync, fdatasync tests.
11194         * tests/test-fsync.c (main): Test both STDIN_FILENO and STDOUT_FILENO.
11195         * tests/test-fdatasync.c (main): Likewise.
11196
11197 2011-09-16  Bruno Haible  <bruno@clisp.org>
11198
11199         Support for MSVC compiler: Ensure mode_t gets defined.
11200         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_MODE_T.
11201         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11202         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
11203         * m4/sys_types_h.m4 (gl_SYS_TYPES_H): Likewise.
11204         * tests/test-fcntl-h.c: Check that mode_t is defined.
11205         * tests/test-sys_stat.c: Likewise.
11206         * tests/test-sys_types.c: Likewise.
11207         * doc/posix-headers/fcntl.texi: Mention the missing mode_t problem.
11208         * doc/posix-headers/sys_stat.texi: Likewise.
11209         * doc/posix-headers/sys_types.texi: Likewise.
11210
11211 2011-09-16  Bruno Haible  <bruno@clisp.org>
11212
11213         sys_stat: Support for MSVC.
11214         * lib/sys_stat.in.h (S_IFIFO): Define to _S_IFIFO if that exists.
11215         * tests/test-sys_stat.c: Don't assume that S_IFBLK exists.
11216         * doc/posix-headers/sys_stat.texi: Mention missing S_IFIFO, S_IFBLK on
11217         MSVC.
11218
11219 2011-09-16  Bruno Haible  <bruno@clisp.org>
11220
11221         Support for MSVC compiler: Ensure off_t gets defined.
11222         * lib/unistd.in.h: Include <sys/types.h>.
11223         * tests/test-fcntl-h.c: Check that off_t is defined.
11224         * tests/test-sys_stat.c: Likewise.
11225         * tests/test-sys_types.c: Likewise.
11226
11227 2011-09-16  Eric Blake  <eblake@redhat.com>
11228
11229         fdatasync: port to Solaris
11230         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Set LIB_FDATASYNC.
11231         * modules/fdatasync (Link): Document it.
11232         * modules/fdatasync-tests (test_fdatasync_LDADD): Link with it.
11233
11234         fdatasync: port to MacOS X 10.7
11235         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): Check for present but not
11236         declared.
11237         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Another default.
11238         * modules/unistd (Makefile.am): Substitute it.
11239         * lib/unistd.in.h (fdatasync): Declare on MacOS.
11240         * doc/posix-functions/fdatasync.texi (fdatasync): Document it.
11241
11242         fdatasync: minor improvements
11243         * modules/fdatasync (Depends-on): Add condition for fsync.
11244         * lib/fdatasync.c (fdatasync): Add comment.
11245         * tests/test-unistd-c++.cc: Test fdatasync.
11246
11247         unistd: update refs to newer POSIX
11248         * lib/unistd.in.h: Prefer POSIX 2008 over 2001.
11249         Suggested by Bruno Haible.
11250
11251         fdatasync: new module
11252         * modules/fsync (Description): Document difference to fdatasync.
11253         * modules/fdatasync: New module.
11254         * m4/fdatasync.m4 (gl_FUNC_FDATASYNC): New file.
11255         * lib/fdatasync.c (fdatasync): Likewise.
11256         * m4/unistd_h.m4 (gl_UNISTD_H, gl_UNISTD_H_DEFAULTS): Set up
11257         defaults.
11258         * modules/unistd (Makefile.am): Set witnesses.
11259         * lib/unistd.in.h (fdatasync): Declare.
11260         * MODULES.html.sh: Document it.
11261         * doc/posix-functions/fdatasync.texi (fdatasync): Likewise.
11262         * modules/fdatasync-tests: New test.
11263         * tests/test-fdatasync.c: Likewise.
11264
11265 2011-09-16  Eric Blake  <eblake@redhat.com>
11266
11267         test-fsync: enhance tests
11268         * modules/fsync-tests (Depends-on): Add errno, for mingw.
11269         * tests/test-fsync.c (main): Enhance test.
11270
11271 2011-09-15  Bruno Haible  <bruno@clisp.org>
11272
11273         Support for MSVC compiler: Ensure ssize_t gets defined.
11274         * doc/posix-headers/sys_types.texi: Mention the missing ssize_t problem.
11275         * doc/posix-headers/stdio.texi: Likewise.
11276         * modules/stdio (Depends-on): Add ssize_t.
11277         * modules/sys_socket (Depends-on): Likewise.
11278         * modules/sys_types (Depends-on): Likewise.
11279         * modules/sys_uio (Depends-on): Likewise.
11280         * modules/unistd (Depends-on): Likewise.
11281         * tests/test-sys_socket.c: Check that size_t and ssize_t are defined.
11282         * tests/test-sys_types.c: Check that ssize_t is defined.
11283
11284 2011-09-14  Bruno Haible  <bruno@clisp.org>
11285
11286         Avoid using #, the m4 comment starter character, near brackets.
11287         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Use |, not #, as
11288         delimiter character in sed expressions.
11289         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Likewise.
11290         Suggested by Eric Blake.
11291
11292         Properly quote AC_CHECK_DECLS' 4th argument.
11293         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Double-quote AC_CHECK_DECLS' 4th
11294         argument.
11295         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
11296         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
11297         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
11298         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
11299         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
11300         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): Likewise.
11301         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Likewise.
11302         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Likewise.
11303         * m4/gethrxtime.m4 (gl_GETHRXTIME): Likewise.
11304         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
11305         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Likewise.
11306         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Likewise.
11307         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
11308         * m4/isinf.m4 (gl_ISINF): Likewise.
11309         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
11310         * m4/readutmp.m4 (gl_READUTMP): Likewise.
11311         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
11312         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
11313         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
11314         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
11315         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
11316         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
11317         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Likewise.
11318         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
11319         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
11320         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
11321         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Likewise.
11322         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
11323         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
11324         Reported by Eric Blake.
11325
11326         Properly quote AC_CHECK_DECL's 4th argument.
11327         * m4/acosl.m4 (gl_FUNC_ACOSL): Double-quote AC_CHECK_DECL's 4th
11328         argument.
11329         * m4/argp.m4 (gl_ARGP): Likewise.
11330         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
11331         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
11332         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
11333         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
11334         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Likewise.
11335         * m4/getloadavg.m4 (gl_GETLOADAVG): Likewise.
11336         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Likewise.
11337         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
11338         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
11339         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
11340         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
11341         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
11342         Reported by Eric Blake.
11343
11344 2011-09-14  Eric Blake  <eblake@redhat.com>
11345
11346         opendir: avoid compile warning
11347         * lib/opendir.c (includes): Always include errno.h.
11348         Reported by Tatsuro MATSUOKA.
11349
11350 2011-09-14  Jim Meyering  <meyering@redhat.com>
11351
11352         maint.mk: sc_tight_scope: propagate failure from sub-make
11353         * top/maint.mk (sc_tight_scope): Actually initialize and use $fail.
11354         Reported by Martin von Gagern.
11355
11356 2011-09-13  Bruno Haible  <bruno@clisp.org>
11357
11358         tempname: Support for MSVC.
11359         * doc/posix-headers/fcntl.texi: Document the problem with O_ACCMODE on
11360         MSVC.
11361         * modules/tempname (Depends-on): Add fcntl-h.
11362
11363 2011-09-13  Bruno Haible  <bruno@clisp.org>
11364
11365         sys_time: Support for MSVC.
11366         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Invoke
11367         gl_PREREQ_SYS_H_WINSOCK2. When testing for 'struct timeval', also
11368         include <winsock2.h>.
11369         * lib/sys_time.in.h: On MSVC, include <winsock2.h> and hide its
11370         function declarations that collide with POSIX.
11371         * modules/sys_time (Files): Add m4/sys_socket_h.m4.
11372         (Makefile.am): Substitute HAVE_WINSOCK2_H.
11373
11374 2011-09-13  Bruno Haible  <bruno@clisp.org>
11375
11376         stat: Support for MSVC.
11377         * lib/stat.c: Include pathmax.h.
11378         * modules/stat (Depends-on): Add pathmax.
11379
11380         pathmax: Support for native Windows.
11381         * lib/pathmax.h (PATH_MAX): Define to 260 on native Windows.
11382
11383 2011-09-12  Bruno Haible  <bruno@clisp.org>
11384
11385         New modules 'opendir', 'readdir', 'rewinddir', 'closedir'.
11386         * lib/dirent.in.h (struct dirent): New type.
11387         (DT_UNKNOWN, DT_FIFO, DT_CHR, DT_DIR, DT_BLK, DT_REG, DT_LNK, DT_SOCK,
11388         DT_WHT): New macros.
11389         (DIR): New type.
11390         (opendir, closedir): Declare only if the module 'opendir' is enabled.
11391         (readdir, rewinddir): New declarations.
11392         * lib/dirent-private.h: New file.
11393         * lib/opendir.c: New file.
11394         * lib/readdir.c: New file.
11395         * lib/rewinddir.c: New file.
11396         * lib/closedir.c: New file.
11397         * lib/fchdir.c (rpl_closedir, rpl_opendir): Remove functions.
11398         * m4/opendir.m4: New file.
11399         * m4/readdir.m4: New file.
11400         * m4/rewinddir.m4: New file.
11401         * m4/closedir.m4: New file.
11402         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't set REPLACE_OPENDIR,
11403         REPLACE_CLOSEDIR here.
11404         * m4/dirent_h.m4 (gl_DIRENT_H): Also check whether closedir, opendir,
11405         readdir, rewinddir are declared.
11406         (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_OPENDIR, GNULIB_READDIR,
11407         GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR, HAVE_READDIR,
11408         HAVE_REWINDDIR, HAVE_CLOSEDIR.
11409         * modules/dirent (Makefile.am): Substitute GNULIB_OPENDIR,
11410         GNULIB_READDIR, GNULIB_REWINDDIR, GNULIB_CLOSEDIR, HAVE_OPENDIR,
11411         HAVE_READDIR, HAVE_REWINDDIR, HAVE_CLOSEDIR.
11412         * modules/opendir: New file.
11413         * modules/readdir: New file.
11414         * modules/rewinddir: New file.
11415         * modules/closedir: New file.
11416         * doc/posix-functions/opendir.texi: Mention the 'opendir' module.
11417         * doc/posix-functions/readdir.texi: Mention the 'readdir' module.
11418         * doc/posix-functions/rewinddir.texi: Mention the 'rewinddir' module.
11419         * doc/posix-functions/closedir.texi: Mention the 'closedir' module.
11420         * NEWS: Mention the 'fchdir' change.
11421
11422 2011-09-11  Bruno Haible  <bruno@clisp.org>
11423
11424         asm-underscore.m4: Support for MSVC.
11425         * m4/asm-underscore.m4 (gl_C_ASM): New macro.
11426         (gl_ASM_SYMBOL_PREFIX): Require it. Use its results.
11427
11428 2011-09-11  Reuben Thomas  <rrt@sc3d.org>
11429
11430         Doc about crypt functions.
11431         * doc/posix-functions/crypt.texi: Expand range of glibc versions
11432         needing for _GNU_SOURCE to get crypt.
11433         * doc/posix-functions/encrypt.texi: Likewise.
11434         * doc/posix-functions/setkey.texi: Likewise.
11435
11436 2011-09-11  Bruno Haible  <bruno@clisp.org>
11437
11438         doc: Update regarding MSVC 9.
11439         * doc/gnulib-intro.texi (Target Platforms): Classify MSVC as "rarely
11440         tested".
11441         * doc/posix-functions/*.texi: Update with info about MSVC 9.
11442         * doc/posix-headers/*.texi: Likewise.
11443         * doc/pastposix-functions/*.texi: Likewise.
11444         * doc/glibc-functions/*.texi: Likewise.
11445         * doc/glibc-headers/*.texi: Likewise.
11446
11447 2011-09-11  Bruno Haible  <bruno@clisp.org>
11448
11449         unistd et al.: Don't assume <unistd.h> exists.
11450         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Don't include <unistd.h> if it
11451         does not exist.
11452         * m4/environ.m4 (gl_ENVIRON): Don't include <unistd.h> if it does not
11453         exist. But include <stdlib.h>.
11454         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): If <unistd.h> does not exist,
11455         include <io.h> and <stdlib.h> instead. Don't test symbolink links if
11456         symlink() does not exist.
11457         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): If <unistd.h> does not exist,
11458         include <io.h> instead.
11459         * m4/free.m4 (gl_FUNC_FREE): Assume free(NULL) works on native Windows.
11460         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): If <unistd.h> does not exist,
11461         include <direct.h> instead.
11462         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): Likewise.
11463         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
11464         * m4/lseek.m4 (gl_FUNC_LSEEK): If <unistd.h> does not exist, include
11465         <io.h> instead.
11466         * m4/rename.m4 (gl_FUNC_RENAME): Assume rename() manages hard links
11467         correctly if the system does not have hard links.
11468         * m4/rmdir.m4 (gl_FUNC_RMDIR): If <unistd.h> does not exist, include
11469         <direct.h> instead.
11470         * m4/unistd_h.m4 (gl_UNISTD_H): If <unistd.h> does not exist, bypass
11471         it when looking for function declarations.
11472         * m4/unlink.m4 (gl_FUNC_UNLINK): If <unistd.h> does not exist, include
11473         <direct.h> and <io.h> instead.
11474         * doc/posix-headers/unistd.texi: More details about MSVC problem.
11475
11476 2011-09-11  Bruno Haible  <bruno@clisp.org>
11477
11478         strcase: Support for MSVC.
11479         * modules/strcase (Status, Notice): Remove obsoletion mark.
11480         * doc/posix-functions/strcasecmp.texi: Mention MSVC problem.
11481         * doc/posix-functions/strncasecmp.texi: Likewise.
11482
11483         strings: Don't assume <strings.h> exists.
11484         * lib/strings.in.h: Include <strings.h> only if HAVE_STRINGS_H is 1.
11485         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Set HAVE_STRINGS_H.
11486         * modules/strings (Makefile.am): Substitute HAVE_STRINGS_H.
11487         * doc/posix-headers/strings.texi: Mention the MSVC problem.
11488
11489 2011-09-11  Bruno Haible  <bruno@clisp.org>
11490
11491         dirent: Don't assume <dirent.h> exists.
11492         * lib/dirent.in.h: Include <dirent.h> only if HAVE_DIRENT_H is 1.
11493         * m4/dirent_h.m4 (gl_DIRENT_H): Set HAVE_DIRENT_H.
11494         * modules/dirent (Makefile.am): Substitute HAVE_DIRENT_H.
11495         * doc/posix-headers/dirent.texi: Mention the MSVC problem.
11496
11497 2011-09-11  Bruno Haible  <bruno@clisp.org>
11498
11499         Fix wint_t on MSVC.
11500         * lib/wchar.in.h (wint_t): On MSVC, override it.
11501         * lib/wctype.in.h (wint_t): Likewise.
11502         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Override BITSIZEOF_WINT_T on
11503         MSVC.
11504         * doc/posix-headers/wchar.texi: Mention the problem with wint_t on MSVC.
11505         * doc/posix-headers/wctype.texi: Likewise.
11506
11507 2011-09-11  Bruno Haible  <bruno@clisp.org>
11508
11509         sys_types: Fix typo.
11510         * lib/sys_types.in.h: Fix typo in comment.
11511         Reported by Paul Eggert.
11512
11513         Support for MSVC compiler: Ensure size_t gets defined.
11514         * modules/strings (Depends-on): Add 'sys_types'.
11515         * modules/sys_uio (Depends-on): Likewise.
11516         * lib/sys_uio.in.h: Update comment.
11517
11518         C++ tests for module 'sys_types'.
11519         * modules/sys_types-c++-tests: New file.
11520         * tests/test-sys_types-c++.cc: New file.
11521
11522         Tests for module 'sys_types'.
11523         * modules/sys_types-tests: New file.
11524         * tests/test-sys_types.c: New file.
11525
11526         New module 'sys_types'.
11527         * lib/sys_types.in.h: New file.
11528         * m4/sys_types_h.m4: New file.
11529         * modules/sys_types: New file.
11530         * doc/posix-headers/sys_types.texi: Mention the new module and the
11531         size_t problem on MSVC 9.
11532
11533 2011-09-11  Bruno Haible  <bruno@clisp.org>
11534
11535         Support for MSVC compiler: Avoid division by a literal 0.
11536         * lib/math.in.h (NAN): Define through a function call also on MSVC.
11537         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Divide by 'zero' instead of 0.0.
11538         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_DIRECTIVE_A,
11539         gl_PRINTF_DIRECTIVE_F, gl_PRINTF_FLAG_ZERO): Likewise.
11540         (gl_PRINTF_INFINITE_LONG_DOUBLE): Divide by 'zeroL' instead of 0.0L.
11541         * tests/infinity.h: New file.
11542         * tests/nan.h (NaNf, NaNd, NaNl): Define through a function call also
11543         on MSVC.
11544         * tests/test-ceilf1.c: Include infinity.h.
11545         (main): Use Infinityf.
11546         * tests/test-ceil1.c: Include infinity.h.
11547         (main): Use Infinityd.
11548         * tests/test-ceill.c: Include infinity.h.
11549         (main): Use Infinityl.
11550         * tests/test-dprintf-posix.c: Include infinity.h.
11551         (test_function): Use Infinityd.
11552         * tests/test-floorf1.c: Include infinity.h.
11553         (main): Use Infinityf.
11554         * tests/test-floor1.c: Include infinity.h.
11555         (main): Use Infinityd.
11556         * tests/test-floorl.c: Include infinity.h.
11557         (main): Use Infinityl.
11558         * tests/test-fprintf-posix.c: Include infinity.h.
11559         (test_function): Use Infinityd.
11560         * tests/test-frexp.c: Include infinity.h.
11561         (main): Use Infinityd.
11562         * tests/test-frexpl.c: Include infinity.h.
11563         (main): Use Infinityl.
11564         * tests/test-isfinite.c: Include infinity.h.
11565         (test_isfinitef): Use Infinityf.
11566         (test_isfinited): Use Infinityd.
11567         (test_isfinitel): Use Infinityl.
11568         * tests/test-isinf.c: Include infinity.h.
11569         (test_isinff): Use Infinityf.
11570         (test_isinfd): Use Infinityd.
11571         (test_isinfl): Use Infinityl.
11572         * tests/test-isnan.c: Include infinity.h.
11573         (test_float): Use Infinityf.
11574         (test_double): Use Infinityd.
11575         (test_long_double): Use Infinityl.
11576         * tests/test-isnanf.h: Include infinity.h.
11577         (main): Use Infinityf.
11578         * tests/test-isnand.h: Include infinity.h.
11579         (main): Use Infinityd.
11580         * tests/test-isnanl.h: Include infinity.h.
11581         (main): Use Infinityl.
11582         * tests/test-ldexpl.c: Include infinity.h.
11583         (main): Use Infinityl.
11584         * tests/test-printf-posix.h: Include infinity.h.
11585         (test_function): Use Infinityd.
11586         * tests/test-roundf1.c: Include infinity.h.
11587         (main): Use Infinityf.
11588         * tests/test-round1.c: Include infinity.h.
11589         (main): Use Infinityd.
11590         * tests/test-roundl.c: Include infinity.h.
11591         (main): Use Infinityl.
11592         * tests/test-signbit.c: Include infinity.h.
11593         (test_signbitf): Use Infinityf.
11594         (test_signbitd): Use Infinityd.
11595         (test_signbitl): Use Infinityl.
11596         * tests/test-snprintf-posix.h: Include infinity.h.
11597         (test_function): Use Infinityd, Infinityl.
11598         * tests/test-sprintf-posix.h: Include infinity.h.
11599         (test_function): Use Infinityd, Infinityl.
11600         * tests/test-truncf1.c: Include infinity.h.
11601         (main): Use Infinityf.
11602         * tests/test-trunc1.c: Include infinity.h.
11603         (main): Use Infinityd.
11604         * tests/test-truncl.c: Include infinity.h.
11605         (main): Use Infinityl.
11606         * tests/test-vasnprintf-posix.c: Include infinity.h.
11607         (test_function): Use Infinityd, Infinityl.
11608         * tests/test-vasprintf-posix.c: Include infinity.h.
11609         (test_function): Use Infinityd, Infinityl.
11610         * modules/ceilf-tests (Files): Add tests/infinity.h.
11611         * modules/ceil-tests (Files): Likewise.
11612         * modules/ceill-tests (Files): Likewise.
11613         * modules/dprintf-posix-tests (Files): Likewise.
11614         * modules/floorf-tests (Files): Likewise.
11615         * modules/floor-tests (Files): Likewise.
11616         * modules/floorl-tests (Files): Likewise.
11617         * modules/fprintf-posix-tests (Files): Likewise.
11618         * modules/frexp-tests (Files): Likewise.
11619         * modules/frexp-nolibm-tests (Files): Likewise.
11620         * modules/frexpl-tests (Files): Likewise.
11621         * modules/frexpl-nolibm-tests (Files): Likewise.
11622         * modules/isfinite-tests (Files): Likewise.
11623         * modules/isinf-tests (Files): Likewise.
11624         * modules/isnan-tests (Files): Likewise.
11625         * modules/isnanf-tests (Files): Likewise.
11626         * modules/isnanf-nolibm-tests (Files): Likewise.
11627         * modules/isnand-tests (Files): Likewise.
11628         * modules/isnand-nolibm-tests (Files): Likewise.
11629         * modules/isnanl-tests (Files): Likewise.
11630         * modules/isnanl-nolibm-tests (Files): Likewise.
11631         * modules/ldexpl-tests (Files): Likewise.
11632         * modules/printf-posix-tests (Files): Likewise.
11633         * modules/roundf-tests (Files): Likewise.
11634         * modules/round-tests (Files): Likewise.
11635         * modules/roundl-tests (Files): Likewise.
11636         * modules/signbit-tests (Files): Likewise.
11637         * modules/snprintf-posix-tests (Files): Likewise.
11638         * modules/sprintf-posix-tests (Files): Likewise.
11639         * modules/truncf-tests (Files): Likewise.
11640         * modules/trunc-tests (Files): Likewise.
11641         * modules/truncl-tests (Files): Likewise.
11642         * modules/vasnprintf-posix-tests (Files): Likewise.
11643         * modules/vasprintf-posix-tests (Files): Likewise.
11644         * modules/vdprintf-posix-tests (Files): Likewise.
11645         * modules/vfprintf-posix-tests (Files): Likewise.
11646         * modules/vprintf-posix-tests (Files): Likewise.
11647         * modules/vsnprintf-posix-tests (Files): Likewise.
11648         * modules/vsprintf-posix-tests (Files): Likewise.
11649         * modules/xprintf-posix-tests (Files): Likewise.
11650
11651 2011-09-11  Bruno Haible  <bruno@clisp.org>
11652
11653         Ensure pid_t gets defined.
11654         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_TYPE_PID_T.
11655         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
11656         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
11657         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
11658         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
11659         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
11660         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
11661         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
11662         * tests/test-fcntl-h.c: Check that pid_t is defined.
11663         * tests/test-sched.c: Likewise.
11664         * tests/test-termios.c: Likewise.
11665         * tests/test-time.c: Likewise.
11666         * doc/posix-headers/fcntl.texi: Mention lack of pid_t on MSVC platform.
11667         * doc/posix-headers/signal.texi: Likewise.
11668         * doc/posix-headers/sys_types.texi: Likewise.
11669         * doc/posix-headers/time.texi: Likewise.
11670
11671 2011-09-11  Bruno Haible  <bruno@clisp.org>
11672
11673         acl: Fix compilation on Solaris 10 (older version).
11674         * lib/file-has-acl.c (acl_ace_nontrivial): Use NEW_ACE_EVERYONE instead
11675         of ACE_EVERYONE.
11676         * lib/set-mode-acl.c (qset_acl): Likewise.
11677         Reported by Christian Jullien <eligis@orange.fr>.
11678
11679 2011-09-10  Bruno Haible  <bruno@clisp.org>
11680
11681         iconv, unsetenv: Add support for MSVC compiler.
11682         * m4/iconv.m4 (AM_ICONV): Use ISO C declaration syntax on MSVC.
11683         * m4/setenv.m4 (gl_FUNC_UNSETENV): Drop support for K&R C compilers.
11684
11685 2011-09-10  Bruno Haible  <bruno@clisp.org>
11686
11687         *printf: Add support for MSVC compiler.
11688         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N): On MSVC, install a handler that
11689         handles the exception caused by the %n directive. When cross-compiling,
11690         guess no on native Windows.
11691         (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
11692         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1): When snprintf is missing,
11693         emulate it through vsnprintf.
11694         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Update comment.
11695         * doc/posix-functions/dprintf.texi: Update documentation regarding
11696         MSVC 9.
11697         * doc/posix-functions/fprintf.texi: Likewise.
11698         * doc/posix-functions/printf.texi: Likewise.
11699         * doc/posix-functions/snprintf.texi: Likewise.
11700         * doc/posix-functions/sprintf.texi: Likewise.
11701         * doc/posix-functions/swprintf.texi: Likewise.
11702         * doc/posix-functions/vdprintf.texi: Likewise.
11703         * doc/posix-functions/vfprintf.texi: Likewise.
11704         * doc/posix-functions/vprintf.texi: Likewise.
11705         * doc/posix-functions/vsnprintf.texi: Likewise.
11706         * doc/posix-functions/vsprintf.texi: Likewise.
11707         * doc/glibc-functions/asprintf.texi: Likewise.
11708         * doc/glibc-functions/obstack_printf.texi: Likewise.
11709         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
11710         * doc/glibc-functions/vasprintf.texi: Likewise.
11711
11712 2011-09-10  Bruno Haible  <bruno@clisp.org>
11713
11714         nocrash: Add support for native Windows.
11715         * m4/nocrash.m4 (GL_NOCRASH): Avoid a crash also on native Windows.
11716
11717 2011-09-10  Michael Goffioul  <michael.goffioul@gmail.com>  (tiny change)
11718             Bruno Haible  <bruno@clisp.org>
11719
11720         absolute-header, include-next: Add support for MSVC compiler.
11721         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): Require
11722         AC_CANONICAL_HOST. On native Windows, recognize also backslash as
11723         directory separator in #line directives.
11724         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): On native Windows,
11725         recognize also backslash as directory separator in #line directives.
11726
11727 2011-09-08  Jim Meyering  <meyering@redhat.com>
11728
11729         maint.mk: mark the post-release commit log with "maint: " prefix
11730         * top/maint.mk (emit-commit-log): Add "maint: " prefix to the
11731         one-line commit-log summary.
11732
11733 2011-09-08  Reuben Thomas  <rrt@sc3d.org>
11734             Bruno Haible  <bruno@clisp.org>
11735
11736         Doc about crypt functions.
11737         * doc/posix-functions/crypt.texi: Mention need for _GNU_SOURCE on glibc
11738         systems.
11739         * doc/posix-functions/encrypt.texi: Likewise.
11740         * doc/posix-functions/setkey.texi: Likewise.
11741
11742 2011-09-08  Simon Josefsson  <simon@josefsson.org>
11743
11744         * lib/gc.h: Fix copyright header.
11745
11746 2011-09-07  Bruno Haible  <bruno@clisp.org>
11747
11748         pthread: Determine $(LIB_PTHREAD) correctly on OSF/1 5.1.
11749         * m4/pthread.m4 (gl_PTHREAD_CHECK): Use AC_CACHE_CHECK and
11750         AC_LINK_IFELSE instead of AC_SEARCH_LIBS.
11751
11752 2011-09-07  Bruno Haible  <bruno@clisp.org>
11753
11754         openat: Work around compilation error with OSF/1 5.1 DTK cc.
11755         * lib/fopen.c: Use different syntax for include of <stdio.h>.
11756         * lib/freopen.c: Likewise.
11757         * lib/fstatat.c: Use different syntax for include of <sys/stat.h>.
11758         * lib/lstat.c: Likewise.
11759         * lib/stat.c: Likewise.
11760         * lib/open.c: Use different syntax for include of <fcntl.h>.
11761         * lib/openat.c: Include fcntl.h again, explicitly.
11762
11763 2011-09-04  J.T. Conklin  <jtc@acorntoolworks.com>
11764
11765         parse-datetime: document the newly accepted format
11766         * doc/parse-datetime.texi (Combined date and time of day items):
11767         New section.
11768
11769 2011-09-06  Bruno Haible  <bruno@clisp.org>
11770
11771         acl: Fix a test failure on newer Solaris 10 with ZFS.
11772         * tests/test-sameacls.c (main): Interpret acl GETACLCNT failure with
11773         ENOSYS as no ACL.
11774         Reported by Jim Meyering.
11775
11776 2011-09-06  Bruno Haible  <bruno@clisp.org>
11777
11778         acl: Update for AIX >= 5.3 with NFS.
11779         * lib/file-has-acl.c (file_has_acl): Interpret aclx_get failure with
11780         ENOSYS as no ACL.
11781
11782         acl: Fix a test failure on AIX >= 5.3 with NFS.
11783         * tests/test-sameacls.c (main): Interpret aclx_get failure with ENOSYS
11784         as no ACL.
11785
11786 2011-09-06  Bruno Haible  <bruno@clisp.org>
11787
11788         acl: Fix a test failure on IRIX 6.5 with NFS.
11789         * lib/acl-internal.h (MODE_INSIDE_ACL): Define to 0 on IRIX.
11790         * lib/set-mode-acl.c (qset_acl): Test !HAVE_ACL_TYPE_EXTENDED instead
11791         of MODE_INSIDE_ACL. If !MODE_INSIDE_ACL, do a chmod_or_fchmod always.
11792         * lib/copy-acl.c (qcopy_acl): Likewise.
11793
11794 2011-09-05  Paul Eggert  <eggert@cs.ucla.edu>
11795
11796         openat: port to AIX 7.1 with large files
11797         AIX 7.1 does a "#define openat open64at" if large files are in use,
11798         so we can't simply #undef openat.  Use the orig_openat trick (similar
11799         to orig_open in lib/open.c) to work around the problem.  Problem
11800         reported by Kevin Brott for GNU tar, in the thread containing
11801         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00032.html>.
11802         * lib/openat.c (__need_system_fcntl_h): Define first.
11803         Include <fcntl.h> and <sys/types.h> before undefining.
11804         (orig_openat) [HAVE_OPENAT]: New inline function.
11805         (openat) [HAVE_OPENAT]: Do not undef.
11806         (rpl_openat): Use orig_openat, not openat.
11807
11808 2011-09-05  Joachim Schmitz  <schmitz@hp.com>  (tiny change)
11809             Bruno Haible  <bruno@clisp.org>
11810
11811         acl: Avoid errors on NonStop Kernel.
11812         * lib/file-has-acl.c (file_has_acl) [NonStop Kernel]: Ignore ENOSYS and
11813         ENOTSUP errors.
11814
11815 2011-09-05  Bruno Haible  <bruno@clisp.org>
11816
11817         acl: Clean up Solaris code.
11818         * lib/acl-internal.h: Remove no-op #if.
11819         * lib/file-has-acl.c: Likewise.
11820         * lib/set-mode-acl.c (qset_acl): Remove unused Solaris code.
11821         * lib/copy-acl.c (qcopy_acl): Likewise.
11822
11823 2011-09-05  Bruno Haible  <bruno@clisp.org>
11824
11825         acl: Fix a bug with NFSv4 ACLs on Solaris 10 (newer version) in
11826         binaries built on the original Solaris 10.
11827         * lib/file-has-acl.c (file_has_acl): ACLs with 4..6 ACEs can be
11828         trivial.
11829
11830 2011-09-05  Bruno Haible  <bruno@clisp.org>
11831
11832         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11833         * lib/acl-internal.h (acl_nontrivial): Declare also on newer Solaris
11834         10.
11835         * lib/file-has-acl.c (acl_nontrivial): Define also on newer Solaris 10.
11836         (acl_ace_nontrivial): Likewise. Recognize the trivial ACLs with 6 ACEs.
11837         * lib/copy-acl.c (qcopy_acl): On newer Solaris 10, use acl or facl
11838         instead of acl_get, facl_get, acl_set, facl_set.
11839
11840 2011-09-05  Bruno Haible  <bruno@clisp.org>
11841
11842         copy-file: Try unit tests on more file systems.
11843         * tests/test-copy-file-1.sh: New file.
11844         * tests/test-copy-file-2.sh: New file.
11845         * modules/copy-file-tests (Files): Add them.
11846         (Makefile.am): Add them to TESTS.
11847
11848         acl: Try unit tests on more file systems.
11849         * tests/test-file-has-acl-1.sh: New file.
11850         * tests/test-file-has-acl-2.sh: New file.
11851         * tests/test-set-mode-acl-1.sh: New file.
11852         * tests/test-set-mode-acl-2.sh: New file.
11853         * tests/test-copy-acl-1.sh: New file.
11854         * tests/test-copy-acl-2.sh: New file.
11855         * modules/acl-tests (Files): Add them.
11856         (Makefile.am): Add them to TESTS.
11857
11858 2011-09-04  Bruno Haible  <bruno@clisp.org>
11859
11860         acl: Improve support of NFSv4 ACLs on Solaris 10 (newer version).
11861         * lib/acl-internal.h (ACE_*, NEW_ACE_*): Define also on newer Solaris
11862         10.
11863         (OLD_ALLOW, OLD_DENY): New macros.
11864         (NEW_ACE_ACCESS_ALLOWED_ACE_TYPE): Renamed from
11865         ACE_ACCESS_ALLOWED_ACE_TYPE.
11866         (NEW_ACE_ACCESS_DENIED_ACE_TYPE): Renamed from
11867         ACE_ACCESS_DENIED_ACE_TYPE.
11868         (OLD_ACE_OWNER, OLD_ACE_GROUP, OLD_ACE_OTHER): New macros.
11869         (NEW_ACE_EXECUTE): Fix value.
11870         (NEW_ACE_APPEND_DATA, NEW_ACE_READ_NAMED_ATTRS,
11871         NEW_ACE_WRITE_NAMED_ATTRS, NEW_ACE_DELETE_CHILD,
11872         NEW_ACE_READ_ATTRIBUTES, NEW_ACE_WRITE_ATTRIBUTES, NEW_ACE_DELETE,
11873         NEW_ACE_READ_ACL, NEW_ACE_WRITE_ACL, NEW_ACE_WRITE_OWNER,
11874         NEW_ACE_SYNCHRONIZE): New macros.
11875         * lib/set-mode-acl.c (qset_acl): On newer Solaris 10, use acl or facl
11876         instead of acl_fromtext, acl_set, facl_set.
11877         Fixes a coreutils/tests/cp/perm failure.
11878
11879 2011-09-03  Paul Eggert  <eggert@cs.ucla.edu>
11880
11881         openat: test for fstatat (..., 0) bug
11882         Further testing with tar suggests that fstatat (..., 0)
11883         does not work in general, on AIX 7.1; see
11884         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00023.html>.
11885         So, give up entirely on AIX 7.1's fstatat, and fall back on our
11886         replacement fstatat (which is what older AIX releases were using
11887         anyway).
11888         * lib/fstatat.c (fstatat) [HAVE_FSTATAT]: Do not undef.  The only
11889         use is now changed to orig_fstatat.  This was probably the right
11890         thing to do anyway.
11891         (FSTATAT_AT_FDCWD_0_BROKEN): Remove; no longer used.
11892         (rpl_fstatat) [FSTATAT_ZERO_FLAG_BROKEN]: Remove.
11893         (rpl_fstatat): Simplify, assuming !FSTATAT_ZERO_FLAG_BROKEN.
11894         (AT_FUNC_NAME) [FSTATAT_ZERO_FLAG_BROKEN]: Now rpl_fstatat.
11895         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for the more-general bug
11896         and define FSTATAT_ZERO_FLAG_BROKEN, not FSTATAT_AT_FDCWD_0_BROKEN,
11897         if the bug is found.
11898
11899         openat: test for fstatat (AT_FDCWD, ..., 0) bug
11900         This tests for another fstatat bug on AIX 7.1:
11901         fstatat (AT_FDCWD, ..., 0) does not work.  See
11902         <http://lists.gnu.org/archive/html/bug-tar/2011-09/msg00015.html>.
11903         * lib/fstatat.c (FSTATAT_AT_FDCWD_0_BROKEN)
11904         (LSTAT_FOLLOWS_SLASHED_SYMLINK): Default to 0.
11905         (rpl_fstatat): Adjust so that it works around either (or both)
11906         bugs if present.
11907         * m4/openat.m4 (gl_FUNC_FSTATAT): Test for this fstatat bug.
11908
11909 2011-09-03  Karl Berry  <karl@gnu.org>
11910
11911         * doc/regex.texi (Character Class Operators): Avoid literal ":"
11912         in index entries.
11913
11914 2011-09-02  Bruno Haible  <bruno@clisp.org>
11915
11916         Allow the user to override the choice of AR, ARFLAGS, RANLIB.
11917         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Don't override the given
11918         values of AR, ARFLAGS, RANLIB.
11919         Reported by John W. Eaton <jwe@gnu.org> for Octave.
11920
11921 2011-09-02  Bruno Haible  <bruno@clisp.org>
11922
11923         Find 'ar' program that fits with --host argument.
11924         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): Use AC_CHECK_TOOL.
11925
11926 2011-09-02  Bruno Haible  <bruno@clisp.org>
11927
11928         tests: init.sh: Support any non-GNU diff.
11929         * tests/init.sh (compare): If "diff -c" is supported but "diff -u" is
11930         not, use "diff -c". Useful on AIX 6.1, HP-UX 11.31, OSF/1 5.1,
11931         Solaris 8.
11932
11933 2011-09-02  Bruno Haible  <bruno@clisp.org>
11934
11935         tests: init.sh: work also with any non-GNU diff that supports -u
11936         * tests/init.sh: Relax check for diff -u support.
11937         Rather than checking for GNU diff via --version, simply check
11938         for support for -u itself.  Useful at least on OpenBSD 4.9,
11939         AIX 7.1, IRIX 6.5, and Solaris 10.
11940
11941 2011-09-01  Bruno Haible  <bruno@clisp.org>
11942
11943         strtoimax, strtoumax: Document problem on HP-UX 11.
11944         * doc/posix-functions/strtoimax.texi: Mention HP-UX 11.11 problem.
11945         * doc/posix-functions/strtoumax.texi: Likewise.
11946
11947 2011-09-01  Bruno Haible  <bruno@clisp.org>
11948
11949         strtoumax: Avoid link error on OSF/1 with DTK cc.
11950         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Always test whether strtoumax is
11951         defined as a function.
11952         * modules/strtoumax (Depends-on, configure.ac): Test only whether
11953         strtoumax is defined, not whether it is declared.
11954
11955 2011-09-01  Bruno Haible  <bruno@clisp.org>
11956
11957         strtoimax: Avoid link error on OSF/1 with DTK cc.
11958         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Always test whether strtoimax is
11959         defined as a function.
11960         * modules/strtoimax (Depends-on, configure.ac): Test only whether
11961         strtoimax is defined, not whether it is declared.
11962
11963 2011-09-01  Bruno Haible  <bruno@clisp.org>
11964
11965         imaxdiv: Avoid link error on OSF/1 with DTK cc.
11966         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Also test whether imaxdiv is defined
11967         as a function.
11968         * modules/imaxdiv (configure.ac): Test whether imaxdiv is defined, not
11969         whether it is declared.
11970
11971 2011-09-01  Bruno Haible  <bruno@clisp.org>
11972
11973         imaxabs: Avoid link error on OSF/1 with DTK cc.
11974         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Also test whether imaxabs is defined
11975         as a function.
11976         * modules/imaxabs (configure.ac): Test whether imaxabs is defined, not
11977         whether it is declared.
11978
11979 2011-09-01  Bruno Haible  <bruno@clisp.org>
11980
11981         Tests for module 'strtoumax'.
11982         * modules/strtoumax-tests: New file.
11983         * tests/test-strtoumax.c: New file.
11984
11985         Tests for module 'strtoimax'.
11986         * modules/strtoimax-tests: New file.
11987         * tests/test-strtoimax.c: New file.
11988
11989         Tests for module 'imaxdiv'.
11990         * modules/imaxdiv-tests: New file.
11991         * tests/test-imaxdiv.c: New file.
11992
11993         Tests for module 'imaxabs'.
11994         * modules/imaxabs-tests: New file.
11995         * tests/test-imaxabs.c: New file.
11996
11997 2011-09-01  Bruno Haible  <bruno@clisp.org>
11998
11999         pthread: Determine $(LIB_PTHREAD) correctly on IRIX 6.5.
12000         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_join, not
12001         pthread_create.
12002
12003 2011-09-01  Paul Eggert  <eggert@cs.ucla.edu>
12004
12005         openat: work around AIX 7.1 fstatat issue
12006         This should fix the problem that was not properly fixed
12007         in the previous change, dated 2011-08-30.
12008         * lib/fstatat.c: Include <sys/stat.h> twice, the first with
12009         __need_system_stat_h defined.
12010         (orig_fstatat) [HAVE_FSTATAT]: New function.
12011         (rpl_fstatat): Go back to the old way of doing things,
12012         except call orig_fstatat instead of fstatat.
12013         * m4/openat.m4 (gl_FUNC_FSTATAT): Remove unnecessary check for openat.
12014         Remove unnecessary check whether fstatat fills in st_size etc.
12015
12016 2011-09-01  Bruno Haible  <bruno@clisp.org>
12017
12018         sys_select: Avoid a syntax error regarding timespec_t on IRIX 6.5.
12019         * lib/sys_select.in.h [__sgi]: When included from <sys/bsd_types.h>,
12020         just include the system's header.
12021
12022 2011-08-31  Jim Meyering  <meyering@redhat.com>
12023
12024         tests: avoid spurious assertion failure in test-float.c on ppc64
12025         * tests/test-float.c (test_long_double): Comment out an assertion,
12026         LDBL_MIN_EXP <= DBL_MIN_EXP, that is failing at least on PowerPC-64
12027         with gcc-4.4.4.
12028
12029         maint: indent with spaces, not TABs
12030         I need to get in the habit of running gnulib's "make check".
12031         Both of these would have been caught.
12032         * m4/largefile.m4: Indent with spaces, not TABs.
12033         * lib/parse-datetime.y (iso_8601_time): Likewise.
12034         Spotted by Pádraig Brady.
12035
12036         test-parse-datetime.c: accommodate a relatively strict gcc warning
12037         * tests/test-parse-datetime.c (gmt_offset): Declare function "static",
12038         to avoid a warning from gcc's -Werror=missing-declarations.
12039         Insert a few spaces-before-funcall-parenthesis.
12040
12041 2011-08-17  J.T. Conklin  <jtc@acorntoolworks.com>
12042
12043         parse-datetime: accept ISO 8601 date and time rep with "T" separator
12044         The parser now accepts ISO 8601 date-time strings with "T" as the
12045         separator.  It has long parsed dates like "2004-02-29 16:21:42"
12046         with a space between the date and time strings.  Now it also parses
12047         "2004-02-29T16:21:42" and fractional-second and time-zone-annotated
12048         variants like "2004-02-29T16:21:42.333-07:00"
12049         * lib/parse-datetime.y: Parse ISO 8601 extended date and time
12050         of day representation using the 'T' separator character.
12051         * doc/parse-datetime.texi (General date syntax): replace use of
12052         deprecated --iso-8601 option with --rfc-3339 in example of date
12053         command output formats that can be parsed.
12054         * tests/test-parse-datetime.c (tm_diff): New function, taken from
12055         lib/parse-datetime.y.
12056         (gmt_offset): New function.
12057         (main): Add additional test cases to validate ISO8601 extended
12058         date and time of day parsing.
12059
12060 2011-08-31  Bruno Haible  <bruno@clisp.org>
12061
12062         freopen: Documentation.
12063         * doc/posix-functions/freopen.texi: Document the bug with the NULL file
12064         name.
12065         Reported by Claudio Bley <claudio.bley@gmail.com>.
12066
12067 2011-08-31  Claudio Bley  <claudio.bley@gmail.com>  (tiny change)
12068
12069         freopen: Don't crash if the filename argument is NULL.
12070         * lib/freopen.c (rpl_freopen): Don't compare the filename if it is
12071         NULL.
12072
12073 2011-08-30  Paul Eggert  <eggert@cs.ucla.edu>
12074
12075         openat: work around AIX 7.1 fstatat bug
12076         Problem reported by Kevin Brott for GNU tar, in the thread containing
12077         <http://lists.gnu.org/archive/html/bug-tar/2011-08/msg00015.html>.
12078         * lib/fstatat.c (rpl_fstatat): Do not invoke underlying fstatat if
12079         FSTATAT_ST_SIZE_ETC_BROKEN.
12080         (fstatat) [FSTATAT_ST_SIZE_ETC_BROKEN && HAVE_FSTATAT]: #define to
12081         rpl_fstatat.
12082         * m4/openat.m4 (gl_FUNC_FSTATAT): New macro, with the fstatat-relevant
12083         part of gl_FUNC_OPENAT.  Also, check for the AIX 7.1 bug, and use
12084         AC_CHECK_FUNCS_ONCE for fstatat.
12085         (gl_FUNC_OPENAT): Use it.  Use AC_CHECK_FUNCS_ONCE for
12086         fchmodat, mkdirat, openat and unlinkat.
12087
12088 2011-08-30  Bruno Haible  <bruno@clisp.org>
12089
12090         Avoid endless recursions if config.h includes some header files.
12091         * lib/fopen.c (__need_FILE): Define already before including config.h.
12092         * lib/freopen.c (__need_FILE): Likewise.
12093         * lib/open.c (__need_system_fcntl_h): Likewise.
12094         * lib/stat.c (__need_system_sys_stat_h): Likewise.
12095         * lib/lstat.c (__need_system_sys_stat_h): Likewise.
12096         Reported by Michael Goffioul <michael.goffioul@gmail.com>.
12097
12098 2011-08-25  Karl Berry  <karl@gnu.org>
12099
12100         * config/srclist.txt (ylwrap): new try.
12101         * build-aux/ylwrap: new file.
12102
12103 2011-08-23  Bruno Haible  <bruno@clisp.org>
12104
12105         tmpdir: Use a good default directory on native Windows.
12106         * lib/tmpdir.c: Include <windows.h>, pathmax.h.
12107         (P_tmpdir): Default to _P_tmpdir on native Windows.
12108         (path_search): On native Windows, try the value returned by GetTempPath
12109         before trying P_tmpdir.
12110         * modules/tmpdir (Depends-on): Add pathmax.
12111         Suggested by John Darrington <john@darrington.wattle.id.au>.
12112
12113 2011-08-20  Reuben Thomas  <rrt@sc3d.org>
12114
12115         doc: fix typo in README-release
12116         * top/README-release: Capitalize first word of a sentence.
12117
12118 2011-08-19  Jim Meyering  <meyering@redhat.com>
12119
12120         fts: do not exhaust memory when processing million-entry directories
12121         Before this change, traversing (via rm -rf, find, du, etc.) an N-entry
12122         directory would require about 256*N bytes of memory.  Thus, it was
12123         easy to construct a directory too large to be processed by any of
12124         those tools.  With this change, fts' maximum memory utilization is
12125         now limited to around 30MB.
12126         * lib/fts.c (FTS_MAX_READDIR_ENTRIES): Define.
12127         (fts_read): When we've processed the final entry (i.e., when
12128         ->fts_link is NULL) and fts_dirp is non-NULL, call fts_build
12129         using the parent entry to read any remaining entries.  Dispatch
12130         depending on what fts_build returns:
12131         - NULL+stop, aka failure: stop
12132         - NULL otherwise: move up in the dir hierarchy
12133         - non-NULL: handle this new entry
12134         (fts_build): Declare and use new local, continue_readdir.
12135         Prepare to be called from fts_read, when the entries
12136         from a partially-read directory have just been exhausted.
12137         In that case, we'll skip the opendir and instead use the parent's
12138         fts_dirp and derive dir_fd from that.
12139         Finally, in the readdir loop, if we read max_entries entries,
12140         exit the loop ensuring *not* to call closedir.  This is required
12141         so that fts_dirp can be reused on a subsequent call.
12142         Prompted by Ben England's report of memory exhaustion in find
12143         and rm -rf vs. NFS: https://bugzilla.redhat.com/719749.
12144
12145         maint: fts: move decl of `dp' down into while loop; split a long line
12146         * lib/fts.c (fts_build): No semantic change.
12147
12148         fts: add/use new struct member, fts_dirp
12149         We are about to use this to manage any directory with
12150         too many entries to read all of them into memory at once.
12151         To do that, we'll need to save the DIR* pointer in each
12152         affected FTSENT struct.
12153         * lib/fts_.h: Include <dirent.h>.
12154         (struct FTSENT) [fts_dirp]: New member.
12155         * lib/fts.c (closedir_and_clear): Define.
12156         Use it in place of closedir so that we are sure to
12157         clear the new fts_dirp member when done with it.
12158         (fts_alloc): Initialize the new member.
12159         (fts_lfree): Free, if needed.
12160
12161         maint: fts: give __opendir2 a new parameter and rename
12162         * lib/fts.c (__opendir2): Give it a new parameter, Pdir_fd, rather
12163         than surreptitiously using sole caller's "dir_fd".
12164         (fts_opendir): Rename from __opendir2.
12165
12166         maint: fts.c: remove __opendir2's now-unused parameter, oflag
12167         * lib/fts.c (__opendir2): Remove unused parameter, oflag.
12168
12169         maint: fts.c: correct off-by-one indentation
12170         * lib/fts.c (fts_build): Correct indentation, change style
12171         of a couple of block comments, and bracing style.
12172
12173         maint: fts.c: move __opendir2 #define "up" out of function body
12174         * lib/fts.c (__opendir2): Move "up".  No semantic change.
12175
12176         maint: fts.c: remove #if-0'd FTS_WHITEOUT code
12177         * lib/fts.c: Remove #if-0'd FTS_WHITEOUT code.  It's been #if-0'd
12178         out for a long time and besides was useful only on BSD systems.
12179
12180 2011-08-18  Paul Eggert  <eggert@cs.ucla.edu>
12181
12182         regex: port to Stratus OpenVOS
12183         * lib/regex_internal.h (internal_function) [!_LIBC]: Simply
12184         define to empty, rather than attempting nonportable optimizations.
12185         Problem reported by Paul Green in:
12186         http://lists.gnu.org/archive/html/bug-diffutils/2011-08/msg00047.html
12187         and fix suggested by Eric Blake in:
12188         http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00143.html
12189
12190 2011-08-17  Eric Blake  <eblake@redhat.com>
12191
12192         getcwd: fix test failures on mingw
12193         * lib/getcwd.c (__getcwd): Early exit for ERANGE.
12194         * tests/test-getcwd.c (test_abort_bug, test_long_name): Don't fail
12195         test if long directory cannot be created, and allow mingw errno.
12196
12197         getcwd-lgpl: fix m4 to match relaxed test for BSD
12198         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Relax probe.
12199         (gl_FUNC_GETCWD_SIGNATURE): New macro.
12200         (gl_FUNC_GETCWD_LGPL, gl_FUNC_GETCWD): Use it.
12201         * doc/posix-functions/getcwd.texi (getcwd): Tweak mentions of
12202         signature problem.
12203
12204         getcwd: fix compilation on mingw64
12205         * lib/unistd.in.h (includes) [mingw]: Include <direct.h> for
12206         getcwd.
12207         Reported by Marc-André Lureau.
12208
12209         pipe2: silence compiler warning
12210         * lib/pipe2.c (pipe2): Hide label if it is not used.
12211
12212 2011-08-15  Ben Pfaff  <blp@cs.stanford.edu>
12213
12214         relocatable-prog: fix link error
12215         * modules/relocatable-prog (configure.ac) [RELOCATABLE]: Also
12216         invoke AC_LIBOBJ([relocatable]).  This invocation was previously
12217         in the gl_RELOCATABLE_LIBRARY macro.  That invocation was moved
12218         into modules/relocatable-lib without noticing that
12219         modules/relocatable-prog also invokes gl_RELOCATABLE_LIBRARY and
12220         also needs to build relocatable.c.
12221
12222 2011-08-12  Paul Eggert  <eggert@cs.ucla.edu>
12223
12224         getaddrinfo: fix sh typo in gai_strerrorA decl checking
12225         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix typo in the generated
12226         shell code: it contained a 'break' that was not in a loop.
12227         Apparently the macro assumed that AC_CHECK_DECLS is implemenented
12228         via a shell-language loop; this may have been true in old Autoconf
12229         versions, but it's not true in Autoconf 2.68.  I found this bug
12230         when testing coreutils git on Solaris 8, whose shell complains
12231         about the syntax error.
12232
12233 2011-08-12  Simon Josefsson  <simon@josefsson.org>
12234
12235         * lib/base64.c: Fix comment to reference RFC 4648.
12236         Suggested by Bruno Haible <bruno@clisp.org> and Gijs van Tulder
12237         <gvtulder@gmail.com>.
12238
12239 2011-08-11  Paul Eggert  <eggert@cs.ucla.edu>
12240
12241         * build-aux/bootstrap (slurp): Remove obsolescent gettext.m4 patch.
12242
12243         po/Makefile.in.in: fix make -q problem
12244         * build-aux/po/Makefile.in.in (check-macro-version): Remove this
12245         rule, since there's no file named 'check-macro-version' and its
12246         use as a file breaks make -q.
12247         (all): Don't depend on check-macro-version.
12248         (CHECK_MACRO_VERSION): New macro.
12249         (stamp-po): Use it.
12250
12251         configmake: fix make -q problem
12252         * modules/configmake (configmake.h): Update configmake.h's time stamp
12253         even if the file does not change.  Otherwise, 'make -q' fails.
12254         Problem reported by Simon Josefsson in
12255         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00088.html>.
12256
12257 2011-08-11  Jim Meyering  <meyering@redhat.com>
12258
12259         git-version-gen: correct the advice in a comment
12260         * build-aux/git-version-gen: Correct comment.
12261         Don't recommend to list .tarball-version in .gitignore.
12262
12263 2011-08-10  Paul Eggert  <eggert@cs.ucla.edu>
12264
12265         base64: fix off-by-one buffer size bug
12266         Problem and (trivial) fix reported by Gijs van Tulder in
12267         <http://lists.gnu.org/archive/html/bug-gnulib/2011-08/msg00083.html>.
12268         * lib/base64.c (base64_decode_alloc_ctx): Allocate one more byte.
12269         * tests/test-base64.c (main): Catch the bug.
12270
12271 2011-08-10  Eric Blake  <eblake@redhat.com>
12272
12273         closein: correct comments
12274         * lib/closein.c (close_stdin): Improve comments.
12275
12276 2011-08-09  Bruno Haible  <bruno@clisp.org>
12277
12278         More tests for 'fseeko'.
12279         * tests/test-fseeko3.c: New file, from Eric Blake.
12280         * tests/test-fseeko3.sh: New file.
12281         * modules/fseeko-tests (Files): Add them.
12282         (TESTS): Add test-fseeko3.sh.
12283         (check_PROGRAMS): Add test-fseeko3.
12284
12285 2011-08-09  Eric Blake  <eblake@redhat.com>
12286
12287         fseeko: remove unneeded hack
12288         * lib/fseeko.c (fseeko): Don't special-case SEEK_END.
12289
12290         fseeko: fix bug on glibc
12291         * lib/fseeko.c (fseeko): Set stream offset to match fd offset.
12292         Reported by John W. Eaton.
12293
12294 2011-08-08  Bruno Haible  <bruno@clisp.org>
12295
12296         unictype/base: Fix interoperability with preinstalled libunistring.
12297         * modules/unictype/base (configure.ac): Bump minimum version to 0.9.4.
12298         Reported by Simon Josefsson.
12299
12300 2011-08-08  Bruno Haible  <bruno@clisp.org>
12301
12302         iswblank: Detect declaration correctly.
12303         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Use correct headers in
12304         AC_CHECK_DECLS invocation.
12305
12306 2011-08-08  Bruno Haible  <bruno@clisp.org>
12307
12308         tcgetsid: Detect declaration correctly.
12309         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Use correct headers in
12310         AC_CHECK_DECLS invocation.
12311         Reported by Simon Josefsson.
12312
12313 2011-08-08  Eric Blake  <eblake@redhat.com>
12314
12315         largefile: fix typo that regressed large file support
12316         * modules/largefile (configure.ac-early): Fix section name.
12317
12318 2011-08-06  Karl Berry  <karl@gnu.org>
12319
12320         * MODULES.html.sh (func_all_files): _Noreturn is no longer
12321         a separate module.
12322
12323 2011-08-05  Simon Josefsson  <simon@josefsson.org>
12324
12325         openat: Fix warnings and commens when building unlinkat.c on Hurd.
12326         * lib/unlinkat.c: Mention Hurd in comments.  Include stdlib.h to
12327         get prototype for free.
12328
12329 2011-08-04  Bruno Haible  <bruno@clisp.org>
12330
12331         Tests for module 'pathmax'.
12332         * modules/pathmax-tests: New file.
12333         * tests/test-pathmax.c: New file.
12334
12335         canonicalize-lgpl: Support larger filenames on the Hurd.
12336         * lib/canonicalize-lgpl.c (__realpath): Bump path_max fallback to 8192.
12337         Reported by Paul Eggert.
12338
12339         pathmax: Leave PATH_MAX undefined on the Hurd, and a constant otherwise.
12340         * lib/pathmax.h (PATH_MAX): Leave it undefined on GNU/Hurd.
12341         * lib/chdir-long.h: Include pathmax.h.
12342         * lib/clean-temp.c (PATH_MAX): Remove code that is done by pathmax.h.
12343         * lib/getcwd.c: Include pathmax.h instead of <limits.h>.
12344         (PATH_MAX): Remove code that is done by pathmax.h.
12345         * lib/canonicalize.c (PATH_MAX): Provide a fallback value.
12346         * lib/tmpfile.c: Add a comment.
12347         * m4/pathmax.m4 (gl_PATHMAX): Don't test for pathconf.
12348         * modules/chdir-long (Depends-on): Add pathmax.
12349         * modules/getcwd (Depends-on): Add pathmax.
12350         * tests/test-getcwd.c (test_abort_bug): Avoid syntax error when PATH_MAX
12351         is not defined.
12352         * doc/posix-headers/limits.texi: Mention the pathmax module.
12353         * NEWS: Mention the change.
12354
12355 2011-08-02  Bruno Haible  <bruno@clisp.org>
12356
12357         pthread_sigmask: Actually use results of gl_THREADLIB.
12358         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test and require
12359         gl_THREADLIB, not gl_[]THREADLIB.
12360         Reported by Eric Blake.
12361
12362 2011-08-02  Jim Meyering  <meyering@redhat.com>
12363
12364         maint.mk: relax the default _gl_TS_function_match regexp
12365         * top/maint.mk (_gl_TS_function_match): Don't require at least one
12366         space between function name and "(" in an "extern" declaration.
12367         That would fail to match a decl with no space there: extern void foo();
12368
12369 2011-07-31  Iain Nicol  <iain@thenicols.net>
12370
12371         git-version-gen: document that EXTRA_DIST must include .version
12372         * build-aux/git-version-gen: In the how-to-use comment, document
12373         that EXTRA_DIST must include .version.  Otherwise, "make distcheck"
12374         will fail when run from an unpacked distribution tarball.
12375
12376 2011-08-01  Bruno Haible  <bruno@clisp.org>
12377
12378         wctype-h: Fix last change.
12379         * m4/wctype_h.m4 (gl_WCTYPE_H): If towlower is defined, set
12380         REPLACE_TOWLOWER to 0.
12381         Reported by Sam Steingold <sds@gnu.org>.
12382
12383 2011-07-31  Bruno Haible  <bruno@clisp.org>
12384
12385         frexpl: Update autoconf test.
12386         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Update overrides of <float.h>,
12387         according to changes of 2011-06-20.
12388
12389 2011-07-31  Bruno Haible  <bruno@clisp.org>
12390
12391         sys_utsname: Add support for Minix.
12392         * lib/sys_utsname.in.h [Minix]: Include <stddef.h> before
12393         <sys/utsname.h>.
12394         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
12395         * doc/posix-headers/sys_utsname.texi: Document the Minix problem.
12396
12397 2011-07-31  Bruno Haible  <bruno@clisp.org>
12398
12399         strings: Add support for Minix.
12400         * lib/strings.in.h [Minix]: Include <sys/types.h> before <strings.h>.
12401         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
12402         * doc/posix-headers/strings.texi: Document the Minix problem.
12403
12404 2011-07-31  Bruno Haible  <bruno@clisp.org>
12405
12406         wctype-h: Add support for Minix.
12407         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towlower is declared. Set
12408         REPLACE_TOWLOWER.
12409         * modules/wctype-h (Makefile.am): Substitute REPLACE_TOWLOWER.
12410         * lib/wctype.in.h (towlower, towupper): Test REPLACE_TOWLOWER, not
12411         REPLACE_ISWCNTRL.
12412
12413 2011-07-31  Paul Eggert  <eggert@cs.ucla.edu>
12414
12415         * lib/xalloc.h (DEFAULT_MXFAST): Track 64-bit glibc.
12416         This is a performance improvement for 64-bit hosts: it causes the
12417         value of DEFAULT_MXFAST to track what's in glibc on such hosts.
12418
12419 2011-07-31  Bruno Haible  <bruno@clisp.org>
12420
12421         stdioext: Add support for Minix.
12422         * lib/fbufmode.c (fbufmode) [__minix]: Add conditional code.
12423         * lib/fpurge.c (fpurge): Likewise.
12424         * lib/freadahead.c (freadahead): Likewise.
12425         * lib/freadable.c (freadable): Likewise.
12426         * lib/freading.c (freading): Likewise.
12427         * lib/freadptr.c (freadptr): Likewise.
12428         * lib/freadseek.c (freadptrinc): Likewise.
12429         * lib/fseeko.c (rpl_fseeko): Likewise.
12430         * lib/fseterr.c (fseterr): Likewise.
12431         * lib/fwritable.c (fwritable): Likewise.
12432         * lib/fwriting.c (fwriting): Likewise.
12433         * lib/fflush.c (clear_ungetc_buffer): Update comment.
12434         * m4/fpending.m4 (gl_PREREQ_FPENDING): Add a variant for Minix.
12435
12436 2011-07-31  Bruno Haible  <bruno@clisp.org>
12437
12438         errno: Port to Minix.
12439         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Test also whether ENETRESET and
12440         ECONNABORTED are defined.
12441         * lib/errno.in.h (ENETRESET, GNULIB_defined_ENETRESET, ECONNABORTED,
12442         GNULIB_defined_ECONNABORTED): New macros.
12443         * lib/strerror-override.h (strerror_override): Test also
12444         GNULIB_defined_ENETRESET, GNULIB_defined_ECONNABORTED.
12445         * lib/strerror-override.c (strerror_override): Handle also ENETRESET,
12446         ECONNABORTED.
12447         * doc/posix-headers/errno.texi: Mention the Minix problem.
12448
12449 2011-07-31  Bruno Haible  <bruno@clisp.org>
12450
12451         Work around declaration collisions on Minix.
12452         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): If mbsinit is declared but not
12453         defined, set REPLACE_MBSINIT.
12454         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): If mbrtowc is declared but not
12455         defined, set REPLACE_MBRTOWC.
12456         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): If mbrlen is declared but not defined,
12457         set REPLACE_MBRLEN.
12458         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): If mbsrtowcs is declared but not
12459         defined, set REPLACE_MBSRTOWCS.
12460         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): If wcrtomb is declared but not
12461         defined, set REPLACE_WCRTOMB.
12462         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): If wcsrtombs is declared but not
12463         defined, set REPLACE_WCSRTOMBS.
12464
12465 2011-07-31  Bruno Haible  <bruno@clisp.org>
12466
12467         Add support for Minix with ACK compiler.
12468         * m4/gnulib-common.m4 (gl_PROG_AR_RANLIB): New macro.
12469         * gnulib-tool (func_import, func_create_testdir): Emit invocation of
12470         gl_PROG_AR_RANLIB instead of AC_PROG_RANLIB.
12471
12472 2011-07-31  Bruno Haible  <bruno@clisp.org>
12473
12474         Documentation about Minix.
12475         * doc/posix-headers/*.texi: Add info about Minix 3.1.8.
12476         * doc/glibc-headers/*.texi: Likewise.
12477         * doc/posix-functions/*.texi: Likewise.
12478         * doc/glibc-functions/*.texi: Likewise.
12479
12480 2011-07-31  Bruno Haible  <bruno@clisp.org>
12481
12482         snippet/warn-on-use: Fix indentation.
12483         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Fix indentation.
12484
12485 2011-07-25  Jim Meyering  <meyering@redhat.com>
12486
12487         tests: test-update-copyright.sh: remove unnecessary "rm" commands
12488         * tests/test-update-copyright.sh: Remove unused rm -f $TMP.*.bak
12489         commands.
12490
12491 2011-07-27  Jim Meyering  <meyering@redhat.com>
12492
12493         maint.mk: avoid sc_prohibit_always-defined_macros failure in coreutils
12494         * top/maint.mk (gl_extract_significant_defines_): Now that
12495         SA_RESETHAND and SA_RESTART are #defined (albeit conditionally) in
12496         gnulib/lib/signal.in.h, and now that we recommend to
12497         define-if-undefined those two symbols in application code,
12498         we must filter them out of the "significant" list.
12499         This avoids a "make syntax-check" failure in coreutils.
12500
12501 2011-07-26  Eric Blake  <eblake@redhat.com>
12502
12503         warnings: add comments about previous patch
12504         * m4/absolute-header.m4: Document AS_VAR_PUSHDEF limitation.
12505         * m4/include_next.m4: Likewise.
12506         * m4/warn-on-use.m4: Likewise.
12507         * m4/warnings.m4: Likewise, and simplify use.
12508         Suggested by Stefano Lattarini.
12509
12510         include-next, warnings: support older autoconf
12511         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): Use
12512         AS_VAR_PUSHDEF in a way that works with older autoconf.
12513         * m4/warnings.m4 (gl_WARN_ADD): Likewise.
12514         Reported by Daniel P. Berrange.
12515
12516 2011-07-25  Bruno Haible  <bruno@clisp.org>
12517
12518         fseek, ftell: Fix doc.
12519         * doc/posix-functions/fseek.texi: Reword statement about
12520         AC_SYS_LARGEFILE.
12521         * doc/posix-functions/ftell.texi: Likewise.
12522
12523 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12524             Bruno Haible  <bruno@clisp.org>
12525
12526         Add dependencies to the 'largefile' module.
12527         * modules/fopen (Depends-on): Add 'largefile'.
12528         * modules/freopen (Depends-on): Likewise.
12529         * modules/fseeko (Depends-on): Likewise.
12530         * modules/ftello (Depends-on): Likewise.
12531         * modules/glob (Depends-on): Likewise.
12532         * modules/lseek (Depends-on): Likewise.
12533         * modules/lstat (Depends-on): Likewise.
12534         * modules/mkostemp (Depends-on): Likewise.
12535         * modules/mkostemps (Depends-on): Likewise.
12536         * modules/mkstemp (Depends-on): Likewise.
12537         * modules/mkstemps (Depends-on): Likewise.
12538         * modules/open (Depends-on): Likewise.
12539         * modules/openat (Depends-on): Likewise.
12540         * modules/pread (Depends-on): Likewise.
12541         * modules/pwrite (Depends-on): Likewise.
12542         * modules/scandir (Depends-on): Likewise.
12543         * modules/stat (Depends-on): Likewise.
12544         * modules/tmpfile (Depends-on): Likewise.
12545         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Do not require AC_SYS_LARGEFILE,
12546         since the containing module now depends on the largefile module.
12547         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Likewise.
12548         * doc/posix-functions/fopen.texi: Mention that the problem of 32-bit
12549         off_t is fixed by gnulib.
12550         * doc/posix-functions/freopen.texi: Likewise.
12551         * doc/posix-functions/fseeko.texi: Likewise.
12552         * doc/posix-functions/fstatat.texi: Likewise.
12553         * doc/posix-functions/ftello.texi: Likewise.
12554         * doc/posix-functions/glob.texi: Likewise.
12555         * doc/posix-functions/lseek.texi: Likewise.
12556         * doc/posix-functions/lstat.texi: Likewise.
12557         * doc/posix-functions/mkstemp.texi: Likewise.
12558         * doc/posix-functions/open.texi: Likewise.
12559         * doc/posix-functions/openat.texi: Likewise.
12560         * doc/posix-functions/pread.texi: Likewise.
12561         * doc/posix-functions/pwrite.texi: Likewise.
12562         * doc/posix-functions/scandir.texi: Likewise.
12563         * doc/posix-functions/stat.texi: Likewise.
12564         * doc/posix-functions/tmpfile.texi: Likewise.
12565         * doc/glibc-functions/mkostemp.texi: Likewise.
12566         * doc/glibc-functions/mkostemps.texi: Likewise.
12567         * doc/glibc-functions/mkstemps.texi: Likewise.
12568
12569 2011-07-25  Bruno Haible  <bruno@clisp.org>
12570
12571         fcntl: Move AC_LIBOBJ invocation to module description.
12572         * m4/fcntl.m4 (gl_REPLACE_FCNTL): Don't invoke AC_LIBOBJ.
12573         * modules/fcntl (configure.ac): Invoke AC_LIBOBJ.
12574
12575         fcntl: Remove call-in from fchdir.m4.
12576         * m4/fcntl.m4 (gl_FUNC_FCNTL): Conditionally invoke gl_TEST_FCHDIR.
12577         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_FCNTL.
12578
12579         dup3: Remove potential call-in from fchdir.m4.
12580         * m4/dup3.m4 (gl_FUNC_DUP3): Add comment about fchdir.
12581         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Remove comment about dup3.
12582
12583         dup2: Move AC_LIBOBJ invocation to module description.
12584         * m4/dup2.m4 (gl_REPLACE_DUP2): Remove macro.
12585         (gl_FUNC_DUP2): Instead of gl_REPLACE_DUP2, just set REPLACE_DUP2 to 1.
12586         Don't invoke AC_LIBOBJ.
12587         * modules/dup2 (configure.ac): Invoke AC_LIBOBJ.
12588
12589         dup2: Remove call-in from fchdir.m4.
12590         * m4/dup2.m4 (gl_FUNC_DUP2): Conditionally invoke gl_TEST_FCHDIR.
12591         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_DUP2.
12592
12593         fclose: Move AC_LIBOBJ invocation to module description.
12594         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Remove macro.
12595         (gl_FUNC_FCLOSE): Instead of gl_REPLACE_FCLOSE, just set REPLACE_FCLOSE
12596         to 1.
12597         * modules/fclose (configure.ac): Invoke AC_LIBOBJ.
12598
12599         fclose: Remove call-in from close.m4.
12600         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_CLOSE.
12601         * m4/close.m4 (gl_FUNC_CLOSE): Don't invoke gl_REPLACE_FCLOSE.
12602
12603         close: Move AC_LIBOBJ invocation to module description.
12604         * m4/close.m4 (gl_REPLACE_CLOSE): Remove macro.
12605         (gl_FUNC_CLOSE): Instead of gl_REPLACE_CLOSE, just set REPLACE_CLOSE to
12606         1.
12607         * modules/close (configure.ac): Invoke AC_LIBOBJ.
12608
12609         close: Remove call-in from fchdir.m4.
12610         * m4/close.m4 (gl_FUNC_CLOSE): Conditionally invoke gl_TEST_FCHDIR.
12611         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_CLOSE.
12612
12613         open: Move AC_LIBOBJ invocation to module description.
12614         * m4/open.m4 (gl_REPLACE_OPEN): Remove macro.
12615         (gl_FUNC_OPEN): Instead of gl_REPLACE_OPEN, just set REPLACE_OPEN to 1.
12616         * modules/open (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_OPEN.
12617
12618         open: Remove call-in from fchdir.m4.
12619         * m4/open.m4 (gl_FUNC_OPEN): Conditionally invoke gl_TEST_FCHDIR.
12620         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Don't invoke gl_REPLACE_OPEN.
12621
12622         fchdir: Start to remove gl_REPLACE_* idiom.
12623         * m4/fchdir.m4 (gl_TEST_FCHDIR): New macro.
12624         (gl_FUNC_FCHDIR): Invoke it.
12625
12626 2011-07-25  Paul Eggert  <eggert@cs.ucla.edu>
12627
12628         * lib/ftell.c (ftell): Comment out cast.
12629
12630         close: use gl_REPLACE_FCLOSE only if defined
12631         * m4/close.m4 (gl_REPLACE_CLOSE): Use gl_REPLACE_FCLOSE only if it
12632         is defined.  The close module doesn't depend on the fclose module
12633         any more, so gl_REPLACE_CLOSE's existence cannot be assumed.  See
12634         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00392.html>.
12635         I reproduced the problem with "./gnulib-tool --test close sys_socket".
12636
12637 2011-07-24  Jim Meyering  <meyering@redhat.com>
12638
12639         test-select.h: avoid warning when using gcc's -Wmissing-declarations
12640         * tests/test-select.h (test_function): Declare as "static".
12641
12642 2011-07-24  Bruno Haible  <bruno@clisp.org>
12643
12644         doc: Mention the effects of AC_SYS_LARGEFILE.
12645         * doc/posix-functions/aio_cancel.texi: Mention the effects of AC_SYS_LARGEFILE
12646         on this function.
12647         * doc/posix-functions/aio_error.texi: Likewise.
12648         * doc/posix-functions/aio_fsync.texi: Likewise.
12649         * doc/posix-functions/aio_read.texi: Likewise.
12650         * doc/posix-functions/aio_return.texi: Likewise.
12651         * doc/posix-functions/aio_suspend.texi: Likewise.
12652         * doc/posix-functions/aio_write.texi: Likewise.
12653         * doc/posix-functions/fgetpos.texi: Likewise.
12654         * doc/posix-functions/fopen.texi: Likewise.
12655         * doc/posix-functions/freopen.texi: Likewise.
12656         * doc/posix-functions/fsetpos.texi: Likewise.
12657         * doc/posix-functions/fstatvfs.texi: Likewise.
12658         * doc/posix-functions/ftruncate.texi: Likewise.
12659         * doc/posix-functions/ftw.texi: Likewise.
12660         * doc/posix-functions/getrlimit.texi: Likewise.
12661         * doc/posix-functions/glob.texi: Likewise.
12662         * doc/posix-functions/lio_listio.texi: Likewise.
12663         * doc/posix-functions/lockf.texi: Likewise.
12664         * doc/posix-functions/mkstemp.texi: Likewise.
12665         * doc/posix-functions/mmap.texi: Likewise.
12666         * doc/posix-functions/nftw.texi: Likewise.
12667         * doc/posix-functions/openat.texi: Likewise.
12668         * doc/posix-functions/opendir.texi: Likewise.
12669         * doc/posix-functions/posix_fadvise.texi: Likewise.
12670         * doc/posix-functions/posix_fallocate.texi: Likewise.
12671         * doc/posix-functions/pread.texi: Likewise.
12672         * doc/posix-functions/pwrite.texi: Likewise.
12673         * doc/posix-functions/readdir.texi: Likewise.
12674         * doc/posix-functions/readdir_r.texi: Likewise.
12675         * doc/posix-functions/rewinddir.texi: Likewise.
12676         * doc/posix-functions/scandir.texi: Likewise.
12677         * doc/posix-functions/seekdir.texi: Likewise.
12678         * doc/posix-functions/setrlimit.texi: Likewise.
12679         * doc/posix-functions/statvfs.texi: Likewise.
12680         * doc/posix-functions/telldir.texi: Likewise.
12681         * doc/posix-functions/tmpfile.texi: Likewise.
12682         * doc/posix-functions/truncate.texi: Likewise.
12683         * doc/glibc-functions/fallocate.texi: Likewise.
12684         * doc/glibc-functions/fstatfs.texi: Likewise.
12685         * doc/glibc-functions/fts_children.texi: Likewise.
12686         * doc/glibc-functions/fts_read.texi: Likewise.
12687         * doc/glibc-functions/getdirentries.texi: Likewise.
12688         * doc/glibc-functions/mkostemp.texi: Likewise.
12689         * doc/glibc-functions/mkostemps.texi: Likewise.
12690         * doc/glibc-functions/mkstemps.texi: Likewise.
12691         * doc/glibc-functions/preadv.texi: Likewise.
12692         * doc/glibc-functions/pwritev.texi: Likewise.
12693         * doc/glibc-functions/sendfile.texi: Likewise.
12694         * doc/glibc-functions/statfs.texi: Likewise.
12695
12696 2011-07-24  Bruno Haible  <bruno@clisp.org>
12697
12698         doc: Fix typo.
12699         * doc/posix-functions/fstat.texi: Talk about fstat, not stat.
12700
12701 2011-07-24  Bruno Haible  <bruno@clisp.org>
12702
12703         doc: Mention fsusage.
12704         * doc/posix-functions/statvfs.texi: Mention the fsusage module.
12705
12706 2011-07-24  Bruno Haible  <bruno@clisp.org>
12707
12708         doc: Mention new glibc headers and functions.
12709         * doc/glibc-headers/gshadow.texi: New file.
12710         * doc/glibc-functions/endsgent.texi: New file.
12711         * doc/glibc-functions/fgetsgent.texi: New file.
12712         * doc/glibc-functions/fgetsgent_r.texi: New file.
12713         * doc/glibc-functions/getsgent.texi: New file.
12714         * doc/glibc-functions/getsgent_r.texi: New file.
12715         * doc/glibc-functions/getsgnam.texi: New file.
12716         * doc/glibc-functions/getsgnam_r.texi: New file.
12717         * doc/glibc-functions/putsgent.texi: New file.
12718         * doc/glibc-functions/setsgent.texi: New file.
12719         * doc/glibc-functions/sgetsgent.texi: New file.
12720         * doc/glibc-functions/sgetsgent_r.texi: New file.
12721         * doc/glibc-functions/malloc_info.texi: New file.
12722         * doc/glibc-functions/preadv.texi: New file.
12723         * doc/glibc-functions/pwritev.texi: New file.
12724         * doc/glibc-functions/register_printf_modifier.texi: New file.
12725         * doc/glibc-functions/register_printf_specifier.texi: New file.
12726         * doc/glibc-functions/register_printf_type.texi: New file.
12727         * doc/glibc-functions/pthread_attr_getaffinity_np.texi: New file.
12728         * doc/glibc-functions/pthread_attr_setaffinity_np.texi: New file.
12729         * doc/glibc-functions/pthread_getaffinity_np.texi: New file.
12730         * doc/glibc-functions/pthread_getname_np.texi: New file.
12731         * doc/glibc-functions/pthread_mutex_consistent_np.texi: New file.
12732         * doc/glibc-functions/pthread_mutexattr_getrobust_np.texi: New file.
12733         * doc/glibc-functions/pthread_mutexattr_setrobust_np.texi: New file.
12734         * doc/glibc-functions/pthread_setaffinity_np.texi: New file.
12735         * doc/glibc-functions/pthread_setname_np.texi: New file.
12736         * doc/glibc-functions/pthread_sigqueue.texi: New file.
12737         * doc/glibc-functions/pthread_timedjoin_np.texi: New file.
12738         * doc/glibc-functions/pthread_tryjoin_np.texi: New file.
12739         * doc/glibc-functions/qsort_r.texi: New file.
12740         * doc/glibc-functions/quick_exit.texi: New file.
12741         * doc/glibc-functions/syncfs.texi: New file.
12742         * doc/gnulib.texi: Include them.
12743         (Glibc gshadow.h, Glibc sys/uio.h): New sections.
12744         * doc/posix-functions/psiginfo.texi: Fix info about glibc version.
12745         * doc/posix-functions/pthread_mutex_consistent.texi: Likewise.
12746         * doc/posix-functions/pthread_mutexattr_getrobust.texi: Likewise.
12747         * doc/posix-functions/pthread_mutexattr_setrobust.texi: Likewise.
12748         * doc/glibc-functions/execvpe.texi: Likewise.
12749
12750 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12751
12752         ftell: don't include <unistd.h>
12753         * lib/ftell.c: Don't include <unistd.h>.  <stdio.h> is now
12754         guaranteed to define off_t, and the ftell module depends on the
12755         stdio module.
12756
12757         ftell: do not assume wraparound signed arithmetic
12758         * lib/ftell.c: Include <limits.h>.
12759         (ftell): Don't assume wraparound signed arithmetic.
12760
12761 2011-07-24  Bruno Haible  <bruno@clisp.org>
12762
12763         close: No longer depend on module 'fclose'.
12764         * modules/close (Depends-on): Remove fclose.
12765         * NEWS: Mention the change.
12766         Suggested by Sam Steingold <sds@gnu.org>.
12767
12768 2011-07-24  Bruno Haible  <bruno@clisp.org>
12769
12770         fsusage: Enable large volume support on AIX >= 5.2.
12771         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): If 'struct statvfs64' has a
12772         larger f_blocks field than 'struct statvfs', define STAT_STATVFS64
12773         instead of STAT_STATVFS.
12774         * lib/fsusage.c (get_fs_usage) [STAT_STATVFS64]: Use statvfs64.
12775
12776         fsusage: Restore previous behaviour on AIX, Cygwin, Interix.
12777         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Enforce a 64-bit struct statvfs
12778         f_blocks field only on MacOS X.
12779
12780         fsusage: Support large volumes on glibc/Hurd, HP-UX, Solaris, MacOS X.
12781         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Require AC_SYS_LARGEFILE.
12782         * modules/fsusage (Depends-on): Add largefile.
12783
12784 2011-07-24  Paul Eggert  <eggert@cs.ucla.edu>
12785
12786         * README: Modernize discussion of signed integers.
12787         Assuming overflow wraparound is no longer safe.
12788         Mention ones' complement and signed magnitude.
12789
12790 2011-07-22  Bruno Haible  <bruno@clisp.org>
12791
12792         select tests, pselect tests: Refactor.
12793         * tests/test-select.h: New file, extracted from tests/test-select.c.
12794         (select_fn): New type.
12795         (test, do_select, do_select_nowait, do_select_wait, test_tty,
12796         test_connect_first, test_accept_first, test_pair, test_socket_pair,
12797         test_pipe): Add my_select argument.
12798         (test_function): Renamed from main. Add my_select argument.
12799         * tests/test-select.c: Move most code to tests/test-select.h. Include
12800         test-select.h.
12801         * modules/select-tests (Files): Add tests/test-select.h.
12802         * tests/test-pselect.c: Include test-select.h instead of test-select.c.
12803         (my_select, main): New functions.
12804         * modules/pselect-tests (Files): Add tests/test-select.h,
12805         tests/macros.h, tests/signature.h.
12806         (Depends-on): Remove select-tests. Add dependencies of test-select.h.
12807         (configure.ac): Check for <sys/wait.h>.
12808
12809 2011-07-22  Bruno Haible  <bruno@clisp.org>
12810
12811         sys_select tests: Check the signature of FD_*.
12812         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Move
12813         signature tests from here...
12814         * tests/test-sys_select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): ... to
12815         here.
12816         * modules/sys_select-tests (Files): Add tests/signature.h.
12817
12818 2011-07-22  Paul Eggert  <eggert@cs.ucla.edu>
12819
12820         largefile: new module, replacing large-inode
12821         Pádraig Brady suggested this in        <http://debbugs.gnu.org/9140#20>.
12822         * MODULES.html.sh: Add largefile, remove large-inode.
12823         * modules/largefile, m4/largefile.m4: New files.
12824         * modules/large-inode, m4/large-inode.m4: Remove.
12825
12826         fsusage: port to MacOS X 10.7 with 4 TiB file systems
12827         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Reject statvfs
12828         implementations that use only 32 bits to count blocks.
12829         On typical hosts with 1024-byte blocks, this fails with file
12830         systems as small as 4 TiB.  Problem reported by Herb Wartens
12831         <http://debbugs.gnu.org/9140> and this should also fix a similar
12832         problem reported by Tim Spriggs <http://debbugs.gnu.org/7355>.
12833
12834         large-inode: New module
12835         * MODULES.html.sh: Add it.
12836         * modules/large-inode, m4/large-inode.m4: New files.
12837
12838         extensions: Enable extensions on MacOS X 10.5 and later.
12839         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Define _DARWIN_C_SOURCE.
12840
12841 2011-07-22  Kamil Dudka  <kdudka@redhat.com>
12842
12843         file-has-acl: use acl_extended_file_nofollow if available
12844         * lib/acl-internal.h (HAVE_ACL_EXTENDED_FILE): New macro.
12845         (acl_extended_file): New macro.
12846         * lib/file-has-acl.c (file_has_acl): Use acl_extended_file_nofollow.
12847         * m4/acl.m4 (gl_FUNC_ACL): Check for acl_extended_file_nofollow.
12848
12849 2011-07-21  Bruno Haible  <bruno@clisp.org>
12850
12851         Declare system functions in a way that works with C++.
12852         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR) [C++]: In the test program,
12853         declare fdopendir as extern "C".
12854         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS) [C++]: In the test program,
12855         declare frexpl as extern "C".
12856         * m4/getaddrinfo.m4 (gl_GETADDRINFO) [C++]: In the test program,
12857         declare gai_strerror as extern "C".
12858         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME) [C++]: In the test
12859         programs, declare gai_strerror as extern "C".
12860         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R) [C++]: In the test program,
12861         declare getlogin_r as extern "C".
12862         * m4/ioctl.m4 (gl_FUNC_IOCTL) [C++]: In the test program, declare ioctl
12863         as extern "C".
12864         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS) [C++]: In the test program,
12865         declare ldexpl as extern "C".
12866         * m4/logb.m4 (gl_FUNC_LOGB) [C++]: In the test programs, declare logb
12867         as extern "C".
12868         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS) [C++]: In the test
12869         program, declare getmntinfo as extern "C".
12870         * m4/stpncpy.m4 (gl_FUNC_STPNCPY) [C++]: In the test program, declare
12871         stpncpy as extern "C".
12872         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS) [C++]: In the test
12873         program, declare __xpg_strerror_r as extern "C".
12874         * m4/strndup.m4 (gl_FUNC_STRNDUP) [C++]: In the test program, declare
12875         strndup as extern "C".
12876         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT) [C++]: In the test program,
12877         declare memset and bzero as extern "C".
12878         Reported by Sam Steingold <sds@gnu.org>.
12879
12880 2011-07-12  Jim Meyering  <meyering@redhat.com>
12881
12882         maint.mk: prohibit inclusion of "verify.h" without use
12883         * top/maint.mk (sc_prohibit_verify_without_use): New rule.
12884
12885 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12886
12887         timer-time: A new module to check for timer_settime()
12888         * m4/timer_time.m4: Check for the posix function.
12889         * modules/timer-time: Add the new module.
12890         * MODULES.html.sh (Compat checks for POSIX:2008 functions):
12891         Mention it.
12892
12893 2011-07-19  Paul Eggert  <eggert@cs.ucla.edu>
12894             Bruno Haible  <bruno@clisp.org>
12895
12896         pthread_sigmask: assume POSIX threads if --avoid=threadlib
12897         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): If gl_THREADLIB is
12898         not defined, assume POSIX threads and look for pthread_sigmask in
12899         $LIBS, without changing $CPPFLAGS.
12900
12901 2011-07-19  Bruno Haible  <bruno@clisp.org>
12902
12903         strstr: Update cross-compilation guess.
12904         * m4/strstr.m4 (gl_FUNC_STRSTR): On glibc > 2.12 with x86 or x86_64
12905         CPUs, guess no, in view of glibc
12906         BZ #12100 <http://sourceware.org/bugzilla/show_bug.cgi?id=12100>.
12907         Suggested by Eric Blake. Reported by Reuben Thomas.
12908
12909 2011-07-19  Pádraig Brady  <P@draigBrady.com>
12910
12911         getopt-gnu: suppress core dumps from detection code
12912         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Use the nocrash module
12913         to suppress core dumps that may well occur on glibc systems.
12914         * modules/getopt-gnu: Depend on nocrash.
12915
12916 2011-07-16  Paul Eggert  <eggert@cs.ucla.edu>
12917
12918         pthread_sigmask: ensure usleep is declared
12919         * lib/pthread_sigmask.c [PTHREAD_SIGMASK_UNBLOCK_BUG]:
12920         Include <unistd.h>, to declare usleep.  Needed on Solaris 8,
12921
12922 2011-07-15  Paul Eggert  <eggert@cs.ucla.edu>
12923
12924         doc: Document NonStop portability issues.
12925         * doc/posix-functions/sigaction.texi (sigaction):
12926         * doc/posix-headers/signal.texi (signal.h):
12927         Document NonStop.  See Joachim Schmitz in
12928         http://lists.gnu.org/archive/html/bug-coreutils/2011-07/msg00062.html
12929
12930 2011-07-15  Bruno Haible  <bruno@clisp.org>
12931
12932         ffsl, ffsll: Avoid unportable behaviour.
12933         * lib/ffsl.h (FUNC): Use 'unsigned int' instead of 'int'.
12934
12935 2011-07-15  Bruno Haible  <bruno@clisp.org>
12936
12937         ffs: More tests.
12938         * tests/test-ffs.c (NBITS): New macro.
12939         (main): Add more tests.
12940         * tests/test-ffsl.c (NBITS): New macro.
12941         (main): Add more tests.
12942         * tests/test-ffsll.c (NBITS): New macro.
12943         (main): Add more tests.
12944
12945 2011-07-15  Eric Blake  <eblake@redhat.com>
12946
12947         ffsl, ffsll: new modules
12948         * modules/ffsl: New file.
12949         * modules/ffsll: Likewise.
12950         * m4/ffsl.m4: Likewise.
12951         * m4/ffsll.m4: Likewise.
12952         * lib/ffsl.c: Likewise.
12953         * lib/ffsl.h: Likewise.
12954         * lib/ffsll.c: Likewise.
12955         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY)
12956         (gl_HEADER_STRING_H_DEFAULTS): Add defaults.
12957         * modules/string (Makefile.am): Substitute witnesses.
12958         * lib/strings.in.h (ffsl, ffsll): Declare.
12959         * modules/ffsl-tests: New test file.
12960         * modules/ffsll-tests: Likewise.
12961         * tests/test-ffsl.c: Likewise.
12962         * tests/test-ffsll.c: Likewise.
12963         * MODULES.html.sh (Integer arithmetic functions): Mention it.
12964         * doc/glibc-functions/ffsl.texi (ffsl): Likewise.
12965         * doc/glibc-functions/ffsll.texi (ffsll): Likewise.
12966
12967         ffs: fix m4 prerequisite
12968         * m4/ffs.m4 (gl_FUNC_FFS): Require strings.h defaults.
12969
12970         ffs: avoid undefined behavior
12971         * lib/ffs.c (ffs): Provide fallback for non-32-bit int.
12972         * tests/test-ffs.c (naive, main): Avoid signed shifts.
12973         Reported by Bruno Haible.
12974
12975 2011-07-12  Bruno Haible  <bruno@clisp.org>
12976
12977         pthread_sigmask: Rely on module 'threadlib'.
12978         * modules/pthread_sigmask (Depends-on): Add threadlib.
12979         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Assume gl_THREADLIB
12980         is defined.
12981
12982 2011-07-12  Bruno Haible  <bruno@clisp.org>
12983
12984         regex: Depend on module 'strcase'.
12985         * modules/regex (Depends-on): Add strcase, for strcasecmp().
12986
12987 2011-07-12  Jim Meyering  <meyering@redhat.com>
12988
12989         warn-on-use: fix typo in file name
12990         * modules/snippet/warn-on-use (Files): Correct file name:
12991         include /snippet/ component in "build-aux/snippet/warn-on-use.h".
12992
12993 2011-07-12  Bruno Haible  <bruno@clisp.org>
12994
12995         strings: Document module.
12996         * doc/posix-headers/strings.texi: Mention module 'strings'.
12997
12998 2011-07-12  Bruno Haible  <bruno@clisp.org>
12999
13000         Rename module '_Noreturn' to 'snippet/_Noreturn'.
13001         * modules/snippet/_Noreturn: Renamed from modules/_Noreturn.
13002         (Files, Makefile.am): Update.
13003         * build-aux/snippet/_Noreturn.h: Renamed from build-aux/_Noreturn.h.
13004         * modules/stdlib (Depends-on): Update.
13005
13006 2011-07-12  Bruno Haible  <bruno@clisp.org>
13007
13008         * NEWS: Mention the changes.
13009
13010         Rename module 'warn-on-use' to 'snippet/warn-on-use'.
13011         * modules/snippet/warn-on-use: Renamed from modules/warn-on-use.
13012         (Files, Makefile.am): Update.
13013         * build-aux/snippet/warn-on-use.h: Renamed from build-aux/warn-on-use.h.
13014         * modules/arpa_inet (Depends-on): Update.
13015         * modules/ctype (Depends-on): Update.
13016         * modules/dirent (Depends-on): Update.
13017         * modules/fcntl-h (Depends-on): Update.
13018         * modules/glob (Depends-on): Update.
13019         * modules/iconv-h (Depends-on): Update.
13020         * modules/inttypes-incomplete (Depends-on): Update.
13021         * modules/langinfo (Depends-on): Update.
13022         * modules/locale (Depends-on): Update.
13023         * modules/math (Depends-on): Update.
13024         * modules/netdb (Depends-on): Update.
13025         * modules/poll-h (Depends-on): Update.
13026         * modules/pty (Depends-on): Update.
13027         * modules/search (Depends-on): Update.
13028         * modules/signal (Depends-on): Update.
13029         * modules/spawn (Depends-on): Update.
13030         * modules/stdio (Depends-on): Update.
13031         * modules/stdlib (Depends-on): Update.
13032         * modules/string (Depends-on): Update.
13033         * modules/strings (Depends-on): Update.
13034         * modules/sys_file (Depends-on): Update.
13035         * modules/sys_ioctl (Depends-on): Update.
13036         * modules/sys_select (Depends-on): Update.
13037         * modules/sys_socket (Depends-on): Update.
13038         * modules/sys_stat (Depends-on): Update.
13039         * modules/sys_time (Depends-on): Update.
13040         * modules/sys_times (Depends-on): Update.
13041         * modules/sys_utsname (Depends-on): Update.
13042         * modules/sys_wait (Depends-on): Update.
13043         * modules/termios (Depends-on): Update.
13044         * modules/time (Depends-on): Update.
13045         * modules/unistd (Depends-on): Update.
13046         * modules/wchar (Depends-on): Update.
13047         * modules/wctype-h (Depends-on): Update.
13048         * MODULES.html.sh (Support for building libraries and executables):
13049         Update.
13050
13051         Rename module 'unused-parameter' to 'snippet/unused-parameter'.
13052         * modules/snippet/unused-parameter: Renamed from
13053         modules/unused-parameter.
13054         (Files, Makefile.am): Update.
13055         * build-aux/snippet/unused-parameter.h: Renamed from
13056         build-aux/unused-parameter.h.
13057         * modules/selinux-h (Depends-on): Update.
13058         * modules/unistr/base (Depends-on): Update.
13059         * MODULES.html.sh (Core language properties): Update.
13060
13061         Rename module 'link-warning' to 'snippet/link-warning'.
13062         * modules/snippet/link-warning: Renamed from modules/link-warning.
13063         (Files, Makefile.am): Update.
13064         * build-aux/snippet/link-warning.h: Renamed from
13065         build-aux/link-warning.h.
13066         * MODULES.html.sh (Support for building libraries and executables):
13067         Update.
13068
13069         Rename module 'c++defs' to 'snippet/c++defs'.
13070         * modules/snippet/c++defs: Renamed from modules/c++defs.
13071         (Files, Makefile.am): Update.
13072         * build-aux/snippet/c++defs.h: Renamed from build-aux/c++defs.h.
13073         * modules/arpa_inet (Depends-on): Update.
13074         * modules/ctype (Depends-on): Update.
13075         * modules/dirent (Depends-on): Update.
13076         * modules/fcntl-h (Depends-on): Update.
13077         * modules/glob (Depends-on): Update.
13078         * modules/iconv-h (Depends-on): Update.
13079         * modules/langinfo (Depends-on): Update.
13080         * modules/locale (Depends-on): Update.
13081         * modules/math (Depends-on): Update.
13082         * modules/netdb (Depends-on): Update.
13083         * modules/poll-h (Depends-on): Update.
13084         * modules/pty (Depends-on): Update.
13085         * modules/search (Depends-on): Update.
13086         * modules/signal (Depends-on): Update.
13087         * modules/spawn (Depends-on): Update.
13088         * modules/stdio (Depends-on): Update.
13089         * modules/stdlib (Depends-on): Update.
13090         * modules/string (Depends-on): Update.
13091         * modules/strings (Depends-on): Update.
13092         * modules/sys_ioctl (Depends-on): Update.
13093         * modules/sys_select (Depends-on): Update.
13094         * modules/sys_socket (Depends-on): Update.
13095         * modules/sys_stat (Depends-on): Update.
13096         * modules/sys_time (Depends-on): Update.
13097         * modules/sys_wait (Depends-on): Update.
13098         * modules/termios (Depends-on): Update.
13099         * modules/time (Depends-on): Update.
13100         * modules/unistd (Depends-on): Update.
13101         * modules/wchar (Depends-on): Update.
13102         * modules/wctype-h (Depends-on): Update.
13103
13104         Rename module 'arg-nonnull' to 'snippet/arg-nonnull'.
13105         * modules/snippet/arg-nonnull: Renamed from modules/arg-nonnull.
13106         (Files, Makefile.am): Update.
13107         * build-aux/snippet/arg-nonnull.h: Renamed from build-aux/arg-nonnull.h.
13108         * modules/argv-iter (Depends-on): Update.
13109         * modules/arpa_inet (Depends-on): Update.
13110         * modules/dirent (Depends-on): Update.
13111         * modules/fcntl-h (Depends-on): Update.
13112         * modules/fnmatch (Depends-on): Update.
13113         * modules/getopt-posix (Depends-on): Update.
13114         * modules/glob (Depends-on): Update.
13115         * modules/iconv-h (Depends-on): Update.
13116         * modules/inttypes-incomplete (Depends-on): Update.
13117         * modules/locale (Depends-on): Update.
13118         * modules/math (Depends-on): Update.
13119         * modules/netdb (Depends-on): Update.
13120         * modules/search (Depends-on): Update.
13121         * modules/signal (Depends-on): Update.
13122         * modules/spawn (Depends-on): Update.
13123         * modules/stdio (Depends-on): Update.
13124         * modules/stdlib (Depends-on): Update.
13125         * modules/string (Depends-on): Update.
13126         * modules/strings (Depends-on): Update.
13127         * modules/sys_socket (Depends-on): Update.
13128         * modules/sys_stat (Depends-on): Update.
13129         * modules/sys_time (Depends-on): Update.
13130         * modules/sys_times (Depends-on): Update.
13131         * modules/sys_utsname (Depends-on): Update.
13132         * modules/time (Depends-on): Update.
13133         * modules/unistd (Depends-on): Update.
13134         * modules/wchar (Depends-on): Update.
13135         * MODULES.html.sh (Support for building libraries and executables):
13136         Update.
13137
13138 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13139
13140         Improvements on _Noreturn and related modules.
13141
13142         modules/_Exit-tests: test _Noreturn too
13143         * tests/test-_Exit.c (MTA, Charlie): New functions, taken from the
13144         old tests/test-stdnoreturn.c.  This tests the _Noreturn keyword a bit.
13145         (main): Use them.
13146
13147         stdnoreturn, stdnoreturn-tests: remove modules
13148         They're not needed here and a bit premature for use elsewhere.  See
13149         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00209.html>.
13150         * m4/stdnoreturn.m4, modules/stdnoreturn, modules/stdnoreturn-tests:
13151         * tests/test-stdnoreturn.c: Remove files.
13152         * MODULES.html.sh (_Noreturn <stdnoreturn.h>): Remove section.
13153         * lib/openat.h, lib/sigpipe-die.h, lib/xalloc.h, lib/xmemdup0.h:
13154         * lib/xstrtol.h: Use _Noreturn rather than including <stdnoreturn.h>
13155         and using noreturn.
13156         * modules/openat, modules/sigpipe-die, modules/xalloc:
13157         * modules/xmemdup0, modules/xstrtol:
13158         Remove dependency on stdnoreturn.
13159
13160         _Noreturn: Ignore __STDC_VERSION__; observe _MSC_VER.
13161         * build-aux/_Noreturn.h (_Noreturn): Ignore __STDC_VERSION__.
13162         Reparenthesize to avoid GCC warning.
13163         Support Microsoft's syntax.
13164         * m4/gnulib-common.m4 (gl_COMMON_BODY): Likewise.
13165
13166         _Noreturn-tests: remove module
13167         * modules/_Noreturn-tests: Remove.
13168         * modules/stdnoreturn-tests (Files): Remove tests/test-_Noreturn.c.
13169         * tests/test-_Noreturn.c: Remove.
13170         * tests/test-stdnoreturn.c: Merge from the old
13171         tests/test-_Noreturn.c, testing both noreturn and _Noreturn.
13172
13173 2011-07-12  Paul Eggert  <eggert@cs.ucla.edu>
13174
13175         _Noreturn, stdnoreturn, and related modules.
13176
13177         * top/maint.mk: Adjust to new noreturn support.
13178         (gl_extract_significant_defines_): Omit pattern ATTRIBUTE_NORETURN.
13179         (def_sym_regex): Do not remove ATTRIBUTE_NORETURN.
13180
13181         xalloc: use stdnoreturn.h
13182         * lib/xalloc.h: Include <stdnoreturn.h>.
13183         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13184         * modules/xalloc (Depends-on): Add stdnoreturn.
13185
13186         xstrtol: use stdnoreturn.h
13187         * lib/xstrtol.h: Include <stdnoreturn.h>.
13188         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13189         * modules/xstrtol (Depends-on): Add stdnoreturn.
13190
13191         xmemdup0: use stdnoreturn.h
13192         * lib/xmemdup0.h: Include <stdnoreturn.h>.
13193         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13194         * modules/xmemdup0 (Depends-on): Add stdnoreturn.
13195
13196         sigpipe-die: use stdnoreturn.h
13197         * lib/sigpipe-die.h: Include <stdnoreturn.h>.
13198         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13199         * modules/sigpipe-die (Depends-on): Add stdnoreturn.
13200
13201         openat: use stdnoreturn.h
13202         * lib/openat.h: Include <stdnoreturn.h>.
13203         (_GL_ATTRIBUTE_NORETURN): Remove; all uses replaced with noreturn.
13204         * modules/openat (Depends-on): Add stdnoreturn.
13205
13206         * lib/openat-die.c (openat_save_fail): Modernize comment.
13207
13208         * lib/xalloc-die.c (xalloc_die): Modernize comment.
13209
13210         * lib/glthread/thread.h: Modernize comment.
13211
13212         obstack: use _Noreturn
13213         * lib/obstack.c (__attribute__): Remove macro.
13214         (print_and_abort): Use _Noreturn.
13215
13216         c-stack: use _Noreturn
13217         * lib/c-stack.c (die, overflow_handler, segv_handler):
13218         Use _Noreturn rather than __attribute__((noreturn)).
13219
13220         argmatch-tests, exclude_tests: use _Noreturn
13221         * tests/test-argmatch.c, tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN):
13222         Remove.
13223         (ARGMATCH_DIE_DECL): Use _Noreturn instead.
13224
13225         stdlib: use _Noreturn
13226         * lib/stdlib.in.h (_GL_ATTRIBUTE_NORETURN): Remove.
13227         (_Exit): Use _Noreturn rather than _GL_ATTRIBUTE_NORETURN.
13228         * modules/stdlib (Depends-on): Add _Noreturn.
13229         (stdlib.h): Depend on $(_NORETURN_H), and copy it in.
13230
13231         stdnoreturn-tests: new module
13232         * modules/stdnoreturn-tests, tests/test-stdnoreturn.c: New files.
13233
13234         stdnoreturn: new module
13235         * MODULES.html.sh (Noreturn <stdnoreturn.h>): New section.
13236         * m4/stdnoreturn.m4, modules/stdnoreturn: New files.
13237
13238         _Noreturn-tests: new module
13239         * modules/_Noreturn-tests, tests/test-_Noreturn.c: New files.
13240
13241         _Noreturn: new module
13242         * MODULES.html.sh (Support for systems lacking draft ISO C 1X):
13243         New section, mentioning it.
13244         * build-aux/_Noreturn.h, modules/_Noreturn: New files.
13245
13246         * m4/gnulib-common.m4 (gl_COMMON_BODY): Add _Noreturn.
13247
13248 2011-07-11  Eric Blake  <eblake@redhat.com>
13249
13250         ffs: new module
13251         * modules/ffs: New file.
13252         * m4/ffs.m4: Likewise.
13253         * lib/ffs.c: Likewise.
13254         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_DEFAULTS): Add default.
13255         * modules/strings (Makefile.am): Substitute witness.
13256         (Depends-on): Add c++defs.
13257         * lib/strings.in.h (ffs): Declare.
13258         * modules/ffs-tests: New test file.
13259         * tests/test-ffs.c: Test new module.
13260         * MODULES.html.sh (Integer arithmetic functions): Mention it.
13261         * doc/posix-functions/ffs.texi (ffs): Likewise.
13262
13263         regex: avoid compiler warning
13264         * lib/regex.c (includes): Include <strings.h>, for use of
13265         strcasecmp in regcomp.c.
13266         Reported by Joachim Schmitz.
13267
13268 2011-07-09  Paul Eggert  <eggert@cs.ucla.edu>
13269
13270         stdint: respect system's intmax_t if INTMAX_MAX
13271         * lib/stdint.in.h (intmax_t, uintmax_t): If the system defines
13272         INTMAX_MAX, assume its intmax_t is OK.  Similarly for and
13273         uintmax_t.  This is for some Mac OS X builds, where intmax_t is
13274         long but int64_t is long long, and where we will clash with the
13275         system intmax_t if we override it.  See
13276         <http://lists.gnu.org/archive/html/bug-gnulib/2011-07/msg00160.html>.
13277         (INTMAX_C, UINTMAX_C): For consistency, respect the system's
13278         INTMAX_C if INTMAX_MAX and INTMAX_C are both defined, and
13279         similarly for UINTMAX_C.
13280
13281 2011-07-08  Bruno Haible  <bruno@clisp.org>
13282
13283         pthread_sigmask tests: Avoid a compiler warning.
13284         * tests/test-pthread_sigmask1.c (main): Complain if system() returns
13285         non-zero.
13286
13287         sigprocmask tests: A better way to avoid a compiler warning.
13288         * tests/test-sigprocmask.c: Don't include "ignore-value.h".
13289         (main): Complain if system() returns non-zero.
13290         * modules/sigprocmask-tests (Depends-on): Remove ignore-value.
13291
13292 2011-07-08  Bruno Haible  <bruno@clisp.org>
13293
13294         pthread_sigmask: Work around IRIX bug.
13295         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the IRIX
13296         bug.
13297         * lib/pthread_sigmask.c (pthread_sigmask): usleep for some time when
13298         there may be unblocked pending signals.
13299         * doc/posix-functions/pthread_sigmask.texi: Mention the IRIX bug.
13300
13301 2011-07-08  Bruno Haible  <bruno@clisp.org>
13302
13303         pthread_sigmask: Work around Cygwin bug.
13304         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the Cygwin
13305         bug.
13306         * lib/pthread_sigmask.c (pthread_sigmask): Fix the return value from
13307         the system's pthread_sigmask function.
13308         * doc/posix-functions/pthread_sigmask.texi: Mention the Cygwin bug.
13309
13310 2011-07-08  Bruno Haible  <bruno@clisp.org>
13311
13312         pthread_sigmask: Work around bug in single-threaded implementation.
13313         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Test for the
13314         FreeBSD, HP-UX, Solaris bug.
13315         (gl_PREREQ_PTHREAD_SIGMASK): New macro.
13316         * lib/pthread_sigmask.c: Include <stddef.h>.
13317         (pthread_sigmask): If HAVE_PTHREAD_SIGMASK, define as a wrapper around
13318         the system's pthread_sigmask function.
13319         * modules/pthread_sigmask (configure.ac): Invoke
13320         gl_PREREQ_PTHREAD_SIGMASK.
13321         * doc/posix-functions/pthread_sigmask.texi: Mention bug on FreeBSD,
13322         HP-UX, Solaris.
13323
13324 2011-07-08  Eric Blake  <eblake@redhat.com>
13325
13326         test-sigprocmask: avoid compiler warning
13327         * modules/sigprocmask-tests (Depends-on): Add ignore-value.
13328         * tests/test-sigprocmask.c (main): Use it to silence warning.
13329         Reported by Jim Meyering.
13330
13331         test-snprintf: avoid compiler warning
13332         * tests/test-snprintf.c (main): Avoid shadowed declaration.
13333         * tests/test-vsnprintf.c (main): Likewise.
13334         Reported by Jim Meyering.
13335
13336 2011-07-08  Bruno Haible  <bruno@clisp.org>
13337
13338         Tests for module 'pthread_sigmask'.
13339         * modules/pthread_sigmask-tests: New file.
13340         * tests/test-pthread_sigmask1.c: New file, based on
13341         tests/test-sigprocmask.c.
13342         * tests/test-pthread_sigmask2.c: New file.
13343
13344 2011-07-08  Jim Meyering  <meyering@redhat.com>
13345
13346         test-getopt.h: avoid warning about an unused variable
13347         * tests/test-getopt.h (test_getopt): Remove unused variable, "c".
13348
13349 2011-07-07  Jim Meyering  <meyering@redhat.com>
13350
13351         maint: reduce list of files exempt from sc_prohibit_leading_TABs
13352         * Makefile (sc_prohibit_leading_TABs): Don't exempt m4/po.m4,
13353         now that it no longer contains leading TABs.
13354         Remove unused "url=FIXME" statement.
13355
13356 2011-07-08  Paul Eggert  <eggert@cs.ucla.edu>
13357
13358         pthread_sigmask: Assume POSIX when not gl_THREADLIB.
13359         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13360         When gl_THREADLIB is not in use, assume that the POSIX sematics
13361         are desired.  This is better for Emacs, which uses POSIX semantics
13362         on GNUish and/or POSIXish platforms, and does not use threads at
13363         all otherwise.
13364
13365         pthread_sigmask: fix typo when testing for libraries
13366         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK):
13367         AC_LINK_IFELSE, not AC_COMPILE_IFELSE.
13368
13369 2011-07-08  Eric Blake  <eblake@redhat.com>
13370
13371         fts: introduce FTS_NOATIME
13372         * lib/fts_.h (FTS_NOATIME): New bit flag.
13373         (FTS_OPTIONMASK): Adjust.
13374         * lib/fts.c (diropen, fts_open, fts_build): Honor it.
13375         (fd_ring_check): Debug code unconditionally uses O_NOATIME.
13376
13377 2011-07-08  Bruno Haible  <bruno@clisp.org>
13378
13379         Tests for module 'thread'.
13380         * modules/thread-tests: New file.
13381         * tests/test-thread_self.c: New file.
13382         * tests/test-thread_create.cc: New file.
13383
13384 2011-07-08  Bruno Haible  <bruno@clisp.org>
13385
13386         thread: Avoid gcc warnings when using gl_thread_self().
13387         * lib/glthread/thread.h (gl_thread_self): Return a pthread_t, not a
13388         'void *'.
13389         (gl_thread_self_pointer): Update.
13390
13391 2011-07-07  Bruno Haible  <bruno@clisp.org>
13392
13393         signal-c++-tests: Check declaration of pthread_sigmask.
13394         * tests/test-signal-c++.cc: Check declaration of pthread_sigmask.
13395         * modules/signal-c++-tests (Makefile.am): Link test-signal-c++ against
13396         $(LIB_PTHREAD_SIGMASK).
13397
13398 2011-07-07  Bruno Haible  <bruno@clisp.org>
13399
13400         pthread_sigmask: Fix link requirements on OSF/1 5.1 and with pth.
13401         * lib/signal.in.h (pthread_sigmask): Override if
13402         REPLACE_PTHREAD_SIGMASK is 1.
13403         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13404         REPLACE_PTHREAD_SIGMASK.
13405         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Set also
13406         REPLACE_PTHREAD_SIGMASK. Set and substitute LIB_PTHREAD_SIGMASK.
13407         * modules/signal (Makefile.am): Substitute REPLACE_PTHREAD_SIGMASK.
13408         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13409         (Link): Set to $(LIB_PTHREAD_SIGMASK), not $(LIBMULTITHREAD).
13410
13411 2011-07-07  Bruno Haible  <bruno@clisp.org>
13412
13413         pthread_sigmask: Ensure declaration in <signal.h>.
13414         * lib/signal.in.h: On MacOS X, FreeBSD, OpenBSD, OSF/1, Solaris 2.6,
13415         include <pthread.h>.
13416         * doc/posix-functions/pthread_sigmask.texi: Mention the header file
13417         problem.
13418
13419 2011-07-07  Bruno Haible  <bruno@clisp.org>
13420
13421         pthread_sigmask: Document the module.
13422         * doc/posix-functions/pthread_sigmask.texi: Mention the new module.
13423
13424 2011-07-07  Bruno Haible  <bruno@clisp.org>
13425
13426         pthread_sigmask: Follow gnulib conventions.
13427         * m4/pthread_sigmask.m4 (gl_FUNC_PTHREAD_SIGMASK): Renamed from
13428         gl_PTHREAD_SIGMASK.
13429         * modules/pthread_sigmask (configure.ac): Update.
13430
13431 2011-07-07  Bruno Haible  <bruno@clisp.org>
13432
13433         pthread_sigmask: Make declaration C++ safe.
13434         * lib/signal.in.h: In two special conditions, just do an #include_next.
13435         (pthread_sigmask): Test HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13436         Invoke _GL_CXXALIAS_SYS and _GL_CXXALIASWARN.
13437         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
13438         HAVE_PTHREAD_SIGMASK, not REPLACE_PTHREAD_MASK.
13439         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Set HAVE_PTHREAD_SIGMASK,
13440         not REPLACE_PTHREAD_MASK.
13441         * modules/signal (Makefile.am): Substitute HAVE_PTHREAD_SIGMASK,
13442         not REPLACE_PTHREAD_MASK.
13443         * modules/pthread_sigmask (Depends-on, configure.ac): Update condition.
13444
13445 2011-07-07  Bruno Haible  <bruno@clisp.org>
13446
13447         pthread_sigmask: Fix return value.
13448         * lib/signal.in.h (pthread_sigmask): Declare. Don't define as a macro.
13449         * lib/pthread_sigmask.c: New file.
13450         * modules/pthread_sigmask (Files): Add it.
13451         (configure.ac): Invoke AC_LIBOBJ.
13452
13453 2011-07-07  Eric Blake  <eblake@redhat.com>
13454
13455         getopt: more portable argv creation
13456         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Rather than casting away
13457         const, use char arrays rather than strings.
13458         Suggested by Paul Eggert.
13459
13460 2011-07-07  Bruno Haible  <bruno@clisp.org>
13461
13462         Tests for module 'sigprocmask'.
13463         * modules/sigprocmask-tests: New file.
13464         * tests/test-sigprocmask.c: New file.
13465
13466 2011-07-07  Bruno Haible  <bruno@clisp.org>
13467
13468         float tests: Tweak.
13469         * tests/test-float.c (main): Tweak skip message.
13470
13471 2011-07-07  Eric Blake  <eblake@redhat.com>
13472
13473         getopt: avoid compiler warning during configure
13474         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Avoid problems with
13475         assigning string literals to non-const pointer.
13476
13477         getopt-gnu: avoid crash in glibc getopt
13478         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADRS): Detect the problem.
13479         * tests/test-getopt.h (test_getopt): Enhance test.
13480         * tests/test-getopt_long.h (test_getopt_long): Likewise.
13481         * doc/posix-functions/getopt.texi (getopt): Document it.
13482         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
13483         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
13484         Likewise.
13485
13486 2011-07-07  Ulrich Drepper  <drepper@gmail.com>
13487
13488         getopt: handle W; without long options in getopt [BZ #12922]
13489         * lib/getopt.c (_getopt_internal_r): When "W;" is in short options
13490         but no long options are defined, just return 'W'.
13491
13492 2011-07-07  Bruno Haible  <bruno@clisp.org>
13493
13494         Avoid literal tabs.
13495         * m4/po,m4 (AM_PO_SUBDIRS, AM_POSTPROCESS_PO_MAKEFILE): Use a shell
13496         variable containing a tab instead of a literal tab.
13497         Reported by Jim Meyering.
13498
13499 2011-07-07  Bruno Haible  <bruno@clisp.org>
13500
13501         Comments.
13502         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Update comments about mingw.
13503
13504 2011-07-06  Bruno Haible  <bruno@clisp.org>
13505
13506         sys_select: Fix compilation error on mingw, introduced on 2011-06-30.
13507         * lib/sys_select.in.h: Don't include <sys/socket.h>. Instead, include
13508         <winsock2.h>.
13509         (rpl_fd_isset, FD_ISSET): New definitions, copied from
13510         lib/sys_socket.in.h.
13511         (close, gethostname): Hide declarations from <winsock2.h>.
13512         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
13513         listen, recv, send, recvfrom, sendto, setsockopt, shutdown): Likewise.
13514         * lib/sys_socket.in.h (close, gethostname): Tweak indentation.
13515         (select): Don't override if gnulib's <sys/select.h> was already
13516         included.
13517         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
13518         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
13519         setsockopt, shutdown, select): Tweak indentation.
13520
13521 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13522
13523         * modules/pthread_sigmask (configure.ac): gl_SIGNAL_MODULE_INDICATOR
13524         and not gl_SYS_SELECT_MODULE_INDICATOR, fixing a typo exposed
13525         in an application that does not use the sys_select module.
13526
13527 2011-07-06  Erik Faye-Lund  <kusmabite@gmail.com>
13528
13529         poll: do not return 0 on timeout=-1
13530         * lib/poll.c: Loop with yield if no events occured
13531
13532 2011-07-06  Eric Blake  <eblake@redhat.com>
13533
13534         pthread_sigmask: always replace when not using pthread
13535         * m4/pthread_sigmask.m4 (gl_PTHREAD_SIGMASK): Force sigprocmask
13536         replacement when using some threading other than pthread.  Fix
13537         logic bug.
13538
13539 2011-07-06  Bruno Haible  <bruno@clisp.org>
13540
13541         Comments.
13542         * m4/printf.m4: Update comments about mingw.
13543
13544 2011-07-06  Paul Eggert  <eggert@cs.ucla.edu>
13545
13546         sys_select: define sigset_t more portably
13547         * lib/sys_select.in.h: Always include <sys/types.h>, since
13548         we now need sigset_t and mingw defines it there.
13549         Include <signal.h> before split inclusion guard, to avoid
13550         mishaps on Solaris, whose <signal.h> eventually includes us.
13551         * m4/signal_h.m4 (gl_SIGNAL_H): Require gl_CHECK_TYPE_SIGSET_T.
13552         (gl_CHECK_TYPE_SIGSET_T): New macro, most of the contents of
13553         which come from ...
13554         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
13555         gl_CHECK_TYPE_SIGSET_T.
13556         (gl_PREREQ_SIGPROCMASK): Now a no-op, since gl_CHECK_TYPE_SIGSET_T
13557         does the real work.
13558         * modules/sys_select (Depends-on): Add 'signal'.
13559
13560         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Poison pselect.
13561         Suggested by Bruno Haible.
13562
13563         pselect: Use pthread_sigmask, not sigprocmask.
13564         * lib/pselect.c (pselect): Use pthread_sigmask, as it supports
13565         multithreaded apps better than sigprocmask does.
13566         * modules/pselect (Depends-on): Depend on pthread_sigmask, not
13567         sigprocmask directly.
13568
13569 2011-07-05  Paul Eggert  <eggert@cs.ucla.edu>
13570
13571         * lib/pselect.c (pselect): Use plain name, without "rpl_".
13572         Don't #undef,  since we don't need any underlying pselect.
13573         * modules/pselect (configure.ac): Use our pselect.o if !HAVE_PSELECT.
13574         (Depends-on): Add select.
13575         (Link): Add $(LIBSOCKET).
13576         These changes suggested by Bruno Haible.
13577
13578         pselect: document better
13579         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13580         * doc/posix-functions/pselect.texi (pselect): Document new module.
13581
13582         pthread_sigmask: new module
13583         * MODULES.html.sh (Support for systems lacking POSIX:2008): Add it.
13584         * doc/posix-functions/pthread_sigmask.texi: Document new module.
13585         * lib/signal.in.h (pthread_sigmask): Arrange for replacement.
13586         This is done only as a macro; I don't know how well that'll
13587         work for C++.  Move <sys/types.h> include before the include_next,
13588         to avoid mishap on Solaris.
13589         * m4/signal_h.m4 (gl_SIGNAL_H, gl_SIGNAL_H_DEFAULTS): Check for it.
13590         * modules/signal (Makefile.am): Substitute the check's results.
13591         * modules/pthread_sigmask, m4/pthread_sigmask.m4: New files.
13592
13593         test-pselect: new module
13594         * modules/pselect-tests, tests/test-pselect.c: New files.
13595         * tests/test-select.c, tests/test-sys_select-c++.cc:
13596         If TEST_PSELECT is defined, test pselect instead of testing select.
13597
13598         * tests/test-sys_select.c (sigset_t): Test for it, too.
13599         Suggested by Bruno Haible.
13600
13601 2011-07-05  Eric Blake  <eblake@redhat.com>
13602
13603         snprintf: guarantee %1$d, for libintl
13604         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require %1$d support.
13605         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
13606         * doc/posix-functions/snprintf.texi (snprintf): Update.
13607         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
13608         * tests/test-snprintf.c (main): Enhance test.
13609         * tests/test-vsnprintf.c (main): Likewise.
13610
13611 2011-07-05  Jim Meyering  <meyering@redhat.com>
13612
13613         maint: exempt stdio-read.c and stdio-write.c from the cppi check
13614         * Makefile (sc_cpp_indent_check): Exempt stdio-read.c and stdio-write.c
13615         per Bruno's request, to accommodate this idiom (no space after "#")
13616         even when the function is inside an #if block:
13617         char *
13618         gets (char *s)
13619         #undef gets
13620         {
13621           ...
13622         }
13623
13624 2011-07-04  Jim Meyering  <meyering@redhat.com>
13625
13626         maint: indent with spaces, not TABs, and add a rule to check this
13627         * tests/test-userspec.c: Indent with spaces, not TABs.
13628         * tests/test-argp.c: Likewise.
13629         * tests/test-c-stack2.sh: Likewise.
13630         * tests/test-parse-duration.sh: Likewise
13631         * m4/strtod.m4: Likewise.
13632         * m4/alloca.m4: Likewise.
13633         * m4/pselect.m4: Likewise.
13634         * Makefile (sc_prohibit_leading_TABs): Prohibit leading TABs.
13635
13636 2011-07-03  Jim Meyering  <meyering@redhat.com>
13637
13638         maint.mk: correct omissions in prohibit_argmatch_without_use check
13639         This rule would mistakenly report that argmatch.h is included without
13640         use even when both the argmatch and invalid_arg macro were used.
13641         * top/maint.mk (sc_prohibit_argmatch_without_use): Also detect uses
13642         of argmatch and invalid_arg.
13643
13644 2011-07-03  Bruno Haible  <bruno@clisp.org>
13645
13646         Comments about EINTR.
13647         * lib/safe-read.h: Explain the purpose of this module.
13648         * lib/safe-write.h: Likewise.
13649         * doc/posix-functions/read.texi: Mention EINTR and the 'safe-read'
13650         module.
13651         * doc/posix-functions/write.texi: Mention EINTR and the 'safe-write'
13652         module.
13653         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
13654
13655 2011-06-30  Paul Eggert  <eggert@cs.ucla.edu>
13656
13657         xnanosleep: Rewrite to use new dtotimespec module.
13658         It has the conversion code that used to be in xnanosleep.
13659         * lib/xnanosleep.c: Do not include limits.h, stdbool.h, stdio.h,
13660         assert.h, sys/types.h, or intprops.h.  Include timespec.h instead.
13661         (TIME_T_MAX): Remove.
13662         (xnanosleep): Rewrite in terms of dtotimespec.
13663         * modules/xnanosleep (Depends-on): Add dtotimespec.
13664         Remove intprops, stdbool.
13665
13666         timespec-add, timespec-sub: new modules
13667         * lib/timespec.h (timespec_add, timespec_sub): New decls.
13668         * lib/timespec-add.c, lib/timespec-sub.c:
13669         * modules/timespec-add, modules/timespec-sub: New files.
13670
13671         dtotimespec: new module
13672         * lib/timespec.h (dtotimespec): New decl.
13673         * lib/dtotimespec.c, modules/dtotimespec: New files.
13674
13675         * lib/timespec.h (timespec_sign, timespectod): New inline functions.
13676
13677         pselect: new module
13678         * lib/sys_select.in.h: Include <signal.h>, for 'sigset_t'.
13679         (pselect): New decls.
13680         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Require AC_C_RESTRICT,
13681         since the standard pselect decl uses 'restrict'.
13682         (gl_SYS_SELECT_H_DEFAULTS): Add defaults for GNULIB_PSELECT,
13683         HAVE_PSELECT, REPLACE_PSELECT.
13684         * modules/sys_select (sys/select.h): Substitute GNULIB_PSELECT,
13685         HAVE_PSELECT, REPLACE_PSELECT.
13686         * lib/pselect.c, m4/pselect.m4, modules/pselect: New files.
13687
13688         sys_select: don't depend on sys_socket
13689         This is so that Emacs doesn't have to drag in m4/sockpfaf.m4 etc; see
13690         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00358.html>.
13691         This fix works on GNU and GNU-like platforms, but has not been tested
13692         on native Windows.
13693         * lib/sys_select.in.h: Include <sys/socket.h> only if native Windows.
13694         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Do not require
13695         gl_HEADER_SYS_SOCKET.
13696         * modules/sys_select (Files): Add m4/sys_socket_h.m4, for
13697         gl_PREREQ_SYS_H_WINSOCK2.
13698
13699 2011-06-29  Eric Blake  <eblake@redhat.com>
13700
13701         pipe2: fix C89 compile problem
13702         * lib/pipe2.c (pipe2): Avoid C99 array initialization.
13703         Reported by Bruno Haible.
13704
13705         pipe, pipe2: don't corrupt fd on error
13706         * lib/pipe.c (pipe): Leave fd unchanged on error.
13707         * lib/pipe2.c (pipe2): Likewise.
13708         * doc/posix-functions/pipe.texi (pipe): Document cygwin issue.
13709         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
13710
13711 2011-06-27  Paolo Bonzini  <bonzini@gnu.org>
13712
13713         mmap-anon: do not use regular expressions inadvertently
13714         * m4/mmap-anon.m4: Remove trailing period from strings sought
13715         in the output.
13716
13717 2011-06-25  Paul Eggert  <eggert@cs.ucla.edu>
13718
13719         nanosleep: fix integer overflow problem
13720         * lib/nanosleep.c (my_usleep): Don't assume signed integer
13721         arithmetic wraps around on overflow.
13722
13723         nanosleep: simplify carrying
13724         * lib/nanosleep.c (nanosleep): Use the requested tv_nsec for the
13725         first call to the underyling nanosleep, not for the last one.
13726         This doesn't fix any bugs, but it simplifies the computation of
13727         the remaining delay.  Found while auditing integer overflow issues.
13728
13729         dup2: remove test for existence of fcntl
13730         * m4/dup2.m4 (gl_FUNC_DUP2): Use "#ifdef FD_CLOEXEC", not
13731         "#if HAVE_FCNTL", in the configure-time test program.
13732         This removes the need for the AC_CHECK_FUNCS_ONCE([fcntl]),
13733         and therefore speeds up "configure" a bit.  Found while
13734         adding the dup2 module to Emacs.
13735
13736 2011-06-24  Eric Blake  <eblake@redhat.com>
13737
13738         maint.mk: enhance useless header checks
13739         * top/maint.mk (_sc_header_without_use): Check both include
13740         styles.
13741         (sc_prohibit_assert_without_use)
13742         (sc_prohibit_close_stream_without_use)
13743         (sc_prohibit_getopt_without_use)
13744         (sc_prohibit_quotearg_without_use)
13745         (sc_prohibit_quote_without_use)
13746         (sc_prohibit_long_options_without_use)
13747         (sc_prohibit_inttostr_without_use)
13748         (sc_prohibit_ignore_value_without_use)
13749         (sc_prohibit_error_without_use, sc_prohibit_xalloc_without_use)
13750         (sc_prohibit_hash_without_use, sc_prohibit_cloexec_without_use)
13751         (sc_prohibit_posixver_without_use, sc_prohibit_same_without_use)
13752         (sc_prohibit_hash_pjw_without_use)
13753         (sc_prohibit_safe_read_without_use)
13754         (sc_prohibit_argmatch_without_use)
13755         (sc_prohibit_canonicalize_without_use)
13756         (sc_prohibit_root_dev_ino_without_use)
13757         (sc_prohibit_openat_without_use)
13758         (sc_prohibit_c_ctype_without_use)
13759         (sc_prohibit_signal_without_use)
13760         (sc_prohibit_stdio--_without_use)
13761         (sc_prohibit_stdio-safer_without_use)
13762         (sc_prohibit_strings_without_use)
13763         (sc_prohibit_intprops_without_use)
13764         (sc_prohibit_stddef_without_use)
13765         (sc_prohibit_xfreopen_without_use): Update clients.
13766
13767 2011-06-24  Jim Meyering  <meyering@redhat.com>
13768
13769         syntax-check: keep one maint.mk rule in sync with its header
13770         * Makefile (sc_check_sym_list): Add a rule to prevent a repeat
13771         of the bug Eric has just fixed, with today's commit 25e4c2ec.
13772         I prefer to avoid temporary files here, so use <(...), but that
13773         is not supported by /bin/sh, so...
13774         (SHELL): Define to /bin/bash.
13775
13776 2011-06-24  Eric Blake  <eblake@redhat.com>
13777
13778         maint.mk: update sc_prohibit_intprops_without_use
13779         * top/maint.mk (_intprops_names): Match recent changes.
13780
13781 2011-06-24  Bruno Haible  <bruno@clisp.org>
13782
13783         strerror-override: No-op tweak.
13784         * lib/strerror-override.h (strerror_override): Reorder conditions,
13785         for consistency with lib/strerror-override.c.
13786
13787 2011-06-23  Eric Blake  <eblake@redhat.com>
13788
13789         maint.mk: test further PATH_MAX issues
13790         * top/maint.mk (sc_prohibit_path_max_array): Rename...
13791         (sc_prohibit_path_max_allocation): ...and also test alloca.
13792         Suggested by Jim Meyering.
13793
13794 2011-06-22  Eric Blake  <eblake@redhat.com>
13795
13796         maint.mk: add syntax-check to avoid char[PATH_MAX]
13797         * top/maint.mk (sc_prohibit_path_max_array): New rule.
13798
13799         stat: be robust to PATH_MAX definition
13800         * lib/stat.c (rpl_stat): Require reasonable PATH_MAX.
13801         * modules/stat (Depends-on): Add verify.
13802
13803         link: work around IRIX bug
13804         * m4/link.m4 (gl_FUNC_LINK): Expose the bug.
13805         * lib/link.c (rpl_link): Work around it.
13806         * tests/test-link.h (test_link): Enhance test.
13807         * doc/posix-functions/link.texi (link): Document the bug.
13808
13809         getopt: silence clang warning
13810         * lib/getopt.c (_getopt_internal_r): Avoid unlikely NULL
13811         dereference.
13812         Reported by Gustavo Martin Domato.
13813
13814 2011-06-22  Jim Meyering  <meyering@redhat.com>
13815
13816         bootstrap: do not insert a blank line into each .gitignore file
13817         * build-aux/bootstrap (sort_patterns): Filter out blank lines.
13818
13819 2011-06-21  Eric Blake  <eblake@redhat.com>
13820
13821         perror: test for output mismatch
13822         * m4/perror.m4 (gl_FUNC_PERROR): Add test, in order to replace
13823         perror on IRIX.
13824
13825         strerror_r: fix OpenBSD behavior on out-of-range
13826         * lib/strerror_r.c (strerror_r): Always use maximal string.
13827         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
13828
13829         strerror_r: fix OpenBSD behavior on 0
13830         * lib/strerror-override.c (strerror_override): Also override 0
13831         when needed.
13832         * lib/strerror-override.h (strerror_override): Likewise.
13833         * lib/strerror.c (strerror): Simplify, now that 0 override is done
13834         earlier.
13835         * lib/strerror_r.c (strerror_r): Likewise.
13836         * m4/strerror.m4 (gl_FUNC_STRERROR): Split detection of 0
13837         behavior...
13838         (gl_FUNC_STRERROR_0): ...into new macro.
13839         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Replace strerror_r if 0
13840         is overridden.
13841         (gl_FUNC_STRERROR_R_WORKS): Avoid extra tests if 0 is broken.
13842         * modules/strerror-override (Files): Add strerror.m4.
13843         (configure.ac): Also provide override for 0 when needed.
13844         * doc/posix-functions/strerror.texi (strerror): Document this.
13845         * doc/posix-functions/perror.texi (perror): Likewise.
13846
13847         perror: adjust array size
13848         * modules/perror (Depends-on): Add strerror-override.
13849         * lib/perror.c (perror): Use it to avoid magic number.
13850
13851         strerror-override: reduce size
13852         * lib/strerror-override.c (strerror_override): Use fewer lines.
13853
13854 2011-06-20  Bruno Haible  <bruno@clisp.org>
13855
13856         pathmax: Ensure correct value for PATH_MAX on HP-UX.
13857         * lib/pathmax.h (PATH_MAX) [HP-UX]: Define to 1024.
13858
13859 2011-06-20  Paul Eggert  <eggert@cs.ucla.edu>
13860
13861         alloca: port to compilers that can optimize like GCC 4.6.0
13862         * lib/alloca.c (find_stack_direction): New signature, taken from
13863         Autoconf git.  This works with GCC 4.6.0.  This code should never
13864         be used with GCC 4.6.0 itself, as GCC has alloca, but it might
13865         be used with other compilers that optimize as well as GCC 4.6.0 does.
13866         (alloca): Adjust to new signature.
13867         * m4/alloca.m4 (__AC_LIBOBJ_ALLOCA) [Autoconf version < 2.69]:
13868         New macro, which patches Autoconf in a similar way.
13869
13870         c-stack: stop worrying about stack direction
13871         * lib/c-stack.c (find_stack_direction): Remove.
13872         (segv_handler): Don't worry about stack direction growth, as it's
13873         too much of a pain to configure this correctly, given how compilers
13874         are optimizing-away our stack-growth detection code.  Instead, assume
13875         that any access to just before or just after the stack is OK.
13876         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
13877         Don't require AC_FUNC_ALLOCA; no longer needed.
13878
13879 2011-06-20  Eric Blake  <eblake@redhat.com>
13880
13881         test-stat: don't allocate PATH_MAX bytes
13882         * tests/test-stat.h (test_stat_func): Don't stack-allocate a
13883         PATH_MAX-sized buffer.
13884         * modules/openat-tests (Depends-on): Add getcwd-lgpl, drop pathmax.
13885         * modules/stat-tests (Depends-on): Likewise.
13886         * tests/test-fstatat.c (includes): Drop pathmax.h.
13887         * tests/test-stat.c (includes): Likewise.
13888         Reported by Bruno Haible.
13889
13890 2011-06-20  Bruno Haible  <bruno@clisp.org>
13891
13892         float: Work around <float.h> bugs on FreeBSD/x86, AIX with GCC, IRIX.
13893         * lib/float.in.h: Add workarounds for FreeBSD/x86, AIX with GCC, IRIX.
13894         * lib/float.c: New file.
13895         * m4/float_h.m4 (gl_FLOAT_H): Also handle FreeBSD, AIX, IRIX. Set
13896         REPLACE_FLOAT_LDBL.
13897         * modules/float (Files): Add lib/float.c.
13898         (configure.ac): Invoke AC_LIBOBJ.
13899         * doc/posix-headers/float.texi: Mention problems on FreeBSD, AIX, IRIX.
13900
13901 2011-06-20  Bruno Haible  <bruno@clisp.org>
13902
13903         Tests for module 'float'.
13904         * modules/float-tests: New file.
13905         * tests/test-float.c: New file.
13906
13907 2011-06-19  Bruno Haible  <bruno@clisp.org>
13908
13909         isinf: Coding style.
13910         * lib/isinf.c: Use GNU coding style.
13911
13912 2011-06-19  Bruno Haible  <bruno@clisp.org>
13913
13914         linkat test: Avoid test failure on AIX 7.1.
13915         * tests/test-linkat.c (main): Allow EINVAL as alternate error value.
13916         * tests/test-link.h (test_link): Likewise.
13917
13918 2011-06-19  Bruno Haible  <bruno@clisp.org>
13919
13920         pread test: Avoid test failure on OpenBSD 4.9.
13921         * tests/test-pread.c (main): Allow EFBIG instead of EINBAL.
13922
13923 2011-06-19  Bruno Haible  <bruno@clisp.org>
13924
13925         sprintf-posix: Fix test failure on AIX 7.1.
13926         * m4/printf.m4 (gl_PRINTF_PRECISION): Test against AIX bug.
13927         * doc/posix-functions/dprintf.texi: Mention limited precision problem
13928         on AIX.
13929         * doc/posix-functions/fprintf.texi: Likewise.
13930         * doc/posix-functions/printf.texi: Likewise.
13931         * doc/posix-functions/snprintf.texi: Likewise.
13932         * doc/posix-functions/sprintf.texi: Likewise.
13933         * doc/posix-functions/vdprintf.texi: Likewise.
13934         * doc/posix-functions/vfprintf.texi: Likewise.
13935         * doc/posix-functions/vprintf.texi: Likewise.
13936         * doc/posix-functions/vsnprintf.texi: Likewise.
13937         * doc/posix-functions/vsprintf.texi: Likewise.
13938
13939 2011-06-19  Bruno Haible  <bruno@clisp.org>
13940
13941         roundl-ieee: Fix test failure on AIX 7.1.
13942         * m4/roundl.m4 (gl_FUNC_ROUNDL): Test also the sign of roundl (-0.3L).
13943         * doc/posix-functions/roundl.texi: Mention problem with negative
13944         arguments.
13945
13946 2011-06-19  Bruno Haible  <bruno@clisp.org>
13947
13948         round-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13949         * modules/round-ieee (Depends-on): Add floor-ieee, ceil-ieee.
13950         * doc/posix-functions/round.texi: Mention problem with negative
13951         arguments.
13952         * doc/posix-functions/ceil.texi: Mention problem on OSF/1 5.1.
13953
13954 2011-06-19  Bruno Haible  <bruno@clisp.org>
13955
13956         roundf-ieee: Fix test failures on AIX 7.1 and OSF/1 5.1.
13957         * m4/roundf.m4 (gl_FUNC_ROUNDF): Test also the sign of roundf (-0.3f).
13958         * modules/roundf-ieee (Depends-on): Add floorf-ieee, ceilf-ieee.
13959         * doc/posix-functions/roundf.texi: Mention problem with negative
13960         arguments.
13961         * doc/posix-functions/ceilf.texi: Mention problem on OSF/1 5.1.
13962
13963 2011-06-19  Bruno Haible  <bruno@clisp.org>
13964
13965         ceilf-ieee: Work around bug on MacOS X 10.5.
13966         * doc/posix-functions/ceilf.texi: Mention the MacOS X 10.5 problem.
13967
13968         floor*-ieee, ceil*-ieee, trunc*-ieee, round*-ieee: More robust checks.
13969         * m4/floorf.m4 (gl_FUNC_FLOORF): In the test whether the function is
13970         IEEE compliant, avoid compiler optimizations.
13971         * m4/floor.m4 (gl_FUNC_FLOOR): Likewise.
13972         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
13973         * m4/ceil.m4 (gl_FUNC_CEIL): Likewise.
13974         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
13975         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
13976         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
13977         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
13978         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
13979         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
13980         * m4/roundl.m4 (gl_FUNC_ROUNDL): Likewise.
13981
13982 2011-06-19  Bruno Haible  <bruno@clisp.org>
13983
13984         ceilf-ieee: Work around bug on AIX 7.1.
13985         * m4/ceilf.m4 (gl_FUNC_CEILF): Test also the sign of ceilf (-0.3f).
13986         * doc/posix-functions/ceilf.texi: Mention the AIX 7.1 problem.
13987
13988 2011-06-19  Bruno Haible  <bruno@clisp.org>
13989
13990         ceil-ieee: Work around bug on AIX 7.1.
13991         * m4/ceil.m4 (gl_FUNC_CEIL): Test also the sign of ceil (-0.3).
13992         * doc/posix-functions/ceil.texi: Mention the AIX 7.1 problem.
13993
13994 2011-06-18  Bruno Haible  <bruno@clisp.org>
13995
13996         fsync test: Avoid test failure on MacOS X and AIX.
13997         * tests/test-fsync.c (fsync): Allow ENOTSUP and EBADF instead of
13998         EINVAL.
13999
14000 2011-06-18  Bruno Haible  <bruno@clisp.org>
14001
14002         openat, fdopendir tests: Fix link errors.
14003         * modules/openat-tests (Depends-on): Add progname.
14004         * modules/fdopendir-tests (Depends-on): Likewise.
14005         * tests/test-fchownat.c: Include progname.h.
14006         (main): Call set_program_name.
14007         * tests/test-fstatat.c: Include progname.h.
14008         (main): Call set_program_name.
14009         * tests/test-mkdirat.c: Include progname.h.
14010         (main): Call set_program_name.
14011         * tests/test-openat.c: Include progname.h.
14012         (main): Call set_program_name.
14013         * tests/test-unlinkat.c: Include progname.h.
14014         (main): Call set_program_name.
14015         * tests/test-fdopendir.c: Include progname.h.
14016         (main): Call set_program_name.
14017
14018 2011-06-18  Bruno Haible  <bruno@clisp.org>
14019
14020         Doc update.
14021         * doc/posix-functions/pthread_attr_getstack.texi: Update info regarding
14022         HP-UX.
14023         * doc/posix-functions/pthread_attr_setstack.texi: Likewise.
14024
14025 2011-06-18  Bruno Haible  <bruno@clisp.org>
14026
14027         getcwd tests: Avoid compilation error on HP-UX 11.31.
14028         * modules/getcwd-tests (Depends-on): Add pathmax.
14029         * tests/test-getcwd.c: Include pathmax.h.
14030
14031 2011-06-18  Bruno Haible  <bruno@clisp.org>
14032
14033         isfinite, isinf: Fix link error on AIX 6 and 7.
14034         * m4/isfinite.m4 (gl_ISFINITE): When determining whether libm is
14035         needed, also test the macro with a 'float' argument.
14036         * m4/isinf.m4 (gl_ISINF): Likewise.
14037
14038 2011-06-18  Bruno Haible  <bruno@clisp.org>
14039
14040         getloadavg: Don't clobber LIBS. Regression from previous commit.
14041         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Move tests that use
14042         AC_CHECK_LIB from here...
14043         (gl_GETLOADAVG): ... to here, inside the experiment with LIBS.
14044         (gl_GETLOADAVG, gl_PREREQ_GETLOADAVG): Rename gl_have_func to
14045         gl_func_getloadavg_done.
14046         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14047
14048 2011-06-18  Bruno Haible  <bruno@clisp.org>
14049
14050         clean-temp: Improve documentation.
14051         * lib/clean-temp.h: Explain better how to use this module.
14052         Reported by John Darrington <john@darrington.wattle.id.au>.
14053
14054 2011-06-17  Bruno Haible  <bruno@clisp.org>
14055
14056         pread, pwrite: Avoid cc warning on AIX.
14057         * lib/unistd.in.h (pread): Undefine before defining as a macro.
14058         (pwrite): Likewise.
14059
14060 2011-06-17  Bruno Haible  <bruno@clisp.org>
14061
14062         spawn-pipe tests: Fix link error.
14063         * tests/test-spawn-pipe-child.c: Undefine fprintf.
14064         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14065
14066 2011-06-17  Bruno Haible  <bruno@clisp.org>
14067
14068         Tests: Remove unnecessary dependency.
14069         * modules/canonicalize-tests (Depends-on): Remove progname.
14070         * modules/chown-tests (Depends-on): Likewise.
14071         * modules/dirname-tests (Depends-on): Likewise.
14072         * modules/fdopendir-tests (Depends-on): Likewise.
14073         * modules/fdutimensat-tests (Depends-on): Likewise.
14074         * modules/hash-tests (Depends-on): Likewise.
14075         * modules/lchown-tests (Depends-on): Likewise.
14076         * modules/linkat-tests (Depends-on): Likewise.
14077         * modules/renameat-tests (Depends-on): Likewise.
14078         * modules/spawn-pipe-tests (Depends-on): Likewise.
14079         * modules/utimensat-tests (Depends-on): Likewise.
14080
14081 2011-06-17  Bruno Haible  <bruno@clisp.org>
14082
14083         spawn-pipe tests: Fix link error.
14084         * tests/test-spawn-pipe-child.c: Undefine fflush.
14085
14086 2011-06-17  Bruno Haible  <bruno@clisp.org>
14087
14088         Fix tests link errors.
14089         * modules/ceil-ieee-tests (Makefile.am): Use CEIL_LIBM, not FLOOR_LIBM.
14090         * modules/chown-tests (Makefile.am): Don't link test-chown with
14091         LIBINTL.
14092         * modules/lchown-tests (Makefile.am): Don't link test-lchown with
14093         LIBINTL.
14094         * modules/utimens-tests (Makefile.am): Don't link test-utimens with
14095         LIBINTL.
14096         * modules/futimens-tests (Makefile.am): Don't link test-futimens with
14097         LIBINTL.
14098
14099 2011-06-16  Bruno Haible  <bruno@clisp.org>
14100
14101         crypto/gc-sha1: Fix recent regression.
14102         * modules/crypto/gc-sha1 (configure.ac): Invoke AC_LIBOBJ here.
14103         * m4/gc-sha1.m4 (gl_GC_SHA1): Don't invoke gl_SHA1.
14104
14105         crypto/gc-md5: Fix recent regression.
14106         * modules/crypto/gc-md5 (configure.ac): Invoke AC_LIBOBJ here.
14107
14108         crypto/gc-md4: Fix recent regression.
14109         * modules/crypto/gc-md4 (configure.ac): Invoke AC_LIBOBJ here.
14110         * m4/md4.m4 (gl_MD4): Ensure the expansion is non-empty.
14111
14112         crypto/gc-arctwo: Fix recent regression.
14113         * modules/crypto/gc-arctwo (configure.ac): Invoke AC_LIBOBJ here.
14114         * m4/arctwo.m4 (gl_ARCTWO): Ensure the expansion is non-empty.
14115
14116         crypto/gc-rijndael: Fix recent regression.
14117         * modules/crypto/gc-rijndael (Files): Remove m4/rijndael.m4.
14118         (configure.ac): Invoke AC_LIBOBJ here.
14119         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Don't invoke gl_RIJNDAEL.
14120         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14121
14122         crypto/gc-hmac-sha1: Fix recent regression.
14123         * modules/crypto/gc-hmac-sha1 (Files): Remove m4/hmac-sha1.m4.
14124         (configure.ac): Invoke AC_LIBOBJ here.
14125         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Don't invoke gl_HMAC_SHA1.
14126         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14127
14128         crypto/gc-hmac-md5: Fix recent regression.
14129         * modules/crypto/gc-hmac-md5 (Files): Remove m4/hmac-md5.m4.
14130         (configure.ac): Invoke AC_LIBOBJ here.
14131         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Don't invoke gl_HMAC_MD5.
14132         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14133
14134         crypto/gc-des: Fix recent regression.
14135         * modules/crypto/gc-des (Files): Remove m4/des.m4.
14136         (configure.ac): Invoke AC_LIBOBJ here.
14137         * m4/gc-des.m4 (gl_GC_DES): Don't invoke gl_DES.
14138         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14139
14140         crypto/gc-arcfour: Fix recent regression.
14141         * modules/crypto/gc-arcfour (Files): Remove m4/arcfour.m4.
14142         (configure.ac): Invoke AC_LIBOBJ here.
14143         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Don't invoke gl_ARCFOUR.
14144         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
14145
14146 2011-06-16  Paul Eggert  <eggert@cs.ucla.edu>
14147
14148         * m4/lstat.m4 (gl_FUNC_LSTAT): Fix typo in prerequisite.
14149         After the 2011-05-21 change, this macro requires
14150         gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, not
14151         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
14152
14153 2011-06-16  Bruno Haible  <bruno@clisp.org>
14154
14155         fprintftime: Move AC_LIBOBJ invocations to module description.
14156         * m4/fprintftime.m4: Remove file.
14157         * modules/fprintftime (Files): Remove m4/fprintftime.m4.
14158         (configure.ac): Remove gl_FPRINTFTIME call.
14159         (Makefile.am): Augment lib_SOURCES.
14160         Reported by Jim Meyering.
14161
14162 2011-06-16  Bruno Haible  <bruno@clisp.org>
14163
14164         tmpfile-safer: Finish 2011-05-23 commit.
14165         * m4/stdio-safer.m4: Really remove file.
14166         Reported by Jim Meyering.
14167
14168 2011-06-16  Bruno Haible  <bruno@clisp.org>
14169
14170         syntax-check: Fix typo.
14171         * Makefile (allow_AC_LIBOBJ): Mention printf-posix-rpl.m4, not
14172         printf-posix.m4.
14173         Reported by Jim Meyering.
14174
14175 2011-06-13  Jim Meyering  <meyering@redhat.com>
14176
14177         syntax-check: add a rule to help enforce the no-AC_LIBOBJ-in-m4/ policy
14178         * Makefile (sc_prohibit_AC_LIBOBJ_in_m4): New rule.
14179
14180 2011-05-23  Bruno Haible  <bruno@clisp.org>
14181
14182         yesno: Move AC_LIBOBJ invocations to module description.
14183         * m4/yesno.m4 (gl_YESNO): Remove AC_LIBOBJ invocation.
14184         * modules/yesno (Makefile.am): Augment lib_SOURCES.
14185
14186 2011-05-23  Bruno Haible  <bruno@clisp.org>
14187
14188         xstrtol: Move AC_LIBOBJ invocations to module description.
14189         * m4/xstrtol.m4 (gl_XSTRTOL): Remove AC_LIBOBJ invocations.
14190         * modules/xstrtol (Makefile.am): Augment lib_SOURCES.
14191
14192 2011-05-23  Bruno Haible  <bruno@clisp.org>
14193
14194         xstrtold: Move AC_LIBOBJ invocations to module description.
14195         * m4/xstrtod.m4 (gl_XSTRTOLD): Remove AC_LIBOBJ invocation.
14196         * modules/xstrtold (Makefile.am): Augment lib_SOURCES.
14197
14198 2011-05-23  Bruno Haible  <bruno@clisp.org>
14199
14200         xstrtod: Move AC_LIBOBJ invocations to module description.
14201         * m4/xstrtod.m4 (gl_XSTRTOD): Remove AC_LIBOBJ invocation.
14202         * modules/xstrtod (Makefile.am): Augment lib_SOURCES.
14203
14204 2011-05-23  Bruno Haible  <bruno@clisp.org>
14205
14206         xnanosleep: Move AC_LIBOBJ invocations to module description.
14207         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove AC_LIBOBJ invocation.
14208         * modules/xnanosleep (Makefile.am): Augment lib_SOURCES.
14209
14210 2011-05-23  Bruno Haible  <bruno@clisp.org>
14211
14212         xgetcwd: Move AC_LIBOBJ invocations to module description.
14213         * m4/xgetcwd.m4 (gl_XGETCWD): Remove AC_LIBOBJ invocation.
14214         * modules/xgetcwd (Makefile.am): Augment lib_SOURCES.
14215
14216 2011-05-23  Bruno Haible  <bruno@clisp.org>
14217
14218         xalloc: Move AC_LIBOBJ invocations to module description.
14219         * m4/xalloc.m4 (gl_XALLOC): Remove AC_LIBOBJ invocation.
14220         * modules/xalloc (Makefile.am): Augment lib_SOURCES.
14221
14222 2011-05-23  Bruno Haible  <bruno@clisp.org>
14223
14224         write-any-file: Move AC_LIBOBJ invocations to module description.
14225         * m4/write-any-file.m4 (gl_WRITE_ANY_FILE): Remove AC_LIBOBJ
14226         invocation.
14227         * modules/write-any-file (Makefile.am): Augment lib_SOURCES.
14228
14229 2011-05-23  Bruno Haible  <bruno@clisp.org>
14230
14231         utimens: Move AC_LIBOBJ invocations to module description.
14232         * m4/utimens.m4 (gl_UTIMENS): Remove AC_LIBOBJ invocation.
14233         * modules/utimens (Makefile.am): Augment lib_SOURCES.
14234
14235 2011-05-23  Bruno Haible  <bruno@clisp.org>
14236
14237         utimecmp: Move AC_LIBOBJ invocations to module description.
14238         * m4/utimecmp.m4 (gl_UTIMECMP): Remove AC_LIBOBJ invocation.
14239         * modules/utimecmp (Makefile.am): Augment lib_SOURCES.
14240
14241 2011-05-23  Bruno Haible  <bruno@clisp.org>
14242
14243         userspec: Move AC_LIBOBJ invocations to module description.
14244         * m4/userspec.m4 (gl_USERSPEC): Remove AC_LIBOBJ invocation.
14245         * modules/userspec (Makefile.am): Augment lib_SOURCES.
14246
14247 2011-05-23  Bruno Haible  <bruno@clisp.org>
14248
14249         unlinkdir: Move AC_LIBOBJ invocations to module description.
14250         * m4/unlinkdir.m4 (gl_UNLINKDIR): Remove AC_LIBOBJ invocation.
14251         * modules/unlinkdir (Makefile.am): Augment lib_SOURCES.
14252
14253 2011-05-23  Bruno Haible  <bruno@clisp.org>
14254
14255         unistd-safer: Move AC_LIBOBJ invocations to module description.
14256         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Remove AC_LIBOBJ invocations.
14257         * modules/unistd-safer (Makefile.am): Augment lib_SOURCES.
14258
14259 2011-05-23  Bruno Haible  <bruno@clisp.org>
14260
14261         tempname: Move AC_LIBOBJ invocations to module description.
14262         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Remove AC_LIBOBJ invocation.
14263         * modules/tempname (Makefile.am): Augment lib_SOURCES.
14264
14265 2011-05-23  Bruno Haible  <bruno@clisp.org>
14266
14267         strftime: Move AC_LIBOBJ invocations to module description.
14268         * m4/strftime.m4 (gl_FUNC_STRFTIME): Remove AC_LIBOBJ invocation.
14269         * modules/strftime (Makefile.am): Augment lib_SOURCES.
14270
14271 2011-05-23  Bruno Haible  <bruno@clisp.org>
14272
14273         stdlib-safer: Move AC_LIBOBJ invocations to module description.
14274         * m4/stdlib-safer.m4: Remove file.
14275         * modules/stdlib-safer (Files): Remove m4/stdlib-safer.m4.
14276         (configure.ac): Remove gl_STDLIB_SAFER call.
14277         (Makefile.am): Augment lib_SOURCES.
14278
14279 2011-05-23  Bruno Haible  <bruno@clisp.org>
14280
14281         tmpfile-safer: Move AC_LIBOBJ invocations to module description.
14282         * m4/stdio-safer.m4: Remove file.
14283         * modules/tmpfile-safer (Files): Remove m4/stdio-safer.m4.
14284         (configure.ac): Remove gl_TMPFILE_SAFER call.
14285         (Makefile.am): Augment lib_SOURCES.
14286
14287 2011-05-23  Bruno Haible  <bruno@clisp.org>
14288
14289         popen-safer: Move AC_LIBOBJ invocations to module description.
14290         * m4/stdio-safer.m4 (gl_POPEN_SAFER): Remove macro.
14291         * modules/popen-safer (Files): Remove m4/stdio-safer.m4.
14292         (configure.ac): Remove gl_POPEN_SAFER call.
14293         (Makefile.am): Augment lib_SOURCES.
14294
14295 2011-05-23  Bruno Haible  <bruno@clisp.org>
14296
14297         freopen-safer: Move AC_LIBOBJ invocations to module description.
14298         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): Remove macro.
14299         * modules/freopen-safer (Files): Remove m4/stdio-safer.m4.
14300         (configure.ac): Remove gl_FREOPEN_SAFER call.
14301         (Makefile.am): Augment lib_SOURCES.
14302
14303 2011-05-23  Bruno Haible  <bruno@clisp.org>
14304
14305         fopen-safer: Move AC_LIBOBJ invocations to module description.
14306         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove macro.
14307         * modules/fopen-safer (Files): Remove m4/stdio-safer.m4.
14308         (configure.ac): Remove gl_FOPEN_SAFER call.
14309         (Makefile.am): Augment lib_SOURCES.
14310
14311 2011-05-23  Bruno Haible  <bruno@clisp.org>
14312
14313         crypto/sha512: Move AC_LIBOBJ invocations to module description.
14314         * m4/sha512.m4 (gl_SHA512): Remove AC_LIBOBJ invocation.
14315         * modules/crypto/sha512 (Makefile.am): Augment lib_SOURCES.
14316
14317 2011-05-23  Bruno Haible  <bruno@clisp.org>
14318
14319         crypto/sha256: Move AC_LIBOBJ invocations to module description.
14320         * m4/sha256.m4 (gl_SHA256): Remove AC_LIBOBJ invocation.
14321         * modules/crypto/sha256 (Makefile.am): Augment lib_SOURCES.
14322
14323 2011-05-23  Bruno Haible  <bruno@clisp.org>
14324
14325         crypto/sha1: Move AC_LIBOBJ invocations to module description.
14326         * m4/sha1.m4 (gl_SHA1): Remove AC_LIBOBJ invocation.
14327         * modules/crypto/sha1 (Makefile.am): Augment lib_SOURCES.
14328
14329 2011-05-23  Bruno Haible  <bruno@clisp.org>
14330
14331         settime: Move AC_LIBOBJ invocations to module description.
14332         * m4/settime.m4 (gl_SETTIME): Remove AC_LIBOBJ invocation.
14333         * modules/settime (Makefile.am): Augment lib_SOURCES.
14334
14335 2011-05-23  Bruno Haible  <bruno@clisp.org>
14336
14337         savedir: Move AC_LIBOBJ invocations to module description.
14338         * m4/savedir.m4 (gl_SAVEDIR): Remove AC_LIBOBJ invocation.
14339         * modules/savedir (Makefile.am): Augment lib_SOURCES.
14340
14341 2011-05-23  Bruno Haible  <bruno@clisp.org>
14342
14343         save-cwd: Move AC_LIBOBJ invocations to module description.
14344         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove AC_LIBOBJ invocation.
14345         * modules/save-cwd (Makefile.am): Augment lib_SOURCES.
14346
14347 2011-05-23  Bruno Haible  <bruno@clisp.org>
14348
14349         same: Move AC_LIBOBJ invocations to module description.
14350         * m4/same.m4 (gl_SAME): Remove AC_LIBOBJ invocation.
14351         * modules/same (Makefile.am): Augment lib_SOURCES.
14352
14353 2011-05-23  Bruno Haible  <bruno@clisp.org>
14354
14355         safe-write: Move AC_LIBOBJ invocations to module description.
14356         * m4/safe-write.m4 (gl_SAFE_WRITE): Remove macro.
14357         * modules/safe-write (configure.ac): Invoke gl_PREREQ_SAFE_WRITE
14358         instead of gl_SAFE_WRITE.
14359         (Makefile.am): Augment lib_SOURCES.
14360
14361 2011-05-23  Bruno Haible  <bruno@clisp.org>
14362
14363         safe-read: Move AC_LIBOBJ invocations to module description.
14364         * m4/safe-read.m4 (gl_SAFE_READ): Remove macro.
14365         * modules/safe-read (configure.ac): Invoke gl_PREREQ_SAFE_READ instead
14366         of gl_SAFE_READ.
14367         (Makefile.am): Augment lib_SOURCES.
14368
14369 2011-05-23  Bruno Haible  <bruno@clisp.org>
14370
14371         safe-alloc: Move AC_LIBOBJ invocations to module description.
14372         * m4/safe-alloc.m4 (gl_SAFE_ALLOC): Remove AC_LIBOBJ invocation.
14373         * modules/safe-alloc (Makefile.am): Augment lib_SOURCES.
14374
14375 2011-05-23  Bruno Haible  <bruno@clisp.org>
14376
14377         crypto/rijndael: Move AC_LIBOBJ invocations to module description.
14378         * m4/rijndael.m4: Remove file.
14379         * modules/crypto/rijndael (Files): Remove it.
14380         (configure.ac): Remove gl_RIJNDAEL call.
14381         (Makefile.am): Augment lib_SOURCES.
14382
14383 2011-05-23  Bruno Haible  <bruno@clisp.org>
14384
14385         readtokens: Move AC_LIBOBJ invocations to module description.
14386         * m4/readtokens.m4 (gl_READTOKENS): Remove AC_LIBOBJ invocation.
14387         * modules/readtokens (Makefile.am): Augment lib_SOURCES.
14388
14389 2011-05-23  Bruno Haible  <bruno@clisp.org>
14390
14391         read-file: Move AC_LIBOBJ invocations to module description.
14392         * m4/read-file.m4 (gl_FUNC_READ_FILE): Remove macro.
14393         * modules/read-file (configure.ac): Invoke gl_PREREQ_READ_FILE instead
14394         of gl_FUNC_READ_FILE.
14395         (Makefile.am): Augment lib_SOURCES.
14396
14397 2011-05-23  Bruno Haible  <bruno@clisp.org>
14398
14399         quotearg: Move AC_LIBOBJ invocations to module description.
14400         * m4/quotearg.m4 (gl_QUOTEARG): Remove AC_LIBOBJ invocation.
14401         * modules/quotearg (Makefile.am): Augment lib_SOURCES.
14402
14403 2011-05-23  Bruno Haible  <bruno@clisp.org>
14404
14405         quote: Move AC_LIBOBJ invocations to module description.
14406         * m4/quote.m4 (gl_QUOTE): Remove AC_LIBOBJ invocation.
14407         * modules/quote (Makefile.am): Augment lib_SOURCES.
14408
14409 2011-05-23  Bruno Haible  <bruno@clisp.org>
14410
14411         posixver: Move AC_LIBOBJ invocations to module description.
14412         * m4/posixver.m4 (gl_POSIXVER): Remove AC_LIBOBJ invocation.
14413         * modules/posixver (Makefile.am): Augment lib_SOURCES.
14414
14415 2011-05-23  Bruno Haible  <bruno@clisp.org>
14416
14417         posixtm: Move AC_LIBOBJ invocations to module description.
14418         * m4/posixtm.m4 (gl_POSIXTM): Remove AC_LIBOBJ invocation.
14419         * modules/posixtm (Makefile.am): Augment lib_SOURCES.
14420
14421 2011-05-23  Bruno Haible  <bruno@clisp.org>
14422
14423         physmem: Move AC_LIBOBJ invocations to module description.
14424         * m4/physmem.m4 (gl_PHYSMEM): Remove AC_LIBOBJ invocation.
14425         * modules/physmem (Makefile.am): Augment lib_SOURCES.
14426
14427 2011-05-23  Bruno Haible  <bruno@clisp.org>
14428
14429         pagealign_alloc: Move AC_LIBOBJ invocations to module description.
14430         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Remove AC_LIBOBJ
14431         invocation.
14432         * modules/pagealign_alloc (Makefile.am): Augment lib_SOURCES.
14433
14434 2011-05-23  Bruno Haible  <bruno@clisp.org>
14435
14436         mpsort: Move AC_LIBOBJ invocations to module description.
14437         * m4/mpsort.m4 (gl_MPSORT): Remove AC_LIBOBJ invocation.
14438         * modules/mpsort (Makefile.am): Augment lib_SOURCES.
14439
14440 2011-05-23  Bruno Haible  <bruno@clisp.org>
14441
14442         modechange: Move AC_LIBOBJ invocations to module description.
14443         * m4/modechange.m4 (gl_MODECHANGE): Remove AC_LIBOBJ invocation.
14444         * modules/modechange (Makefile.am): Augment lib_SOURCES.
14445
14446 2011-05-23  Bruno Haible  <bruno@clisp.org>
14447
14448         mkdir-p: Move AC_LIBOBJ invocations to module description.
14449         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Remove AC_LIBOBJ invocations.
14450         * modules/mkdir-p (Makefile.am): Augment lib_SOURCES.
14451
14452 2011-05-23  Bruno Haible  <bruno@clisp.org>
14453
14454         mkancesdirs: Move AC_LIBOBJ invocations to module description.
14455         * m4/mkancesdirs.m4 (gl_MKANCESDIRS): Remove AC_LIBOBJ invocation.
14456         * modules/mkancesdirs (Makefile.am): Augment lib_SOURCES.
14457
14458 2011-05-23  Bruno Haible  <bruno@clisp.org>
14459
14460         mgetgroups: Move AC_LIBOBJ invocations to module description.
14461         * m4/mgetgroups.m4 (gl_MGETGROUPS): Remove AC_LIBOBJ invocation.
14462         * modules/mgetgroups (Makefile.am): Augment lib_SOURCES.
14463
14464 2011-05-23  Bruno Haible  <bruno@clisp.org>
14465
14466         memxor: Move AC_LIBOBJ invocations to module description.
14467         * m4/memxor.m4 (gl_MEMXOR): Remove AC_LIBOBJ invocation.
14468         * modules/memxor (Makefile.am): Augment lib_SOURCES.
14469
14470 2011-05-23  Bruno Haible  <bruno@clisp.org>
14471
14472         memcoll: Move AC_LIBOBJ invocations to module description.
14473         * m4/memcoll.m4 (gl_MEMCOLL): Remove AC_LIBOBJ invocation.
14474         * modules/memcoll (Makefile.am): Augment lib_SOURCES.
14475
14476 2011-05-23  Bruno Haible  <bruno@clisp.org>
14477
14478         memcasecmp: Move AC_LIBOBJ invocations to module description.
14479         * m4/memcasecmp.m4 (gl_MEMCASECMP): Remove AC_LIBOBJ invocation.
14480         * modules/memcasecmp (Makefile.am): Augment lib_SOURCES.
14481
14482 2011-05-23  Bruno Haible  <bruno@clisp.org>
14483
14484         crypto/md5: Move AC_LIBOBJ invocations to module description.
14485         * m4/md5.m4 (gl_MD5): Remove AC_LIBOBJ invocation.
14486         * modules/crypto/md5 (Makefile.am): Augment lib_SOURCES.
14487
14488 2011-05-23  Bruno Haible  <bruno@clisp.org>
14489
14490         crypto/md4: Move AC_LIBOBJ invocations to module description.
14491         * m4/md4.m4 (gl_MD4): Remove AC_LIBOBJ invocation.
14492         * modules/crypto/md4 (Makefile.am): Augment lib_SOURCES.
14493
14494 2011-05-23  Bruno Haible  <bruno@clisp.org>
14495
14496         crypto/md2: Move AC_LIBOBJ invocations to module description.
14497         * m4/md2.m4: Remove file.
14498         * modules/crypto/md2 (Files): Remove it.
14499         (configure.ac): Remove gl_MD2 call.
14500         (Makefile.am): Augment lib_SOURCES.
14501
14502 2011-05-23  Bruno Haible  <bruno@clisp.org>
14503
14504         long-options: Move AC_LIBOBJ invocations to module description.
14505         * m4/long-options.m4: Remove file.
14506         * modules/long-options (Files): Remove it.
14507         (configure.ac): Remove gl_LONG_OPTIONS call.
14508         (Makefile.am): Augment lib_SOURCES.
14509
14510 2011-05-23  Bruno Haible  <bruno@clisp.org>
14511
14512         i-ring: Move AC_LIBOBJ invocations to module description.
14513         * m4/i-ring.m4 (gl_I_RING): Remove AC_LIBOBJ invocation.
14514         * modules/i-ring (Makefile.am): Augment lib_SOURCES.
14515
14516 2011-05-23  Bruno Haible  <bruno@clisp.org>
14517
14518         idcache: Move AC_LIBOBJ invocations to module description.
14519         * m4/idcache.m4 (gl_IDCACHE): Remove AC_LIBOBJ invocation.
14520         * modules/idcache (Makefile.am): Augment lib_SOURCES.
14521
14522 2011-05-23  Bruno Haible  <bruno@clisp.org>
14523
14524         human: Move AC_LIBOBJ invocations to module description.
14525         * m4/human.m4 (gl_HUMAN): Remove AC_LIBOBJ invocation.
14526         * modules/human (Makefile.am): Augment lib_SOURCES.
14527
14528 2011-05-23  Bruno Haible  <bruno@clisp.org>
14529
14530         crypto/hmac-sha1: Move AC_LIBOBJ invocations to module description.
14531         * m4/hmac-sha1.m4: Remove file.
14532         * modules/crypto/hmac-sha1 (Files): Remove it.
14533         (configure.ac): Remove gl_HMAC_SHA1 call.
14534         (Makefile.am): Augment lib_SOURCES.
14535
14536 2011-05-23  Bruno Haible  <bruno@clisp.org>
14537
14538         crypto/hmac-md5: Move AC_LIBOBJ invocations to module description.
14539         * m4/hmac-md5.m4: Remove file.
14540         * modules/crypto/hmac-md5 (Files): Remove it.
14541         (configure.ac): Remove gl_HMAC_MD5 call.
14542         (Makefile.am): Augment lib_SOURCES.
14543
14544 2011-05-23  Bruno Haible  <bruno@clisp.org>
14545
14546         hash: Move AC_LIBOBJ invocations to module description.
14547         * m4/hash.m4: Remove file.
14548         * modules/hash (Files): Remove it.
14549         (configure.ac): Remove gl_HASH call.
14550         (Makefile.am): Augment lib_SOURCES.
14551
14552 2011-05-23  Bruno Haible  <bruno@clisp.org>
14553
14554         hard-locale: Move AC_LIBOBJ invocations to module description.
14555         * m4/hard-locale.m4 (gl_HARD_LOCALE): Remove AC_LIBOBJ invocation.
14556         * modules/hard-locale (Makefile.am): Augment lib_SOURCES.
14557
14558 2011-05-23  Bruno Haible  <bruno@clisp.org>
14559
14560         getugroups: Move AC_LIBOBJ invocations to module description.
14561         * m4/getugroups.m4 (gl_GETUGROUPS): Remove AC_LIBOBJ invocation.
14562         * modules/getugroups (Makefile.am): Augment lib_SOURCES.
14563
14564 2011-05-23  Bruno Haible  <bruno@clisp.org>
14565
14566         gettime: Move AC_LIBOBJ invocations to module description.
14567         * m4/gettime.m4 (gl_GETTIME): Remove AC_LIBOBJ invocation.
14568         * modules/gettime (Makefile.am): Augment lib_SOURCES.
14569
14570 2011-05-23  Bruno Haible  <bruno@clisp.org>
14571
14572         getndelim2: Move AC_LIBOBJ invocations to module description.
14573         * m4/getndelim2.m4 (gl_GETNDELIM2): Remove AC_LIBOBJ invocation.
14574         * modules/getndelim2 (Makefile.am): Augment lib_SOURCES.
14575
14576 2011-05-23  Bruno Haible  <bruno@clisp.org>
14577
14578         crypto/gc-pbkdf2-sha1: Move AC_LIBOBJ invocations to module description.
14579         * m4/gc-pbkdf2-sha1.m4: Remove file.
14580         * modules/crypto/gc-pbkdf2-sha1 (Files): Remove it.
14581         (configure.ac): Remove gl_GC_PBKDF2_SHA1 call.
14582         (Makefile.am): Augment lib_SOURCES.
14583
14584 2011-05-23  Bruno Haible  <bruno@clisp.org>
14585
14586         fts: Move AC_LIBOBJ invocations to module description.
14587         * m4/fts.m4 (gl_FUNC_FTS_CORE): Move AC_LIBOBJ invocation from here...
14588         * modules/fts (configure.ac): ... to here.
14589
14590 2011-05-23  Bruno Haible  <bruno@clisp.org>
14591
14592         file-type: Move AC_LIBOBJ invocations to module description.
14593         * m4/file-type.m4: Remove file.
14594         * modules/file-type (Files): Remove it.
14595         (configure.ac): Remove gl_FILE_TYPE call.
14596         (Makefile.am): Augment lib_SOURCES.
14597
14598 2011-05-23  Bruno Haible  <bruno@clisp.org>
14599
14600         filenamecat*: Respect rules for use of AC_LIBOBJ.
14601         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT, gl_FILE_NAME_CONCAT_LGPL):
14602         Remove AC_LIBOBJ invocation.
14603         * modules/filenamecat (Makefile.am): Augment lib_SOURCES.
14604         * modules/filenamecat-lgpl (Makefile.am): Augment lib_SOURCES.
14605
14606 2011-05-23  Bruno Haible  <bruno@clisp.org>
14607
14608         filemode: Move AC_LIBOBJ invocations to module description.
14609         * m4/filemode.m4 (gl_FILEMODE): Remove AC_LIBOBJ invocation.
14610         * modules/filemode (Makefile.am): Augment lib_SOURCES.
14611
14612 2011-05-23  Bruno Haible  <bruno@clisp.org>
14613
14614         openat-safer: Move AC_LIBOBJ invocations to module description.
14615         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): Remove AC_LIBOBJ invocation.
14616         * modules/openat-safer (Makefile.am): Augment lib_SOURCES.
14617
14618 2011-05-23  Bruno Haible  <bruno@clisp.org>
14619
14620         fcntl-safer: Move AC_LIBOBJ invocations to module description.
14621         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove AC_LIBOBJ invocations.
14622         * modules/fcntl-safer (Makefile.am): Augment lib_SOURCES.
14623
14624 2011-05-23  Bruno Haible  <bruno@clisp.org>
14625
14626         exclude: Move AC_LIBOBJ invocations to module description.
14627         * m4/exclude.m4: Remove file.
14628         * modules/exclude (Files): Remove it.
14629         (configure.ac): Remove gl_EXCLUDE call.
14630         (Makefile.am): Augment lib_SOURCES.
14631
14632 2011-05-23  Bruno Haible  <bruno@clisp.org>
14633
14634         dirname*: Respect rules for use of AC_LIBOBJ.
14635         * m4/dirname.m4 (gl_DIRNAME, gl_DIRNAME_LGPL): Remove AC_LIBOBJ
14636         invocations.
14637         * modules/dirname (Makefile.am): Augment lib_SOURCES.
14638         * modules/dirname-lgpl (Makefile.am): Augment lib_SOURCES.
14639
14640 2011-05-23  Bruno Haible  <bruno@clisp.org>
14641
14642         dirent-safer: Move AC_LIBOBJ invocations to module description.
14643         * m4/dirent-safer.m4 (gl_DIRENT_SAFER): Remove AC_LIBOBJ invocation.
14644         * modules/dirent-safer (Makefile.am): Augment lib_SOURCES.
14645
14646 2011-05-23  Bruno Haible  <bruno@clisp.org>
14647
14648         crypto/des: Move AC_LIBOBJ invocations to module description.
14649         * m4/des.m4: Remove file.
14650         * modules/crypto/des (Files): Remove it.
14651         (configure.ac): Remove gl_DES call.
14652         (Makefile.am): Augment lib_SOURCES.
14653
14654 2011-05-23  Bruno Haible  <bruno@clisp.org>
14655
14656         cycle-check: Move AC_LIBOBJ invocations to module description.
14657         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Remove AC_LIBOBJ invocation.
14658         * modules/cycle-check (Makefile.am): Augment lib_SOURCES.
14659
14660 2011-05-23  Bruno Haible  <bruno@clisp.org>
14661
14662         c-strtold: Move AC_LIBOBJ invocations to module description.
14663         * m4/c-strtod.m4 (gl_C_STRTOLD): Remove AC_LIBOBJ invocation.
14664         * modules/c-strtold (Makefile.am): Augment lib_SOURCES.
14665
14666 2011-05-23  Bruno Haible  <bruno@clisp.org>
14667
14668         c-strtod: Move AC_LIBOBJ invocations to module description.
14669         * m4/c-strtod.m4 (gl_C_STRTOD): Remove AC_LIBOBJ invocation.
14670         * modules/c-strtod (Makefile.am): Augment lib_SOURCES.
14671
14672 2011-05-23  Bruno Haible  <bruno@clisp.org>
14673
14674         crc: Move AC_LIBOBJ invocations to module description.
14675         * m4/crc.m4: Remove file.
14676         * modules/crc (Files): Remove it.
14677         (configure.ac): Remove gl_CRC call.
14678         (Makefile.am): Augment lib_SOURCES.
14679
14680 2011-05-23  Bruno Haible  <bruno@clisp.org>
14681
14682         close-stream: Move AC_LIBOBJ invocations to module description.
14683         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove AC_LIBOBJ invocation.
14684         * modules/close-stream (Makefile.am): Augment lib_SOURCES.
14685
14686 2011-05-23  Bruno Haible  <bruno@clisp.org>
14687
14688         closeout: Move AC_LIBOBJ invocations to module description.
14689         * m4/closeout.m4 (gl_CLOSEOUT): Remove AC_LIBOBJ invocation.
14690         * modules/closeout (Makefile.am): Augment lib_SOURCES.
14691
14692 2011-05-23  Bruno Haible  <bruno@clisp.org>
14693
14694         closein: Move AC_LIBOBJ invocations to module description.
14695         * m4/closein.m4 (gl_CLOSEIN): Remove AC_LIBOBJ invocation.
14696         * modules/closein (Makefile.am): Augment lib_SOURCES.
14697
14698 2011-05-23  Bruno Haible  <bruno@clisp.org>
14699
14700         cloexec: Move AC_LIBOBJ invocations to module description.
14701         * m4/cloexec.m4: Remove file.
14702         * modules/cloexec (Files): Remove it.
14703         (configure.ac): Remove gl_CLOEXEC call.
14704         (Makefile.am): Augment lib_SOURCES.
14705
14706 2011-05-23  Bruno Haible  <bruno@clisp.org>
14707
14708         check-version: Move AC_LIBOBJ invocations to module description.
14709         * m4/check-version.m4: Remove file.
14710         * modules/check-version (Files): Remove it.
14711         (configure.ac): Remove gl_CHECK_VERSION call.
14712         (Makefile.am): Augment lib_SOURCES.
14713
14714 2011-05-23  Bruno Haible  <bruno@clisp.org>
14715
14716         chdir-safer: Move AC_LIBOBJ invocations to module description.
14717         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Remove AC_LIBOBJ invocation.
14718         * modules/chdir-safer (Makefile.am): Augment lib_SOURCES.
14719
14720 2011-05-23  Bruno Haible  <bruno@clisp.org>
14721
14722         canonicalize: Move AC_LIBOBJ invocations to module description.
14723         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Remove
14724         AC_LIBOBJ invocation.
14725         * modules/canonicalize (Makefile.am): Augment lib_SOURCES.
14726
14727 2011-05-23  Bruno Haible  <bruno@clisp.org>
14728
14729         canon-host: Move AC_LIBOBJ invocations to module description.
14730         * m4/canon-host.m4 (gl_CANON_HOST): Remove macro.
14731         * modules/canon-host (configure.ac): Invoke gl_PREREQ_CANON_HOST
14732         instead of gl_CANON_HOST.
14733         (Makefile.am): Augment lib_SOURCES.
14734
14735 2011-05-23  Bruno Haible  <bruno@clisp.org>
14736
14737         backupfile: Move AC_LIBOBJ invocations to module description.
14738         * m4/backupfile.m4 (gl_BACKUPFILE): Remove AC_LIBOBJ invocation.
14739         * modules/backupfile (Makefile.am): Augment lib_SOURCES.
14740
14741 2011-05-23  Bruno Haible  <bruno@clisp.org>
14742
14743         argmatch: Move AC_LIBOBJ invocations to module description.
14744         * m4/argmatch.m4: Remove file.
14745         * modules/argmatch (Files): Remove it.
14746         (configure.ac): Remove gl_ARGMATCH call.
14747         (Makefile.am): Augment lib_SOURCES.
14748
14749 2011-05-23  Bruno Haible  <bruno@clisp.org>
14750
14751         crypto/arctwo: Move AC_LIBOBJ invocations to module description.
14752         * m4/arctwo.m4 (gl_ARCTWO): Remove AC_LIBOBJ invocation.
14753         * modules/crypto/arctwo (Makefile.am): Augment lib_SOURCES.
14754
14755 2011-05-23  Bruno Haible  <bruno@clisp.org>
14756
14757         crypto/arcfour: Move AC_LIBOBJ invocations to module description.
14758         * m4/arcfour.m4: Remove file.
14759         * modules/crypto/arcfour (Files): Remove it.
14760         (configure.ac): Remove gl_ARCFOUR call.
14761         (Makefile.am): Augment lib_SOURCES.
14762
14763 2011-05-22  Bruno Haible  <bruno@clisp.org>
14764
14765         write: Move AC_LIBOBJ invocations to module description.
14766         * m4/write.m4 (gl_FUNC_WRITE): Move AC_LIBOBJ invocation from here...
14767         * modules/write (configure.ac): ... to here.
14768
14769 2011-05-22  Bruno Haible  <bruno@clisp.org>
14770
14771         wmemset: Move AC_LIBOBJ invocations to module description.
14772         * m4/wmemset.m4 (gl_FUNC_WMEMSET): Move AC_LIBOBJ invocation from
14773         here...
14774         * modules/wmemset (configure.ac): ... to here.
14775
14776 2011-05-22  Bruno Haible  <bruno@clisp.org>
14777
14778         wmemmove: Move AC_LIBOBJ invocations to module description.
14779         * m4/wmemmove.m4 (gl_FUNC_WMEMMOVE): Move AC_LIBOBJ invocation from
14780         here...
14781         * modules/wmemmove (configure.ac): ... to here.
14782
14783 2011-05-22  Bruno Haible  <bruno@clisp.org>
14784
14785         wmemcpy: Move AC_LIBOBJ invocations to module description.
14786         * m4/wmemcpy.m4 (gl_FUNC_WMEMCPY): Move AC_LIBOBJ invocation from
14787         here...
14788         * modules/wmemcpy (configure.ac): ... to here.
14789
14790 2011-05-22  Bruno Haible  <bruno@clisp.org>
14791
14792         wmemcmp: Move AC_LIBOBJ invocations to module description.
14793         * m4/wmemcmp.m4 (gl_FUNC_WMEMCMP): Move AC_LIBOBJ invocation from
14794         here...
14795         * modules/wmemcmp (configure.ac): ... to here.
14796
14797 2011-05-22  Bruno Haible  <bruno@clisp.org>
14798
14799         wmemchr: Move AC_LIBOBJ invocations to module description.
14800         * m4/wmemchr.m4 (gl_FUNC_WMEMCHR): Move AC_LIBOBJ invocation from
14801         here...
14802         * modules/wmemchr (configure.ac): ... to here.
14803
14804 2011-05-22  Bruno Haible  <bruno@clisp.org>
14805
14806         wcswidth: Move AC_LIBOBJ invocations to module description.
14807         * m4/wcswidth.m4 (gl_FUNC_WCSWIDTH): Move AC_LIBOBJ invocation from
14808         here...
14809         * modules/wcswidth (configure.ac): ... to here.
14810
14811 2011-05-22  Bruno Haible  <bruno@clisp.org>
14812
14813         wcwidth: Respect rules for use of AC_LIBOBJ.
14814         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Set HAVE_WCWIDTH. Move AC_LIBOBJ
14815         invocation from here...
14816         * modules/wcwidth (configure.ac): ... to here.
14817         (Depends-on): Update conditions.
14818
14819 2011-05-22  Bruno Haible  <bruno@clisp.org>
14820
14821         wctype: Move AC_LIBOBJ invocations to module description.
14822         * m4/wctype.m4 (gl_FUNC_WCTYPE): Set HAVE_WCTYPE. Move AC_LIBOBJ
14823         invocation from here...
14824         * modules/wctype (configure.ac): ... to here.
14825         (Depends-on): Update conditions.
14826
14827 2011-05-22  Bruno Haible  <bruno@clisp.org>
14828
14829         wctrans: Move AC_LIBOBJ invocations to module description.
14830         * m4/wctrans.m4 (gl_FUNC_WCTRANS): Set HAVE_WCTRANS. Move AC_LIBOBJ
14831         invocation from here...
14832         * modules/wctrans (configure.ac): ... to here.
14833
14834 2011-05-22  Bruno Haible  <bruno@clisp.org>
14835
14836         wctomb: Move AC_LIBOBJ invocations to module description.
14837         * m4/wctomb.m4 (gl_FUNC_WCTOMB): Move AC_LIBOBJ and gl_PREREQ_WCTOMB
14838         invocations from here...
14839         * modules/wctomb (configure.ac): ... to here.
14840
14841 2011-05-22  Bruno Haible  <bruno@clisp.org>
14842
14843         wctob: Move AC_LIBOBJ invocations to module description.
14844         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_WCTOB. Move AC_LIBOBJ and
14845         gl_PREREQ_WCTOB invocations from here...
14846         * modules/wctob (configure.ac): ... to here.
14847         (Depends-on): Update conditions.
14848
14849 2011-05-22  Bruno Haible  <bruno@clisp.org>
14850
14851         wcsxfrm: Move AC_LIBOBJ invocations to module description.
14852         * m4/wcsxfrm.m4 (gl_FUNC_WCSXFRM): Move AC_LIBOBJ invocation from
14853         here...
14854         * modules/wcsxfrm (configure.ac): ... to here.
14855
14856 2011-05-22  Bruno Haible  <bruno@clisp.org>
14857
14858         wcstok: Move AC_LIBOBJ invocations to module description.
14859         * m4/wcstok.m4 (gl_FUNC_WCSTOK): Move AC_LIBOBJ invocation from here...
14860         * modules/wcstok (configure.ac): ... to here.
14861
14862 2011-05-22  Bruno Haible  <bruno@clisp.org>
14863
14864         wcsstr: Move AC_LIBOBJ invocations to module description.
14865         * m4/wcsstr.m4 (gl_FUNC_WCSSTR): Move AC_LIBOBJ invocation from here...
14866         * modules/wcsstr (configure.ac): ... to here.
14867
14868 2011-05-22  Bruno Haible  <bruno@clisp.org>
14869
14870         wcsspn: Move AC_LIBOBJ invocations to module description.
14871         * m4/wcsspn.m4 (gl_FUNC_WCSSPN): Move AC_LIBOBJ invocation from here...
14872         * modules/wcsspn (configure.ac): ... to here.
14873
14874 2011-05-22  Bruno Haible  <bruno@clisp.org>
14875
14876         wcsrtombs: Move AC_LIBOBJ invocations to module description.
14877         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Move AC_LIBOBJ and
14878         gl_PREREQ_WCSRTOMBS invocations from here...
14879         * modules/wcsrtombs (configure.ac): ... to here.
14880
14881 2011-05-22  Bruno Haible  <bruno@clisp.org>
14882
14883         wcsrchr: Move AC_LIBOBJ invocations to module description.
14884         * m4/wcsrchr.m4 (gl_FUNC_WCSRCHR): Move AC_LIBOBJ invocation from
14885         here...
14886         * modules/wcsrchr (configure.ac): ... to here.
14887
14888 2011-05-22  Bruno Haible  <bruno@clisp.org>
14889
14890         wcspbrk: Move AC_LIBOBJ invocations to module description.
14891         * m4/wcspbrk.m4 (gl_FUNC_WCSPBRK): Move AC_LIBOBJ invocation from
14892         here...
14893         * modules/wcspbrk (configure.ac): ... to here.
14894
14895 2011-05-22  Bruno Haible  <bruno@clisp.org>
14896
14897         wcsnrtombs: Move AC_LIBOBJ invocations to module description.
14898         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): Move AC_LIBOBJ and
14899         gl_PREREQ_WCSNRTOMBS invocations from here...
14900         * modules/wcsnrtombs (configure.ac): ... to here.
14901
14902 2011-05-22  Bruno Haible  <bruno@clisp.org>
14903
14904         wcsnlen: Move AC_LIBOBJ invocations to module description.
14905         * m4/wcsnlen.m4 (gl_FUNC_WCSNLEN): Move AC_LIBOBJ invocation from
14906         here...
14907         * modules/wcsnlen (configure.ac): ... to here.
14908
14909 2011-05-22  Bruno Haible  <bruno@clisp.org>
14910
14911         wcsncpy: Move AC_LIBOBJ invocations to module description.
14912         * m4/wcsncpy.m4 (gl_FUNC_WCSNCPY): Move AC_LIBOBJ invocation from
14913         here...
14914         * modules/wcsncpy (configure.ac): ... to here.
14915
14916 2011-05-22  Bruno Haible  <bruno@clisp.org>
14917
14918         wcsncmp: Move AC_LIBOBJ invocations to module description.
14919         * m4/wcsncmp.m4 (gl_FUNC_WCSNCMP): Move AC_LIBOBJ invocation from
14920         here...
14921         * modules/wcsncmp (configure.ac): ... to here.
14922
14923 2011-05-22  Bruno Haible  <bruno@clisp.org>
14924
14925         wcsncat: Move AC_LIBOBJ invocations to module description.
14926         * m4/wcsncat.m4 (gl_FUNC_WCSNCAT): Move AC_LIBOBJ invocation from
14927         here...
14928         * modules/wcsncat (configure.ac): ... to here.
14929
14930 2011-05-22  Bruno Haible  <bruno@clisp.org>
14931
14932         wcsncasecmp: Move AC_LIBOBJ invocations to module description.
14933         * m4/wcsncasecmp.m4 (gl_FUNC_WCSNCASECMP): Move AC_LIBOBJ invocation
14934         from here...
14935         * modules/wcsncasecmp (configure.ac): ... to here.
14936
14937 2011-05-22  Bruno Haible  <bruno@clisp.org>
14938
14939         wcslen: Move AC_LIBOBJ invocations to module description.
14940         * m4/wcslen.m4 (gl_FUNC_WCSLEN): Move AC_LIBOBJ invocation from here...
14941         * modules/wcslen (configure.ac): ... to here.
14942
14943 2011-05-22  Bruno Haible  <bruno@clisp.org>
14944
14945         wcsdup: Move AC_LIBOBJ invocations to module description.
14946         * m4/wcsdup.m4 (gl_FUNC_WCSDUP): Move AC_LIBOBJ invocation from here...
14947         * modules/wcsdup (configure.ac): ... to here.
14948
14949 2011-05-22  Bruno Haible  <bruno@clisp.org>
14950
14951         wcscspn: Move AC_LIBOBJ invocations to module description.
14952         * m4/wcscspn.m4 (gl_FUNC_WCSCSPN): Move AC_LIBOBJ invocation from
14953         here...
14954         * modules/wcscspn (configure.ac): ... to here.
14955
14956 2011-05-22  Bruno Haible  <bruno@clisp.org>
14957
14958         wcscpy: Move AC_LIBOBJ invocations to module description.
14959         * m4/wcscpy.m4 (gl_FUNC_WCSCPY): Move AC_LIBOBJ invocation from here...
14960         * modules/wcscpy (configure.ac): ... to here.
14961
14962 2011-05-22  Bruno Haible  <bruno@clisp.org>
14963
14964         wcscoll: Move AC_LIBOBJ invocations to module description.
14965         * m4/wcscoll.m4 (gl_FUNC_WCSCOLL): Move AC_LIBOBJ invocation from
14966         here...
14967         * modules/wcscoll (configure.ac): ... to here.
14968
14969 2011-05-22  Bruno Haible  <bruno@clisp.org>
14970
14971         wcscmp: Move AC_LIBOBJ invocations to module description.
14972         * m4/wcscmp.m4 (gl_FUNC_WCSCMP): Move AC_LIBOBJ invocation from here...
14973         * modules/wcscmp (configure.ac): ... to here.
14974
14975 2011-05-22  Bruno Haible  <bruno@clisp.org>
14976
14977         wcschr: Move AC_LIBOBJ invocations to module description.
14978         * m4/wcschr.m4 (gl_FUNC_WCSCHR): Move AC_LIBOBJ invocation from here...
14979         * modules/wcschr (configure.ac): ... to here.
14980
14981 2011-05-22  Bruno Haible  <bruno@clisp.org>
14982
14983         wcscat: Move AC_LIBOBJ invocations to module description.
14984         * m4/wcscat.m4 (gl_FUNC_WCSCAT): Move AC_LIBOBJ invocation from here...
14985         * modules/wcscat (configure.ac): ... to here.
14986
14987 2011-05-22  Bruno Haible  <bruno@clisp.org>
14988
14989         wcscasecmp: Move AC_LIBOBJ invocations to module description.
14990         * m4/wcscasecmp.m4 (gl_FUNC_WCSCASECMP): Move AC_LIBOBJ invocation from
14991         here...
14992         * modules/wcscasecmp (configure.ac): ... to here.
14993
14994 2011-05-22  Bruno Haible  <bruno@clisp.org>
14995
14996         wcrtomb: Move AC_LIBOBJ invocations to module description.
14997         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Move AC_LIBOBJ and gl_PREREQ_WCRTOMB
14998         invocations from here...
14999         * modules/wcrtomb (configure.ac): ... to here.
15000
15001 2011-05-22  Bruno Haible  <bruno@clisp.org>
15002
15003         wcpncpy: Move AC_LIBOBJ invocations to module description.
15004         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Move AC_LIBOBJ invocation from
15005         here...
15006         * modules/wcpncpy (configure.ac): ... to here.
15007
15008 2011-05-22  Bruno Haible  <bruno@clisp.org>
15009
15010         wcpcpy: Move AC_LIBOBJ invocations to module description.
15011         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Move AC_LIBOBJ invocation from here...
15012         * modules/wcpcpy (configure.ac): ... to here.
15013
15014 2011-05-22  Bruno Haible  <bruno@clisp.org>
15015
15016         waitpid: Move AC_LIBOBJ invocations to module description.
15017         * m4/waitpid.m4 (gl_FUNC_WAITPID): Set HAVE_WAITPID. Move AC_LIBOBJ
15018         invocation from here...
15019         * modules/waitpid (configure.ac): ... to here.
15020
15021 2011-05-22  Bruno Haible  <bruno@clisp.org>
15022
15023         utimensat: Move AC_LIBOBJ invocations to module description.
15024         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Move AC_LIBOBJ invocations from
15025         here...
15026         * modules/utimensat (configure.ac): ... to here.
15027
15028 2011-05-22  Bruno Haible  <bruno@clisp.org>
15029
15030         usleep: Move AC_LIBOBJ invocations to module description.
15031         * m4/usleep.m4 (gl_FUNC_USLEEP): Move AC_LIBOBJ invocations from
15032         here...
15033         * modules/usleep (configure.ac): ... to here.
15034
15035 2011-05-22  Bruno Haible  <bruno@clisp.org>
15036
15037         unlockpt: Move AC_LIBOBJ invocations to module description.
15038         * m4/unlockpt.m4 (gl_FUNC_UNLOCKPT): Move AC_LIBOBJ and
15039         gl_PREREQ_UNLOCKPT invocations from here...
15040         * modules/unlockpt (configure.ac): ... to here.
15041
15042 2011-05-22  Bruno Haible  <bruno@clisp.org>
15043
15044         unlink: Respect rules for use of AC_LIBOBJ.
15045         * m4/unlink.m4 (gl_FUNC_UNLINK): Move AC_LIBOBJ invocation from here...
15046         * modules/unlink (configure.ac): ... to here.
15047
15048 2011-05-22  Bruno Haible  <bruno@clisp.org>
15049
15050         uname: Move AC_LIBOBJ invocations to module description.
15051         * m4/uname.m4 (gl_FUNC_UNAME): Call AC_CHECK_FUNCS instead of
15052         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_UNAME invocations from
15053         here...
15054         * modules/uname (configure.ac): ... to here.
15055
15056 2011-05-22  Bruno Haible  <bruno@clisp.org>
15057
15058         ttyname_r: Move AC_LIBOBJ invocations to module description.
15059         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Move AC_LIBOBJ and
15060         gl_PREREQ_TTYNAME_R invocations from here...
15061         * modules/ttyname_r (configure.ac): ... to here.
15062
15063 2011-05-22  Bruno Haible  <bruno@clisp.org>
15064
15065         tsearch: Move AC_LIBOBJ invocations to module description.
15066         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Move AC_LIBOBJ and gl_PREREQ_TSEARCH
15067         invocations from here...
15068         * modules/tsearch (configure.ac): ... to here.
15069
15070 2011-05-22  Bruno Haible  <bruno@clisp.org>
15071
15072         towctrans: Move AC_LIBOBJ invocations to module description.
15073         * m4/towctrans.m4 (gl_FUNC_TOWCTRANS): Set HAVE_TOWCTRANS. Move
15074         AC_LIBOBJ invocation from here...
15075         * modules/towctrans (configure.ac): ... to here.
15076
15077 2011-05-22  Bruno Haible  <bruno@clisp.org>
15078
15079         tmpfile: Move AC_LIBOBJ invocations to module description.
15080         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Move AC_LIBOBJ and gl_PREREQ_TMPFILE
15081         invocations from here...
15082         * modules/tmpfile (configure.ac): ... to here.
15083
15084 2011-05-22  Bruno Haible  <bruno@clisp.org>
15085
15086         times: Move AC_LIBOBJ invocations to module description.
15087         * m4/times.m4 (gl_FUNC_TIMES): Move AC_LIBOBJ invocation from here...
15088         * modules/times (configure.ac): ... to here.
15089
15090 2011-05-22  Bruno Haible  <bruno@clisp.org>
15091
15092         time_r: Move AC_LIBOBJ invocations to module description.
15093         * m4/time_r.m4 (gl_TIME_R): Move AC_LIBOBJ and gl_PREREQ_TIME_R
15094         invocations from here...
15095         * modules/time_r (configure.ac): ... to here.
15096
15097 2011-05-22  Bruno Haible  <bruno@clisp.org>
15098
15099         timegm: Move AC_LIBOBJ invocations to module description.
15100         * m4/timegm.m4 (gl_FUNC_TIMEGM): Move AC_LIBOBJ and gl_PREREQ_TIMEGM
15101         invocations from here...
15102         * modules/timegm (configure.ac): ... to here.
15103
15104 2011-05-22  Bruno Haible  <bruno@clisp.org>
15105
15106         tcgetsid: Move AC_LIBOBJ invocations to module description.
15107         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Set HAVE_TCGETSID. Move AC_LIBOBJ
15108         and gl_PREREQ_TCGETSID invocations from here...
15109         * modules/tcgetsid (configure.ac): ... to here.
15110         (Depends-on): Update conditions.
15111
15112 2011-05-22  Bruno Haible  <bruno@clisp.org>
15113
15114         symlinkat: Move AC_LIBOBJ invocations to module description.
15115         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move AC_LIBOBJ invocation from
15116         here...
15117         * modules/symlinkat (configure.ac): ... to here.
15118
15119 2011-05-22  Bruno Haible  <bruno@clisp.org>
15120
15121         symlink: Move AC_LIBOBJ invocations to module description.
15122         * m4/symlink.m4 (gl_FUNC_SYMLINK): Move AC_LIBOBJ invocations from
15123         here...
15124         * modules/symlink (configure.ac): ... to here.
15125
15126 2011-05-22  Bruno Haible  <bruno@clisp.org>
15127
15128         strverscmp: Move AC_LIBOBJ invocations to module description.
15129         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Call AC_CHECK_FUNCS instead of
15130         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRVERSCMP invocations
15131         from here...
15132         * modules/strverscmp (configure.ac): ... to here.
15133
15134 2011-05-22  Bruno Haible  <bruno@clisp.org>
15135
15136         strtok_r: Move AC_LIBOBJ invocations to module description.
15137         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_STRTOK_R. Move AC_LIBOBJ
15138         and gl_PREREQ_STRTOK_R invocations from here...
15139         * modules/strtok_r (configure.ac): ... to here.
15140         (Depends-on): Update conditions.
15141
15142 2011-05-22  Bruno Haible  <bruno@clisp.org>
15143
15144         strtoumax: Move AC_LIBOBJ invocations to module description.
15145         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Call AC_CHECK_FUNCS instead of
15146         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOUMAX invocations
15147         from here...
15148         * modules/strtoumax (configure.ac): ... to here.
15149
15150 2011-05-22  Bruno Haible  <bruno@clisp.org>
15151
15152         strtoimax: Move AC_LIBOBJ invocations to module description.
15153         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Call AC_CHECK_FUNCS instead of
15154         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOIMAX invocations
15155         from here...
15156         * modules/strtoimax (configure.ac): ... to here.
15157
15158 2011-05-22  Bruno Haible  <bruno@clisp.org>
15159
15160         strtoull: Move AC_LIBOBJ invocations to module description.
15161         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Call AC_CHECK_FUNCS instead of
15162         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOULL invocations
15163         from here...
15164         * modules/strtoull (configure.ac): ... to here.
15165
15166 2011-05-22  Bruno Haible  <bruno@clisp.org>
15167
15168         strtoll: Move AC_LIBOBJ invocations to module description.
15169         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Call AC_CHECK_FUNCS instead of
15170         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRTOLL invocations from
15171         here...
15172         * modules/strtoll (configure.ac): ... to here.
15173
15174 2011-05-22  Bruno Haible  <bruno@clisp.org>
15175
15176         strtoul: Move AC_LIBOBJ invocations to module description.
15177         * m4/strtoul.m4 (gl_FUNC_STRTOUL): Call AC_CHECK_FUNCS instead of
15178         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15179         * modules/strtoul (configure.ac): ... to here.
15180
15181 2011-05-22  Bruno Haible  <bruno@clisp.org>
15182
15183         strtol: Move AC_LIBOBJ invocations to module description.
15184         * m4/strtol.m4 (gl_FUNC_STRTOL): Call AC_CHECK_FUNCS instead of
15185         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocation from here...
15186         * modules/strtol (configure.ac): ... to here.
15187
15188 2011-05-22  Bruno Haible  <bruno@clisp.org>
15189
15190         strtod: Move AC_LIBOBJ invocations to module description.
15191         * m4/strtod.m4 (gl_FUNC_STRTOD): Move AC_LIBOBJ and gl_PREREQ_STRTOD
15192         invocations from here...
15193         * modules/strtod (configure.ac): ... to here.
15194
15195 2011-05-22  Bruno Haible  <bruno@clisp.org>
15196
15197         strstr*: Move AC_LIBOBJ invocations to module description.
15198         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Move AC_LIBOBJ
15199         invocations from here...
15200         * modules/strstr-simple (configure.ac): ... to here.
15201         * modules/strstr (configure.ac): ... and here.
15202
15203 2011-05-22  Bruno Haible  <bruno@clisp.org>
15204
15205         strsignal: Move AC_LIBOBJ invocations to module description.
15206         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Set HAVE_STRSIGNAL. Move
15207         AC_LIBOBJ and gl_PREREQ_STRSIGNAL invocations from here...
15208         * modules/strsignal (configure.ac): ... to here.
15209         (Depends-on): Update conditions.
15210
15211 2011-05-22  Bruno Haible  <bruno@clisp.org>
15212
15213         strsep: Move AC_LIBOBJ invocations to module description.
15214         * m4/strsep.m4 (gl_FUNC_STRSEP): Call AC_CHECK_FUNCS instead of
15215         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRSEP invocations from
15216         here...
15217         * modules/strsep (configure.ac): ... to here.
15218
15219 2011-05-22  Bruno Haible  <bruno@clisp.org>
15220
15221         strptime: Move AC_LIBOBJ invocations to module description.
15222         * m4/strptime.m4 (gl_FUNC_STRPTIME): Move AC_LIBOBJ and
15223         gl_PREREQ_STRPTIME invocations from here...
15224         * modules/strptime (configure.ac): ... to here.
15225
15226 2011-05-22  Bruno Haible  <bruno@clisp.org>
15227
15228         strpbrk: Move AC_LIBOBJ invocations to module description.
15229         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Call AC_CHECK_FUNCS instead of
15230         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRPBRK invocations from
15231         here...
15232         * modules/strpbrk (configure.ac): ... to here.
15233
15234 2011-05-22  Bruno Haible  <bruno@clisp.org>
15235
15236         strnlen: Move AC_LIBOBJ invocations to module description.
15237         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Move AC_LIBOBJ and gl_PREREQ_STRNLEN
15238         invocations from here...
15239         * modules/strnlen (configure.ac): ... to here.
15240
15241 2011-05-22  Bruno Haible  <bruno@clisp.org>
15242
15243         strndup: Move AC_LIBOBJ invocations to module description.
15244         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_STRNDUP. Move AC_LIBOBJ
15245         invocations from here...
15246         * modules/strndup (configure.ac): ... to here.
15247         (Depends-on): Update conditions.
15248
15249 2011-05-22  Bruno Haible  <bruno@clisp.org>
15250
15251         strncat: Move AC_LIBOBJ invocations to module description.
15252         * m4/strncat.m4 (gl_FUNC_STRNCAT): Move AC_LIBOBJ and gl_PREREQ_STRNCAT
15253         invocations from here...
15254         * modules/strncat (configure.ac): ... to here.
15255
15256 2011-05-22  Bruno Haible  <bruno@clisp.org>
15257
15258         strdup, strdup-posix: Move AC_LIBOBJ invocations to module description.
15259         * m4/strdup.m4 (gl_FUNC_STRDUP): Move AC_LIBOBJ and gl_PREREQ_STRDUP
15260         invocations from here...
15261         * modules/strdup (configure.ac): ... to here.
15262         * modules/strdup-posix (configure.ac): ... and here.
15263
15264 2011-05-22  Bruno Haible  <bruno@clisp.org>
15265
15266         strcspn: Move AC_LIBOBJ invocations to module description.
15267         * m4/strcspn.m4 (gl_FUNC_STRCSPN): Call AC_CHECK_FUNCS instead of
15268         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STRCSPN invocations from
15269         here...
15270         * modules/strcspn (configure.ac): ... to here.
15271
15272 2011-05-22  Bruno Haible  <bruno@clisp.org>
15273
15274         strchrnul: Move AC_LIBOBJ invocations to module description.
15275         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Move AC_LIBOBJ and
15276         gl_PREREQ_STRCHRNUL invocations from here...
15277         * modules/strchrnul (configure.ac): ... to here.
15278
15279 2011-05-22  Bruno Haible  <bruno@clisp.org>
15280
15281         strcasestr*: Move AC_LIBOBJ invocations to module description.
15282         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
15283         Move AC_LIBOBJ and gl_PREREQ_STRCASESTR invocations from here...
15284         * modules/strcasestr-simple (configure.ac): ... to here.
15285         * modules/strcasestr (configure.ac): ... and here.
15286
15287 2011-05-22  Bruno Haible  <bruno@clisp.org>
15288
15289         strcase: Move AC_LIBOBJ invocations to module description.
15290         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Set HAVE_STRNCASECMP.
15291         (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Call AC_CHECK_FUNCS instead
15292         of AC_REPLACE_FUNCS. Move AC_LIBOBJ, gl_PREREQ_STRCASECMP,
15293         gl_PREREQ_STRNCASECMP invocations from here...
15294         * modules/strcase (configure.ac): ... to here.
15295
15296 2011-05-22  Bruno Haible  <bruno@clisp.org>
15297
15298         stpncpy: Move AC_LIBOBJ invocations to module description.
15299         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Move AC_LIBOBJ invocations from
15300         here...
15301         * modules/stpncpy (configure.ac): ... to here.
15302
15303 2011-05-22  Bruno Haible  <bruno@clisp.org>
15304
15305         stpcpy: Move AC_LIBOBJ invocations to module description.
15306         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Call AC_CHECK_FUNCS instead of
15307         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_STPCPY invocations from
15308         here...
15309         * modules/stpcpy (configure.ac): ... to here.
15310
15311 2011-05-21  Bruno Haible  <bruno@clisp.org>
15312
15313         stat: Move AC_LIBOBJ invocations to module description.
15314         * m4/stat.m4 (gl_PREREQ_STAT): New macro, extracted from gl_FUNC_STAT.
15315         (gl_FUNC_STAT): Move AC_LIBOBJ and gl_PREREQ_STAT invocations from
15316         here...
15317         * modules/stat (configure.ac): ... to here.
15318
15319 2011-05-21  Bruno Haible  <bruno@clisp.org>
15320
15321         sleep: Move AC_LIBOBJ invocations to module description.
15322         * m4/sleep.m4 (gl_FUNC_SLEEP): Move AC_LIBOBJ invocations from here...
15323         * modules/sleep (configure.ac): ... to here.
15324
15325 2011-05-21  Bruno Haible  <bruno@clisp.org>
15326
15327         signbit: Move AC_LIBOBJ invocations to module description.
15328         * m4/signbit.m4 (gl_SIGNBIT): Move AC_LIBOBJ invocations from here...
15329         * modules/signbit (configure.ac): ... to here.
15330
15331 2011-05-21  Bruno Haible  <bruno@clisp.org>
15332
15333         sigprocmask: Move AC_LIBOBJ invocations to module description.
15334         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Move AC_LIBOBJ and
15335         gl_PREREQ_SIGPROMASK invocations from here...
15336         * modules/sigprocmask (configure.ac): ... to here.
15337
15338 2011-05-21  Bruno Haible  <bruno@clisp.org>
15339
15340         sigaction: Move AC_LIBOBJ invocations to module description.
15341         * m4/sigaction.m4 (gl_SIGACTION): Move AC_LIBOBJ and
15342         gl_PREREQ_SIGACTION invocations from here...
15343         * modules/sigaction (configure.ac): ... to here.
15344
15345 2011-05-21  Bruno Haible  <bruno@clisp.org>
15346
15347         sig2str: Move AC_LIBOBJ invocations to module description.
15348         * m4/sig2str.m4 (gl_FUNC_SIG2STR): Call AC_CHECK_FUNCS instead of
15349         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_SIG2STR invocations from
15350         here...
15351         * modules/sig2str (configure.ac): ... to here.
15352
15353 2011-05-21  Bruno Haible  <bruno@clisp.org>
15354
15355         setlocale: Move AC_LIBOBJ invocations to module description.
15356         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Move AC_LIBOBJ and
15357         gl_PREREQ_SETLOCALE invocations from here...
15358         * modules/setlocale (configure.ac): ... to here.
15359
15360 2011-05-21  Bruno Haible  <bruno@clisp.org>
15361
15362         unsetenv: Move AC_LIBOBJ invocations to module description.
15363         * m4/setenv.m4 (gl_FUNC_UNSETENV): Set HAVE_UNSETENV. Move AC_LIBOBJ
15364         and gl_PREREQ_UNSETENV invocations from here...
15365         * modules/unsetenv (configure.ac): ... to here.
15366         (Depends-on): Update.
15367
15368 2011-05-21  Bruno Haible  <bruno@clisp.org>
15369
15370         setenv: Move AC_LIBOBJ invocations to module description.
15371         * m4/setenv.m4 (gl_FUNC_SETENV): Move AC_LIBOBJ invocations from
15372         here...
15373         * modules/setenv (configure.ac): ... to here.
15374
15375 2011-05-21  Bruno Haible  <bruno@clisp.org>
15376
15377         selinux-h: Move AC_LIBOBJ invocations to module description.
15378         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Move
15379         AC_LIBOBJ invocation from here...
15380         * modules/selinux-h (configure.ac): ... to here.
15381
15382 2011-05-21  Bruno Haible  <bruno@clisp.org>
15383
15384         select: Respect rules for use of AC_LIBOBJ.
15385         * m4/select.m4 (gl_FUNC_SELECT): Move AC_LIBOBJ invocations from
15386         here...
15387         * modules/select (configure.ac): ... to here.
15388
15389 2011-05-21  Bruno Haible  <bruno@clisp.org>
15390
15391         scandir: Move AC_LIBOBJ invocations to module description.
15392         * m4/scandir.m4 (gl_FUNC_SCANDIR): Move AC_LIBOBJ and gl_PREREQ_SCANDIR
15393         invocations from here...
15394         * modules/scandir (configure.ac): ... to here.
15395
15396 2011-05-21  Bruno Haible  <bruno@clisp.org>
15397
15398         rpmatch: Move AC_LIBOBJ invocations to module description.
15399         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Call AC_CHECK_FUNCS instead of
15400         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RPMATCH invocations from
15401         here...
15402         * modules/rpmatch (configure.ac): ... to here.
15403
15404 2011-05-21  Bruno Haible  <bruno@clisp.org>
15405
15406         rmdir: Respect rules for use of AC_LIBOBJ.
15407         * m4/rmdir.m4 (gl_FUNC_RMDIR): Move AC_LIBOBJ invocation from here...
15408         * modules/rmdir (configure.ac): ... to here.
15409
15410 2011-05-21  Bruno Haible  <bruno@clisp.org>
15411
15412         renameat: Move AC_LIBOBJ invocations to module description.
15413         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Move AC_LIBOBJ invocations from
15414         here...
15415         * modules/renameat (configure.ac): ... to here.
15416
15417 2011-05-21  Bruno Haible  <bruno@clisp.org>
15418
15419         rename: Respect rules for use of AC_LIBOBJ.
15420         * m4/rename.m4 (gl_FUNC_RENAME): Move AC_LIBOBJ invocations from
15421         here...
15422         * modules/rename (configure.ac): ... to here.
15423
15424 2011-05-21  Bruno Haible  <bruno@clisp.org>
15425
15426         remove: Move AC_LIBOBJ invocations to module description.
15427         * m4/remove.m4 (gl_FUNC_REMOVE): Move AC_LIBOBJ invocations from
15428         here...
15429         * modules/remove (configure.ac): ... to here.
15430
15431 2011-05-21  Bruno Haible  <bruno@clisp.org>
15432
15433         relocatable-lib: Move AC_LIBOBJ invocations to module description.
15434         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_SEPARATE): Remove
15435         macro.
15436         (gl_RELOCATABLE_LIBRARY): Move AC_LIBOBJ invocation from here...
15437         * modules/relocatable-lib (configure.ac): ... to here.
15438         * modules/relocatable-prog-wrapper (configure.ac): Invoke
15439         gl_RELOCATABLE_LIBRARY instead of gl_RELOCATABLE_LIBRARY_SEPARATE.
15440
15441 2011-05-21  Bruno Haible  <bruno@clisp.org>
15442
15443         relocatable-prog: Move AC_LIBOBJ invocations to module description.
15444         * m4/relocatable.m4 (gl_RELOCATABLE): Move AC_LIBOBJ invocation from
15445         here...
15446         * modules/relocatable-prog (configure.ac): ... to here.
15447
15448 2011-05-21  Bruno Haible  <bruno@clisp.org>
15449
15450         regex: Move AC_LIBOBJ invocations to module description.
15451         * m4/regex.m4 (gl_REGEX): Move AC_LIBOBJ and gl_PREREQ_REGEX
15452         invocations from here...
15453         * modules/regex (configure.ac): ... to here.
15454
15455 2011-05-21  Bruno Haible  <bruno@clisp.org>
15456
15457         realloc-*: Move AC_LIBOBJ invocations to module description.
15458         * m4/realloc.m4 (gl_REPLACE_REALLOC): Remove macro.
15459         (gl_FUNC_REALLOC_GNU, gl_FUNC_REALLOC_POSIX): Inline it here. Move
15460         AC_LIBOBJ invocations from here...
15461         * modules/realloc-gnu (configure.ac): ... to here.
15462         * modules/realloc-posix (configure.ac): ... and here.
15463
15464 2011-05-21  Bruno Haible  <bruno@clisp.org>
15465
15466         readutmp: Move AC_LIBOBJ invocations to module description.
15467         * m4/readutmp.m4 (gl_READUTMP): Move AC_LIBOBJ invocation from here...
15468         * modules/readutmp (configure.ac): ... to here.
15469
15470 2011-05-21  Bruno Haible  <bruno@clisp.org>
15471
15472         readlinkat: Move AC_LIBOBJ invocations to module description.
15473         * m4/readlinkat.m4 (gl_FUNC_READLINKAT): Move AC_LIBOBJ invocation from
15474         here...
15475         * modules/readlinkat (configure.ac): ... to here.
15476
15477 2011-05-21  Bruno Haible  <bruno@clisp.org>
15478
15479         readlink: Move AC_LIBOBJ invocations to module description.
15480         * m4/readlink.m4 (gl_FUNC_READLINK): Move AC_LIBOBJ and
15481         gl_PREREQ_READLINK invocations from here...
15482         * modules/readlink (configure.ac): ... to here.
15483
15484 2011-05-21  Bruno Haible  <bruno@clisp.org>
15485
15486         readline: Move AC_LIBOBJ invocations to module description.
15487         * m4/readline.m4 (gl_FUNC_READLINE): Move AC_LIBOBJ and
15488         gl_PREREQ_READLINE invocations from here...
15489         * modules/readline (configure.ac): ... to here.
15490
15491 2011-05-21  Bruno Haible  <bruno@clisp.org>
15492
15493         read: Move AC_LIBOBJ invocations to module description.
15494         * m4/read.m4 (gl_FUNC_READ): Move AC_LIBOBJ invocation from here...
15495         * modules/read (configure.ac): ... to here.
15496
15497 2011-05-21  Bruno Haible  <bruno@clisp.org>
15498
15499         rawmemchr: Move AC_LIBOBJ invocations to module description.
15500         * m4/rawmemchr.m4 (gl_FUNC_RAWMEMCHR): Call AC_CHECK_FUNCS instead of
15501         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_RAWMEMCHR invocations
15502         from here...
15503         * modules/rawmemchr (configure.ac): ... to here.
15504
15505 2011-05-21  Bruno Haible  <bruno@clisp.org>
15506
15507         random_r: Move AC_LIBOBJ invocations to module description.
15508         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move AC_LIBOBJ and
15509         gl_PREREQ_RANDOM_R invocations from here...
15510         * modules/random_r (configure.ac): ... to here.
15511
15512 2011-05-21  Bruno Haible  <bruno@clisp.org>
15513
15514         pwrite: Move AC_LIBOBJ invocations to module description.
15515         * m4/pwrite.m4 (gl_FUNC_PWRITE): Move AC_LIBOBJ invocation from here...
15516         * modules/pwrite (configure.ac): ... to here.
15517
15518 2011-05-21  Bruno Haible  <bruno@clisp.org>
15519
15520         putenv: Move AC_LIBOBJ invocations to module description.
15521         * m4/putenv.m4 (gl_FUNC_PUTENV): Move AC_LIBOBJ invocation from here...
15522         * modules/putenv (configure.ac): ... to here.
15523
15524 2011-05-21  Bruno Haible  <bruno@clisp.org>
15525
15526         login_tty: Move AC_LIBOBJ invocations to module description.
15527         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Move AC_LIBOBJ invocation from here...
15528         * modules/login_tty (configure.ac): ... to here.
15529
15530 2011-05-21  Bruno Haible  <bruno@clisp.org>
15531
15532         openpty: Move AC_LIBOBJ invocations to module description.
15533         * m4/pty.m4 (gl_FUNC_OPENPTY): Move AC_LIBOBJ invocations from here...
15534         * modules/openpty (configure.ac): ... to here.
15535
15536 2011-05-21  Bruno Haible  <bruno@clisp.org>
15537
15538         forkpty: Move AC_LIBOBJ invocations to module description.
15539         * m4/pty.m4 (gl_FUNC_FORKPTY): Move AC_LIBOBJ invocations from here...
15540         * modules/forkpty (configure.ac): ... to here.
15541
15542 2011-05-21  Bruno Haible  <bruno@clisp.org>
15543
15544         ptsname: Move AC_LIBOBJ invocations to module description.
15545         * m4/ptsname.m4 (gl_FUNC_PTSNAME): Move AC_LIBOBJ and gl_PREREQ_PTSNAME
15546         invocations from here...
15547         * modules/ptsname (configure.ac): ... to here.
15548
15549 2011-05-21  Bruno Haible  <bruno@clisp.org>
15550
15551         pread: Move AC_LIBOBJ invocations to module description.
15552         * m4/pread.m4 (gl_FUNC_PREAD): Move AC_LIBOBJ invocation from here...
15553         * modules/pread (configure.ac): ... to here.
15554
15555 2011-05-21  Bruno Haible  <bruno@clisp.org>
15556
15557         posix_spawn*: Move AC_LIBOBJ invocations to module description.
15558         * m4/posix_spawn.m4 (gl_PREREQ_POSIX_SPAWN_INTERNAL): Renamed from
15559         gl_POSIX_SPAWN_INTERNAL. Move AC_LIBOBJ invocation from here...
15560         * modules/posix_spawn (configure.ac): ... to here.
15561         * modules/posix_spawnp (configure.ac): ... and here.
15562
15563 2011-05-21  Bruno Haible  <bruno@clisp.org>
15564
15565         popen: Move AC_LIBOBJ invocations to module description.
15566         * m4/popen.m4 (gl_FUNC_POPEN): Move AC_LIBOBJ and gl_PREREQ_POPEN
15567         invocations from here...
15568         * modules/popen (configure.ac): ... to here.
15569
15570 2011-05-21  Bruno Haible  <bruno@clisp.org>
15571
15572         poll: Move AC_LIBOBJ invocations to module description.
15573         * m4/poll.m4 (gl_FUNC_POLL): Move AC_LIBOBJ and gl_PREREQ_POLL
15574         invocations from here...
15575         * modules/poll (configure.ac): ... to here.
15576
15577 2011-05-21  Bruno Haible  <bruno@clisp.org>
15578
15579         pipe-posix: Move AC_LIBOBJ invocations to module description.
15580         * m4/pipe.m4 (gl_FUNC_PIPE): Move AC_LIBOBJ invocation from here...
15581         * modules/pipe-posix (configure.ac): ... to here.
15582
15583 2011-05-21  Bruno Haible  <bruno@clisp.org>
15584
15585         openat: Respect rules for use of AC_LIBOBJ.
15586         * m4/openat.m4 (gl_FUNC_OPENAT): Call AC_CHECK_FUNCS instead of
15587         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15588         * modules/openat (configure.ac): ... to here.
15589
15590 2011-05-21  Bruno Haible  <bruno@clisp.org>
15591
15592         obstack-printf*: Move AC_LIBOBJ invocations to module description.
15593         * m4/obstack-printf.m4 (gl_REPLACE_OBSTACK_PRINTF): Move AC_LIBOBJ
15594         invocation from here...
15595         * modules/obstack-printf (configure.ac): ... to here.
15596         * modules/obstack-printf-posix (configure.ac): ... and here.
15597
15598 2011-05-21  Bruno Haible  <bruno@clisp.org>
15599
15600         nl_langinfo: Move AC_LIBOBJ invocations to module description.
15601         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Move AC_LIBOBJ invocations
15602         from here...
15603         * modules/nl_langinfo (configure.ac): ... to here.
15604
15605 2011-05-21  Bruno Haible  <bruno@clisp.org>
15606
15607         nanosleep: Move AC_LIBOBJ invocations to module description.
15608         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Move AC_LIBOBJ and
15609         gl_PREREQ_NANOSLEEP invocations from here...
15610         * modules/nanosleep (configure.ac): ... to here.
15611
15612 2011-05-21  Bruno Haible  <bruno@clisp.org>
15613
15614         mountlist: Move AC_LIBOBJ invocations to module description.
15615         * m4/mountlist.m4 (gl_MOUNTLIST): Move AC_LIBOBJ and
15616         gl_PREREQ_MOUNTLIST_EXTRA invocations from here...
15617         * modules/mountlist (configure.ac): ... to here.
15618
15619 2011-05-21  Bruno Haible  <bruno@clisp.org>
15620
15621         mktime: Respect rules for use of AC_LIBOBJ.
15622         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove macro.
15623         (gl_FUNC_MKTIME): Inline it here. Set gl_cv_func_working_mktime. Move
15624         AC_LIBOBJ and gl_PREREQ_MKTIME invocations from here...
15625         (gl_FUNC_MKTIME_INTERNAL): ... and here...
15626         * modules/mktime (configure.ac): ... to here.
15627         * modules/mktime-internal (configure.ac): ... and here.
15628         * m4/timegm.m4 (gl_FUNC_TIMEGM): Update.
15629
15630 2011-05-21  Bruno Haible  <bruno@clisp.org>
15631
15632         mkstemps: Move AC_LIBOBJ invocations to module description.
15633         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Move AC_LIBOBJ invocation from
15634         here...
15635         * modules/mkstemps (configure.ac): ... to here.
15636
15637 2011-05-21  Bruno Haible  <bruno@clisp.org>
15638
15639         mkstemp: Move AC_LIBOBJ invocations to module description.
15640         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Move AC_LIBOBJ and
15641         gl_PREREQ_MKSTEMP invocations from here...
15642         * modules/mkstemp (configure.ac): ... to here.
15643
15644 2011-05-21  Bruno Haible  <bruno@clisp.org>
15645
15646         mkostemps: Move AC_LIBOBJ invocations to module description.
15647         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Move AC_LIBOBJ invocation from
15648         here...
15649         * modules/mkostemps (configure.ac): ... to here.
15650
15651 2011-05-21  Bruno Haible  <bruno@clisp.org>
15652
15653         mkostemp: Move AC_LIBOBJ invocations to module description.
15654         * m4/mkostemp.m4 (gl_FUNC_MKOSTEMP): Move AC_LIBOBJ and
15655         gl_PREREQ_MKOSTEMP invocations from here...
15656         * modules/mkostemp (configure.ac): ... to here.
15657
15658 2011-05-21  Bruno Haible  <bruno@clisp.org>
15659
15660         mknod: Move AC_LIBOBJ invocations to module description.
15661         * m4/mknod.m4 (gl_FUNC_MKNOD): Move AC_LIBOBJ invocations from here...
15662         * modules/mknod (configure.ac): ... to here.
15663
15664 2011-05-21  Bruno Haible  <bruno@clisp.org>
15665
15666         mkfifoat: Move AC_LIBOBJ invocations to module description.
15667         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Move AC_LIBOBJ invocations from
15668         here...
15669         * modules/mkfifoat (configure.ac): ... to here.
15670
15671 2011-05-21  Bruno Haible  <bruno@clisp.org>
15672
15673         mkfifo: Respect rules for use of AC_LIBOBJ.
15674         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Move AC_LIBOBJ invocations from
15675         here...
15676         * modules/mkfifo (configure.ac): ... to here.
15677
15678 2011-05-21  Bruno Haible  <bruno@clisp.org>
15679
15680         mkdtemp: Move AC_LIBOBJ invocations to module description.
15681         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Move AC_LIBOBJ and gl_PREREQ_MKDTEMP
15682         invocations from here...
15683         * modules/mkdtemp (configure.ac): ... to here.
15684
15685 2011-05-21  Bruno Haible  <bruno@clisp.org>
15686
15687         mkdir: Move AC_LIBOBJ invocations to module description.
15688         * m4/mkdir.m4 (gl_FUNC_MKDIR): Move AC_LIBOBJ invocations from here...
15689         * modules/mkdir (configure.ac): ... to here.
15690
15691 2011-05-21  Bruno Haible  <bruno@clisp.org>
15692
15693         memset: Move AC_LIBOBJ invocations to module description.
15694         * m4/memset.m4 (gl_FUNC_MEMSET): Call AC_CHECK_FUNCS instead of
15695         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMSET invocations from
15696         here...
15697         * modules/memset (configure.ac): ... to here.
15698
15699 2011-05-21  Bruno Haible  <bruno@clisp.org>
15700
15701         memrchr: Move AC_LIBOBJ invocations to module description.
15702         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Call AC_CHECK_FUNCS instead of
15703         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMRCHR invocations from
15704         here...
15705         * modules/memrchr (configure.ac): ... to here.
15706
15707 2011-05-21  Bruno Haible  <bruno@clisp.org>
15708
15709         mempcpy: Move AC_LIBOBJ invocations to module description.
15710         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Call AC_CHECK_FUNCS instead of
15711         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMPCPY invocations from
15712         here...
15713         * modules/mempcpy (configure.ac): ... to here.
15714
15715 2011-05-21  Bruno Haible  <bruno@clisp.org>
15716
15717         memmove: Move AC_LIBOBJ invocations to module description.
15718         * m4/memmove.m4 (gl_FUNC_MEMMOVE): Call AC_CHECK_FUNCS instead of
15719         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMMOVE invocations from
15720         here...
15721         * modules/memmove (configure.ac): ... to here.
15722
15723 2011-05-21  Bruno Haible  <bruno@clisp.org>
15724
15725         memmem*: Move AC_LIBOBJ invocations to module description.
15726         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Call AC_CHECK_FUNCS instead of
15727         AC_REPLACE_FUNCS. Set HAVE_MEMMEM. Move AC_LIBOBJ invocations from
15728         here...
15729         (gl_FUNC_MEMMEM): ... and here...
15730         * modules/memmem-simple (configure.ac): ... to here.
15731         * modules/memmem (configure.ac): ... and here.
15732
15733 2011-05-21  Bruno Haible  <bruno@clisp.org>
15734
15735         memcpy: Move AC_LIBOBJ invocations to module description.
15736         * m4/memcpy.m4 (gl_FUNC_MEMCPY): Call AC_CHECK_FUNCS instead of
15737         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_MEMCPY invocations from
15738         here...
15739         * modules/memcpy (configure.ac): ... to here.
15740
15741 2011-05-21  Bruno Haible  <bruno@clisp.org>
15742
15743         memcmp: Simplify autoconf macro.
15744         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Merge the cross-compilation code into
15745         the AC_RUN_IFELSE invocation. Set gl_func_memcmp.
15746         * modules/memcmp (Depends-on, configure.ac): Test gl_func_memcmp.
15747
15748 2011-05-21  Bruno Haible  <bruno@clisp.org>
15749
15750         memcmp: Move AC_LIBOBJ invocations to module description.
15751         * m4/memcmp.m4 (AC_FUNC_MEMCMP): Remove macro.
15752         (gl_FUNC_MEMCMP): Inline it here. Set gl_cv_func_memcmp_working. Move
15753         AC_LIBOBJ and gl_PREREQ_MEMCMP invocations from here...
15754         * modules/memcmp (configure.ac): ... to here.
15755         (Depends-on): Update conditions.
15756
15757 2011-05-21  Bruno Haible  <bruno@clisp.org>
15758
15759         memchr: Respect rules for use of AC_LIBOBJ.
15760         * m4/memchr.m4 (gl_FUNC_MEMCHR): Move AC_LIBOBJ and gl_PREREQ_MEMCHR
15761         invocations from here...
15762         * modules/memchr (configure.ac): ... to here.
15763
15764 2011-05-21  Bruno Haible  <bruno@clisp.org>
15765
15766         mbtowc: Move AC_LIBOBJ invocations to module description.
15767         * m4/mbtowc.m4 (gl_FUNC_MBTOWC): Move AC_LIBOBJ and gl_PREREQ_MBTOWC
15768         invocations from here...
15769         * modules/mbtowc (configure.ac): ... to here.
15770
15771 2011-05-21  Bruno Haible  <bruno@clisp.org>
15772
15773         mbsrtowcs: Move AC_LIBOBJ invocations to module description.
15774         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Move AC_LIBOBJ and
15775         gl_PREREQ_MBSRTOWCS invocations from here...
15776         * modules/mbsrtowcs (configure.ac): ... to here.
15777
15778 2011-05-21  Bruno Haible  <bruno@clisp.org>
15779
15780         mbsnrtowcs: Move AC_LIBOBJ invocations to module description.
15781         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): Move AC_LIBOBJ and
15782         gl_PREREQ_MBSNRTOWCS invocations from here...
15783         * modules/mbsnrtowcs (configure.ac): ... to here.
15784
15785 2011-05-21  Bruno Haible  <bruno@clisp.org>
15786
15787         mbsinit: Move AC_LIBOBJ invocations to module description.
15788         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Move AC_LIBOBJ and gl_PREREQ_MBSINIT
15789         invocations from here...
15790         * modules/mbsinit (configure.ac): ... to here.
15791
15792 2011-05-21  Bruno Haible  <bruno@clisp.org>
15793
15794         mbrlen: Move AC_LIBOBJ invocations to module description.
15795         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Move AC_LIBOBJ and gl_PREREQ_MBRLEN
15796         invocations from here...
15797         * modules/mbrlen (configure.ac): ... to here.
15798
15799 2011-05-21  Bruno Haible  <bruno@clisp.org>
15800
15801         mbrtowc: Respect rules for use of AC_LIBOBJ.
15802         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Move AC_LIBOBJ and gl_PREREQ_MBRTOWC
15803         invocations from here...
15804         * modules/mbrtowc (configure.ac): ... to here.
15805
15806 2011-05-21  Bruno Haible  <bruno@clisp.org>
15807
15808         malloc-*: Move AC_LIBOBJ invocations to module description.
15809         * m4/malloc.m4 (gl_REPLACE_MALLOC): Remove macro.
15810         (gl_FUNC_MALLOC_GNU, gl_FUNC_MALLOC_POSIX): Inline it here. Move
15811         AC_LIBOBJ invocations from here...
15812         * modules/malloc-gnu (configure.ac): ... to here.
15813         * modules/malloc-posix (configure.ac): ... and here.
15814
15815 2011-05-21  Bruno Haible  <bruno@clisp.org>
15816
15817         lstat, openat: Respect rules for use of AC_LIBOBJ.
15818         * m4/lstat.m4 (gl_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Renamed from
15819         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK. Set variable
15820         gl_cv_func_lstat_dereferences_slashed_symlink. Don't invoke AC_LIBOBJ.
15821         (gl_PREREQ_LSTAT): New macro, extracted from gl_FUNC_LSTAT.
15822         (gl_FUNC_LSTAT): Update. Remove gl_PREREQ_LSTAT code.
15823         * modules/lstat (configure.ac): Invoke AC_LIBOBJ and gl_PREREQ_LSTAT
15824         here.
15825         * m4/openat.m4 (gl_FUNC_OPENAT): Update.
15826
15827 2011-05-21  Bruno Haible  <bruno@clisp.org>
15828
15829         lseek: Move AC_LIBOBJ invocations to module description.
15830         * m4/lseek.m4 (gl_REPLACE_LSEEK): Remove macro.
15831         (gl_FUNC_LSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
15832         * modules/lseek (configure.ac): ... to here.
15833
15834 2011-05-21  Bruno Haible  <bruno@clisp.org>
15835
15836         linkat: Move AC_LIBOBJ invocations to module description.
15837         * m4/linkat.m4 (gl_FUNC_LINKAT): Move AC_LIBOBJ invocations from
15838         here...
15839         * modules/linkat (configure.ac): ... to here.
15840
15841 2011-05-21  Bruno Haible  <bruno@clisp.org>
15842
15843         link: Respect rules for use of AC_LIBOBJ.
15844         * m4/link.m4 (gl_FUNC_LINK): Move AC_LIBOBJ invocations from here...
15845         * modules/link (configure.ac): ... to here.
15846
15847 2011-05-21  Bruno Haible  <bruno@clisp.org>
15848
15849         lchown: Move AC_LIBOBJ invocations to module description.
15850         * m4/lchown.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
15851         AC_REPLACE_FUNCS. Move AC_LIBOBJ invocations from here...
15852         * modules/lchown (configure.ac): ... to here.
15853
15854 2011-05-21  Bruno Haible  <bruno@clisp.org>
15855
15856         iswctype: Move AC_LIBOBJ invocations to module description.
15857         * m4/iswctype.m4 (gl_FUNC_ISWCTYPE): Move AC_LIBOBJ invocation from
15858         here...
15859         * modules/iswctype (configure.ac): ... to here.
15860
15861 2011-05-21  Bruno Haible  <bruno@clisp.org>
15862
15863         iswblank: Move AC_LIBOBJ invocations to module description.
15864         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Move AC_LIBOBJ invocation from
15865         here...
15866         * modules/iswblank (configure.ac): ... to here.
15867
15868 2011-05-21  Bruno Haible  <bruno@clisp.org>
15869
15870         atanl: Move AC_LIBOBJ invocations to module description.
15871         * m4/atanl.m4 (gl_FUNC_ATANL): Move AC_LIBOBJ invocation from here...
15872         * modules/atanl (configure.ac): ... to here.
15873
15874 2011-05-21  Bruno Haible  <bruno@clisp.org>
15875
15876         acosl: Move AC_LIBOBJ invocations to module description.
15877         * m4/acosl.m4 (gl_FUNC_ACOSL): Move AC_LIBOBJ invocation from here...
15878         * modules/acosl (configure.ac): ... to here.
15879
15880 2011-05-21  Bruno Haible  <bruno@clisp.org>
15881
15882         asinl: Respect rules for use of AC_LIBOBJ.
15883         * m4/asinl.m4 (gl_FUNC_ASINL): Move AC_LIBOBJ invocation from here...
15884         * modules/asinl (configure.ac): ... to here.
15885
15886 2011-05-21  Bruno Haible  <bruno@clisp.org>
15887
15888         tanl: Move AC_LIBOBJ invocations to module description.
15889         * m4/tanl.m4 (gl_FUNC_TANL): Move AC_LIBOBJ invocations from here...
15890         * modules/tanl (configure.ac): ... to here.
15891
15892 2011-05-21  Bruno Haible  <bruno@clisp.org>
15893
15894         cosl: Move AC_LIBOBJ invocations to module description.
15895         * m4/cosl.m4 (gl_FUNC_COSL): Move AC_LIBOBJ invocations from here...
15896         * modules/cosl (configure.ac): ... to here.
15897
15898 2011-05-21  Bruno Haible  <bruno@clisp.org>
15899
15900         sinl: Move AC_LIBOBJ invocations to module description.
15901         * m4/sinl.m4 (gl_FUNC_SINL): Move AC_LIBOBJ invocations from here...
15902         * modules/sinl (configure.ac): ... to here.
15903
15904 2011-05-21  Bruno Haible  <bruno@clisp.org>
15905
15906         logl: Move AC_LIBOBJ invocations to module description.
15907         * m4/logl.m4 (gl_FUNC_LOGL): Move AC_LIBOBJ invocation from here...
15908         * modules/logl (configure.ac): ... to here.
15909
15910 2011-05-21  Bruno Haible  <bruno@clisp.org>
15911
15912         expl: Move AC_LIBOBJ invocations to module description.
15913         * m4/expl.m4 (gl_FUNC_EXPL): Move AC_LIBOBJ invocation from here...
15914         * modules/expl (configure.ac): ... to here.
15915
15916 2011-05-21  Bruno Haible  <bruno@clisp.org>
15917
15918         roundl: Move AC_LIBOBJ invocations to module description.
15919         * m4/roundl.m4 (gl_FUNC_ROUNDL): Move AC_LIBOBJ invocation from here...
15920         * modules/roundl (configure.ac): ... to here.
15921
15922 2011-05-21  Bruno Haible  <bruno@clisp.org>
15923
15924         round: Move AC_LIBOBJ invocations to module description.
15925         * m4/round.m4 (gl_FUNC_ROUND): Move AC_LIBOBJ invocation from here...
15926         * modules/round (configure.ac): ... to here.
15927
15928 2011-05-21  Bruno Haible  <bruno@clisp.org>
15929
15930         roundf: Move AC_LIBOBJ invocations to module description.
15931         * m4/roundf.m4 (gl_FUNC_ROUNDF): Move AC_LIBOBJ invocation from here...
15932         * modules/roundf (configure.ac): ... to here.
15933
15934 2011-05-21  Bruno Haible  <bruno@clisp.org>
15935
15936         truncl: Move AC_LIBOBJ invocations to module description.
15937         * m4/truncl.m4 (gl_FUNC_TRUNCL): Move AC_LIBOBJ invocation from here...
15938         * modules/truncl (configure.ac): ... to here.
15939
15940 2011-05-21  Bruno Haible  <bruno@clisp.org>
15941
15942         trunc: Move AC_LIBOBJ invocations to module description.
15943         * m4/trunc.m4 (gl_FUNC_TRUNC): Move AC_LIBOBJ invocation from here...
15944         * modules/trunc (configure.ac): ... to here.
15945
15946 2011-05-21  Bruno Haible  <bruno@clisp.org>
15947
15948         truncf: Move AC_LIBOBJ invocations to module description.
15949         * m4/truncf.m4 (gl_FUNC_TRUNCF): Move AC_LIBOBJ invocation from here...
15950         * modules/truncf (configure.ac): ... to here.
15951
15952 2011-05-21  Bruno Haible  <bruno@clisp.org>
15953
15954         ceill: Move AC_LIBOBJ invocations to module description.
15955         * m4/ceill.m4 (gl_FUNC_CEILL): Move AC_LIBOBJ invocation from here...
15956         * modules/ceill (configure.ac): ... to here.
15957
15958 2011-05-21  Bruno Haible  <bruno@clisp.org>
15959
15960         ceil: Move AC_LIBOBJ invocations to module description.
15961         * m4/ceil.m4 (gl_FUNC_CEIL): Move AC_LIBOBJ invocation from here...
15962         * modules/ceil (configure.ac): ... to here.
15963
15964 2011-05-21  Bruno Haible  <bruno@clisp.org>
15965
15966         ceilf: Move AC_LIBOBJ invocations to module description.
15967         * m4/ceilf.m4 (gl_FUNC_CEILF): Move AC_LIBOBJ invocation from here...
15968         * modules/ceilf (configure.ac): ... to here.
15969
15970 2011-05-21  Bruno Haible  <bruno@clisp.org>
15971
15972         floorl: Respect rules for use of AC_LIBOBJ.
15973         * m4/floorl.m4 (gl_FUNC_FLOORL): Move AC_LIBOBJ invocation from here...
15974         * modules/floorl (configure.ac): ... to here.
15975
15976 2011-05-21  Bruno Haible  <bruno@clisp.org>
15977
15978         floor: Respect rules for use of AC_LIBOBJ.
15979         * m4/floor.m4 (gl_FUNC_FLOOR): Move AC_LIBOBJ invocation from here...
15980         * modules/floor (configure.ac): ... to here.
15981
15982 2011-05-21  Bruno Haible  <bruno@clisp.org>
15983
15984         floorf: Move AC_LIBOBJ invocations to module description.
15985         * m4/floorf.m4 (gl_FUNC_FLOORF): Move AC_LIBOBJ invocation from here...
15986         * modules/floorf (configure.ac): ... to here.
15987
15988 2011-05-20  Bruno Haible  <bruno@clisp.org>
15989
15990         sqrtl: Respect rules for use of AC_LIBOBJ.
15991         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Move AC_LIBOBJ invocation from here...
15992         * modules/sqrtl (configure.ac): ... to here.
15993
15994 2011-05-20  Bruno Haible  <bruno@clisp.org>
15995
15996         ldexpl: Respect rules for use of AC_LIBOBJ.
15997         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Move AC_LIBOBJ invocation from here...
15998         * modules/ldexpl (configure.ac): ... to here.
15999
16000 2011-05-20  Bruno Haible  <bruno@clisp.org>
16001
16002         frexpl*: Respect rules for use of AC_LIBOBJ.
16003         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Move AC_LIBOBJ
16004         invocation from here...
16005         * modules/frexpl (configure.ac): ... to here.
16006         * modules/frexpl-nolibm (configure.ac): ... and here.
16007
16008 2011-05-20  Bruno Haible  <bruno@clisp.org>
16009
16010         frexp, frexp-nolibm: Move AC_LIBOBJ invocations to module description.
16011         * m4/frexp.m4 (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Move AC_LIBOBJ
16012         invocation from here...
16013         * modules/frexp (configure.ac): ... to here.
16014         * modules/frexp-nolibm (configure.ac): ... and here.
16015
16016 2011-05-20  Bruno Haible  <bruno@clisp.org>
16017
16018         isnan: Respect rules for use of AC_LIBOBJ.
16019         * m4/isnan.m4 (gl_ISNAN): Don't do the AC_LIBOBJ and gl_PREREQ_ISNAN*
16020         invocations here.
16021         * modules/isnanf (configure.ac): Require gl_ISNAN if it exists. Test
16022         REPLACE_ISNAN.
16023         * modules/isnand (configure.ac): Likewise.
16024         * modules/isnanl (configure.ac): Likewise.
16025
16026 2011-05-20  Bruno Haible  <bruno@clisp.org>
16027
16028         isnanl*: Respect rules for use of AC_LIBOBJ.
16029         * m4/isnanl.m4 (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Move AC_LIBOBJ
16030         invocation from here...
16031         * modules/isnanl (configure.ac): ... to here.
16032         * modules/isnanl-nolibm (configure.ac): ... and here.
16033
16034 2011-05-20  Bruno Haible  <bruno@clisp.org>
16035
16036         isnand*: Move AC_LIBOBJ invocations to module description.
16037         * m4/isnand.m4 (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Move AC_LIBOBJ
16038         invocation from here...
16039         * modules/isnand (configure.ac): ... to here.
16040         * modules/isnand-nolibm (configure.ac): ... and here.
16041
16042 2011-05-20  Bruno Haible  <bruno@clisp.org>
16043
16044         isnanf*: Move AC_LIBOBJ invocations to module description.
16045         * m4/isnanf.m4 (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Move AC_LIBOBJ
16046         invocation from here...
16047         * modules/isnanf (configure.ac): ... to here.
16048         * modules/isnanf-nolibm (configure.ac): ... and here.
16049
16050 2011-05-20  Bruno Haible  <bruno@clisp.org>
16051
16052         isnan*: Separate the AC_LIBOBJ invocations.
16053         * m4/isnanf.m4 (gl_PREREQ_ISNANF): Renamed from gl_BUILD_ISNANF. Remove
16054         AC_LIBOBJ invocation.
16055         (gl_FUNC_ISNANF, gl_FUNC_ISNANF_NO_LIBM): Update. Invoke AC_LIBOBJ
16056         here.
16057         * m4/isnand.m4 (gl_PREREQ_ISNAND): Renamed from gl_BUILD_ISNAND. Remove
16058         AC_LIBOBJ invocation.
16059         (gl_FUNC_ISNAND, gl_FUNC_ISNAND_NO_LIBM): Update. Invoke AC_LIBOBJ
16060         here.
16061         * m4/isnanl.m4 (gl_PREREQ_ISNANL): Renamed from gl_BUILD_ISNANL. Remove
16062         AC_LIBOBJ invocation.
16063         (gl_FUNC_ISNANL, gl_FUNC_ISNANL_NO_LIBM): Update. Invoke AC_LIBOBJ
16064         here.
16065         * m4/isnan.m4 (gl_ISNAN): Update. Invoke AC_LIBOBJ here.
16066
16067 2011-05-08  Bruno Haible  <bruno@clisp.org>
16068
16069         isinf: Move AC_LIBOBJ invocations to module description.
16070         * m4/isinf.m4 (gl_ISINF): Move AC_LIBOBJ invocation from here...
16071         * modules/isinf (configure.ac): ... to here.
16072
16073 2011-05-08  Bruno Haible  <bruno@clisp.org>
16074
16075         isfinite: Move AC_LIBOBJ invocations to module description.
16076         * m4/isfinite.m4 (gl_ISFINITE): Move AC_LIBOBJ invocation from here...
16077         * modules/isfinite (configure.ac): ... to here.
16078
16079 2011-05-08  Bruno Haible  <bruno@clisp.org>
16080
16081         isblank: Move AC_LIBOBJ invocations to module description.
16082         * m4/isblank.m4 (gl_FUNC_ISBLANK): Move AC_LIBOBJ invocation from
16083         here...
16084         * modules/isblank (configure.ac): ... to here.
16085
16086 2011-05-08  Bruno Haible  <bruno@clisp.org>
16087
16088         isapipe: Move AC_LIBOBJ invocations to module description.
16089         * m4/isapipe.m4 (gl_ISAPIPE): Set HAVE_ISAPIPE. Move AC_LIBOBJ and
16090         gl_PREREQ_ISAPIPE invocations from here...
16091         * modules/isapipe (configure.ac): ... to here.
16092         (Depends-on): Update condition.
16093
16094 2011-05-08  Bruno Haible  <bruno@clisp.org>
16095
16096         ioctl: Move AC_LIBOBJ invocations to module description.
16097         * m4/ioctl.m4 (gl_FUNC_IOCTL): Set HAVE_IOCTL. Move AC_LIBOBJ
16098         invocations from here...
16099         * modules/ioctl (configure.ac): ... to here.
16100         (Depends-on): Update condition.
16101
16102 2011-05-08  Bruno Haible  <bruno@clisp.org>
16103
16104         imaxdiv: Move AC_LIBOBJ invocations to module description.
16105         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Move AC_LIBOBJ and gl_PREREQ_IMAXDIV
16106         invocations from here...
16107         * modules/imaxdiv (configure.ac): ... to here.
16108
16109 2011-05-08  Bruno Haible  <bruno@clisp.org>
16110
16111         imaxabs: Move AC_LIBOBJ invocations to module description.
16112         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Move AC_LIBOBJ and gl_PREREQ_IMAXABS
16113         invocations from here...
16114         * modules/imaxabs (configure.ac): ... to here.
16115
16116 2011-05-08  Bruno Haible  <bruno@clisp.org>
16117
16118         getaddrinfo: Move AC_LIBOBJ invocations to module description.
16119         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Set HAVE_GETADDRINFO, Move
16120         AC_LIBOBJ invocations from here...
16121         * modules/getaddrinfo (configure.ac): ... to here.
16122         (Depends-on): Add conditions.
16123
16124 2011-05-08  Bruno Haible  <bruno@clisp.org>
16125
16126         inet_pton. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16127         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Set HAVE_INET_PTON. Call
16128         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16129         gl_PREREQ_INET_PTON. Move tests for declaration of inet_pton here...
16130         (gl_PREREQ_INET_PTON): ... from here.
16131         * modules/inet_pton (configure.ac): Invoke AC_LIBOBJ and
16132         gl_PREREQ_INET_PTON here.
16133         (Depends-on): Update condition.
16134
16135 2011-05-08  Bruno Haible  <bruno@clisp.org>
16136
16137         inet_ntop. getaddrinfo: Respect rules for use of AC_LIBOBJ.
16138         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Set HAVE_INET_NTOP. Call
16139         AC_CHECK_FUNCS instead of AC_REPLACE_FUNCS. Don't invoke
16140         gl_PREREQ_INET_NTOP. Move tests for declaration of inet_ntop here...
16141         (gl_PREREQ_INET_NTOP): ... from here.
16142         * modules/inet_ntop (configure.ac): Invoke AC_LIBOBJ and
16143         gl_PREREQ_INET_NTOP here.
16144         (Depends-on): Update condition.
16145
16146 2011-05-08  Bruno Haible  <bruno@clisp.org>
16147
16148         iconv_open: Move AC_LIBOBJ invocations to module description.
16149         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN, gl_REPLACE_ICONV_OPEN): Move
16150         AC_LIBOBJ invocations from here...
16151         * modules/iconv_open (configure.ac): ... to here.
16152
16153 2011-05-08  Bruno Haible  <bruno@clisp.org>
16154
16155         iconv_open, iconv_open-utf: Respect rules for use of AC_LIBOBJ.
16156         If module 'iconv_open' is among the main modules and module
16157         'iconv_open-utf' is among the tests dependencies, then
16158         REPLACE_ICONV_UTF will be defined to 1, hence iconv_open() in lib may
16159         return the special iconv_t values. Therefore iconv() and iconv_close()
16160         must support these special iconv_t values, already in lib, not only in
16161         tests.
16162         * m4/iconv_open-utf.m4: New file, extracted from m4/iconv_open.m4.
16163         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke
16164         gl_FUNC_ICONV_OPEN_UTF_SUPPORT if present.
16165         (gl_FUNC_ICONV_OPEN_UTF): Remove macro.
16166         * modules/iconv_open (Files): Add lib/iconv.c, lib/iconv_close.c.
16167         (Depends-on): Add the dependencies of iconv_open-utf.
16168         * modules/iconv_open-utf (Files): Add m4/iconv_open-utf.m4. Remove
16169         m4/iconv_open.m4, lib/iconv.c, lib/iconv_close.c.
16170         (Depends-on): Remove modules needed by lib/iconv.c, lib/iconv_close.c.
16171
16172 2011-05-08  Bruno Haible  <bruno@clisp.org>
16173
16174         group-member: Move AC_LIBOBJ invocations to module description.
16175         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Move AC_LIBOBJ and
16176         gl_PREREQ_GROUP_MEMBER invocations from here...
16177         * modules/group-member (configure.ac): ... to here.
16178
16179 2011-05-08  Bruno Haible  <bruno@clisp.org>
16180
16181         grantpt: Move AC_LIBOBJ invocations to module description.
16182         * m4/grantpt.m4 (gl_FUNC_GRANTPT): Move AC_LIBOBJ and gl_PREREQ_GRANTPT
16183         invocations from here...
16184         * modules/grantpt (configure.ac): ... to here.
16185
16186 2011-05-08  Bruno Haible  <bruno@clisp.org>
16187
16188         glob: Move AC_LIBOBJ invocations to module description.
16189         * m4/glob.m4 (gl_GLOB): Move AC_LIBOBJ and gl_PREREQ_GLOB invocations
16190         from here...
16191         * modules/glob (configure.ac): ... to here.
16192
16193 2011-05-08  Bruno Haible  <bruno@clisp.org>
16194
16195         getusershell: Move AC_LIBOBJ invocations to module description.
16196         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Set HAVE_GETUSERSHELL.
16197         Move AC_LIBOBJ invocation from here...
16198         * modules/getusershell (configure.ac): ... to here.
16199         (Depends-on): Update condition.
16200
16201 2011-05-08  Bruno Haible  <bruno@clisp.org>
16202
16203         gettimeofday: Move AC_LIBOBJ invocations to module description.
16204         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
16205         gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Move AC_LIBOBJ and
16206         gl_PREREQ_GETTIMEOFDAY invocations from here...
16207         * modules/gettimeofday (configure.ac): ... to here.
16208
16209 2011-05-08  Bruno Haible  <bruno@clisp.org>
16210
16211         gettimeofday, tzset: Respect rules for use of AC_LIBOBJ.
16212         * modules/tzset (configure.ac): Don't invoke gl_FUNC_TZSET_CLOBBER,
16213         just gl_FUNC_TZSET.
16214         * m4/tzset.m4 (gl_FUNC_TZSET): New macro.
16215         (gl_FUNC_TZSET_CLOBBER): Remove actions.
16216         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Invoke
16217         gl_FUNC_TZSET_CLOBBER and its actions here, if present.
16218
16219 2011-05-08  Bruno Haible  <bruno@clisp.org>
16220
16221         getsubopt: Move AC_LIBOBJ invocations to module description.
16222         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Move AC_LIBOBJ and
16223         gl_PREREQ_GETSUBOPT invocations from here...
16224         * modules/getsubopt (configure.ac): ... to here.
16225
16226 2011-05-08  Bruno Haible  <bruno@clisp.org>
16227
16228         getpass-gnu: Move AC_LIBOBJ invocations to module description.
16229         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): Set REPLACE_GETPASS. Move
16230         AC_LIBOBJ and gl_PREREQ_GETPASS invocations from here...
16231         * modules/getpass-gnu (configure.ac): ... to here.
16232
16233 2011-05-08  Bruno Haible  <bruno@clisp.org>
16234
16235         getpass: Move AC_LIBOBJ invocations to module description.
16236         * m4/getpass.m4 (gl_FUNC_GETPASS): Set HAVE_GETPASS. Move AC_LIBOBJ and
16237         gl_PREREQ_GETPASS invocations from here...
16238         * modules/getpass (configure.ac): ... to here.
16239
16240 2011-05-08  Bruno Haible  <bruno@clisp.org>
16241
16242         getpagesize: Move AC_LIBOBJ invocations to module description.
16243         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Move AC_LIBOBJ invocation
16244         from here...
16245         * modules/getpagesize (configure.ac): ... to here.
16246
16247 2011-05-08  Bruno Haible  <bruno@clisp.org>
16248
16249         getopt: Move AC_LIBOBJ invocations to module description.
16250         * m4/getopt.m4 (gl_REPLACE_GETOPT): Remove macro.
16251         (gl_FUNC_GETOPT): Inline it here. Move AC_LIBOBJ and gl_PREREQ_GETOPT
16252         invocations from here...
16253         * modules/getopt-gnu (configure.ac): ... to here.
16254         * modules/getopt-posix (configure.ac): ... and here.
16255         (Depends-on): Update condition.
16256
16257 2011-05-08  Bruno Haible  <bruno@clisp.org>
16258
16259         getopt, argp: Respect rules for use of AC_LIBOBJ.
16260         * m4/argp.m4 (gl_ARGP): Don't invoke gl_REPLACE_GETOPT.
16261         (gl_REPLACE_GETOPT_ALWAYS): New macro.
16262         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX): Test whether
16263         gl_REPLACE_GETOPT_ALWAYS is defined. Set REPLACE_GETOPT.
16264
16265 2011-05-08  Bruno Haible  <bruno@clisp.org>
16266
16267         getlogin_r: Move AC_LIBOBJ invocations to module description.
16268         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Move AC_LIBOBJ and
16269         gl_PREREQ_GETLOGIN_R invocations from here...
16270         * modules/getlogin_r (configure.ac): ... to here.
16271
16272 2011-05-08  Bruno Haible  <bruno@clisp.org>
16273
16274         getlogin: Move AC_LIBOBJ invocations to module description.
16275         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Move AC_LIBOBJ invocation from
16276         here...
16277         * modules/getlogin (configure.ac): ... to here.
16278
16279 2011-05-08  Bruno Haible  <bruno@clisp.org>
16280
16281         getloadavg: Move AC_LIBOBJ invocations to module description.
16282         * m4/getloadavg.m4 (gl_FUNC_GETDELIM): Set HAVE_GETLOADAVG. Move
16283         AC_LIBOBJ and gl_PREREQ_GETLOADAVG invocations from here...
16284         * modules/getloadavg (configure.ac): ... to here.
16285
16286 2011-05-08  Bruno Haible  <bruno@clisp.org>
16287
16288         gethrxtime: Move AC_LIBOBJ invocations to module description.
16289         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Move code that determines
16290         LIB_GETHRXTIME from here...
16291         (gl_GETHRXTIME): ... to here. Move AC_LIBOBJ and gl_PREREQ_GETHRXTIME
16292         invocations from here...
16293         * modules/gethrxtime (configure.ac): ... to here.
16294
16295 2011-05-08  Bruno Haible  <bruno@clisp.org>
16296
16297         gethostname: Move AC_LIBOBJ invocations to module description.
16298         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Move AC_LIBOBJ and
16299         gl_PREREQ_GETHOSTNAME invocations from here...
16300         * modules/gethostname (configure.ac): ... to here.
16301
16302 2011-05-08  Bruno Haible  <bruno@clisp.org>
16303
16304         getgroups: Move AC_LIBOBJ invocations to module description.
16305         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Move AC_LIBOBJ invocations from
16306         here...
16307         * modules/getgroups (configure.ac): ... to here.
16308
16309 2011-05-08  Bruno Haible  <bruno@clisp.org>
16310
16311         getdtablesize: Move AC_LIBOBJ invocations to module description.
16312         * m4/getdtablesize.m4 (gl_FUNC_GETDTABLESIZE): Move AC_LIBOBJ
16313         invocation from here...
16314         * modules/getdtablesize (configure.ac): ... to here.
16315
16316 2011-05-08  Bruno Haible  <bruno@clisp.org>
16317
16318         getdomainname: Move AC_LIBOBJ invocations to module description.
16319         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Move AC_LIBOBJ and
16320         gl_PREREQ_GETDOMAINNAME invocations from here...
16321         * modules/getdomainname (configure.ac): ... to here.
16322
16323 2011-05-08  Bruno Haible  <bruno@clisp.org>
16324
16325         getline: Move AC_LIBOBJ invocations to module description.
16326         * m4/getline.m4 (gl_FUNC_GETLINE): Move AC_LIBOBJ and gl_PREREQ_GETLINE
16327         invocations from here...
16328         * modules/getline (configure.ac): ... to here.
16329
16330 2011-05-08  Bruno Haible  <bruno@clisp.org>
16331
16332         getline: Simplify.
16333         * m4/getline.m4 (gl_PREREQ_GETLINE): Don't invoke gl_FUNC_GETDELIM.
16334         It's already handled through the module dependency.
16335
16336 2011-05-08  Bruno Haible  <bruno@clisp.org>
16337
16338         getdelim: Move AC_LIBOBJ invocations to module description.
16339         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Set HAVE_GETDELIM. Move AC_LIBOBJ
16340         and gl_PREREQ_GETDELIM invocations from here...
16341         * modules/getdelim (configure.ac): ... to here.
16342         (Depends-on): Fix condition.
16343
16344 2011-05-08  Bruno Haible  <bruno@clisp.org>
16345
16346         getcwd: Move AC_LIBOBJ invocations to module description.
16347         * m4/getcwd.m4 (gl_FUNC_GETCWD): Move AC_LIBOBJ and gl_PREREQ_GETCWD
16348         invocations from here...
16349         * modules/getcwd (configure.ac): ... to here.
16350
16351 2011-05-08  Bruno Haible  <bruno@clisp.org>
16352
16353         getcwd-lgpl: Move AC_LIBOBJ invocations to module description.
16354         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): Move AC_LIBOBJ invocation from
16355         here...
16356         * modules/getcwd-lgpl (configure.ac): ... to here.
16357
16358 2011-05-07  Bruno Haible  <bruno@clisp.org>
16359
16360         crypto/gc: Move AC_LIBOBJ invocations to module description.
16361         * m4/gc.m4 (gl_GC): Move AC_LIBOBJ invocations from here...
16362         * modules/crypto/gc (configure.ac): ... to here.
16363
16364 2011-05-07  Bruno Haible  <bruno@clisp.org>
16365
16366         fwriting: Move AC_LIBOBJ invocations to module description.
16367         * m4/fwriting.m4 (gl_FUNC_FWRITINT): Move AC_LIBOBJ invocation from
16368         here...
16369         * modules/fwriting (configure.ac): ... to here.
16370
16371 2011-05-07  Bruno Haible  <bruno@clisp.org>
16372
16373         fwritable: Move AC_LIBOBJ invocations to module description.
16374         * m4/fwritable.m4 (gl_FUNC_FWRITABLE): Move AC_LIBOBJ invocation from
16375         here...
16376         * modules/fwritable (configure.ac): ... to here.
16377
16378 2011-05-07  Bruno Haible  <bruno@clisp.org>
16379
16380         futimens: Move AC_LIBOBJ invocations to module description.
16381         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Move AC_LIBOBJ invocations from
16382         here...
16383         * modules/futimens (configure.ac): ... to here.
16384
16385 2011-05-07  Bruno Haible  <bruno@clisp.org>
16386
16387         ftruncate: Move AC_LIBOBJ invocations to module description.
16388         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Move AC_LIBOBJ and
16389         gl_PREREQ_FTRUNCATE invocations from here...
16390         * modules/ftruncate (configure.ac): ... to here.
16391
16392 2011-05-07  Bruno Haible  <bruno@clisp.org>
16393
16394         fsync: Move AC_LIBOBJ invocations to module description.
16395         * m4/fsync.m4 (gl_FUNC_FSYNC): Move AC_LIBOBJ and gl_PREREQ_FSYNC
16396         invocations from here...
16397         * modules/fsync (configure.ac): ... to here.
16398
16399 2011-05-07  Bruno Haible  <bruno@clisp.org>
16400
16401         fsusage: Move AC_LIBOBJ invocations to module description.
16402         * m4/fsusage.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and
16403         gl_PREREQ_FSUSAGE_EXTRA invocations from here...
16404         * modules/fsusage (configure.ac): ... to here.
16405
16406 2011-05-07  Bruno Haible  <bruno@clisp.org>
16407
16408         freopen: Move AC_LIBOBJ invocations to module description.
16409         * m4/freopen.m4 (gl_FUNC_FREOPEN): Move AC_LIBOBJ and gl_PREREQ_FREOPEN
16410         invocations from here...
16411         * modules/freopen (configure.ac): ... to here.
16412
16413 2011-05-07  Bruno Haible  <bruno@clisp.org>
16414
16415         free: Move AC_LIBOBJ invocations to module description.
16416         * m4/free.m4 (gl_FUNC_FREE): Move AC_LIBOBJ and missing gl_PREREQ_FREE
16417         invocations from here...
16418         * modules/free (configure.ac): ... to here.
16419
16420 2011-05-07  Bruno Haible  <bruno@clisp.org>
16421
16422         freadable: Move AC_LIBOBJ invocations to module description.
16423         * m4/freadable.m4 (gl_FUNC_FREADABLE): Move AC_LIBOBJ invocation from
16424         here...
16425         * modules/freadable (configure.ac): ... to here.
16426
16427 2011-05-07  Bruno Haible  <bruno@clisp.org>
16428
16429         fpurge: Move AC_LIBOBJ invocations to module description.
16430         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set HAVE_FPURGE. Move AC_LIBOBJ
16431         invocations from here...
16432         * modules/fpurge (configure.ac): ... to here.
16433
16434 2011-05-07  Bruno Haible  <bruno@clisp.org>
16435
16436         fpending: Move AC_LIBOBJ invocations to module description.
16437         * m4/fpending.m4 (gl_PREREQ_FPENDING): New macro, extracted from
16438         gl_FUNC_FPENDING.
16439         (gl_FUNC_FPENDING): Move AC_LIBOBJ and gl_PREREQ_FPENDING
16440         invocations from here...
16441         * modules/fpending (configure.ac): ... to here.
16442
16443 2011-05-07  Bruno Haible  <bruno@clisp.org>
16444
16445         fopen: Move AC_LIBOBJ invocations to module description.
16446         * m4/fopen.m4 (gl_FUNC_FOPEN): Move AC_LIBOBJ and gl_PREREQ_FOPEN
16447         invocations from here...
16448         * modules/fopen (configure.ac): ... to here.
16449
16450 2011-05-07  Bruno Haible  <bruno@clisp.org>
16451
16452         fnmatch, fnmatch-gnu: Move AC_LIBOBJ invocations to module description.
16453         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH): New macro, extracted from
16454         gl_FUNC_FNMATCH_POSIX.
16455         (gl_FUNC_FNMATCH_POSIX): Move AC_LIBOBJ and gl_PREREQ_FNMATCH
16456         invocations from here...
16457         * modules/fnmatch (configure.ac): ... to here.
16458         * modules/fnmatch-gnu (configure.ac): ... and here.
16459
16460 2011-05-07  Bruno Haible  <bruno@clisp.org>
16461
16462         flock: Move AC_LIBOBJ invocations to module description.
16463         * m4/flock.m4 (gl_FUNC_FLOCK): Move AC_LIBOBJ and gl_PREREQ_FLOCK
16464         invocations from here...
16465         * modules/flock (configure.ac): ... to here.
16466
16467 2011-05-07  Bruno Haible  <bruno@clisp.org>
16468
16469         fileblocks: Move AC_LIBOBJ invocations to module description.
16470         * m4/fileblocks.m4 (gl_FILEBLOCKS): Move AC_LIBOBJ and
16471         gl_PREREQ_FILEBLOCKS invocations from here...
16472         * modules/fileblocks (configure.ac): ... to here.
16473
16474 2011-05-06  Bruno Haible  <bruno@clisp.org>
16475
16476         fflush: Move AC_LIBOBJ invocations to module description.
16477         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Remove macro.
16478         (gl_FUNC_FFLUSH): Inline it here. Move AC_LIBOBJ and gl_PREREQ_FFLUSH
16479         invocations from here...
16480         * modules/fflush (configure.ac): ... to here.
16481
16482 2011-05-06  Bruno Haible  <bruno@clisp.org>
16483
16484         fdopendir: Move AC_LIBOBJ invocations to module description.
16485         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Move AC_LIBOBJ invocations from
16486         here...
16487         * modules/fdopendir (configure.ac): ... to here.
16488         (Depends-on): Improve conditions.
16489
16490 2011-05-06  Bruno Haible  <bruno@clisp.org>
16491
16492         _Exit: Move AC_LIBOBJ invocations to module description.
16493         * m4/_Exit.m4 (gl_FUNC__EXIT): Move AC_LIBOBJ and gl_PREREQ__EXIT
16494         invocations from here...
16495         * modules/_Exit (configure.ac): ... to here.
16496
16497 2011-05-21  Bruno Haible  <bruno@clisp.org>
16498
16499         euidaccess: Respect rules for use of AC_LIBOBJ.
16500         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Call AC_CHECK_FUNCS instead of
16501         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_EUIDACCESS invocations
16502         from here...
16503         * modules/euidaccess (configure.ac): ... to here.
16504
16505 2011-05-06  Bruno Haible  <bruno@clisp.org>
16506
16507         error: Move AC_LIBOBJ invocations to module description.
16508         * m4/error.m4 (gl_ERROR): Inline AC_FUNC_ERROR_AT_LINE. Remove
16509         AC_LIBSOURCES invocation. Move AC_LIBOBJ and gl_PREREQ_ERROR
16510         invocations from here...
16511         * modules/error (configure.ac): ... to here.
16512
16513 2011-05-06  Bruno Haible  <bruno@clisp.org>
16514
16515         duplocale: Move AC_LIBOBJ invocations to module description.
16516         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Move AC_LIBOBJ and
16517         gl_PREREQ_DUPLOCALE invocations from here...
16518         * modules/duplocale (configure.ac): ... to here.
16519
16520 2011-05-05  Bruno Haible  <bruno@clisp.org>
16521
16522         dirfd: Move AC_LIBOBJ invocations to module description.
16523         * m4/dirfd.m4 (gl_PREREQ_DIRFD): New macro, extracted from
16524         gl_FUNC_DIRFD.
16525         (gl_FUNC_DIRFD): Move AC_LIBOBJ and gl_PREREQ_DIRFD invocations from
16526         here...
16527         * modules/dirfd (configure.ac): ... to here.
16528         (Depends-on): Fix condition.
16529
16530 2011-05-05  Bruno Haible  <bruno@clisp.org>
16531
16532         chown: Respect rules for use of AC_LIBOBJ.
16533         * m4/chown.m4 (gl_FUNC_CHOWN): Move AC_LIBOBJ invocations from here...
16534         * modules/chown (configure.ac): ... to here.
16535
16536 2011-05-05  Bruno Haible  <bruno@clisp.org>
16537
16538         chdir-long: Move AC_LIBOBJ invocations to module description.
16539         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Move AC_LIBOBJ and
16540         gl_PREREQ_CHDIR_LONG invocations from here...
16541         * modules/chdir-long (configure.ac): ... to here.
16542
16543 2011-05-05  Bruno Haible  <bruno@clisp.org>
16544
16545         canonicalize-lgpl: Move AC_LIBOBJ invocations to module description.
16546         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Move AC_LIBOBJ invocation
16547         from here...
16548         * modules/canonicalize-lgpl (configure.ac): ... to here.
16549
16550 2011-05-05  Bruno Haible  <bruno@clisp.org>
16551
16552         calloc-posix, calloc-gnu: Move AC_LIBOBJs to module description.
16553         * m4/calloc.m4 (gl_REPLACE_CALLOC): Remove macro.
16554         (gl_FUNC_CALLOC_GNU, gl_FUNC_CALLOC_POSIX): Instead, just set
16555         REPLACE_CALLOC.
16556         * modules/calloc-posix (configure.ac): Invoke AC_LIBOBJ here.
16557         * modules/calloc-gnu (configure.ac): Likewise.
16558
16559 2011-05-05  Bruno Haible  <bruno@clisp.org>
16560
16561         btowc: Move AC_LIBOBJ invocations to module description.
16562         * m4/btowc.m4 (gl_FUNC_BTOWC): Move AC_LIBOBJ and gl_PREREQ_BTOWC
16563         invocations from here...
16564         * modules/btowc (configure.ac): ... to here.
16565
16566 2011-05-21  Bruno Haible  <bruno@clisp.org>
16567
16568         atexit: Move AC_LIBOBJ invocations to module description.
16569         * m4/atexit.m4 (gl_FUNC_ATEXIT): Call AC_CHECK_FUNCS instead of
16570         AC_REPLACE_FUNCS. Move AC_LIBOBJ and gl_PREREQ_ATEXIT invocations from
16571         here...
16572         * modules/atexit (configure.ac): ... to here.
16573
16574 2011-05-05  Bruno Haible  <bruno@clisp.org>
16575
16576         atoll: Move AC_LIBOBJ invocations to module description.
16577         * m4/atoll.m4 (gl_FUNC_ATOLL): Move AC_LIBOBJ and gl_PREREQ_ATOLL
16578         invocations from here...
16579         * modules/atoll (configure.ac): ... to here.
16580
16581 2011-05-05  Bruno Haible  <bruno@clisp.org>
16582
16583         argz: Move AC_LIBOBJ invocations to module description.
16584         * m4/argz.m4 (gl_FUNC_ARGZ): Move AC_LIBOBJ invocation from here...
16585         * modules/argz (configure.ac): ... to here.
16586
16587 2011-05-05  Bruno Haible  <bruno@clisp.org>
16588
16589         alphasort: Move AC_LIBOBJ invocations to module description.
16590         * m4/alphasort.m4 (gl_FUNC_ALPHASORT): Move AC_LIBOBJ and
16591         gl_PREREQ_ALPHASORT invocations from here...
16592         * modules/alphasort (configure.ac): ... to here.
16593
16594 2011-06-15  Paul Eggert  <eggert@cs.ucla.edu>
16595
16596         verify: new macro verify_expr; verify_true deprecated
16597         * NEWS: Mention this.
16598         * doc/verify.texi (Compile-time Assertions): Document this.
16599         * lib/verify.h (verify_true): Deprecate.
16600         (verify_expr): New macro.
16601         * tests/test-verify.c (function): Test verify_expr.
16602
16603 2011-06-14  Jim Meyering  <meyering@redhat.com>
16604
16605         init.sh: give more portable redirection-related advice in a comment
16606         * tests/init.sh (stderr_fileno_): Update the advice in comments.
16607         See http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/22488
16608         for lots of discussion.  Stefano Lattarini suggested the solution
16609         of putting "9>&2" after the command.  Reported by Bruno Haible.
16610
16611 2011-06-13  Bruno Haible  <bruno@clisp.org>
16612
16613         locale-zh: Reject zh_CN.GB18030 locale on Solaris 8.
16614         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On Solaris 8, set LOCALE_ZH_CN to
16615         'none'.
16616
16617 2011-06-13  Paul Eggert  <eggert@cs.ucla.edu>
16618
16619         ftoastr: use strtof only if HAVE_STRTOF
16620         This is needed on HP-UX 11.11 with GCC 4.2.4; see Bruno Haible's report
16621         <http://lists.gnu.org/archive/html/bug-gnulib/2011-06/msg00154.html>.
16622         * lib/ftoastr.c (STRTOF) [LENGTH == 1]: Use strtof only if HAVE_STRTOF.
16623         * modules/ftoastr (configure.ac): Check for strtof.
16624
16625 2011-06-13  Bruno Haible  <bruno@clisp.org>
16626
16627         gnulib-tool: Addendum to 2011-06-08 commit.
16628         * gnulib-tool (func_emit_lib_Makefile_am): If options --makefile-name
16629         and --witness-c-macro have been given, augment AM_CPPFLAGS.
16630
16631 2011-06-13  Bruno Haible  <bruno@clisp.org>
16632
16633         fseeko: Provide a non-inline replacement of fseek().
16634         * lib/stdio.in.h (fseek): Don't provide if module 'fseek' is not used.
16635         * modules/fseeko (Depends-on): Add fseek.
16636         * modules/fseek (License): Change to LGPLv2+.
16637
16638 2011-06-13  Bruno Haible  <bruno@clisp.org>
16639
16640         ftello: Provide a non-inline replacement of ftell().
16641         * lib/stdio.in.h (ftell): Don't provide if module 'ftell' is not used.
16642         * m4/ftell.m4 (gl_FUNC_FTELL): Replace ftell also if the system does
16643         not have ftello() (such as on mingw).
16644         * modules/ftello (Depends-on): Add ftell.
16645         * modules/ftell (License): Change to LGPLv2+.
16646
16647 2011-05-07  Bruno Haible  <bruno@clisp.org>
16648
16649         ftell: Move AC_LIBOBJ invocations to module description.
16650         * m4/ftell.m4 (gl_FUNC_FTELL): Move AC_LIBOBJ invocation from here...
16651         * modules/ftell (configure.ac): ... to here.
16652
16653 2011-05-07  Bruno Haible  <bruno@clisp.org>
16654
16655         ftello: Respect rules for use of AC_LIBOBJ.
16656         * m4/ftello.m4 (gl_REPLACE_FTELLO): Remove macro.
16657         (gl_FUNC_FTELLO): Inline it here. Move AC_LIBOBJ invocation from
16658         here...
16659         * modules/ftello (configure.ac): ... to here.
16660
16661 2011-05-07  Bruno Haible  <bruno@clisp.org>
16662
16663         fseeko: Simplify.
16664         * m4/fseeko.m4 (gl_HAVE_FSEEKO): Remove macro.
16665         (gl_FUNC_FSEEKO): Inline it here.
16666
16667 2011-05-07  Bruno Haible  <bruno@clisp.org>
16668
16669         fseek: Move AC_LIBOBJ invocations to module description.
16670         * m4/fseek.m4 (gl_REPLACE_FSEEK): Remove macro.
16671         (gl_FUNC_FSEEK): Inline it here. Move AC_LIBOBJ invocation from here...
16672         * modules/fseek (configure.ac): ... to here.
16673
16674 2011-05-07  Bruno Haible  <bruno@clisp.org>
16675
16676         fseek: Respect rules for use of AC_LIBOBJ.
16677         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Move gl_REPLACE_FSEEK invocation from
16678         here...
16679         * m4/fseek.m4 (gl_FUNC_FSEEK): ... to here.
16680
16681 2011-05-07  Bruno Haible  <bruno@clisp.org>
16682
16683         fseeko: Respect rules for use of AC_LIBOBJ.
16684         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Remove macro.
16685         (gl_FUNC_FSEEKO): Inline it here. Move AC_LIBOBJ invocation from
16686         here...
16687         * modules/fseeko (configure.ac): ... to here.
16688
16689 2011-06-13  Bruno Haible  <bruno@clisp.org>
16690
16691         gnulib-tool: Allow comments in the 'Depends-on' section.
16692         * doc/gnulib.texi (Module description): Mention comment syntax in the
16693         Depends-on section.
16694         * gnulib-tool (func_get_dependencies): Filter out comment lines.
16695
16696 2011-06-13  Bruno Haible  <bruno@clisp.org>
16697
16698         file-set.h: guard __attibute__ use, now that it's not always defined
16699         * lib/file-set.h (record_file): Use __attribute__ only with compiler
16700         versions that support it.  This fixes a coreutils build failure with
16701         the vendor cc on HP-UX 11.31.
16702
16703 2011-06-12  Bruno Haible  <bruno@clisp.org>
16704
16705         acl: Add support for HP-UX >= 11.11 JFS ACLs.
16706         * doc/acl-resources.txt: Add info about the ACL APIs on HP-UX.
16707         * m4/acl.m4 (gl_FUNC_ACL): Also test for HP-UX 11.11 API.
16708         * lib/acl-internal.h [HP-UX 11.11]: Include <aclv.h>.
16709         (acl, aclsort): New declarations.
16710         (aclv_nontrivial): New declaration.
16711         * lib/file-has-acl.c (aclv_nontrivial) [HP-UX 11.11]: New function.
16712         (file_has_acl): Read also the second kind of HP-UX ACLs.
16713         * lib/set-mode-acl.c (qset_acl) [HP-UX 11.11]: Try to set the second
16714         kind of HP-UX ACLs if the first kind fails.
16715         * lib/copy-acl.c (qcopy_acl) [HP-UX 11.11]: Read and set also the
16716         second kind of HP-UX ACLs.
16717         * tests/test-sameacls.c [HP-UX 11.11]: Include <aclv.h>.
16718         (main) [HP-UX 11.11]: Test also whether the second kind of HP-UX ACLs
16719         agree.
16720         * tests/test-file-has-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16721         hpuxjfs.
16722         Handle hpuxjfs.
16723         * tests/test-set-mode-acl.sh (acl_flavor) [HP-UX 11.11]: Set to
16724         hpuxjfs.
16725         Handle hpuxjfs.
16726         * tests/test-copy-acl.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16727         (func_test_same_acls): Use both lsacl and getacl.
16728         Handle hpuxjfs.
16729         * tests/test-copy-file.sh (acl_flavor) [HP-UX 11.11]: Set to hpuxjfs.
16730         (func_test_same_acls): Use both lsacl and getacl.
16731         Handle hpuxjfs.
16732
16733 2011-06-12  Bruno Haible  <bruno@clisp.org>
16734
16735         acl: Complete the 2010-08-10 fix.
16736         * lib/file-has-acl.c (file_has_acl) [HP-UX]: Also test against ENOTSUP.
16737         * lib/set-mode-acl.c (qset_acl) [HP-UX]: Likewise.
16738         * lib/copy-acl.c (qcopy_acl) [HP-UX]: Test for the errno values
16739         explicitly.
16740         * tests/test-sameacls.c (main) [HP-UX]: Also test against ENOTSUP.
16741         Reported in <http://debbugs.gnu.org/db/60/6053.html>.
16742
16743 2011-06-12  Bruno Haible  <bruno@clisp.org>
16744
16745         spawn-pipe tests: Comments.
16746         * tests/test-spawn-pipe-child.c (main): Update comment.
16747         Reported by James Youngman <jay@gnu.org>.
16748
16749 2011-06-11  James Youngman  <jay@gnu.org>
16750
16751         New module 'stat-size'.
16752         * modules/stat-size: New module.  Provides macros for accessing
16753         file size information in instances of struct stat.  Depends on the
16754         fileblocks module because it calls st_blocks.
16755         * lib/stat-size.h: New file, adapted from coreutils' system.h.
16756         * doc/gnulib.texi: Include stat-size.texi.
16757         * doc/stat-size.texi: Documentation for this module.
16758         * m4/stat-size.m4: New file; defines gl_STAT_SIZE.
16759         * m4/fileblocks.m4: Mention that stat-size depends on the call to
16760         AC_STRUCT_ST_BLOCKS.
16761
16762 2011-06-09  Bruno Haible  <bruno@clisp.org>
16763
16764         thread: Support pthreads-win32.
16765         * lib/glthread/thread.h (gl_thread_self): Define differently on
16766         pthreads-win32.
16767         (gl_null_thread): New declaration.
16768         (gl_thread_self_pointer): New macro.
16769         * lib/glthread/thread.c (gl_null_thread): New constant.
16770         * tests/test-lock.c: Use gl_thread_self_pointer instead of
16771         gl_thread_self.
16772         * tests/test-tls.c: Likewise.
16773         Suggested by Paul Eggert. Reported by Eric Blake.
16774
16775 2011-06-09  Bruno Haible  <bruno@clisp.org>
16776
16777         thread: Fix confusion between NULL and 0.
16778         * lib/glthread/thread.h (gl_thread_self): Use NULL and 0 appropriately.
16779         Reported by Paul Eggert.
16780
16781 2011-06-09  Bruno Haible  <bruno@clisp.org>
16782
16783         spawn-pipe tests: Avoid test failure on HP-UX 11.
16784         * tests/test-spawn-pipe-child.c (main) [HP-UX]: Don't assert that fd 2
16785         is closed.
16786
16787 2011-06-09  Bruno Haible  <bruno@clisp.org>
16788
16789         acl tests: Fix compilation error on HP-UX 11.
16790         * tests/test-sameacls.c: Include <sys/acl.h> also on HP-UX.
16791
16792 2011-06-09  Bruno Haible  <bruno@clisp.org>
16793
16794         rmdir: Avoid test failure on HP-UX 10.20.
16795         * tests/test-rmdir.h (test_rmdir_func): Accept ENOTEMPTY error, like
16796         EEXIST.
16797
16798 2011-06-08  Eric Blake  <eblake@redhat.com>
16799
16800         perror: fix test on mingw
16801         * modules/perror-tests (Depends-on): Add dup2.
16802
16803         strerror_r-posix: fix on MacOS
16804         * m4/strerror.m4 (gl_FUNC_STRERROR): Flush out MacOS bug.
16805         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Likewise, and fix
16806         logic bug.
16807         * lib/strerror_r.c (strerror_r): Fix the bug.
16808         * lib/strerror.c (strerror): Likewise.
16809         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
16810         problem.
16811         * doc/posix-functions/strerror.texi (strerror): Likewise.
16812         * doc/posix-functions/perror.texi (perror): Likewise.
16813         * tests/test-strerror.c (main): Enhance test.
16814         * tests/test-strerror_r.c (main): Likewise.
16815
16816 2011-06-08  Bruno Haible  <bruno@clisp.org>
16817
16818         gnulib-tool: Better isolation between different gnulib-tool invocations.
16819         * gnulib-tool: New option --witness-c-macro.
16820         (witness_c_macro): New variable.
16821         (func_emit_lib_Makefile_am): If --witness-c-macro was specified, let
16822         AM_CPPFLAGS define it as a C macro.
16823         (func_emit_tests_Makefile_am): Likewise.
16824         (func_import): Store witness_c_macro setting in gnulib-cache.m4 and
16825         read it from there.
16826         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): Define through
16827         m4_define, not AC_DEFUN.
16828         (gl_MODULE_INDICATOR_SET_VARIABLE_AUX,
16829         gl_MODULE_INDICATOR_SET_VARIABLE_AUX_OR): New macros.
16830         (gl_MODULE_INDICATOR_SET_VARIABLE): Use them.
16831         * modules/arpa_inet (Makefile.am): Use sed expression s/.../.../, not
16832         s|...|...|, to substitute the values of the GNULIB_* module indicator
16833         variables.
16834         * modules/dirent (Makefile.am): Likewise.
16835         * modules/fcntl-h (Makefile.am): Likewise.
16836         * modules/iconv-h (Makefile.am): Likewise.
16837         * modules/langinfo (Makefile.am): Likewise.
16838         * modules/locale (Makefile.am): Likewise.
16839         * modules/math (Makefile.am): Likewise.
16840         * modules/netdb (Makefile.am): Likewise.
16841         * modules/poll-h (Makefile.am): Likewise.
16842         * modules/pty (Makefile.am): Likewise.
16843         * modules/search (Makefile.am): Likewise.
16844         * modules/signal (Makefile.am): Likewise.
16845         * modules/spawn (Makefile.am): Likewise.
16846         * modules/stdio (Makefile.am): Likewise.
16847         * modules/stdlib (Makefile.am): Likewise.
16848         * modules/string (Makefile.am): Likewise.
16849         * modules/sys_ioctl (Makefile.am): Likewise.
16850         * modules/sys_select (Makefile.am): Likewise.
16851         * modules/sys_socket (Makefile.am): Likewise.
16852         * modules/sys_stat (Makefile.am): Likewise.
16853         * modules/sys_times (Makefile.am): Likewise.
16854         * modules/sys_utsname (Makefile.am): Likewise.
16855         * modules/sys_wait (Makefile.am): Likewise.
16856         * modules/termios (Makefile.am): Likewise.
16857         * modules/time (Makefile.am): Likewise.
16858         * modules/unistd (Makefile.am): Likewise.
16859         * modules/wchar (Makefile.am): Likewise.
16860
16861 2011-06-08  Eric Blake  <eblake@redhat.com>
16862
16863         strerror: simplify replacement
16864         * m4/strerror.m4 (gl_PREREQ_STRERROR): Delete.
16865         * modules/strerror (configure.ac): No prereqs needed here...
16866         * modules/strerror-override (configure.ac): ...but this needs it.
16867         (Files): Add file for needed prereq macro.
16868
16869 2011-06-08  Bruno Haible  <bruno@clisp.org>
16870
16871         strerror_r-posix: Tweaks.
16872         * m4/strerror.m4 (gl_FUNC_STRERROR): Omit the code that tests
16873         gl_cv_func_strerror_r_works if gl_FUNC_STRERROR_R_WORKS is not present.
16874         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R_WORKS): Fix AC_CACHE_CHECK
16875         message. Move gl_HEADER_STRING_H_DEFAULTS invocation from here...
16876         (gl_FUNC_STRERROR_R): ... to here.
16877         (gl_PREREQ_STRERROR_R): Test for __xpg_strerror_r.
16878
16879 2011-06-07  Eric Blake  <eblake@redhat.com>
16880
16881         perror: document fixed bugs
16882         * doc/posix-functions/perror.texi (perror): Document recent
16883         patches.
16884
16885 2011-06-07  Paul Eggert  <eggert@cs.ucla.edu>
16886
16887         stat-time: get_stat_birthtime failure is better-defined
16888         * lib/stat-time.h (get_stat_birthtime): If the time is not available,
16889         return a timestamp whose tv_sec and tv_nsec values are both -1.
16890         Previously, the spec said only that the tv_nsec value was negative.
16891         This upward-compatible change simplifies GNU tar a bit.
16892
16893 2011-06-07  Eric Blake  <eblake@redhat.com>
16894
16895         strerror_r-posix: work around cygwin 1.7.9
16896         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Split...
16897         (gl_FUNC_STRERROR_R_WORKS): ...into new macro, to detect Cygwin
16898         bug without replacing strerror_r.
16899         * m4/strerror.m4 (gl_FUNC_STRERROR): Replace strerror if
16900         strerror_r is buggy, but without requiring strerror_r compilation.
16901         * doc/posix-functions/strerror_r.texi (strerror_r): Fix docs.
16902
16903         test-perror: relax test to ignore cygwin bug
16904         * tests/test-perror2.c (main): Relax test on requiring detection
16905         of stream errors, and use unbuffered stream.
16906         * doc/posix-functions/dprintf.texi (dprintf): Document bug.
16907         * doc/posix-functions/fprintf.texi (fprintf): Likewise.
16908         * doc/posix-functions/fputc.texi (fputc): Likewise.
16909         * doc/posix-functions/fputs.texi (fputs): Likewise.
16910         * doc/posix-functions/fputws.texi (fputws): Likewise.
16911         * doc/posix-functions/fwprintf.texi (fwprintf): Likewise.
16912         * doc/posix-functions/fwrite.texi (fwrite): Likewise.
16913         * doc/posix-functions/getopt.texi (getopt): Likewise.
16914         * doc/posix-functions/perror.texi (perror): Likewise.
16915         * doc/posix-functions/printf.texi (printf): Likewise.
16916         * doc/posix-functions/psiginfo.texi (psiginfo): Likewise.
16917         * doc/posix-functions/psignal.texi (psignal): Likewise.
16918         * doc/posix-functions/putc.texi (putc): Likewise.
16919         * doc/posix-functions/putc_unlocked.texi (putc_unlocked):
16920         Likewise.
16921         * doc/posix-functions/putchar.texi (putchar): Likewise.
16922         * doc/posix-functions/putchar_unlocked.texi (putchar_unlocked):
16923         Likewise.
16924         * doc/posix-functions/puts.texi (puts): Likewise.
16925         * doc/posix-functions/putwc.texi (putwc): Likewise.
16926         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
16927         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
16928         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
16929         * doc/posix-functions/vfwprintf.texi (vfwprintf): Likewise.
16930         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
16931         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
16932         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
16933         * doc/posix-functions/wprintf.texi (wprintf): Likewise.
16934
16935 2011-05-22  Bruno Haible  <bruno@clisp.org>
16936
16937         strerror: Move AC_LIBOBJ invocations to module description.
16938         * m4/strerror.m4 (gl_FUNC_STRERROR): Move AC_LIBOBJ and
16939         gl_PREREQ_STRERROR invocations from here...
16940         * modules/strerror (configure.ac): ... to here.
16941
16942 2011-05-21  Bruno Haible  <bruno@clisp.org>
16943
16944         perror: Use common idiom.
16945         * modules/perror (configure.ac): Reorder statements.
16946
16947 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16948
16949         tests: fix usage message in 'mktempd_'
16950         * tests/init.sh (mktempd_): In the usage message, use literal
16951         'mktempd_', not '$ME' (which is even undefined), as the name of
16952         the subroutine.
16953
16954 2011-06-07  Stefano Lattarini  <stefano.lattarini@gmail.com>
16955
16956         tests init: new function 'fatal_', for hard errors
16957         Before this patch, the only way offered by tests/init.sh to
16958         properly signal a hard error was the `framework_failure_'
16959         function.  But the error message issued by that function,
16960         as its name would suggest, refers to a set-up failure in the
16961         testsuite, while hard errors can obviously also be due to
16962         other reasons.  The best way to fix this inconsistency is to
16963         introduce a new function with a more general error message.
16964         * tests/init.sh (fatal_): New function.
16965
16966 2011-06-06  Eric Blake  <eblake@redhat.com>
16967
16968         canonicalize-lgpl: use common idiom
16969         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Prefer older rm -rf
16970         over newer POSIX -Rf.
16971         Reported by Bruno Haible.
16972
16973         canonicalize-lgpl: work around AIX realpath bug
16974         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Expose AIX bug.
16975         * doc/posix-functions/realpath.texi (realpath): Document it.
16976         Reported by Bruno Haible.
16977
16978         strerror: work around FreeBSD bug
16979         * lib/strerror.c (strerror): Special case 0.
16980         Reported by Bruno Haible.
16981
16982         strerror-override: avoid bloating errno module
16983         * modules/errno (Files, configure.ac): Move replacement strings...
16984         * modules/strerror-override: ...to new module.
16985         * modules/strerror (Depends-on): Add strerror-override.
16986         * modules/strerror_r-posix (Depends-on): Likewise.
16987         * MODULES.html.sh: Document new module.
16988         Reported by Bruno Haible.
16989
16990 2011-06-06  Bruno Haible  <bruno@clisp.org>
16991
16992         spawn-pipe tests: Rename program.
16993         * tests/test-spawn-pipe-main.c: Renamed from tests/test-spawn-pipe.c.
16994         * tests/test-spawn-pipe-child.c: Update comment.
16995         * tests/test-spawn-pipe.sh: Update.
16996         * modules/spawn-pipe-tests (Files, Makefile.am): Update.
16997
16998         spawn-pipe tests: Link the child program only against libc.
16999         * tests/test-spawn-pipe-child.c: New file, extracted from
17000         tests/test-spawn-pipe.c.
17001         (main): Expect only one argument.
17002         (is_open): New function, copied from tests/test-pipe.c.
17003         * tests/test-spawn-pipe.c: Don't include <errno.h>.
17004         (child_main): Remove function.
17005         (test_pipe): Pass only one argument to the child program.
17006         (main): Remove child process code. Expect the child program's name as
17007         first argument.
17008         * tests/test-spawn-pipe.sh: Pass the child program's name as first
17009         argument.
17010         * modules/spawn-pipe-tests (Files): Add tests/test-spawn-pipe-child.c.
17011         (Makefile.am): Add test-spawn-pipe-child to check_PROGRAMS. Link
17012         test-spawn-pipe-child against no libraries.
17013
17014 2011-06-06  Bruno Haible  <bruno@clisp.org>
17015
17016         careadlinkat: Avoid mismatch between ssize_t and int.
17017         * lib/careadlinkat.h (careadlinkatcwd): Declare as a function always.
17018         * lib/careadlinkat.c (careadlinkatcwd): Define always.
17019
17020 2011-06-06  Jim Meyering  <meyering@redhat.com>
17021
17022         gnulib-common.m4: add _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE
17023         * m4/gnulib-common.m4 (gl_COMMON): Emit definitions of
17024         _GL_ATTRIBUTE_CONST and _GL_ATTRIBUTE_PURE.
17025
17026 2011-06-05  Bruno Haible  <bruno@clisp.org>
17027
17028         ansi-c++-opt: Interoperability with libtool.
17029         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): When a C++ compiler is not found,
17030         set the variable to "no", not to ":".
17031         * NEWS: Mention the change.
17032
17033 2011-06-05  Bruno Haible  <bruno@clisp.org>
17034
17035         acl: Fix test failure on AIX 7.
17036         * tests/test-sameacls.c (main) [AIX]: Fix aclx_printStr invocation.
17037         Based on a patch by Jørn Amundsen <Jorn.Amundsen@ntnu.no>.
17038
17039 2011-06-05  Bruno Haible  <bruno@clisp.org>
17040
17041         pipe-filter-ii: Fix test failure on AIX and IRIX.
17042         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): When write() fails
17043         with EAGAIN, retry with a smaller buffer size.
17044
17045 2011-06-05  Bruno Haible  <bruno@clisp.org>
17046
17047         localename: Fix link dependencies.
17048         * modules/localename (Link): Mention $(LIBTHREAD) or $(LTLIBTHREAD).
17049         * modules/localename-tests (Makefile.am): Link test-localename with
17050         $(LIBTHREAD).
17051
17052 2011-06-05  Bruno Haible  <bruno@clisp.org>
17053
17054         error: Avoid gcc warning.
17055         * lib/error.c (strerror_r): Declare also when its return type is 'int'.
17056
17057 2011-06-05  Bruno Haible  <bruno@clisp.org>
17058
17059         unsetenv: Avoid gcc warning.
17060         * lib/unsetenv.c (unsetenv): Provide declaration if system lacks it.
17061
17062 2011-06-05  Bruno Haible  <bruno@clisp.org>
17063
17064         setenv: Avoid gcc warning.
17065         * lib/setenv.c (setenv): Provide declaration if system lacks it.
17066
17067 2011-06-05  Bruno Haible  <bruno@clisp.org>
17068
17069         sys_select: Ensure memset is declared also on AIX 7.
17070         * lib/sys_select.in.h: Include <string.h> also on AIX.
17071         * doc/posix-headers/sys_select.texi: Mention that <sys/select.h> is not
17072         self-contained also on AIX 7.1.
17073
17074 2011-06-04  Jim Meyering  <meyering@redhat.com>
17075
17076         maint.mk: sc_unmarked_diagnostics: don't hard-code "error"
17077         * top/maint.mk (sc_unmarked_diagnostics): Don't hard-code the
17078         function name, "error".
17079         (_gl_translatable_diag_func_re): New configurable variable.
17080
17081 2011-06-04  Bruno Haible  <bruno@clisp.org>
17082
17083         getopt: Avoid gcc warning.
17084         * lib/getopt.c (_getopt_internal_r): Remove unused variable 'ambig'.
17085
17086 2011-06-04  Bruno Haible  <bruno@clisp.org>
17087
17088         strerror_r: Fix comments.
17089         * lib/strerror_r.c (strerror_r): Update comments after 2011-06-01
17090         commit.
17091
17092 2011-06-04  Bruno Haible  <bruno@clisp.org>
17093
17094         perror: Fix compilation error.
17095         * lib/perror.c: Don't include intprops.h, verify.h, strerror-impl.h.
17096         Undefine fprintf, not sprintf.
17097         * modules/perror (Depends-on): Remove intprops, verify.
17098
17099 2011-06-04  Bruno Haible  <bruno@clisp.org>
17100
17101         setlocale: Enable replacement on Cygwin 1.5.
17102         * m4/setlocale.m4 (gl_FUNC_SETLOCALE): Set REPLACE_SETLOCALE also on
17103         Cygwin 1.5.x.
17104         * doc/posix-functions/setlocale.texi: Mention that the problem with the
17105         LC_CTYPE category also exists on Cygwin 1.5.x.
17106
17107 2011-06-04  Bruno Haible  <bruno@clisp.org>
17108
17109         strerror-override: Don't disable symbol renamings.
17110         * lib/strerror-override.h: Include errno.h and stddef.h, not string.h.
17111         * lib/strerror-override.c: Include config.h.
17112         (strerror_override): Don't undefine.
17113
17114 2011-06-03  Bruno Haible  <bruno@clisp.org>
17115
17116         Copyright: Use LGPL 2.1 instead of LGPL 2.0.
17117         * lib/localename.h: Update copyright header.
17118         * lib/localename.c: Likewise.
17119         * lib/relocatable.h: Likewise.
17120         * lib/relocatable.c: Likewise.
17121
17122 2011-06-02  Bruno Haible  <bruno@clisp.org>
17123
17124         doc: Fix a module name.
17125         * doc/posix-functions/open.texi: Fix module name 'nonblocking'.
17126
17127 2011-06-02  Bruno Haible  <bruno@clisp.org>
17128
17129         pipe2: Remove dependency on 'nonblocking' module.
17130         * lib/pipe2.c: Include verify.h. Include nonblocking.h only if
17131         O_NONBLOCK is defined by gnulib.
17132         (pipe2) [WIN32]: If O_NONBLOCK is not defined by gnulib, verify that it
17133         is zero.
17134         * modules/pipe2 (Depends-on): Add verify. Remove nonblocking.
17135         * tests/test-pipe2.c: Include nonblocking.h only if O_NONBLOCK is
17136         defined by gnulib.
17137         (get_nonblocking_flag): New function.
17138         (main): Test O_NONBLOCK flag only if it is nonzero.
17139         * doc/glibc-functions/pipe2.texi: Mention the 'nonblocking' module.
17140
17141 2011-06-03  Jim Meyering  <meyering@redhat.com>
17142
17143         maint: three new prohibit-header-without-use rules
17144         Prohibit use of cloexec.h, posixver.h, same.h without use.
17145         * top/maint.mk (sc_prohibit_cloexec_without_use): New rule.
17146         (sc_prohibit_posixver_without_use): Likewise.
17147         (sc_prohibit_same_without_use): Likewise.
17148
17149 2011-06-02  Paul Eggert  <eggert@cs.ucla.edu>
17150
17151         allocator: 'die' routine is now given requested size
17152         * lib/allocator.h (struct allocator.die): New size arg.
17153         * lib/careadlinkat.c (careadlinkat): Pass size to 'die' function.
17154         If the actual problem is an ssize_t limitation, not a size_t or
17155         malloc failure, fail with errno==ENAMETOOLONG instead of calling 'die'.
17156
17157 2011-06-01  Eric Blake  <eblake@redhat.com>
17158
17159         strerror: drop strerror_r dependency
17160         * lib/strerror_r.c (strerror_r): Move gnulib replacement strings...
17161         * lib/strerror-override.c (strerror_override): ...to new file.
17162         * lib/strerror-override.h: Add prototype.
17163         * lib/strerror-impl.h: Delete.
17164         * lib/strerror.c (strerror): New implementation.
17165         * modules/errno (Files): Add new files.
17166         (configure.ac): Compile new file as appropriate.
17167         * modules/strerror (Files): Drop unused file.
17168         (Depends-on): Drop strerror_r-posix.
17169         * MODULES.html.sh: Document strerror_r-posix.
17170         Requested by Sam Steingold.
17171
17172         perror: call strerror_r directly
17173         * modules/perror (Files): Drop strerror-impl.h.
17174         * lib/perror.c (perror): Use our own stack buffer, rather than
17175         calling a wrapper that uses static storage.
17176         * doc/posix-functions/perror.texi (perror): Document a limitation
17177         of our replacement.
17178
17179         strerror_r: fix includes for FreeBSD
17180         * lib/strerror_r.c (includes): Use <stdlib.h> unconditionally,
17181         since we use abort on some platforms.
17182         Reported by Matthias Bolte.
17183
17184 2011-05-31  Bruno Haible  <bruno@clisp.org>
17185
17186         Fix link errors in tests: openat-die uses gettext-h.
17187         * modules/areadlinkat-tests (Makefile.am): Link test-areadlinkat
17188         against $(LIBINTL).
17189         * modules/dirent-safer-tests (Makefile.am): Link test-dirent-safer
17190         against $(LIBINTL).
17191         * modules/fdopendir-tests (Makefile.am): Link test-fdopendir against
17192         $(LIBINTL).
17193         * modules/fdutimensat-tests (Makefile.am): Link test-fdutimensat
17194         against $(LIBINTL).
17195         * modules/linkat-tests (Makefile.am): Link test-linkat against
17196         $(LIBINTL).
17197         * modules/mkfifoat-tests (Makefile.am): Link test-mkfifoat against
17198         $(LIBINTL).
17199         * modules/openat-safer-tests (Makefile.am): Link test-openat-safer
17200         against $(LIBINTL).
17201         * modules/openat-tests (Makefile.am): Link test-fchownat, test-fstatat,
17202         test-mkdirat, test-openat, test-unlinkat against $(LIBINTL).
17203         * modules/readlinkat-tests (Makefile.am): Link test-readlinkat against
17204         $(LIBINTL).
17205         * modules/symlinkat-tests (Makefile.am): Link test-symlinkat against
17206         $(LIBINTL).
17207         * modules/utimensat-tests (Makefile.am): Link test-utimensat against
17208         $(LIBINTL).
17209         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17210
17211 2011-05-31  Bruno Haible  <bruno@clisp.org>
17212
17213         Fix link errors in tests: wait-process uses gettext-h.
17214         * modules/nonblocking-pipe-tests (Makefile.am): Set
17215         test_nonblocking_pipe_main_LDADD.
17216         * modules/nonblocking-socket-tests (Makefile.am): Link
17217         test-nonblocking-socket-main against $(LIBINTL).
17218         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17219
17220 2011-05-29  Paul Eggert  <eggert@cs.ucla.edu>
17221
17222         assert-h: work around 'verify' incompatibility
17223         * lib/verify.h: Use @...@ directives, not ifdef.
17224         * modules/assert-h (assert.h): Implement the directives.
17225         (assert.h): Substitute the symbol-prefix more consistently.
17226
17227 2011-05-29  Jim Meyering  <meyering@redhat.com>
17228
17229         trim: remove three superfluous assignments
17230         * lib/trim.c (trim2): Remove three superfluous assignments
17231         and correct brace positioning.
17232
17233 2011-05-29  Bruno Haible  <bruno@clisp.org>
17234
17235         wctype-h: Avoid namespace pollution on Solaris 2.6.
17236         * lib/wctype.in.h: On Solaris, undefine 'multibyte' and a few other
17237         identifiers.
17238         * doc/posix-headers/wctype.texi: Mention the problem.
17239         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
17240
17241 2011-05-28  Jim Meyering  <meyering@redhat.com>
17242
17243         parse-datetime.y: accommodate -Wstrict-overflow
17244         * lib/parse-datetime.y (yylex): Rearrange pointer arithmetic to
17245         placate -Wstrict-overflow.
17246
17247         trim: avoid a warning from -O2 -Wstrict-overflow
17248         * lib/trim.c (trim2): Declare local to be "unsigned int", not "int".
17249
17250 2011-05-29  Bruno Haible  <bruno@clisp.org>
17251
17252         gnulib-tool: Fix bug in yesterday's commit.
17253         * gnulib-tool (func_create_testdir): Don't add gltests to $subdirs
17254         twice.
17255
17256 2011-05-29  Bruno Haible  <bruno@clisp.org>
17257
17258         Allow multiple gnulib generated include files to be combined.
17259         * gnulib-tool (func_compute_include_guard_prefix): New function.
17260         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Resolve also
17261         ${gl_include_guard_prefix} references.
17262         (func_import, func_create_testdir): Invoke
17263         func_compute_include_guard_prefix.
17264         * lib/arpa_inet.in.h: Use the @GUARD_PREFIX@ placeholder.
17265         * lib/ctype.in.h: Likewise.
17266         * lib/dirent.in.h: Likewise.
17267         * lib/errno.in.h: Likewise.
17268         * lib/fcntl.in.h: Likewise.
17269         * lib/float.in.h: Likewise.
17270         * lib/getopt.in.h: Likewise.
17271         * lib/iconv.in.h: Likewise.
17272         * lib/langinfo.in.h: Likewise.
17273         * lib/locale.in.h: Likewise.
17274         * lib/math.in.h: Likewise.
17275         * lib/netdb.in.h: Likewise.
17276         * lib/netinet_in.in.h: Likewise.
17277         * lib/poll.in.h: Likewise.
17278         * lib/pthread.in.h: Likewise.
17279         * lib/pty.in.h: Likewise.
17280         * lib/sched.in.h: Likewise.
17281         * lib/se-selinux.in.h: Likewise.
17282         * lib/search.in.h: Likewise.
17283         * lib/signal.in.h: Likewise.
17284         * lib/spawn.in.h: Likewise.
17285         * lib/stdarg.in.h: Likewise.
17286         * lib/stddef.in.h: Likewise.
17287         * lib/stdint.in.h: Likewise.
17288         * lib/stdio.in.h: Likewise.
17289         * lib/stdlib.in.h: Likewise.
17290         * lib/string.in.h: Likewise.
17291         * lib/strings.in.h: Likewise.
17292         * lib/sys_file.in.h: Likewise.
17293         * lib/sys_ioctl.in.h: Likewise.
17294         * lib/sys_select.in.h: Likewise.
17295         * lib/sys_socket.in.h: Likewise.
17296         * lib/sys_stat.in.h: Likewise.
17297         * lib/sys_time.in.h: Likewise.
17298         * lib/sys_times.in.h: Likewise.
17299         * lib/sys_uio.in.h: Likewise.
17300         * lib/sys_utsname.in.h: Likewise.
17301         * lib/sys_wait.in.h: Likewise.
17302         * lib/sysexits.in.h: Likewise.
17303         * lib/termios.in.h: Likewise.
17304         * lib/time.in.h: Likewise.
17305         * lib/unistd.in.h: Likewise.
17306         * lib/wchar.in.h: Likewise.
17307         * lib/wctype.in.h: Likewise.
17308         * modules/arpa_inet (Makefile.am): Substitute @GUARD_PREFIX@.
17309         * modules/ctype (Makefile.am): Likewise.
17310         * modules/dirent (Makefile.am): Likewise.
17311         * modules/errno (Makefile.am): Likewise.
17312         * modules/fcntl-h (Makefile.am): Likewise.
17313         * modules/float (Makefile.am): Likewise.
17314         * modules/getopt-posix (Makefile.am): Likewise.
17315         * modules/iconv-h (Makefile.am): Likewise.
17316         * modules/langinfo (Makefile.am): Likewise.
17317         * modules/locale (Makefile.am): Likewise.
17318         * modules/math (Makefile.am): Likewise.
17319         * modules/netdb (Makefile.am): Likewise.
17320         * modules/netinet_in (Makefile.am): Likewise.
17321         * modules/poll-h (Makefile.am): Likewise.
17322         * modules/pthread (Makefile.am): Likewise.
17323         * modules/pty (Makefile.am): Likewise.
17324         * modules/sched (Makefile.am): Likewise.
17325         * modules/search (Makefile.am): Likewise.
17326         * modules/selinux-h (Makefile.am): Likewise.
17327         * modules/signal (Makefile.am): Likewise.
17328         * modules/spawn (Makefile.am): Likewise.
17329         * modules/stdarg (Makefile.am): Likewise.
17330         * modules/stddef (Makefile.am): Likewise.
17331         * modules/stdint (Makefile.am): Likewise.
17332         * modules/stdio (Makefile.am): Likewise.
17333         * modules/stdlib (Makefile.am): Likewise.
17334         * modules/string (Makefile.am): Likewise.
17335         * modules/strings (Makefile.am): Likewise.
17336         * modules/sys_file (Makefile.am): Likewise.
17337         * modules/sys_ioctl (Makefile.am): Likewise.
17338         * modules/sys_select (Makefile.am): Likewise.
17339         * modules/sys_socket (Makefile.am): Likewise.
17340         * modules/sys_stat (Makefile.am): Likewise.
17341         * modules/sys_time (Makefile.am): Likewise.
17342         * modules/sys_times (Makefile.am): Likewise.
17343         * modules/sys_uio (Makefile.am): Likewise.
17344         * modules/sys_utsname (Makefile.am): Likewise.
17345         * modules/sys_wait (Makefile.am): Likewise.
17346         * modules/sysexits (Makefile.am): Likewise.
17347         * modules/termios (Makefile.am): Likewise.
17348         * modules/time (Makefile.am): Likewise.
17349         * modules/unistd (Makefile.am): Likewise.
17350         * modules/wchar (Makefile.am): Likewise.
17351         * modules/wctype-h (Makefile.am): Likewise.
17352         * modules/assert-h (Makefile.am): Replace _GL_VERIFY_H specially.
17353
17354 2011-05-29  Bruno Haible  <bruno@clisp.org>
17355
17356         assert-h: Allow multiple gnulib generated replacements to coexist.
17357         * lib/verify.h (struct _gl_verify_type): Avoid identical redefinition.
17358
17359 2011-05-29  Bruno Haible  <bruno@clisp.org>
17360
17361         argp: Allow coexistence with strerror_r-posix module.
17362         * lib/argp-help.c (__argp_failure): If strerror_r is defined as a macro
17363         (either to __xpg_strerror_r by glibc's <string.h> or to rpl_strerror_r
17364         by gnulib's <string.h> replacement), assume it has the POSIX signature,
17365         not the glibc signature.
17366
17367 2011-05-28  Bruno Haible  <bruno@clisp.org>
17368
17369         gnulib-tool: Alternative structure of testdirs, similar to --import.
17370         * gnulib-tool: New option --single-configure.
17371         (func_usage): Document it.
17372         (single_configure): New variable.
17373         (func_modules_transitive_closure_separately,
17374         func_modules_transitive_closure_separately,
17375         func_determine_use_libtests, func_modules_add_dummy_separately,
17376         func_modules_to_filelist_separately): New functions, extracted from
17377         func_import.
17378         (func_emit_tests_Makefile_am): Handle $single_configure = true case.
17379         (func_import): Use the new functions.
17380         (func_create_testdir): Set final_modules. Handle $single_configure =
17381         true case.
17382
17383 2011-05-28  Bruno Haible  <bruno@clisp.org>
17384
17385         getloadavg: Remove an unreliable safety check.
17386         * m4/getloadavg.m4 (gl_GETLOADAVG): Drop argument. Remove test whether
17387         getloadavg.c is in place.
17388         * modules/getloadavg (configure.ac): Drop argument of gl_GETLOADAVG.
17389         Reported by Sam Steingold <sds@gnu.org>.
17390
17391 2011-05-28  Bruno Haible  <bruno@clisp.org>
17392
17393         doc: Cleanup yet another file produced by texinfo.tex.
17394         * doc/Makefile (mostlyclean): Remove also gnulib.cn.
17395
17396 2011-05-28  Bruno Haible  <bruno@clisp.org>
17397
17398         Finish the conditional dependencies mechanism.
17399         * gnulib-tool: New option --no-conditional-dependencies.
17400         (func_usage): Document it. Don't mark --conditional-dependencies as
17401         experimental.
17402         (cond_dependencies): The possible values can now be true, false, empty.
17403         (func_modules_transitive_closure, func_emit_autoconf_snippets): Update.
17404         (func_import): Store setting in gnulib-cache.m4 and read it from there.
17405         * doc/gnulib-tool.texi (Conditional dependencies): New section.
17406
17407 2011-05-28  Bruno Haible  <bruno@clisp.org>
17408
17409         doc: Use a recent texinfo.tex.
17410         * doc/Makefile (tex_opts): New variable.
17411         (%.dvi, %.pdf): Pass it to texi2dvi and texi2pdf.
17412
17413 2011-05-28  Jim Meyering  <meyering@redhat.com>
17414
17415         intprops.h: adjust comment to match code change
17416         * lib/intprops.h (_GL_INT_CONVERT): Adjust comment: now that E is used
17417         only once, it *may* have side effects.  Also fix an unrelated typo.
17418         (_GL_INT_SIGNED): Likewise.
17419
17420 2011-05-26  Simon Josefsson  <simon@josefsson.org>
17421
17422         * lib/gen-uni-tables.c: Say "gen-uni-tables.c" consistently.
17423
17424 2011-05-26  Bruno Haible  <bruno@clisp.org>
17425
17426         mbsrchr: Avoid collision with system function on Interix.
17427         * lib/string.in.h (mbsrchr): Define as rpl_mbsrchr also on Interix.
17428         Reported by Markus Duft <mduft@gentoo.org>.
17429
17430 2011-05-15  James Youngman  <jay@gnu.org>
17431
17432         getopt: for ambiguous options, enumerate the possibilities.
17433         * lib/getopt.c (_getopt_internal_r): Merge glibc change printing
17434         the ambiguous options when an ambiguous prefix is given. This was
17435         http://sourceware.org/bugzilla/show_bug.cgi?id=7101.  The merged
17436         glibc change was
17437         http://sourceware.org/git/?p=glibc.git;a=commit;h=bd25564e1e98910ed69043ed6a6f884ce60e5780.
17438
17439 2011-05-25  Eric Blake  <eblake@redhat.com>
17440
17441         getcwd: work around mingw bug
17442         * lib/getcwd-lgpl.c (rpl_getcwd): Guarantee correct error.
17443         * doc/posix-functions/getcwd.texi (getcwd): Document it.
17444         Reported by Matthias Bolte.
17445
17446 2011-05-24  Paul Eggert  <eggert@cs.ucla.edu>
17447
17448         test-intprops: disable -Wtype-limits diagnostics
17449         * tests/test-intprops.c: Use a pragma to ignore -Wtype-limits
17450         diagnostics.  Otherwise, the integer overflow macros generate many
17451         diagnostics.  Reported by Jim Meyering in
17452         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17453
17454         intprops: shorten, to pacify gcc -Woverlength-strings
17455         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_NEGATE_CONVERT):
17456         (_GL_BINARY_OP_OVERFLOW): Say "0 * (x)" rather than "(x) - (x)",
17457         so that, for example, verify (INT_MULTIPLY_OVERFLOW (...)) is less
17458         likely to run afoul of C compiler limits for string constant lengths.
17459         See <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00528.html>.
17460
17461 2011-05-24  Eric Blake  <eblake@redhat.com>
17462
17463         docs: document recently fixed glibc printf bug
17464         * doc/posix-functions/fprintf.texi (fprintf): Document it.
17465         * doc/posix-functions/printf.texi (printf): Likewise.
17466         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
17467         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
17468
17469         closein-tests: convert to init.sh
17470         * modules/closein-tests (Files): Add init.sh
17471         * tests/test-closein.sh Use it.
17472
17473         yesno-tests: convert to init.sh
17474         * modules/yesno-tests (Files): Add init.sh.
17475         * tests/test-yesno.sh: Use it.
17476
17477         atexit-tests: ensure reliable exit status
17478         * tests/test-atexit.sh: Prefer 'Exit' over 'exit'.
17479         Reported by Bruno Haible.
17480
17481 2011-05-24  Bruno Haible  <bruno@clisp.org>
17482
17483         strerror_r-posix: Respect rules for use of AC_LIBOBJ.
17484         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Move AC_LIBOBJ and
17485         gl_PREREQ_STRERROR_R invocations from here...
17486         * modules/strerror_r-posix (configure.ac): ... to here.
17487
17488 2011-05-24  Eric Blake  <eblake@redhat.com>
17489
17490         strerror_r: fix missing header
17491         * lib/strerror_r.c: Avoid compiler warning about snprintf.
17492
17493         strerror_r: fix AIX test failures
17494         * lib/strerror_r.c (strerror_r): Convert silent truncation to
17495         ERANGE failure.
17496
17497         strerror_r: fix Solaris test failures
17498         * lib/strerror_r.c (strerror_r): Partially populate buf on ERANGE
17499         failures.
17500         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17501
17502         strerror_r: enforce POSIX recommendations
17503         * lib/strerror_r.c (safe_copy): New helper method.
17504         (strerror_r): Guarantee a non-empty string.
17505         * tests/test-strerror_r.c (main): Enhance tests to incorporate
17506         recent POSIX rulings and to match our strerror guarantees.
17507         * doc/posix-functions/strerror_r.texi (strerror_r): Document this.
17508
17509 2011-05-24  Jim Meyering  <meyering@redhat.com>
17510
17511         test-perror2.c: avoid warning about unused variable
17512         * tests/test-perror2.c (main): Remove declaration of unused "fp".
17513
17514 2011-05-24  Eric Blake  <eblake@redhat.com>
17515
17516         perror: avoid spurious test failure on HP-UX
17517         * tests/test-perror.sh: Use Exit to avoid wrong exit status.
17518
17519         tests: fix logic bug in init.sh
17520         * tests/init.sh: (gl_set_x_corrupts_stderr_): Clear for successful
17521         shell.
17522
17523 2011-05-24  Jim Meyering  <meyering@redhat.com>
17524
17525         utimensat: do not reference an out-of-scope buffer
17526         Otherwise, with __linux__ defined, "times" would point to a buffer, "ts"
17527         declared in an inner scope, yet "times" would be dereferenced outside
17528         the scope in which "ts" was valid.
17529         * lib/utimensat.c (rpl_utimensat) [__linux__]: Move the declaration
17530         of ts[2] "out/up", so that the use of aliased "times" (via
17531         "times = ts;") does not end up referencing an out-of-scope "ts"
17532
17533         opendir-safer.c: don't clobber errno; don't close negative FD
17534         * lib/opendir-safer.c (opendir_safer):
17535         [HAVE_FDOPENDIR || GNULIB_FDOPENDIR]: Don't close a negative
17536         file descriptor, and more importantly, don't clobber the
17537         offending errno value with EINVAL.  Before, upon failure
17538         of dup_safer, we would pass the negative file descriptor to
17539         fdopendir, which would clobber errno.
17540
17541 2011-05-23  Bruno Haible  <bruno@clisp.org>
17542
17543         idcache: Fix module description.
17544         * modules/idcache (Include): Set to "idcache.h".
17545
17546 2011-05-23  Paul Eggert  <eggert@cs.ucla.edu>
17547
17548         gnulib-tool: fix portability problem with MacOS sed
17549         A sed command like "/x/{s/a/b/}" is not portable; a newline is needed
17550         before the "}".  Problem reported by Leo in
17551         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00717.html>.
17552         * gnulib-tool (func_modules_transitive_closure): Insert newlines in
17553         sed_extract_condition1, sed_extract_condition2.
17554
17555 2011-05-23  Bruno Haible  <bruno@clisp.org>
17556
17557         hash: Simplify autoconf macro.
17558         * m4/hash.m4 (gl_HASH): Don't require AM_STDBOOL_H.
17559
17560 2011-05-23  Bruno Haible  <bruno@clisp.org>
17561
17562         getugroups: Fix module description.
17563         * modules/getugroups (Include): Set to "getugroups.h".
17564
17565 2011-05-23  Bruno Haible  <bruno@clisp.org>
17566
17567         linkat: Simplify autoconf macro.
17568         * m4/linkat.m4 (gl_FUNC_LINKAT): Don't require gl_FUNC_LINK.
17569
17570 2011-05-23  Bruno Haible  <bruno@clisp.org>
17571             Eric Blake  <eblake@redhat.com>
17572
17573         linkat, renameat: Update dependencies.
17574         * modules/renameat (Depends-on): Add dosname, save-cwd. Remove stpcpy.
17575         * modules/linkat (Depends-on): Likewise. Remove also readlink,
17576         symlinkat.
17577
17578 2011-05-23  Jim Meyering  <meyering@redhat.com>
17579
17580         maint.mk: more tight_scope improvements
17581         * top/maint.mk: (_gl_TS_var_match): Use $(_gl_TS_extern) here, too.
17582         (_gl_TS_headers): Define only in if-0'd block.
17583         (_gl_TS_dir): Omit the $(srcdir)/ prefix.  Sometimes we need it,
17584         sometimes we must *not* use it.  Adjust uses accordingly.
17585         (sc_tight_scope): Use much simpler grep-based test to determine
17586         whether we skip this rule.
17587
17588         maint.mk: generalize/improve the tight-scope rule
17589         * top/maint.mk: Emit a warning when the test is skipped.
17590         (_gl_TS_dir): Add $(srcdir)/ prefix.
17591         (_gl_TS_function_match): Simplify, rather than trying
17592         to enumerate common types.  Otherwise, it would fail to match an
17593         "extern unsigned char const *" declaration in idutils.
17594         (_gl_TS_extern): Do not endorse use of "XTERN", but do provide
17595         a way to support use of that type of macro.
17596         (_gl_TS_var_match): Simplify regexp.
17597         (_gl_TS_obj_files): New configurable variable.
17598         (_gl_TS_headers): Likewise.
17599
17600 2011-05-22  Paul Eggert  <eggert@cs.ucla.edu>
17601
17602         verify: fix bug when gnulib <assert.h> is also included
17603         * lib/verify.h (verify, verify_true): Define if _GL_VERIFY_H
17604         is defined, not if _GL_STATIC_ASSERT_H is not defined.
17605         Perhaps there's a better way, but this fixes the immediate problem.
17606         Problem reported by Bruno Haible in
17607         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00478.html>.
17608
17609 2011-05-22  Bruno Haible  <bruno@clisp.org>
17610
17611         xgetcwd: Simplify autoconf macro.
17612         * m4/xgetcwd.m4 (gl_XGETCWD): Don't require gl_FUNC_GETCWD.
17613
17614 2011-05-22  Bruno Haible  <bruno@clisp.org>
17615
17616         New module 'mktime-internal'.
17617         * modules/mktime-internal: New file.
17618         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Move contents to ...
17619         * m4/mktime.m4 (gl_FUNC_MKTIME_INTERNAL): New macro. Define
17620         mktime_internal as a C macro if libc has __mktime_internal.
17621         * modules/timegm (Depends-on): Add mktime-internal. Remove mktime. Add
17622         conditions.
17623         * MODULES.html.sh (Date and time <time.h>): Add mktime-internal.
17624
17625 2011-05-22  Bruno Haible  <bruno@clisp.org>
17626
17627         timegm: Correct mktime replacement statements.
17628         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Set REPLACE_MKTIME, instead of
17629         defining mktime as a C macro. This completes a 2009-07-28 commit.
17630
17631 2011-05-22  Bruno Haible  <bruno@clisp.org>
17632
17633         timegm: Simplify autoconf macro.
17634         * m4/timegm.m4 (gl_PREREQ_TIMEGM): Don't require gl_TIME_R.
17635
17636 2011-05-21  Paul Eggert  <eggert@cs.ucla.edu>
17637
17638         clock-time: change to LGPLv2+.
17639         * modules/clock-time: Change from GPL to LGPLv2+.  Actually, it's
17640         BSD-like but we have no mark for that; this is good enough for now.
17641
17642 2011-05-21  Bruno Haible  <bruno@clisp.org>
17643
17644         strerror_r: Fix comments.
17645         * lib/strerror_r.c (strerror_r): Fix comment about Cygwin and sys_nerr.
17646
17647 2011-05-21  Bruno Haible  <bruno@clisp.org>
17648
17649         relocatable-prog-wrapper: Fix possible link error.
17650         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Move determination of
17651         HAVE_SETENV and REPLACE_SETENV and AC_LIBOBJ invocation from here...
17652         (gl_FUNC_SETENV): ... to here.
17653         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL_SEPARATE): Update comment.
17654         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): Likewise.
17655
17656 2011-05-21  Bruno Haible  <bruno@clisp.org>
17657
17658         relocatable-prog-wrapper: Assume strerror() exists.
17659         * modules/relocatable-prog-wrapper (Files): Remove lib/strerror.c,
17660         m4/strerror.m4.
17661         (configure.ac): Don't invoke gl_FUNC_STRERROR_SEPARATE.
17662         * lib/relocwrapper.c: Remove mention of strerror module.
17663         * lib/strerror.c: Assume REPLACE_STRERROR is 1.
17664         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Remove macro.
17665         (gl_FUNC_STRERROR): Inline it here. Don't define REPLACE_STRERROR as a
17666         C macro.
17667
17668 2011-05-21  Bruno Haible  <bruno@clisp.org>
17669
17670         select: Simplify replacement idiom.
17671         * m4/select.m4 (gl_FUNC_SELECT): Set REPLACE_SELECT also on native
17672         Win32 platforms.
17673         * lib/sys_select.in.h (select): Simplify accordingly.
17674         * modules/select (Depends-on): Likewise.
17675
17676 2011-05-21  Bruno Haible  <bruno@clisp.org>
17677
17678         mkdir-p: Simplify autoconf macro.
17679         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't require gl_FUNC_LCHMOD,
17680         gl_FUNC_LCHOWN.
17681
17682 2011-05-21  Eric Blake  <eblake@redhat.com>
17683
17684         strerror_r: avoid clobbering strerror on cygwin
17685         * lib/strerror_r.c (strerror_r): Don't use cygwin's strerror_r;
17686         fall back instead to sys_errlist.
17687         * modules/strerror (configure.ac): Add witness.
17688         * tests/test-strerror_r.c (main): Enhance test.
17689         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17690         * tests/test-perror2.c (main): Free memory before exit.
17691
17692 2011-05-21  Bruno Haible  <bruno@clisp.org>
17693
17694         mkdtemp: Use gnulib naming conventions.
17695         * m4/mkdtemp.m4 (gl_FUNC_MKDTEMP): Renamed from gt_FUNC_MKDTEMP.
17696         * modules/mkdtemp (configure.ac): Update.
17697
17698 2011-05-20  Eric Blake  <eblake@redhat.com>
17699
17700         strerror_r: avoid corrupting errno on Solaris
17701         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Check for Solaris behavior.
17702         * doc/posix-functions/strerror_r.texi (strerror_r): Document it.
17703
17704         strerror_r: avoid compiler warning
17705         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't return a char*.
17706
17707         strerror_r: simplify AIX code
17708         * lib/strerror_r.c (strerror_r): Filter out buflen of 1 up front.
17709
17710         test-perror: avoid spurious failure on FreeBSD
17711         * modules/perror-tests (Depends-on): Add strerror, now that
17712         strerror_r no longer pulls it in.
17713
17714 2011-05-20  Bruno Haible  <bruno@clisp.org>
17715
17716         strerror_r-posix: Remove unused dependencies.
17717         * modules/strerror_r-posix (Depends-on): Remove strerror.
17718         Reported by Eric Blake.
17719
17720 2011-05-20  Paul Eggert  <eggert@cs.ucla.edu>
17721
17722         intprops: remove assumption about A|B representation
17723         * lib/intprops.h (_GL_BINARY_OP_OVERFLOW): Do not assume that A|B
17724         is a valid integer if both A and B are.  Although this is true for
17725         all known practical hosts, the C standard doesn't guarantee it,
17726         and the code need not assume it.  Also, this change may work around
17727         HP-UX 11.23 and IRIX 6.5 cc bugs reported by Bruno Haible in
17728         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00426.html>.
17729
17730 2011-05-20  Eric Blake  <eblake@redhat.com>
17731
17732         perror: work around FreeBSD bug
17733         * m4/perror.m4 (gl_FUNC_PERROR): Also replace perror if strerror_r
17734         is broken.  Move AC_LIBOBJ...
17735         * modules/perror (configure.ac): Here.
17736         * doc/posix-functions/perror.texi (perror): Document this.
17737         * tests/test-perror2.c (main): Enhance test.
17738
17739         test-perror: check for strerror interactions
17740         * tests/macros.h (STREQ): Add macro.
17741         * modules/perror-tests (Files): Add second test.
17742         * tests/test-perror2.c (main): New file.
17743         * doc/posix-functions/perror.texi (perror): Document glibc bug.
17744
17745         test-perror: rewrite to use init script
17746         * modules/perror-tests (Files): Add init.sh.
17747         * tests/test-perror.sh: Use temporary directory.
17748
17749 2011-05-20  Jim Meyering  <meyering@redhat.com>
17750
17751         maint: replace misused "a" with "an"
17752         * doc/intprops.texi: "a integer"
17753         * doc/regex.texi: "a explanation"
17754         * lib/alignof.h: "a object"
17755         * lib/argmatch.h: "a explanation"
17756         * lib/argp-help.c: "a option" and "a OPTION_DOC"
17757         * lib/stdint.in.h: "a integer"
17758         * lib/userspec.c: "a owner"
17759         * doc/gnulib.texi: Fix "a idea", and reword.
17760
17761 2011-05-19  Jim Meyering  <meyering@redhat.com>
17762
17763         maint: correct misuse of "a" and "an"
17764         * doc/regex.texi (Collating Symbol Operators): s/an close.../a close/
17765         * lib/argp-help.c: "an docum...": s/an/a/
17766         * lib/argp-parse.c: "An vector": s/An/A/
17767         * lib/execute.c: "an native": s/an/a/
17768         * lib/spawn-pipe.c: Likewise.
17769         * lib/gc.h: "an Gc_rc": s/an/a/
17770         * lib/unigbrk.in.h: "an grapheme": s/an/a/
17771         * lib/fts.c: "an stat.st_dev": s/an/a/
17772
17773 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17774
17775         intprops-tests: work around HP-UX 11.23 cc bug with constants
17776         * tests/test-intprops.c (VERIFY): New macro.
17777         (main): Use it, instead of verify, to work around the compiler bug; see
17778         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17779
17780         intprops: work around IRIX 6.5 cc bug with 0u - 0u + -1
17781         See http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html
17782         * lib/intprops.h (_GL_INT_NEGATE_CONVERT): New macro.
17783         (_GL_INT_SIGNED, _GL_INT_MAXIMUM, _GL_DIVIDE_OVERFLOW):
17784         (_GL_REMAINDER_OVERFLOW): Use it.
17785
17786         intprops-tests: revert unsigned part of previous change
17787         * tests/test-intprops.c (UINT_MAX, ULONG_MAX, UINTMAX_MAX, U0, U1):
17788         Remove; they weren't actually needed.  All uses of U0 and U1 removed,
17789         and other casts to 'unsigned int' reverted to 'u' suffixes.  See
17790         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00406.html>.
17791
17792 2011-05-19  Bruno Haible  <bruno@clisp.org>
17793
17794         strerror_r: Work around strerror_r() change in Cygwin 1.7.8.
17795         * lib/strerror_r.c (strerror_r) [CYGWIN]: Recognize when the system's
17796         strerror_r() returned without filling the buffer.
17797         Reported by Eric Blake.
17798
17799 2011-05-19  Eric Blake  <eblake@redhat.com>
17800
17801         strerror_r: guarantee unchanged errno
17802         * lib/strerror_r.c (strerror_r): Guarantee unchanged errno.
17803         * lib/strerror-impl.h (strerror): Set errno to match strerror_r
17804         failure.
17805         * tests/test-strerror_r.c (main): Enhance test.
17806
17807 2011-05-19  Bruno Haible  <bruno@clisp.org>
17808
17809         strerror_r: Reorder #if blocks.
17810         * lib/strerror_r.c (strerror_r): Reorder conditionals in the function
17811         for consistency with the previous commit.
17812
17813 2011-05-19  Bruno Haible  <bruno@clisp.org>
17814
17815         perror: Avoid clobbering the strerror buffer when possible.
17816         * lib/strerror-impl.h: New file, extracted from lib/strerror.c.
17817         * lib/strerror.c: Include it.
17818         * modules/strerror (Files): Add lib/strerror-impl.h.
17819         * lib/perror.c: Include <stdlib.h>, intprops.h, verify.h.
17820         (my_strerror): New function, defined through lib/strerror-impl.h.
17821         (perror): Use it instead of strerror.
17822         * modules/perror (Files): Add lib/strerror-impl.h.
17823         (Depends-on): Remove strerror. Add intprops, verify, strerror_r-posix.
17824
17825 2011-05-19  Eric Blake  <eblake@redhat.com>
17826
17827         strerror_r: fix on newer cygwin
17828         * lib/strerror_r.c (strerror_r): Cygwin now has
17829         __xpg_strerror_r, use it.
17830
17831 2011-05-19  Bruno Haible  <bruno@clisp.org>
17832
17833         strerror_r: Avoid clobbering the strerror buffer when possible.
17834         * lib/strerror.c: Define _NETBSD_SOURCE. Include <nl_types.h>.
17835         (sys_nerr, sys_errlist): New declarations.
17836         (strerror_r): Be careful not to clobber the strerror buffer on NetBSD,
17837         HP-UX, native Win32, IRIX, and 32-bit Solaris.
17838         * m4/strerror_r.m4 (gl_PREREQ_STRERROR_R): Test whether catgets exists.
17839
17840 2011-05-19  Bruno Haible  <bruno@clisp.org>
17841
17842         strerror_r: Fix test failure on mingw.
17843         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Don't define
17844         EXTEND_STRERROR_R.
17845         * lib/strerror_r.c (strerror_r): Test the various GNULIB_defined_*
17846         macros from errno.in.h instead.
17847
17848 2011-05-19  Eric Blake  <eblake@redhat.com>
17849
17850         strerror: relax test for Solaris
17851         * tests/test-strerror.c (main): Permit Solaris behavior.
17852         * tests/test-strerror_r.c (main): Likewise.
17853
17854         strerror: enforce POSIX ruling on strerror(0)
17855         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Expose BSD bug.
17856         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
17857         * lib/strerror_r.c (rpl_strerror_r): Work around it.
17858         * doc/posix-functions/strerror.texi (strerror): Document it.
17859         * doc/posix-functions/strerror_r.texi (strerror_r): Likewise.
17860         * tests/test-strerror.c (main): Strengthen test.
17861         * tests/test-strerror_r.c (main): Likewise.
17862
17863 2011-05-19  Paul Eggert  <eggert@cs.ucla.edu>
17864
17865         intprop-tests: port to older and more-pedantic compilers
17866         * modules/intprops-tests (Files): Add tests/macros.h.
17867         * tests/test-intprops.c: Include macros.h.
17868         (TYPE_IS_INTEGER): Use ASSERT, not verify, to test this macro, as
17869         it's no longer documented to expand to an integer constant expression.
17870         (TYPE_SIGNED): Use ASSERT, not verify, to test this macro when the
17871         argument is floating point, as it's no longer documented to expand
17872         to an integer constant expression in that case.
17873         (UINT_MAX, ULONG_MAX, UINTMAX_MAX): Redefine to work around
17874         compiler bugs reported by Bruno Haible.  See
17875         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17876         (U0, U1): New constants, to work around the same bugs.  Also,
17877         in tests, use e.g., "(unsigned int) 39" rather than "39u".
17878
17879         intprops: work around C compiler bugs
17880         * lib/intprops.h (INT_MULTIPLY_RANGE_OVERFLOW): Work around compiler
17881         bug in Sun C 5.11 2010/08/13 and other compilers; see
17882         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00401.html>.
17883
17884         intprops: TYPE_IS_INTEGER, TYPE_SIGNED not integer constant exprs
17885         * doc/intprops.texi (Integer Type Determination): Fix
17886         documentation for TYPE_IS_INTEGER: it returns an constant
17887         expression, not an integer constant expression.  Fix doc for
17888         TYPE_SIGNED: it returns an integer constant expression only if its
17889         argument is an integer type.  (TYPE_IS_INTEGER is the same, but is
17890         hardly worth documented that way....)
17891
17892 2011-05-18  Bruno Haible  <bruno@clisp.org>
17893
17894         strerror_r: Avoid clobbering the strerror buffer when possible.
17895         * lib/strerror_r.c (strerror_r): Merge the three implementations.
17896         Handle gnulib defined errno values here. When strerror() returns NULL
17897         or an empty string, return EINVAL.
17898         * lib/strerror.c (strerror): Always call strerror_r. Don't handle
17899         gnulib defined errno values here.
17900         * modules/strerror (Depends-on): Add verify, strerror_r-posix.
17901
17902 2011-05-18  Eric Blake  <eblake@redhat.com>
17903
17904         fnmatch: avoid compiler warning
17905         * lib/fnmatch_loop.c (FCT): Use correct type.
17906         Reported by Matthias Bolte.
17907
17908 2011-05-13  Jim Meyering  <meyering@redhat.com>
17909
17910         maint.mk: three new prohibit_<HDR>_without_use rules
17911         * top/maint.mk (sc_prohibit_stdio--_without_use): New rule.
17912         (sc_prohibit_stdio-safer_without_use): Likewise.
17913         (sc_prohibit_xfreopen_without_use): Likewise.
17914
17915 2011-05-17  Jim Meyering  <meyering@redhat.com>
17916
17917         announce-gen: fail if the NEWS delta is empty
17918         If there's nothing noteworthy in NEWS, then either you forgot
17919         or you shouldn't be releasing.
17920         * build-aux/announce-gen: Die if the NEWS delta is effectively empty.
17921
17922 2011-05-17  Pádraig Brady <P@draigBrady.com>
17923
17924         * top/maint.mk (_gl_tight_scope:): Automatically exclude compiler
17925         reserved symbols starting with double underscore from the check.
17926
17927 2011-05-17  Paul Eggert  <eggert@cs.ucla.edu>
17928
17929         intprops: add doc
17930         * doc/intprops.texi: New file, documenting intprops.
17931         * doc/gnulib.texi (Particular Modules): Include it.
17932
17933         verify: add doc to gnulib manual and fix example
17934         * doc/gnulib.texi (Compile-time Assertions): New node, for 'verify'.
17935         * doc/verify.texi (Compile-time Assertions): Update 'assert' doc.
17936         (Compile-time Assertions): Fix example so it can't overflow.
17937
17938 2011-05-17  Jim Meyering  <meyering@redhat.com>
17939
17940         warnings.m4: don't usurp save_CPPFLAGS variable name
17941         * m4/warnings.m4: Prefix local temporary variable name with gl_.
17942
17943         doc: fix typo
17944         * doc/gnulib-intro.texi (Target Platforms): s/is/are/
17945
17946 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17947             Bruno Haible  <bruno@clisp.org>
17948
17949         doc: Tweak recent change.
17950         * README (Portability guidelines): Tweak new text.
17951         * doc/gnulib-intro.texi (Target Platforms): Likewise. Mention
17952         Interix 6.1.
17953
17954 2011-05-16  Eric Blake  <eblake@redhat.com>
17955
17956         inttypes: avoid autoconf warning
17957         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): Only expand once.
17958         * m4/stdint.m4 (gl_STDINT_H): Likewise.
17959
17960 2011-05-16  Sam Steingold <sds@gnu.org>
17961         and Eric Blake  <eblake@redhat.com>
17962
17963         vc-list-files: accept multiple directory operands
17964         * build-aux/vc-list-files: Iterate over all remaining operands.
17965
17966 2011-05-16  Bruno Haible  <bruno@clisp.org>
17967
17968         Fix confusion regarding deprecated modules.
17969         * modules/calloc (Status, Notice): Mark module as deprecated, not
17970         obsolete.
17971         * modules/fnmatch-posix (Status, Notice): Likewise.
17972         * modules/getdate (Status, Notice): Likewise.
17973         * modules/getopt (Status, Notice): Likewise.
17974         * modules/malloc (Status, Notice): Likewise.
17975         * modules/pipe (Status, Notice): Likewise.
17976         * modules/realloc (Status, Notice): Likewise.
17977         * modules/rename-dest-slash (Status, Notice): Likewise.
17978         * modules/unictype/bidicategory-all (Status, Notice): Likewise.
17979         * modules/unictype/bidicategory-byname (Status, Notice): Likewise.
17980         * modules/unictype/bidicategory-name (Status, Notice): Likewise.
17981         * modules/unictype/bidicategory-of (Status, Notice): Likewise.
17982         * modules/unictype/bidicategory-test (Status, Notice): Likewise.
17983
17984 2011-05-16  Bruno Haible  <bruno@clisp.org>
17985
17986         doc: List the target platforms.
17987         * doc/gnulib-intro.texi (Target Platforms): New section.
17988         * doc/gnulib.texi (Introduction): Update menu.
17989         * README (Portability guidelines): Refer to the new section. Update
17990         statement about oldest supported environment. Remove rationale why
17991         <errno.h>, <string.h>, <stdlib.h> are assumed. Update example of an
17992         unportable C89 function.
17993         Reported by Bastien Roucariès <roucaries.bastien@gmail.com> and
17994         Charles Wilson <cygwin@cwilson.fastmail.fm>. Feedback from Paul Eggert.
17995
17996 2011-05-16  Paul Eggert  <eggert@cs.ucla.edu>
17997
17998         * build-aux/bootstrap (gnulib_tool): Handle symlink timestamps better.
17999
18000 2011-05-13  Paul Eggert  <eggert@cs.ucla.edu>
18001
18002         intprops-tests: new module
18003         * modules/intprops-tests, tests/test-intprops.c: New files.
18004
18005         intprops: add safe, portable integer overflow checking
18006         * lib/intprops.h (_GL_INT_CONVERT, _GL_INT_TWOS_COMPLEMENT):
18007         (_GL_INT_SIGNED, _GL_INT_MINIMUM, _GL_INT_MAXIMUM):
18008         (_GL_SIGNED_INT_MINIMUM, INT_ADD_RANGE_OVERFLOW):
18009         (INT__SUBTRACT__RANGE_OVERFLOW, INT_NEGATE_RANGE_OVERFLOW):
18010         (INT_MULTIPLY_RANGE_OVERFLOW, INT_REMAINDER_RANGE_OVERFLOW):
18011         (INT_LEFT_SHIFT_RANGE_OVERFLOW, _GL_ADD_OVERFLOW):
18012         (_GL__SUBTRACT__OVERFLOW, _GL_MULTIPLY_OVERFLOW, _GL_DIVIDE_OVERFLOW):
18013         (_GL_REMAINDER_OVERFLOW, _GL_UNSIGNED_NEG_MULTIPLE, INT_ADD_OVERFLOW):
18014         (INT__SUBTRACT__OVERFLOW, INT_NEGATE_OVERFLOW, INT_MULTIPLY_OVERFLOW):
18015         (INT_DIVIDE_OVERFLOW, INT_REMAINDER_OVERFLOW):
18016         (INT_LEFT_SHIFT_OVERFLOW, _GL_BINARY_OP_OVERFLOW): New macros.
18017
18018 2011-05-12  James Youngman  <jay@gnu.org>
18019
18020         Add a test for glibc's Bugzilla bug #12378.
18021         * m4/fnmatch.m4: Use gnulib's fnmatch if the system fnmatch
18022         doesn't allow the literal matching of a lone "[" (which is
18023         required by POSIX).
18024         * tests/test-fnmatch.c (main): Check that "[/b" matches itself.
18025
18026 2011-05-11  Ulrich Drepper  <drepper@gmail.com>
18027
18028         Sync glibc change fixing Bugzilla bug #12378.
18029         * lib/fnmatch_loop.c (FCT): When matching '[' keep track of
18030         beginning and fall back to matching as normal character if the
18031         string ends before the matching ']' is found.  This is what POSIX
18032         requires.
18033
18034 2011-05-13  Eric Blake  <eblake@redhat.com>
18035
18036         getcwd-lgpl: relax test for FreeBSD
18037         * doc/posix-functions/getcwd.texi (getcwd): Document portability
18038         issue.
18039         * tests/test-getcwd-lgpl.c (main): Relax test.
18040         Reported by Matthias Bolte.
18041
18042 2011-05-11  Eric Blake  <eblake@redhat.com>
18043
18044         test-fflush: silence compiler warning
18045         * tests/test-fflush.c (main): Don't fclose a NULL pointer.
18046
18047 2011-05-11  Bruno Haible  <bruno@clisp.org>
18048
18049         canonicalize, canonicalize-lgpl: Avoid crash dialog on MacOS X.
18050         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Add GL_NOCRASH code.
18051         * modules/canonicalize (Depends-on): Add 'nocrash'.
18052         * modules/canonicalize-lgpl (Depends-on): Likewise.
18053         * doc/posix-functions/realpath.texi: Update platforms list.
18054         Reported by Ryan Schmidt <ryandesign@macports.org>.
18055
18056 2011-05-11  Bruno Haible  <bruno@clisp.org>
18057
18058         group-member: Declare function in <unistd.h>.
18059         * lib/unistd.in.h (group_member): New declaration.
18060         * lib/group-member.h: Remove file.
18061         * lib/group-member.c: Include <unistd.h> instead of group-member.h.
18062         * tests/test-unistd-c++.cc: Check signature of group_member.
18063         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Require
18064         gl_UNISTD_H_DEFAULTS. Set HAVE_GROUP_MEMBER.
18065         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether group_member is declared.
18066         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GROUP_MEMBER,
18067         HAVE_GROUP_MEMBER.
18068         * modules/group-member (Files): Remove lib/group-member.h.
18069         (Depends-on): Add unistd. Specify conditions.
18070         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
18071         (Include): Change to <unistd.h>.
18072         * modules/unistd (Makefile.am): Substitute GNULIB_GROUP_MEMBER,
18073         HAVE_GROUP_MEMBER.
18074         * NEWS: Mention the change.
18075         * lib/euidaccess.c: Don't include group-member.h.
18076
18077 2011-05-11  Bruno Haible  <bruno@clisp.org>
18078
18079         group-member: Document module.
18080         * doc/glibc-functions/group_member.texi: Mention the 'group-member'
18081         module.
18082
18083 2011-05-11  Bruno Haible  <bruno@clisp.org>
18084
18085         fclose: Fix mistake earlier today.
18086         * lib/fclose.c (rpl_fclose): Don't assume that EOF < 0.
18087
18088 2011-05-11  Eric Blake  <eblake@redhat.com>
18089
18090         fclose: preserve fflush errors
18091         * lib/fclose.c (rpl_fclose): Don't lose fflush errors.
18092         Reported by Jim Meyering.
18093
18094         bootstrap: support a prereq of 'rpcgen -' on RHEL5
18095         * build-aux/bootstrap (check_versions): When no specific version
18096         is required, merely check that the app produces an exit status
18097         that indicates its existence.
18098
18099         maint.mk: drop redundant check
18100         * top/maint.mk (sc_the_the): Delete; sc_prohibit_doubled_word does
18101         the same but better.
18102
18103 2011-05-11  Bruno Haible  <bruno@clisp.org>
18104
18105         fclose: Fix possible link error.
18106         * lib/fclose.c (rpl_fclose): Invoke _gl_unregister_fd, not
18107         unregister_shadow_fd. Improve comments.
18108         * lib/sockets.c (close_fd_maybe_socket): Add comments. Reported by
18109         Eric Blake.
18110
18111 2011-05-11  Jim Meyering  <meyering@redhat.com>
18112
18113         maint.mk: improve "can not" detection and generalize rule name
18114         * top/maint.mk (sc_prohibit_undesirable_word_seq): Renamed from
18115         sc_prohibit_can_not, since we'll probably add a few more word pairs here.
18116         Use the same technique as in sc_prohibit_doubled_word, so that
18117         we recognize "can not" also when the words are separated by a newline.
18118         Suggested by Eric Blake.
18119         (perl_filename_lineno_text_): Define.  Factored out of...
18120         (prohibit_doubled_word_): ...here.  Use the new definition.
18121         (prohibit_undesirable_word_seq_): New var.  Use it here, too.
18122         (prohibit_undesirable_word_seq_RE_): New overridable variable.
18123         (ignore_undesirable_word_sequence_RE_): New overridable variable.
18124
18125 2011-05-10  Eric Blake  <eblake@redhat.com>
18126
18127         fclose: avoid double close race when possible
18128         * lib/fclose.c (rpl_fclose): Rewrite to avoid double-close race on
18129         all but WINDOWS_SOCKETS.
18130
18131 2011-05-10  Bastien Roucariès  <roucaries.bastien@gmail.com>
18132
18133         openat: correct new comment
18134         * lib/openat-proc.c (openat_proc_name): Correct the comment.
18135
18136 2011-05-10  Jim Meyering  <meyering@redhat.com>
18137
18138         openat: add comments
18139         * lib/openat-proc.c (openat_proc_name): Add comments,
18140         mostly from Eric Blake.
18141
18142 2011-05-09  Eric Blake  <eblake@redhat.com>
18143
18144         openat: reduce syscalls in first probe of /proc
18145         * lib/openat-proc.c (openat_proc_name): Require that /proc/self/fd
18146         be a directory.  Simplify the probe for .. bugs.
18147         * modules/openat (Depends-on): Drop same-inode.
18148         Reported by Bastien ROUCARIES.
18149
18150 2011-05-09  Jim Meyering  <meyering@redhat.com>
18151
18152         maint.mk: change semantics/name of tight_scope variables
18153         * top/maint.mk (_gl_TS_var_match, _gl_TS_function_match):
18154         Rename variables to align with semantics that make them more useful.
18155
18156         maint.mk: tweak new rule's name not to impinge
18157         * top/maint.mk (_gl_tight_scope): Rename from sc_tight_scope-0.
18158         (sc_tight_scope): Use new rule name rather than $@-0.
18159
18160         maint.mk: add a syntax-check rule to ensure tightly-scoped symbols
18161         * top/maint.mk (sc_tight_scope): New rule.
18162         (sc_tight_scope-0): New rule, ifdef'd out.
18163         (_gl_TS_dir): Default.
18164         (_gl_TS_unmarked_extern_functions, _gl_TS_function_regex): Define.
18165         (_gl_TS_unmarked_extern_vars, _gl_TS_var_regex): Define.
18166
18167 2011-05-09  Simon Josefsson  <simon@josefsson.org>
18168
18169         * m4/gc.m4: Remove gl_PREREQ_GC (not used).  Reported by Bruno
18170         Haible <bruno@clisp.org>.
18171
18172 2011-05-08  Bruno Haible  <bruno@clisp.org>
18173
18174         Comments.
18175         * m4/isnanf.m4: Add comment.
18176         * m4/isnanl.m4: Likewise.
18177
18178 2011-05-08  Bruno Haible  <bruno@clisp.org>
18179
18180         glob: Remove obsolete macro.
18181         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): Remove macro.
18182
18183 2011-05-08  Paul Eggert  <eggert@cs.ucla.edu>
18184
18185         intprops: Sun C 5.11 supports __typeof__
18186         * lib/intprops.h (_GL_HAVE___TYPEOF__): New macro, which is set
18187         for either GCC 2 or later, as before, or for Sun C 5.11 or later,
18188         which is new.
18189         (_GL_SIGNED_TYPE_OR_EXPR): Use it.
18190
18191         intprops: switch to usual gnulib indenting and naming
18192         * lib/intprops.h (_GL_INTPROPS_H): Rename from GL_INTPROPS_H.
18193         (_GL_SIGNED_TYPE_OR_EXPR): Rename from signed_type_or_expr__.
18194
18195         * tests/test-inttostr.c (IS_TIGHT): Adjust to above renaming.
18196
18197 2011-05-08  Jim Meyering  <meyering@redhat.com>
18198
18199         maint.mk: suppress "Entering/Leaving directory" diag in announcement
18200         * top/maint.mk (release-prep): Use make's --no-print-directory
18201         option when generating the announcement.  This eliminates the
18202         pesky "make[2]: Entering/Leaving directory" diagnostics in the
18203         generated announcement template.
18204
18205 2011-05-08  Bruno Haible  <bruno@clisp.org>
18206
18207         tzset: Fix gettimeofday wrapper on Solaris 2.6.
18208         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): When invoking
18209         gl_GETTIMEOFDAY_REPLACE_LOCALTIME, also set REPLACE_GETTIMEOFDAY.
18210
18211 2011-05-07  Paul Eggert  <eggert@cs.ucla.edu>
18212
18213         ignore-value, verify: Omit include files from lib_SOURCES.
18214         * modules/ignore-value, modules/verify (Makefile.am):
18215         Don't put ignore-value.h, or verify.h, into lib_SOURCES, as
18216         that leads Automake to duplicate use of am__objects_... variables
18217         in Makefile.in.  See
18218         <http://lists.gnu.org/archive/html/emacs-devel/2011-05/msg00257.html>.
18219
18220 2011-05-07  Bruno Haible  <bruno@clisp.org>
18221
18222         fclose: Simplify autoconf macro.
18223         * m4/fclose.m4 (gl_FUNC_FCLOSE): Assume gl_FUNC_FFLUSH_STDIN is
18224         defined.
18225
18226 2011-05-07  Bruno Haible  <bruno@clisp.org>
18227
18228         canonicalize-lgpl: Fix autoconf macro ordering bug.
18229         * m4/canonicalize.m4 (gl_CANONICALIZE_LGPL): Require
18230         gl_STDLIB_H_DEFAULTS.
18231
18232 2011-05-06  Eric Blake  <eblake@redhat.com>
18233
18234         maintainer-makefile: make sc_po_check easier to tune
18235         * top/maint.mk (sc_po_check): Allow overriding which non-VC files
18236         to probe for strings, such as an alternate location for gnulib.
18237
18238         fclose: guarantee behavior on seekable stdin
18239         * modules/fclose (Depends-on): Add fflush.
18240         * doc/posix-functions/fclose.texi (fclose): Document this.
18241         * tests/test-fclose.c (main): Make test for this unconditional.
18242
18243 2011-05-06  Bruno Haible  <bruno@clisp.org>
18244
18245         fflush, fpurge: Relicense under LGPLv2+.
18246         * modules/fflush (License): Change from LGPLv3+ to LGPLv2+.
18247         * modules/fpurge (License): Likewise.
18248         With permission from Eric Blake and Jim Meyering.
18249         Suggested by Eric Blake.
18250
18251 2011-05-06  Karl Berry  <karl@gnu.org>
18252
18253         * MODULES.html.sh (func_all_modules): remove exit.
18254
18255 2011-05-06  Jim Meyering  <meyering@redhat.com>
18256
18257         maint.mk: use info-gnu@ as the default only for a stable release
18258         * top/maint.mk: Don't default to info-gnu for alpha or beta releases.
18259         For those, just use $(PACKAGE_BUGREPORT), in which case we don't have
18260         to set the Mail-Followup-To header.  Prompted by Reuben Thomas in
18261         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26488
18262
18263 2011-05-05  Paul Eggert  <eggert@cs.ucla.edu>
18264
18265         assert-h: new module, which supports C1X-style static_assert
18266         * lib/assert.in.h, m4/assert_h.m4, modules/assert-h: New files.
18267         * lib/verify.h: Revamp so that this can be copied into assert.h,
18268         while retaining the ability to use it standalone as before.
18269         Rename private identifiers so as not to encroach on the
18270         standard C namespace, since this is now used by assert.h.
18271         (_GL_VERIFY_TYPE): New macro, factoring out differing parts of
18272         the old verify_true.
18273         (_GL_VERIFY_TRUE): New macro, with much of the contents of
18274         the old verify_true.  Use _GL_VERIFY_TYPE.
18275         (_GL_VERIFY): New macro, with much of the contents of the old verify.
18276         (static_assert): New macro, if _GL_STATIC_ASSERT_H
18277         is defined and static_assert is not; _GL_STATIC_ASSERT_H is
18278         defined when this file is copied into the replacement assert.h.
18279         (_Static_assert): New macro, if _GL_STATIC_ASSERT_H is defined
18280         and _Static_assert is not built in.
18281         (verify_true, verify): Define only if _GL_STATIC_ASSERT_H is not
18282         defined, and use the new macros mentioned above.
18283         * doc/posix-headers/assert.texi: Document this.
18284
18285 2011-05-05  Bruno Haible  <bruno@clisp.org>
18286
18287         fclose, fflush: Respect rules for use of AC_LIBOBJ.
18288         * m4/fflush.m4 (gl_FUNC_FFLUSH): Don't invoke gl_REPLACE_FCLOSE.
18289         * m4/fclose.m4 (gl_FUNC_FCLOSE): Invoke gl_FUNC_FFLUSH_STDIN and
18290         gl_REPLACE_FCLOSE here.
18291         * modules/fflush (Depends-on): Remove fclose.
18292         * doc/posix-functions/fclose.texi: Mention module 'fflush' only in
18293         combination with module 'fclose'.
18294
18295 2011-05-05  Bruno Haible  <bruno@clisp.org>
18296
18297         fflush, fseeko: Respect rules for use of AC_LIBOBJ.
18298         * m4/fflush.m4 (gl_FUNC_FFLUSH_STDIN): New macro, extracted from
18299         gl_FUNC_FFLUSH.
18300         (gl_FUNC_FFLUSH): Use it.
18301         (gl_REPLACE_FFLUSH): Don't invoke gl_REPLACE_FSEEKO.
18302         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Invoke gl_FUNC_FFLUSH_STDIN and
18303         gl_REPLACE_FSEEKO here.
18304
18305 2011-05-05  Bruno Haible  <bruno@clisp.org>
18306
18307         tzset: Relicense under LGPL.
18308         * modules/tzset (License): Change to LGPL.
18309         No agreement needed; it's a no-op.
18310
18311         strtoimax, strtoumax: Relicense under LGPL.
18312         * modules/strtoimax (License): Change to LGPL.
18313         * modules/strtoumax (License): Likewise.
18314         With permission from Jim Meyering, Paul Eggert:
18315         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00124.html>
18316         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00109.html>
18317
18318         getgroups: Relicense under LGPL.
18319         * modules/getgroups (License): Change to LGPL.
18320         With permission from Jim Meyering, Paul Eggert, Eric Blake:
18321         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18322         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18323         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18324
18325         nanosleep: Relicense under LGPL.
18326         * modules/nanosleep (License): Change to LGPL.
18327         With permission from Jim Meyering, Paul Eggert, Eric Blake, Bruno
18328         Haible:
18329         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00111.html>
18330         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00148.html>
18331         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18332         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18333
18334         futimens: Relicense under LGPL.
18335         * modules/futimens (License): Change to LGPL.
18336         With permission from Eric Blake:
18337         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18338
18339         fflush: Relicense under LGPL.
18340         * modules/fflush (License): Change to LGPL.
18341         With permission from Eric Blake, Bruno Haible, Jim Meyering:
18342         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00138.html>
18343         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00131.html>
18344         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00133.html>
18345
18346         tmpfile: Relicense under LGPL.
18347         * modules/tmpfile (License): Change to LGPL.
18348         With permission from Ben Pfaff:
18349         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18350
18351         isfinite: Relicense under LGPL.
18352         * modules/isfinite (License): Change to LGPL.
18353         With permission from Ben Pfaff, Bruno Haible:
18354         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00185.html>
18355         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00130.html>
18356
18357         acosl..tanl: Relicense under LGPL.
18358         * modules/acosl (License): Change to LGPL.
18359         * modules/asinl (License): Likewise.
18360         * modules/atanl (License): Likewise.
18361         * modules/cosl (License): Likewise.
18362         * modules/expl (License): Likewise.
18363         * modules/logl (License): Likewise.
18364         * modules/sinl (License): Likewise.
18365         * modules/sqrtl (License): Likewise.
18366         * modules/tanl (License): Likewise.
18367         Source code originally from glibc and Paolo Bonzini. Agreements:
18368         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00137.html>
18369         <http://lists.gnu.org/archive/html/bug-gnulib/2011-05/msg00128.html>
18370
18371 2011-05-05  Bruno Haible  <bruno@clisp.org>
18372
18373         signal: Define sighandler_t.
18374         * lib/signal.in.h (sighandler_t): New type.
18375         * m4/signal_h.m4 (gl_SIGNAL_H): Require AC_USE_SYSTEM_EXTENSIONS. Test
18376         whether sighandler_t is defined.
18377         (gl_SIGNAL_H_DEFAULTS): Initialize HAVE_SIGHANDLER_T.
18378         * modules/signal (Depends-on): Add extensions.
18379         (Makefile.am): Substitute HAVE_SIGHANDLER_T.
18380         * doc/posix-headers/signal.texi: Mention the problem with sighandler_t.
18381         Suggested by Markus Steinborn <gnugv_maintainer@yahoo.de>.
18382
18383 2011-05-05  Eric Blake  <eblake@redhat.com>
18384
18385         maint: remove useless REPLACE_*_H macros
18386         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Delete.
18387         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
18388         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
18389         * m4/poll_h.m4 (gl_REPLACE_POLL_H): Likewise.
18390         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
18391         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
18392         * m4/wchar_h.m4 (gl_REPLACE_WCHAR_H): Likewise.
18393         * m4/btowc.m4: Update callers.
18394         * m4/dirfd.m4: Likewise.
18395         * m4/duplocale.m4: Likewise.
18396         * m4/fchdir.m4: Likewise.
18397         * m4/fdopendir.m4: Likewise.
18398         * m4/inet_ntop.m4: Likewise.
18399         * m4/inet_pton.m4: Likewise.
18400         * m4/ioctl.m4: Likewise.
18401         * m4/mbrlen.m4: Likewise.
18402         * m4/mbrtowc.m4: Likewise.
18403         * m4/mbsinit.m4: Likewise.
18404         * m4/mbsnrtowcs.m4: Likewise.
18405         * m4/mbsrtowcs.m4: Likewise.
18406         * m4/poll.m4: Likewise.
18407         * m4/setlocale.m4: Likewise.
18408         * m4/wcrtomb.m4: Likewise.
18409         * m4/wcsnrtombs.m4: Likewise.
18410         * m4/wcsrtombs.m4: Likewise.
18411         * m4/wctob.m4: Likewise.
18412         * m4/wcwidth.m4: Likewise.
18413         * modules/posix_spawn: Likewise.
18414         * modules/posix_spawn_file_actions_addclose: Likewise.
18415         * modules/posix_spawn_file_actions_adddup2: Likewise.
18416         * modules/posix_spawn_file_actions_addopen: Likewise.
18417         * modules/posix_spawn_file_actions_destroy: Likewise.
18418         * modules/posix_spawn_file_actions_init: Likewise.
18419         * modules/posix_spawnattr_destroy: Likewise.
18420         * modules/posix_spawnattr_getflags: Likewise.
18421         * modules/posix_spawnattr_getpgroup: Likewise.
18422         * modules/posix_spawnattr_getschedparam: Likewise.
18423         * modules/posix_spawnattr_getschedpolicy: Likewise.
18424         * modules/posix_spawnattr_getsigdefault: Likewise.
18425         * modules/posix_spawnattr_getsigmask: Likewise.
18426         * modules/posix_spawnattr_init: Likewise.
18427         * modules/posix_spawnattr_setflags: Likewise.
18428         * modules/posix_spawnattr_setpgroup: Likewise.
18429         * modules/posix_spawnattr_setschedparam: Likewise.
18430         * modules/posix_spawnattr_setschedpolicy: Likewise.
18431         * modules/posix_spawnattr_setsigdefault: Likewise.
18432         * modules/posix_spawnattr_setsigmask: Likewise.
18433         * modules/posix_spawnp: Likewise.
18434
18435 2011-05-04  Reuben Thomas  <rrt@sc3d.org>
18436
18437         Add option to do-release-commit-and-tag to specify branch.
18438         * build-aux/do-release-commit-and-tag: Add --branch.
18439
18440 2011-05-03  Bruno Haible  <bruno@clisp.org>
18441
18442         Avoid unnecessary compilation units, through conditional dependencies.
18443         * modules/accept (Depends-on): Add conditions to the dependencies.
18444         * modules/acosl (Depends-on): Likewise.
18445         * modules/argz (Depends-on): Likewise.
18446         * modules/asinl (Depends-on): Likewise.
18447         * modules/atanl (Depends-on): Likewise.
18448         * modules/atoll (Depends-on): Likewise.
18449         * modules/bind (Depends-on): Likewise.
18450         * modules/btowc (Depends-on): Likewise.
18451         * modules/canonicalize-lgpl (Depends-on): Likewise.
18452         * modules/ceil (Depends-on): Likewise.
18453         * modules/ceilf (Depends-on): Likewise.
18454         * modules/ceill (Depends-on): Likewise.
18455         * modules/chdir-long (Depends-on): Likewise.
18456         * modules/chown (Depends-on): Likewise.
18457         * modules/close (Depends-on): Likewise.
18458         * modules/connect (Depends-on): Likewise.
18459         * modules/cosl (Depends-on): Likewise.
18460         * modules/dirfd (Depends-on): Likewise.
18461         * modules/dprintf (Depends-on): Likewise.
18462         * modules/dprintf-posix (Depends-on): Likewise.
18463         * modules/error (Depends-on): Likewise.
18464         * modules/euidaccess (Depends-on): Likewise.
18465         * modules/expl (Depends-on): Likewise.
18466         * modules/faccessat (Depends-on): Likewise.
18467         * modules/fchdir (Depends-on): Likewise.
18468         * modules/fclose (Depends-on): Likewise.
18469         * modules/fcntl (Depends-on): Likewise.
18470         * modules/fdopendir (Depends-on): Likewise.
18471         * modules/fflush (Depends-on): Likewise.
18472         * modules/floor (Depends-on): Likewise.
18473         * modules/floorf (Depends-on): Likewise.
18474         * modules/floorl (Depends-on): Likewise.
18475         * modules/fnmatch (Depends-on): Likewise.
18476         * modules/fopen (Depends-on): Likewise.
18477         * modules/fprintf-posix (Depends-on): Likewise.
18478         * modules/frexp (Depends-on): Likewise.
18479         * modules/frexp-nolibm (Depends-on): Likewise.
18480         * modules/frexpl (Depends-on): Likewise.
18481         * modules/frexpl-nolibm (Depends-on): Likewise.
18482         * modules/fseek (Depends-on): Likewise.
18483         * modules/fsusage (Depends-on): Likewise.
18484         * modules/ftell (Depends-on): Likewise.
18485         * modules/ftello (Depends-on): Likewise.
18486         * modules/futimens (Depends-on): Likewise.
18487         * modules/getcwd (Depends-on): Likewise.
18488         * modules/getcwd-lgpl (Depends-on): Likewise.
18489         * modules/getdelim (Depends-on): Likewise.
18490         * modules/getdomainname (Depends-on): Likewise.
18491         * modules/getgroups (Depends-on): Likewise.
18492         * modules/gethostname (Depends-on): Likewise.
18493         * modules/getline (Depends-on): Likewise.
18494         * modules/getlogin_r (Depends-on): Likewise.
18495         * modules/getopt-posix (Depends-on): Likewise.
18496         * modules/getpeername (Depends-on): Likewise.
18497         * modules/getsockname (Depends-on): Likewise.
18498         * modules/getsockopt (Depends-on): Likewise.
18499         * modules/getsubopt (Depends-on): Likewise.
18500         * modules/getusershell (Depends-on): Likewise.
18501         * modules/glob (Depends-on): Likewise.
18502         * modules/grantpt (Depends-on): Likewise.
18503         * modules/iconv_open (Depends-on): Likewise.
18504         * modules/iconv_open-utf (Depends-on): Likewise.
18505         * modules/inet_ntop (Depends-on): Likewise.
18506         * modules/inet_pton (Depends-on): Likewise.
18507         * modules/ioctl (Depends-on): Likewise.
18508         * modules/isapipe (Depends-on): Likewise.
18509         * modules/isfinite (Depends-on): Likewise.
18510         * modules/isinf (Depends-on): Likewise.
18511         * modules/lchown (Depends-on): Likewise.
18512         * modules/ldexpl (Depends-on): Likewise.
18513         * modules/link (Depends-on): Likewise.
18514         * modules/linkat (Depends-on): Likewise.
18515         * modules/listen (Depends-on): Likewise.
18516         * modules/logl (Depends-on): Likewise.
18517         * modules/lstat (Depends-on): Likewise.
18518         * modules/mbrlen (Depends-on): Likewise.
18519         * modules/mbrtowc (Depends-on): Likewise.
18520         * modules/mbsinit (Depends-on): Likewise.
18521         * modules/mbsnrtowcs (Depends-on): Likewise.
18522         * modules/mbsrtowcs (Depends-on): Likewise.
18523         * modules/mbtowc (Depends-on): Likewise.
18524         * modules/memcmp (Depends-on): Likewise.
18525         * modules/mkdir (Depends-on): Likewise.
18526         * modules/mkdtemp (Depends-on): Likewise.
18527         * modules/mkfifo (Depends-on): Likewise.
18528         * modules/mkfifoat (Depends-on): Likewise.
18529         * modules/mknod (Depends-on): Likewise.
18530         * modules/mkostemp (Depends-on): Likewise.
18531         * modules/mkostemps (Depends-on): Likewise.
18532         * modules/mkstemp (Depends-on): Likewise.
18533         * modules/mkstemps (Depends-on): Likewise.
18534         * modules/mktime (Depends-on): Likewise.
18535         * modules/nanosleep (Depends-on): Likewise.
18536         * modules/open (Depends-on): Likewise.
18537         * modules/openat (Depends-on): Likewise.
18538         * modules/perror (Depends-on): Likewise.
18539         * modules/poll (Depends-on): Likewise.
18540         * modules/popen (Depends-on): Likewise.
18541         * modules/posix_spawn (Depends-on): Likewise.
18542         * modules/posix_spawn_file_actions_addclose (Depends-on): Likewise.
18543         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
18544         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
18545         * modules/posix_spawnp (Depends-on): Likewise.
18546         * modules/pread (Depends-on): Likewise.
18547         * modules/printf-posix (Depends-on): Likewise.
18548         * modules/ptsname (Depends-on): Likewise.
18549         * modules/putenv (Depends-on): Likewise.
18550         * modules/pwrite (Depends-on): Likewise.
18551         * modules/readline (Depends-on): Likewise.
18552         * modules/readlink (Depends-on): Likewise.
18553         * modules/readlinkat (Depends-on): Likewise.
18554         * modules/recv (Depends-on): Likewise.
18555         * modules/recvfrom (Depends-on): Likewise.
18556         * modules/regex (Depends-on): Likewise.
18557         * modules/remove (Depends-on): Likewise.
18558         * modules/rename (Depends-on): Likewise.
18559         * modules/renameat (Depends-on): Likewise.
18560         * modules/rmdir (Depends-on): Likewise.
18561         * modules/round (Depends-on): Likewise.
18562         * modules/roundf (Depends-on): Likewise.
18563         * modules/roundl (Depends-on): Likewise.
18564         * modules/rpmatch (Depends-on): Likewise.
18565         * modules/select (Depends-on): Likewise.
18566         * modules/send (Depends-on): Likewise.
18567         * modules/sendto (Depends-on): Likewise.
18568         * modules/setenv (Depends-on): Likewise.
18569         * modules/setlocale (Depends-on): Likewise.
18570         * modules/setsockopt (Depends-on): Likewise.
18571         * modules/shutdown (Depends-on): Likewise.
18572         * modules/sigaction (Depends-on): Likewise.
18573         * modules/signbit (Depends-on): Likewise.
18574         * modules/sigprocmask (Depends-on): Likewise.
18575         * modules/sinl (Depends-on): Likewise.
18576         * modules/sleep (Depends-on): Likewise.
18577         * modules/snprintf (Depends-on): Likewise.
18578         * modules/snprintf-posix (Depends-on): Likewise.
18579         * modules/socket (Depends-on): Likewise.
18580         * modules/sprintf-posix (Depends-on): Likewise.
18581         * modules/sqrtl (Depends-on): Likewise.
18582         * modules/stat (Depends-on): Likewise.
18583         * modules/strchrnul (Depends-on): Likewise.
18584         * modules/strdup-posix (Depends-on): Likewise.
18585         * modules/strerror (Depends-on): Likewise.
18586         * modules/strerror_r-posix (Depends-on): Likewise.
18587         * modules/strndup (Depends-on): Likewise.
18588         * modules/strnlen (Depends-on): Likewise.
18589         * modules/strptime (Depends-on): Likewise.
18590         * modules/strsep (Depends-on): Likewise.
18591         * modules/strsignal (Depends-on): Likewise.
18592         * modules/strstr-simple (Depends-on): Likewise.
18593         * modules/strtod (Depends-on): Likewise.
18594         * modules/strtoimax (Depends-on): Likewise.
18595         * modules/strtok_r (Depends-on): Likewise.
18596         * modules/strtoumax (Depends-on): Likewise.
18597         * modules/symlink (Depends-on): Likewise.
18598         * modules/symlinkat (Depends-on): Likewise.
18599         * modules/tanl (Depends-on): Likewise.
18600         * modules/tcgetsid (Depends-on): Likewise.
18601         * modules/tmpfile (Depends-on): Likewise.
18602         * modules/trunc (Depends-on): Likewise.
18603         * modules/truncf (Depends-on): Likewise.
18604         * modules/truncl (Depends-on): Likewise.
18605         * modules/uname (Depends-on): Likewise.
18606         * modules/unlink (Depends-on): Likewise.
18607         * modules/unlockpt (Depends-on): Likewise.
18608         * modules/unsetenv (Depends-on): Likewise.
18609         * modules/usleep (Depends-on): Likewise.
18610         * modules/utimensat (Depends-on): Likewise.
18611         * modules/vasprintf (Depends-on): Likewise.
18612         * modules/vdprintf (Depends-on): Likewise.
18613         * modules/vdprintf-posix (Depends-on): Likewise.
18614         * modules/vfprintf-posix (Depends-on): Likewise.
18615         * modules/vprintf-posix (Depends-on): Likewise.
18616         * modules/vsnprintf (Depends-on): Likewise.
18617         * modules/vsnprintf-posix (Depends-on): Likewise.
18618         * modules/vsprintf-posix (Depends-on): Likewise.
18619         * modules/wcrtomb (Depends-on): Likewise.
18620         * modules/wcscasecmp (Depends-on): Likewise.
18621         * modules/wcscspn (Depends-on): Likewise.
18622         * modules/wcsdup (Depends-on): Likewise.
18623         * modules/wcsncasecmp (Depends-on): Likewise.
18624         * modules/wcsnrtombs (Depends-on): Likewise.
18625         * modules/wcspbrk (Depends-on): Likewise.
18626         * modules/wcsrtombs (Depends-on): Likewise.
18627         * modules/wcsspn (Depends-on): Likewise.
18628         * modules/wcsstr (Depends-on): Likewise.
18629         * modules/wcstok (Depends-on): Likewise.
18630         * modules/wcswidth (Depends-on): Likewise.
18631         * modules/wctob (Depends-on): Likewise.
18632         * modules/wctomb (Depends-on): Likewise.
18633         * modules/wctype (Depends-on): Likewise.
18634         * modules/wcwidth (Depends-on): Likewise.
18635         * modules/write (Depends-on): Likewise.
18636
18637 2011-05-03  Bruno Haible  <bruno@clisp.org>
18638
18639         Support for conditional dependencies.
18640         * doc/gnulib.texi (Module description): Document the syntax of
18641         conditional dependencies.
18642         * gnulib-tool: New option --conditional-dependencies.
18643         (func_usage): Document it.
18644         (cond_dependencies): New variable.
18645         (func_get_automake_snippet_conditional,
18646         func_get_automake_snippet_unconditional): New functions, extracted from
18647         func_get_automake_snippet.
18648         (func_get_automake_snippet): Use them.
18649         (sed_first_32_chars): New variable.
18650         (func_module_shellfunc_name): New function.
18651         (func_module_shellvar_name): New function.
18652         (func_module_conditional_name): New function.
18653         (func_uncond_add_module, func_conddep_add_module, func_cond_module_p,
18654         func_cond_module_condition): New functions.
18655         (func_modules_transitive_closure): Add support for conditional
18656         dependencies.
18657         (func_emit_lib_Makefile_am): For a conditional module, enclose the
18658         conditional automake snippet in an automake conditional.
18659         (func_emit_autoconf_snippets): Emit shell functions that contain the
18660         code for conditional modules.
18661         (func_import, func_create_testdir): Update specification.
18662
18663 2011-05-03  Eric Blake  <eblake@redhat.com>
18664
18665         test-getaddrinfo: report error information
18666         * tests/test-getaddrinfo.c (simple): Use err outside of dbprintf.
18667
18668 2011-05-03  Jim Meyering  <meyering@redhat.com>
18669
18670         bootstrap: avoid build failure when $GZIP is set
18671         * build-aux/bootstrap (check_versions): Do not treat $GZIP as a
18672         program name.  If defined at all, it is supposed to list gzip options.
18673         Reported by Alan Curry in http://debbugs.gnu.org/8609
18674
18675 2011-05-03  Reuben Thomas  <rrt@sc3d.org>
18676
18677         readme-release: new module with release instructions
18678         * modules/readme-release: New module.
18679         * top/README-release: New file, from coreutils, grep, diffutils.
18680         * MODULES.html.sh (Support for maintaining and releasing): Add it.
18681
18682 2011-05-02  Eric Blake  <eblake@redhat.com>
18683
18684         fflush: also replace fclose when fixing fflush
18685         * modules/fflush (Depends-on): Add fclose.
18686         * m4/fflush.m4 (gl_FUNC_FFLUSH): Also replace fclose.
18687         * lib/fclose.c (rpl_fclose): Don't cause spurious failures on
18688         memstreams with no backing fd.
18689         * doc/posix-functions/fclose.texi (fclose): Document the use of
18690         fflush module to fix the bug.
18691         * tests/test-fclose.c (main): Relax test when fclose is used in
18692         isolation.
18693
18694         fclose: add some tests
18695         * modules/fclose-tests: New test module.
18696         * tests/test-fclose.c: New file.
18697         * doc/posix-functions/fclose.texi (fclose): Document the bug.
18698
18699         fclose: reduced dependencies
18700         * modules/fclose (Depends-on): Switch from fflush/fseeko to
18701         simpler lseek.
18702         * lib/fclose.c (rpl_fclose): Likewise.
18703         Reported by Simon Josefsson.
18704
18705         exit: drop remaining clients
18706         * modules/argmatch (Depends-on): Replace exit with stdlib.
18707         * modules/copy-file (Depends-on): Likewise.
18708         * modules/execute (Depends-on): Likewise.
18709         * modules/exitfail (Depends-on): Likewise.
18710         * modules/obstack (Depends-on): Likewise.
18711         * modules/pagealign_alloc (Depends-on): Likewise.
18712         * modules/pipe-filter-gi (Depends-on): Likewise.
18713         * modules/pipe-filter-ii (Depends-on): Likewise.
18714         * modules/savewd (Depends-on): Likewise.
18715         * modules/spawn-pipe (Depends-on): Likewise.
18716         * modules/wait-process (Depends-on): Likewise.
18717         * modules/xsetenv (Depends-on): Likewise.
18718         * modules/chdir-long (Depends-on): Add stdlib, for EXIT_FAILURE.
18719         * modules/git-merge-changelog (Depends-on): Likewise.
18720         * modules/long-options (Depends-on): Likewise.
18721         * modules/pt_chown (Depends-on): Likewise.
18722         * modules/sysexits (Depends-on): Likewise.
18723
18724         freading: relax license from LGPLv3+ to LGPLv2+
18725         * modules/freading (License): Relax LGPL version.
18726
18727 2011-05-02  Bruno Haible  <bruno@clisp.org>
18728
18729         fchdir: Remove unused dependencies.
18730         * modules/fchdir (Depends-on): Remove include_next.
18731
18732 2011-05-02  Bruno Haible  <bruno@clisp.org>
18733
18734         gnulib-tool: Refactor.
18735         * gnulib-tool (func_emit_autoconf_snippet): New function, extracted
18736         from func_emit_autoconf_snippets.
18737         (func_emit_autoconf_snippets): Use it.
18738
18739 2011-05-02  Simon Josefsson  <simon@josefsson.org>
18740
18741         * NEWS: Document removal of 'exit'.
18742         * modules/exit: Remove file.
18743
18744 2011-05-01  Bruno Haible  <bruno@clisp.org>
18745
18746         Update DEPENDENCIES.
18747         * DEPENDENCIES (gettext): Recommend the newest release.
18748         Reported by Simon Josefsson.
18749
18750 2011-05-01  Bruno Haible  <bruno@clisp.org>
18751
18752         gnulib-tool: Reduce code duplication.
18753         * gnulib-tool (func_emit_autoconf_snippets): New function.
18754         (func_import, func_create_testdir): Use it.
18755
18756 2011-04-30  Eric Blake  <eblake@redhat.com>
18757
18758         fclose: don't fail on non-seekable input stream
18759         * modules/fclose (Depends-on): Add freading, fflush, fseeko.
18760         * lib/fclose.c (rpl_fclose): Skip fflush for non-seekable input,
18761         since fflush is allowed to fail in that case.
18762
18763 2011-04-30  Bruno Haible  <bruno@clisp.org>
18764
18765         dup3: cleanup
18766         * lib/dup3.c: Remove old code, leftover from 2009-12-16.
18767
18768 2011-04-30  Bruno Haible  <bruno@clisp.org>
18769
18770         netdb: Make it work in C++ mode.
18771         * lib/netdb.in.h (struct addrinfo): In C++, define as a C struct.
18772         (getaddrinfo, freeaddrinfo, getnameinfo): Use macros from c++defs
18773         module.
18774         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Invoke
18775         gl_MODULE_INDICATOR_FOR_TESTS.
18776         * modules/netdb-tests (Depends-on): Add netdb-c++-tests.
18777         * modules/netdb-c++-tests: New file.
18778         * tests/test-netdb-c++.cc: New file.
18779
18780 2011-04-30  Bruno Haible  <bruno@clisp.org>
18781
18782         New modules 'vfscanf', 'vscanf'.
18783         * modules/vfscanf: New file.
18784         * modules/vscanf: New file.
18785         * m4/stdio_h.m4 (gl_STDIO_H): Don't set GNULIB_VFSCANF, GNULIB_VSCANF
18786         here.
18787         * doc/posix-functions/vfscanf.texi: Mention module 'vfscanf'.
18788         * doc/posix-functions/vscanf.texi: Mention module 'vscanf'.
18789
18790 2011-04-30  Bruno Haible  <bruno@clisp.org>
18791
18792         passfd: Add comments.
18793         * lib/passfd.c: Add comments about platforms.
18794
18795 2011-04-30  Bruno Haible  <bruno@clisp.org>
18796
18797         sys_uio: Make <sys/uio.h> self-contained.
18798         * lib/sys_uio.in.h: Include <sys/types.h> before <sys/uio.h>.
18799         * doc/posix-headers/sys_uio.texi: Mention the OpenBSD problem.
18800
18801 2011-04-30  Bruno Haible  <bruno@clisp.org>
18802
18803         sys_socket: Ensure 'struct iovec' definition.
18804         * lib/sys_socket.in.h: Include <sys/uio.h> also on platforms that have
18805         <sys/socket.h>.
18806         * doc/posix-headers/sys_socket.texi: Mention the OpenBSD problem.
18807
18808 2011-04-30  Bruno Haible  <bruno@clisp.org>
18809
18810         sys_uio: Protect definition of 'struct iovec'.
18811         * lib/sys_uio.in.h (struct iovec): Avoid redefinition. In C++, define
18812         it as a C struct.
18813
18814 2011-04-30  Bruno Haible  <bruno@clisp.org>
18815
18816         manywarnings: fix indentation
18817         * m4/manywarnings.m4: Indent by 2 spaces consistently.
18818
18819 2011-04-30  Pádraig Brady <P@draigBrady.com>
18820
18821         manywarnings: add -Wno-missing-field-initializers if needed.
18822         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add the above
18823         option if it's needed to allow initialization with { 0, }
18824
18825 2011-04-29  Reuben Thomas  <rrt@sc3d.org>
18826
18827         announce-gen: cosmetic improvement
18828         * build-aux/announce-gen: Strip any leading ./ from the NEWS file name.
18829
18830 2011-04-29  Jim Meyering  <meyering@redhat.com>
18831
18832         vc-list-files: indent with spaces, not TABs
18833         * build-aux/vc-list-files: Convert leading TABs to spaces,
18834         to match the style of most other files in gnulib.
18835
18836         announce-gen: indent with spaces, not TABs
18837         * build-aux/announce-gen: Convert all TABs to spaces, to match
18838         the style of most other files in gnulib.
18839
18840 2011-04-29  Eric Blake  <eblake@redhat.com>
18841
18842         quotearg: avoid uninitialized variable use
18843         * lib/quotearg.c (quoting_options_from_style): Initialize
18844         remaining fields, and ensure that custom styles are only used via
18845         quoting_options rather than quoting_style.
18846
18847 2011-04-29  Jim Meyering  <meyering@redhat.com>
18848
18849         maint.mk: remove unused VC-tag variable
18850         * top/maint.mk (VC-tag): Remove unused variable.
18851
18852 2011-04-29  Bruno Haible  <bruno@clisp.org>
18853
18854         netdb: fix gai_strerror replacements
18855         * lib/netdb.in.h: Add _GL_FUNCDECL_RPL definitions.
18856         * modules/netdb: Substitute it.
18857
18858 2011-04-29  Jim Meyering  <meyering@redhat.com>
18859
18860         test-getcwd.c: avoid new set-but-not-used warning
18861         * tests/test-getcwd.c (test_abort_bug): Exit nonzero for any problem,
18862         not just the glibc/abort one that getcwd-abort-bug.m4 detects.
18863         * m4/getcwd-abort-bug.m4: Update this now-duplicated code to match,
18864         and adjust the code that sets gl_cv_func_getcwd_abort_bug accordingly.
18865
18866         test-hash.c: avoid a new shadowing warning
18867         * tests/test-hash.c (main): Don't shadow "dup".
18868
18869 2011-04-28  Eric Blake  <eblake@redhat.com>
18870
18871         getaddrinfo: fix gai_strerror signature
18872         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Detect broken signatures,
18873         and work around mingw with UNICODE defined.
18874         (gl_PREREQ_GETADDRINFO): Drop redundant decl check.
18875         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Add witness.
18876         * modules/netdb (Makefile.am): Substitute it.
18877         * lib/netdb.in.h (gai_strerror): Declare replacement.
18878         * lib/gai_strerror.c (rpl_gai_strerror): Fix signature.
18879         * doc/posix-functions/gai_strerror.texi (gai_strerror): Document
18880         the fix.
18881
18882         getsockopt: avoid compiler warning
18883         * lib/getsockopt.c (rpl_getsockopt): Add a cast for mingw.
18884         Reported by Matthias Bolte.
18885
18886         tests: drop unused link dependency
18887         * modules/areadlinkat-tests (Makefile.am): Drop stale LDADD.
18888         * modules/dirent-safer-tests (Makefile.am): Likewise.
18889         * modules/fdopendir-tests (Makefile.am): Likewise.
18890         * modules/mkfifoat-tests (Makefile.am): Likewise.
18891         * modules/openat-safer-tests (Makefile.am): Likewise.
18892         * modules/openat-tests (Makefile.am): Likewise.
18893         * modules/readlinkat-tests (Makefile.am): Likewise.
18894         * modules/symlinkat-tests (Makefile.am): Likewise.
18895         * modules/linkat-tests (Makefile.am): Likewise.
18896         (Depends-on): Switch to filenamecat-lgpl.
18897         * modules/fdutimensat-tests (test_fdutimensat_LDADD): Drop unused
18898         LIBINTL.
18899         * modules/utimensat-tests (test_utimensat_LDADD): Likewise.
18900         * tests/test-linkat.c (main): Don't require xalloc.
18901
18902         hash, mgetgroups: drop xalloc dependency
18903         * lib/hash.c (includes): Adjust includes.
18904         * lib/mgetgroups.c (includes): Likewise.
18905         (xgetgroups): Move...
18906         * lib/xgetgroups.c: ...to new file.
18907         * lib/mgetgroups.h (xgetgroups): Make declaration conditional.
18908         * modules/xgetgroups: New file, split from...
18909         * modules/mgetgroups: ...here.
18910         (Depends-on): Add xalloc-oversized.
18911         * modules/hash (Depends-on): Likewise.
18912         * modules/hash-tests (Depends-on): Drop xalloc.
18913         (test_hash_LDADD): Drop unused library.
18914         * tests/test-hash.c (main): Break xalloc dependency.
18915         (includes): Drop unused include.
18916
18917         xalloc-oversized: new module
18918         * modules/xalloc-oversized: New module.
18919         * modules/xalloc (Depends-on): Add it.
18920         * lib/xalloc.h (xalloc_oversized): Move...
18921         * lib/xalloc-oversized.h: ...into new file.
18922
18923         utimecmp: drop dependency on xmalloc
18924         * lib/utimecmp.c (utimecmp): Work even if hash table cache fails
18925         due to memory pressure.
18926         * modules/utimecmp (Depends-on): Drop xalloc.
18927
18928 2011-04-27  Eric Blake  <eblake@redhat.com>
18929
18930         getcwd: fix mingw bugs
18931         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Detect one mingw bug.
18932         * doc/posix-functions/getcwd.texi (getcwd): Document the problems.
18933         * lib/getcwd-lgpl.c (rpl_getcwd): Fix return type.
18934
18935 2011-04-27  Bruno Haible  <bruno@clisp.org>
18936
18937         mkstemps: Ensure declaration on MacOS X 10.5.
18938         * lib/stdlib.in.h: Include <unistd.h> when mkstemps is requested.
18939         * doc/glibc-functions/mkstemps.texi: Document header file problem on
18940         MacOS X.
18941
18942 2011-04-27  Bruno Haible  <bruno@clisp.org>
18943
18944         mkstemp: More documentation.
18945         * doc/posix-functions/mkstemp.texi: Document header file problem on
18946         MacOS X.
18947
18948 2011-04-27  Bruno Haible  <bruno@clisp.org>
18949
18950         mkstemp: Tweak configure message when cross-compiling.
18951         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): When cross-compiling, qualify the
18952         result as a guess.
18953
18954 2011-04-27  Bruno Haible  <bruno@clisp.org>
18955
18956         clean-temp: Clarify what it does.
18957         * lib/clean-temp.h: Add more comments.
18958         * doc/posix-functions/mkstemp.texi: Tweak reference to 'clean-temp'
18959         module.
18960         * doc/glibc-functions/mkostemp.texi: Mention 'clean-temp' here too.
18961         * doc/glibc-functions/mkstemps.texi: Likewise.
18962         * doc/glibc-functions/mkostemps.texi: Likewise.
18963
18964 2011-04-27  Eric Blake  <eblake@redhat.com>
18965
18966         fchdir: avoid extra chdir and fix test
18967         * modules/fchdir (Depends-on): Add dosname, filenamecat-lgpl,
18968         getcwd-lgpl.
18969         * lib/fchdir.c (get_name): Any absolute name will do; it does not
18970         have to be canonical.
18971         (canonicalize_file_name): Drop unused macro.
18972         * m4/dup2.m4 (gl_REPLACE_DUP2): Ensure dup2 is replaced.
18973
18974         filenamecat-lgpl: fix licence
18975         * modules/filenamecat-lgpl (License): Mark as LGPLv2+, as intended
18976         when it was first created.
18977
18978         linkat, renameat: add missing dependency
18979         * modules/linkat (Depends-on): Require getcwd-lgpl.
18980         * modules/renameat (Depends-on): Likewise.
18981
18982         tests: reduce dependencies
18983         * tests/test-linkat.c (main): Use lighter-weight getcwd.
18984         * tests/test-renameat.c (main): Likewise.
18985         * modules/linkat-tests (Depends-on): Relax dependency.
18986         * modules/renameat-tests (Depends-on): Likewise.
18987         * modules/fchdir-tests (Depends-on): Likewise.  Also make cloexec
18988         dependency explicit.
18989
18990         save-cwd: reduce default dependency
18991         * modules/save-cwd (Depends-on): Use getcwd-lgpl.
18992         * lib/save-cwd.c: Update comments.
18993         * NEWS: Document the semantic change.
18994
18995         getcwd: enhance tests
18996         * tests/test-getcwd-lgpl.c: New file, taken from...
18997         * tests/test-getcwd.c: ...old contents.  Rewrite this file to
18998         repeat long path stress tests from m4 probe.
18999         * modules/getcwd-lgpl-tests: New module.
19000         * modules/getcwd-tests (Depends-on): Depend on lgpl tests.
19001         * m4/getcwd-abort-bug.m4: Update comment.
19002         * m4/getcwd-path-max.m4: Likewise.
19003
19004         getcwd-lgpl: new module
19005         * modules/getcwd-lgpl: New module.
19006         * lib/getcwd-lgpl.c: New file.
19007         * doc/posix-functions/getcwd.texi (getcwd): Document it.
19008         * MODULES.html.sh (lacking POSIX:2008): Likewise.
19009         * modules/getcwd (configure.ac): Set C witness.
19010         * m4/getcwd.m4 (gl_FUNC_GETCWD_LGPL): New macro.
19011
19012         getcwd: tweak comments
19013         * m4/getcwd-abort-bug.m4: Fix comments.
19014         * m4/getcwd-path-max.m4: Likewise.
19015         * m4/getcwd.m4: Likewise.
19016
19017 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
19018         and Eric Blake  <eblake@redhat.com>
19019
19020         mkstemp: replace if system version uses wrong permissions
19021         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Add test for non-owner
19022         read/write mode bits set in file created by mkstemp.
19023         * doc/posix-functions/mkstemp.texi (mkstemp): Document the fix.
19024
19025 2011-04-27  Eric Blake  <eblake@redhat.com>
19026
19027         passfd: avoid compiler warning
19028         * lib/passfd.c (sendfd, recvfd): Avoid shadowing names.
19029         Reported by Laine Stump.
19030
19031 2011-04-27  J.T. Conklin  <jtc@acorntoolworks.com>  (tiny change)
19032
19033         * gnulib-tool: change "join -a 2" to "join -a2", the latter is
19034         required by the NetBSD (and perhaps other 4.4BSD derived) join.
19035
19036 2011-04-27  Reuben Thomas  <rrt@sc3d.org>
19037         and Eric Blake  <eblake@redhat.com>
19038
19039         mkstemp: mention clean-temp module
19040         * lib/mkstemp.c: Add comment.
19041         * doc/posix-functions/mkstemp.texi (mkstemp): Likewise.
19042
19043 2011-04-26  Paul Eggert  <eggert@cs.ucla.edu>
19044
19045         inttypes: also provide default values for 32-bit tests
19046         * m4/inttypes.m4 (gl_INTTYPES_H_DEFAULTS): Also provide default values
19047         for INT32_MAX_LT_INTMAX_MAX and for UINT32_MAX_LT_UINTMAX_MAX.
19048
19049 2011-04-25  Paul Eggert  <eggert@cs.ucla.edu>
19050
19051         strtoumax: remove dependency on strtoimax
19052         This is like the strtoull change of yesterday.
19053         * modules/strtoumax (Files): Add lib/strtoimax.c.
19054         (Depends-on): Remove strtoimax and add verify.
19055
19056         inttypes-incomplete: new module
19057         * m4/inttypes.m4 (gl_INTTYPES_INCOMPLETE): New macro, containing
19058         all but the PRI* and SCN* parts of gl_INTTYPES_H.
19059         (gl_INTTYPES_PRI_SCN): New macro, containing the PRI* and SCN* parts
19060         of gl_INTTYPES_H.
19061         (gl_INTTYPES_H): Rewrite in terms of these new macros.
19062         (gl_INTTYPES_H_DEFAULTS): Provide defaults for the PRI* and SCN*
19063         parts, in case gl_INTTYPE_PRI_SCN is not invoked.
19064         * modules/imaxabs, modules/imaxdiv, modules/strtoimax (Depends-on):
19065         * modules/strtoumax, modules/xstrtol (Depends-on):
19066         Depend on inttypes-incomplete, not inttypes.
19067         * modules/inttypes-incomplete: New module, containing the contents
19068         of the old modules/inttypes module, except that the Files: section
19069         omits m4/inttypes-pri.m4, and the configure.ac section invokes
19070         gl_INTTYPES_INCOMPLETE rather than gl_INTTYPES_H.
19071         * modules/inttypes (Files): Remove lib/inttypes.in.h, m4/inttypes.m4.
19072         (Depends-on): Depend only on inttypes-incomplete.
19073         (Makefile.am): Remove everything; this is now in inttypes-incomplete.
19074
19075         inttypes: omit now-redundant strtoimax and strtoumax work
19076         * m4/inttypes.m4 (gl_INTTYPES_H): Do not check for strtoimax and
19077         strtoumax decls; gl_FUNC_STRTOIMAX and gl_FUNC_STRTOUMAX now do this.
19078
19079         strtoimax, strtoumax: simplify, port to HP-UX 11.00 64-bit
19080         This supports apps that need pointers to strtoimax and strtoumax,
19081         and ports to HP-UX 11.00 64.bit, which has macros that expand to
19082         nonexistent functions.  See
19083         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00241.html>
19084         et seq.
19085         * lib/inttypes.in.h (strtoimax, strtoumax): #undef before declaring.
19086         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Don't check whether it's
19087         a macro.
19088         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
19089
19090 2011-04-25  Simon Josefsson  <simon@josefsson.org>
19091
19092         * modules/gnumakefile (configure.ac): Replace TAB with SPCs.
19093
19094 2011-04-25  Bruno Haible  <bruno@clisp.org>
19095
19096         strtol, strtoul: Mark modules as obsolete.
19097         * modules/strtol (Status, Notice): New sections.
19098         * modules/strtoul (Status, Notice): New sections.
19099
19100 2011-04-25  Bruno Haible  <bruno@clisp.org>
19101
19102         strtod: Remove check for strtod, unless supporting old platforms.
19103         * modules/strtod-obsolete: New file.
19104         * m4/strtod-obsolete.m4: New file.
19105         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't check whether strtod is declared
19106         if gl_FUNC_STRTOD_OBSOLETE is not also defined.
19107         * modules/strtod (Depends-on): Add strtod-obsolete.
19108         * doc/posix-functions/strtod.texi: Mention module strtod-obsolete.
19109
19110 2011-04-25  Bruno Haible  <bruno@clisp.org>
19111
19112         strcase: Make module obsolete.
19113         * modules/strcase (Status, Notice): New sections.
19114
19115 2011-04-25  Bruno Haible  <bruno@clisp.org>
19116
19117         dup2: Remove check for dup2, unless supporting old obsolete platforms.
19118         * modules/dup2-obsolete: New file.
19119         * m4/dup2-obsolete.m4: New file.
19120         * m4/dup2.m4 (gl_FUNC_DUP2): Don't check whether dup2 exists if
19121         gl_FUNC_DUP2_OBSOLETE is not also defined.
19122         * modules/dup2 (Depends-on): Add dup2-obsolete.
19123         * doc/posix-functions/dup2.texi: Mention module dup2-obsolete.
19124
19125 2011-04-25  Bruno Haible  <bruno@clisp.org>
19126
19127         strnlen: Avoid memchr related link error on old obsolete platforms.
19128         * modules/memchr-obsolete: New file.
19129         * m4/memchr-obsolete.m4: New file.
19130         * m4/memchr.m4 (gl_FUNC_MEMCHR): Don't check whether memchr exists if
19131         gl_FUNC_MEMCHR_OBSOLETE is not also defined.
19132         * modules/memchr (Depends-on): Add memchr-obsolete.
19133         * modules/strnlen (Depends-on): Likewise.
19134         * doc/posix-functions/memchr.texi: Mention module memchr-obsolete.
19135
19136 2011-04-25  Jim Meyering  <meyering@redhat.com>
19137
19138         maint.mk: makefile_at_at_check extend and clean up
19139         * top/maint.mk (sc_makefile_at_at_check): Check *.mk files
19140         in addition to */Makefile.am.
19141         Exempt legitimate uses of @VAR@ notation, e.g.,
19142         MAKEINFO = env LANG= LC_MESSAGES= LC_ALL= LANGUAGE= @MAKEINFO@
19143         Remove obsolete coreutils-specific comment.
19144         Prompted by discussion here:
19145         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/26074
19146
19147 2011-04-24  Paul Eggert  <eggert@cs.ucla.edu>
19148
19149         strtoul: remove dependency on strtol
19150         This is so that 'configure' need not check for strtol merely because
19151         the application needs strtoul.
19152         * modules/strtoul (Files): Add lib/strtol.c.
19153         (Depends-on): Remove strtol.
19154
19155         strtoull: remove dependency on strtoul
19156         This is like the strtoll change.
19157         * modules/strtoull (Files): Add lib/strtol.c, lib/strtoul.c.
19158         (Depends-on): Remove strtoul.
19159
19160         strtoll: remove dependency on strtol
19161         This is so that 'configure' need not check for strtol merely because
19162         the application needs strtoll.
19163         * modules/strtoll (Files): Add lib/strtol.c.
19164         (Depends-on): Remove strtol.
19165
19166 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19167
19168         inttypes: Move some configure check to module 'imaxdiv'.
19169         * m4/imaxdiv.m4 (gl_FUNC_IMAXDIV): Require gl_INTTYPES_H_DEFAULTS
19170         instead of gl_INTTYPES_H.  Check for imaxdiv decl here.
19171         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxdiv decl here.
19172
19173 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19174
19175         inttypes: Move some configure check to module 'imaxabs'.
19176         * m4/imaxabs.m4 (gl_FUNC_IMAXABS): Require gl_INTTYPES_H_DEFAULTS
19177         instead of gl_INTTYPES_H.  Check for imaxabs decl here.
19178         * m4/inttypes.m4 (gl_INTTYPES_H): Don't check for imaxabs decl here.
19179
19180 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19181
19182         inttypes: Remove configure tests that are not needed since 2009-12-31.
19183         * m4/inttypes.m4 (gl_INTTYPES_H): Remove determination of
19184         gl_cv_header_working_inttypes_h.
19185
19186 2011-04-22  Paul Eggert  <eggert@cs.ucla.edu>
19187
19188         * modules/strnlen (Depends-on): Remove memchr.
19189         The strnlen implementation doesn't need the memchr module's fixes; see
19190         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00237.html>.
19191
19192         strtol: remove dependency on wchar
19193         * lib/strtol.c: Include <wchar.h> only if USE_WIDE_CHAR is defined.
19194         * modules/strtol (Depends-on): Remove wchar.
19195
19196 2011-04-21  Eric Blake  <eblake@redhat.com>
19197
19198         passfd: fix test regression on Linux
19199         * modules/passfd-tests (configure.ac): Correct socketpair check.
19200
19201         passfd: speed up configure and drop unused code
19202         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Rename...
19203         * m4/passfd.m4 (gl_PASSFD): ...to something more fitting of
19204         its use.  Drop test for setting unused HAVE_UNIXSOCKET_SCM_RIGHTS.
19205         Instead of probing at configure for unix_scm_rights_bsd44_way,
19206         instead probe for CMSG_FIRSTHDR at compile time.  Simplify BSD 4.3
19207         check to a struct member probe.
19208         * lib/passfd.c (includes): Nothing here requires <sys/un.h>.
19209         (sendfd, recvfd): Update preprocessor checks.
19210         * modules/passfd (Files): Reflect rename, and drop unused file.
19211         (Depends-on): Drop unused dependency.
19212
19213         passfd: allow compilation on mingw
19214         * modules/sys_socket (Depends-on): Add sys_uio.
19215         * lib/sys_socket.in.h [!@HAVE_SYS_SOCKET_H@]: Use it for struct
19216         iovec and a minimal struct msghdr.
19217         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Detect recvmsg/sendmsg.
19218         * tests/test-sys_socket.c (main): Enhance test.
19219         * lib/passfd.c (include): Drop <sys/uio.h>; <sys/sockets.h> is
19220         guaranteed to provide what we need.
19221         (sendmsg, recvmsg): Declare fallbacks if we lack sendmsg.
19222         * modules/passfd-tests (Depends-on): Add sys_wait.
19223         * tests/test-passfd.c (main): Skip test on mingw, for now.
19224         * doc/posix-headers/sys_socket.texi (sys/socket.h): Document the
19225         partial 'struct msghdr' implementation.
19226
19227         sys_uio: new module
19228         * modules/sys_uio: New module.
19229         * modules/sys_uio-tests: Likewise.
19230         * lib/sys_uio.in.h: New file.
19231         * m4/sys_uio_h.m4: Likewise.
19232         * tests/test-sys_uio.c: Likewise.
19233         * doc/posix-headers/sys_uio.texi (sys/uio.h): Document it.
19234         * MODULES.html.sh (systems lacking POSIX:2008): Likewise.
19235
19236 2011-04-20  Jim Meyering  <meyering@redhat.com>
19237
19238         useless-if-before-free: avoid false-positive
19239         * build-aux/useless-if-before-free: Adjust regexp for the non-brace
19240         disjunct so that it too requires a terminating ";".  Without that,
19241         this script would identify as useless one statement from gcc that
19242         was not:
19243           if (aligned_ptr)
19244             free (((void **) aligned_ptr) [-1]);
19245
19246 2011-04-20  Giuseppe Scrivano  <gscrivano@gnu.org>
19247
19248         doc: update users.txt.
19249         * users.txt: Add barcode.
19250
19251 2011-04-19  Bruno Haible  <bruno@clisp.org>
19252
19253         ioctl: Remove link dependency on native Windows.
19254         * lib/fd-hook.h: Renamed from lib/close-hook.h.
19255         (gl_close_fn, gl_ioctl_fn): New types.
19256         (struct fd_hook): Renamed from struct close_hook. Change type of
19257         private_close_fn field. Add private_ioctl_fn field.
19258         (close_hook_fn): Add parameter for primary close method.
19259         (execute_close_hooks, execute_all_close_hooks): Likewise.
19260         (ioctl_hook_fn): New type.
19261         (execute_ioctl_hooks, execute_all_ioctl_hooks): New declarations.
19262         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19263         argument.
19264         (unregister_fd_hook): Renamed from unregister_close_hook.
19265         * lib/fd-hook.c: Renamed from lib/close-hook.c.
19266         Don't include <unistd.h>.
19267         (close): Remove undef.
19268         (anchor): Update.
19269         (execute_close_hooks): Add argument for primary close method.
19270         (execute_all_close_hooks): Likewise.
19271         (execute_ioctl_hooks, execute_all_ioctl_hooks): New functions.
19272         (register_fd_hook): Renamed from register_close_hook. Add ioctl_hook
19273         argument. Allow each argument to be NULL.
19274         (unregister_fd_hook): Renamed from unregister_close_hook.
19275         * lib/close.c (rpl_close): Pass 'close' function pointer to
19276         execute_all_close_hooks.
19277         * lib/ioctl.c: Include <errno.h>, fd-hook.h.
19278         (primary_ioctl): New function.
19279         (ioctl): Don't call ioctlsocket here. Instead, call
19280         execute_all_ioctl_hooks.
19281         * lib/sockets.c (close_fd_maybe_socket): Add argument for primary
19282         close method.
19283         (ioctl_fd_maybe_socket): New function, with code from lib/ioctl.c.
19284         (fd_sockets_hook): Renamed from close_sockets_hook.
19285         (gl_sockets_startup, gl_sockets_cleanup): Update.
19286         * modules/fd-hook: Renamed from modules/close-hook. Update.
19287         * modules/close (Depends-on): Add fd-hook, remove close-hook.
19288         * modules/sockets (Depends-on): Likewise.
19289         * modules/ioctl (Depends-on): Add fd-hook.
19290         * tests/test-nonblocking.c (main): Use GNULIB_TEST_SOCKET, not
19291         GNULIB_SOCKET.
19292
19293 2011-04-19  Bruno Haible  <bruno@clisp.org>
19294
19295         Move the support of O_NONBLOCK in open() to the 'open' module.
19296         * modules/nonblocking (Depends-on): Remove 'open'.
19297         * m4/nonblocking.m4 (gl_NONBLOCKING_IO_BODY): Set
19298         gl_cv_have_open_O_NONBLOCK.
19299         * m4/open.m4 (gl_FUNC_OPEN): Replace open() also when required for
19300         O_NONBLOCK support.
19301         * doc/posix-functions/open.texi: Document support for O_NONBLOCK.
19302
19303 2011-04-17  Bruno Haible  <bruno@clisp.org>
19304
19305         pipe2: Simplify code.
19306         * lib/pipe2.c (pipe2): Reduce code duplication.
19307
19308 2011-04-17  Bruno Haible  <bruno@clisp.org>
19309
19310         nonblocking: Add comment.
19311         * lib/fcntl.in.h (O_NONBLOCK): Add comment.
19312
19313 2011-04-17  Bruno Haible  <bruno@clisp.org>
19314
19315         nonblocking: Add tests for sockets.
19316         * tests/test-nonblocking-socket.sh: New file.
19317         * tests/test-nonblocking-socket-main.c: New file.
19318         * tests/test-nonblocking-socket-child.c: New file.
19319         * tests/test-nonblocking-socket.h: New file.
19320         * tests/socket-server.h: New file.
19321         * tests/socket-client.h: New file.
19322         * modules/nonblocking-socket-tests: New file.
19323         * modules/nonblocking-tests (Depends-on): Add nonblocking-socket-tests.
19324
19325 2011-04-17  Bruno Haible  <bruno@clisp.org>
19326
19327         nonblocking: Add tests for pipes.
19328         * tests/test-nonblocking-pipe.sh: New file.
19329         * tests/test-nonblocking-pipe-main.c: New file.
19330         * tests/test-nonblocking-pipe-child.c: New file.
19331         * tests/test-nonblocking-pipe.h: New file.
19332         * tests/test-nonblocking-writer.h: New file.
19333         * tests/test-nonblocking-reader.h: New file.
19334         * tests/test-nonblocking-misc.h: New file.
19335         * modules/nonblocking-pipe-tests: New file.
19336         * modules/nonblocking-tests (Depends-on): Add nonblocking-pipe-tests.
19337
19338 2011-04-16  Bruno Haible  <bruno@clisp.org>
19339
19340         gettext: Clarify the needed programmer actions.
19341         * modules/gettext (Notice): New field.
19342         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
19343
19344 2011-04-16  Bruno Haible  <bruno@clisp.org>
19345
19346         strchrnul: Tweak last commit.
19347         * doc/glibc-functions/strchrnul.texi: Add more details about Cygwin
19348         bug.
19349         * lib/string.in.h (strchrnul): Use same arguments in _GL_FUNCDECL_RPL
19350         as in _GL_FUNCDECL_SYS.
19351         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Invoke gl_PREREQ_STRCHRNUL after
19352         AC_LIBOBJ. When cross-compiling, say "guessing yes" not "yes".
19353
19354 2011-04-15  Eric Blake  <eblake@redhat.com>
19355
19356         strchrnul: work around cygwin bug
19357         * doc/glibc-functions/strchrnul.texi (strchrnul): Document bug.
19358         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Detect it.
19359         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New witness.
19360         * modules/string (Makefile.am): Substitute it.
19361         * lib/string.in.h (strchrnul): Use it.
19362
19363 2011-04-15  Bruno Haible  <bruno@clisp.org>
19364
19365         Don't require lib/stdio-write.c when only module 'stdio' is used.
19366         * m4/stdio_h.m4 (gl_STDIO_H): Move the AC_LIBOBJ back into the m4_ifdef
19367         invocation.
19368         Reported by Rob Vermaas <rob.vermaas@gmail.com>.
19369
19370 2011-04-14  Bruno Haible  <bruno@clisp.org>
19371
19372         Support non-blocking pipe I/O in read() on native Windows.
19373         * lib/unistd.in.h: Include <sys/types.h> also for 'read'.
19374         (read): New declaration.
19375         * lib/read.c: New file.
19376         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_SCANF,
19377         _GL_ATTRIBUTE_FORMAT_SCANF_SYSTEM): New macros.
19378         (fgetc, fgets, fread, fscanf, getc, getchar, gets, scanf, vfscanf,
19379         vscanf): New declarations.
19380         * lib/stdio-read.c: New file.
19381         * m4/read.m4: New file.
19382         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_READ,
19383         REPLACE_READ.
19384         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FGETC, GNULIB_FGETS,
19385         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19386         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF. In non-blocking I/O is
19387         desired and needs workarounds, set REPLACE_STDIO_READ_FUNCS.
19388         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FGETC, GNULIB_FGETS,
19389         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19390         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19391         * modules/read: New file.
19392         * modules/nonblocking (Files): Add lib/stdio-read.c.
19393         * modules/unistd (Makefile.am): Substitute GNULIB_READ, REPLACE_READ.
19394         * modules/stdio (Makefile.am): Substitute GNULIB_FGETC, GNULIB_FGETS,
19395         GNULIB_FREAD, GNULIB_FSCANF, GNULIB_GETC, GNULIB_GETCHAR, GNULIB_GETS,
19396         GNULIB_SCANF, GNULIB_VFSCANF, GNULIB_VSCANF, REPLACE_STDIO_READ_FUNCS.
19397         * modules/pread (Depends-on): Add read.
19398         * modules/safe-read (Depends-on): Likewise.
19399         * tests/test-stdio-c++.cc (fgetc, fgets, fread, fscanf, getc, getchar,
19400         gets, scanf, vfscanf, vscanf): Verify signatures.
19401         * doc/posix-functions/read.texi: Mention 'nonblocking' module and
19402         problem with non-blocking pipes.
19403         * doc/posix-functions/fgetc.texi: Likewise.
19404         * doc/posix-functions/fgets.texi: Likewise.
19405         * doc/posix-functions/fread.texi: Likewise.
19406         * doc/posix-functions/fscanf.texi: Likewise.
19407         * doc/posix-functions/getc.texi: Likewise.
19408         * doc/posix-functions/getchar.texi: Likewise.
19409         * doc/posix-functions/gets.texi: Likewise.
19410         * doc/posix-functions/scanf.texi: Likewise.
19411         * doc/posix-functions/vfscanf.texi: Likewise.
19412         * doc/posix-functions/vscanf.texi: Likewise.
19413
19414 2011-04-14  Bruno Haible  <bruno@clisp.org>
19415
19416         Support non-blocking pipe I/O in write() on native Windows.
19417         * lib/write.c (rpl_write): Split a write request that failed merely
19418         because the byte count was larger than the pipe buffer's size.
19419         * doc/posix-functions/write.texi: Mention the problem with large byte
19420         counts.
19421
19422 2011-04-14  Bruno Haible  <bruno@clisp.org>
19423
19424         wchar: Ensure that wchar_t gets defined on uClibc.
19425         * lib/wchar.in.h: On uClibc, include <stddef.h>.
19426         Reported by Giuseppe Scrivano <gscrivano@gnu.org>.
19427
19428 2011-04-13  Bruno Haible  <bruno@clisp.org>
19429
19430         safe-write, full-read: Avoid unnecessary compilation units.
19431         * modules/safe-write (Files): Add lib/safe-read.c, m4/safe-read.m4.
19432         (Depends-on): Remove safe-read. Add ssize_t.
19433         * modules/full-read (Files): Add lib/full-write.c.
19434         (Depends-on): Add full-write.
19435
19436 2011-04-13  Bruno Haible  <bruno@clisp.org>
19437
19438         Support non-blocking pipe I/O and SIGPIPE in pwrite().
19439         * modules/pwrite (Depends-on): Add 'write'.
19440
19441 2011-04-13  Bruno Haible  <bruno@clisp.org>
19442
19443         Support non-blocking pipe I/O in write() on native Windows.
19444         * lib/unistd.in.h (write): Enable replacement also if
19445         GNULIB_UNISTD_H_NONBLOCKING is 1.
19446         * lib/write.c: Enable replacement also if GNULIB_NONBLOCKING.
19447         (rpl_write): When failing to write on a non-blocking pipe, change
19448         errno from ENOSPC to EAGAIN.
19449         * lib/stdio.in.h (fprintf, fputc, fputs, fwrite, printf, putc,
19450         putchar, puts, vfprintf, vprintf): Enable replacement also if
19451         GNULIB_STDIO_H_NONBLOCKING is 1.
19452         * lib/stdio-write.c: Enable replacements also if GNULIB_NONBLOCKING.
19453         (CLEAR_ERRNO, HANDLE_ENOSPC): New macros.
19454         (CLEAR_LastError, HANDLE_ERROR_NO_DATA): New macros, extracted from
19455         CALL_WITH_SIGPIPE_EMULATION.
19456         (CALL_WITH_SIGPIPE_EMULATION): Use them.
19457         * m4/nonblocking.m4: New file.
19458         * m4/write.m4 (gl_FUNC_WRITE): Enable REPLACE_WRITE also if required
19459         for non-blocking I/O support.
19460         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
19461         GNULIB_UNISTD_H_NONBLOCKING.
19462         * m4/stdio_h.m4 (gl_STDIO_H): Enable REPLACE_STDIO_WRITE_FUNCS also if
19463         required for non-blocking I/O support.
19464         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_STDIO_H_NONBLOCKING.
19465         * modules/nonblocking (Files): Add m4/nonblocking.m4,
19466         lib/stdio-write.c, m4/asm-underscore.m4.
19467         (Depends-on): Add stdio, unistd.
19468         (configure.ac): Invoke gl_NONBLOCKING_IO. Define GNULIB_NONBLOCKING.
19469         Set GNULIB_STDIO_H_NONBLOCKING, GNULIB_UNISTD_H_NONBLOCKING.
19470         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_NONBLOCKING.
19471         * modules/stdio (Makefile.am): Substitute GNULIB_STDIO_H_NONBLOCKING.
19472         * doc/posix-functions/fprintf.texi: Mention 'nonblocking' module and
19473         problem with non-blocking pipes.
19474         * doc/posix-functions/fputc.texi: Likewise.
19475         * doc/posix-functions/fputs.texi: Likewise.
19476         * doc/posix-functions/fwrite.texi: Likewise.
19477         * doc/posix-functions/printf.texi: Likewise.
19478         * doc/posix-functions/putc.texi: Likewise.
19479         * doc/posix-functions/putchar.texi: Likewise.
19480         * doc/posix-functions/puts.texi: Likewise.
19481         * doc/posix-functions/vfprintf.texi: Likewise.
19482         * doc/posix-functions/vprintf.texi: Likewise.
19483         * doc/posix-functions/write.texi: Likewise.
19484
19485 2011-04-10  Jim Meyering  <meyering@redhat.com>
19486
19487         maint.mk: prohibit doubled words
19488         Detect them also when they're separated by a newline.
19489         There are 3 ways to customize it:
19490           - disable the test on a per file basis, as usual with rules using
19491             $(VC_LIST_EXCEPT)
19492           - replace the default doubled-word-selecting regexp (affects all files)
19493           - ignore a particular file-vs-doubled-word match
19494         I nearly used that last one to ignore the "is is" match in
19495         coreutils' NEWS file, since the text was "ls -is is ..."
19496         To do that, I would have added this line to cfg.mk:
19497           ignore_doubled_word_match_RE_ = ^NEWS:[0-9]+:is[ ]is$
19498         but it would have ignored any "is is" match in NEWS.
19499         Low probability, but still...
19500         Instead, I changed the text, slightly:
19501           -  ls -is is now consistent with ls -lis in ignoring values returned
19502           +  "ls -is" is now consistent with ls -lis in ignoring values returned
19503         * top/maint.mk (prohibit_double_word_RE_): Provide default.
19504         (prohibit_doubled_word_): Define.
19505         (sc_prohibit_doubled_word): New rule.
19506         (sc_prohibit_the_the): Remove.  Subsumed by the above.
19507
19508 2011-04-10  Jim Meyering  <meyering@redhat.com>
19509
19510         maint: fix doubled-word typo in comment
19511         * m4/gethostname.m4: s/is is/it is/
19512         * m4/getdomainname.m4: Likewise.
19513
19514 2011-04-10  Jim Meyering  <meyering@redhat.com>
19515
19516         maint: remove doubled word: s/it it/it/
19517         * lib/stat-time.h (get_stat_birthtime): s/it it/it/
19518
19519 2011-04-10  Jim Meyering  <meyering@redhat.com>
19520
19521         maint.mk: remove useless semicolon and backslash
19522         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Remove stray
19523         semicolon and backslash.
19524
19525 2011-04-10  Bruno Haible  <bruno@clisp.org>
19526
19527         stdint test: Fix compilation failure on OSF/1 with DTK compiler.
19528         * modules/stdint-tests (Depends-on): Add wchar.
19529
19530 2011-04-10  Jim Meyering  <meyering@redhat.com>
19531
19532         maint: remove doubled words in comments, e.g., s/a a/a/
19533         * lib/strptime.c (day_of_the_week): s/the the/the/
19534         * tests/test-chown.h (test_chown): s/a a/a/
19535
19536         test-chown.h: correct a cast
19537         * tests/test-chown.h (test_chown): Cast -1 to gid_t (not uid_t)
19538         when the destination is a stat.st_gid.
19539
19540 2011-04-09  Mats Erik Andersson  <mats.andersson@gisladisker.se>  (tiny change)
19541
19542         getaddrinfo: Fix test for sa_len member.
19543         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): When testing for sa_len,
19544         include <sys/types.h> before <sys/socket.h>.
19545
19546 2011-04-09  Paul Eggert  <eggert@cs.ucla.edu>
19547
19548         maint: change "can not" to "cannot"
19549         * doc/posix-functions/iconv.texi (iconv): This one crossed line
19550         boundaries.
19551
19552 2011-04-09  Jim Meyering  <meyering@redhat.com>
19553
19554         maint: change "a a" to "a"
19555         * tests/test-lchown.h (test_lchown): s/a a/a/
19556
19557         maint.mk: prohibit \<the the\>
19558         * top/maint.mk (sc_prohibit_the_the): New rule.
19559
19560         maint: fix "the the" in comment
19561         * lib/count-one-bits.h: s/the the/the/
19562
19563         maint: change "can not" to "cannot"
19564         But do not change the occurrences in maintain.texi or in
19565         build-aux/po/Makefile.in.in, which I presume comes from gettext.
19566         * doc/gnulib-tool.texi: s/can not/cannot/
19567         * doc/posix-functions/accept.texi (accept): Likewise.
19568         * doc/posix-functions/socket.texi (socket): Likewise.
19569         * lib/mbrtowc.c: Likewise.
19570
19571         maint.mk: prohibit use of "can not"
19572         * top/maint.mk (sc_prohibit_can_not): New rule.
19573         Writing "can not" (rather than "cannot") is too common.  Prohibit it.
19574
19575 2011-04-09  Bruno Haible  <bruno@clisp.org>
19576
19577         careadlinkat: Guard against misuse of careadlinkatcwd.
19578         * lib/careadlinkat.c: Include <stdlib.h>.
19579         (careadlinkatcwd): Check that the fd argument is as expected.
19580
19581 2011-04-09  Bruno Haible  <bruno@clisp.org>
19582
19583         careadlinkat: Use common coding style.
19584         * lib/careadlinkat.c: Move gnulib includes after system includes.
19585
19586 2011-04-09  Bruno Haible  <bruno@clisp.org>
19587
19588         careadlinkat: Clarify specification.
19589         * lib/careadlinkat.h (careadlinkat): Clarify preadlinkat argument.
19590         (careadlinkatcwd): Add comment.
19591         * lib/careadlinkat.c (careadlinkat): Clarify preadlinkat argument.
19592
19593 2011-04-09  Bruno Haible  <bruno@clisp.org>
19594
19595         areadlinkat: Avoid link error on many platforms.
19596         * modules/areadlinkat (Depends-on): Add areadlink.
19597
19598 2011-04-09  Bruno Haible  <bruno@clisp.org>
19599
19600         allocator, careadlinkat: Fix double-inclusion guard.
19601         * lib/allocator.h: Fix double-inclusion guard.
19602         * lib/careadlinkat.h: Likewise.
19603
19604 2011-04-09  Bruno Haible  <bruno@clisp.org>
19605
19606         relocatable-prog-wrapper: Update after module 'areadlink' changed.
19607         * lib/relocwrapper.c: Update dependencies hierarchy.
19608         * build-aux/install-reloc: Update list of files to be compiled.
19609         * modules/relocatable-prog-wrapper (Files): Add lib/careadlinkat.[hc],
19610         lib/allocator.[hc].
19611
19612 2011-04-08  Eric Blake  <eblake@redhat.com>
19613
19614         strftime: silence gnulib-tool warning
19615         * modules/strftime-tests (Depends-on): Drop automatic dependency.
19616
19617 2011-04-08  Bruno Haible  <bruno@clisp.org>
19618
19619         verify: Fix syntax error with GCC 4.6 in C++ mode.
19620         * lib/verify.h (HAVE__STATIC_ASSERT): Don't define in C++ mode.
19621         (HAVE_STATIC_ASSERT): New macro.
19622         (verify_true, verify): Use 'static_assert' if it is supported and
19623         '_Static_assert' is not supported.
19624
19625 2011-04-08  Paul Eggert  <eggert@cs.ucla.edu>
19626
19627         allocator: New module.
19628         * modules/allocator, lib/allocator.c: New files.
19629         * lib/allocator.h (stdlib_allocator): New decl.
19630         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC, standard_allocator):
19631         Remove.  Do not include <stdlib.h>.
19632         (careadlinkat): Use stdlib_allocator instead of rolling our own.
19633         * modules/careadlinkat (Files): Remove lib/allocator.h.
19634         (Depends-on): Add allocator.
19635
19636         stdlib: let modules use system malloc, realloc
19637         * lib/stdlib.in.h (malloc, realloc): Don't #define or add warnings
19638         if !_GL_USE_STDLIB_ALLOC.
19639         (malloc, realloc): Limit this change to a smaller scope.
19640
19641         * lib/careadlinkat.c (_GL_USE_STDLIB_ALLOC): Define.
19642         (malloc, realloc): Don't #undef; no longer needed.
19643         * lib/malloca.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19644         * lib/progreloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19645         * lib/setenv.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19646         * lib/canonicalize-lgpl.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19647         * lib/relocatable.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19648         * lib/relocwrapper.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19649         * lib/malloc.c (_GL_USE_STDLIB_ALLOC, malloc): Likewise.
19650         * lib/realloc.c (_GL_USE_STDLIB_ALLOC, malloc, realloc): Likewise.
19651
19652         careadlinkat: rename members to avoid problem
19653         * lib/allocator.h (struct allocator): Rename members from
19654         malloc/realloc to allocate/reallocate, to avoid problems if malloc
19655         and realloc are #define'd.  Reported by Eric Blake in
19656         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00091.html>.
19657         * lib/careadlinkat.c (careadlinkat): Adjust to renaming.
19658
19659 2011-04-08  Eric Blake  <eblake@redhat.com>
19660
19661         nonblocking: reduce dependency
19662         * tests/test-nonblocking.c: Only test sockets when in use.
19663         * modules/nonblocking-tests (Depends-on): Drop socket.
19664         (Makefile.am): Link even if sockets are not present.
19665         * modules/pipe2-tests (Makefile.am): Likewise.
19666         * lib/ioctl.c (ioctl) [WIN32]: Fail if sockets are not also in use.
19667
19668         pipe2: fix O_NONBLOCK support on mingw
19669         * modules/pipe2 (Depends-on): Add nonblocking.
19670         * lib/pipe2.c (pipe2) [WIN32]: Add O_NONBLOCK support.
19671         * tests/test-pipe2.c (is_nonblocking): Adjust test accordingly.
19672         * tests/test-nonblocking.c (main): Likewise.
19673         * modules/pipe2-tests (Makefile.am): Avoid link failure.
19674
19675         fcntl-h: fix O_ACCMODE on cygwin
19676         * doc/posix-headers/fcntl.texi (fcntl.h): Document the bug.
19677         * lib/fcntl.in.h (O_ACCMODE): Fix it.
19678
19679         pipe-filter: drop O_NONBLOCK workarounds
19680         * modules/pipe-filter-gi (Depends-on): Add fcntl-h.
19681         * modules/pipe-filter-ii (Depends-on): Likewise.
19682         * lib/pipe-filter-aux.h (O_NONBLOCK): Delete workaround.
19683
19684         nonblocking: provide O_NONBLOCK for mingw
19685         * modules/nonblocking (Depends-on): Add open.
19686         (configure.ac): Set new witness macro.
19687         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide default for it.
19688         * modules/fcntl-h (Makefile.am): Substitute it.
19689         * lib/fcntl.in.h (O_NONBLOCK): Guarantee non-zero definition when
19690         nonblocking module is in use.
19691         * lib/nonblocking.c: Adjust portability test.
19692         * lib/open.c (open): Don't let native open see gnulib flag.
19693         * tests/test-fcntl-h.c (main): Enhance test.
19694         * tests/test-open.h (test_open): Likewise.
19695         * doc/posix-headers/fcntl.texi (fcntl.h): Document the replacement.
19696
19697         careadlinkat: fix compilation error on mingw
19698         * lib/careadlinkat.c (standard_allocator): Avoid renaming fields
19699         within struct allocator.
19700
19701 2011-04-06  Eric Blake  <eblake@redhat.com>
19702
19703         binary-io: relicense under LGPLv2+
19704         * modules/binary-io (License): Relax to LGPLv2+.
19705         Requested for libvirt, and required by pipe2.
19706
19707 2011-04-06  Paul Eggert  <eggert@cs.ucla.edu>
19708
19709         verify: use _Static_assert if available
19710         * lib/verify.h (HAVE__STATIC_ASSERT): New macro.
19711         (verify_true, verify): Use it if available.  This generates better
19712         diagnostics with GCC 4.6.0 and later.
19713
19714 2011-04-05  Bruno Haible  <bruno@clisp.org>
19715
19716         Remove leftover generated .h files after config.status changed.
19717
19718         * m4/alloca.m4 (gl_FUNC_ALLOCA): New automake conditional
19719         GL_GENERATE_ALLOCA_H.
19720         * modules/alloca-opt (Makefile.am): Remove alloca.h if
19721         GL_GENERATE_ALLOCA_H evaluates to false.
19722
19723         * m4/argz.m4 (gl_FUNC_ARGZ): New automake conditional
19724         GL_GENERATE_ARGZ_H.
19725         * modules/argz (Makefile.am): Remove argz.h if GL_GENERATE_ARGZ_H
19726         evaluates to false.
19727
19728         * m4/byteswap.m4 (gl_BYTESWAP): New automake conditional
19729         GL_GENERATE_BYTESWAP_H.
19730         * modules/byteswap (Makefile.am): Remove byteswap.h if
19731         GL_GENERATE_BYTESWAP_H evaluates to false.
19732
19733         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): New automake conditional
19734         GL_GENERATE_ERRNO_H.
19735         * modules/errno (Makefile.am): Remove errno.h if GL_GENERATE_ERRNO_H
19736         evaluates to false.
19737
19738         * m4/float_h.m4 (gl_FLOAT_H): New automake conditional
19739         GL_GENERATE_FLOAT_H.
19740         * modules/float (Makefile.am): Remove float.h if GL_GENERATE_FLOAT_H
19741         evaluates to false.
19742
19743         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): New automake conditional
19744         GL_GENERATE_FNMATCH_H.
19745         * modules/fnmatch (Makefile.am): Remove fnmatch.h if
19746         GL_GENERATE_FNMATCH_H evaluates to false.
19747
19748         * m4/glob.m4 (gl_GLOB_SUBSTITUTE, gl_GLOB): New automake conditional
19749         GL_GENERATE_GLOB_H.
19750         * modules/glob (Makefile.am): Remove glob.h if GL_GENERATE_GLOB_H
19751         evaluates to false.
19752
19753         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H, gl_ICONV_H_DEFAULTS): New
19754         automake conditional GL_GENERATE_ICONV_H.
19755         * modules/iconv-h (Makefile.am): Remove iconv.h if GL_GENERATE_ICONV_H
19756         evaluates to false.
19757
19758         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): New automake conditional
19759         GL_GENERATE_NETINET_IN_H.
19760         * modules/netinet_in (Makefile.am): Remove netinet/in.h if
19761         GL_GENERATE_NETINET_IN_H evaluates to false.
19762
19763         * m4/pthread.m4 (gl_PTHREAD_CHECK): Set PTHREAD_H here. New automake
19764         conditional GL_GENERATE_PTHREAD_H.
19765         (gl_PTHREAD_DEFAULTS): Don't set PTHREAD_H here.
19766         * modules/pthread (Makefile.am): Remove pthread.h if
19767         GL_GENERATE_PTHREAD_H evaluates to false.
19768
19769         * m4/sched_h.m4 (gl_SCHED_H): New automake conditional
19770         GL_GENERATE_SCHED_H.
19771         * modules/sched (Makefile.am): Remove sched.h if GL_GENERATE_SCHED_H
19772         evaluates to false.
19773
19774         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): New automake
19775         conditional GL_GENERATE_SELINUX_CONTEXT_H.
19776         * modules/selinux-h (Makefile.am): Remove selinux/context.h if
19777         GL_GENERATE_SELINUX_CONTEXT_H evaluates to false.
19778
19779         * m4/stdarg.m4 (gl_STDARG_H): New automake conditional
19780         GL_GENERATE_STDARG_H.
19781         * modules/stdarg (Makefile.am): Remove stdarg.h if
19782         GL_GENERATE_STDARG_H evaluates to false.
19783
19784         * m4/stdbool.m4 (AM_STDBOOL_H): New automake conditional
19785         GL_GENERATE_STDBOOL_H.
19786         * modules/stdbool (Makefile.am): Remove stdbool.h if
19787         GL_GENERATE_STDBOOL_H evaluates to false.
19788
19789         * m4/stddef_h.m4 (gl_STDDEF_H): Set STDDEF_H here. New automake
19790         conditional GL_GENERATE_STDDEF_H.
19791         (gl_STDDEF_H_DEFAULTS): Don't set STDDEF_H here.
19792         * modules/stddef (Makefile.am): Remove stddef.h if
19793         GL_GENERATE_STDDEF_H evaluates to false.
19794
19795         * m4/stdint.m4 (gl_STDINT_H): New automake conditional
19796         GL_GENERATE_STDINT_H.
19797         * modules/stdint (Makefile.am): Remove stdint.h if
19798         GL_GENERATE_STDINT_H evaluates to false.
19799
19800         * m4/sysexits.m4 (gl_SYSEXITS): New automake conditional
19801         GL_GENERATE_SYSEXITS_H.
19802         * modules/sysexits (Makefile.am): Remove sysexits.h if
19803         GL_GENERATE_SYSEXITS_H evaluates to false.
19804
19805         Reported by Karl Berry and Ralf Wildenhues.
19806
19807 2011-04-05  Bruno Haible  <bruno@clisp.org>
19808
19809         Ensure to rebuild generated .h files when config.status has changed.
19810         * modules/arpa_inet (Makefile.am): Add dependency from .h file to
19811         config.status.
19812         * modules/ctype (Makefile.am): Likewise.
19813         * modules/dirent (Makefile.am): Likewise.
19814         * modules/errno (Makefile.am): Likewise.
19815         * modules/fcntl-h (Makefile.am): Likewise.
19816         * modules/float (Makefile.am): Likewise.
19817         * modules/getopt-posix (Makefile.am): Likewise.
19818         * modules/glob (Makefile.am): Likewise.
19819         * modules/iconv-h (Makefile.am): Likewise.
19820         * modules/inttypes (Makefile.am): Likewise.
19821         * modules/langinfo (Makefile.am): Likewise.
19822         * modules/locale (Makefile.am): Likewise.
19823         * modules/math (Makefile.am): Likewise.
19824         * modules/netdb (Makefile.am): Likewise.
19825         * modules/netinet_in (Makefile.am): Likewise.
19826         * modules/poll-h (Makefile.am): Likewise.
19827         * modules/pthread (Makefile.am): Likewise.
19828         * modules/pty (Makefile.am): Likewise.
19829         * modules/sched (Makefile.am): Likewise.
19830         * modules/search (Makefile.am): Likewise.
19831         * modules/selinux-h (Makefile.am): Likewise.
19832         * modules/signal (Makefile.am): Likewise.
19833         * modules/spawn (Makefile.am): Likewise.
19834         * modules/stdarg (Makefile.am): Likewise.
19835         * modules/stdbool (Makefile.am): Likewise.
19836         * modules/stddef (Makefile.am): Likewise.
19837         * modules/stdint (Makefile.am): Likewise.
19838         * modules/stdio (Makefile.am): Likewise.
19839         * modules/stdlib (Makefile.am): Likewise.
19840         * modules/string (Makefile.am): Likewise.
19841         * modules/strings (Makefile.am): Likewise.
19842         * modules/sys_file (Makefile.am): Likewise.
19843         * modules/sys_ioctl (Makefile.am): Likewise.
19844         * modules/sys_select (Makefile.am): Likewise.
19845         * modules/sys_socket (Makefile.am): Likewise.
19846         * modules/sys_stat (Makefile.am): Likewise.
19847         * modules/sys_time (Makefile.am): Likewise.
19848         * modules/sys_times (Makefile.am): Likewise.
19849         * modules/sys_utsname (Makefile.am): Likewise.
19850         * modules/sys_wait (Makefile.am): Likewise.
19851         * modules/sysexits (Makefile.am): Likewise.
19852         * modules/termios (Makefile.am): Likewise.
19853         * modules/time (Makefile.am): Likewise.
19854         * modules/unistd (Makefile.am): Likewise.
19855         * modules/wchar (Makefile.am): Likewise.
19856         * modules/wctype-h (Makefile.am): Likewise.
19857         Reported by Karl Berry, Eric Blake, and Ralf Wildenhues.
19858
19859 2011-04-05  Bruno Haible  <bruno@clisp.org>
19860
19861         pipe2: Relicense under LGPLv2+.
19862         * modules/pipe2 (License): Change to LGPLv2+.
19863         Requested by Eric Blake, for libvirt.
19864
19865 2011-04-05  Bruce Korb  <bkorb@gnu.org>
19866
19867         bootstrap: compute gnulib_extra_files after updating build_aux
19868         * build-aux/bootstrap (gnulib_extra_files): bootstrap.conf may
19869         change build_aux or also supply gnulib_extra_files.  Handle correctly.
19870
19871 2011-04-05  Eric Blake  <eblake@redhat.com>
19872
19873         bootstrap: preserve git whitelist item sorting
19874         * build-aux/bootstrap (sort_patterns): New function.
19875         (insert_sorted_if_absent): Use it to sink ! lines to the bottom.
19876
19877 2011-04-05  Simon Josefsson  <simon@josefsson.org>
19878
19879         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Don't trigger
19880         sc_space_tab check.
19881
19882 2011-04-05  Paul Eggert  <eggert@cs.ucla.edu>
19883
19884         areadlink, areadlinkat: rewrite in terms of careadlinkat
19885         * lib/areadlink.c, lib/areadlinkat.c: Include careadlinkat.h
19886         instead of errno.h, limits.h, stdint.h, stdlib.h, string.h, unistd.h.
19887         (SSIZE_MAX, INITIAL_BUF_SIZE): Remove.
19888         (malloc, realloc): Remove #undefs.
19889         (areadlink, areadlinkat): Rewrite in terms of careadlinkat.
19890         * modules/areadlink (Depends-on): Add careadlinkat.  Remove
19891         readlink, ssize_t, stdint, unistd.
19892         * modules/areadlinkat (Depends-on): Add careadlinkat.  Remove
19893         areadlink, stdint.
19894
19895         careadlinkat: new module
19896         * lib/allocator.h, lib/careadlinkat.h, lib/careadlinkat.c:
19897         * modules/careadlinkat: New files, written by me with
19898         a review and feedback from Ben Pfaff in
19899         <http://lists.gnu.org/archive/html/bug-gnulib/2011-04/msg00008.html>.
19900
19901 2011-04-01  Bruno Haible  <bruno@clisp.org>
19902
19903         wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr: Avoid errors in C++ mode.
19904         * lib/wchar.in.h (wmemchr, wcschr, wcsrchr, wcspbrk, wcsstr): Use
19905         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS. On glibc >= 2.10
19906         systems, use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN.
19907         Reported by Bruce Korb <bruce.korb@gmail.com>.
19908
19909 2011-04-01  Bruno Haible  <bruno@clisp.org>
19910
19911         wcpcpy, wcpncpy: Ensure declaration on glibc >= 2.13 systems.
19912         * m4/wcpcpy.m4 (gl_FUNC_WCPCPY): Require AC_USE_SYSTEM_EXTENSIONS.
19913         * m4/wcpncpy.m4 (gl_FUNC_WCPNCPY): Likewise.
19914         * modules/wcpcpy (Depends-on): Add extensions.
19915         * modules/wcpncpy (Depends-on): Likewise.
19916         * doc/posix-functions/wcpcpy.texi: Mention missing declaration on glibc
19917         systems.
19918         * doc/posix-functions/wcpncpy.texi: Likewise.
19919         * doc/posix-functions/wcwidth.texi: Likewise.
19920
19921 2011-03-31  Eric Blake  <eblake@redhat.com>
19922
19923         nonblocking: fix mingw test failures
19924         * lib/nonblocking.c (set_nonblocking_flag): Succeed when clearing
19925         non-blocking flag on regular file.
19926         (get_nonblocking_flag): Set errno on invalid fd.
19927         * tests/test-nonblocking.c (main): Avoid test failure on
19928         directories if fchdir is not active.
19929         * modules/nonblocking-tests (Depends-on): Drop unused dependency.
19930
19931 2011-03-31  Bruno Haible  <bruno@clisp.org>
19932
19933         Fix bug with gl_WARN_ON_USE_PREPARE, introduced on 2011-01-23.
19934         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): Hide the
19935         gl_WARN_ON_USE_PREPARE definition from 'aclocal'.
19936         Reported by Simon Josefsson <simon@josefsson.org>.
19937
19938 2011-03-31  Bruno Haible  <bruno@clisp.org>
19939         and Eric Blake  <eblake@redhat.com>
19940
19941         nonblocking: new module
19942         * modules/nonblocking: New module.
19943         * modules/nonblocking-tests: Likewise.
19944         * lib/nonblocking.h: New file.
19945         * lib/nonblocking.c: Likewise.
19946         * tests/test-nonblocking.c: New test.
19947         * lib/ioctl.c (ioctl) [mingw]: Update comment.
19948
19949 2011-03-30  Bruno Haible  <bruno@clisp.org>
19950
19951         stdio: Avoid GCC >= 4.4 warnings when using %lld and similar on mingw.
19952         * lib/stdio.in.h (_GL_ATTRIBUTE_FORMAT_PRINTF): Use 'gnu_printf' format
19953         instead of 'printf' format for GCC >= 4.4.
19954         (_GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM): New macro.
19955         (fprintf, printf, vfprintf, vprintf): Declare with
19956         _GL_ATTRIBUTE_FORMAT_PRINTF_SYSTEM when the function ends up calling
19957         the system's vfprintf() function.
19958         Reported by Daniel P. Berrange <berrange@redhat.com> via Eric Blake.
19959
19960 2011-03-30  Eric Blake  <eblake@redhat.com>
19961
19962         passfd: fix scoping bug
19963         * lib/passfd.c (sendfd, recvfd): Don't let buf go out of scope
19964         before sendmsg/recvmsg.
19965
19966         passfd: standardize coding conventions
19967         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Drop check for something that
19968         can be learned at compile time.
19969         * lib/passfd.c (MSG_CMSG_CLOEXEC): Reduce number of in-function
19970         ifdefs.
19971         (sendfd, recvfd): Follow gnulib code conventions.
19972
19973         passfd: fix incorrect sendmsg arguments
19974         * lib/passfd.c (sendfd): Avoid uninitialized msg_flags field, and
19975         incorrect msg_controllen value.
19976         * modules/passfd-tests (Depends-on): Check for alarm.
19977         * tests/test-passfd.c (main) [HAVE_DECL_ALARM]: Avoid hanging test.
19978         Reported by Bastien ROUCARIES.
19979
19980 2011-03-30  Bruno Haible  <bruno@clisp.org>
19981
19982         c-strcasestr: Relicense under LGPLv2+.
19983         * modules/c-strcasestr (License): Change to LGPLv2+.
19984         Requested by Eric Blake, for libvirt.
19985
19986 2011-03-30  Simon Josefsson  <simon@josefsson.org>
19987
19988         * users.txt: Add libidn2.  Fix libtasn1 link.
19989
19990 2011-03-30  Jim Meyering  <meyering@redhat.com>
19991
19992         tests: readlink* ("",... fails with EINVAL on newer kernels
19993         readlink and readlinkat have typically failed with ENOENT for
19994         the invalid, empty file name,  "".  However, with the advent
19995         of linux-2.6.39, they fail with EINVAL.
19996         * tests/test-areadlink.h (test_areadlink): Also accept EINVAL
19997         when operating on the empty file name.
19998         * tests/test-readlink.h (test_readlink): Likewise.
19999
20000 2011-03-29  Bruno Haible  <bruno@clisp.org>
20001
20002         Relicense some modules under LGPLv2+, for libidn2.
20003         * modules/array-mergesort (License): Change to LGPLv2+.
20004         * modules/c-strcaseeq (License): Likewise.
20005         * modules/striconveh (License): Likewise.
20006         * modules/striconveha (License): Likewise.
20007         * modules/uniconv/base (License): Likewise.
20008         * modules/uniconv/u8-conv-from-enc (License): Likewise.
20009         * modules/uniconv/u8-strconv-from-enc (License): Likewise.
20010         * modules/uniconv/u8-strconv-from-locale (License): Likewise.
20011         * modules/unictype/base (License): Likewise.
20012         * modules/unictype/bidiclass-of (License): Likewise.
20013         * modules/unictype/category-M (License): Likewise.
20014         * modules/unictype/category-none (License): Likewise.
20015         * modules/unictype/category-of (License): Likewise.
20016         * modules/unictype/category-test (License): Likewise.
20017         * modules/unictype/category-test-withtable (License): Likewise.
20018         * modules/unictype/combining-class (License): Likewise.
20019         * modules/unictype/joiningtype-of (License): Likewise.
20020         * modules/unictype/scripts (License): Likewise.
20021         * modules/uninorm/base (License): Likewise.
20022         * modules/uninorm/canonical-decomposition (License): Likewise.
20023         * modules/uninorm/composition (License): Likewise.
20024         * modules/uninorm/decompose-internal (License): Likewise.
20025         * modules/uninorm/decomposition-table (License): Likewise.
20026         * modules/uninorm/nfc (License): Likewise.
20027         * modules/uninorm/nfd (License): Likewise.
20028         * modules/uninorm/u32-normalize (License): Likewise.
20029         * modules/unistr/base (License): Likewise.
20030         * modules/unistr/u32-cpy (License): Likewise.
20031         * modules/unistr/u32-mbtouc-unsafe (License): Likewise.
20032         * modules/unistr/u32-to-u8 (License): Likewise.
20033         * modules/unistr/u32-uctomb (License): Likewise.
20034         * modules/unistr/u8-check (License): Likewise.
20035         * modules/unistr/u8-mblen (License): Likewise.
20036         * modules/unistr/u8-mbtouc (License): Likewise.
20037         * modules/unistr/u8-mbtouc-unsafe (License): Likewise.
20038         * modules/unistr/u8-mbtoucr (License): Likewise.
20039         * modules/unistr/u8-prev (License): Likewise.
20040         * modules/unistr/u8-strlen (License): Likewise.
20041         * modules/unistr/u8-to-u32 (License): Likewise.
20042         * modules/unistr/u8-uctomb (License): Likewise.
20043         * modules/unitypes (License): Likewise.
20044         Requested by Simon Josefsson.
20045
20046 2011-03-29  Simon Josefsson  <simon@josefsson.org>
20047
20048         lib-symbol-visibility: Add a notice.
20049         * modules/lib-symbol-visibility (Notice): New field.
20050
20051 2011-03-29  Bruno Haible  <bruno@clisp.org>
20052
20053         getaddrinfo: Doc fix.
20054         * doc/posix-functions/getaddrinfo.texi: Mention Windows problem in the
20055         section "fixed in Gnulib".
20056
20057 2011-03-28  Simon Josefsson  <simon@josefsson.org>
20058
20059         * doc/posix-functions/getaddrinfo.texi: Drop netdb.h discussion.
20060         Reported by Bastien ROUCARIES <roucaries.bastien@gmail.com>.
20061
20062 2011-03-26  Bruno Haible  <bruno@clisp.org>
20063
20064         unictype/property-byname: Reduce the number of load-time relocations.
20065         * lib/unictype/pr_byname.c: Include <stdlib.h>.
20066         (UC_PROPERTY_INDEX_*): New enumeration values.
20067         (uc_property_byname): Convert an index from the lookup table to an
20068         uc_property_t.
20069         * lib/unictype/pr_byname.gperf: Store indices instead of uc_property_t
20070         values.
20071
20072 2011-03-26  Bruno Haible  <bruno@clisp.org>
20073
20074         unictype/property-byname: Allow omitted word separators and aliases.
20075         * lib/unictype/pr_byname.gperf: Add property names without word
20076         separators. Add aliases from Unicode 6.0 PropertyAliases.txt, except
20077         for 'space'.
20078
20079 2011-03-26  Bruno Haible  <bruno@clisp.org>
20080
20081         unictype/joininggroup-byname: Allow hyphens, omitted word separators.
20082         * lib/unictype/joininggroup_byname.c (uc_joining_group_byname): Convert
20083         also hyphens to space.
20084         * lib/unictype/joininggroup_byname.gperf: Recognize the names also
20085         without spaces.
20086         * tests/unictype/test-joininggroup_byname.c (main): Add more tests.
20087
20088 2011-03-26  Bruno Haible  <bruno@clisp.org>
20089
20090         unictype/joiningtype-byname: Recognize long names as well.
20091         * lib/unictype.in.h (uc_joiningtype_class_byname): Allow argument to be
20092         a long name.
20093         * lib/unictype/joiningtype_byname.c: Include <string.h>,
20094         unictype/joiningtype_byname.h.
20095         (uc_joiningtype_class_byname): Use uc_joining_type_lookup.
20096         * lib/unictype/joiningtype_byname.gperf: New file.
20097         * modules/unictype/joiningtype-byname (Files): Add
20098         lib/unictype/joiningtype_byname.gperf.
20099         (Depends-on): Add gperf.
20100         (Makefile.am): Add rule for generating unictype/joiningtype_byname.h.
20101         * tests/unictype/test-joiningtype_byname.c (main): Test the recognition of
20102         long names.
20103
20104         Tests for module 'unictype/joiningtype-longname'.
20105         * modules/unictype/joiningtype-longname-tests: New file.
20106         * tests/unictype/test-joiningtype_longname.c: New file.
20107
20108         New module 'unictype/joiningtype-longname'.
20109         * lib/unictype.in.h (uc_joiningtype_class_long_name): New declaration.
20110         * lib/unictype/joiningtype_longname.c: New file.
20111         * modules/unictype/joiningtype-longname: New file.
20112         * modules/unictype/joiningtype-all (Depends-on): Add
20113         unictype/joiningtype-longname.
20114
20115 2011-03-26  Bruno Haible  <bruno@clisp.org>
20116
20117         unictype/bidiclass-byname: Recognize long names as well.
20118         * lib/unictype.in.h (uc_bidi_class_byname): Allow argument to be a long
20119         name.
20120         * lib/unictype/bidi_byname.c: Include <string.h>,
20121         unictype/bidi_byname.h.
20122         (uc_bidi_class_byname): Use uc_bidi_class_lookup.
20123         * lib/unictype/bidi_byname.gperf: New file.
20124         * modules/unictype/bidiclass-byname (Files): Add
20125         lib/unictype/bidi_byname.gperf.
20126         (Depends-on): Add gperf.
20127         (Makefile.am): Add rule for generating unictype/bidi_byname.h.
20128         * tests/unictype/test-bidi_byname.c (main): Test the recognition of
20129         long names.
20130
20131         Tests for module 'unictype/bidiclass-longname'.
20132         * modules/unictype/bidiclass-longname-tests: New file.
20133         * tests/unictype/test-bidi_longname.c: New file.
20134
20135         New module 'unictype/bidiclass-longname'.
20136         * lib/unictype.in.h (uc_bidi_class_long_name): New declaration.
20137         * lib/unictype/bidi_longname.c: New file.
20138         * modules/unictype/bidiclass-longname: New file.
20139         * modules/unictype/bidiclass-all (Depends-on): Add
20140         unictype/bidiclass-longname.
20141
20142 2011-03-26  Bruno Haible  <bruno@clisp.org>
20143
20144         unictype/bidi*: Rename modules.
20145         * modules/unictype/bidiclass-all: Renamed from
20146         modules/unictype/bidicategory-all.
20147         * modules/unictype/bidiclass-name: Renamed from
20148         modules/unictype/bidiclass-name.
20149         (Description): Update.
20150         * modules/unictype/bidiclass-name-tests: Renamed from
20151         modules/unictype/bidicategory-name-tests.
20152         * modules/unictype/bidiclass-byname: Renamed from
20153         modules/unictype/bidicategory-byname.
20154         (Description): Update.
20155         * modules/unictype/bidiclass-byname-tests: Renamed from
20156         modules/unictype/bidicategory-byname-tests.
20157         * modules/unictype/bidiclass-of: Renamed from
20158         modules/unictype/bidicategory-of.
20159         (Description): Update.
20160         * modules/unictype/bidiclass-of-tests: Renamed from
20161         modules/unictype/bidicategory-of-tests.
20162         * modules/unictype/bidiclass-test: Renamed from
20163         modules/unictype/bidicategory-test.
20164         (Description): Update.
20165         * modules/unictype/bidiclass-test-tests: Renamed from
20166         modules/unictype/bidicategory-test-tests.
20167         * modules/unictype/bidicategory-all: New file, a simple redirection.
20168         * modules/unictype/bidicategory-name: Likewise.
20169         * modules/unictype/bidicategory-byname: Likewise.
20170         * modules/unictype/bidicategory-of: Likewise.
20171         * modules/unictype/bidicategory-test: Likewise.
20172         * modules/unictype/property-bidi-* (Dependencies): Update.
20173         * lib/unictype/bidi_*.c: Update comment.
20174
20175 2011-03-26  Bruno Haible  <bruno@clisp.org>
20176
20177         unictype/bidi*: Rename functions, part 2.
20178         * modules/unictype/bidicategory-name (configure.ac): Update required
20179         libunistring version.
20180         * modules/unictype/bidicategory-byname (configure.ac): Likewise.
20181
20182 2011-03-25  Bruno Haible  <bruno@clisp.org>
20183
20184         New module 'unictype/combining-class-all'.
20185         * modules/unictype/combining-class-all: New file.
20186
20187         Tests for module 'unictype/combining-class-byname'.
20188         * modules/unictype/combining-class-byname-tests: New file.
20189         * tests/unictype/test-combiningclass_byname.c: New file.
20190
20191         New module 'unictype/combining-class-byname'.
20192         * lib/unictype.in.h (uc_combining_class_byname): New declaration.
20193         * lib/unictype/combiningclass_byname.c: New file.
20194         * lib/unictype/combiningclass_byname.gperf: New file.
20195         * modules/unictype/combining-class-byname: New file.
20196
20197         Tests for module 'unictype/combining-class-longname'.
20198         * modules/unictype/combining-class-longname-tests: New file.
20199         * tests/unictype/test-combiningclass_longname.c: New file.
20200
20201         New module 'unictype/combining-class-longname'.
20202         * lib/unictype.in.h (uc_combining_class_long_name): New declaration.
20203         * lib/unictype/combiningclass_longname.c: New file.
20204         * modules/unictype/combining-class-longname: New file.
20205
20206         Tests for module 'unictype/combining-class-name'.
20207         * modules/unictype/combining-class-name-tests: New file.
20208         * tests/unictype/test-combiningclass_name.c: New file.
20209
20210         New module 'unictype/combining-class-name'.
20211         * lib/unictype.in.h (uc_combining_class_name): New declaration.
20212         * lib/unictype/combiningclass_name.c: New file.
20213         * modules/unictype/combining-class-name: New file.
20214
20215 2011-03-25  Bruno Haible  <bruno@clisp.org>
20216
20217         unictype/combining-class: Rename source files.
20218         * lib/gen-uni-tables.c (main): Emit unictype/combiningclass.h instead
20219         of unictype/combining.h.
20220         * lib/unictype/combiningclass.c: Renamed from lib/unictype/combining.c.
20221         Update.
20222         * lib/unictype/combiningclass.h: Renamed from lib/unictype/combining.h.
20223         * modules/unictype/combining-class (Description): Fix.
20224         (Files, Makefile.am): Update.
20225         * tests/unictype/test-combiningclass.c: Renamed from
20226         tests/unictype/test-combining.c.
20227         * modules/unictype/combining-class-tests (Files, Makefile.am): Update.
20228
20229 2011-03-25  Bruno Haible  <bruno@clisp.org>
20230
20231         unictype: Update list of canonical combining classes.
20232         * lib/unictype.in.h (UC_CCC_ATA): New enumeration value.
20233
20234 2011-03-25  Bruno Haible  <bruno@clisp.org>
20235
20236         unictype/category-byname: Recognize long names as well.
20237         * lib/unictype.in.h (uc_general_category_byname): Allow argument to be
20238         a long name.
20239         * lib/unictype/categ_byname.c: Include <stdlib.h>, <string.h>,
20240         unictype/categ_byname.h.
20241         (UC_CATEGORY_INDEX_*): New enumeration values.
20242         (uc_general_category_byname): Use uc_general_category_lookup and
20243         convert from index to value.
20244         * lib/unictype/categ_byname.gperf: New file.
20245         * modules/unictype/category-byname (Files): Add
20246         lib/unictype/categ_byname.gperf.
20247         (Depends-on): Add gperf.
20248         (Makefile.am): Add rule for generating unictype/categ_byname.h.
20249         * tests/unictype/test-categ_byname.c (main): Test the recognition of
20250         long names.
20251
20252         Tests for module 'unictype/category-longname'.
20253         * modules/unictype/category-longname-tests: New file.
20254         * tests/unictype/test-categ_longname.c: New file.
20255
20256         New module 'unictype/category-longname'.
20257         * lib/unictype.in.h (uc_general_category_long_name): New declaration.
20258         * lib/unictype/categ_longname.c: New file.
20259         * modules/unictype/category-longname: New file.
20260         * modules/unictype/category-all (Depends-on): Add it.
20261
20262 2011-03-25  Bruno Haible  <bruno@clisp.org>
20263
20264         Tests for module 'unictype/category-LC'.
20265         * modules/unictype/category-LC-tests: New file.
20266         * tests/unictype/test-categ_LC.c: New file, automatically generated.
20267
20268         New module 'unictype/category-LC'.
20269         * lib/unictype.in.h (UC_CATEGORY_MASK_LC): New enumeration value.
20270         (UC_CATEGORY_LC): New declaration.
20271         (UC_CASED_LETTER): New macro.
20272         * lib/gen-uni-tables.c (is_category_LC): New function.
20273         (output_categories): Also handle category LC.
20274         (UC_CATEGORY_MASK_LC): New enumeration value.
20275         (general_category_byname): Also handle category LC.
20276         * lib/unictype/categ_LC.c: New file.
20277         * lib/unictype/categ_LC.h: New file, automatically generated.
20278         * lib/unictype/categ_name.c (uc_general_category_name): Also handle
20279         category LC.
20280         * lib/unictype/categ_byname.c (uc_general_category_byname): Likewise.
20281         * modules/unictype/category-LC: New file.
20282         * modules/unictype/category-byname (Depends-on): Add
20283         unictype/category-LC.
20284         * modules/unictype/category-all (Depends-on): Likewise.
20285
20286 2011-03-25  Eric Blake  <eblake@redhat.com>
20287
20288         xmalloc: revert yesterday's regression
20289         * lib/xmalloc.c (xrealloc): Once again forward xrealloc(NULL,0) to
20290         realloc's underlying behavior (allowing allocation of zero-size
20291         objects, especially if malloc-gnu is also in use).
20292
20293 2011-03-25  Reuben Thomas  <rrt@sc3d.org>
20294
20295         maint.mk: add missing version to VC-tag
20296         * top/maint.mk: git tag was missing actual tag name; add it.
20297
20298         valgrind: do leak checking, and exit with code 1 on error (not 0)
20299         * m4/valgrind-tests.m4: Add `--error-exitcode=1 --leak-check=full'
20300         to VALGRIND.
20301
20302 2010-11-30  Reuben Thomas  <rrt@sc3d.org>
20303
20304         posix-modules: say what it does.
20305         * posix-modules: Add a line to the --help output saying what it does.
20306
20307 2011-03-24  Paul Eggert  <eggert@cs.ucla.edu>
20308
20309         xmalloc: Do not leak if underlying realloc is C99 compatible.
20310         * lib/xmalloc.c (xrealloc): If N is zero, call 'free' directly.
20311         This avoids a leak on C99-based systems.  See
20312         <http://lists.gnu.org/archive/html/bug-gnulib/2011-03/msg00243.html>.
20313
20314 2011-03-24  Eric Blake  <eblake@redhat.com>
20315
20316         realloc: document portability problem
20317         * doc/posix-functions/realloc.texi (realloc): Mention pitfalls of
20318         passing 0 size to realloc.
20319
20320 2011-03-23  Ben Walton  <bwalton@artsci.utoronto.ca>
20321
20322         doc: update users.txt
20323         * users.txt: Add cvsps, tmpwatch
20324
20325 2011-03-23  Matt Rice  <ratmice@gmail.com>
20326
20327         doc: update users.txt
20328         * users.txt: Add gdb.
20329
20330 2011-03-23  Jim Meyering  <meyering@redhat.com>
20331
20332         doc: update users.txt
20333         Looking through matches up to the following URL (there are still
20334         several more pages), I found several projects that use gnulib:
20335         http://codesearch.google.com/codesearch?start=50&q=gnulib-cache\.m4
20336         * users.txt: Add nagios plugins (nagiosplug), acct, gengetopt,
20337         gmediaserver, gtkreindeer, jugtail, libunistring, mini-httpd, reindeer.
20338
20339 2011-03-22  Bruno Haible  <bruno@clisp.org>
20340
20341         unictype/bidi*: Rename functions.
20342         * lib/unictype.in.h (uc_bidi_class_name, uc_bidi_class_byname,
20343         uc_bidi_class, uc_is_bidi_class): New declarations.
20344         * lib/unictype/bidi_byname.c (uc_bidi_class_byname): Renamed from
20345         uc_bidi_category_byname.
20346         (uc_bidi_category_byname): New function.
20347         * lib/unictype/bidi_name.c (u_bidi_class_name): Renamed from
20348         u_bidi_category_name.
20349         (uc_bidi_class_name): Renamed from uc_bidi_category_name.
20350         (uc_bidi_category_name): New function.
20351         * lib/unictype/bidi_of.c (uc_bidi_class): Renamed from
20352         uc_bidi_category.
20353         (uc_bidi_category): New function.
20354         * lib/unictype/bidi_test.c (uc_is_bidi_class): Renamed from
20355         uc_is_bidi_category. Invoke uc_bidi_class.
20356         (uc_is_bidi_category): New function.
20357         * tests/unictype/test-bidi_byname.c (main): Test uc_bidi_class_byname
20358         instead of uc_bidi_category_byname.
20359         * tests/unictype/test-bidi_name.c (main): Test uc_bidi_class_name
20360         instead of uc_bidi_category_name.
20361         * tests/unictype/test-bidi_of.c (main): Test uc_bidi_class instead of
20362         uc_bidi_category.
20363         * tests/unictype/test-bidi_test.c (main): Test uc_is_bidi_class
20364         instead of uc_is_bidi_category.
20365
20366 2011-03-21  Bruno Haible  <bruno@clisp.org>
20367
20368         New module 'unictype/joininggroup-all'.
20369         * modules/unictype/joininggroup-all: New file.
20370
20371         Tests for module 'unictype/joininggroup-of'.
20372         * modules/unictype/joininggroup-of-tests: New file.
20373         * tests/unictype/test-joininggroup_of.c: New file.
20374         * tests/unictype/test-joininggroup_of.h: New file, automatically
20375         generated by gen-uni-tables.
20376
20377         New module 'unictype/joininggroup-of'.
20378         * modules/unictype/joininggroup-of: New file.
20379         * lib/unictype/joininggroup_of.c: New file.
20380         * lib/unictype/joininggroup_of.h: New file, automatically generated by
20381         gen-uni-tables.
20382
20383         Tests for module 'unictype/joininggroup-byname'.
20384         * modules/unictype/joininggroup-byname-tests: New file.
20385         * tests/unictype/test-joininggroup_byname.c: New file.
20386
20387         New module 'unictype/joininggroup-byname'.
20388         * modules/unictype/joininggroup-byname: New file.
20389         * lib/unictype/joininggroup_byname.c: New file.
20390         * lib/unictype/joininggroup_byname.gperf: New file.
20391
20392         Tests for module 'unictype/joininggroup-name'.
20393         * modules/unictype/joininggroup-name-tests: New file.
20394         * tests/unictype/test-joininggroup_name.c: New file.
20395
20396         New module 'unictype/joininggroup-name'.
20397         * modules/unictype/joininggroup-name: New file.
20398         * lib/unictype/joininggroup_name.c: New file.
20399         * lib/unictype/joininggroup_name.h: New file.
20400
20401         New module 'unictype/joiningtype-all'.
20402         * modules/unictype/joiningtype-all: New file.
20403
20404         Tests for module 'unictype/joiningtype-of'.
20405         * modules/unictype/joiningtype-of-tests: New file.
20406         * tests/unictype/test-joiningtype_of.c: New file.
20407         * tests/unictype/test-joiningtype_of.h: New file, automatically
20408         generated by gen-uni-tables.
20409
20410         New module 'unictype/joiningtype-of'.
20411         * modules/unictype/joiningtype-of: New file.
20412         * lib/unictype/joiningtype_of.c: New file.
20413         * lib/unictype/joiningtype_of.h: New file, automatically generated by
20414         gen-uni-tables.
20415
20416         Tests for module 'unictype/joiningtype-byname'.
20417         * modules/unictype/joiningtype-byname-tests: New file.
20418         * tests/unictype/test-joiningtype_byname.c: New file.
20419
20420         New module 'unictype/joiningtype-byname'.
20421         * modules/unictype/joiningtype-byname: New file.
20422         * lib/unictype/joiningtype_byname.c: New file.
20423
20424         Tests for module 'unictype/joiningtype-name'.
20425         * modules/unictype/joiningtype-name-tests: New file.
20426         * tests/unictype/test-joiningtype_name.c: New file.
20427
20428         New module 'unictype/joiningtype-name'.
20429         * modules/unictype/joiningtype-name: New file.
20430         * lib/unictype/joiningtype_name.c: New file.
20431
20432         unictype: Add support for Arabic shaping properties.
20433         * lib/unictype.in.h (UC_JOINING_TYPE_*): New enumeration values.
20434         (uc_joining_type_name, uc_joining_type_byname, uc_joining_type): New
20435         declarations.
20436         (UC_JOINING_GROUP_*): New enumeration values.
20437         (uc_joining_group_name, uc_joining_group_byname, uc_joining_group): New
20438         declarations.
20439         * lib/gen-uni-tables.c (UC_JOINING_TYPE_*): New enumeration values.
20440         (unicode_joining_type): New variable.
20441         (UC_JOINING_GROUP_*): New enumeration values.
20442         (unicode_joining_group): New variable.
20443         (fill_arabicshaping, joining_type_as_c_identifier,
20444         output_joining_type_test, output_joining_type,
20445         joining_group_as_c_identifier, output_joining_group_test,
20446         output_joining_group): New functions.
20447         (main); Add an argument denoting the ArabicShaping.txt file. Invoke
20448         fill_arabicshaping and output_joining_type_test, output_joining_type,
20449         output_joining_group_test, output_joining_group.
20450         Reported by Simon Josefsson.
20451
20452 2011-03-21  Jim Meyering  <meyering@redhat.com>
20453
20454         strftime: fix a bug in yesterday's change
20455         * lib/strftime.c (add): Accommodate width's initial value of -1.
20456         Otherwise, nstrftime would copy uninitialized data into
20457         the result buffer.
20458
20459 2011-03-21  Jim Meyering  <meyering@redhat.com>
20460
20461         tests: add strftime-tests module
20462         * tests/test-strftime.c: New file.
20463         * modules/strftime-tests: New module.
20464
20465 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20466
20467         strftime: don't assume a byte count fits in 'int'
20468         * lib/strftime.c (add): Don't assume first arg fits in 'int'.  I
20469         found this problem by static analysis, using gcc -Wstrict-overflow
20470         (GCC 4.5.2, x86-64).  This reported an optimization that depended
20471         on an integer overflow having undefined behavior, but it turns out
20472         that the argument is a size, which might not fit in 'int' anyway,
20473
20474 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20475
20476         stdio: don't require ignore_value around fwrite
20477
20478         This patch works around libc bug 11959
20479         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=11959>.
20480         Without this patch, applications must often write
20481         ignore_value (fwrite (...)) even though the ignore_value is
20482         not helpful here.  It's common to write many objects, using
20483         fwrite/printf/etc., and then use ferror to detect output error.
20484
20485         I considered making this patch optional, but decided against it,
20486         because libc is obviously being inconsistent here: there is no
20487         reason libc should insist that user code must inspect fwrite
20488         return's value without also insisting that it inspect printf's,
20489         putchar's, etc.  If user code wants to have a strict style where
20490         all these functions' values are checked (so that ferror need not
20491         be checked), we could add support for that style in a new gnulib
20492         module, but in the meantime it's better to be consistent and to
20493         support common usage.
20494
20495         * lib/stdio.in.h (rpl_fwrite): Define this wrapper around fwrite,
20496         to work around libc bug 11959, if __USE_FORTIFY_LEVEL indicates
20497         that we are compiling in checking mode, and if not C++, and
20498         if not already wrapping fwrite for some other reason.
20499         (fwrite): #define to rpl_fwrite if the latter is defined.
20500
20501 2011-03-20  Bruno Haible  <bruno@clisp.org>
20502
20503         verror: Fix compilation error introduced on 2011-02-13.
20504         * lib/verror.h (verror, verror_at_line): Use _GL_ATTRIBUTE_FORMAT macro
20505         instead of __attribute__.
20506         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
20507
20508 2011-03-20  Paul Eggert  <eggert@cs.ucla.edu>
20509             Bruno Haible  <bruno@clisp.org>
20510
20511         socklen: do not depend on sys_socket
20512         While trying to modify Emacs to use gnulib's socklen module,
20513         I discovered a circular dependency: socklen depends on sys_socket
20514         and vice versa.  Emacs can use socklen, but it does not need
20515         sys_socket because it has its own substitute for sys/socket.h.
20516         * m4/socklen.m4 (gl_SOCKET_HEADERS): New macro, extracted from
20517         gl_TYPE_SOCKLEN_T.
20518         (gl_CHECK_SOCKET_HEADERS): New macro, taken from parts of
20519         gl_PREREQ_SYS_H_SOCKET.
20520         (gl_TYPE_SOCKLEN_T): Require it instead of requiring
20521         gl_PREREQ_SYS_H_SOCKET.
20522         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_SOCKET): Require
20523         gl_CHECK_SOCKET_HEADERS instead of doing its work ourselves.
20524         * modules/socklen (Depends-on): Do not depend on sys_socket.
20525         (Include): Adjust to match the code used in gl_SOCKET_HEADERS.
20526
20527 2011-03-20  Jim Meyering  <meyering@redhat.com>
20528
20529         maint.mk: sort file names *after* new transformation
20530         * top/maint.mk (sc_po_check): Sorting before removing the $(srcdir)/
20531         prefix would have led to an unwarranted failure in GNU parted.
20532         Sort after that transformation.
20533
20534 2011-03-19  Jim Meyering  <meyering@redhat.com>
20535
20536         maint.mk: fix po-file syntax-check rule
20537         * top/maint.mk (sc_po_check): Fix fatal typo in yesterday's change.
20538         Patch by Bruno Haible.
20539
20540 2011-03-19  Bruno Haible  <bruno@clisp.org>
20541
20542         socklen: Update comment.
20543         * m4/socklen.m4: Update comment about platforms.
20544
20545 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20546             Bruno Haible  <bruno@clisp.org>
20547
20548         inet_ntop, inet_pton: Simplify.
20549         * modules/inet_ntop (Depends-on): Remove socklen, since sys_socket is
20550         documented to provide socklen_t and we already depend on sys_socket.
20551         * modules/inet_pton (Depends-on): Likewise.
20552         * lib/arpa_inet.in.h: Adjust comment.
20553
20554 2011-03-19  Paul Eggert  <eggert@cs.ucla.edu>
20555             Bruno Haible  <bruno@clisp.org>
20556
20557         netdb: Simplify.
20558         * modules/netdb (Depends-on): Remove socklen, since sys_socket is
20559         documented to provide socklen_t and we already depend on sys_socket.
20560         * lib/netdb.in.h: Adjust comment.
20561
20562 2011-03-19  Bruno Haible  <bruno@clisp.org>
20563
20564         sys_socket, netdb: Document problem with socklen_t.
20565         * doc/posix-headers/sys_socket.texi: Mention lack of socklen_t on some
20566         platforms.
20567         * doc/posix-headers/netdb.texi: Likewise.
20568
20569 2011-03-18  Eric Blake  <eblake@redhat.com>
20570
20571         maint.mk: let po check work in VPATH build
20572         * top/maint.mk (po_file): Allow cfg.mk override.
20573         (sc_po_check): Allow VPATH use.
20574         Reported by Jiri Denemark.
20575
20576 2011-03-16  Jim Meyering  <meyering@redhat.com>
20577
20578         maint.mk: allow fine-grained syntax-check exclusion via Make variables
20579         Before, you would have had to create one .x-sc_ file per rule in order
20580         to exempt offending files.  Now, you may instead use a Make variable --
20581         usually defined in cfg.mk -- whose name identifies the affected rule.
20582         * top/maint.mk (_sc_excl): Define.
20583         (VC_LIST_EXCEPT): Use it to exclude names on a per-rule basis.
20584         (_sc_search_regexp): When not using VC_LIST_EXCEPT, exclude here, too.
20585
20586 2011-03-13  Bruno Haible  <bruno@clisp.org>
20587
20588         ignore-value tests: Avoid warnings.
20589         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Define to
20590         empty for gcc < 3.4.
20591
20592 2011-03-13  Bruno Haible  <bruno@clisp.org>
20593
20594         passfd: Fix link error on Solaris.
20595         * modules/passfd (Description): Correct.
20596         (Depends-on): Add socketlib.
20597         (Link): New section.
20598         * modules/passfd-tests (Makefile.am): Link test-passfd with LIBSOCKET.
20599
20600 2011-03-13  Bruno Haible  <bruno@clisp.org>
20601
20602         passfd: Fix link error on AIX 5.2.
20603         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Define _LINUX_SOURCE_COMPAT.
20604
20605 2011-03-13  Bruno Haible  <bruno@clisp.org>
20606
20607         passfd: Work around bug with CMSG_FIRSTHDR on FreeBSD 6.4.
20608         * lib/sys_socket.in.h: Include <stddef.h>.
20609         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Include <stddef.h> before using
20610         CMSG_FIRSTHDR. Remove unused variable.
20611
20612 2011-03-13  Bruno Haible  <bruno@clisp.org>
20613
20614         passfd: Fix compilation error on OpenBSD.
20615         * lib/passfd.c: Include <sys/uio.h>.
20616
20617 2011-03-13  Bruno Haible  <bruno@clisp.org>
20618
20619         passfd test: Fix warnings.
20620         * tests/test-passfd.c: Include <sys/wait.h>.
20621         (main): Fix typo.
20622
20623 2011-03-13  Bruno Haible  <bruno@clisp.org>
20624
20625         passfd module, part 4, tweaks.
20626         * tests/test-passfd.c: Reorder includes.
20627         (main): Fix perror and printf calls.
20628
20629 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20630
20631         passfd module, part 4.
20632         * modules/passfd-tests: New file.
20633         * tests/test-passfd.c: New file.
20634
20635 2011-03-13  Jim Meyering  <meyering@redhat.com>
20636
20637         Makefile: rely on GNU make; derive syntax-check rule names
20638         Rather than requiring that each sc_ rule be listed as a dependent
20639         of "check", use features of GNU make to derive the list.
20640         * Makefile (syntax-check-rules): Define.
20641         (check): Depend on the new variable, not the hard-coded list.
20642
20643 2011-03-13  Bastien Roucariès  <roucaries.bastien@gmail.com>
20644             Bruno Haible  <bruno@clisp.org>
20645
20646         passfd module, part 3.
20647         * lib/passfd.h (recvfd): Add a flags argument.
20648         * lib/passfd.c: Include <fcntl.h>, cloexec.h.
20649         (recvfd): Add a flags argument.
20650         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Test whether MSG_CMSG_CLOEXEC
20651         exists.
20652         * modules/passfd (Depends-on): Add cloexec.
20653         Suggested by Eric Blake.
20654
20655 2011-03-13  Bruno Haible  <bruno@clisp.org>
20656
20657         passfd module, part 2, tweaks.
20658         * modules/passfd (Files): Reorder.
20659         (Depends-on): Remove errno.
20660         (Include): Remove <sys/socket.h>, <sys/un.h>.
20661         * lib/passfd.h: Use a GPLv3+ header. Make C++ safe.
20662         * lib/passfd.c: Untabify. Use a GPLv3+ header. Really include the
20663         specification header. Include <sys/socket.h> always. Don't include
20664         <winsock2.h>. Use "#if HAVE_..." instead of "#ifdef HAVE_...".
20665         (sendfd): Clarify that it sets errno when it fails.
20666         (recvfd): Fix specification.
20667
20668 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20669
20670         passfd module, part 2.
20671         * modules/passfd: New file.
20672         * lib/passfd.h: New file.
20673         * lib/passfd.c: New file.
20674
20675 2011-03-12  Bruno Haible  <bruno@clisp.org>
20676
20677         wcswidth, mbswidth: Avoid integer overflow.
20678         * lib/wcswidth.c: Include <limits.h>.
20679         * lib/wcswidth-impl.h (wcswidth): Avoid 'int' overflow.
20680         * lib/mbswidth.c: Include <limits.h>.
20681         (mbsnwidth): Avoid 'int' overflow.
20682         Reported by Jim Meyering.
20683
20684 2011-03-12  Bruno Haible  <bruno@clisp.org>
20685
20686         futimens, utimensat: Avoid endless recursion on Solaris 10.
20687         * lib/sys_stat.in.h (futimens, utimensat): Define with rpl_ prefix on
20688         Solaris.
20689         Reported by Ben Walton <bwalton@artsci.utoronto.ca> via Eric Blake
20690         in <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=8230>.
20691
20692 2011-03-11  Jim Meyering  <meyering@redhat.com>
20693
20694         maint.mk: relax a regexp to accommodate other formatting styles
20695         * top/maint.mk (sc_unmarked_diagnostics): Allow 0 or 1 space
20696         between "ngettext" and the following "(".
20697
20698 2011-03-11  Pádraig Brady <P@draigBrady.com>
20699
20700         maint.mk: suppress a false positive warning
20701         * top/maint.mk ((sc_unmarked_diagnostics): Don't warn when
20702         diagnostics are marked with ngettext.
20703
20704 2011-03-10  Eric Blake  <eblake@redhat.com>
20705
20706         wchar: add explicit dependencies, for Tru64
20707         * modules/mbmemcasecoll (Depends-on): Add wchar.
20708         * modules/mbtowc (Depends-on): Likewise.
20709         * modules/vasnprintf (Depends-on): Likewise.
20710         * modules/unistdio/u-printf-args (Depends-on): Likewise.
20711         * modules/wctomb (Depends-on): Likewise.
20712         Reported by Peter O'Gorman.
20713
20714 2011-03-08  Bruno Haible  <bruno@clisp.org>
20715
20716         passfd module, part 1, tweaks.
20717         * m4/afunix.m4 (gl_SOCKET_AFUNIX): Update AC_REQUIRE invocation.
20718         Improve indentation. Improve AC_MSG_CHECKING messages.
20719         * m4/sockpfaf.m4 (gl_SOCKET_FAMILY_UNIX): New macro, extracted from
20720         gl_SOCKET_FAMILIES.
20721
20722 2011-03-07  Bastien Roucariès  <roucaries.bastien@gmail.com>
20723
20724         passfd module, part 1.
20725         * m4/afunix.m4: New file.
20726         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Also test for UNIX domain
20727         sockets.
20728
20729 2011-03-08  Bruno Haible  <bruno@clisp.org>
20730
20731         regex-quote: New API.
20732         * lib/regex-quote.h: Include <stdbool.h>.
20733         (struct regex_quote_spec): New type.
20734         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20735         New declarations.
20736         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20737         'const struct regex_quote_spec *' argument.
20738         * lib/regex-quote.c (RE_*, PCRE_*): New macros.
20739         (pcre_special): New constant.
20740         (regex_quote_spec_posix, regex_quote_spec_gnu, regex_quote_spec_pcre):
20741         New functions.
20742         (regex_quote_length, regex_quote_copy, regex_quote): Take a
20743         'const struct regex_quote_spec *' argument.
20744         * modules/regex-quote (Depends-on): Add stdbool.
20745         * tests/test-regex-quote.c (check): Update for new API. Add test for
20746         anchored results.
20747         * NEWS: Mention the API change.
20748         Reported by Reuben Thomas and Eric Blake.
20749
20750 2011-03-06  Bruno Haible  <bruno@clisp.org>
20751
20752         regex-quote: Fix creation of POSIX extended regular expressions.
20753         * lib/regex-quote.c (ere_special): Add grouping and alternation
20754         operators.
20755
20756 2011-03-05  Bruno Haible  <bruno@clisp.org>
20757
20758         doc: Improve doc regarding autopoint vs. gnulib.
20759         * doc/gnulib-tool.texi (gettextize and autopoint): Recommend to
20760         disable autopoint while running autoreconf.
20761         Suggested by Ralf Wildenhues.
20762
20763 2011-03-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
20764
20765         Update AC_OPENMP macro for Lahey compiler on GNU/Linux.
20766         * m4/openmp.m4 (AC_OPENMP): Sync from Autoconf.
20767
20768 2011-03-03  Bruce Korb  <bkorb@gnu.org>
20769
20770         parse-duration: remove xalloc.h dependency
20771         * lib/parse-duration.c (parse_period): handle NULL return from
20772         strdup instead of calling xstrdup().
20773         * modules/parse-duration: remove "xalloc" dependency
20774
20775 2011-03-03  Matthew Booth  <mbooth@redhat.com>
20776
20777         bootstrap: honor m4_base when running aclocal
20778         * build-aux/bootstrap: Fix hard-coded use of m4 directory name.
20779
20780 2011-03-02  Jim Meyering  <meyering@redhat.com>
20781
20782         getopt-gnu: relax license from LGPLv3+ to LGPLv2+
20783         * modules/getopt-gnu (License): Relax to LGPLv2+, for augeas,
20784         on request from Matt Booth.
20785
20786 2011-03-01  Eric Blake  <eblake@redhat.com>
20787
20788         test-link: work on Hurd
20789         * tests/test-link.h (test_link): Hurd rejects linking directories
20790         with EISDIR instead of the POSIX-mandated EPERM.
20791
20792 2011-02-28  Paul Eggert  <eggert@cs.ucla.edu>
20793
20794         stdio: simplify by moving files to printf-posix, sigpipe
20795         * m4/stdio_h.m4 (gl_STDIO_H): Do not require gl_ASM_SYMBOL_PREFIX,
20796         since this symbol is needed only if printf is replaced.
20797         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF):
20798         Require gl_ASM_SYMBOL_PREFIX.
20799         * modules/printf-posix (Files): Add m4/asm-underscore.m4.
20800         * modules/sigpipe (Files): Likewise.  Also, add m4/stdio-write.c.
20801         (Depends-on): Add 'raise'.
20802         (configure.ac): Require gl_ASM_SYMBOL_PREFIX.
20803         * modules/stdio (Files): Remove lib/stdio-write.c,
20804         m4/asm-underscore.m4.
20805         (Depends-on): Remove 'raise'.
20806
20807         stdio: simplify by moving gl_STDIN_LARGE_OFFSET to fseeko, ftello
20808         * m4/fseeko.m4 (gl_STDIN_LARGE_OFFSET): Moved here, from ...
20809         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): ... here, because
20810         * modules/ftello (Files): Add m4/fseeko.m4, for gl_STDIN_LARGE_OFFSET.
20811
20812 2011-02-28  Bruno Haible  <bruno@clisp.org>
20813
20814         localcharset: Assume ANSI C behaviour of free().
20815         * lib/localcharset.c (get_charset_aliases): Remove NULL test before
20816         calling free().
20817         Suggested by Simon Josefsson <simon@josefsson.org>.
20818
20819 2011-02-28  Corinna Vinschen  <vinschen@redhat.com>  (tiny change)
20820             Charles Wilson  <cygwin@cwilson.fastmail.fm>  (tiny change)
20821             Bruno Haible  <bruno@clisp.org>  (tiny change)
20822
20823         On Cygwin, use /proc file system instead of win32 API.
20824         * lib/relocatable.c: On Cygwin, use file names from /proc, rather than
20825         Win32 file names.
20826         (DllMain): Simplify by removing Cygwin specific code.
20827         (find_shared_library_fullname): Use Linux specific implementation also
20828         for Cygwin.
20829         (get_shared_library_fullname): Update accordingly.
20830         * lib/progreloc.c: On Cygwin, use file names from /proc, rather than
20831         Win32 file names.
20832         (find_executable): On Cygwin, use /proc, like on Linux. Remove previous
20833         Cygwin specific code.
20834
20835 2011-02-28  Christian Rössel  <christian.roessel@gmx.de>  (tiny change)
20836             Markus Geimer  <m.geimer@fz-juelich.de>  (tiny change)
20837
20838         Fix OpenMP flag detection for various Fortran compilers.
20839         * m4/openmp.m4 (_AC_LANG_OPENMP(Fortran 77)): Use '!$'
20840         OpenMP-conditional compilation construct, to force compile
20841         failure with missing OpenMP flag.
20842         (AC_OPENMP): Add flags for Cray CCE and NEC SX compilers.
20843
20844 2011-02-25  Eric Blake  <eblake@redhat.com>
20845
20846         strstr: expand test coverage
20847         * tests/test-strstr.c (main): Add much shorter trigger.  Fix C89
20848         compilation.
20849         * tests/test-memmem.c (main): Duplicate tests.
20850         * tests/test-strcasestr.c (main): Likewise.
20851         * tests/test-c-strcasestr.c (main): Likewise.
20852
20853 2011-02-25  Jim Meyering  <meyering@redhat.com>
20854
20855         maint.mk: detect missing-NL-at-EOF, too
20856         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Adjust so that
20857         it also detects when a file lacks a newline at EOF.
20858         (require_exactly_one_NL_at_EOF_): Renamed from
20859         detect_empty_lines_at_EOF_.  I opted not to rename the rule,
20860         since people may well have .x-sc_... file names tied to the
20861         existing name.  Suggested by Eric Blake.
20862
20863 2011-02-25  Paul Eggert  <eggert@cs.ucla.edu>
20864
20865         dirname: move m4/dos.m4 functionality into lib/dosname.h
20866
20867         m4/dos.m4 needs to go.  It laboriously invokes the C compiler, and
20868         extracts symbols from it, puts them into config.h; but it's much
20869         easier to use the symbols directly.  filename.h already does this,
20870         but it disagrees with dos.m4 in some respects.  This patch
20871         introduces a different include file dosname.h that packages up
20872         dos.m4, and then later we can work on merging filename.h and
20873         dosname.h.  Applications that need only the easy-to-configure
20874         symbols should consider including dosname.h rather than dirname.h.
20875         * NEWS: Mention incompatible changes.
20876         * m4/dos.m4: Remove.
20877         * lib/dosname.h, modules/dosname: New files.
20878         * lib/dirname.h (ISSLASH, FILE_SYSTEM_PREFIX_LEN):
20879         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE):
20880         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): Move to lib/dosname.h.
20881         * lib/at-func.c, lib/at-func2.c, lib/openat.c, lib/savewd.c:
20882         Include dosname.h, not dirname.h.
20883         * lib/rmdir.c, lib/stat.c, lib/unlink.c, lib/unlinkat.c:
20884         Include dosname.h, for definitions of symbols like ISSLASH
20885         that used to be in config.h.
20886         * m4/dirname.m4 (gl_DIRNAME_LGPL): Do not require gl_AC_DOS.
20887         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
20888         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
20889         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
20890         * modules/dirname-lgpl (Files): Omit m4/dos.m4.
20891         * modules/rmdir (Files): Likewise.
20892         * modules/stat (Files): Likewise.
20893         * modules/unlink (Files): Likewise.
20894         * modules/dirname-lgpl (Depends-on): Add dosname.
20895         * modules/lstat (Depends-on): Likewise.
20896         * modules/openat (Depends-on): Likewise.
20897         * modules/rmdir (Depends-on): Likewise.
20898         * modules/savewd (Depends-on): Likewise.
20899         * modules/stat (Depends-on): Likewise.
20900         * modules/unlink (Depends-on): Likewise.
20901         * modules/openat (Depends-on): Remove dirname-lgpl.
20902         * modules/savewd (Depends-on): Likewise.
20903         * tests/test-dirname.c: Do not use removed symbols like
20904         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.  Instead, use
20905         the remaining symbols, e.g., ISSLASH ('\\').
20906
20907 2011-02-25  Eric Blake  <eblake@redhat.com>
20908
20909         strstr: revert patches that introduced bug and pessimization
20910         * lib/str-two-way.h: Add another reference.
20911         (two_way_short_needle, two_way_long_needle): Revert changes from
20912         2011-02-24; they pessimize search speed.
20913         (critical_factorization): Partially revert changes from
20914         2010-06-22; they violate the requirement that the left half of the
20915         needle be smaller than the period of the needle.
20916
20917 2011-02-24  Paul Eggert  <eggert@cs.ucla.edu>
20918
20919         filenamecat: remove unnecessary dependency on dirname-lgpl
20920         * modules/filenamecat (Depends-on): Remove dirname-lgpl, as there
20921         is no direct dependency, just an indirect one via filenamecat-lgpl.
20922
20923         remove: remove unnecessary use of m4/dos.m4
20924         * m4/remove.m4 (gl_FUNC_REMOVE): Don't require gl_AC_DOS; not needed.
20925         * modules/remove (FILES): Remove m4/dos.m4.
20926
20927         * lib/openat-proc.c: Don't include dirname.h; not needed.
20928
20929         backupfile: remove unnecessary use of m4/dos.m4
20930         * m4/backupfile.m4 (gl_BACKUPFILE): Don't require gl_AC_DOS; none
20931         of its symbols are used by the backupfile code.  backupfile.c does
20932         use a symbol HAVE_DOS_FILE_NAMES, but that symbol is meant only
20933         for the rare case of programs that want all their backup file
20934         names to live within 8+3 limits, and dos.m4 doesn't address that.
20935         * modules/backupfile (Files): Remove m4/dos.m4.
20936
20937 2011-02-24  Jim Meyering  <meyering@redhat.com>
20938
20939         strstr: fix a bug whereby strstr would mistakenly return NULL
20940         * lib/str-two-way.h (two_way_short_needle): Correct off-by-one error
20941         in period calculation.
20942         (two_way_long_needle): Likewise.
20943         The original problem was reported by Mike Stump in
20944         http://thread.gmane.org/gmane.comp.sysutils.autoconf.bugs/7834
20945         Ralf Wildenhues provided the short needle and haystack.
20946         * tests/test-strstr.c: Add Ralf's test case to trigger the bug.
20947         Add a more involved test to trigger the bug in two_way_long_needle.
20948
20949 2011-02-24  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
20950
20951         gnulib-tool: remove use of bold display in help screen
20952         * gnulib-tool (func_usage): Do not use bold display anymore in the
20953         help screen.  That was just meant to be a temporary emphasis for a
20954         backward-incompatible change.
20955
20956 2011-02-23  Bruno Haible  <bruno@clisp.org>
20957
20958         Fix misindentation of preprocessor directives.
20959         * lib/argp-namefrob.h: Reindent preprocessor directives.
20960         * lib/getopt_int.h (struct _getopt_data): Likewise.
20961         * lib/progreloc.c (maybe_executable, find_executable): Likewise.
20962         * lib/vasnprintf.c (decode_long_double): Likewise.
20963         * tests/test-argmatch.c: Insert blank lines, for clarity.
20964         * tests/test-exclude.c: Likewise.
20965
20966 2011-02-22  Bruno Haible  <bruno@clisp.org>
20967
20968         ioctl: Fix for MacOS X in 64-bit mode.
20969         * lib/ioctl.c (rpl_ioctl): Zero-extend, not sign-extend, the request
20970         value.
20971         Suggested by Eric Blake.
20972         Reported by Markus Gothe <nietzsche@lysator.liu.se>.
20973
20974 2011-02-22  Jim Meyering  <meyering@redhat.com>
20975
20976         maint: sc_cpp_indent_check: remove the "only in lib/" restriction
20977         * Makefile (sc_cpp_indent_check): Don't limit the check to files
20978         in lib/.
20979
20980 2011-02-22  Eric Blake  <eblake@redhat.com>
20981
20982         maint: avoid any CDPATH issue
20983         * Makefile (sc_cpp_indent_check): Anchor cd argument.
20984
20985         maint: adjust cpp indentation for my modules, as well
20986         * Makefile (sc_cpp_indent_check): Add my name.
20987         * lib/fbufmode.c: Filter through cppi.
20988         * lib/fpurge.c: Likewise.
20989         * lib/freadable.c: Likewise.
20990         * lib/freading.c: Likewise.
20991         * lib/fwritable.c: Likewise.
20992         * lib/fwriting.c: Likewise.
20993         * lib/sigaction.c: Likewise.
20994
20995 2011-02-22  Jim Meyering  <meyering@redhat.com>
20996
20997         maint: adjust cpp indentation to reflect nesting depth
20998         I.e., in a block of code that begins with an unnested "#if",
20999         put one space between the "#" in column 1 and following token.
21000         For example,
21001         -#include <sys/vfs.h>
21002         +# include <sys/vfs.h>
21003         Do this only in .c files that are part of a module I maintain.
21004         * lib/linkat.c: Filter through cppi.
21005         * lib/nanosleep.c: Likewise.
21006         * lib/openat.c: Likewise.
21007         * lib/openat-die.c: Likewise.
21008         * lib/dup3.c: Likewise.
21009         * lib/fchownat.c: Likewise.
21010         * lib/flock.c: Likewise.
21011         * lib/fsync.c: Likewise.
21012         * lib/fts.c: Likewise.
21013         * lib/getpass.c: Likewise.
21014         * lib/gettimeofday.c: Likewise.
21015         * lib/userspec.c: Likewise.
21016         * Makefile (sc_cpp_indent_check): New rule, to check this.
21017
21018 2011-02-22  Bruno Haible  <bruno@clisp.org>
21019
21020         New module 'wctomb'.
21021         * lib/stdlib.in.h (wctomb): New declaration.
21022         * lib/wctomb.c: New file.
21023         * lib/wctomb-impl.h: New file.
21024         * m4/wctomb.m4: New file.
21025         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_WCTOMB,
21026         REPLACE_WCTOMB.
21027         * modules/stdlib (Makefile.am): Substitute GNULIB_WCTOMB,
21028         REPLACE_WCTOMB.
21029         * modules/wctomb: New file.
21030         * tests/test-stdlib-c++.cc: Test signature of wctomb.
21031         * doc/posix-functions/wctomb.texi: Mention the new module.
21032         * modules/wctob (Depends-on): Add wctomb.
21033
21034 2011-02-22  Bruno Haible  <bruno@clisp.org>
21035
21036         New module 'mbtowc'.
21037         * lib/stdlib.in.h (mbtowc): New declaration.
21038         * lib/mbtowc.c: New file.
21039         * lib/mbtowc-impl.h: New file, from libutf8 with modifications.
21040         * m4/mbtowc.m4: New file.
21041         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MBTOWC,
21042         REPLACE_MBTOWC.
21043         * modules/stdlib (Makefile.am): Substitute GNULIB_MBTOWC,
21044         REPLACE_MBTOWC.
21045         * modules/mbtowc: New file.
21046         * tests/test-stdlib-c++.cc: Test signature of mbtowc.
21047         * doc/posix-functions/mbtowc.texi: Mention the new module.
21048         * modules/btowc (Depends-on): Add mbtowc.
21049
21050 2011-02-22  Bruno Haible  <bruno@clisp.org>
21051
21052         wcrtomb: Add more tests for native Windows platforms.
21053         * tests/test-wcrtomb-w32-1.sh: New file.
21054         * tests/test-wcrtomb-w32-2.sh: New file.
21055         * tests/test-wcrtomb-w32-3.sh: New file.
21056         * tests/test-wcrtomb-w32-4.sh: New file.
21057         * tests/test-wcrtomb-w32-5.sh: New file.
21058         * tests/test-wcrtomb-w32.c: New file.
21059         * modules/wcrtomb-tests (Files): Add them.
21060         (Makefile.am): Arrange to run these tests.
21061         * tests/test-wcrtomb-w32-6.sh: New file, currently unused.
21062         * tests/test-wcrtomb-w32-7.sh: New file, currently unused.
21063
21064 2011-02-20  Bruno Haible  <bruno@clisp.org>
21065
21066         wcrtomb: Enhance test.
21067         * tests/test-wcrtomb.c (main): Add test against bug with NULL argument.
21068
21069 2011-02-20  Bruno Haible  <bruno@clisp.org>
21070
21071         mbrtowc: Tiny optimization.
21072         * lib/mbrtowc.c (mbrtowc): Delay pstate assignment until it is needed.
21073
21074 2011-02-20  Jim Meyering  <meyering@redhat.com>
21075
21076         test-exclude.c: remove unmatched #endif
21077         * tests/test-exclude.c: Remove stray #endif, left over from
21078         the change of a week ago.
21079
21080 2011-02-19  Jim Meyering  <meyering@redhat.com>
21081
21082         git-version-gen: skip "-dirty" check when appropriate
21083         * build-aux/git-version-gen: Don't run any git commands when the
21084         version string comes from .tarball-version.  Prior to this, we
21085         would run git update-index --refresh even from a just-unpacked
21086         tarball directory, and that could affect a .git/ directory in a
21087         parent of the build directory.  Reported by Mike Frysinger.
21088
21089 2011-02-19  Bruno Haible  <bruno@clisp.org>
21090
21091         unictype/property-byname: Reduce the size of the 'data' segment.
21092         * lib/unictype/pr_byname.gperf: Add gperf option '%pic'.
21093
21094 2011-02-19  Bruno Haible  <bruno@clisp.org>
21095
21096         unictype/scripts: Reduce the size of the 'data' segment.
21097         * lib/gen-uni-tables.c (output_scripts_byname): Emit gperf option
21098         '%pic'.
21099         * lib/unictype/scripts_byname.gperf: Regenerated.
21100
21101 2011-02-19  Bruno Haible  <bruno@clisp.org>
21102
21103         stdint: Update documentation.
21104         * doc/posix-headers/stdint.texi: Mention WCHAR_MIN, WCHAR_MAX problem.
21105
21106 2011-02-18  Paul Eggert  <eggert@cs.ucla.edu>
21107
21108         stdint: omit redundant check for wchar.h
21109         * m4/stdint.m4 (gl_STDINT_H): The earlier part of this macro now
21110         always tests whether wchar.h exists, so remove the now-redundant test.
21111
21112 2011-02-18  Bruno Haible  <bruno@clisp.org>
21113
21114         stdint: Cut dependency to module 'wchar'.
21115         * lib/stdint.in.h: Include wchar.h only when HAVE_WCHAR_H is 1. Also
21116         include the necessary prerequisites.
21117         * m4/stdint.m4 (gl_STDINT_H): Test whether wchar.h exists.
21118         * modules/stdint (Depends-on): Remove wchar.
21119         (Makefile.am): Substitute HAVE_WCHAR_H.
21120         This reverts part of a 2007-01-06 commit. Reported by Paul Eggert.
21121
21122 2011-02-18  Eric Blake  <eblake@redhat.com>
21123
21124         longlong: skip, rather than fail, on cross-compilation
21125         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Avoid aborting configure
21126         when cross-compiling; regression from 2011-02-16.
21127
21128 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21129
21130         * NEWS: Mention 2011-02-08 change to stdlib.
21131
21132 2011-02-17  Bruno Haible  <bruno@clisp.org>
21133
21134         getloadavg: Add comments about platforms.
21135         * m4/getloadavg.m4: Add comment.
21136         * lib/getloadavg.c: Likewise.
21137
21138 2011-02-17  Bruno Haible  <bruno@clisp.org>
21139
21140         getloadavg: Fix link error on Solaris 2.6.
21141         * modules/getloadavg (Link): New section.
21142         * modules/getloadavg-tests (Makefile.am): Use GETLOADAVG_LIBS for
21143         linking test-getloadavg.
21144         * doc/glibc-functions/getloadavg.texi: Mention that Solaris 2.6 lacks
21145         getloadavg.
21146
21147 2011-02-17  Paul Eggert  <eggert@cs.ucla.edu>
21148
21149         * lib/getloadavg.c (getloadavg) [sgi]: Make ldav_off of type ptrdiff_t.
21150         It was 'int', but this doesn't match the IRIX 6.5 manual.
21151         Suggested by Bruno Haible in
21152         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00207.html>.
21153
21154 2011-02-17  Bruno Haible  <bruno@clisp.org>
21155
21156         havelib: Fix comments.
21157         * m4/lib-link.m4 (AC_LIB_RPATH): Update comments after 2007-01-02
21158         change.
21159
21160 2011-02-17  Bruno Haible  <bruno@clisp.org>
21161
21162         havelib: Update config.rpath.
21163         * build-aux/config.rpath: Update to match libtool.m4 from libtool-2.4.
21164
21165 2011-02-17  Bruno Haible  <bruno@clisp.org>
21166
21167         getloadavg test: Add some plausibility checks.
21168         * tests/test-getloadavg.c (check_avg): Print a warning when the value
21169         is improbable.
21170
21171 2011-02-16  Eric Blake  <eblake@redhat.com>
21172
21173         maintainer-makefile: make syntax-check a no-op from tarballs
21174         * top/maint.mk (no-vc-detected): New rule.
21175         (local-checks-available): Use it to avoid hanging if someone tries
21176         'make syntax-check' from a tarball.  Also append to any non-syntax
21177         checks already defined in cfg.mk.
21178
21179 2011-02-16  Paul Eggert  <eggert@cs.ucla.edu>
21180
21181         longlong: tune, particularly for common case of c99
21182
21183         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Don't bother compiling
21184         or running anything if c99, or if unsigned long long int does not
21185         work.  In either case, we know the answer without further tests.
21186         Do not compile _AC_TYPE_LONG_LONG_SNIPPET twice.  Instead, compile
21187         it at most once, and use its results for both long long int and
21188         unsigned long long int.  This is more likely to be efficient in
21189         the common case where the program wants to check for both long
21190         long int and unsigned long long int.
21191         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Don't bother compiling if c99,
21192         since the answer is already known.
21193
21194 2011-02-15  Paul Eggert  <eggert@cs.ucla.edu>
21195
21196         getloadavg: set errno
21197         * lib/getloadavg.c: Set errno when returning -1.  If no other
21198         error number looks appropriate, set it to ENOSYS if the getloadavg
21199         looks like it can't possibly ever work, ENOTSUP otherwise.
21200         Suggested by Bruno Haible in
21201         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00187.html>.
21202
21203         getloadavg: trim unused parts and speed up 'configure'
21204         * NEWS: Document this.
21205         * lib/getloadavg.c: Ignore HAVE_GETLOADAVG; this file is now
21206         always compiled if getloadavg is absent.
21207         Move test code to ...
21208         * tests/test-getloadavg.c: New file, containing previous
21209         contents of test from lib/getloadavg.c.  It also contains
21210         suggestions by Bruno Haible in
21211         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00186.html>.
21212         * modules/getloadavg-tests: New file.
21213         * m4/getloadavg.m4 (gl_GETLOADAVG): Do not check for getloadavg twice.
21214         Do tests in the same order as they're needed for getloadavg.c.
21215         Omit setgid-related tests that generate symbols KMEM_GROUP,
21216         NEET_SETGID, GETLOADAVG_PRIVILEGED; nobody seems to use those any more.
21217         Do only the tests that are needed to see whether the system has
21218         getloadavg, moving the other tests into ...
21219         (gl_PREREQ_GETLOADAVG): ... here.  Do not define obsolete symbol
21220         NLIST_NAME_UNION; nobody should be using it.  Do not define
21221         symbols C_GETLOADAVG and HAVE_GETLOADAVG; they're no longer
21222         relevant, as the user of this module shouldn't care how getloadavg
21223         is implemented.
21224
21225         getloadavg: omit unused var
21226         * lib/getloadavg.c (getloadavg): Omit unused local variable.
21227
21228 2011-02-15  Jim Meyering  <meyering@redhat.com>
21229
21230         doc: update users.txt
21231         * users.txt: Update iwhd's URL.
21232
21233 2011-02-13  Bruno Haible  <bruno@clisp.org>
21234
21235         Consistent macro naming for macros that use GCC __attribute__.
21236         * lib/di-set.h (_GL_ATTRIBUTE_NONNULL): Renamed from
21237         _ATTRIBUTE_NONNULL_.
21238         * lib/ino-map.h (_GL_ATTRIBUTE_NONNULL): Likewise.
21239         * lib/hash.h (_GL_ATTRIBUTE_WUR): Renamed from ATTRIBUTE_WUR.
21240         * lib/ignore-value.h (_GL_ATTRIBUTE_DEPRECATED): Renamed from
21241         ATTRIBUTE_DEPRECATED.
21242         * lib/openat.h (_GL_ATTRIBUTE_NORETURN): Renamed from
21243         ATTRIBUTE_NORETURN.
21244         * lib/sigpipe-die.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21245         * lib/xmemdup0.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21246         * lib/xstrtol.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21247         * lib/xalloc.h (_GL_ATTRIBUTE_NORETURN): Likewise.
21248         (_GL_ATTRIBUTE_MALLOC): Renamed from ATTRIBUTE_MALLOC.
21249         (_GL_ATTRIBUTE_ALLOC_SIZE): Renamed from ATTRIBUTE_ALLOC_SIZE.
21250         * lib/version-etc.h (_GL_ATTRIBUTE_SENTINEL): Renamed from
21251         ATTRIBUTE_SENTINEL.
21252         * lib/safe-alloc.h (_GL_ATTRIBUTE_RETURN_CHECK): Renamed from
21253         ATTRIBUTE_RETURN_CHECK.
21254         * tests/test-ignore-value.c (_GL_ATTRIBUTE_RETURN_CHECK): Likewise.
21255         * tests/test-argmatch.c (_GL_ATTRIBUTE_NORETURN): Renamed from
21256         ATTRIBUTE_NORETURN.
21257         * tests/test-exclude.c (_GL_ATTRIBUTE_NORETURN): Likewise.
21258         Reported by Paul Eggert.
21259
21260 2011-02-13  Bruno Haible  <bruno@clisp.org>
21261
21262         Don't interfere with a program's definition of __attribute__.
21263         * lib/argp.h (__attribute__): Remove definition.
21264         (_GL_ATTRIBUTE_FORMAT): New macro.
21265         (argp_error, __argp_error, argp_failure, __argp_failure): Use it.
21266         * lib/argp-fmtstream.h (__attribute__): Remove definition.
21267         (_GL_ATTRIBUTE_FORMAT): New macro.
21268         (__argp_fmtstream_printf, argp_fmtstream_printf): Use it.
21269         * lib/argp-help.c (hol_entry_long_iterate): Use __attribute__ only for
21270         GCC 3 or newer.
21271         * lib/error.h (__attribute__): Remove definition.
21272         (_GL_ATTRIBUTE_FORMAT): New macro.
21273         (error, error_at_line): Use it.
21274         * lib/hash.h (__attribute__): Remove definition.
21275         (ATTRIBUTE_WUR): Update definition. Define always.
21276         * lib/openat.h (__attribute__): Remove definition.
21277         (ATTRIBUTE_NORETURN): Update definition. Define always.
21278         * lib/sigpipe-die.h (__attribute__): Remove definition.
21279         (ATTRIBUTE_NORETURN): Update definition. Define always.
21280         * lib/vasnprintf.h (__attribute__): Remove definition.
21281         (_GL_ATTRIBUTE_FORMAT): New macro.
21282         (asnprintf, vasnprintf): Use it.
21283         * lib/xalloc.h (__attribute__): Remove definition.
21284         (ATTRIBUTE_NORETURN): Update definition. Define always.
21285         (ATTRIBUTE_MALLOC, ATTRIBUTE_ALLOC_SIZE): Define always.
21286         * lib/xmemdup0.h (__attribute__): Remove definition.
21287         (ATTRIBUTE_NORETURN): Update definition. Define always.
21288         * lib/xprintf.h (__attribute__): Remove definition.
21289         (_GL_ATTRIBUTE_FORMAT): New macro.
21290         (xprintf, xvprintf, xfprintf, xvfprintf): Use it.
21291         * lib/xstrtol.h (__attribute__): Remove definition.
21292         (ATTRIBUTE_NORETURN): Update definition. Define always.
21293         * lib/xvasprintf.h (__attribute__): Remove definition.
21294         (_GL_ATTRIBUTE_FORMAT): New macro.
21295         (xasprintf, xvasprintf): Use it.
21296         * tests/test-argmatch.c (__attribute__): Remove definition.
21297         (ATTRIBUTE_NORETURN): Update definition. Define always.
21298         * tests/test-exclude.c (__attribute__): Remove definition.
21299         (ATTRIBUTE_NORETURN): Update definition. Define always.
21300         Reported by Paul Eggert.
21301
21302 2011-02-13  Bruno Haible  <bruno@clisp.org>
21303
21304         mbrtowc: Add more tests for native Windows platforms.
21305         * tests/test-mbrtowc-w32-1.sh: New file.
21306         * tests/test-mbrtowc-w32-2.sh: New file.
21307         * tests/test-mbrtowc-w32-3.sh: New file.
21308         * tests/test-mbrtowc-w32-4.sh: New file.
21309         * tests/test-mbrtowc-w32-5.sh: New file.
21310         * tests/test-mbrtowc-w32.c: New file.
21311         * modules/mbrtowc-tests (Files): Add them.
21312         (Makefile.am): Arrange to run these tests.
21313         * tests/test-mbrtowc-w32-6.sh: New file, currently unused.
21314         * tests/test-mbrtowc-w32-7.sh: New file, currently unused.
21315
21316 2011-02-13  Bruno Haible  <bruno@clisp.org>
21317
21318         mbrtowc: Work around native Windows bug.
21319         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Detect native Windows bug. Use the
21320         guess when no suitable locale for testing was found.
21321         * doc/posix-functions/mbrtowc.texi: Mention the native Windows bug.
21322
21323 2011-02-13  Bruno Haible  <bruno@clisp.org>
21324
21325         mbsinit: Work around mingw bug.
21326         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Replace mbsinit also on mingw.
21327         * lib/mbsinit.c (mbsinit): Provide an alternate definition for native
21328         Windows.
21329         * doc/posix-functions/mbsinit.texi: Mention the mingw bug.
21330
21331 2011-02-13  Bruno Haible  <bruno@clisp.org>
21332
21333         mbsinit: Don't crash for a NULL argument.
21334         * lib/mbsinit.c (mbsinit): When the argument is NULL, return 1.
21335         * tests/test-mbsinit.c (mbsinit): Check this behaviour.
21336
21337 2011-02-13  Bruno Haible  <bruno@clisp.org>
21338
21339         Don't interfere with a program's definition of __attribute__.
21340         * lib/stdio.in.h (__attribute__): Remove definition.
21341         (_GL_ATTRIBUTE_FORMAT, _GL_ATTRIBUTE_FORMAT_PRINTF): New macros.
21342         (dprintf, fprintf, obstack_printf, obstack_printf, obstack_vprintf,
21343         printf, snprintf, sprintf, asprintf, vasprintf, vdprintf, vfprintf,
21344         vsnprintf, vsprintf): Use _GL_ATTRIBUTE_FORMAT_PRINTF.
21345         * lib/string.in.h (__attribute__): Remove definition.
21346         Reported by Paul Eggert.
21347
21348 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21349
21350         stdlib: don't get in the way of non-GCC __attribute__
21351         See thread starting at
21352         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00161.html>.
21353         Revert previous stdlib change, installing the following instead:
21354         * lib/stdlib.in.h (__attribute__): Remove.  We do not want
21355         to get in the way of a non-GCC compiler that supports __attribute__.
21356         (_GL_ATTRIBUTE_RETURN): New macro.
21357         (_Exit): Use it instead of __attribute__.
21358
21359 2011-02-12  Bruno Haible  <bruno@clisp.org>
21360
21361         quotearg test: Avoid test failure on mingw.
21362         * tests/test-quotearg.sh: Convert the locale identifier from native
21363         Windows syntax to Unix syntax.
21364
21365 2011-02-12  Bruno Haible  <bruno@clisp.org>
21366
21367         setlocale: Prefer gnulib's override over libintl's override.
21368         * lib/locale.in.h (GNULIB_defined_setlocale): New macro.
21369         * lib/gettext.h (setlocale): Redefine to rpl_setlocale if
21370         GNULIB_defined_setlocale is set.
21371
21372 2011-02-12  Paul Eggert  <eggert@cs.ucla.edu>
21373
21374         stdlib: support non-GCC __attribute__
21375
21376         Fix a serious and tricky problem encountered when attempting to
21377         add the getloadavg module to Emacs.  Emacs worked fine on RHEL
21378         5.5, but it crashed due to memory corruption on Solaris 10 with
21379         Sun C 5.11.  Emacs normally ORs 3-bit tags into their low-order
21380         bits that are otherwise zero.  This tagging is optional inside
21381         Emacs but is preferred and is used when __attribute__ ((__aligned
21382         (8))) works, as it does with both recent-enough GCC and with Sun C
21383         5.11.  However, Sun C 5.11 is not GCC and does not #define
21384         __GNUC__ and __GNUC_MINOR__.
21385
21386         When I added the getloadavg module to Emacs, it brought in
21387         stdlib.in.h, which contained this fragment:
21388
21389            #ifndef __attribute__
21390            # if __GNUC__ < 2 || (__GNUC__ == 2 && __GNUC_MINOR__ < 8)
21391            #  define __attribute__(Spec)   /* empty */
21392            # endif
21393            #endif
21394
21395         When files that include <stdlib.h> were compiled with Sun C 5.11,
21396         the above code disabled __attribute__ ((__aligned (8))), which
21397         caused variables to not be properly aligned, which eventually led
21398         to the pointer corruption mentioned above.  (This was a bit hard
21399         to diagnose, unfortunately.)
21400
21401         Several "#define __attribute__(X) /* empty */" code snippets need
21402         to be eradicated from Gnulib to work with non-GCC compilers that
21403         support __attribute__.  The Autoconf way to do this is to test for
21404         each kind of attribute that we want support for, and selectively
21405         enable that in source code.
21406
21407         Fix this problem just for stdlib.h, by adding a test for the
21408         __noreturn__ attribute, and change stdlib.in.h to use that test
21409         when needed.  This technique can be easily generalized to the
21410         other *.in.h files and attributes, and a similar technique can be
21411         used for *.h and *.c files.  This patch is enough to solve the
21412         problem for Emacs + getloadavg, and I thought I'd publish it for
21413         feedback before undertaking further, similar fixes in other
21414         modules.
21415
21416         This patch does not arrange to #define HAVE_ATTRIBUTE_NORETURN
21417         because it's not needed for stdlib.h.  It merely substitutes the
21418         value directly into stdlib.h.  We may well need to #define it, or
21419         similar symbols, for other modules, but it's nice to also have an
21420         option to not #define it for applications like Emacs that do not
21421         need it.
21422
21423         * lib/stdlib.in.h (__attribute__): Do not #define.
21424         (_GL_ATTRIBUTE_NORETURN): New macro, which in stdlib.h needs to
21425         be defined only if the _Exit module is also used.
21426         * m4/_Exit.m4 (gl_FUNC__EXIT): Require gl_ATTRIBUTE_NORETURN.
21427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Subst
21428         HAVE_ATTRIBUTE_NORETURN and default it to 1, its value on GNU
21429         platforms.
21430         * modules/_Exit (Files): Add m4/attribute.m4.
21431         * modules/stdlib (Makefile.am): Substitute HAVE_ATTRIBUTE_NORETURN.
21432         * m4/attribute.m4: New file.
21433
21434 2011-02-12  Bruno Haible  <bruno@clisp.org>
21435
21436         wcsrtombs: Work around bug on native Windows.
21437         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_NULL): Test against mingw bug.
21438         * lib/wcsrtombs.c (rpl_wcsrtombs): When dest is NULL, pass SIZE_MAX
21439         instead of len.
21440         * doc/posix-functions/wcsrtombs.texi: Document mingw bug.
21441
21442 2011-02-12  Bruno Haible  <bruno@clisp.org>
21443
21444         mbsrtowcs: Work around bug on native Windows.
21445         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Require gt_LOCALE_FR. Test
21446         against mingw bug.
21447         * doc/posix-functions/mbsrtowcs.texi: Document mingw bug.
21448
21449 2011-02-12  Bruno Haible  <bruno@clisp.org>
21450
21451         Avoid setlocale bugs in tests.
21452         * modules/btowc (Dependencies): Add setlocale.
21453         * modules/c-strcase (Dependencies): Likewise.
21454         * modules/mbmemcasecmp (Dependencies): Likewise.
21455         * modules/mbmemcasecoll (Dependencies): Likewise.
21456         * modules/mbrtowc (Dependencies): Likewise.
21457         * modules/mbscasecmp (Dependencies): Likewise.
21458         * modules/mbscasestr (Dependencies): Likewise.
21459         * modules/mbschr (Dependencies): Likewise.
21460         * modules/mbscspn (Dependencies): Likewise.
21461         * modules/mbsinit (Dependencies): Likewise.
21462         * modules/mbsncasecmp (Dependencies): Likewise.
21463         * modules/mbsnrtowcs (Dependencies): Likewise.
21464         * modules/mbspbrk (Dependencies): Likewise.
21465         * modules/mbspcasecmp (Dependencies): Likewise.
21466         * modules/mbsrchr (Dependencies): Likewise.
21467         * modules/mbsrtowcs (Dependencies): Likewise.
21468         * modules/mbsspn (Dependencies): Likewise.
21469         * modules/mbsstr (Dependencies): Likewise.
21470         * modules/nl_langinfo (Dependencies): Likewise.
21471         * modules/quotearg (Dependencies): Likewise.
21472         * modules/unicase/locale-language (Dependencies): Likewise.
21473         * modules/unicase/ulc-casecmp (Dependencies): Likewise.
21474         * modules/unicase/ulc-casecoll (Dependencies): Likewise.
21475         * modules/unigbrk/ulc-grapheme-breaks (Dependencies): Likewise.
21476         * modules/unistdio/u8-vasnprintf (Dependencies): Likewise.
21477         * modules/unistdio/u16-vasnprintf (Dependencies): Likewise.
21478         * modules/unistdio/u32-vasnprintf (Dependencies): Likewise.
21479         * modules/unistdio/ulc-vasnprintf (Dependencies): Likewise.
21480         * modules/uniwbrk/ulc-wordbreaks (Dependencies): Likewise.
21481         * modules/vasnprintf-posix (Dependencies): Likewise.
21482         * modules/wcrtomb (Dependencies): Likewise.
21483         * modules/wcsnrtombs (Dependencies): Likewise.
21484         * modules/wcsrtombs (Dependencies): Likewise.
21485
21486 2011-02-12  Bruno Haible  <bruno@clisp.org>
21487
21488         setlocale: Workaround native Windows bug.
21489         * lib/setlocale.c (rpl_setlocale): On native Windows, when setlocale
21490         succeeds but sets LC_CTYPE to "C", report a failure.
21491         * tests/test-setlocale2.sh: New file.
21492         * tests/test-setlocale2.c: New file.
21493         * modules/setlocale-tests (Files): Add the new files.
21494         (Makefile.am): Enable test-setlocale2.sh test.
21495         * doc/posix-functions/setlocale.texi: Mention workaround.
21496
21497 2011-02-11  Bruno Haible  <bruno@clisp.org>
21498
21499         Tests for module 'setlocale'.
21500         * modules/setlocale-tests: New file.
21501         * tests/test-setlocale1.sh: New file.
21502         * tests/test-setlocale1.c: New file.
21503
21504         New module 'setlocale'.
21505         * lib/locale.in.h (setlocale): New declaration.
21506         * lib/setlocale.c: New file, based on
21507         gettext/gettext-runtime/intl/setlocale.c.
21508         * m4/setlocale.m4: New file.
21509         * m4/locale_h.m4 (gl_LOCALE_H): Test whether setlocale is declared.
21510         (gl_LOCALE_H_DEFAULTS): Initialize GNULIB_SETLOCALE, REPLACE_SETLOCALE.
21511         * modules/locale (Makefile.am): Substitute GNULIB_SETLOCALE,
21512         REPLACE_SETLOCALE.
21513         * modules/setlocale: New file.
21514         * tests/test-locale-c++.cc: Test the declaration of setlocale.
21515         * doc/posix-functions/setlocale.texi: Mention the new module.
21516
21517 2011-02-11  Bruno Haible  <bruno@clisp.org>
21518
21519         Prepare for locale dependent tests on mingw.
21520         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, don't try "ar"
21521         because it has the wrong locale encoding.
21522         * m4/locale-fr.m4 (gt_LOCALE_FR): On native Windows, try
21523         French_France.1252 instead of "fr".
21524         (gt_LOCALE_FR_UTF8): On native Windows, try French_France.65001.
21525         * m4/locale-ja.m4 (gt_LOCALE_JA): On native Windows, don't try "ja"
21526         because it has the wrong locale encoding.
21527         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Require AC_CANONICAL_HOST. On
21528         native Windows, try Turkish_Turkey.65001.
21529         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): On native Windows, try
21530         Chinese_China.54936.
21531
21532         Prepare for locale dependent tests on mingw.
21533         * m4/locale-ar.m4 (gt_LOCALE_AR): On native Windows, call setlocale
21534         differently.
21535         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Likewise.
21536         * m4/locale-ja.m4 (gt_LOCALE_JA): Likewise.
21537         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
21538         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
21539
21540 2011-02-11  Eric Blake  <eblake@redhat.com>
21541
21542         strptime: avoid compiler warnings
21543         * lib/strptime.c (__strptime_internal) [!_NL_CURRENT]: Avoid
21544         compiler warnings about dead code.
21545         Reported by Daniel P. Berrange.
21546
21547 2011-02-11  Thien-Thi Nguyen  <ttn@gnuvola.org>
21548
21549         doc: update users.txt
21550         * users.txt: Add rcs.
21551
21552 2011-02-10  John W. Eaton  <jwe@gnu.org>
21553
21554         doc: update users.txt
21555         * users.txt: Add octave.
21556
21557 2011-02-10  Jim Meyering  <meyering@redhat.com>
21558
21559         doc: update users.txt
21560         * users.txt: Add iwhd.
21561
21562 2011-02-09  Bruno Haible  <bruno@clisp.org>
21563
21564         gnulib-tool: Make copyright notice adjustment more robust.
21565         * gnulib-tool (func_import): In sed_transform_main_lib_file,
21566         sed_transform_build_aux_file, sed_transform_testsrelated_lib_file,
21567         allow a line break to occur after "GNU" in "GNU [Lesser] General Public
21568         License".
21569         Reported by Glenn Morris <rgm@gnu.org> via Paul Eggert.
21570
21571 2011-02-06  Bruno Haible  <bruno@clisp.org>
21572
21573         New module 'towctrans'.
21574         * modules/towctrans: New file.
21575         * lib/wctype.in.h (towctrans): New declaration.
21576         * lib/towctrans.c: New file.
21577         * lib/towctrans-impl.h: New file.
21578         * m4/towctrans.m4: New file.
21579         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether towctrans is declared.
21580         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_TOWCTRANS.
21581         * modules/wctype-h (Makefile.am): Substitute GNULIB_TOWCTRANS.
21582         * tests/test-wctype-h-c++.cc: Test the declaration of towctrans.
21583         * doc/posix-functions/towctrans.texi: Mention the new module.
21584
21585 2011-02-06  Bruno Haible  <bruno@clisp.org>
21586
21587         New module 'wctrans'.
21588         * modules/wctrans: New file.
21589         * lib/wctype.in.h (wctrans): New declaration.
21590         * lib/wctrans.c: New file.
21591         * lib/wctrans-impl.h: New file.
21592         * m4/wctrans.m4: New file.
21593         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctrans is declared.
21594         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTRANS.
21595         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTRANS.
21596         * tests/test-wctype-h-c++.cc: Test the declaration of wctrans.
21597         * doc/posix-functions/wctrans.texi: Mention the new module.
21598
21599 2011-02-06  Bruno Haible  <bruno@clisp.org>
21600
21601         New module 'iswctype'.
21602         * modules/iswctype: New file.
21603         * lib/wctype.in.h (iswctype): New declaration.
21604         * lib/iswctype.c: New file.
21605         * lib/iswctype-impl.h: New file.
21606         * m4/iswctype.m4: New file.
21607         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether iswctype is declared.
21608         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_ISWCTYPE.
21609         * modules/wctype-h (Makefile.am): Substitute GNULIB_ISWCTYPE.
21610         * tests/test-wctype-h-c++.cc: Test the declaration of iswctype.
21611         * doc/posix-functions/iswctype.texi: Mention the new module and the
21612         HP-UX 11.00 problem.
21613
21614 2011-02-06  Bruno Haible  <bruno@clisp.org>
21615
21616         New module 'wctype'.
21617         * modules/wctype: Change to represent the wctype() substitute.
21618         * lib/wctype.in.h (wctype): New declaration.
21619         * lib/wctype.c: New file.
21620         * lib/wctype-impl.h: New file.
21621         * m4/wctype.m4: New file.
21622         * m4/wctype_h.m4 (gl_WCTYPE_H): Test whether wctype is declared.
21623         (gl_WCTYPE_H_DEFAULTS): Initialize GNULIB_WCTYPE.
21624         * modules/wctype-h (Makefile.am): Substitute GNULIB_WCTYPE.
21625         * tests/test-wctype-h-c++.cc: Test the declaration of wctype.
21626         * doc/posix-functions/wctype.texi: Mention the new module and the
21627         HP-UX 11.00 problem.
21628
21629 2011-02-06  Bruno Haible  <bruno@clisp.org>
21630
21631         wctype-h: Ensure wctype_t and wctrans_t are defined.
21632         * lib/wctype.in.h (wctype_t, wctrans_t): New type declarations.
21633         * m4/wctype_h.m4 (gl_WCTYPE_H): Determine HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21634         (gl_WCTYPE_H_DEFAULTS): Initialize HAVE_WCTYPE_T, HAVE_WCTRANS_T.
21635         * modules/wctype-h (Makefile.am): Substitute HAVE_WCTYPE_T,
21636         HAVE_WCTRANS_T.
21637         * tests/test-wctype-h.c: Check that wctype_t and wctrans_t are defined.
21638
21639 2011-02-09  Paul Eggert  <eggert@cs.ucla.edu>
21640
21641         flock: fix license typo
21642
21643         * lib/flock.c: Fix typo in license.  One of the "Lesser"s was
21644         omitted.
21645
21646 2011-02-08  Bruno Haible  <bruno@clisp.org>
21647
21648         Split large sed scripts, for HP-UX sed.
21649         * modules/math (Makefile.am): Split sed scripts around 50 sed commands,
21650         to avoid HP-UX limit of 99 commands, in the near future.
21651         * modules/stdlib (Makefile.am): Likewise.
21652         * modules/unistd (Makefile.am): Likewise.
21653         * modules/wchar (Makefile.am): Likewise.
21654         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
21655         Suggestion by Ralf Wildenhues <Ralf.Wildenhues@gmx.de> in
21656         <http://lists.gnu.org/archive/html/bug-gnulib/2010-01/msg00216.html>.
21657
21658 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21659             Bruno Haible  <bruno@clisp.org>
21660
21661         stdlib: improve random_r modularization
21662         * lib/stdlib.in.h: Encapsulate all the stuff having to do with
21663         random_r inside "#if @GNULIB_RANDOM_R@", so that it's clearer that
21664         you also need the random_r module to get this material right.
21665         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Move check for random.h here ...
21666         * m4/stdlib_h.m4 (gl_STDLIB_H): ... from here.
21667         (gl_STDLIB_H_DEFAULTS): Default HAVE_RANDOM_H to 1, and AC_SUBST it.
21668
21669 2011-02-08  Paul Eggert  <eggert@cs.ucla.edu>
21670
21671         stdlib: don't depend on stdint
21672         * lib/stdlib.in.h: Don't include <stdint.h> merely because
21673         GNULIB_POSIXCHECK is defined.  GNULIB_POSIXCHECK seems to
21674         be independent of whether stdint.h is needed.
21675         * m4/random_r.m4 (gl_FUNC_RANDOM_R): Check for struct random_data
21676         here, instead of ...
21677         * m4/stdlib_h.m4 (gl_STDLIB_H): ... here.  Applications that need
21678         struct random_data should be using the random_r module, not just
21679         the stdlib module (which wouldn't make sense: what package needs
21680         just struct random_data without also needing random_r?).
21681         * modules/stdlib (Depends-on): Remove stdint.
21682
21683         getloadavg: don't depend on c-strtod, cloexec, fcntl-safer
21684         See the thread rooted at
21685         <http://lists.gnu.org/archive/html/bug-gnulib/2011-02/msg00090.html>.
21686         * lib/getloadavg.c: Do not include c-strtod.h, cloexec.h, or fcntl--.h.
21687         Include <fcntl.h> only if (defined __linux__ || defined __CYGWIN__
21688         || defined SUNOS_5 || (defined LOAD_AVE_TYPE && !  defined
21689         __VMS)); previously it was always included (via fcntl--.h).
21690         (getloadavg): Do not use c_strtod.  Instead, approximate it by
21691         hand; this is good enough for load averages.  Also, do not use
21692         set_cloexec_flag; instead, use the O_CLOEXEC and F_DUPFD_CLOEXEC
21693         flags directly if available and don't bother otherwise.  (Packages
21694         that need the extra reliability should use the modules that define
21695         these flags on older platforms that lack them.)
21696         * modules/getloadavg (Depends-on): Remove c-strtod, cloexec,
21697         fcntl-safer.
21698
21699 2011-02-08  Jim Meyering  <meyering@redhat.com>
21700
21701         di-set.h, ino-map.h: add multiple-inclusion guard
21702         Technically, the guard is required only for ino-map.h, due to its
21703         INO_MAP_INSERT_FAILURE definition, but do both for consistency.
21704         * lib/di-set.h: Add file-spanning #ifndef _GL_DI_SET_H.
21705         * lib/ino-map.h: Likewise.
21706
21707 2011-02-06  Bruno Haible  <bruno@clisp.org>
21708
21709         iswblank: Ensure declaration on glibc systems.
21710         * m4/iswblank.m4 (gl_FUNC_ISWBLANK): Require gl_USE_SYSTEM_EXTENSIONS.
21711         * modules/iswblank (Dependencies): Add 'extensions'.
21712         * doc/posix-functions/iswblank.texi: Document the glibc problem.
21713
21714 2011-02-06  Bruno Haible  <bruno@clisp.org>
21715
21716         New module 'iswblank'.
21717         * lib/wctype.in.h (iswblank): Don't declare if GNULIB_ISWBLANK is 0.
21718         * modules/iswblank: New file.
21719         * modules/wctype-h (Files): Remove lib/iswblank.c.
21720         (Makefile.am): Substitute GNULIB_ISWBLANK.
21721         * m4/iswblank.m4: New file, partially extracted from m4/wctype_h.m4.
21722         * m4/wctype_h.m4 (gl_WCTYPE_MODULE_INDICATOR): New macro.
21723         (gl_WCTYPE_H_DEFAULTS): New macro.
21724         (gl_WCTYPE_H): Require it. Remove iswblank related code.
21725         * modules/iswblank-tests: New file.
21726         * tests/test-iswblank.c: New file, extraced from tests/test-wctype-h.c.
21727         * tests/test-wctype-h.c (main): Remove iswblank tests.
21728         * tests/test-wctype-h-c++.cc: Guard the signature test of iswblank.
21729         * doc/posix-functions/iswblank.texi: Mention module 'iswblank' instead
21730         of 'wctype-h'.
21731         * NEWS: Mention the change.
21732         * modules/mbchar (Depends-on): Add iswblank.
21733
21734 2011-02-08  Bruno Haible  <bruno@clisp.org>
21735
21736         di-set tests: Refactor.
21737         * tests/test-di-set.c: Include di-set.h early. Include macros.h. Drop
21738         unnecessary includes.
21739         (ASSERT): Remove macro.
21740         (main): Make C90 compliant by avoiding variable declaration after
21741         statement.
21742         * modules/di-set-tests (Files): Add tests/macros.h.
21743
21744 2011-02-08  Bruno Haible  <bruno@clisp.org>
21745
21746         ino-map tests: Refactor.
21747         * tests/test-ino-map.c: Include ino-map.h early. Include macros.h. Drop
21748         unnecessary includes.
21749         (ASSERT): Remove macro.
21750         (main): Make C90 compliant by avoiding variable declaration after
21751         statement.
21752         * modules/ino-map-tests (Files): Add tests/macros.h.
21753
21754 2011-02-08  Jim Meyering  <meyering@redhat.com>
21755
21756         di-set: add "const" to a cast
21757         * lib/di-set.c (di_set_insert): Cast hash_insert0 argument to
21758         "(void const *)", not "(void *)".  Spotted by Bruno Haible.
21759
21760 2011-02-06  Bruno Haible  <bruno@clisp.org>
21761
21762         Rename module 'wctype' to 'wctype-h'.
21763         * modules/wctype-h: Renamed from modules/wctype.
21764         * modules/wctype: Simplyfy to a redirection to 'wctype-h'.
21765         * modules/wctype-h-tests: Renamed from modules/wctype-tests.
21766         (Files, Depends-on, Makefile.am): Update.
21767         * modules/wctype-h-c++-tests: Renamed from modules/wctype-c++-tests.
21768         (Files, Makefile.am): Update.
21769         * tests/test-wctype-h.c: Renamed from tests/test-wctype.c.
21770         * tests/test-wctype-h-c++.cc: Renamed from tests/test-wctype-c++.cc.
21771         * doc/posix-headers/wctype.texi: Update.
21772         * doc/posix-functions/iswalnum.texi: Update.
21773         * doc/posix-functions/iswalpha.texi: Update.
21774         * doc/posix-functions/iswblank.texi: Update.
21775         * doc/posix-functions/iswcntrl.texi: Update.
21776         * doc/posix-functions/iswdigit.texi: Update.
21777         * doc/posix-functions/iswgraph.texi: Update.
21778         * doc/posix-functions/iswlower.texi: Update.
21779         * doc/posix-functions/iswprint.texi: Update.
21780         * doc/posix-functions/iswpunct.texi: Update.
21781         * doc/posix-functions/iswspace.texi: Update.
21782         * doc/posix-functions/iswupper.texi: Update.
21783         * doc/posix-functions/iswxdigit.texi: Update.
21784         * doc/posix-functions/towlower.texi: Update.
21785         * doc/posix-functions/towupper.texi: Update.
21786         * NEWS: Mention the change.
21787         * modules/fnmatch (Dependencies): Add wctype-h, remove wctype.
21788         * modules/mbchar (Dependencies): Likewise.
21789         * modules/mbswidth (Dependencies): Likewise.
21790         * modules/quotearg (Dependencies): Likewise.
21791         * modules/regex (Dependencies): Likewise.
21792         * modules/wcscasecmp (Dependencies): Likewise.
21793         * modules/wcsncasecmp (Dependencies): Likewise.
21794         * modules/wcwidth (Dependencies): Likewise.
21795
21796 2011-02-06  Bruno Haible  <bruno@clisp.org>
21797
21798         New module 'wcswidth'.
21799         * modules/wcswidth: New file.
21800         * lib/wchar.in.h (wcswidth): New declaration.
21801         * lib/wcswidth.c: New file.
21802         * lib/wcswidth-impl.h: New file, from libutf8 with modifications.
21803         * m4/wcswidth.m4: New file.
21804         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcswidth is declared.
21805         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSWIDTH, HAVE_WCSWIDTH,
21806         REPLACE_WCSWIDTH.
21807         * modules/wchar (Makefile.am): Substitute GNULIB_WCSWIDTH,
21808         HAVE_WCSWIDTH, REPLACE_WCSWIDTH.
21809         * tests/test-wchar-c++.cc: Test the declaration of wcswidth.
21810         * doc/posix-functions/wcswidth.texi: Mention the new module.
21811
21812 2011-02-06  Bruno Haible  <bruno@clisp.org>
21813
21814         New module 'wcstok'.
21815         * modules/wcstok: New file.
21816         * lib/wchar.in.h (wcstok): New declaration.
21817         * lib/wcstok.c: New file.
21818         * lib/wcstok-impl.h: New file, from libutf8 with modifications.
21819         * m4/wcstok.m4: New file.
21820         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcstok is declared.
21821         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSTOK, HAVE_WCSTOK.
21822         * modules/wchar (Makefile.am): Substitute GNULIB_WCSTOK, HAVE_WCSTOK.
21823         * tests/test-wchar-c++.cc: Test the declaration of wcstok.
21824         * doc/posix-functions/wcstok.texi: Mention the new module.
21825
21826 2011-02-06  Bruno Haible  <bruno@clisp.org>
21827
21828         New module 'wcsstr'.
21829         * modules/wcsstr: New file.
21830         * lib/wchar.in.h (wcsstr): New declaration.
21831         * lib/wcsstr.c: New file.
21832         * lib/wcsstr-impl.h: New file, from libutf8 with modifications.
21833         * m4/wcsstr.m4: New file.
21834         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsstr is declared.
21835         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSTR, HAVE_WCSSTR.
21836         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSTR, HAVE_WCSSTR.
21837         * tests/test-wchar-c++.cc: Test the declaration of wcsstr.
21838         * doc/posix-functions/wcsstr.texi: Mention the new module.
21839
21840 2011-02-06  Bruno Haible  <bruno@clisp.org>
21841
21842         New module 'wcspbrk'.
21843         * modules/wcspbrk: New file.
21844         * lib/wchar.in.h (wcspbrk): New declaration.
21845         * lib/wcspbrk.c: New file.
21846         * lib/wcspbrk-impl.h: New file, from libutf8 with modifications.
21847         * m4/wcspbrk.m4: New file.
21848         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcspbrk is declared.
21849         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSPBRK, HAVE_WCSPBRK.
21850         * modules/wchar (Makefile.am): Substitute GNULIB_WCSPBRK, HAVE_WCSPBRK.
21851         * tests/test-wchar-c++.cc: Test the declaration of wcspbrk.
21852         * doc/posix-functions/wcspbrk.texi: Mention the new module.
21853
21854 2011-02-06  Bruno Haible  <bruno@clisp.org>
21855
21856         New module 'wcsspn'.
21857         * modules/wcsspn: New file.
21858         * lib/wchar.in.h (wcsspn): New declaration.
21859         * lib/wcsspn.c: New file.
21860         * lib/wcsspn-impl.h: New file, from libutf8 with modifications.
21861         * m4/wcsspn.m4: New file.
21862         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsspn is declared.
21863         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSSPN, HAVE_WCSSPN.
21864         * modules/wchar (Makefile.am): Substitute GNULIB_WCSSPN, HAVE_WCSSPN.
21865         * tests/test-wchar-c++.cc: Test the declaration of wcsspn.
21866         * doc/posix-functions/wcsspn.texi: Mention the new module.
21867
21868 2011-02-06  Bruno Haible  <bruno@clisp.org>
21869
21870         New module 'wcscspn'.
21871         * modules/wcscspn: New file.
21872         * lib/wchar.in.h (wcscspn): New declaration.
21873         * lib/wcscspn.c: New file.
21874         * lib/wcscspn-impl.h: New file, from libutf8 with modifications.
21875         * m4/wcscspn.m4: New file.
21876         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscspn is declared.
21877         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCSPN, HAVE_WCSCSPN.
21878         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCSPN, HAVE_WCSCSPN.
21879         * tests/test-wchar-c++.cc: Test the declaration of wcscspn.
21880         * doc/posix-functions/wcscspn.texi: Mention the new module.
21881
21882 2011-02-06  Bruno Haible  <bruno@clisp.org>
21883
21884         New module 'wcsrchr'.
21885         * modules/wcsrchr: New file.
21886         * lib/wchar.in.h (wcsrchr): New declaration.
21887         * lib/wcsrchr.c: New file.
21888         * lib/wcsrchr-impl.h: New file, from libutf8 with modifications.
21889         * m4/wcsrchr.m4: New file.
21890         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsrchr is declared.
21891         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRCHR, HAVE_WCSRCHR.
21892         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRCHR, HAVE_WCSRCHR.
21893         * tests/test-wchar-c++.cc: Test the declaration of wcsrchr.
21894         * doc/posix-functions/wcsrchr.texi: Mention the new module.
21895
21896 2011-02-06  Bruno Haible  <bruno@clisp.org>
21897
21898         New module 'wcschr'.
21899         * modules/wcschr: New file.
21900         * lib/wchar.in.h (wcschr): New declaration.
21901         * lib/wcschr.c: New file.
21902         * lib/wcschr-impl.h: New file, from libutf8 with modifications.
21903         * m4/wcschr.m4: New file.
21904         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcschr is declared.
21905         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCHR, HAVE_WCSCHR.
21906         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCHR, HAVE_WCSCHR.
21907         * tests/test-wchar-c++.cc: Test the declaration of wcschr.
21908         * doc/posix-functions/wcschr.texi: Mention the new module.
21909
21910 2011-02-06  Bruno Haible  <bruno@clisp.org>
21911
21912         New module 'wcsdup'.
21913         * modules/wcsdup: New file.
21914         * lib/wchar.in.h (wcsdup): New declaration.
21915         * lib/wcsdup.c: New file.
21916         * lib/wcsdup-impl.h: New file, from libutf8 with modifications.
21917         * m4/wcsdup.m4: New file.
21918         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsdup is declared.
21919         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSDUP, HAVE_WCSDUP.
21920         * modules/wchar (Makefile.am): Substitute GNULIB_WCSDUP, HAVE_WCSDUP.
21921         * tests/test-wchar-c++.cc: Test the declaration of wcsdup.
21922         * doc/posix-functions/wcsdup.texi: Mention the new module.
21923
21924 2011-02-06  Bruno Haible  <bruno@clisp.org>
21925
21926         New module 'wcsxfrm'.
21927         * modules/wcsxfrm: New file.
21928         * lib/wchar.in.h (wcsxfrm): New declaration.
21929         * lib/wcsxfrm.c: New file.
21930         * lib/wcsxfrm-impl.h: New file.
21931         * m4/wcsxfrm.m4: New file.
21932         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsxfrm is declared.
21933         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSXFRM, HAVE_WCSXFRM.
21934         * modules/wchar (Makefile.am): Substitute GNULIB_WCSXFRM, HAVE_WCSXFRM.
21935         * tests/test-wchar-c++.cc: Test the declaration of wcsxfrm.
21936         * doc/posix-functions/wcsxfrm.texi: Mention the new module.
21937
21938 2011-02-06  Bruno Haible  <bruno@clisp.org>
21939
21940         New module 'wcscoll'.
21941         * modules/wcscoll: New file.
21942         * lib/wchar.in.h (wcscoll): New declaration.
21943         * lib/wcscoll.c: New file.
21944         * lib/wcscoll-impl.h: New file.
21945         * m4/wcscoll.m4: New file.
21946         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscoll is declared.
21947         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCOLL, HAVE_WCSCOLL.
21948         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCOLL, HAVE_WCSCOLL.
21949         * tests/test-wchar-c++.cc: Test the declaration of wcscoll.
21950         * doc/posix-functions/wcscoll.texi: Mention the new module.
21951
21952 2011-02-06  Bruno Haible  <bruno@clisp.org>
21953
21954         New module 'wcsncasecmp'.
21955         * modules/wcsncasecmp: New file.
21956         * lib/wchar.in.h (wcsncasecmp): New declaration.
21957         * lib/wcsncasecmp.c: New file.
21958         * lib/wcsncasecmp-impl.h: New file, from libutf8 with modifications.
21959         * m4/wcsncasecmp.m4: New file.
21960         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncasecmp is declared.
21961         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCASECMP, HAVE_WCSNCASECMP.
21962         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCASECMP,
21963         HAVE_WCSNCASECMP.
21964         * tests/test-wchar-c++.cc: Test the declaration of wcsncasecmp.
21965         * doc/posix-functions/wcsncasecmp.texi: Mention the new module.
21966
21967 2011-02-06  Bruno Haible  <bruno@clisp.org>
21968
21969         New module 'wcscasecmp'.
21970         * modules/wcscasecmp: New file.
21971         * lib/wchar.in.h (wcscasecmp): New declaration.
21972         * lib/wcscasecmp.c: New file.
21973         * lib/wcscasecmp-impl.h: New file, from libutf8 with modifications.
21974         * m4/wcscasecmp.m4: New file.
21975         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscasecmp is declared.
21976         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCASECMP, HAVE_WCSCASECMP.
21977         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCASECMP,
21978         HAVE_WCSCASECMP.
21979         * tests/test-wchar-c++.cc: Test the declaration of wcscasecmp.
21980         * doc/posix-functions/wcscasecmp.texi: Mention the new module.
21981
21982 2011-02-05  Bruno Haible  <bruno@clisp.org>
21983
21984         New module 'wcsncmp'.
21985         * modules/wcsncmp: New file.
21986         * lib/wchar.in.h (wcsncmp): New declaration.
21987         * lib/wcsncmp.c: New file.
21988         * lib/wcsncmp-impl.h: New file, from libutf8 with modifications.
21989         * m4/wcsncmp.m4: New file.
21990         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncmp is declared.
21991         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCMP, HAVE_WCSNCMP.
21992         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCMP, HAVE_WCSNCMP.
21993         * tests/test-wchar-c++.cc: Test the declaration of wcsncmp.
21994         * doc/posix-functions/wcsncmp.texi: Mention the new module.
21995
21996 2011-02-05  Bruno Haible  <bruno@clisp.org>
21997
21998         New module 'wcscmp'.
21999         * modules/wcscmp: New file.
22000         * lib/wchar.in.h (wcscmp): New declaration.
22001         * lib/wcscmp.c: New file.
22002         * lib/wcscmp-impl.h: New file, from libutf8 with modifications.
22003         * m4/wcscmp.m4: New file.
22004         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscmp is declared.
22005         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCMP, HAVE_WCSCMP.
22006         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCMP, HAVE_WCSCMP.
22007         * tests/test-wchar-c++.cc: Test the declaration of wcscmp.
22008         * doc/posix-functions/wcscmp.texi: Mention the new module.
22009
22010 2011-02-05  Bruno Haible  <bruno@clisp.org>
22011
22012         New module 'wcsncat'.
22013         * modules/wcsncat: New file.
22014         * lib/wchar.in.h (wcsncat): New declaration.
22015         * lib/wcsncat.c: New file.
22016         * lib/wcsncat-impl.h: New file, from libutf8 with modifications.
22017         * m4/wcsncat.m4: New file.
22018         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncat is declared.
22019         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCAT, HAVE_WCSNCAT.
22020         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCAT, HAVE_WCSNCAT.
22021         * tests/test-wchar-c++.cc: Test the declaration of wcsncat.
22022         * doc/posix-functions/wcsncat.texi: Mention the new module.
22023
22024 2011-02-05  Bruno Haible  <bruno@clisp.org>
22025
22026         New module 'wcscat'.
22027         * modules/wcscat: New file.
22028         * lib/wchar.in.h (wcscat): New declaration.
22029         * lib/wcscat.c: New file.
22030         * lib/wcscat-impl.h: New file, from libutf8 with modifications.
22031         * m4/wcscat.m4: New file.
22032         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscat is declared.
22033         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCAT, HAVE_WCSCAT.
22034         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCAT, HAVE_WCSCAT.
22035         * tests/test-wchar-c++.cc: Test the declaration of wcscat.
22036         * doc/posix-functions/wcscat.texi: Mention the new module.
22037
22038 2011-02-05  Bruno Haible  <bruno@clisp.org>
22039
22040         New module 'wcpncpy'.
22041         * modules/wcpncpy: New file.
22042         * lib/wchar.in.h (wcpncpy): New declaration.
22043         * lib/wcpncpy.c: New file.
22044         * lib/wcpncpy-impl.h: New file, from libutf8 with modifications.
22045         * m4/wcpncpy.m4: New file.
22046         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpncpy is declared.
22047         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPNCPY, HAVE_WCPNCPY.
22048         * modules/wchar (Makefile.am): Substitute GNULIB_WCPNCPY, HAVE_WCPNCPY.
22049         * tests/test-wchar-c++.cc: Test the declaration of wcpncpy.
22050         * doc/posix-functions/wcpncpy.texi: Mention the new module.
22051
22052 2011-02-05  Bruno Haible  <bruno@clisp.org>
22053
22054         New module 'wcsncpy'.
22055         * modules/wcsncpy: New file.
22056         * lib/wchar.in.h (wcsncpy): New declaration.
22057         * lib/wcsncpy.c: New file.
22058         * lib/wcsncpy-impl.h: New file, from libutf8 with modifications.
22059         * m4/wcsncpy.m4: New file.
22060         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsncpy is declared.
22061         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNCPY, HAVE_WCSNCPY.
22062         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNCPY, HAVE_WCSNCPY.
22063         * tests/test-wchar-c++.cc: Test the declaration of wcsncpy.
22064         * doc/posix-functions/wcsncpy.texi: Mention the new module.
22065
22066 2011-02-05  Bruno Haible  <bruno@clisp.org>
22067
22068         New module 'wcpcpy'.
22069         * modules/wcpcpy: New file.
22070         * lib/wchar.in.h (wcpcpy): New declaration.
22071         * lib/wcpcpy.c: New file.
22072         * lib/wcpcpy-impl.h: New file, from libutf8 with modifications.
22073         * m4/wcpcpy.m4: New file.
22074         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcpcpy is declared.
22075         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCPCPY, HAVE_WCPCPY.
22076         * modules/wchar (Makefile.am): Substitute GNULIB_WCPCPY, HAVE_WCPCPY.
22077         * tests/test-wchar-c++.cc: Test the declaration of wcpcpy.
22078         * doc/posix-functions/wcpcpy.texi: Mention the new module.
22079
22080 2011-02-05  Bruno Haible  <bruno@clisp.org>
22081
22082         New module 'wcscpy'.
22083         * modules/wcscpy: New file.
22084         * lib/wchar.in.h (wcscpy): New declaration.
22085         * lib/wcscpy.c: New file.
22086         * lib/wcscpy-impl.h: New file, from libutf8 with modifications.
22087         * m4/wcscpy.m4: New file.
22088         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcscpy is declared.
22089         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSCPY, HAVE_WCSCPY.
22090         * modules/wchar (Makefile.am): Substitute GNULIB_WCSCPY, HAVE_WCSCPY.
22091         * tests/test-wchar-c++.cc: Test the declaration of wcscpy.
22092         * doc/posix-functions/wcscpy.texi: Mention the new module.
22093
22094 2011-02-05  Bruno Haible  <bruno@clisp.org>
22095
22096         New module 'wcsnlen'.
22097         * modules/wcsnlen: New file.
22098         * lib/wchar.in.h (wcsnlen): New declaration.
22099         * lib/wcsnlen.c: New file.
22100         * lib/wcsnlen-impl.h: New file, from libutf8 with modifications.
22101         * m4/wcsnlen.m4: New file.
22102         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcsnlen is declared.
22103         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNLEN, HAVE_WCSNLEN.
22104         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNLEN, HAVE_WCSNLEN.
22105         * tests/test-wchar-c++.cc: Test the declaration of wcsnlen.
22106         * doc/posix-functions/wcsnlen.texi: Mention the new module.
22107
22108 2011-02-05  Bruno Haible  <bruno@clisp.org>
22109
22110         New module 'wcslen'.
22111         * modules/wcslen: New file.
22112         * lib/wchar.in.h (wcslen): New declaration.
22113         * lib/wcslen.c: New file.
22114         * lib/wcslen-impl.h: New file, from libutf8 with modifications.
22115         * m4/wcslen.m4: New file.
22116         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wcslen is declared.
22117         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSLEN, HAVE_WCSLEN.
22118         * modules/wchar (Makefile.am): Substitute GNULIB_WCSLEN, HAVE_WCSLEN.
22119         * tests/test-wchar-c++.cc: Test the declaration of wcslen.
22120         * doc/posix-functions/wcslen.texi: Mention the new module.
22121
22122 2011-02-05  Bruno Haible  <bruno@clisp.org>
22123
22124         New module 'wmemset'.
22125         * modules/wmemset: New file.
22126         * lib/wchar.in.h (wmemset): New declaration.
22127         * lib/wmemset.c: New file.
22128         * lib/wmemset-impl.h: New file, from libutf8 with modifications.
22129         * m4/wmemset.m4: New file.
22130         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemset is declared.
22131         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMSET, HAVE_WMEMSET.
22132         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMSET, HAVE_WMEMSET.
22133         * tests/test-wchar-c++.cc: Test the declaration of wmemset.
22134         * doc/posix-functions/wmemset.texi: Mention the new module.
22135
22136 2011-02-05  Bruno Haible  <bruno@clisp.org>
22137
22138         New module 'wmemmove'.
22139         * modules/wmemmove: New file.
22140         * lib/wchar.in.h (wmemmove): New declaration.
22141         * lib/wmemmove.c: New file.
22142         * lib/wmemmove-impl.h: New file, from libutf8 with modifications.
22143         * m4/wmemmove.m4: New file.
22144         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemmove is declared.
22145         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMMOVE, HAVE_WMEMMOVE.
22146         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMMOVE,
22147         HAVE_WMEMMOVE.
22148         * tests/test-wchar-c++.cc: Test the declaration of wmemmove.
22149         * doc/posix-functions/wmemmove.texi: Mention the new module.
22150
22151 2011-02-05  Bruno Haible  <bruno@clisp.org>
22152
22153         New module 'wmemcpy'.
22154         * modules/wmemcpy: New file.
22155         * lib/wchar.in.h (wmemcpy): New declaration.
22156         * lib/wmemcpy.c: New file.
22157         * lib/wmemcpy-impl.h: New file, from libutf8 with modifications.
22158         * m4/wmemcpy.m4: New file.
22159         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcpy is declared.
22160         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCPY, HAVE_WMEMCPY.
22161         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCPY, HAVE_WMEMCPY.
22162         * tests/test-wchar-c++.cc: Test the declaration of wmemcpy.
22163         * doc/posix-functions/wmemcpy.texi: Mention the new module.
22164
22165 2011-02-05  Bruno Haible  <bruno@clisp.org>
22166
22167         New module 'wmemcmp'.
22168         * modules/wmemcmp: New file.
22169         * lib/wchar.in.h (wmemcmp): New declaration.
22170         * lib/wmemcmp.c: New file.
22171         * lib/wmemcmp-impl.h: New file, from libutf8 with modifications.
22172         * m4/wmemcmp.m4: New file.
22173         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemcmp is declared.
22174         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCMP, HAVE_WMEMCMP.
22175         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCMP, HAVE_WMEMCMP.
22176         * tests/test-wchar-c++.cc: Test the declaration of wmemcmp.
22177         * doc/posix-functions/wmemcmp.texi: Mention the new module.
22178
22179 2011-02-07  Jim Meyering  <meyering@redhat.com>
22180
22181         di-set, ino-map: new modules, from coreutils
22182         * lib/di-set.c: New file.
22183         * lib/di-set.h: Likewise.
22184         * lib/ino-map.c: Likewise.
22185         * lib/ino-map.h: Likewise.
22186         * modules/di-set: Likewise.
22187         * modules/di-set-tests: Likewise.
22188         * modules/ino-map: Likewise.
22189         * modules/ino-map-tests: Likewise.
22190         * tests/test-di-set.c: Likewise.
22191         * tests/test-ino-map.c: Likewise.
22192
22193 2011-02-06  Paul Eggert  <eggert@cs.ucla.edu>
22194
22195         getloadavg: merge minor changes from Emacs
22196
22197         * lib/getloadavg.c (getloadavg_initialized): More-accurate comment.
22198         (getloadavg): Use memset, not bzero.
22199
22200         2008-07-25  Chong Yidong  <cyd@stupidchicken.com>
22201         * lib/getloadavg.c (nl): Rename to name_list to avoid ncurses.h
22202         clash (bug#86).
22203
22204 2010-11-14  Bruno Haible  <bruno@clisp.org>
22205
22206         Allow multiple gnulib generated replacements to coexist.
22207         * lib/getopt.in.h (struct option): Avoid identical redefinition.
22208         * lib/inttypes.in.h (imaxdiv_t): Likewise.
22209         * lib/langinfo.in.h (nl_item): Likewise.
22210         * lib/math.in.h (_NaN, NAN): Likewise.
22211         * lib/netdb.in.h (struct addrinfo): Likewise.
22212         * lib/poll.in.h (struct pollfd, nfds_t): Likewise.
22213         * lib/pthread.in.h (pthread_t, pthread_attr_t, pthread_barrier_t,
22214         pthread_barrierattr_t, pthread_cond_t, pthread_condattr_t,
22215         pthread_key_t, pthread_mutex_t, pthread_mutexattr_t, pthread_once_t,
22216         pthread_rwlock_t, pthread_rwlockattr_t, pthread_cond_destroy,
22217         pthread_cond_init, pthread_cond_signal, pthread_cond_wait,
22218         pthread_create, pthread_exit, pthread_join, pthread_mutexattr_destroy,
22219         pthread_mutexattr_init, pthread_mutexattr_settype,
22220         pthread_mutex_destroy, pthread_mutex_init, pthread_mutex_lock,
22221         pthread_mutex_trylock, pthread_mutex_unlock, pthread_spinlock_t,
22222         pthread_spin_init, pthread_spin_destroy, pthread_spin_lock,
22223         pthread_spin_trylock, pthread_spin_unlock): Likewise.
22224         * lib/sched.in.h (struct sched_param): Likewise.
22225         * lib/se-selinux.in.h (security_class_t, security_context_t,
22226         is_selinux_enabled, getcon, freecon, getfscreatecon, setfscreatecon,
22227         matchpathcon, getfilecon, lgetfilecon, fgetfilecon, setfilecon,
22228         lsetfilecon, fsetfilecon, security_check_context,
22229         security_check_context_raw, setexeccon, matchpathcon_init_prefix):
22230         Likewise.
22231         * lib/search.in.h (VISIT, _gl_search_compar_fn, _gl_search_action_fn):
22232         Likewise.
22233         * lib/signal.in.h (sig_atomic_t, sigset_t, verify_NSIG_constraint,
22234         _gl_function_taking_int_returning_void_t, union sigval,
22235         struct siginfo_t, siginfo_t, struct sigaction): Likewise.
22236         * lib/spawn.in.h (posix_spawnattr_t, posix_spawn_file_actions_t,
22237         verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
22238         * lib/stdint.in.h (gl_int8_t, gl_uint8_t, gl_int16_t, gl_uint16_t,
22239         gl_int32_t, gl_uint32_t, gl_int64_t, gl_uint64_t, int_least8_t,
22240         uint_least8_t, int_least16_t, uint_least16_t, int_least32_t,
22241         uint_least32_t, int_least64_t, uint_least64_t, gl_int_fast8_t,
22242         gl_uint_fast8_t, gl_int_fast16_t, gl_uint_fast16_t, gl_int_fast32_t,
22243         gl_uint_fast32_t, int_fast64_t, uint_fast64_t, gl_intptr_t,
22244         gl_uintptr_t, intmax_t, uintmax_t, _verify_intmax_size): Likewise.
22245         * lib/stdio.in.h (rpl_fseek, rpl_ftell): Likewise.
22246         * lib/sys_socket.in.h (sa_family_t, struct sockaddr_storage,
22247         socklen_t, rpl_fd_isset): Likewise.
22248         * lib/sys_stat.in.h (rpl_mkdir): Likewise.
22249         * lib/sys_time.in.h (struct timeval): Likewise.
22250         * lib/sys_times.in.h (struct tms): Likewise.
22251         * lib/sys_utsname.in.h (struct utsname):
22252         * lib/time.in.h (struct timespec, __time_t_must_be_integral): Likewise.
22253         * lib/unistd.in.h (getpagesize): Likewise.
22254         * lib/wchar.in.h (mbstate_t): Likewise.
22255         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
22256         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit,
22257         towlower, towupper): Likewise.
22258         Reported by Sam Steingold <sds@gnu.org>.
22259
22260 2011-02-05  Eric Blake  <eblake@redhat.com>
22261
22262         unsetenv: work around Haiku issues
22263         * m4/setenv.m4 (gl_FUNC_UNSETENV): Also detect Haiku issue.
22264         * doc/posix-functions/unsetenv.texi (unsetenv): Document it.
22265
22266 2010-12-30  Bruce Korb  <bkorb@gnu.org>
22267
22268         libposix: avoid calling error() within libposix
22269         * lib/openat-die.c: remove error module stuff when GNULIB_LIBPOSIX
22270         is defined.
22271
22272 2011-02-05  Eric Blake  <eblake@redhat.com>
22273
22274         strerror_r-posix: port to cygwin
22275         * lib/strerror_r.c (strerror_r) [__CYGWIN__]: Add cygwin
22276         implementation.
22277         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Adjust comment.
22278         * tests/test-strerror_r.c (main): Fix test.
22279         * doc/posix-functions/strerror_r.texi (strerror_r): Document the
22280         issue.
22281
22282 2011-02-05  Bruno Haible  <bruno@clisp.org>
22283
22284         New module 'wmemchr'.
22285         * modules/wmemchr: New file.
22286         * lib/wchar.in.h (wmemchr): New declaration.
22287         * lib/wmemchr.c: New file.
22288         * lib/wmemchr-impl.h: New file, from libutf8 with modifications.
22289         * m4/wmemchr.m4: New file.
22290         * m4/wchar_h.m4 (gl_WCHAR_H): Test whether wmemchr is declared.
22291         (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WMEMCHR, HAVE_WMEMCHR.
22292         * modules/wchar (Makefile.am): Substitute GNULIB_WMEMCHR, HAVE_WMEMCHR.
22293         * tests/test-wchar-c++.cc: Test the declaration of wmemchr.
22294         * doc/posix-functions/wmemchr.texi: Mention the new module.
22295
22296 2011-02-04  Eric Blake  <eblake@redhat.com>
22297
22298         fdopendir: detect FreeBSD bug
22299         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Detect bug.
22300         * doc/posix-functions/fdopendir.texi (fdopendir): Document it.
22301
22302 2011-02-04  Paul Eggert  <eggert@cs.ucla.edu>
22303
22304         stdbool: do not define HAVE_STDBOOL_H
22305         * m4/stdbool.m4 (AC_CHECK_HEADER_STDBOOL): Renamed from
22306         AC_HEADER_STDBOOL.  All uses changed.  Do not define
22307         HAVE_STDBOOL_H, as gnulib does not need this.  This change is
22308         imported from the latest Autoconf git.  It was motivated by Emacs,
22309         which uses gnulib but does not need HAVE_STDBOOL_H.
22310
22311 2011-02-04  Bruno Haible  <bruno@clisp.org>
22312
22313         wcsnrtombs: Prepare for new module wwcsnrtombs.
22314         * lib/wcsnrtombs-impl.h: New file, extracted from lib/wcsnrtombs.c.
22315         * lib/wcsnrtombs.c: Include it.
22316         * modules/wcsnrtombs (Files): Add lib/wcsnrtombs-impl.h.
22317
22318         wcsrtombs: Prepare for new module wwcsrtombs.
22319         * lib/wcsrtombs-impl.h: New file, extracted from lib/wcsrtombs.c.
22320         * lib/wcsrtombs.c: Include it.
22321         * modules/wcsrtombs (Files): Add lib/wcsrtombs-impl.h.
22322
22323         mbsnrtowcs: Prepare for new module mbsnrtowwcs.
22324         * lib/mbsnrtowcs-impl.h: New file, extracted from lib/mbsnrtowcs.c.
22325         * lib/mbsnrtowcs.c: Include it.
22326         * modules/mbsnrtowcs (Files): Add lib/mbsnrtowcs-impl.h.
22327
22328         mbsrtowcs: Prepare for new module mbsrtowwcs.
22329         * lib/mbsrtowcs-impl.h: New file, extracted from lib/mbsrtowcs.c.
22330         * lib/mbsrtowcs.c: Include it.
22331         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-impl.h.
22332
22333 2011-02-04  Bruno Haible  <bruno@clisp.org>
22334
22335         vasnprintf: Reduce use of malloc for small format strings.
22336         * lib/printf-args.h (N_DIRECT_ALLOC_ARGUMENTS): New macro.
22337         (arguments): Add room for the first 7 arguments.
22338         * lib/printf-parse.h (N_DIRECT_ALLOC_DIRECTIVES): New macro.
22339         (char_directives, u8_directives, u16_directives, u32_directives): Add
22340         room for the first 7 directives.
22341         * lib/printf-parse.c: Include <string.h>.
22342         (PRINTF_PARSE): Change memory handling code so that it uses the first
22343         7 preallocated elements in an 'arguments' or 'DIRECTIVES' struct.
22344         * lib/vasnprintf.c (VASNPRINTF): Update memory handling code.
22345         Reported by Pádraig Brady <P@draigbrady.com>.
22346
22347 2011-01-31  Eric Blake  <eblake@redhat.com>
22348
22349         dup2: work around Haiku bug
22350         * m4/dup2.m4 (gl_FUNC_DUP2): Test for bug.
22351         * lib/dup2.c (rpl_dup2) [!WIN32]: Add workaround.
22352         * doc/posix-functions/dup2.texi (dup2): Document the bug.
22353         * tests/test-dup2.c (main): Enhance test.
22354
22355 2011-01-31  Simon Josefsson  <simon@josefsson.org>
22356
22357         doc: off_t is not available in eglibc 2.11.2 stdio.h.
22358         * doc/posix-headers/stdio.texi (stdio.h): Mention that off_t isn't
22359         declared by eglibc 2.11.2.
22360         * lib/stdio.in.h: Likewise.
22361
22362 2011-01-31  Eric Blake  <eblake@redhat.com>
22363
22364         ignore-value: add missing test dependency
22365         * tests/test-ignore-value.c: Revert previous change; stdio.h
22366         provides off_t.
22367         * modules/ignore-value-tests (Depends-on): Add missing dependency.
22368
22369 2011-01-30  Paul Eggert  <eggert@cs.ucla.edu>
22370
22371         mktime: clarify long_int width checking
22372         * lib/mktime.c (long_int_is_wide_enough): Move this assertion to
22373         the top level, to make it clearer that the assumption about
22374         long_int width is being checked.  See
22375         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00554.html>.
22376
22377 2011-01-30  Simon Josefsson  <simon@josefsson.org>
22378
22379         ignore-value: Fix self-test.
22380         * tests/test-ignore-value.c: Include sys/types.h for off_t.
22381
22382 2011-01-29  Paul Eggert  <eggert@cs.ucla.edu>
22383
22384         TYPE_MAXIMUM: avoid theoretically undefined behavior
22385         * lib/intprops.h (TYPE_MINIMUM, TYPE_MAXIMUM): Do not shift a
22386         negative number, which the C Standard says has undefined behavior.
22387         In practice this is not a problem, but might as well do it by the book.
22388         Reported by Rich Felker and Eric Blake; see
22389         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00493.html>.
22390         * lib/strtol.c (TYPE_MINIMUM, TYPE_MAXIMUM): Likewise.
22391         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
22392         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
22393         * m4/parse-datetime.m4 (gl_PARSE_DATETIME): Likewise.
22394         * m4/stdint.m4 (gl_STDINT_H): Likewise.
22395         * lib/mktime.c (TYPE_MAXIMUM): Redo slightly to match the others.
22396
22397         mktime: #undef mktime before #defining it
22398         * lib/mktime.c (mktime) [DEBUG]: #undef mktime before #defining it.
22399
22400         mktime: systematically normalize tm_isdst comparisons
22401         * lib/mktime.c (isdst_differ): New function.
22402         (__mktime_internal): Use it systematically for all isdst comparisons.
22403         This completes the fix for libc BZ #6723, and removes the need for
22404         normalizing tm_isdst.  See
22405         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>
22406         (not_equal_tm) [DEBUG]: Use isdst_differ here, too.
22407
22408         mktime: fix some integer overflow issues and sidestep the rest
22409
22410         This was prompted by a bug report by Benjamin Lindner for MinGW
22411         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00472.html>.
22412         His bug is due to signed integer overflow (0 - INT_MIN), and I
22413         I scanned through mktime.c looking for other integer overflow
22414         problems, fixing all the bugs I found.
22415
22416         Although the C Standard says the resulting code is still not safe
22417         in the presence of integer overflow, in practice it should be good
22418         enough for all real-world two's-complement implementations, except
22419         for debugging environments that deliberately trap on integer
22420         overflow (e.g., gcc -ftrapv).
22421
22422         * lib/mktime.c (WRAPV): New macro.
22423         (SHR): Also check that long_int and time_t shift right in the
22424         usual way, before using the fast-but-unportable method.
22425         (TYPE_ONES_COMPLEMENT, TYPE_SIGNED_MAGNITUDE): Remove, no longer
22426         used.  The code already assumed two's complement, so there's
22427         no need to test for alternatives.  All uses removed.
22428         (TYPE_MAXIMUM): Don't rely here on overflow behavior not defined by
22429         the C standard.  Problem reported by Rich Felker in
22430         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00488.html>.
22431         (twos_complement_arithmetic): Also check long_int and time_t.
22432         (time_t_avg, time_t_add_ok, time_t_int_add_ok): New functions.
22433         (guess_time_tm, ranged_convert, __mktime_internal): Use them.
22434         (__mktime_internal): Avoid integer overflow with unary subtraction
22435         in two instances where -1 - X is an adequate replacement for -X,
22436         since the calculations are approximate.
22437
22438 2011-01-29  Eric Blake  <eblake@redhat.com>
22439
22440         mktime: avoid infinite loop
22441         * m4/mktime.m4 (AC_FUNC_MKTIME): Avoid overflow on possibly-signed
22442         type; behavior is still undefined but portable to all known targets.
22443         Reported by Rich Felker.
22444
22445 2011-01-29  Simon Josefsson  <simon@josefsson.org>
22446
22447         rename, unlink, same-inode: Relicense.
22448         * modules/rename (License): Relax from LGPLv3+ to LGPLv2+.
22449         * modules/unlink (License): Likewise.
22450         * modules/same-inode (License): Likewise.
22451
22452 2011-01-28  Paul Eggert  <eggert@cs.ucla.edu>
22453
22454         mktime: avoid problems on NetBSD 5 / i386
22455         * lib/mktime.c (long_int): New type.  This works around a problem
22456         on NetBSD 5 / i386, where 'long int' and 'int' are both 32 bits
22457         but time_t is 64 bits, and where I expect the existing code is
22458         wrong in some cases.
22459         (leapyear, ydhms_diff, guess_time_tm, __mktime_internal): Use it.
22460         (ydhms_diff): Bring back the compile-time check for wide-enough
22461         year and yday.
22462
22463         mktime: fix misspelling in comment
22464         * lib/mktime.c (__mktime_internal): Fix misspelling in comment.
22465         This merges all recent glibc changes of importance.
22466
22467 2011-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
22468
22469         move-if-change: cope with concurrent mv of identical file.
22470         * build-aux/move-if-change (CMPPROG): Accept environment
22471         variable as an override for `cmp'.
22472         (usage): Document CMPPROG.
22473         Adjust comparison to drop stdout.  Cope with failure of mv if
22474         the target file exists and is identical to the source, for
22475         parallel builds.
22476         Report from H.J. Lu against binutils in PR binutils/12283.
22477
22478 2011-01-28  Bruce Korb  <bkorb@gnu.org>
22479
22480         * users.txt: Mention sharutils.
22481
22482 2011-01-28  Simon Josefsson  <simon@josefsson.org>
22483
22484         * users.txt: Mention OATH Toolkit.
22485
22486 2011-01-27  Bruno Haible  <bruno@clisp.org>
22487
22488         Prepare for supporting FreeBSD 10.
22489         * build-aux/config.libpath: Remove handling of freebsd1*.
22490
22491 2011-01-27  Gerald Pfeifer  <gerald@pfeifer.com>  (tiny change)
22492
22493         Prepare for supporting FreeBSD 10.
22494         * build-aux/config.rpath: Remove handling of freebsd1* which soon would
22495         match FreeBSD 10.0.
22496
22497 2011-01-27  Bruno Haible  <bruno@clisp.org>
22498
22499         vma-iter, get-rusage-as: Add OpenBSD support.
22500         * modules/vma-iter (configure.ac): Test for mquery.
22501         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define also on OpenBSD.
22502         * lib/vma-iter.c: Include <sys/mman.h>.
22503         (vma_iterate): Add an implementation based on mquery().
22504         * lib/resource-ext.h (get_rusage_as): Update comments.
22505         * lib/get-rusage-as.c: Likewise.
22506         * lib/get-rusage-data.c: Likewise.
22507
22508 2011-01-26  Karl Berry  <karl@gnu.org>
22509
22510         * doc/Makefile (lang_env, makeinfo_prog, manual_opts): new
22511         variables to make it easier to override the makeinfo program used.
22512
22513 2011-01-26  Eric Blake  <eblake@redhat.com>
22514
22515         fcntl: work around Haiku F_DUPFD bugs
22516         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also catch Haiku errno bug.
22517         * lib/fcntl.c (rpl_fcntl) [F_DUPFD]: Work around Haiku losing
22518         cloexec bit on duplication.
22519         * doc/posix-functions/fcntl.texi (fcntl): Document the bug.
22520
22521 2011-01-26  Bruno Haible  <bruno@clisp.org>
22522
22523         Enable memory leak tests on AIX.
22524         * tests/test-dprintf-posix2.c (main): Don't skip the test on AIX.
22525         * tests/test-fprintf-posix3.c (main): Likewise.
22526
22527 2011-01-26  Bruno Haible  <bruno@clisp.org>
22528
22529         Tests for module 'get-rusage-data'.
22530         * modules/get-rusage-data-tests: New file.
22531         * tests/test-get-rusage-data.c: New file.
22532
22533         New module 'get-rusage-data'.
22534         * lib/resource-ext.h (get_rusage_data): New declaration.
22535         * lib/get-rusage-data.c: New file.
22536         * modules/get-rusage-data: New file.
22537
22538 2011-01-25  Bruno Haible  <bruno@clisp.org>
22539
22540         get-rusage-as: Allow for easier testing.
22541         * lib/resource-ext.h (get_rusage_as): Add comment.
22542         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Define always.
22543         (main): New function for interactive testing.
22544
22545 2011-01-25  Bruno Haible  <bruno@clisp.org>
22546
22547         vma-iter: Treat Haiku like BeOS.
22548         * lib/vma-iter.h (VMA_ITERATE_SUPPORTED): Define on Haiku as well.
22549         * lib/vma-iter.c (vma_iterate) [Haiku]: Use the BeOS API.
22550
22551 2011-01-25  Eric Blake  <eblake@redhat.com>
22552
22553         c-stack: fix regression on cygwin when libsigsegv is present
22554         * lib/c-stack.c (die): Don't flatten error if sigsegv is present.
22555
22556 2011-01-24  Bruno Haible  <bruno@clisp.org>
22557
22558         vma-iter: Avoid empty intervals.
22559         * lib/vma-iter.c (vma_iterate) [IRIX, OSF/1]: Don't call the callback
22560         on an empty interval.
22561
22562 2011-01-24  Jim Meyering  <meyering@redhat.com>
22563
22564         u64: remove unnecessary #include
22565         * lib/u64.h: Don't include <stddef.h>.  It was not used.
22566
22567 2011-01-23  Paul Eggert  <eggert@cs.ucla.edu>
22568
22569         Allow the user to avoid the HAVE_RAW_DECL_* macros.
22570         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_POSIXCHECK): New macro.
22571
22572 2011-01-23  Bruno Haible  <bruno@clisp.org>
22573
22574         New module 'vma-iter'.
22575         * lib/vma-iter.h: New file.
22576         * lib/vma-iter.c: New file, based on lib/get-rusage-as.c.
22577         * modules/vma-iter: New file.
22578         * lib/get-rusage-as.c: Include vma-iter.h. Don't include system headers
22579         for get_rusage_as_via_iterator.
22580         (vma_iterate_callback): New function.
22581         (get_rusage_as_via_iterator): Rewritten to use vma_iterate.
22582         * modules/get-rusage-as (Depends-on): Add vma-iter.
22583
22584 2011-01-23  Bruno Haible  <bruno@clisp.org>
22585
22586         uninorm: Tweak includes.
22587         * lib/uninorm/normalize-internal.h: Don't include <stddef.h>.
22588         Reported by Jim Meyering.
22589
22590 2011-01-23  Bruno Haible  <bruno@clisp.org>
22591
22592         get-rusage-as: Improve on NetBSD.
22593         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On NetBSD, use
22594         /proc, like on FreeBSD.
22595
22596 2011-01-23  Jim Meyering  <meyering@redhat.com>
22597
22598         xreadlink.h: remove unnecessary #include
22599         * lib/xreadlink.h: Don't include <stddef.h>.  It was not used.
22600
22601         maint.mk: add syntax-check rule: detect unnecessary #include <stddef.h>
22602         * top/maint.mk (sc_prohibit_stddef_without_use): New rule.
22603
22604 2011-01-23  Bruno Haible  <bruno@clisp.org>
22605
22606         get-rusage-as: Fix bug.
22607         * lib/get-rusage-as.c (get_rusage_as_via_setrlimit): Restore the
22608         original limit when aborting the first loop.
22609
22610 2011-01-23  Bruno Haible  <bruno@clisp.org>
22611
22612         wctype: Ensure valid C syntax.
22613         * m4/wctype_h.m4 (gl_WCTYPE_H): Invoke gl_CHECK_NEXT_HEADERS
22614         unconditionally, instead of gl_NEXT_HEADERS conditionally.
22615
22616 2011-01-21  Paul Eggert  <eggert@cs.ucla.edu>
22617
22618         getopt: omit HAVE_OPTRESET, HAVE_GETOPT_CLIP from config.h
22619         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not put the
22620         symbols HAVE_OPTRESET and HAVE_GETOPT_CLIP into config.h,
22621         as they are needed only for configure's test case.
22622         This removes two unnecessary symbols from config.h.
22623
22624         gl_CHECK_NEXT_HEADERS implies AC_CHECK_HEADERS_ONCE
22625         * m4/include_next.m4 (gl_CHECK_HEXT_HEADERS): Document this.
22626         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Don't bother to invoke
22627         AC_CHECK_HEADERS_ONCE on a header that we also invoke
22628         gl_CHECK_NEXT_HEADERS on, since the latter invokes the former.
22629         * m4/netdb_h.m4 (gl_HEADER_NETDB): Likewise.
22630         * m4/pthread.m4 (gl_PTHREAD_CHECK): Likewise.
22631         * m4/sched_h.m4 (gl_SCHED_H): Likewise.
22632         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
22633         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
22634         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
22635         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
22636         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
22637         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
22638         * m4/termios_h.m4 (gl_TERMIOS_H): Likewise.
22639         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
22640         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
22641         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
22642
22643 2011-01-21  Eric Blake  <eblake@redhat.com>
22644
22645         maintainer-makefile: work with older git for submodule check
22646         * top/maint.mk (public-submodule-commit): Rewrite to avoid
22647         merge-base --independent, which Ubuntu 10.04 git 1.7.0.4 lacks.
22648         Reported by Matthias Bolte.
22649
22650         bootstrap: minor portability fixes
22651         * build-aux/bootstrap (me): Use $me instead of $0 in functions.
22652         (usage): Omit leading capital and trailing . on help phrases, per
22653         GNU Coding Standards.
22654         (check_versions, top level): Prefix messages with script name.
22655
22656 2011-01-21  Benjamin Lindner  <bjmldn@gmail.com>  (tiny change)
22657
22658         bootstrap: support --no-git option
22659         * build-aux/bootstrap: Add --no-git option, to be used when
22660         --gnulib-srcdir points to the exact desired checkout.
22661
22662 2011-01-21  Eric Blake  <eblake@redhat.com>
22663
22664         strerror_r-posix: work with glibc 2.13
22665         * lib/strerror_r.c (strerror_r): Fix return type.
22666
22667 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22668             Bruno Haible  <bruno@clisp.org>
22669
22670         uN_strstr: New unit tests.
22671         * modules/unistr/u8-strstr-tests: New file.
22672         * modules/unistr/u16-strstr-tests: New file.
22673         * modules/unistr/u32-strstr-tests: New file.
22674         * tests/unistr/test-u-strstr.h: New file, based on tests/test-strstr.c.
22675         * tests/unistr/test-u8-strstr.c: New file.
22676         * tests/unistr/test-u16-strstr.c: New file.
22677         * tests/unistr/test-u32-strstr.c: New file.
22678
22679 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22680             Bruno Haible  <bruno@clisp.org>
22681
22682         Make uN_strstr functions O(n) worst-case.
22683         * lib/unistr/u-strstr.h (FUNC): In the 8-bit case, use strstr. In the
22684         16-bit and 32-bit unit cases, use the unibyte algorithm from
22685         lib/mbsstr.c.
22686         * lib/unistr/u8-strstr.c: Include <string.h>.
22687         (UNIT_IS_UINT8_T): New macro.
22688         * lib/unistr/u16-strstr.c: Include malloca.h and str-kmp.h.
22689         (U_STRLEN, U_STRNLEN): New macros.
22690         * lib/unistr/u32-strstr.c: Include malloca.h and str-kmp.h.
22691         (U_STRLEN, U_STRNLEN): New macros.
22692         * modules/unistr/u8-strstr (Depends-on): Add strstr.
22693         (configure.ac): Update required libunistring version.
22694         * modules/unistr/u16-strstr (Files): Add lib/str-kmp.h.
22695         (Depends-on): Add unistr/u16-strlen, unistr/u16-strnlen, stdbool,
22696         malloca.
22697         (configure.ac): Update required libunistring version.
22698         * modules/unistr/u32-strstr (Files): Add lib/str-kmp.h.
22699         (Depends-on): Add unistr/u32-strlen, unistr/u32-strnlen, stdbool,
22700         malloca.
22701         (configure.ac): Update required libunistring version.
22702
22703 2011-01-21  Pádraig Brady  <P@draigBrady.com>
22704             Bruno Haible  <bruno@clisp.org>
22705
22706         Prepare for faster uN_strstr functions.
22707         * lib/str-kmp.h: Support definable UNITs.
22708         (knuth_morris_pratt): Renamed from knuth_morris_pratt_unibyte. Add
22709         needle_len argument.
22710         * lib/mbsstr.c (mbsstr): Adjust for the changed str-kmp.h.
22711         * lib/mbscasestr.c (mbscasestr): Likewise.
22712
22713 2011-01-21  Pádraig Brady <P@draigBrady.com>
22714
22715         malloca-tests: make faster by unsetting MALLOC_PERTURB_
22716         * tests/test-malloca.c (main): Unset the environment variable
22717         to greatly speed up the test.
22718         * tests/init.sh: Don't say that MALLOC_PERTURB_ is cheap.
22719         * modules/malloca-tests: Depend on unsetenv.
22720
22721 2011-01-21  Pádraig Brady <P@draigBrady.com>
22722
22723         ignore-value: remove stdint dependency
22724         * lib/ignore-value.h: Remove <stdint.h>
22725         * modules/ignore-value: Remove stdint dependency.
22726
22727 2011-01-21  Jim Meyering  <meyering@redhat.com>
22728
22729         maint.mk: adjust variable name to be consistent with other gl_ vars
22730         * top/maint.mk (gl_public_submodule_commit): Rename the variable
22731         to be lower case.
22732
22733 2011-01-20  Jim Meyering  <meyering@redhat.com>
22734
22735         maint.mk: make "check" depend on public-submodule-commit by default
22736         * top/maint.mk (GL_PUBLIC_SUBMODULE_COMMIT): New overridable variable.
22737
22738 2011-01-20  Bruno Haible  <bruno@clisp.org>
22739
22740         mbfile, mbiter: Complete change from 2008-12-21.
22741         * m4/mbfile.m4 (gl_MBFILE): Don't require AC_FUNC_MBRTOWC.
22742         * m4/mbiter.m4 (gl_MBITER): Likewise.
22743
22744 2011-01-20  Jim Meyering  <meyering@redhat.com>
22745
22746         init.sh: insert space between each function name and "()"
22747         * tests/init.sh: Make it a little easier to see that a function's
22748         name is "warn_", and not "warn" when looking at the first part of
22749         its definition: "warn_ ()".  Suggested by Ralf Wildenhues.
22750
22751 2011-01-20  Jim Meyering  <meyering@redhat.com>
22752
22753         mountlist: clean up code formatting
22754         * lib/mountlist.c (read_file_system_list): Split a long line,
22755         correct bracing style, use NULL in place of "(struct statfs *)0",
22756         don't parenthesize return value, add spaces around "=" and after
22757         ";-in-for-stmt".
22758
22759 2011-01-14  Markus Duft <mduft@gentoo.org>
22760
22761         mountlist: add support for Interix
22762         * lib/mountlist.c (read_file_system_list) [MOUNTED_INTERIX_STATVFS]:
22763         Apply statvfs to all entries of /dev/fs.
22764         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for statvfs,
22765         and if found, AC_DEFINE MOUNTED_INTERIX_STATVFS.
22766
22767 2011-01-20  Jim Meyering  <meyering@redhat.com>
22768
22769         maint.mk: improve the public-submodule-commit rule
22770         * top/maint.mk (public-submodule-commit): Prefix with $(AM_V_GEN),
22771         to suppress printing of its commands... unless V=1.
22772         Add git submodule's --quiet option to suppress printing of e.g.,
22773         "Entering gnulib" output.
22774         "cd" into $(srcdir) before running git submodule.
22775
22776 2011-01-20  Bruno Haible  <bruno@clisp.org>
22777
22778         include_next: Fix bug introduced on 2011-01-18.
22779         * m4/include_next.m4 (gl_NEXT_HEADERS_INTERNAL): New macro, extracted
22780         from gl_CHECK_NEXT_HEADERS and gl_NEXT_HEADERS. Omit test of
22781         ac_cv_header_... variable if the second argument is not 'check'.
22782         (gl_CHECK_NEXT_HEADERS, gl_NEXT_HEADERS): Invoke
22783         gl_NEXT_HEADERS_INTERNAL.
22784
22785 2011-01-20  Bruno Haible  <bruno@clisp.org>
22786
22787         Allow the user to avoid the GNULIB_TEST_* macros.
22788         * m4/gnulib-common.m4 (gl_ASSERT_NO_GNULIB_TESTS): New macro.
22789         Suggested by Paul Eggert.
22790
22791 2011-01-14  Jim Meyering  <meyering@redhat.com>
22792
22793         bootstrap: avoid failure when there is no .gitmodules file
22794         ": ${gnulib_path=gnulib}" fails to set $gnulib_path when that variable
22795         has been assigned to, even when its value is the empty string.
22796         * build-aux/bootstrap (gnulib_path): Test explicitly for an empty
22797         "$gnulib_path", rather than using ${gnulib_path=gnulib}.
22798         Reported by John W. Eaton <jwe@gnu.org>.
22799
22800 2011-01-19  Paul Eggert  <eggert@cs.ucla.edu>
22801
22802         assume <ctype.h>, ..., <time.h> exist
22803         For years gnulib has been assuming the existence of the headers
22804         <ctime.h>, <errno.h>, <fcntl.h>, <locale.h>, <signal.h>,
22805         <stdio.h>, <stdlib.h>, <string.h>, and <time.h>.  Omit checks for
22806         them, since they don't appear to be needed.
22807         * README (Portability guidelines): Document this.
22808         * lib/flock.c: Assume <fcntl.h> exists.
22809         * lib/regex_internal.h: Assume <locale.h> exists.
22810         * m4/ctype.m4 (gl_CTYPE_H): Assume <ctype.h> exists.
22811         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Assume <errno.h> exists.
22812         * m4/fcntl_h.m4 (gl_FCNTL_H): Assume <fcntl.h> exists.
22813         * m4/flock.m4 (gl_PREREQ_FLOCK): Likewise.
22814         * m4/locale_h.m4 (gl_LOCALE_H): Assume <locale.h> exists.
22815         * m4/regex.m4 (gl_REGEX): Likewise.
22816         * m4/signal_h.m4 (gl_SIGNAL_H): Assume <signal.h> exists.
22817         * m4/stdio_h.m4 (gl_STDIO_H): Assume <stdio.h> exists.
22818         * m4/stdlib_h.m4 (gl_STDLIB_H): Assume <stdlib.h> exists.
22819         * m4/string_h.m4 (gl_STRING_H): Assume <string.h> exists.
22820         * tests/test-argp.c: Likewise.
22821         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Assume <time.h> exists.
22822
22823         multiarch: remove AA_APPLE_UNIVERSAL_BUILD
22824         * m4/multiarch.m4 (gl_MULTIARCH): Don't AC_DEFINE
22825         AA_APPLE_UNIVERSAL_BUILD.  See
22826         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00247.html>.
22827         * NEWS: Document this.
22828
22829 2011-01-19  Eric Blake  <eblake@redhat.com>
22830
22831         c-stack: assume stack overflow if SA_SIGINFO unsupported
22832         * lib/c-stack.c (SIGACTION_WORKS): Rename...
22833         (SIGINFO_WORKS): ...since gnulib module guarantees that (most) of
22834         sigaction will work.
22835         (die): Assume stack overflow if siginfo doesn't work, to let Haiku
22836         behavior match Linux.
22837         * tests/test-c-stack.c (main): Prefer NULL for pointers.
22838
22839         stdbool-tests: accommodate Haiku
22840         * tests/test-stdbool.c: Haiku's gcc 2.95 lacks native _Bool.
22841
22842         binary-io: fix O_TEXT on Haiku
22843         * modules/binary-io (Depends-on): Add fcntl-h.
22844         * lib/binary-io.h (O_TEXT): Rely on replacement <fcntl.h> rather
22845         than blindly undefining O_TEXT.
22846         Reported by Scott McCreary.
22847
22848 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22849
22850         include_next: do not check for standard headers like stddef.h
22851
22852         I found this problem when modifying Emacs to use gnulib.
22853         I noticed that it added HAVE_STDDEF_H to config.h, even though
22854         gnulib always assumes <stddef.h> exists as per README and this
22855         symbol is unnecessary.
22856         * m4/include_next.m4 (gl_NEXT_HEADERS): New macro, which does not
22857         use AC_CHECK_HEADERS_ONCE, but which otherwise contains what
22858         gl_CHECK_NEXT_HEADERS used to contain.  This makes 'configure' run
22859         faster for headers like stddef.h that are known to exist.
22860         (gl_CHECK_NEXT_HEADERS): Use it.
22861         * m4/float_h.m4 (gl_FLOAT_H): For float.h, use gl_NEXT_HEADERS
22862         rather than gl_CHECK_NEXT_HEADERS.
22863         * m4/stdarg.m4 (gl_STDARG_H): Likewise, for stdarg.h.
22864         * m4/stddef_h.m4 (gl_STDDEF_H): Likewise, for stddef.h.
22865
22866 2011-01-18  Eric Blake  <eblake@redhat.com>
22867
22868         ansi-c++-opt: skip C++ dependency style if C++ is unused
22869         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Avoid full-blown dependency
22870         tests when we know C++ compilation is not desired.
22871         Reported by Scott McCreary.
22872
22873 2011-01-18  Bruno Haible  <bruno@clisp.org>
22874
22875         *printf-posix: Avoid test failures. Make tests work on MacOS X, Cygwin.
22876         * tests/test-fprintf-posix3.c: Include "resource-ext.h".
22877         (main): Perform test also when getrlimit and setrlimit don't exist or
22878         when setrlimit of RLIMIT_DATA fails (like on Cygwin). Instead of
22879         limiting the address space size using setrlimit, compare the address
22880         space size before and after the the test.
22881         * tests/test-dprintf-posix2.c: Likewise.
22882         * tests/test-fprintf-posix3.sh: Update skip messages.
22883         * tests/test-dprintf-posix2.sh: Likewise.
22884         * modules/fprintf-posix-tests (Depends-on): Add get-rusage-as.
22885         * modules/dprintf-posix-tests (Depends-on): Likewise.
22886         Reported by Bruce Korb <bkorb@gnu.org> and
22887         Gary V. Vaughan <gary@gnu.org>.
22888
22889 2011-01-18  Bruno Haible  <bruno@clisp.org>
22890
22891         get-rusage-as: Improvement for Cygwin.
22892         * lib/get-rusage-as.c (get_rusage_as_via_iterator): On Windows, ignore
22893         areas that are merely reserved.
22894
22895 2011-01-18  Paul Eggert  <eggert@cs.ucla.edu>
22896
22897         strftime: remove dependencies on multibyte modules
22898
22899         strftime depended on mbrlen, mbsinit, and wchar, but these modules
22900         are needed only if ! MULTIBYTE_IS_FORMAT_SAFE, and that is true
22901         only if __osf__ is defined, and I suspect OSF doesn't need these
22902         other modules.  If my guess is wrong, we'll need to come up with a
22903         variant of strftime that doesn't need the multibyte modules.
22904
22905         I discovered this problem when attempting modify Emacs to use the
22906         strftime module.  With the previous gnulib, this caused Emacs to
22907         need 31 new files, ranging from lib/config.charset to
22908         m4/wint_t.m4.  This was overkill and I expect would be offputting
22909         to the Emacs maintainers.  After this change, only 6 new files are
22910         needed, namely strftime.[ch], srtftime.m4, stdbool.in.h,
22911         stdbool.m4, and tm_gmtoff.m4.
22912
22913         * lib/strftime.c (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 always.
22914         Suggested by Bruno Haible in
22915         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00238.html>.
22916         * m4/strftime.m4 (gl_FUNC_STRFTIME): Do not require AC_TYPE_MBSTATE_T,
22917         and do not check for wchar.h.
22918         * modules/strftime (Files): Remove m4/mbstate_t.m4.
22919         (Depends-on): Remove mbrlen, mbsinit, wchar.
22920
22921 2011-01-18  Bruno Haible  <bruno@clisp.org>
22922
22923         Tests for module 'get-rusage-as'.
22924         * modules/get-rusage-as-tests: New file.
22925         * tests/test-get-rusage-as.c: New file.
22926
22927         New module 'get-rusage-as'.
22928         * modules/get-rusage-as: New file.
22929         * lib/resource-ext.h: New file.
22930         * lib/get-rusage-as.c: New file.
22931
22932 2011-01-17  Eric Blake  <eblake@redhat.com>
22933
22934         sigaction: relax license from LGPLv3+ to LGPLv2+
22935         * modules/sigaction (License): Relax to LGPLv2+.
22936
22937 2011-01-14  Bruno Haible  <bruno@clisp.org>
22938
22939         filemode: Make function declarations usable in C++ mode.
22940         * lib/filemode.h: Enclose function declarations in extern "C" block.
22941         Reported by John W. Eaton <jwe@gnu.org>.
22942
22943 2011-01-12  Rob Vermaas  <rob.vermaas@gmail.com>
22944
22945         save-cwd: no longer include "xgetcwd.h"
22946         * lib/save-cwd.c: Don't include "xgetcwd.h"; it's no longer used.
22947         This avoids a compilation failure in projects that use save-cwd
22948         without also using the xgetcwd module.
22949
22950 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22951
22952         ftoastr: split into 3 modules ftoastr, dtoastr, ldtoastr
22953         This is so that a program like Emacs, which needs only dtoastr,
22954         does not have to bother with distributing and compiling ftoastr
22955         and ldtoastr.
22956         * MODULES.html.sh: Document these modules (ftoastr wasn't documented).
22957         * modules/dtoastr, modules/ldtoastr: New files.
22958         * modules/ftoastr: Now works just for 'float'.
22959         (Files): Remove lib/dtoastr.c, lib/ldtoastr.c.
22960         (Makefile.am): Remove ftoastr.h (not needed and no effect),
22961         dtoastr.c, ldtoastr.c.
22962
22963 2011-01-11  Jim Meyering  <meyering@redhat.com>
22964
22965         save-cwd: remove #if-!HAVE_FCHDIR'd code; use the fchdir module
22966         There is no need to work around the lack of the fchdir function,
22967         since gnulib can now provide a replacement when required.
22968         * lib/save-cwd.c: Remove #if !HAVE_FCHDIR...#endif code.
22969         * modules/save-cwd (Depends-on): Add fchdir.
22970
22971 2011-01-11  Paul Eggert  <eggert@cs.ucla.edu>
22972
22973         openat, save-cwd: avoid xmalloc
22974
22975         This removes a direct (but undocumented) dependency of openat on
22976         xalloc, along with an indirect dependency via save-cwd.  It also
22977         removes a dependency of save-cwd on xgetcwd, and thereby
22978         indirectly on xalloc.  This change causes the openat substitute
22979         to fall back on save_cwd when memory is tight, and for save_cwd to
22980         fail instead of dying when memory is tight, but that's good enough.
22981         Problem and initial idea for fix reported by Bastien Roucaries in
22982         <http://lists.gnu.org/archive/html/bug-gnulib/2011-01/msg00170.html>.
22983
22984         * lib/openat-proc.c: Include stdlib.h (for malloc), not
22985         xalloc.h (for xmalloc).
22986         (openat_proc_name): Use malloc, not xmalloc.
22987         * lib/save-cwd.c (save_cwd): Use getcwd, not xgetcwd.
22988         * modules/save-cwd (Files): Depend on getcwd, not xgetcwd.
22989
22990         openat: Increase OPENAT_BUFFER_SIZE from 512 to at least 1024
22991         This avoids heap allocation for file names whose lengths are in
22992         the range 512..1023, with the upper bound increasing to at most
22993         4031 depending on the platform's PATH_MAX.  (We do not want
22994         pathmax.h here as it might supply a non-constant PATH_MAX.)
22995         * lib/openat-priv.h (SAFER_ALLOCA_MAX, SAFER_ALLOCA): New macros.
22996         Perhaps they should be moved to malloca.h?
22997         (OPENAT_BUFFER_SIZE): Use them.
22998
22999 2011-01-10  Bruno Haible  <bruno@clisp.org>
23000
23001         doc: Update users.txt.
23002         * users.txt: Add recutils.
23003
23004 2011-01-09  Karl Berry  <karl@gnu.org>
23005
23006         * doc/posix-functions/gai_strerror.texi: Insert missing @item.
23007
23008         * doc/configmake.texi: New file.
23009         * doc/gnulib.texi: Include it.
23010         * modules/configmake: Move documentation from here.
23011
23012 2011-01-09  Bruno Haible  <bruno@clisp.org>
23013
23014         Update to Unicode 6.0.0.
23015         * lib/gen-uni-tables.c (symbolic_width): Fix bounds of planes.
23016         (get_lbp): Update for Unicode 6.0.0.
23017         * lib/uniwidth/width.c (nonspacing_table_data): Add U+065F,
23018         U+0859..U+085B, U+093A, U+0956..U+0957, U+0F8D..U+0F8F, U+135D..U+135E,
23019         U+1BE6, U+1BE8..U+1BE9, U+1BED, U+1BEF..U+1BF1, U+1DFC, U+2D7F,
23020         U+11001, U+11038..U+11046. Remove U+06DE.
23021         (uc_width): Fix bounds of planes.
23022         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23023         lib/uniwidth/width.c.
23024         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 6.0.0, with
23025         trailing whitespace removed.
23026         * tests/uninorm/NormalizationTest.txt: Update from Unicode 6.0.0,
23027         without comments, but with the original copyright notice.
23028         * lib/unicase/cased.h: Regenerated for Unicode 6.0.0.
23029         * lib/unicase/ignorable.h: Likewise.
23030         * lib/unicase/tocasefold.h: Likewise.
23031         * lib/unicase/tolower.h: Likewise.
23032         * lib/unicase/totitle.h: Likewise.
23033         * lib/unicase/toupper.h: Likewise.
23034         * lib/unictype/bidi_of.h: Likewise.
23035         * lib/unictype/blocks.h: Likewise.
23036         * lib/unictype/categ_C.h: Likewise.
23037         * lib/unictype/categ_Cn.h: Likewise.
23038         * lib/unictype/categ_L.h: Likewise.
23039         * lib/unictype/categ_Ll.h: Likewise.
23040         * lib/unictype/categ_Lm.h: Likewise.
23041         * lib/unictype/categ_Lo.h: Likewise.
23042         * lib/unictype/categ_Lu.h: Likewise.
23043         * lib/unictype/categ_M.h: Likewise.
23044         * lib/unictype/categ_Mc.h: Likewise.
23045         * lib/unictype/categ_Me.h: Likewise.
23046         * lib/unictype/categ_Mn.h: Likewise.
23047         * lib/unictype/categ_N.h: Likewise.
23048         * lib/unictype/categ_Nd.h: Likewise.
23049         * lib/unictype/categ_No.h: Likewise.
23050         * lib/unictype/categ_P.h: Likewise.
23051         * lib/unictype/categ_Po.h: Likewise.
23052         * lib/unictype/categ_S.h: Likewise.
23053         * lib/unictype/categ_Sc.h: Likewise.
23054         * lib/unictype/categ_Sk.h: Likewise.
23055         * lib/unictype/categ_Sm.h: Likewise.
23056         * lib/unictype/categ_So.h: Likewise.
23057         * lib/unictype/categ_of.h: Likewise.
23058         * lib/unictype/combining.h: Likewise.
23059         * lib/unictype/ctype_alnum.h: Likewise.
23060         * lib/unictype/ctype_alpha.h: Likewise.
23061         * lib/unictype/ctype_graph.h: Likewise.
23062         * lib/unictype/ctype_lower.h: Likewise.
23063         * lib/unictype/ctype_print.h: Likewise.
23064         * lib/unictype/ctype_punct.h: Likewise.
23065         * lib/unictype/ctype_upper.h: Likewise.
23066         * lib/unictype/decdigit.h: Likewise.
23067         * lib/unictype/digit.h: Likewise.
23068         * lib/unictype/numeric.h: Likewise.
23069         * lib/unictype/pr_alphabetic.h: Likewise.
23070         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23071         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23072         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23073         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23074         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23075         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23076         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23077         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23078         * lib/unictype/pr_case_ignorable.h: Likewise.
23079         * lib/unictype/pr_cased.h: Likewise.
23080         * lib/unictype/pr_changes_when_casefolded.h: Likewise.
23081         * lib/unictype/pr_changes_when_casemapped.h: Likewise.
23082         * lib/unictype/pr_changes_when_lowercased.h: Likewise.
23083         * lib/unictype/pr_changes_when_titlecased.h: Likewise.
23084         * lib/unictype/pr_changes_when_uppercased.h: Likewise.
23085         * lib/unictype/pr_combining.h: Likewise.
23086         * lib/unictype/pr_composite.h: Likewise.
23087         * lib/unictype/pr_currency_symbol.h: Likewise.
23088         * lib/unictype/pr_decimal_digit.h: Likewise.
23089         * lib/unictype/pr_deprecated.h: Likewise.
23090         * lib/unictype/pr_format_control.h: Likewise.
23091         * lib/unictype/pr_grapheme_base.h: Likewise.
23092         * lib/unictype/pr_grapheme_extend.h: Likewise.
23093         * lib/unictype/pr_grapheme_link.h: Likewise.
23094         * lib/unictype/pr_id_continue.h: Likewise.
23095         * lib/unictype/pr_id_start.h: Likewise.
23096         * lib/unictype/pr_ideographic.h: Likewise.
23097         * lib/unictype/pr_lowercase.h: Likewise.
23098         * lib/unictype/pr_math.h: Likewise.
23099         * lib/unictype/pr_numeric.h: Likewise.
23100         * lib/unictype/pr_other_alphabetic.h: Likewise.
23101         * lib/unictype/pr_other_id_continue.h: Likewise.
23102         * lib/unictype/pr_other_math.h: Likewise.
23103         * lib/unictype/pr_punctuation.h: Likewise.
23104         * lib/unictype/pr_sentence_terminal.h: Likewise.
23105         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23106         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23107         * lib/unictype/pr_unified_ideograph.h: Likewise.
23108         * lib/unictype/pr_uppercase.h: Likewise.
23109         * lib/unictype/pr_xid_continue.h: Likewise.
23110         * lib/unictype/pr_xid_start.h: Likewise.
23111         * lib/unictype/scripts.h: Likewise.
23112         * lib/unictype/scripts_byname.gperf: Likewise.
23113         * lib/unictype/sy_java_ident.h: Likewise.
23114         * lib/unigbrk/gbrkprop.h: Likewise.
23115         * lib/unilbrk/lbrkprop1.h: Likewise.
23116         * lib/unilbrk/lbrkprop2.h: Likewise.
23117         * lib/uninorm/decomposition-table2.h: Likewise.
23118         * lib/uniwbrk/wbrkprop.h: Likewise.
23119         * tests/unicase/test-cased.c: Likewise.
23120         * tests/unicase/test-ignorable.c: Likewise.
23121         * tests/unicase/test-uc_tolower.c: Likewise.
23122         * tests/unicase/test-uc_totitle.c: Likewise.
23123         * tests/unicase/test-uc_toupper.c: Likewise.
23124         * tests/unictype/test-categ_C.c: Likewise.
23125         * tests/unictype/test-categ_Cn.c: Likewise.
23126         * tests/unictype/test-categ_L.c: Likewise.
23127         * tests/unictype/test-categ_Ll.c: Likewise.
23128         * tests/unictype/test-categ_Lm.c: Likewise.
23129         * tests/unictype/test-categ_Lo.c: Likewise.
23130         * tests/unictype/test-categ_Lu.c: Likewise.
23131         * tests/unictype/test-categ_M.c: Likewise.
23132         * tests/unictype/test-categ_Mc.c: Likewise.
23133         * tests/unictype/test-categ_Me.c: Likewise.
23134         * tests/unictype/test-categ_Mn.c: Likewise.
23135         * tests/unictype/test-categ_N.c: Likewise.
23136         * tests/unictype/test-categ_Nd.c: Likewise.
23137         * tests/unictype/test-categ_No.c: Likewise.
23138         * tests/unictype/test-categ_P.c: Likewise.
23139         * tests/unictype/test-categ_Po.c: Likewise.
23140         * tests/unictype/test-categ_S.c: Likewise.
23141         * tests/unictype/test-categ_Sc.c: Likewise.
23142         * tests/unictype/test-categ_Sk.c: Likewise.
23143         * tests/unictype/test-categ_Sm.c: Likewise.
23144         * tests/unictype/test-categ_So.c: Likewise.
23145         * tests/unictype/test-ctype_alnum.c: Likewise.
23146         * tests/unictype/test-ctype_alpha.c: Likewise.
23147         * tests/unictype/test-ctype_graph.c: Likewise.
23148         * tests/unictype/test-ctype_lower.c: Likewise.
23149         * tests/unictype/test-ctype_print.c: Likewise.
23150         * tests/unictype/test-ctype_punct.c: Likewise.
23151         * tests/unictype/test-ctype_upper.c: Likewise.
23152         * tests/unictype/test-decdigit.h: Likewise.
23153         * tests/unictype/test-digit.h: Likewise.
23154         * tests/unictype/test-numeric.h: Likewise.
23155         * tests/unictype/test-pr_alphabetic.c: Likewise.
23156         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23157         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
23158         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
23159         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23160         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23161         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23162         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23163         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23164         * tests/unictype/test-pr_case_ignorable.c: Likewise.
23165         * tests/unictype/test-pr_cased.c: Likewise.
23166         * tests/unictype/test-pr_changes_when_casefolded.c: Likewise.
23167         * tests/unictype/test-pr_changes_when_casemapped.c: Likewise.
23168         * tests/unictype/test-pr_changes_when_lowercased.c: Likewise.
23169         * tests/unictype/test-pr_changes_when_titlecased.c: Likewise.
23170         * tests/unictype/test-pr_changes_when_uppercased.c: Likewise.
23171         * tests/unictype/test-pr_combining.c: Likewise.
23172         * tests/unictype/test-pr_composite.c: Likewise.
23173         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23174         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23175         * tests/unictype/test-pr_deprecated.c: Likewise.
23176         * tests/unictype/test-pr_format_control.c: Likewise.
23177         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23178         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23179         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23180         * tests/unictype/test-pr_id_continue.c: Likewise.
23181         * tests/unictype/test-pr_id_start.c: Likewise.
23182         * tests/unictype/test-pr_ideographic.c: Likewise.
23183         * tests/unictype/test-pr_lowercase.c: Likewise.
23184         * tests/unictype/test-pr_math.c: Likewise.
23185         * tests/unictype/test-pr_numeric.c: Likewise.
23186         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23187         * tests/unictype/test-pr_other_id_continue.c: Likewise.
23188         * tests/unictype/test-pr_other_math.c: Likewise.
23189         * tests/unictype/test-pr_punctuation.c: Likewise.
23190         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23191         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23192         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23193         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23194         * tests/unictype/test-pr_uppercase.c: Likewise.
23195         * tests/unictype/test-pr_xid_continue.c: Likewise.
23196         * tests/unictype/test-pr_xid_start.c: Likewise.
23197         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23198         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23199         changes.
23200         * lib/unictype/categ_Cc.h: Likewise.
23201         * lib/unictype/categ_Cf.h: Likewise.
23202         * lib/unictype/categ_Co.h: Likewise.
23203         * lib/unictype/categ_Cs.h: Likewise.
23204         * lib/unictype/categ_Lt.h: Likewise.
23205         * lib/unictype/categ_Nl.h: Likewise.
23206         * lib/unictype/categ_Pc.h: Likewise.
23207         * lib/unictype/categ_Pd.h: Likewise.
23208         * lib/unictype/categ_Pe.h: Likewise.
23209         * lib/unictype/categ_Pf.h: Likewise.
23210         * lib/unictype/categ_Pi.h: Likewise.
23211         * lib/unictype/categ_Ps.h: Likewise.
23212         * lib/unictype/categ_Z.h: Likewise.
23213         * lib/unictype/categ_Zl.h: Likewise.
23214         * lib/unictype/categ_Zp.h: Likewise.
23215         * lib/unictype/categ_Zs.h: Likewise.
23216         * lib/unictype/ctype_blank.h: Likewise.
23217         * lib/unictype/ctype_cntrl.h: Likewise.
23218         * lib/unictype/ctype_digit.h: Likewise.
23219         * lib/unictype/ctype_space.h: Likewise.
23220         * lib/unictype/ctype_xdigit.h: Likewise.
23221         * lib/unictype/mirror.h: Likewise.
23222         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23223         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23224         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23225         * lib/unictype/pr_bidi_control.h: Likewise.
23226         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23227         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23228         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23229         * lib/unictype/pr_bidi_pdf.h: Likewise.
23230         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23231         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23232         * lib/unictype/pr_dash.h: Likewise.
23233         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23234         * lib/unictype/pr_diacritic.h: Likewise.
23235         * lib/unictype/pr_extender.h: Likewise.
23236         * lib/unictype/pr_hex_digit.h: Likewise.
23237         * lib/unictype/pr_hyphen.h: Likewise.
23238         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23239         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23240         * lib/unictype/pr_ignorable_control.h: Likewise.
23241         * lib/unictype/pr_iso_control.h: Likewise.
23242         * lib/unictype/pr_join_control.h: Likewise.
23243         * lib/unictype/pr_left_of_pair.h: Likewise.
23244         * lib/unictype/pr_line_separator.h: Likewise.
23245         * lib/unictype/pr_logical_order_exception.h: Likewise.
23246         * lib/unictype/pr_non_break.h: Likewise.
23247         * lib/unictype/pr_not_a_character.h: Likewise.
23248         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23249         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23250         * lib/unictype/pr_other_id_start.h: Likewise.
23251         * lib/unictype/pr_other_lowercase.h: Likewise.
23252         * lib/unictype/pr_other_uppercase.h: Likewise.
23253         * lib/unictype/pr_paired_punctuation.h: Likewise.
23254         * lib/unictype/pr_paragraph_separator.h: Likewise.
23255         * lib/unictype/pr_pattern_syntax.h: Likewise.
23256         * lib/unictype/pr_pattern_white_space.h: Likewise.
23257         * lib/unictype/pr_private_use.h: Likewise.
23258         * lib/unictype/pr_quotation_mark.h: Likewise.
23259         * lib/unictype/pr_radical.h: Likewise.
23260         * lib/unictype/pr_soft_dotted.h: Likewise.
23261         * lib/unictype/pr_space.h: Likewise.
23262         * lib/unictype/pr_titlecase.h: Likewise.
23263         * lib/unictype/pr_variation_selector.h: Likewise.
23264         * lib/unictype/pr_white_space.h: Likewise.
23265         * lib/unictype/pr_zero_width.h: Likewise.
23266         * lib/unictype/sy_c_ident.h: Likewise.
23267         * lib/unictype/sy_c_whitespace.h: Likewise.
23268         * lib/unictype/sy_java_whitespace.h: Likewise.
23269         * lib/uninorm/composition-table.gperf: Likewise.
23270         * lib/uninorm/decomposition-table1.h: Likewise.
23271         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Add test for rule
23272         LB8.
23273         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23274         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23275         * modules/unictype/*: Bump version number of expected libunistring
23276         version.
23277
23278 2011-01-09  Bruno Haible  <bruno@clisp.org>
23279
23280         Update to Unicode 5.2.0.
23281         * tests/unigbrk/GraphemeBreakTest.txt: Copied from Unicode 5.2.0, with
23282         trailing whitespace removed.
23283
23284 2011-01-09  Bruno Haible  <bruno@clisp.org>
23285
23286         New Unicode character properties, from Unicode 5.2.0.
23287         * lib/unictype.in.h (UC_PROPERTY_CASED, UC_PROPERTY_CASE_IGNORABLE,
23288         UC_PROPERTY_CHANGES_WHEN_LOWERCASED,
23289         UC_PROPERTY_CHANGES_WHEN_UPPERCASED,
23290         UC_PROPERTY_CHANGES_WHEN_TITLECASED,
23291         UC_PROPERTY_CHANGES_WHEN_CASEFOLDED,
23292         UC_PROPERTY_CHANGES_WHEN_CASEMAPPED,
23293         uc_is_property_cased, uc_is_property_case_ignorable,
23294         uc_is_property_changes_when_lowercased,
23295         uc_is_property_changes_when_uppercased,
23296         uc_is_property_changes_when_titlecased,
23297         uc_is_property_changes_when_casefolded,
23298         uc_is_property_changes_when_casemapped): New declarations.
23299         * lib/unictype/pr_byname.gperf: Add the new properties.
23300         * modules/unictype/property-byname (Depends-on): Depend on the new
23301         properties modules.
23302         * modules/unictype/property-all (Depends-on): Likewise.
23303         * MODULES.html.sh (Unicode string functions): Add
23304         unictype/property-case-ignorable, unictype/property-cased,
23305         unictype/property-changes-when-casefolded,
23306         unictype/property-changes-when-casemapped,
23307         unictype/property-changes-when-lowercased,
23308         unictype/property-changes-when-titlecased,
23309         unictype/property-changes-when-uppercased.
23310
23311         New module 'unictype/property-changes-when-casemapped'.
23312         * modules/unictype/property-changes-when-casemapped: New file.
23313         * lib/unictype/pr_changes_when_casemapped.c: New file.
23314         * lib/unictype/pr_changes_when_casemapped.h: New file, automatically
23315         generated by gen-uni-tables.
23316         * modules/unictype/property-changes-when-casemapped-tests: New file.
23317         * tests/unictype/test-pr_changes_when_casemapped.c: New file,
23318         automatically generated by gen-uni-tables.
23319
23320         New module 'unictype/property-changes-when-casefolded'.
23321         * modules/unictype/property-changes-when-casefolded: New file.
23322         * lib/unictype/pr_changes_when_casefolded.c: New file.
23323         * lib/unictype/pr_changes_when_casefolded.h: New file, automatically
23324         generated by gen-uni-tables.
23325         * modules/unictype/property-changes-when-casefolded-tests: New file.
23326         * tests/unictype/test-pr_changes_when_casefolded.c: New file,
23327         automatically generated by gen-uni-tables.
23328
23329         New module 'unictype/property-changes-when-titlecased'.
23330         * modules/unictype/property-changes-when-titlecased: New file.
23331         * lib/unictype/pr_changes_when_titlecased.c: New file.
23332         * lib/unictype/pr_changes_when_titlecased.h: New file, automatically
23333         generated by gen-uni-tables.
23334         * modules/unictype/property-changes-when-titlecased-tests: New file.
23335         * tests/unictype/test-pr_changes_when_titlecased.c: New file,
23336         automatically generated by gen-uni-tables.
23337
23338         New module 'unictype/property-changes-when-uppercased'.
23339         * modules/unictype/property-changes-when-uppercased: New file.
23340         * lib/unictype/pr_changes_when_uppercased.c: New file.
23341         * lib/unictype/pr_changes_when_uppercased.h: New file, automatically
23342         generated by gen-uni-tables.
23343         * modules/unictype/property-changes-when-uppercased-tests: New file.
23344         * tests/unictype/test-pr_changes_when_uppercased.c: New file,
23345         automatically generated by gen-uni-tables.
23346
23347         New module 'unictype/property-changes-when-lowercased'.
23348         * modules/unictype/property-changes-when-lowercased: New file.
23349         * lib/unictype/pr_changes_when_lowercased.c: New file.
23350         * lib/unictype/pr_changes_when_lowercased.h: New file, automatically
23351         generated by gen-uni-tables.
23352         * modules/unictype/property-changes-when-lowercased-tests: New file.
23353         * tests/unictype/test-pr_changes_when_lowercased.c: New file,
23354         automatically generated by gen-uni-tables.
23355
23356         New module 'unictype/property-case-ignorable'.
23357         * modules/unictype/property-case-ignorable: New file.
23358         * lib/unictype/pr_case_ignorable.c: New file.
23359         * lib/unictype/pr_case_ignorable.h: New file, automatically generated
23360         by gen-uni-tables.
23361         * modules/unictype/property-case-ignorable-tests: New file.
23362         * tests/unictype/test-pr_case_ignorable.c: New file, automatically
23363         generated by gen-uni-tables.
23364
23365         New module 'unictype/property-cased'.
23366         * modules/unictype/property-cased: New file.
23367         * lib/unictype/pr_cased.c: New file.
23368         * lib/unictype/pr_cased.h: New file, automatically generated by
23369         gen-uni-tables.
23370         * modules/unictype/property-cased-tests: New file.
23371         * tests/unictype/test-pr_cased.c: New file, automatically generated by
23372         gen-uni-tables.
23373
23374 2011-01-09  Bruno Haible  <bruno@clisp.org>
23375
23376         Update to Unicode 5.2.0.
23377         * lib/gen-uni-tables.c (output_predicate, output_category,
23378         output_combclass, output_bidi_category, output_decimal_digit_test,
23379         output_decimal_digit, output_digit_test, output_digit,
23380         output_numeric_test, output_numeric, output_mirror, output_scripts,
23381         output_scripts_byname, output_blocks, output_ident_category): Fix
23382         comment header.
23383         (is_WBP_MIDNUMLET, is_WBP_MIDLETTER): New functions, extracted from
23384         get_wbp.
23385         (PROP_CASED, PROP_CASE_IGNORABLE, PROP_CHANGES_WHEN_*): New enumeration
23386         items.
23387         (fill_properties): Also fill the peoperties Cased, Case_Ignorable,
23388         Changes_When_Lowercased, Changes_When_Uppercased,
23389         Changes_When_Titlecased, Changes_When_Casefolded,
23390         Changes_When_Casemapped.
23391         (is_property_alphabetic, is_property_default_ignorable_code_point):
23392         Update for Unicode 5.2.0.
23393         (is_property_cased, is_property_case_ignorable,
23394         is_property_changes_when_lowercased,
23395         is_property_changes_when_uppercased,
23396         is_property_changes_when_titlecased,
23397         is_property_changes_when_casefolded,
23398         is_property_changes_when_casemapped): New functions.
23399         (output_properties): Output also the properties cased, case_ignorable,
23400         changes_when_lowercased, changes_when_uppercased,
23401         changes_when_titlecased, changes_when_casefolded,
23402         changes_when_casemapped.
23403         (symbolic_width): Update for Unicode 5.2.0, incorporating changes from
23404         Unicode TR#11 revision 17 -> 19.
23405         (LBP_CP): New enumeration value.
23406         (LBP_*): Adjust values accordingly.
23407         (get_lbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23408         TR#14 revision 22 -> 24.
23409         (debug_output_lbp): Allow for LBP_* bits >= 32. Support LBP_CP.
23410         (fill_org_lbp, debug_output_org_lbp, output_lbp): Support LBP_CP.
23411         (get_wbp): Update for Unicode 5.2.0, incorporating changes from Unicode
23412         TR#29 revision 13 -> 15. Use functions is_WBP_MIDNUMLET,
23413         is_WBP_MIDLETTER.
23414         (output_composition_tables): Allow for 24 bits instead of 16 bits in
23415         the code1 and code2 of each composition rule.
23416         * lib/unicase/cased.h: Regenerated for Unicode 5.2.0.
23417         * lib/unicase/ignorable.h: Likewise.
23418         * lib/unicase/tocasefold.h: Likewise.
23419         * lib/unicase/tolower.h: Likewise.
23420         * lib/unicase/totitle.h: Likewise.
23421         * lib/unicase/toupper.h: Likewise.
23422         * lib/unictype/bidi_of.h: Likewise.
23423         * lib/unictype/blocks.h: Likewise.
23424         * lib/unictype/categ_C.h: Likewise.
23425         * lib/unictype/categ_Cf.h: Likewise.
23426         * lib/unictype/categ_Cn.h: Likewise.
23427         * lib/unictype/categ_L.h: Likewise.
23428         * lib/unictype/categ_Ll.h: Likewise.
23429         * lib/unictype/categ_Lm.h: Likewise.
23430         * lib/unictype/categ_Lo.h: Likewise.
23431         * lib/unictype/categ_Lu.h: Likewise.
23432         * lib/unictype/categ_M.h: Likewise.
23433         * lib/unictype/categ_Mc.h: Likewise.
23434         * lib/unictype/categ_Mn.h: Likewise.
23435         * lib/unictype/categ_N.h: Likewise.
23436         * lib/unictype/categ_Nd.h: Likewise.
23437         * lib/unictype/categ_Nl.h: Likewise.
23438         * lib/unictype/categ_No.h: Likewise.
23439         * lib/unictype/categ_P.h: Likewise.
23440         * lib/unictype/categ_Pd.h: Likewise.
23441         * lib/unictype/categ_Po.h: Likewise.
23442         * lib/unictype/categ_S.h: Likewise.
23443         * lib/unictype/categ_Sc.h: Likewise.
23444         * lib/unictype/categ_So.h: Likewise.
23445         * lib/unictype/categ_of.h: Likewise.
23446         * lib/unictype/combining.h: Likewise.
23447         * lib/unictype/ctype_alnum.h: Likewise.
23448         * lib/unictype/ctype_alpha.h: Likewise.
23449         * lib/unictype/ctype_graph.h: Likewise.
23450         * lib/unictype/ctype_lower.h: Likewise.
23451         * lib/unictype/ctype_print.h: Likewise.
23452         * lib/unictype/ctype_punct.h: Likewise.
23453         * lib/unictype/ctype_upper.h: Likewise.
23454         * lib/unictype/decdigit.h: Likewise.
23455         * lib/unictype/digit.h: Likewise.
23456         * lib/unictype/numeric.h: Likewise.
23457         * lib/unictype/pr_alphabetic.h: Likewise.
23458         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
23459         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
23460         * lib/unictype/pr_bidi_european_digit.h: Likewise.
23461         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
23462         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
23463         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
23464         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
23465         * lib/unictype/pr_combining.h: Likewise.
23466         * lib/unictype/pr_composite.h: Likewise.
23467         * lib/unictype/pr_currency_symbol.h: Likewise.
23468         * lib/unictype/pr_dash.h: Likewise.
23469         * lib/unictype/pr_decimal_digit.h: Likewise.
23470         * lib/unictype/pr_deprecated.h: Likewise.
23471         * lib/unictype/pr_diacritic.h: Likewise.
23472         * lib/unictype/pr_extender.h: Likewise.
23473         * lib/unictype/pr_grapheme_base.h: Likewise.
23474         * lib/unictype/pr_grapheme_extend.h: Likewise.
23475         * lib/unictype/pr_grapheme_link.h: Likewise.
23476         * lib/unictype/pr_id_continue.h: Likewise.
23477         * lib/unictype/pr_id_start.h: Likewise.
23478         * lib/unictype/pr_ideographic.h: Likewise.
23479         * lib/unictype/pr_ignorable_control.h: Likewise.
23480         * lib/unictype/pr_logical_order_exception.h: Likewise.
23481         * lib/unictype/pr_lowercase.h: Likewise.
23482         * lib/unictype/pr_numeric.h: Likewise.
23483         * lib/unictype/pr_other_alphabetic.h: Likewise.
23484         * lib/unictype/pr_punctuation.h: Likewise.
23485         * lib/unictype/pr_sentence_terminal.h: Likewise.
23486         * lib/unictype/pr_terminal_punctuation.h: Likewise.
23487         * lib/unictype/pr_unassigned_code_value.h: Likewise.
23488         * lib/unictype/pr_unified_ideograph.h: Likewise.
23489         * lib/unictype/pr_uppercase.h: Likewise.
23490         * lib/unictype/pr_xid_continue.h: Likewise.
23491         * lib/unictype/pr_xid_start.h: Likewise.
23492         * lib/unictype/pr_zero_width.h: Likewise.
23493         * lib/unictype/scripts.h: Likewise.
23494         * lib/unictype/scripts_byname.gperf: Likewise.
23495         * lib/unictype/sy_java_ident.h: Likewise.
23496         * lib/unigbrk/gbrkprop.h: Likewise.
23497         * lib/unilbrk/lbrkprop1.h: Likewise.
23498         * lib/unilbrk/lbrkprop2.h: Likewise.
23499         * lib/unilbrk/lbrktables.h: Likewise.
23500         * lib/unilbrk/lbrktables.c (unilbrk_table): Add a row and column for
23501         LBP_CP. Implement rule LB30.
23502         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0816..U+0819,
23503         U+081B..U+0823, U+0825..U+0827, U+0829..U+082D, U+0900, U+0955, U+109D,
23504         U+1A56, U+1A58..U+1A5E, U+1A60, U+1A62, U+1A65..U+1A6C, U+1A73..U+1A7C,
23505         U+1A7F, U+1CD0..U+1CD2, U+1CD4..U+1CE0, U+1CE2..U+1CE8, U+1CED, U+1DFD,
23506         U+2CEF..U+2CF1, U+A6F0..U+A6F1, U+A8E0..U+A8F1, U+A980..U+A982, U+A9B3,
23507         U+A9B6..U+A9B9, U+A9BC, U+AAB0, U+AAB2..U+AAB4, U+AAB7..U+AAB8,
23508         U+AABE..U+AABF, U+AAC1, U+ABE5, U+ABE8, U+ABED, U+11080..U+11081,
23509         U+110B3..U+110B6, U+110B9..U+110BA, U+110BD.
23510         (uc_width): Return 2 also for unassigned code points of planes 2 and 3.
23511         * lib/uninorm/composition-table.gperf: Regenerated for Unicode 5.2.0.
23512         * lib/uninorm/composition.c (struct composition_rule): Allow for 24
23513         bits instead of 16 bits in the code1 and code2 of each composition
23514         rule.
23515         (uc_composition): Update for Unicode 5.2.0.
23516         * lib/uninorm/decomposition-table1.h: Regenerated for Unicode 5.2.0.
23517         * lib/uninorm/decomposition-table2.h: Likewise.
23518         * lib/uniwbrk/wbrkprop.h: Likewise.
23519         * tests/unicase/test-cased.c: Likewise.
23520         * tests/unicase/test-ignorable.c: Likewise.
23521         * tests/unicase/test-uc_tolower.c: Likewise.
23522         * tests/unicase/test-uc_totitle.c: Likewise.
23523         * tests/unicase/test-uc_toupper.c: Likewise.
23524         * tests/unictype/test-categ_C.c: Likewise.
23525         * tests/unictype/test-categ_Cf.c: Likewise.
23526         * tests/unictype/test-categ_Cn.c: Likewise.
23527         * tests/unictype/test-categ_L.c: Likewise.
23528         * tests/unictype/test-categ_Ll.c: Likewise.
23529         * tests/unictype/test-categ_Lm.c: Likewise.
23530         * tests/unictype/test-categ_Lo.c: Likewise.
23531         * tests/unictype/test-categ_Lu.c: Likewise.
23532         * tests/unictype/test-categ_M.c: Likewise.
23533         * tests/unictype/test-categ_Mc.c: Likewise.
23534         * tests/unictype/test-categ_Mn.c: Likewise.
23535         * tests/unictype/test-categ_N.c: Likewise.
23536         * tests/unictype/test-categ_Nd.c: Likewise.
23537         * tests/unictype/test-categ_Nl.c: Likewise.
23538         * tests/unictype/test-categ_No.c: Likewise.
23539         * tests/unictype/test-categ_P.c: Likewise.
23540         * tests/unictype/test-categ_Pd.c: Likewise.
23541         * tests/unictype/test-categ_Po.c: Likewise.
23542         * tests/unictype/test-categ_S.c: Likewise.
23543         * tests/unictype/test-categ_Sc.c: Likewise.
23544         * tests/unictype/test-categ_So.c: Likewise.
23545         * tests/unictype/test-ctype_alnum.c: Likewise.
23546         * tests/unictype/test-ctype_alpha.c: Likewise.
23547         * tests/unictype/test-ctype_graph.c: Likewise.
23548         * tests/unictype/test-ctype_lower.c: Likewise.
23549         * tests/unictype/test-ctype_print.c: Likewise.
23550         * tests/unictype/test-ctype_punct.c: Likewise.
23551         * tests/unictype/test-ctype_upper.c: Likewise.
23552         * tests/unictype/test-decdigit.h: Likewise.
23553         * tests/unictype/test-digit.h: Likewise.
23554         * tests/unictype/test-numeric.h: Likewise.
23555         * tests/unictype/test-pr_alphabetic.c: Likewise.
23556         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
23557         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
23558         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
23559         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
23560         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
23561         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
23562         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
23563         * tests/unictype/test-pr_combining.c: Likewise.
23564         * tests/unictype/test-pr_composite.c: Likewise.
23565         * tests/unictype/test-pr_currency_symbol.c: Likewise.
23566         * tests/unictype/test-pr_dash.c: Likewise.
23567         * tests/unictype/test-pr_decimal_digit.c: Likewise.
23568         * tests/unictype/test-pr_deprecated.c: Likewise.
23569         * tests/unictype/test-pr_diacritic.c: Likewise.
23570         * tests/unictype/test-pr_extender.c: Likewise.
23571         * tests/unictype/test-pr_grapheme_base.c: Likewise.
23572         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
23573         * tests/unictype/test-pr_grapheme_link.c: Likewise.
23574         * tests/unictype/test-pr_id_continue.c: Likewise.
23575         * tests/unictype/test-pr_id_start.c: Likewise.
23576         * tests/unictype/test-pr_ideographic.c: Likewise.
23577         * tests/unictype/test-pr_ignorable_control.c: Likewise.
23578         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
23579         * tests/unictype/test-pr_lowercase.c: Likewise.
23580         * tests/unictype/test-pr_numeric.c: Likewise.
23581         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
23582         * tests/unictype/test-pr_punctuation.c: Likewise.
23583         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
23584         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
23585         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
23586         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
23587         * tests/unictype/test-pr_uppercase.c: Likewise.
23588         * tests/unictype/test-pr_xid_continue.c: Likewise.
23589         * tests/unictype/test-pr_xid_start.c: Likewise.
23590         * tests/unictype/test-pr_zero_width.c: Likewise.
23591         * tests/unigbrk/test-uc-gbrk-prop.h: Likewise.
23592         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update for
23593         changed behaviour: line breaking is now disallowed between a letter
23594         or '=' and '('.
23595         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
23596         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
23597         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
23598         * tests/unilbrk/test-ulc-width-linebreaks.c (main): Likewise.
23599         * tests/uniwidth/test-uc_width2.sh: Same updates as in
23600         lib/uniwidth/width.c.
23601         * tests/uninorm/NormalizationTest.txt: Update from Unicode 5.2.0,
23602         without comments, but with the original copyright notice.
23603         * lib/unicase/special-casing-table.gperf: Regenerated; only comment
23604         changes.
23605         * lib/unictype/categ_Cc.h: Likewise.
23606         * lib/unictype/categ_Co.h: Likewise.
23607         * lib/unictype/categ_Cs.h: Likewise.
23608         * lib/unictype/categ_Lt.h: Likewise.
23609         * lib/unictype/categ_Me.h: Likewise.
23610         * lib/unictype/categ_Pc.h: Likewise.
23611         * lib/unictype/categ_Pe.h: Likewise.
23612         * lib/unictype/categ_Pf.h: Likewise.
23613         * lib/unictype/categ_Pi.h: Likewise.
23614         * lib/unictype/categ_Ps.h: Likewise.
23615         * lib/unictype/categ_Sk.h: Likewise.
23616         * lib/unictype/categ_Sm.h: Likewise.
23617         * lib/unictype/categ_Z.h: Likewise.
23618         * lib/unictype/categ_Zl.h: Likewise.
23619         * lib/unictype/categ_Zp.h: Likewise.
23620         * lib/unictype/categ_Zs.h: Likewise.
23621         * lib/unictype/ctype_blank.h: Likewise.
23622         * lib/unictype/ctype_cntrl.h: Likewise.
23623         * lib/unictype/ctype_digit.h: Likewise.
23624         * lib/unictype/ctype_space.h: Likewise.
23625         * lib/unictype/ctype_xdigit.h: Likewise.
23626         * lib/unictype/mirror.h: Likewise.
23627         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
23628         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
23629         * lib/unictype/pr_bidi_block_separator.h: Likewise.
23630         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
23631         * lib/unictype/pr_bidi_common_separator.h: Likewise.
23632         * lib/unictype/pr_bidi_control.h: Likewise.
23633         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
23634         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
23635         * lib/unictype/pr_bidi_pdf.h: Likewise.
23636         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
23637         * lib/unictype/pr_bidi_whitespace.h: Likewise.
23638         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
23639         * lib/unictype/pr_format_control.h: Likewise.
23640         * lib/unictype/pr_hex_digit.h: Likewise.
23641         * lib/unictype/pr_hyphen.h: Likewise.
23642         * lib/unictype/pr_ids_binary_operator.h: Likewise.
23643         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
23644         * lib/unictype/pr_iso_control.h: Likewise.
23645         * lib/unictype/pr_join_control.h: Likewise.
23646         * lib/unictype/pr_left_of_pair.h: Likewise.
23647         * lib/unictype/pr_line_separator.h: Likewise.
23648         * lib/unictype/pr_math.h: Likewise.
23649         * lib/unictype/pr_non_break.h: Likewise.
23650         * lib/unictype/pr_not_a_character.h: Likewise.
23651         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
23652         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
23653         * lib/unictype/pr_other_id_continue.h: Likewise.
23654         * lib/unictype/pr_other_id_start.h: Likewise.
23655         * lib/unictype/pr_other_lowercase.h: Likewise.
23656         * lib/unictype/pr_other_math.h: Likewise.
23657         * lib/unictype/pr_other_uppercase.h: Likewise.
23658         * lib/unictype/pr_paired_punctuation.h: Likewise.
23659         * lib/unictype/pr_paragraph_separator.h: Likewise.
23660         * lib/unictype/pr_pattern_syntax.h: Likewise.
23661         * lib/unictype/pr_pattern_white_space.h: Likewise.
23662         * lib/unictype/pr_private_use.h: Likewise.
23663         * lib/unictype/pr_quotation_mark.h: Likewise.
23664         * lib/unictype/pr_radical.h: Likewise.
23665         * lib/unictype/pr_soft_dotted.h: Likewise.
23666         * lib/unictype/pr_space.h: Likewise.
23667         * lib/unictype/pr_titlecase.h: Likewise.
23668         * lib/unictype/pr_variation_selector.h: Likewise.
23669         * lib/unictype/pr_white_space.h: Likewise.
23670         * lib/unictype/sy_c_ident.h: Likewise.
23671         * lib/unictype/sy_c_whitespace.h: Likewise.
23672         * lib/unictype/sy_java_whitespace.h: Likewise.
23673         * modules/uni*/*: Bump version number of expected libunistring version.
23674         Reported by Simon Josefsson.
23675
23676 2011-01-09  Karl Heuer  <kwzh@gnu.org>
23677
23678         useless-if-before-free: fix typo in --help and make the internal,
23679         automatic version date update process work once again.
23680         --help output contained a NUL character instead of the
23681         backslash-zero that was intended.  Also, the "must lie within
23682         the first 8 lines" line is on line 9, and hence not getting
23683         automatically updated.
23684         * build-aux/useless-if-before-free: Fix the former by adding a
23685         backslash, and the latter by condensing the three lines of what-it-does
23686         to a single line, leaving one line of slack for the future.
23687
23688 2011-01-09  Bruno Haible  <bruno@clisp.org>
23689
23690         uniwidth/width: Fix width of U+1D173..U+1D17A.
23691         * lib/gen-uni-tables.c (is_nonspacing, output_nonspacing_property,
23692         symbolic_width, output_width_property_test): New functions.
23693         (main): Invoke output_nonspacing_property, output_width_property_test.
23694         * lib/uniwidth/width.c (nonspacing_table_data): Set bits for
23695         U+1D173..U+1D17A.
23696         * tests/uniwidth/test-uc_width2.sh: For U+1D173..U+1D17A, expect 0, not
23697         1.
23698         * modules/uniwidth/*: Bump version number of expected libunistring
23699         version.
23700         * modules/unilbrk/*: Likewise.
23701
23702 2011-01-08  Bruno Haible  <bruno@clisp.org>
23703
23704         uninorm tests: Preserve copyright of Unicode data file.
23705         * tests/uninorm/NormalizationTest.txt: Re-add original copyright.
23706         Mention modifications.
23707
23708 2011-01-08  Bruno Haible  <bruno@clisp.org>
23709
23710         gen-uni-tables: Prepare for Unicode 5.2.0.
23711         * lib/gen-uni-tables.c (get_lbp): Allow for more than 32 LBP_* values.
23712         (debug_output_lbp, output_lbp): Update.
23713
23714 2011-01-08  Bruno Haible  <bruno@clisp.org>
23715
23716         unilbrk: Clarify gen-uni-tables.c code.
23717         * lib/gen-uni-tables.c (get_lbp): Assume REVISION_22 to be false. These
23718         were mistakes in UAX #14 revision 22 that are corrected in revision 24.
23719         Clarify what to do with unilbrk/lbrkprop.txt and uniwbrk/wbrkprop.txt.
23720
23721 2011-01-07  Bruno Haible  <bruno@clisp.org>
23722
23723         strtod: Restore errno when successfully parsing Infinity or NaN.
23724         * lib/strtod.c (strtod): After successfully parsing an Infinity or NaN,
23725         restore the original errno.
23726
23727 2011-01-07  Bruno Haible  <bruno@clisp.org>
23728
23729         remove test: Avoid failure on HP-UX 11.
23730         * tests/test-remove.c (main): Allow EEXIST as alternative error code.
23731
23732 2011-01-07  Bruno Haible  <bruno@clisp.org>
23733
23734         mkdir, mkdirat tests: Avoid failure on HP-UX 11.11.
23735         * tests/test-mkdir.h (test_mkdir): Allow EOPNOTSUPP as alternative
23736         error code.
23737
23738 2011-01-07  Pádraig Brady <P@draigBrady.com>
23739
23740         ignore-value: fixup comments, and add Eric Blake
23741         as an author since he rewrote the macros.
23742         * lib/ignore-value.h (ignore_value):  State that
23743         we now support aggregates.  Also specify exactly
23744         when the GCC warn_unused_result feature was added.
23745
23746 2011-01-06  Eric Blake  <eblake@redhat.com>
23747
23748         ignore-value: support aggregate types
23749         * lib/ignore-value.h (ignore_value): Provide separate gcc
23750         definition.
23751         * modules/ignore-value-tests: New test module.
23752         * tests/test-ignore-value.c: New test.
23753
23754         maint.mk: improve sc_prohibit_strcmp regex
23755         * top/maint.mk (sc_prohibit_strcmp): Detect strcmp()!=0, as
23756         documented.  Also, detect strcmp((expr),expr) == 0.  Exempt the
23757         definition of STRNEQ.
23758
23759         signal: work around Haiku issue with SIGBUS
23760         * lib/siglist.h: Add comment.
23761         * lib/sig2str.c (numname_table): Swap SIGBUS order, to match
23762         strsignal's favoring of SIGSEGV.
23763         * tests/test-signal.c (main): Avoid test failure.
23764         * doc/posix-headers/signal.texi (signal.h): Document the issue.
23765         Reported by Scott McCreary.
23766
23767         maint.mk: add pre-release check to ensure submodule commits are public
23768         * top/maint.mk (public-submodule-commit): New rule.
23769         (submodule-checks): New variable.
23770         (alpha beta stable): Depend on the variable.
23771
23772 2011-01-05  Pádraig Brady <P@draigBrady.com>
23773         and Jim Meyering  <meyering@redhat.com>
23774
23775         ignore-value: make ignore_value more generic; deprecate ignore_ptr
23776         * lib/ignore-value.h: Include <stdint.h>, for decl of intptr_t.
23777         (ATTRIBUTE_DEPRECATED): Define.
23778         (_ignore_case): New function.
23779         (ignore_value): New macro, to replace the old function.
23780         (ignore_ptr): Arrange for any use to evoke a deprecation warning.
23781         * modules/ignore-value (Depends-on): Add stdint.
23782
23783 2011-01-04  Eric Blake  <eblake@redhat.com>
23784
23785         doc: regenerate INSTALL
23786         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Re-add
23787         @firstparagraphindent support, now that autoconf dropped it.
23788         (INSTALL_PRELUDE): Reinstate old macro.
23789         * doc/install.texi: Resync from autoconf.
23790         * doc/INSTALL: Reflect recent autoconf update.
23791         * doc/INSTALL.ISO: Likewise.
23792         * doc/INSTALL.UTF-8: Likewise.
23793         Reported by Karl Berry.
23794
23795 2011-01-04  Bruce Korb  <address@hidden>
23796
23797         git-version-gen: avoid a sub-shell
23798         * build-aux/git-version-gen: Redirect stderr in `...` via
23799         "exec 2>...", rather than via an added sub-shell.
23800
23801 2011-01-03  Ben Pfaff  <blp@cs.stanford.edu>
23802
23803         git-version-gen: use (...) rather than sh -c '...'
23804         * build-aux/git-version-gen: Rather than hard-coding a shell's name
23805         with "sh -c '...'", just use "(...)".  Less syntax is better, too.
23806
23807 2011-01-03  Jim Meyering  <meyering@redhat.com>
23808
23809         git-version-gen: convert leading TABs to spaces
23810         * build-aux/git-version-gen: Expand leading TABs.
23811
23812         git-version-gen: handle failed "git rev-list"
23813         * build-aux/git-version-gen: Rather than leaking a "fatal" error
23814         from git and proceeding as if it had succeeded but printed no SHA1
23815         checksums, suppress the diagnostic and handle the failure.
23816         Reported by Bruce Korb in http://marc.info/?l=git&m=129399145930450&w=2
23817
23818         git-version-gen: include command name in one more diagnostic
23819         * build-aux/git-version-gen: When the required .tarball-version file
23820         was missing or unreadable, you might see the diagnostic from "cat",
23821         but no trace of the name of the invoking script.  Now, you still see
23822         the diagnostic from cat, but also get one from "git-version-gen: ".
23823         Inspired by a patch from Bruce Korb.
23824
23825         update-copyright: adjust test to match changed code
23826         * tests/test-update-copyright.sh: Change test's expected output
23827         to match new actual output.
23828
23829 2011-01-02  Bruno Haible  <bruno@clisp.org>
23830
23831         getlogin_r: Avoid test failure on HP-UX 11.
23832         * tests/test-getlogin_r.c (main): Allow an error code EINVAL instead of
23833         ERANGE when the second argument is zero.
23834         * doc/posix-functions/getlogin_r.texi: Document the HP-UX 11
23835         portability problem.
23836
23837 2011-01-02  Bruce Korb  <bkorb@gnu.org>
23838
23839         * build-aux/update-copyright: doc Simon's changes
23840
23841 2011-01-02  Simon Josefsson  <simon@josefsson.org>
23842
23843         * build-aux/update-copyright: Support UPDATE_COPYRIGHT_HOLDER
23844         environment variable.
23845
23846 2011-01-02  Bruno Haible  <bruno@clisp.org>
23847
23848         unigbrk: Avoid gcc warnings.
23849         * lib/unigbrk/u16-grapheme-breaks.c (u16_grapheme_breaks): Remove
23850         unused variable.
23851         * lib/unigbrk/u16-grapheme-prev.c (u16_grapheme_prev): Likewise.
23852         * lib/unigbrk/u8-grapheme-prev.c (u8_grapheme_prev): Likewise.
23853         * tests/unigbrk/test-u16-grapheme-breaks.c (main): Likewise.
23854         * tests/unigbrk/test-u32-grapheme-breaks.c (main): Likewise.
23855         * tests/unigbrk/test-u8-grapheme-breaks.c (test_u8_grapheme_breaks):
23856         Change type of first argument to 'const char *'.
23857         (main): Remove unused variable.
23858         * tests/unigbrk/test-u8-grapheme-next.c (test_u8_grapheme_next): Change
23859         type of first argument to 'const char *'.
23860         * tests/unigbrk/test-u8-grapheme-prev.c (test_u8_grapheme_prev):
23861         Likewise.
23862         (main): Change type of variable 's'.
23863         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Cast column number
23864         to 'int'.
23865
23866 2011-01-02  Bruno Haible  <bruno@clisp.org>
23867
23868         pwrite: Fix test whether it works and make it work on HP-UX 11.11.
23869         * m4/pwrite.m4 (gl_FUNC_PWRITE): Use AC_LANG_PROGRAM, not
23870         AC_LANG_SOURCE. Extend the test program to catch another HP-UX 11.11
23871         bug.
23872         * lib/pwrite.c: Undo 2010-12-31 patch.
23873         * doc/posix-functions/pwrite.texi: Document another HP-UX 11.11 bug.
23874
23875 2011-01-02  Bruno Haible  <bruno@clisp.org>
23876
23877         pread: Fix test whether it works.
23878         * m4/pread.m4 (gl_FUNC_PREAD): Use AC_LANG_PROGRAM, not AC_LANG_SOURCE.
23879
23880 2011-01-02  Bruno Haible  <bruno@clisp.org>
23881
23882         Fix detection of traditional Arabic locale on HP-UX, Solaris, Cygwin.
23883         * m4/locale-ar.m4 (gt_LOCALE_AR): Require that the locale encoding name
23884         ends in "6". Don't require a specific month name. Try also the locale
23885         names found on HP-UX 11 and Solaris 7.
23886
23887 2011-01-02  Bruno Haible  <bruno@clisp.org>
23888
23889         tcgetsid: Correct linkage in C++ mode on HP-UX 11.00.
23890         * lib/termios.in.h: In C++ mode, on HP-UX, include <sys/termios.h> with
23891         C linkage.
23892         * doc/posix-functions/tcgetsid.texi: Mention the HP-UX 11.00 bug.
23893
23894 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23895
23896         Rename uc_is_grapheme_cluster_break() to uc_is_grapheme_break()
23897         for consistency, since the "cluster" term is not used elsewhere.
23898         * lib/unigbrk.in.h: Update name.
23899         * lib/unigbrk/u16-grapheme-breaks.c: Update name.
23900         * lib/unigbrk/u16-grapheme-next.c: Update name.
23901         * lib/unigbrk/u16-grapheme-prev.c: Update name.
23902         * lib/unigbrk/u32-grapheme-breaks.c: Update name.
23903         * lib/unigbrk/u32-grapheme-next.c: Update name.
23904         * lib/unigbrk/u32-grapheme-prev.c: Update name.
23905         * lib/unigbrk/u8-grapheme-breaks.c: Update name.
23906         * lib/unigbrk/u8-grapheme-next.c: Update name.
23907         * lib/unigbrk/u8-grapheme-prev.c: Update name.
23908         * lib/unigbrk/uc-is-grapheme-break.c: Update name.
23909         * tests/unigbrk/test-uc-is-grapheme-break.c: Update name.
23910         Suggested by Bruno Haible.
23911
23912 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23913
23914         Remove module 'u8-grapheme-len' as too redundant with
23915         'u8-grapheme-next'.
23916         * modules/unigbrk/u8-grapheme-len: Delete file.
23917         * modules/unigbrk/u8-grapheme-len-tests: Delete file.
23918         * lib/unigbrk.in.h: Remove prototype for deleted function.
23919         * lib/unigbrk/u8-grapheme-len.c: Delete file.
23920         * tests/unigbrk/test-u8-grapheme-len.c: Delete file.
23921
23922         Remove module 'u16-grapheme-len' as too redundant with
23923         'u16-grapheme-next'.
23924         * modules/unigbrk/u16-grapheme-len: Delete file.
23925         * modules/unigbrk/u16-grapheme-len-tests: Delete file.
23926         * lib/unigbrk.in.h: Remove prototype for deleted function.
23927         * lib/unigbrk/u16-grapheme-len.c: Delete file.
23928         * tests/unigbrk/test-u16-grapheme-len.c: Delete file.
23929
23930         Remove module 'u32-grapheme-len' as too redundant with
23931         'u32-grapheme-next'.
23932         * modules/unigbrk/u32-grapheme-len: Delete file.
23933         * modules/unigbrk/u32-grapheme-len-tests: Delete file.
23934         * lib/unigbrk.in.h: Remove prototype for deleted function.
23935         * lib/unigbrk/u32-grapheme-len.c: Delete file.
23936         * tests/unigbrk/test-u32-grapheme-len.c: Delete file.
23937
23938         Suggested by Bruno Haible.
23939
23940 2011-01-01  Ben Pfaff  <blp@cs.stanford.edu>
23941
23942         * unigbrk.in.h: Fix typo: "ben" => "been".
23943         Reported by Bruno Haible.
23944
23945 2011-01-01  Jim Meyering  <meyering@redhat.com>
23946
23947         maint: update almost all copyright ranges to include 2011
23948         Run the new "make update-copyright" rule.
23949
23950 2011-01-01  Jim Meyering  <meyering@redhat.com>
23951
23952         maint: update-copyright: exempt doc/INSTALL*
23953         * Makefile (update-copyright): Also exclude doc/INSTALL*,
23954         since they are generated.  Suggested by Bruno Haible.
23955
23956 2011-01-01  Jim Meyering  <meyering@redhat.com>
23957
23958         maint: refine the update-copyright rule
23959         * Makefile (update-copyright): Also exclude any file that includes
23960         the "GENERATED AUTOMATICALLY" comment, being careful not to exclude
23961         code that merely generates the comment.
23962
23963 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
23964
23965         New module 'u8-grapheme-len'.
23966         * modules/unigbrk/u8-grapheme-len: New file.
23967         * modules/unigbrk/u8-grapheme-len-tests: New file.
23968         * lib/unigbrk.in.h: Add prototype for new function.
23969         * lib/unigbrk/u8-grapheme-len.c: New file.
23970         * tests/unigbrk/test-u8-grapheme-len.c: New file.
23971
23972         New module 'u16-grapheme-len'.
23973         * modules/unigbrk/u16-grapheme-len: New file.
23974         * modules/unigbrk/u16-grapheme-len-tests: New file.
23975         * lib/unigbrk.in.h: Add prototype for new function.
23976         * lib/unigbrk/u16-grapheme-len.c: New file.
23977         * tests/unigbrk/test-u16-grapheme-len.c: New file.
23978
23979         New module 'u32-grapheme-len'.
23980         * modules/unigbrk/u32-grapheme-len: New file.
23981         * modules/unigbrk/u32-grapheme-len-tests: New file.
23982         * lib/unigbrk.in.h: Add prototype for new function.
23983         * lib/unigbrk/u32-grapheme-len.c: New file.
23984         * tests/unigbrk/test-u32-grapheme-len.c: New file.
23985
23986         New module 'u8-grapheme-next'.
23987         * modules/unigbrk/u8-grapheme-next: New file.
23988         * modules/unigbrk/u8-grapheme-next-tests: New file.
23989         * lib/unigbrk.in.h: Add prototype for new function.
23990         * lib/unigbrk/u8-grapheme-next.c: New file.
23991         * tests/unigbrk/test-u8-grapheme-next.c: New file.
23992
23993         New module 'u16-grapheme-next'.
23994         * modules/unigbrk/u16-grapheme-next: New file.
23995         * modules/unigbrk/u16-grapheme-next-tests: New file.
23996         * lib/unigbrk.in.h: Add prototype for new function.
23997         * lib/unigbrk/u16-grapheme-next.c: New file.
23998         * tests/unigbrk/test-u16-grapheme-next.c: New file.
23999
24000         New module 'u32-grapheme-next'.
24001         * modules/unigbrk/u32-grapheme-next: New file.
24002         * modules/unigbrk/u32-grapheme-next-tests: New file.
24003         * lib/unigbrk.in.h: Add prototype for new function.
24004         * lib/unigbrk/u32-grapheme-next.c: New file.
24005         * tests/unigbrk/test-u32-grapheme-next.c: New file.
24006
24007         New module 'u8-grapheme-prev'.
24008         * modules/unigbrk/u8-grapheme-prev: New file.
24009         * modules/unigbrk/u8-grapheme-prev-tests: New file.
24010         * lib/unigbrk.in.h: Add prototype for new function.
24011         * lib/unigbrk/u8-grapheme-prev.c: New file.
24012         * tests/unigbrk/test-u8-grapheme-prev.c: New file.
24013
24014         New module 'u16-grapheme-prev'.
24015         * modules/unigbrk/u16-grapheme-prev: New file.
24016         * modules/unigbrk/u16-grapheme-prev-tests: New file.
24017         * lib/unigbrk.in.h: Add prototype for new function.
24018         * lib/unigbrk/u16-grapheme-prev.c: New file.
24019         * tests/unigbrk/test-u16-grapheme-prev.c: New file.
24020
24021         New module 'u32-grapheme-prev'.
24022         * modules/unigbrk/u32-grapheme-prev: New file.
24023         * modules/unigbrk/u32-grapheme-prev-tests: New file.
24024         * lib/unigbrk.in.h: Add prototype for new function.
24025         * lib/unigbrk/u32-grapheme-prev.c: New file.
24026         * tests/unigbrk/test-u32-grapheme-prev.c: New file.
24027
24028         New module 'u8-grapheme-breaks'.
24029         * modules/unigbrk/u8-grapheme-breaks: New file.
24030         * modules/unigbrk/u8-grapheme-breaks-tests: New file.
24031         * lib/unigbrk.in.h: Add prototype for new function.
24032         * lib/unigbrk/u8-grapheme-breaks.c: New file.
24033         * tests/unigbrk/test-u8-grapheme-breaks.c: New file.
24034
24035         New module 'u16-grapheme-breaks'.
24036         * modules/unigbrk/u16-grapheme-breaks: New file.
24037         * modules/unigbrk/u16-grapheme-breaks-tests: New file.
24038         * lib/unigbrk.in.h: Add prototype for new function.
24039         * lib/unigbrk/u16-grapheme-breaks.c: New file.
24040         * tests/unigbrk/test-u16-grapheme-breaks.c: New file.
24041
24042         New module 'u32-grapheme-breaks'.
24043         * modules/unigbrk/u32-grapheme-breaks: New file.
24044         * modules/unigbrk/u32-grapheme-breaks-tests: New file.
24045         * lib/unigbrk.in.h: Add prototype for new function.
24046         * lib/unigbrk/u32-grapheme-breaks.c: New file.
24047         * tests/unigbrk/test-u32-grapheme-breaks.c: New file.
24048
24049         New module 'ulc-grapheme-breaks'.
24050         * modules/unigbrk/ulc-grapheme-breaks: New file.
24051         * modules/unigbrk/ulc-grapheme-breaks-tests: New file.
24052         * m4/locale-ar.m4: New file.
24053         * lib/unigbrk/ulc-grapheme-breaks.c: New file.
24054         * tests/unigbrk/test-ulc-grapheme-breaks.c: New file.
24055         * tests/unigbrk/test-ulc-grapheme-breaks.sh: New file.
24056
24057 2010-12-31  Ben Pfaff  <blp@cs.stanford.edu>
24058
24059         gbrkprop: Fix implementation of uc_graphemeclusterbreak_property.
24060         * lib/unigbrk/gbrkprop.h: Regenerate with gen-uni-tables.c.  I had
24061         modified how this file was generated before I initially submitted
24062         the module, but failed to regenerate it.  This meant that several
24063         of the level2 entries were wrong.
24064         * lib/unigbrk/uc-gbrk-prop.h (uc_graphemeclusterbreak_property):
24065         Remove the division-by-2 that is folded into the table now that
24066         gbrkprop.h has been regenerated properly.  Now -1 entries are
24067         handled correctly.
24068
24069         New module 'unigbrk/uc-gbrk-prop-tests'.
24070         * modules/unigbrk/uc-gbrk-prop-tests: New file.
24071         * lib/gen-uni-tables.c: Generate tests/test-uc-gbrk-prop.h.
24072         * tests/unigbrk/test-uc-gbrk-prop.c: New file.
24073         * tests/unigbrk/test-uc-gbrk-prop.h: New file.
24074
24075 2011-01-01  Bruno Haible  <bruno@clisp.org>
24076
24077         Avoid use of hexadecimal escapes.
24078         * tests/unigbrk/test-uc-is-grapheme-break.c (main): Use octal escapes
24079         instead of hexadecimal escapes.
24080
24081 2011-01-01  Jim Meyering  <meyering@redhat.com>
24082
24083         maint: new rule to update copyright year ranges
24084         * Makefile (update-copyright): New rule.
24085
24086         maint: indent with TABs in Makefile
24087         * Makefile: Expand leading sequences of spaces to TABs
24088
24089         version-etc: update the copyright year it reports
24090         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2011.
24091
24092 2010-12-31  Bruno Haible  <bruno@clisp.org>
24093
24094         isfinite: Avoid compiler bug of "cc -O" on HP-UX 11.11.
24095         * lib/isfinite.c (zerof, zerod, zerol): New variables.
24096         (gl_isfinitef, gl_isfinited, gl_isfinitel): Use them instead of literal
24097         zero.
24098
24099 2010-12-31  Bruno Haible  <bruno@clisp.org>
24100
24101         pwrite: Work around HP-UX 11.11 bug.
24102         * m4/pwrite.m4 (gl_FUNC_PWRITE): When pwrite exists, test whether it
24103         works and set REPLACE_PWRITE if not.
24104         * lib/pwrite.c (pwrite): Add an implementation that uses the system
24105         function.
24106         * doc/posix-functions/pwrite.texi: Document the HP-UX 11 bug.
24107
24108 2010-12-31  Bruno Haible  <bruno@clisp.org>
24109
24110         pread: Work around HP-UX 11 bugs.
24111         * m4/pread.m4 (gl_FUNC_PREAD): When pread exists, test whether it works
24112         and set REPLACE_PREAD if not.
24113         * doc/posix-functions/pread.texi: Document the HP-UX 11 bugs.
24114
24115 2010-12-31  Eric Blake  <eblake@redhat.com>
24116
24117         nl_langinfo: fix YESEXPR on Irix 6.5
24118         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Test for Irix bug.
24119         * lib/nl_langinfo.c (rpl_nl_langinfo): Work around it.
24120         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Document
24121         it.
24122
24123 2010-12-31  Bruno Haible  <bruno@clisp.org>
24124
24125         iconv: Document HP-UX 11 bug.
24126         * doc/posix-functions/iconv.texi: Document HP-UX 11 return value bug.
24127
24128 2010-12-31  Bruno Haible  <bruno@clisp.org>
24129
24130         ldexpl: Fix link error on HP-UX 11.
24131         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When replacing ldexpl, set
24132         LDEXPL_LIBM, using $ISNANL_LIBM.
24133
24134 2010-12-31  Eric Blake  <eblake@redhat.com>
24135
24136         ftello: avoid compilation failure with SunStudio c89
24137         * lib/ftello.c (ftello): Use lseek, not llseek.
24138
24139         tests: avoid failing coreutils tests on cygwin
24140         * tests/init.sh (find_exe_basenames_): Exempt [.exe.
24141         (create_exe_shims_): Return 0 when skipping.
24142
24143 2010-12-31  Bruno Haible  <bruno@clisp.org>
24144
24145         sys_select: Avoid warning about missing memset declaration on HP-UX 11.
24146         * lib/sys_select.in.h: On HP-UX, include also <string.h>.
24147
24148 2010-12-31  Bruno Haible  <bruno@clisp.org>
24149
24150         waitpid: Fix link error in C++ mode.
24151         * lib/sys_wait.in.h: Remove extern "C" { ... } group.
24152
24153 2010-12-31  Bruno Haible  <bruno@clisp.org>
24154
24155         isnan: Use GCC built-ins when possible.
24156         * lib/math.in.h (gl_isnan_f): Use __builtin_isnanf instead of
24157         __builtin_isnan.
24158         (gl_isnan_l): Use __builtin_isnanl instead of __builtin_isnan.
24159         (isnan): Define using GCC built-ins for GCC >= 4.0.
24160
24161 2010-12-31  Bruno Haible  <bruno@clisp.org>
24162
24163         isnand: Fix mistake.
24164         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM): Use __builtin_isnan, not
24165         __builtin_isnand.
24166
24167 2010-12-31  Bruno Haible  <bruno@clisp.org>
24168
24169         open: Avoid C++ error on HP-UX 11.
24170         * lib/fcntl.in.h (open): Disable _GL_CXXALIASWARN invocation on HP-UX.
24171
24172 2010-12-31  Bruno Haible  <bruno@clisp.org>
24173
24174         time_r: Add missing declarations on HP-UX 11.
24175         * lib/time.in.h (localtime_r, gmtime_r): Test HAVE_DECL_LOCALTIME_R
24176         instead of HAVE_LOCALTIME_R.
24177         * m4/time_r.m4 (gl_TIME_R): Test whether localtime_r is declared. Set
24178         HAVE_LOCALTIME_R always.
24179         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize
24180         HAVE_DECL_LOCALTIME_R, not HAVE_LOCALTIME_R.
24181         * modules/time (Makefile.am): Substitute HAVE_DECL_LOCALTIME_R, not
24182         HAVE_LOCALTIME_R.
24183         * doc/posix-functions/gmtime_r.texi: Document the HP-UX 11 problem.
24184         * doc/posix-functions/localtime_r.texi: Likewise.
24185
24186 2010-12-29  Eric Blake  <eblake@redhat.com>
24187
24188         mountlist: tweak previous commit
24189         * lib/mountlist.c (me_remote): Guarantee trailing backslash.
24190         Reported by Paul Eggert.
24191
24192         mountlist: fix local drive detection on cygwin
24193         * lib/mountlist.c (ME_REMOTE) [__CYGWIN__]: Provide implementation
24194         that works for cygwin.
24195
24196 2010-12-29  Paul Eggert  <eggert@cs.ucla.edu>
24197
24198         ftoastr, snprintf: ftoastr + snprintf module
24199         * lib/ftoastr.c: Use GNULIB_SNPRINTF, not GNULIB_SNPRINTF_POSIX,
24200         since the snprintf module now should be good enough here.
24201         * modules/snprintf (configure.ac): Add gl_MODULE_INDICATOR([snprintf]).
24202         It seems odd to have both gl_STDIO_MODULE_INDICATOR([snprintf])
24203         and gl_MODULE_INDICATOR([snprintf]), but the former enables
24204         GNULIB_SNPRINTF only for the test directory, and the latter
24205         doesn't arrange for gl_STDIO_H_DEFAULTS to be called, so neither
24206         seems to suffice by itself.
24207
24208 2010-12-28  Paul Eggert  <eggert@cs.ucla.edu>
24209
24210         alloca: one step towards thread-safety
24211         * lib/alloca.c (find_stack_direction): New arg PTR, to avoid the
24212         need for a static variable.  All callers changed.  This does not
24213         make the alloca replacement thread-safe, but it's one step.
24214
24215         tests: minor indenting change
24216         * tests/init.sh: Sync from coreutils housekeeping patch
24217         <http://lists.gnu.org/archive/html/coreutils/2010-12/msg00116.html>
24218         to keep lines within 80 columns.
24219
24220 2010-12-28  Jim Meyering  <meyering@redhat.com>
24221
24222         regex: don't infloop on persistent failing calloc
24223         * lib/regexec.c (build_trtable): Return failure indication upon
24224         calloc failure.  Otherwise, re_search_internal could infloop on OOM.
24225         In glibc, this was fixed for version 2.13:
24226         http://sourceware.org/bugzilla/show_bug.cgi?id=12348
24227
24228 2010-12-28  Bruno Haible  <bruno@clisp.org>
24229             Paul Eggert <eggert@cs.ucla.edu>
24230
24231         linkat: Make implementation robust against system behaviour variations.
24232         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Define
24233         LINK_FOLLOWS_SYMLINKS to -1 if it needs a runtime test in the Solaris
24234         way, and to -2 if it needs a generic runtime test.
24235         * lib/linkat.c (solaris_optimized_link_immediate,
24236         solaris_optimized_link_follow): New functions.
24237         * tests/test-linkat.c (EXPECT_LINK_HARDLINKS_SYMLINKS): New macro.
24238         (check_same_link): Use it.
24239
24240 2010-12-26  Ben Pfaff  <blp@cs.stanford.edu>
24241
24242         New module 'unigbrk/base'.
24243         * modules/unigbrk/base: New file.
24244         * lib/unigbrk.in.h: New file.
24245
24246         New module 'unigbrk/uc-gbrk-prop'.
24247         * lib/gen-uni-tables.c: Generate lib/unigbrk/gbrkprop.h.
24248         * modules/unigbrk/uc-gbrk-prop: New file.
24249         * lib/unigbrk/gbrkprop.h: New file.
24250         * lib/unigbrk/uc-gbrk-prop.c: New file.
24251
24252         New module 'unigbrk/uc-is-grapheme-break'.
24253         * modules/unigbrk/uc-is-grapheme-break: New file.
24254         * modules/unigbrk/uc-is-grapheme-break-tests: New file.
24255         * lib/unigbrk/uc-is-grapheme-break.c: New file.
24256         * tests/unigbrk/test-uc-is-grapheme-break.c: New file.
24257         * tests/unigbrk/test-uc-is-grapheme-break.sh: New file.
24258         * tests/unigbrk/GraphemeBreakTest.txt: New file.
24259
24260         With corrections and tweaks by Bruno Haible <bruno@clisp.org>.
24261
24262 2010-12-27  Bruno Haible  <bruno@clisp.org>
24263
24264         linkat test: Avoid failure on Solaris 11 2010-11.
24265         * tests/test-linkat.c (main): Allow ENOTDIR as alternative error code.
24266
24267 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24268
24269         utimens: work around glibc rounding bug on more platforms
24270         * lib/utimens.c (fdutimens): Work around rounding bug even if
24271         HAVE_WORKING_UTIMES.  Reported for Linux 2.4.21 by Bruno Haible in
24272         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00298.html>.
24273
24274 2010-12-27  Bruno Haible  <bruno@clisp.org>
24275
24276         select tests: Improve comments.
24277         * tests/test-select.c (do_select): Add comments.
24278
24279 2010-12-27  Bruno Haible  <bruno@clisp.org>
24280
24281         select tests: Safer way of handling timeout.
24282         * tests/test-select.c (do_select_nowait): Zero-initialize the timeout
24283         at every invocation.
24284
24285 2010-12-27  Bruno Haible  <bruno@clisp.org>
24286
24287         select tests: Use 'bool' where appropriate.
24288         * tests/test-select.c (connect_to_socket): Change argument type to
24289         'bool'.
24290
24291 2010-12-27  Bruno Haible  <bruno@clisp.org>
24292
24293         select tests: Use existing modules.
24294         * modules/select-tests (Depends-on): Add pipe-posix, unistd.
24295         (configure.ac): Don't test for unistd.h.
24296         * tests/test-select.c: Include <unistd.h> always. Use pipe() as
24297         declared in <unistd.h>.
24298
24299 2010-12-27  Bruno Haible  <bruno@clisp.org>
24300
24301         mbrtowc: Work around a Solaris 7 bug.
24302         * m4/mbrtowc.m4 (gl_MBRTOWC_NULL_ARG1): New macro.
24303         (gl_MBRTOWC_NULL_ARG2): Renamed from gl_MBRTOWC_NULL_ARG.
24304         (gl_FUNC_MBRTOWC): Update. Define MBRTOWC_NULL_ARG2_BUG instead of
24305         MBRTOWC_NULL_ARG_BUG. Invoke gl_MBRTOWC_NULL_ARG1 and define
24306         MBRTOWC_NULL_ARG1_BUG.
24307         * lib/mbrtowc.c (rpl_mbrtowc): Use MBRTOWC_NULL_ARG2_BUG instead of
24308         MBRTOWC_NULL_ARG_BUG. Handle MBRTOWC_NULL_ARG1_BUG.
24309         * tests/test-mbrtowc.c (main): Test support of a NULL first argument.
24310         * doc/posix-functions/mbrtowc.texi: Mention the Solaris 7 bug.
24311
24312 2010-12-27  Jim Meyering  <meyering@redhat.com>
24313
24314         read-file.c: tweak syntax
24315         * lib/read-file.c (fread_file): Remove space after "*" in function
24316         definitions.
24317
24318 2010-12-27  Bruno Haible  <bruno@clisp.org>
24319
24320         times test: Avoid gcc warnings on OSF/1.
24321         * tests/test-times.c (main): Cast printf arguments from clock_t to
24322         'long int'.
24323
24324 2010-12-27  Paul Eggert  <eggert@cs.ucla.edu>
24325
24326         utimens: work around glibc rounding bug on older Linux kernels
24327         * lib/utimens.c (fdutimens): If invoking futimesat or futimes
24328         on Linux with a glibc whose utimes might not work, then work
24329         around a longstanding glibc bug involving rounding rather than
24330         truncated time stamps.  Reported for Linux 2.4.21 by Bruno Haible in
24331         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24332
24333 2010-12-26  Bruno Haible  <bruno@clisp.org>
24334
24335         inet_ntop: Hide mismatch of declaration on NonStop Kernel.
24336         * lib/arpa_inet.in.h (inet_ntop): Use _GL_CXXALIAS_SYS_CAST instead of
24337         _GL_CXXALIAS_SYS.
24338         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24339
24340 2010-12-26  Bruno Haible  <bruno@clisp.org>
24341
24342         inet_ntop, inet_pton: Ensure declaration on NonStop Kernel.
24343         * lib/arpa_inet.in.h: On NonStop Kernel, include also <netdb.h>.
24344         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
24345         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Include also <netdb.h> when
24346         looking for the declaration.
24347         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
24348         * doc/posix-functions/inet_ntop.texi: Document the NonStop Kernel
24349         problem.
24350         * doc/posix-functions/inet_pton.texi: Likewise.
24351
24352 2010-12-26  Bruno Haible  <bruno@clisp.org>
24353
24354         arpa_inet: Use the common idioms with C++ support.
24355         * lib/arpa_inet.in.h: Include c++defs.h.
24356         (inet_ntop, inet_pton): Declare using the macros with C++ namespace
24357         support.
24358         * modules/arpa_inet (Depends-on): Add c++defs.
24359         (Makefile.am): Substitute the contents of c++defs.h.
24360         * modules/arpa_inet-tests (Depends-on): Add arpa_inet-c++-tests.
24361         * modules/arpa_inet-c++-tests: New file.
24362         * tests/test-arpa_inet-c++.cc: New file.
24363
24364 2010-12-25  Bruno Haible  <bruno@clisp.org>
24365
24366         Fix more C++ link errors on Solaris 8.
24367         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Add
24368         $(LIB_EACCESS).
24369         * modules/stdio-c++-tests (test_stdio_c___LDADD): Likewise.
24370         * modules/stdlib-c++-tests (test_stdlib_c___LDADD): Likewise.
24371         * modules/sys_ioctl-c++-tests (test_sys_ioctl_c___LDADD): Likewise.
24372         * modules/wchar-c++-tests (test_wchar_c___LDADD): Likewise.
24373         * modules/wctype-c++-tests (test_wctype_c___LDADD): Likewise.
24374
24375 2010-12-25  Bruno Haible  <bruno@clisp.org>
24376
24377         printf-posix: Fix link error when a non-GCC compiler is used.
24378         * lib/stdio.in.h (printf): When not using GCC, override printf
24379         correctly.
24380         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24381
24382 2010-12-25  Bruno Haible  <bruno@clisp.org>
24383
24384         strerror_r-posix: Update doc.
24385         * doc/posix-functions/strerror_r.texi: Update doc about the return
24386         value. See <http://sources.redhat.com/bugzilla/show_bug.cgi?id=12204>.
24387
24388 2010-12-25  Paul Eggert  <eggert@cs.ucla.edu>
24389
24390         utimens: simplify the logic of the previous change
24391         * m4/utimes.m4 (gl_FUNC_UTIMES): Simplify the logic a bit.
24392         This should not affect whether the test succeeds or fails.
24393
24394         utimens: configure better on hosts with NFS clock skew
24395         * m4/utimes.m4 (gl_FUNC_UTIMES): Don't assume that utimes (f, NULL)
24396         uses the clock of the local host.  It might use the clock of the
24397         NFS server.  Reported for Linux 2.4.21 client by Bruno Haible in
24398         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00113.html>.
24399
24400 2010-12-25  Bruno Haible  <bruno@clisp.org>
24401
24402         ptsname test: Avoid failure on Solaris.
24403         * tests/test-ptsname.c (main): For Solaris, use the recommended way to
24404         open a pseudo-terminal; don't use BSD-style ptys.
24405         * doc/posix-functions/ptsname.texi: Document the limitation on Solaris.
24406
24407 2010-12-25  Bruno Haible  <bruno@clisp.org>
24408
24409         ptsname: Avoid ERANGE failure on some systems.
24410         * lib/ptsname.c (buffer): Increase size.
24411
24412 2010-12-25  Bruno Haible  <bruno@clisp.org>
24413
24414         rename, renameat: Avoid test failures at NFS mounted locations.
24415         * tests/test-rename.h (assert_nonexistent): Remove the old directory,
24416         so that subsequent mkdir calls succeed.
24417
24418 2010-12-25  Bruno Haible  <bruno@clisp.org>
24419
24420         iswblank: Fix C++ link error on Solaris 8.
24421         * lib/wctype.in.h (iswblank): Declare using _GL_FUNCDECL_RPL or
24422         _GL_FUNCDECL_SYS.
24423
24424 2010-12-25  Bruno Haible  <bruno@clisp.org>
24425
24426         unistd: Fix C++ link error on Solaris 8.
24427         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add $(LIB_EACCESS).
24428
24429 2010-12-25  Bruno Haible  <bruno@clisp.org>
24430
24431         readlink doc: Mention an old glibc bug.
24432         * doc/posix-functions/readlink.texi: Mention glibc 2.4 bug (BZ #2450).
24433
24434 2010-12-25  Bruno Haible  <bruno@clisp.org>
24435
24436         fcntl-h: Fix for use of C++ on glibc systems.
24437         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
24438         also on glibc systems in C++ mode.
24439         Reported by Gary V. Vaughan <gary@gnu.org>.
24440
24441 2010-12-25  Bruno Haible  <bruno@clisp.org>
24442
24443         roundl-ieee: Make it work on OSF/1 5.1 with cc.
24444         * modules/roundl-ieee (Depends-on): Add floorl-ieee, ceill-ieee.
24445
24446 2010-12-25  Bruno Haible  <bruno@clisp.org>
24447
24448         truncl-ieee: Make it work on OSF/1 5.1 with cc.
24449         * doc/posix-functions/truncl.texi: Mention the OSF/1 5.1 bug.
24450         * m4/truncl.m4 (gl_FUNC_TRUNCL): If gl_FUNC_TRUNCL_IEEE is also used,
24451         test whether truncl works according to ISO C 99 with IEC 60559.
24452         * m4/truncl-ieee.m4: New file.
24453         * modules/truncl-ieee (Files): Add it and m4/minus-zero.m4,
24454         m4/signbit.m4.
24455         (configure.ac): Invoke gl_FUNC_TRUNCL_IEEE.
24456
24457 2010-12-25  Bruno Haible  <bruno@clisp.org>
24458
24459         ceill-ieee: Make it work on OSF/1 5.1 with cc.
24460         * doc/posix-functions/ceill.texi: Mention the OSF/1 5.1 bug.
24461         * m4/ceill.m4 (gl_FUNC_CEILL): If gl_FUNC_CEILL_IEEE is also used,
24462         test whether ceill works according to ISO C 99 with IEC 60559.
24463         * m4/ceill-ieee.m4: New file.
24464         * modules/ceill-ieee (Files): Add it and m4/minus-zero.m4,
24465         m4/signbit.m4.
24466         (configure.ac): Invoke gl_FUNC_CEILL_IEEE.
24467
24468 2010-12-25  Bruno Haible  <bruno@clisp.org>
24469
24470         Ensure all prerequisites of <wchar.h> are included.
24471         * m4/btowc.m4 (gl_FUNC_BTOWC): Include <stddef.h>, <stdio.h>, <time.h>
24472         before <wchar.h>.
24473         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
24474         gl_MBRLEN_NUL_RETVAL): Likewise.
24475         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
24476         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL,
24477         AC_FUNC_MBRTOWC): Likewise.
24478         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
24479         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
24480         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
24481         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
24482         Likewise.
24483         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
24484         * m4/wchar_h.m4 (gl_WCHAR_H_INLINE_OK): Likewise.
24485         (gl_WCHAR_H): Improve comments.
24486         * m4/wctype_h.m4 (gl_WCTYPE_H): Likewise.
24487
24488 2010-12-25  Bruno Haible  <bruno@clisp.org>
24489
24490         strtok_r: Fix C syntax error in autoconf macro.
24491         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't use UTF-8 encoded U+00A0
24492         characters in test program.
24493
24494 2010-12-24  Bruno Haible  <bruno@clisp.org>
24495
24496         ceil, trunc, round: Fix gcc warnings.
24497         * lib/ceil.c (MIN): Undefine before redefining.
24498         * lib/trunc.c (MIN): Likewise.
24499         * lib/round.c (MIN): Likewise.
24500         Include <math.h> first.
24501
24502 2010-12-24  Bruno Haible  <bruno@clisp.org>
24503
24504         select tests: Avoid failures on OSF/1 5.1.
24505         * tests/test-select.c (test_accept_first, test_socket_pair): Ignore
24506         failure of closing the last socket; it may fail with ECONNRESET.
24507
24508 2010-12-24  Eric Blake  <eblake@redhat.com>
24509
24510         stdint: avoid HP-UX 10.20 preprocessor bug
24511         * lib/stdint.in.h (INT64_MAX, UINT64_MAX): Check via #ifdef rather
24512         than #if.
24513         * tests/test-floor2.c (main): Likewise.
24514         Reported by Peter O'Gorman.
24515
24516         pipe: make obsoletion transition easier
24517         * lib/pipe.h: Restore file as thin shim around "spawn-pipe.h".
24518         * modules/pipe (Files): Include revived file.
24519         (Include): Drop reference, to mirror getdate's behavior.
24520
24521 2010-12-24  Bruno Haible  <bruno@clisp.org>
24522
24523         sys_socket: Hide mismatch of declarations on NonStop Kernel.
24524         * lib/sys_socket.in.h (connect, bind, sendto, setsockopt): Use
24525         _GL_CXXALIAS_SYS_CAST instead of _GL_CXXALIAS_SYS.
24526         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24527
24528 2010-12-24  Bruno Haible  <bruno@clisp.org>
24529
24530         gethostname: Ensure declaration on NonStop Kernel.
24531         * lib/unistd.in.h: Include <netdb.h> also on NonStop Kernel systems.
24532         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24533
24534 2010-12-24  Bruno Haible  <bruno@clisp.org>
24535
24536         sys_select: Ensure all necessary types on NonStop Kernel.
24537         * lib/sys_select.in.h: If the system does not have <sys/select.h>,
24538         include <sys/time.h>.
24539         * doc/posix-headers/sys_select.texi: Mention that it's missing on
24540         NonStop Kernel.
24541         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24542
24543 2010-12-24  Bruno Haible  <bruno@clisp.org>
24544
24545         sys_select: Remove unneeded include.
24546         * lib/sys_select.in.h: Don't include <sys/socket.h> on platforms that
24547         have <sys/select.h>.
24548
24549 2010-12-24  Bruno Haible  <bruno@clisp.org>
24550
24551         gethostname: Provide a fallback for HOST_NAME_MAX.
24552         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): When neither HOST_NAME_MAX
24553         nor MAXHOSTNAMELEN is found in the usual system headers, use 256
24554         instead.
24555         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24556
24557 2010-12-24  Bruno Haible  <bruno@clisp.org>
24558
24559         sigaction tests: Allow missing SA_RESETHAND and SA_RESTART.
24560         * tests/test-sigaction.c (SA_RESETHAND): Fall back to 0.
24561         (SA_RESTART): Likewise.
24562         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24563
24564 2010-12-24  Bruno Haible  <bruno@clisp.org>
24565
24566         signal: Define NSIG.
24567         * lib/signal.in.h (NSIG): Define to 32 on NonStop Kernel.
24568         * tests/test-signal.c (nsig): New variable.
24569         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24570
24571 2010-12-24  Bruno Haible  <bruno@clisp.org>
24572
24573         rename, renameat: Avoid test failures on OSF/1 5.1.
24574         * tests/test-rename.h (test_rename): Allow EEXIST and ENOTDIR as
24575         alternative error codes.
24576         * tests/test-renameat.c (main): Likewise.
24577
24578 2010-12-24  Bruno Haible  <bruno@clisp.org>
24579
24580         *printf: Detect large precisions bug on Solaris 10/SPARC.
24581         * m4/printf.m4 (gl_PRINTF_PRECISION): Add one more test code, provided
24582         by Paul Eggert.
24583         * tests/test-snprintf-posix.h (test_function): Add this test code here
24584         too.
24585         * tests/test-sprintf-posix.h (test_function): Likewise.
24586         * tests/test-vasnprintf-posix.c (test_function): Likewise.
24587         * tests/test-vasprintf-posix.c (test_function): Likewise.
24588         * doc/posix-functions/fprintf.texi: Mention Solaris 10 bug as worked
24589         around by gnulib.
24590         * doc/posix-functions/printf.texi: Likewise.
24591         * doc/posix-functions/snprintf.texi: Likewise.
24592         * doc/posix-functions/sprintf.texi: Likewise.
24593         * doc/posix-functions/vfprintf.texi: Likewise.
24594         * doc/posix-functions/vprintf.texi: Likewise.
24595         * doc/posix-functions/vsnprintf.texi: Likewise.
24596         * doc/posix-functions/vsprintf.texi: Likewise.
24597         * doc/posix-functions/dprintf.texi: Undo last commit.
24598         * doc/posix-functions/vdprintf.texi: Likewise.
24599
24600 2010-12-23  Paul Eggert  <eggert@cs.ucla.edu>
24601
24602         tests: port test-fdutimensat.c to Solaris 8
24603         * tests/test-fdutimensat.c (do_fdutimens): Don't assume
24604         fdutimensat works with a nonnegative fd and AT_SYMLINK_NOFOLLOW.
24605         On Solaris 8, it fails with errno == ENOSYS, because there is no
24606         futimens (so it can't use the fd), and there is no lutimens (so it
24607         can't implement AT_SYMLINK_NOFOLLOW on symlinks).
24608
24609         vsnprintf: make more consistent with snprintf; doc fixes
24610
24611         * doc/posix-functions/snprintf.texi (snprintf): The workaround for
24612         the byte count return problem was promoted from the snprintf-posix
24613         to the snprintf module.
24614         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
24615         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Also check
24616         gl_SNPRINTF_RETVAL_C99, for consistency with gl_FUNC_SNPRINTF.
24617         * tests/test-snprintf.c (main): Check the byte count returned.
24618         * tests/test-vsnprintf.c (main): Likewise.
24619
24620 2010-12-23  Eric Blake  <eblake@redhat.com>
24621
24622         sigpipe: relax to LGPLv2+, since it did not have any LGPLv3+ parts
24623         * modules/sigpipe (License): Relax license.
24624
24625 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24626
24627         doc: document Solaris printf bug with large float precisions
24628         * doc/posix-functions/dprintf.texi (dprintf):
24629         * doc/posix-functions/fprintf.texi (fprintf):
24630         * doc/posix-functions/printf.texi (printf):
24631         * doc/posix-functions/snprintf.texi (snprintf):
24632         * doc/posix-functions/sprintf.texi (sprintf):
24633         * doc/posix-functions/vdprintf.texi (vdprintf):
24634         * doc/posix-functions/vfprintf.texi (vfprintf):
24635         * doc/posix-functions/vprintf.texi (vprintf):
24636         * doc/posix-functions/vsnprintf.texi (vsnprintf):
24637         * doc/posix-functions/vsprintf.texi (vsprintf):
24638         Mention that these functions mishandle large floating point
24639         precisions on Solaris 10.  The same bug is also present in Solaris
24640         8, and I assume earlier.  This causes "cd gnulib-tests; make
24641         check" to fail on Solaris 8 (and I assume, later) when building
24642         the latest coreutils, in test-vasprintf-posix's call to
24643         my_asprintf (&result, "%.4000f %d", 1.0, 99).  I have not checked
24644         the wide flavors (e.g., wprintf) so this patch just updates the
24645         documentation for the narrow ones.
24646
24647         test-posixtm.c: add two tests
24648         * tests/test-posixtm.c: Add two tests, to highlight the
24649         bug in Solaris 10 (and earlier) localtime.  Gnulib doesn't work
24650         around this bug; this is merely to document it.
24651
24652 2010-12-22  Bruno Haible  <bruno@clisp.org>
24653
24654         getlogin_r: Work around portability problem on OSF/1.
24655         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Detect the OSF/1 problem.
24656         * lib/unistd.in.h (getlogin_r): Replace if REPLACE_GETLOGIN_R is set.
24657         * lib/getlogin_r.c (getlogin_r): When getlogin_r exists, invoke it and
24658         test for a truncated result.
24659         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_GETLOGIN_R.
24660         * modules/unistd (Makefile.am): Substitute REPLACE_GETLOGIN_R.
24661         * modules/getlogin_r (Depends-on): Add memchr.
24662         * doc/posix-functions/getlogin_r.texi: Mention the OSF/1 problem.
24663
24664 2010-12-22  Bruno Haible  <bruno@clisp.org>
24665
24666         ptsname: Avoid test failure on OSF/1 5.1.
24667         * modules/ptsname-tests (Depends-on): Add 'same-inode'.
24668         * tests/test-ptsname.c: Include <sys/stat.h>, same-inode.h.
24669         (same_slave): New function.
24670         (main): Use it to compare ptsname's result with the expected file name.
24671
24672 2010-12-22  Bruno Haible  <bruno@clisp.org>
24673
24674         Port extended stdio modules to HP NonStop Kernel.
24675         * lib/stdio-impl.h (_IOERR, _IOREAD, _IOWRT, _IORW) [__TANDEM]: New
24676         macros.
24677         * lib/fbufmode.c: Update comments.
24678         * lib/fflush.c: Likewise.
24679         * lib/fpurge.c: Likewise.
24680         * lib/freadable.c: Likewise.
24681         * lib/freadahead.c: Likewise.
24682         * lib/freading.c: Likewise.
24683         * lib/freadptr.c: Likewise.
24684         * lib/freadseek.c: Likewise.
24685         * lib/fseeko.c: Likewise.
24686         * lib/fseterr.c: Likewise.
24687         * lib/fwritable.c: Likewise.
24688         * lib/fwriting.c: Likewise.
24689         Reported by Joachim Schmitz <jojo@schmitz-digital.de>.
24690
24691 2010-12-22  Bruno Haible  <bruno@clisp.org>
24692
24693         ttyname_r: Work around bug on OSF/1 5.1.
24694         * doc/posix-functions/ttyname_r.texi: Mention the OSF/1 bug.
24695         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Detect the OSF/1 bug. Say "no"
24696         instead of "guessing no" when the OSF/1 bug or the Solaris bug is
24697         present.
24698         * lib/ttyname_r.c (ttyname_r): Update comments.
24699
24700 2010-12-22  Bruno Haible  <bruno@clisp.org>
24701
24702         round: Implement result sign according to IEEE 754.
24703         * lib/round.c (MIN, MINUS_ZERO): New macros.
24704         (FLOOR_FREE_ROUND): Return -0.0 for -0.5 < x < 0.
24705         * tests/test-roundf-ieee.c (main): Test also values between -1 and 1.
24706         * tests/test-round-ieee.c (main): Likewise.
24707         * tests/test-roundl-ieee.c (main): Likewise.
24708
24709         trunc: Implement result sign according to IEEE 754.
24710         * lib/trunc.c (MIN, MINUS_ZERO): New macros.
24711         (FUNC): Return +0.0 for 0 < x < 1 and -0.0 for -1 < x < 0.
24712         * tests/test-trunc2.c: Include minus-zero.h.
24713         (MINUS_ZERO): New macro.
24714         (trunc_reference): Keep in sync with lib/trunc.c.
24715         * tests/test-truncf2.c: Include minus-zero.h.
24716         (MINUS_ZERO): New macro.
24717         (truncf_reference): Keep in sync with lib/trunc.c.
24718         * tests/test-truncf-ieee.c (main): Test also values between -1 and 1.
24719         * tests/test-trunc-ieee.c (main): Likewise.
24720         * tests/test-truncl-ieee.c (main): Likewise.
24721
24722         ceil: Implement result sign according to IEEE 754.
24723         * lib/ceil.c (MIN, MINUS_ZERO): New macros.
24724         (FUNC): Return -0.0 for -1 < x < 0.
24725         * tests/test-ceil2.c: Include minus-zero.h.
24726         (MINUS_ZERO): New macro.
24727         (ceil_reference): Keep in sync with lib/ceil.c.
24728         * tests/test-ceilf2.c: Include minus-zero.h.
24729         (MINUS_ZERO): New macro.
24730         (ceilf_reference): Keep in sync with lib/ceil.c.
24731         * tests/test-ceilf-ieee.c (main): Test also values between -1 and 1.
24732         * tests/test-ceil-ieee.c (main): Likewise.
24733         * tests/test-ceill-ieee.c (main): Likewise.
24734
24735         floor: Implement result sign according to IEEE 754.
24736         * lib/floor.c (FUNC): Return +0.0 for 0 < x < 1.
24737         * tests/test-floor2.c (floor_reference): Keep in sync with lib/floor.c.
24738         * tests/test-floorf2.c (floorf_reference): Likewise.
24739         * tests/test-floorf-ieee.c (main): Test also values between -1 and 1.
24740         * tests/test-floor-ieee.c (main): Likewise.
24741         * tests/test-floorl-ieee.c (main): Likewise.
24742
24743 2010-12-22  Bruno Haible  <bruno@clisp.org>
24744
24745         getaddrinfo: Update doc.
24746         * doc/posix-functions/gai_strerror.texi: Return type is also different
24747         on AIX and HP-UX.
24748
24749 2010-12-22  Paul Eggert  <eggert@cs.ucla.edu>
24750
24751         getaddrinfo, inet_ntop: Update doc for Solaris.
24752         * doc/posix-functions/gai_strerror.texi: Return type is also an
24753         issue on Solaris 9 and earlier.
24754         * doc/posix-functions/inet_ntop.texi: 4th arg type is also an issue
24755         on Solaris 10 and earlier.
24756
24757 2010-12-21  Bruno Haible  <bruno@clisp.org>
24758
24759         New module 'roundl-ieee'.
24760         * modules/roundl-ieee: New file.
24761         * m4/roundl.m4 (gl_FUNC_ROUNDL): If gl_FUNC_ROUNDL_IEEE is also used,
24762         test whether roundl works according to ISO C 99 with IEC 60559.
24763         * m4/roundl-ieee.m4: New file.
24764         * modules/roundl-ieee-tests: New file.
24765         * tests/test-roundl-ieee.c: New file, based on tests/test-roundl.c.
24766         * tests/test-roundl.c (main): Remove signbit tests.
24767         * modules/roundl-tests (Depends-on): Remove signbit.
24768         * doc/posix-functions/roundl.texi: Mention the new module.
24769
24770 2010-12-21  Bruno Haible  <bruno@clisp.org>
24771
24772         New module 'truncl-ieee'.
24773         * modules/truncl-ieee: New file.
24774         * modules/truncl-ieee-tests: New file.
24775         * tests/test-truncl-ieee.c: New file, based on tests/test-truncl.c.
24776         * tests/test-truncl.c (main): Remove signbit tests.
24777         * modules/truncl-tests (Depends-on): Remove signbit.
24778         * doc/posix-functions/truncl.texi: Mention the new module.
24779
24780 2010-12-21  Bruno Haible  <bruno@clisp.org>
24781
24782         New module 'ceill-ieee'.
24783         * modules/ceill-ieee: New file.
24784         * modules/ceill-ieee-tests: New file.
24785         * tests/test-ceill-ieee.c: New file, based on tests/test-ceill.c.
24786         * tests/test-ceill.c (main): Remove signbit tests.
24787         * modules/ceill-tests (Depends-on): Remove signbit.
24788         * doc/posix-functions/ceill.texi: Mention the new module.
24789
24790 2010-12-21  Bruno Haible  <bruno@clisp.org>
24791
24792         New module 'floorl-ieee'.
24793         * modules/floorl-ieee: New file.
24794         * modules/floorl-ieee-tests: New file.
24795         * tests/test-floorl-ieee.c: New file, based on tests/test-floorl.c.
24796         * tests/test-floorl.c (main): Remove signbit tests.
24797         * modules/floorl-tests (Depends-on): Remove signbit.
24798         * doc/posix-functions/floorl.texi: Mention the new module.
24799
24800 2010-12-21  Bruno Haible  <bruno@clisp.org>
24801
24802         New module 'round-ieee'.
24803         * modules/round-ieee: New file.
24804         * m4/round.m4 (gl_FUNC_ROUND): If gl_FUNC_ROUND_IEEE is also used, test
24805         whether round works according to ISO C 99 with IEC 60559.
24806         * m4/round-ieee.m4: New file.
24807         * modules/round-ieee-tests: New file.
24808         * tests/test-round-ieee.c: New file, based on tests/test-roundf-ieee.c.
24809         * tests/test-round1.c (main): Remove signbit tests.
24810         * modules/round-tests (Depends-on): Remove 'signbit'.
24811         * doc/posix-functions/round.texi: Mention the new module.
24812
24813 2010-12-21  Bruno Haible  <bruno@clisp.org>
24814
24815         New module 'trunc-ieee'.
24816         * modules/trunc-ieee: New file.
24817         * m4/trunc.m4 (gl_FUNC_TRUNC): If gl_FUNC_TRUNC_IEEE is also used, test
24818         whether trunc works according to ISO C 99 with IEC 60559.
24819         * m4/trunc-ieee.m4: New file.
24820         * lib/math.in.h (trunc): Replace if REPLACE_TRUNC is set.
24821         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNC.
24822         * modules/math (Makefile.am): Substitute REPLACE_TRUNC.
24823         * modules/trunc-ieee-tests: New file.
24824         * tests/test-trunc-ieee.c: New file, based on tests/test-truncf-ieee.c.
24825         * tests/test-trunc1.c (main): Remove signbit tests.
24826         * modules/trunc-tests (Depends-on): Remove 'signbit'.
24827         * doc/posix-functions/trunc.texi: Mention the new module.
24828
24829 2010-12-21  Bruno Haible  <bruno@clisp.org>
24830
24831         New module 'ceil-ieee'.
24832         * modules/ceil-ieee: New file.
24833         * m4/ceil.m4 (gl_FUNC_CEIL): Require gl_MATH_H_DEFAULTS. If
24834         gl_FUNC_CEIL_IEEE is also used, test whether ceil works according to
24835         ISO C 99 with IEC 60559.
24836         * m4/ceil-ieee.m4: New file.
24837         * modules/ceil (Files): Add lib/ceil.c.
24838         (Depends-on): Add 'float'.
24839         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24840         * lib/math.in.h (ceil): New declaration.
24841         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEIL,
24842         REPLACE_CEIL.
24843         * modules/math (Makefile.am): Substitute GNULIB_CEIL, REPLACE_CEIL.
24844         * modules/ceil-ieee-tests: New file.
24845         * tests/test-ceil-ieee.c: New file, based on tests/test-ceilf-ieee.c.
24846         * tests/test-math-c++.cc: Check the signature of 'ceil'.
24847         * doc/posix-functions/ceil.texi: Mention the new module.
24848
24849 2010-12-21  Bruno Haible  <bruno@clisp.org>
24850
24851         New module 'floor-ieee'.
24852         * modules/floor-ieee: New file.
24853         * m4/floor.m4 (gl_FUNC_FLOOR): Require gl_MATH_H_DEFAULTS. If
24854         gl_FUNC_FLOOR_IEEE is also used, test whether floor works according to
24855         ISO C 99 with IEC 60559.
24856         * m4/floor-ieee.m4: New file.
24857         * modules/floor (Files): Add lib/floor.c.
24858         (Depends-on): Add 'float'.
24859         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
24860         * lib/math.in.h (floor): New declaration.
24861         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOOR,
24862         REPLACE_FLOOR.
24863         * modules/math (Makefile.am): Substitute GNULIB_FLOOR, REPLACE_FLOOR.
24864         * modules/floor-ieee-tests: New file.
24865         * tests/test-floor-ieee.c: New file, based on tests/test-floorf-ieee.c.
24866         * tests/test-math-c++.cc: Check the signature of 'floor'.
24867         * doc/posix-functions/floor.texi: Mention the new module.
24868
24869 2010-12-21  Bruno Haible  <bruno@clisp.org>
24870
24871         New module 'roundf-ieee'.
24872         * modules/roundf-ieee: New file.
24873         * m4/roundf.m4 (gl_FUNC_ROUNDF): If gl_FUNC_ROUNDF_IEEE is also used,
24874         test whether roundf works according to ISO C 99 with IEC 60559.
24875         * m4/roundf-ieee.m4: New file.
24876         * modules/roundf-ieee-tests: New file.
24877         * tests/test-roundf-ieee.c: New file, based on tests/test-roundf1.c.
24878         * tests/test-roundf1.c (main): Remove signbit tests.
24879         * modules/roundf-tests (Depends-on): Remove 'signbit'.
24880         * doc/posix-functions/roundf.texi: Mention the new module.
24881
24882 2010-12-21  Bruno Haible  <bruno@clisp.org>
24883
24884         New module 'truncf-ieee'.
24885         * modules/truncf-ieee: New file.
24886         * m4/truncf.m4 (gl_FUNC_TRUNCF): If gl_FUNC_TRUNCF_IEEE is also used,
24887         test whether truncf works according to ISO C 99 with IEC 60559.
24888         * m4/truncf-ieee.m4: New file.
24889         * lib/math.in.h (truncf): Replace if REPLACE_TRUNCF is set.
24890         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCF.
24891         * modules/math (Makefile.am): Substitute REPLACE_TRUNCF.
24892         * modules/truncf-ieee-tests: New file.
24893         * tests/test-truncf-ieee.c: New file, based on tests/test-truncf1.c.
24894         * tests/test-truncf1.c (main): Remove signbit tests.
24895         * modules/truncf-tests (Depends-on): Remove 'signbit'.
24896         * doc/posix-functions/truncf.texi: Mention the new module.
24897
24898 2010-12-21  Bruno Haible  <bruno@clisp.org>
24899
24900         New module 'ceilf-ieee'.
24901         * modules/ceilf-ieee: New file.
24902         * m4/ceilf.m4 (gl_FUNC_FLOORF): If gl_FUNC_CEILF_IEEE is also used,
24903         test whether ceilf works according to ISO C 99 with IEC 60559.
24904         * m4/ceilf-ieee.m4: New file.
24905         * modules/ceilf-ieee-tests: New file.
24906         * tests/test-ceilf-ieee.c: New file, based on tests/test-ceilf1.c.
24907         * tests/test-ceilf1.c (main): Remove signbit tests.
24908         * modules/ceilf-tests (Depends-on): Remove 'signbit'.
24909         * doc/posix-functions/ceilf.texi: Mention the new module.
24910
24911 2010-12-21  Bruno Haible  <bruno@clisp.org>
24912
24913         New module 'floorf-ieee'.
24914         * modules/floorf-ieee: New file.
24915         * m4/floorf.m4 (gl_FUNC_FLOORF): If gl_FUNC_FLOORF_IEEE is also used,
24916         test whether floorf works according to ISO C 99 with IEC 60559.
24917         * m4/floorf-ieee.m4: New file.
24918         * modules/floorf-ieee-tests: New file.
24919         * tests/test-floorf-ieee.c: New file, based on tests/test-floorf1.c.
24920         * tests/test-floorf1.c (main): Remove signbit tests.
24921         * modules/floorf-tests (Depends-on): Remove 'signbit'.
24922         * doc/posix-functions/floorf.texi: Mention the new module.
24923
24924 2010-12-21  Bruno Haible  <bruno@clisp.org>
24925
24926         Support for minus zero in autoconf macros.
24927         * m4/minus-zero.m4: New file, based on tests/minus-zero.h.
24928         * m4/signbit.m4 (gl_FLOAT_SIGNBIT_CODE, gl_DOUBLE_SIGNBIT_CODE,
24929         gl_LONG_DOUBLE_SIGNBIT_CODE, gl_FLOATTYPE_SIGNBIT_CODE): New macros.
24930         * tests/minus-zero.h: Update comments.
24931
24932 2010-12-21  Bruno Haible  <bruno@clisp.org>
24933
24934         Tests for module 'ceil'.
24935         * modules/ceil-tests: New file.
24936         * tests/test-ceil1.c: New file, based on tests/test-ceill.c.
24937         * tests/test-ceil2.c: New file, based on tests/test-ceilf2.c.
24938
24939 2010-12-21  Bruno Haible  <bruno@clisp.org>
24940
24941         Tests for module 'floor'.
24942         * modules/floor-tests: New file.
24943         * tests/test-floor1.c: New file, based on tests/test-floorl.c.
24944         * tests/test-floor2.c: New file, based on tests/test-floorf2.c.
24945
24946 2010-12-21  Bruno Haible  <bruno@clisp.org>
24947
24948         math: Fix indentation.
24949         * lib/math.in.h (floorf): Fix indentation.
24950
24951 2010-12-21  Bruno Haible  <bruno@clisp.org>
24952
24953         Fix cross-compilation guesses on Solaris.
24954         * m4/fopen.m4 (gl_FUNC_FOPEN): Correct shell pattern so that it does
24955         not match "solaris2.10".
24956         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
24957         * m4/printf.m4 (gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_DIRECTIVE_N,
24958         gl_VSNPRINTF_ZEROSIZE_C99): Likewise.
24959
24960 2010-12-21  Paul Eggert  <eggert@cs.ucla.edu>
24961
24962         snprintf: port snprintf (NULL, 0, ...) to Solaris 8 and 9
24963         This fixes a problem observed with the latest coreutils snapshot
24964         that caused a test to fail on Solaris 8.  src/csplit.c's call
24965         snprintf (NULL, 0, format, UINT_MAX) returns -1 on Solaris 9 and
24966         earlier, instead of returning the number of bytes that would have
24967         been generated; this causes csplit to incorrectly report memory
24968         exhaustion.
24969         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Also check for
24970         snprintf (NULL, 0, ...) and (for good measure) snprintf (buf, 0, ...).
24971         Guess that it doesn't work on Solaris 2.6 through 9.  Adjust
24972         comments to match.
24973         (gl_PRINTF_SIZES_C99, gl_PRINTF_DIRECTIVE_F, gl_SNPRINTF_RETVAL_C99):
24974         Fix typo in matching older versions of Solaris: "solaris2.10"
24975         is matched by the shell pattern "solaris2.[0-9]*".  This matters
24976         only for guessing while cross-compiling.
24977         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Also check gl_SNPRINTF_RETVAL_C99.
24978
24979 2010-12-20  Paul Eggert  <eggert@cs.ucla.edu>
24980
24981         ftoastr: fix comment again
24982         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
24983         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00149.html>.
24984         Also, simplify example a bit by using flags = 0.
24985
24986 2010-12-20  Bruno Haible  <bruno@clisp.org>
24987
24988         round*, trunc*: Update documentation regarding glibc.
24989         * doc/posix-functions/roundf.texi: Mention missing declaration problem.
24990         * doc/posix-functions/round.texi: Likewise.
24991         * doc/posix-functions/roundl.texi: Likewise.
24992         * doc/posix-functions/truncf.texi: Likewise.
24993         * doc/posix-functions/trunc.texi: Likewise.
24994         * doc/posix-functions/truncl.texi: Likewise.
24995
24996 2010-12-20  Bruno Haible  <bruno@clisp.org>
24997
24998         roundf, round, roundl: Update documentation regarding OSF/1 5.1.
24999         * doc/posix-functions/roundf.texi: Mention OSF/1 5.1 problem.
25000         * doc/posix-functions/round.texi: Likewise.
25001         * doc/posix-functions/roundl.texi: Likewise.
25002
25003 2010-12-20  Bruno Haible  <bruno@clisp.org>
25004
25005         ttyname_r: Add missing declaration on HP-UX 11.
25006         * lib/unistd.in.h (ttyname_r): Test HAVE_DECL_TTYNAME_R instead of
25007         HAVE_TTYNAME_R.
25008         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether ttyname_r is
25009         declared. Set HAVE_TTYNAME_R always.
25010         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25011         HAVE_DECL_TTYNAME_R, not HAVE_TTYNAME_R.
25012         * modules/unistd (Makefile.am): Substitute HAVE_DECL_TTYNAME_R, not
25013         HAVE_TTYNAME_R.
25014         * doc/posix-functions/ttyname_r.texi: Document the HP-UX 11 problem.
25015
25016 2010-12-20  Bruno Haible  <bruno@clisp.org>
25017
25018         getlogin, getlogin_r: Document HP-UX 11.11 bugs.
25019         * doc/posix-functions/getlogin.texi: Document HP-UX 11.11 bug.
25020         * doc/posix-functions/getlogin_r.texi: Likewise.
25021         * tests/test-getlogin.c: Include <errno.h>.
25022         (main): Avoid test failure on HP-UX 11.11.
25023         * tests/test-getlogin_r.c (main): Likewise.
25024
25025 2010-12-20  Bruno Haible  <bruno@clisp.org>
25026
25027         getlogin_r: Add missing declaration on HP-UX 11.
25028         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Test whether getlogin_r is
25029         declared also when it exists as a function.
25030         * doc/posix-functions/getlogin_r.texi: Document this workaround.
25031
25032 2010-12-20  Bruno Haible  <bruno@clisp.org>
25033
25034         wcsrtombs: Don't confuse mbstate_t with rpl_mbstate_t.
25035         * lib/wcsrtombs.c: If gnulib overrides mbstate_t, define wcsrtombs
25036         through wcrtomb.
25037
25038 2010-12-19  Paul Eggert  <eggert@cs.ucla.edu>
25039
25040         ftoastr: fix comment
25041         * lib/ftoastr.h: Fix typo in comment.  Noted by Ben Pfaff in
25042         <http://lists.gnu.org/archive/html/bug-gnulib/2010-12/msg00130.html>.
25043
25044 2010-12-19  Bruno Haible  <bruno@clisp.org>
25045
25046         isnan: Ensure it is a macro.
25047         * lib/math.in.h (isnan): Define as a macro if not already a macro.
25048         * doc/posix-functions/isnan.texi: Mention problem on IRIX, OSF/1,
25049         Solaris.
25050
25051 2010-12-19  Bruno Haible  <bruno@clisp.org>
25052
25053         ldexpl test: Fix link error on OSF/1 5.1.
25054         * modules/ldexpl-tests (Makefile.am): Define test_ldexpl_LDADD.
25055
25056 2010-12-19  Bruno Haible  <bruno@clisp.org>
25057
25058         wctype: Make it work in C++ mode on OSF/1 5.1.
25059         * lib/wctype.in.h (iswblank): Declare but not define here.
25060         * lib/iswblank.c: New file, extracted from lib/wctype.in.h.
25061         * m4/wctype_h.m4 (gl_WCTYPE_H): Arrange to compile it if needed.
25062         * modules/wctype (Files): Add lib/iswblank.c.
25063
25064 2010-12-19  Bruno Haible  <bruno@clisp.org>
25065
25066         signal: Document problem with type of SIGRTMIN, SIGRTMAX on OSF/1 5.1.
25067         * doc/posix-headers/signal.texi: Document OSF/1 5.1 problem.
25068         * lib/strsignal.c (strsignal): Cast SIGRTMIN to 'int'.
25069
25070 2010-12-19  Bruno Haible  <bruno@clisp.org>
25071
25072         sys_socket: Use POSIX compatible declarations on OSF/1 5.1.
25073         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): On OSF/1, define
25074         _POSIX_PII_SOCKET.
25075         * doc/posix-functions/recv.texi: Document the OSF/1 problem.
25076         * doc/posix-functions/recvfrom.texi: Likewise.
25077         * doc/posix-functions/send.texi: Likewise.
25078         * doc/posix-functions/sendto.texi: Likewise.
25079
25080 2010-12-19  Bruno Haible  <bruno@clisp.org>
25081
25082         tcgetsid: Add missing declaration on OSF/1 5.1.
25083         * lib/termios.in.h (tcgetsid): Test HAVE_DECL_TCGETSID instead of
25084         HAVE_TCGETSID.
25085         * m4/tcgetsid.m4 (gl_FUNC_TCGETSID): Test whether tcgetsid is declared.
25086         Don't set HAVE_TCGETSID.
25087         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Initialize
25088         HAVE_DECL_TCGETSID, not HAVE_TCGETSID.
25089         * modules/termios (Makefile.am): Substitute HAVE_DECL_TCGETSID, not
25090         HAVE_TCGETSID.
25091         * doc/posix-functions/tcgetsid.texi: Mention the OSF/1 5.1 problem.
25092
25093 2010-12-19  Bruno Haible  <bruno@clisp.org>
25094
25095         stdio: Fix problem with popen() declaration on OSF/1 5.1.
25096         * lib/stdio.in.h: During the include_next statement, let recursive
25097         includes of this file include only the system header file.
25098
25099 2010-12-19  Bruno Haible  <bruno@clisp.org>
25100
25101         iconv_open: Fix regression from 2010-12-04.
25102         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Fix typo.
25103         Reported by Noah Lavine <noah.b.lavine@gmail.com>.
25104
25105 2010-12-19  Bruno Haible  <bruno@clisp.org>
25106
25107         stdbool test: Avoid a gcc warning.
25108         * tests/test-stdbool.c (main): Fail if e1 is false.
25109         Reported by Jim Meyering.
25110
25111 2010-12-19  Jim Meyering  <meyering@redhat.com>
25112
25113         setenv: restore to working order
25114         $HAVE_SETENV is used in gl_FUNC_SETENV, yet its definitions were
25115         mistakenly removed.
25116         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Restore code to set
25117         HAVE_SETENV.
25118         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Restore code to initialize
25119         HAVE_SETENV.
25120
25121 2010-12-19  Bruno Haible  <bruno@clisp.org>
25122
25123         Document some different function declarations on OSF/1 5.1.
25124         * doc/posix-functions/gai_strerror.texi: Mention different declaration.
25125         * doc/posix-functions/inet_ntop.texi: Likewise.
25126         * doc/posix-functions/gethostname.texi: Likewise.
25127         * lib/unistd.in.h (gethostname): Update comment.
25128
25129 2010-12-19  Bruno Haible  <bruno@clisp.org>
25130
25131         doc: Mention vasprintf-posix module.
25132         * doc/glibc-functions/asprintf.texi: Mention the workarounds present in
25133         the 'vasprintf-posix' module.
25134         * doc/glibc-functions/vasprintf.texi: Likewise.
25135
25136 2010-12-19  Bruno Haible  <bruno@clisp.org>
25137
25138         unsetenv: Add missing declaration on OSF/1 5.1.
25139         * lib/stdlib.in.h (setenv): Test HAVE_DECL_UNSETENV, not HAVE_UNSETENV.
25140         * m4/setenv.m4 (gl_FUNC_UNSETENV): Test whether unsetenv is declared.
25141         Don't set HAVE_UNSETENV. In the test program, set _BSD.
25142         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_UNSETENV,
25143         not HAVE_UNSETENV.
25144         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_UNSETENV, not
25145         HAVE_UNSETENV.
25146         * doc/posix-functions/unsetenv.texi: Mention the OSF/1 5.1 problem.
25147
25148 2010-12-19  Bruno Haible  <bruno@clisp.org>
25149
25150         setenv: Add missing declaration on OSF/1 5.1.
25151         * lib/stdlib.in.h (setenv): Test HAVE_DECL_SETENV, not HAVE_SETENV.
25152         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test whether setenv is
25153         declared. Don't set HAVE_SETENV.
25154         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_DECL_SETENV,
25155         not HAVE_SETENV.
25156         * modules/stdlib (Makefile.am): Substitute HAVE_DECL_SETENV, not
25157         HAVE_SETENV.
25158         * doc/posix-functions/setenv.texi: Mention the OSF/1 5.1 problem.
25159
25160 2010-12-19  Bruno Haible  <bruno@clisp.org>
25161
25162         nl_langinfo tests: Avoid gcc warning.
25163         * tests/test-nl_langinfo.c: Don't enable the GCC pragma for GCC 4.2.
25164
25165 2010-12-19  Bruno Haible  <bruno@clisp.org>
25166
25167         mknod: Avoid error in C++ mode on OSF/1 with GCC.
25168         * lib/sys_stat.in.h (mknod): Use _GL_CXXALIAS_SYS_CAST instead of
25169         _GL_CXXALIAS_SYS.
25170
25171 2010-12-19  Bruno Haible  <bruno@clisp.org>
25172
25173         stdbool: Relax test.
25174         * tests/test-stdbool.c (e): Don't require that casts from a variable's
25175         address to 'bool' work in static initializer, for compilers other than
25176         GCC.
25177
25178 2010-12-19  Bruno Haible  <bruno@clisp.org>
25179
25180         ftello: Add missing declaration on OSF/1 5.1.
25181         * lib/stdio.in.h (ftello): Test HAVE_DECL_FTELLO, not HAVE_FTELLO.
25182         * m4/ftello.m4 (gl_FUNC_FTELLO): Test whether ftello is declared.
25183         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FTELLO.
25184         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FTELLO.
25185         * doc/posix-functions/ftello.texi: Mention the OSF/1 5.1 problem.
25186
25187 2010-12-19  Bruno Haible  <bruno@clisp.org>
25188
25189         fseeko: Add missing declaration on OSF/1 5.1.
25190         * lib/stdio.in.h (fseeko): Test HAVE_DECL_FSEEKO, not HAVE_FSEEKO.
25191         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Test whether fseeko is declared.
25192         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_DECL_FSEEKO.
25193         * modules/stdio (Makefile.am): Substitute HAVE_DECL_FSEEKO.
25194         * doc/posix-functions/fseeko.texi: Mention the OSF/1 5.1 problem.
25195
25196 2010-12-19  Bruno Haible  <bruno@clisp.org>
25197
25198         fchdir: Add missing declaration on OSF/1 5.1.
25199         * lib/unistd.in.h (fchdir): Provide declaration if systems lacks it.
25200         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check whether fchdir is declared.
25201         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_DECL_FCHDIR.
25202         * modules/unistd (Makefile.am): Substitute HAVE_DECL_FCHDIR.
25203         * doc/posix-functions/fchdir.texi: Mention the OSF/1 5.1 problem.
25204
25205 2010-12-19  Bruno Haible  <bruno@clisp.org>
25206
25207         relocatable-prog-wrapper: Separate from relocatable-prog.
25208         * modules/relocatable-prog (Makefile.am): Define uninstall-hook and
25209         uninstall-relocwrapper rule here.
25210         * modules/relocatable-prog-wrapper (Makefile.am): ... not here.
25211         Reported by Ian Beckwith <ianb@erislabs.net>.
25212
25213 2010-12-19  Bruno Haible  <bruno@clisp.org>
25214
25215         unistr/u8-mbsnlen: Add missing dependency.
25216         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtouc.
25217         Reported by Ian Beckwith <ianb@erislabs.net>.
25218
25219 2010-12-19  Bruno Haible  <bruno@clisp.org>
25220
25221         iconv: Make it possible again to use this module without 'iconv-h'.
25222         * modules/iconv (configure.ac): Don't invoke gl_ICONV_MODULE_INDICATOR
25223         if it is not defined.
25224         Reported by Ian Beckwith <ianb@erislabs.net>.
25225
25226 2010-12-18  Paul Eggert  <eggert@cs.ucla.edu>
25227
25228         acl: port to Solaris 8 when copying from tmpfs to ufs
25229         * lib/copy-acl.c (qcopy_acl): Also allow EINVAL as an ignorable
25230         error number.  Problem observed on Solaris 8 with latest
25231         coreutils, with "mv A B", where A is on a tmpfs file system and B
25232         is on a ufs file system.  This caused coreutils' mv/part-symlink
25233         test to fail.
25234
25235         tests: set fail=0 at start
25236         * tests/init.sh (setup_): Move fail=0 initialization here ...
25237         (mktempd_): ... from here, so that tests can rely on fail being
25238         set to 0 initially.  This fixes a problem in coreutils; see:
25239         http://lists.gnu.org/archive/html/coreutils/2010-12/msg00083.html
25240
25241 2010-12-18  Bruno Haible  <bruno@clisp.org>
25242
25243         memmem-simple: Stylistic changes.
25244         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Avoid possible gcc warning.
25245         Fix preprocessor directive indentation.
25246
25247 2010-12-15  Pádraig Brady <P@draigBrady.com>
25248
25249         memmem, memmem-simple: reorganize and expand empty needle check
25250         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Move all
25251         functional checks to memmem-simple so that one has a fully functional
25252         memmem by using just this module.
25253         Restrict the performance only check to the memmem module.
25254         Also expand the empty needle check to ensure the correct
25255         pointer is returned, not just a non NULL pointer.
25256         * doc/glibc-functions/memmem.texi: Rearrange the portability
25257         documentation to correlate with the rearranged checks.
25258         Clarify exactly how the memmem and memmem-simple modules
25259         relate to each other.
25260
25261 2010-12-15  Pádraig Brady <P@draigBrady.com>
25262             Bruno Haible  <bruno@clisp.org>
25263
25264         Improve cross-compilation guesses for uClibc.
25265         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): When cross-compiling, assume
25266         that uClibc does not have the glibc bug.
25267         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Likewise.
25268         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE): Likewise.
25269
25270 2010-12-14  Eric Blake  <eblake@redhat.com>
25271
25272         configmake: provide fallbacks for oldest supported autotools
25273         * m4/configmake.m4: New file.
25274         * modules/configmake (Files): Ship it.
25275         (configure.ac): Use it to guarantee fallbacks.
25276
25277 2010-12-13  Pádraig Brady <P@draigBrady.com>
25278
25279         read-file: Improve handling of large files
25280         * lib/read-file.c (fread_file): Minimize realloc()s
25281         for regular files, and better manage sizes around SIZE_MAX.
25282
25283 2010-12-13  Eric Blake  <eblake@redhat.com>
25284
25285         cloexec, fcntl: relax license
25286         * modules/cloexec (License): Change from LGPLv3+ to LGPLv2+, with
25287         consent from all contributors.
25288         * modules/fcntl (License): Likewise.
25289
25290 2010-12-10  Bruno Haible  <bruno@clisp.org>
25291
25292         Tests for module 'pipe-posix'.
25293         * modules/pipe-posix-tests: New file.
25294         * tests/test-pipe.c: New file, based on tests/test-pipe2.c.
25295
25296 2010-12-10  Bruno Haible  <bruno@clisp.org>
25297
25298         pipe-posix: Make it work in C++ mode.
25299         * lib/unistd.in.h: Don't include <io.h>, <fcntl.h> for pipe.
25300         (pipe): Use common idiom, not a macro definition.
25301         * lib/pipe.c: New file.
25302         * m4/pipe.m4: New file.
25303         * modules/pipe-posix (Description): Enhance.
25304         (Files): Add lib/pipe.c, m4/pipe.m4.
25305         (configure.ac): Invoke gl_FUNC_PIPE.
25306         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_PIPE.
25307         * modules/unistd (Makefile.am): Substitute HAVE_PIPE.
25308         * tests/test-unistd-c++.cc: Check the signature of pipe.
25309
25310 2010-12-10  Bruno Haible  <bruno@clisp.org>
25311
25312         Rename module 'pipe' to 'spawn-pipe'.
25313         * modules/spawn-pipe: New file, renamed from modules/pipe.
25314         (Files, configure.ac, Makefile.am): Update.
25315         (Include): Mention "spawn-pipe.h" instead of "pipe.h".
25316         * modules/pipe: Reduce to an obsolete indirection to 'spawn-pipe'.
25317         * lib/spawn-pipe.h: New file, renamed from lib/pipe.h.
25318         * lib/spawn-pipe.c: New file, renamed from lib/pipe.c. Include
25319         "spawn-pipe.h" instead of "pipe.h".
25320         * m4/spawn-pipe.m4: New file, renamed from m4/pipe.m4. Rename gl_PIPE
25321         to gl_SPAWN_PIPE.
25322         * modules/spawn-pipe-tests: New file, renamed from modules/pipe-tests.
25323         (Files, Makefile.am): Update.
25324         * tests/test-spawn-pipe.sh: New file, renamed from tests/test-pipe.sh.
25325         Update.
25326         * tests/test-spawn-pipe.c: New file, renamed from tests/test-pipe.c.
25327         Include "spawn-pipe.h" instead of "pipe.h".
25328         * lib/csharpcomp.c: Include "spawn-pipe.h" instead of "pipe.h".
25329         * lib/javacomp.c: Likewise.
25330         * lib/javaversion.c: Likewise.
25331         * lib/pipe-filter-gi.c: Likewise.
25332         * lib/pipe-filter-ii.c: Likewise.
25333         * modules/csharpcomp (Depends-on): Add 'spawn-pipe', remove 'pipe'.
25334         * modules/javacomp (Depends-on): Likewise.
25335         * modules/javaversion (Depends-on): Likewise.
25336         * modules/pipe-filter-gi (Depends-on): Likewise.
25337         * modules/pipe-filter-ii (Depends-on): Likewise.
25338         * MODULES.html.sh (Executing programs): Update.
25339         * NEWS: Mention the change.
25340
25341 2010-12-10  Eric Blake  <eblake@redhat.com>
25342
25343         pipe-posix: new module
25344         * modules/pipe-posix: New file.
25345         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set default.
25346         (gl_UNISTD_H): Check for declaration.
25347         * modules/unistd (Makefile.am): Substitute it.
25348         * lib/unistd.in.h (pipe): Provide it for mingw.
25349         * doc/posix-functions/pipe.texi (pipe): Update documentation.
25350         * MODULES.html.sh (File descriptor based Input/Output): Likewise.
25351
25352 2010-12-07  Bruno Haible  <bruno@clisp.org>
25353
25354         unistr/u8-strcmp: Avoid collision with libc function on Solaris 11.
25355         * lib/unistr.in.h (u8_strcmp) [__sun]: Declare with real name
25356         u8_strcmp_gnu.
25357         * modules/unistr/u8-strcmp (configure.ac): Bump version number.
25358
25359 2010-12-06  Bruno Haible  <bruno@clisp.org>
25360
25361         Update internal documentation.
25362         * m4/README: Document new idioms for AC_RUN_IFELSE invocations.
25363
25364 2010-12-04  Bruno Haible  <bruno@clisp.org>
25365
25366         Put more information about failed tests into the test return codes.
25367         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Change test
25368         program so that it returns an enumerated value (0, 1, 2, 3, 4, ...).
25369         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
25370         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
25371         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Likewise.
25372         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25373         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25374         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
25375         * m4/isapipe.m4 (gl_PREREQ_ISAPIPE): Likewise.
25376         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
25377         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Likewise.
25378         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
25379         * m4/sleep.m4 (gl_FUNC_SLEEP): Likewise.
25380         * m4/stdint.m4 (gl_STDINT_H): Likewise.
25381         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Change test program so that it
25382         returns a bit mask.
25383         * m4/canonicalize.m4 (gl_FUNC_REALPATH_WORKS): Likewise.
25384         * m4/chown.m4 (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Likewise.
25385         * m4/dup2.m4 (gl_FUNC_DUP2): Likewise.
25386         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): Likewise.
25387         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
25388         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
25389         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
25390         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
25391         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
25392         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
25393         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
25394         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
25395         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
25396         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
25397         * m4/link.m4 (gl_FUNC_LINK): Likewise.
25398         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
25399         * m4/mbrlen.m4 (gl_MBRLEN_RETVAL): Likewise.
25400         * m4/mbrtowc.m4 (gl_MBRTOWC_RETVAL): Likewise.
25401         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
25402         * m4/memchr.m4 (gl_FUNC_MEMCHR): Likewise.
25403         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
25404         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
25405         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Likewise.
25406         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
25407         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
25408         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
25409         * m4/popen.m4 (gl_FUNC_POPEN): Likewise.
25410         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
25411         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
25412         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_LS,
25413         gl_PRINTF_PRECISION): Likewise.
25414         * m4/regex.m4 (gl_REGEX): Likewise.
25415         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
25416         * m4/rmdir.m4 (gl_FUNC_RMDIR): Likewise.
25417         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Likewise.
25418         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
25419         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
25420         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
25421         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Likewise.
25422         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Likewise.
25423         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
25424         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25425         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
25426         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
25427         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
25428         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
25429         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
25430         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
25431         * m4/utimes.m4 (gl_FUNC_UTIMES): Likewise.
25432         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
25433         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
25434         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Likewise.
25435         (gl_FLOATTYPE_SIGN_LOCATION): Change test program so that it returns an
25436         enumerated value.
25437         * m4/acl.m4 (gl_ACL_GET_FILE): Use "if ... return 1; return 0;" style.
25438
25439 2010-12-04  Bruno Haible  <bruno@clisp.org>
25440
25441         Update for Solaris 11 2010-11.
25442         * doc/{glibc,posix}-{functions,headers}: Add info about Solaris 11
25443         Express, released in November 2010.
25444
25445 2010-12-04  Bruno Haible  <bruno@clisp.org>
25446
25447         nproc: Relax license.
25448         * modules/nproc (License): Change to LGPL, with consent by Glen Lenker
25449         and Paul Eggert.
25450         Requested by Ludovic Courtès <ludo@gnu.org>.
25451
25452 2010-12-01  Paul Eggert  <eggert@cs.ucla.edu>
25453
25454         utimecmp: fine-grained src to nearby coarse-grained dest
25455
25456         * lib/utimecmp.c (utimecmp): When UTIMECMP_TRUNCATE_SOURCE is set,
25457         and the source is on a file system with higher-resolution time
25458         stamps, than the destination, and _PC_TIMESTAMP_RESOLUTION does
25459         not work, and the time stamps are close together, the algorithm to
25460         determine the exact resolution from the read-back mtime was buggy:
25461         it had a "!=" where it should have had an "==".  This bug has been
25462         in the code ever since it was introduced to gnulib.
25463         Problem reported by Dan Jacobson in
25464         <http://debbugs.gnu.org/cgi/bugreport.cgi?bug=7529>.
25465
25466 2010-11-30  Bruno Haible  <bruno@clisp.org>
25467
25468         strerror_r-posix: Fix autoconf test.
25469         * m4/strerror_r.m4 (gl_FUNC_STRERROR_R): Fix typo.
25470
25471 2010-11-28  Bruno Haible  <bruno@clisp.org>
25472             Paul Eggert  <eggert@cs.ucla.edu>
25473
25474         Tests for module 'getdomainname'.
25475         * modules/getdomainname-tests: New file.
25476         * tests/test-getdomainname.c: New file, based on
25477         tests/test-gethostname.c.
25478
25479 2010-11-28  Bruno Haible  <bruno@clisp.org>
25480             Paul Eggert  <eggert@cs.ucla.edu>
25481
25482         getdomainname: Use the system function when possible.
25483         * lib/unistd.in.h: Include <netdb.h>, for getdomainname's declaration.
25484         (getdomainname): Replace if needed. Provide the declaration if it is
25485         missing. Don't use _GL_CXXALIAS_SYS_CAST.
25486         * lib/getdomainname.c: Include <limits.h> and <sys/systeminfo.h>.
25487         (getdomainname): When the system has getdomainname, call the system
25488         function. When sysinfo (SI_SRPC_DOMAIN, ...) is possible, use that.
25489         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
25490         gl_HEADER_SYS_SOCKET and gl_HEADER_NETDB. Test whether the function is
25491         found in libnsl. Look for the declaration also in <netdb.h>. Replace
25492         the function if its second argument is of type 'int' or if it is found
25493         in libnsl.
25494         (gl_PREREQ_GETDOMAINNAME): Define HAVE_GETDOMAINNAME. Check for
25495         <sys/systeminfo.h> and sysinfo().
25496         * modules/getdomainname (Depends-on): Add netdb, sys_socket.
25497         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
25498         HAVE_DECL_GETDOMAINNAME and REPLACE_GETDOMAINNAME instead of
25499         HAVE_GETDOMAINNAME.
25500         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETDOMAINNAME and
25501         REPLACE_GETDOMAINNAME instead of HAVE_GETDOMAINNAME.
25502         * doc/glibc-functions/getdomainname.texi: Document the problems with
25503         the getdomainname declaration.
25504
25505 2010-11-28  Bruno Haible  <bruno@clisp.org>
25506
25507         sys_socket: Ensure ss_family field on AIX.
25508         * lib/sys_socket.in.h (ss_family): New macro definition.
25509         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Set
25510         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY. Set SYS_SOCKET_H if necessary.
25511         (gl_SYS_SOCKET_H_DEFAULTS): Initialize
25512         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25513         * modules/sys_socket (Makefile.am): Substitute
25514         HAVE_STRUCT_SOCKADDR_STORAGE_SS_FAMILY.
25515         * doc/posix-headers/sys_socket.texi: Mention the AIX bug.
25516
25517 2010-11-27  Bruno Haible  <bruno@clisp.org>
25518
25519         readline: Improve configure output.
25520         * m4/readline.m4 (gl_FUNC_READLINE): Make the
25521         "checking for readline..." result understandable.
25522
25523 2010-11-27  Bruno Haible  <bruno@clisp.org>
25524
25525         *printf-posix: Detect a bug on Solaris 10/x86.
25526         * m4/printf.m4 (gl_PRINTF_PRECISION): Detect crash with large precision
25527         for floating-point output.
25528         * tests/test-vasnprintf-posix.c (test_function): Test precision with %f
25529         directive.
25530         * tests/test-snprintf-posix.h (test_function): Likewise.
25531         * tests/test-sprintf-posix.h (test_function): Likewise.
25532         * tests/test-vasprintf-posix.c (test_function): Likewise.
25533         * doc/posix-functions/fprintf.texi: Mention Solaris/x86 bug.
25534         * doc/posix-functions/printf.texi: Likewise.
25535         * doc/posix-functions/snprintf.texi: Likewise.
25536         * doc/posix-functions/sprintf.texi: Likewise.
25537         * doc/posix-functions/vfprintf.texi: Likewise.
25538         * doc/posix-functions/vprintf.texi: Likewise.
25539         * doc/posix-functions/vsnprintf.texi: Likewise.
25540         * doc/posix-functions/vsprintf.texi: Likewise.
25541         * doc/glibc-functions/obstack_printf.texi: Likewise.
25542         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
25543
25544 2010-11-27  Bruno Haible  <bruno@clisp.org>
25545
25546         Fix link error when module libunistring-optional is in use.
25547         * modules/striconveh-tests (Makefile.am): Link with $(LIBUNISTRING).
25548         * modules/striconveha-tests (Makefile.am): Likewise.
25549
25550 2010-11-27  Bruno Haible  <bruno@clisp.org>
25551
25552         regex: Mention link dependencies.
25553         * modules/regex (Link): New section.
25554         * modules/rpmatch (Link): Likewise.
25555         * modules/regex-quote-tests (Makefile.am): Link with $(LIBINTL).
25556
25557 2010-11-27  Bruno Haible  <bruno@clisp.org>
25558
25559         ftoastr: Fix compilation error on Solaris.
25560         * lib/ftoastr.c: Include <config.h>.
25561
25562 2010-11-27  Bruno Haible  <bruno@clisp.org>
25563
25564         getloadavg: Update documentation.
25565         * doc/glibc-functions/getloadavg.texi: Mention the Solaris problem.
25566
25567 2010-11-27  Bruno Haible  <bruno@clisp.org>
25568
25569         sys_socket: Fix test whether the functions are declared.
25570         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Include <sys/socket.h>,
25571         not <sys/select.h>.
25572
25573 2010-11-27  Bruno Haible  <bruno@clisp.org>
25574
25575         getpass: Make sure to get system declaration on some platforms.
25576         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU): Require
25577         gl_USE_SYSTEM_EXTENSIONS.
25578         * modules/getpass (Depends-on): Add extensions.
25579
25580 2010-11-26  Bruno Haible  <bruno@clisp.org>
25581
25582         iconv-h: Fix test-iconv-h-c++ failure on Solaris 11 2010-11.
25583         * lib/iconv.in.h (iconv_open, iconv, iconv_close): Define only if the
25584         'iconv' module is present.
25585         (ICONV_CONST): New macro.
25586         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize GNULIB_ICONV and
25587         ICONV_CONST.
25588         * m4/iconv.m4 (AM_ICONV): If the gnulib module 'iconv-h' is present,
25589         set ICONV_CONST.
25590         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Don't set ICONV_CONST
25591         here.
25592         * modules/iconv (configure.ac): Invoke gl_ICONV_MODULE_INDICATOR.
25593         * modules/iconv-h (Makefile.am): Substitute GNULIB_ICONV.
25594         * tests/test-iconv-h.c (ICONV_CONST): Don't define here.
25595         * tests/test-iconv-h-c++.cc (ICONV_CONST): Don't define here.
25596         (iconv_open, iconv, iconv_close): Test only if the 'iconv' module is
25597         present.
25598
25599 2010-11-25  Paul Eggert  <eggert@cs.ucla.edu>
25600
25601         ftoastr: comment fix
25602         * lib/ftoastr.c: "little" -> "little or no" in comment
25603
25604 2010-11-24  Paul Eggert  <eggert@cs.ucla.edu>
25605
25606         stdint: port to GCC 4.3 + OSX + Octave
25607         On this platform, stdint.h is buggy and defines int64_t to long
25608         long int.  The replacement defined it to long int, causing
25609         problems with C++ style name mangling.  Instead, trust the system
25610         definition if INT64_MAX is defined, and likewise for the unsigned
25611         variant.   Problem reported by Jarno Rajahalme in
25612         <http://lists.gnu.org/archive/html/bug-gnulib/2010-04/msg00143.html>.
25613         * lib/stdint.in.h (GL_INT64_T): Define if INT64_MAX is defined,
25614         and don't mess with int64_t and INT64_MAX in this case.
25615         (GL_UINT64_T): Likewise for UINT64_MAX and uint64_t.
25616
25617 2010-11-24  Bruno Haible  <bruno@clisp.org>
25618
25619         doc: Corrections regarding MacOS X 10.4 and 10.5.
25620         * doc/{glibc,posix,pastposix}-functions/*.texi: Update info about
25621         MacOS X.
25622         Reported by Simon Josefsson.
25623
25624 2010-11-22  Ben Pfaff  <blp@cs.stanford.edu>
25625
25626         Uninstall ".bin" files installed by relocwrapper.
25627         * modules/relocatable-prog-wrapper (uninstall-relocwrapper):
25628         Recursively run "make uninstall" with ".bin" prefixed to EXEEXT,
25629         unless it is already there.
25630
25631 2010-11-21  Bruno Haible  <bruno@clisp.org>
25632
25633         Update for NetBSD 5.0.
25634         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25635         NetBSD; the test fails on NetBSD 5.0.
25636         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25637         about NetBSD.
25638
25639 2010-11-21  Bruno Haible  <bruno@clisp.org>
25640
25641         Update for HP-UX 11.23 and HP-UX 11.31.
25642         * doc/{glibc,posix}-{headers,functions}/*.texi: Update info about
25643         HP-UX.
25644
25645 2010-11-21  Bruno Haible  <bruno@clisp.org>
25646
25647         Update for MacOS X 10.5.
25648         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Don't guess yes on
25649         MacOS X; the test fails on MacOS X 10.5.8.
25650         * doc/{glibc,posix,pastposix}-{headers,functions}/*.texi: Update info
25651         about MacOS X.
25652
25653 2010-11-20  Joel E. Denny  <joeldenny@joeldenny.org>
25654
25655         bootstrap: add bootstrap_sync option.
25656         See discussion at
25657         <http://lists.gnu.org/archive/html/bug-gnulib/2010-10/msg00369.html>,
25658         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00200.html>.
25659         * build-aux/bootstrap: Accept --bootstrap-sync to update
25660         bootstrap if it is not identical to the local gnulib's
25661         bootstrap.  Accept bootstrap_sync=true in bootstrap.conf to
25662         enable this by default.  Accept --no-bootstrap-sync to disable
25663         it.
25664
25665 2010-11-20  Bruno Haible  <bruno@clisp.org>
25666
25667         Ensure that <features.h> is included before __GLIBC__ is tested.
25668         * lib/printf-parse.h: Include <features.h>.
25669         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gl_FEATURES_H.
25670         Reported by Mike Frysinger <vapier@gentoo.org>.
25671
25672         Ensure that <features.h> is included before __GLIBC__ is tested.
25673         * lib/wchar.in.h: Include <features.h>.
25674         * m4/wchar_h.m4 (gl_WCHAR_H): Require gl_FEATURES_H.
25675         * modules/wchar (Makefile.am): Substitute HAVE_FEATURES_H.
25676         Reported by Mike Frysinger <vapier@gentoo.org>.
25677
25678         Ensure that <features.h> is included before __GLIBC__ is tested.
25679         * lib/arpa_inet.in.h: Include <features.h>.
25680         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Require gl_FEATURES_H.
25681         * modules/arpa_inet (Makefile.am): Substitute HAVE_FEATURES_H.
25682         Reported by Mike Frysinger <vapier@gentoo.org>.
25683
25684         Ensure that <features.h> is included before __GLIBC__ is tested.
25685         * build-aux/link-warning.h: Include <features.h>.
25686         * modules/link-warning (configure.ac): Require gl_FEATURES_H.
25687         (Makefile.am): Substitute HAVE_FEATURES_H into link-warning.h.
25688         Reported by Mike Frysinger <vapier@gentoo.org>.
25689
25690         Ensure that <features.h> is included before __GLIBC__ is tested.
25691         * m4/gnulib-common.m4 (gl_FEATURES_H): New macro.
25692         Reported by Mike Frysinger <vapier@gentoo.org>.
25693
25694 2010-11-20  Bruno Haible  <bruno@clisp.org>
25695
25696         memmem: Fix autoconf test.
25697         * m4/memmem.m4 (gl_FUNC_MEMMEM): Test HAVE_DECL_MEMMEM, not HAVE_MEMMEM.
25698
25699 2010-11-20  Bruno Haible  <bruno@clisp.org>
25700
25701         Port to uClibc.
25702         * build-aux/link-warning.h (GL_LINK_WARNING): Treat uClibc like glibc.
25703         * lib/fcntl.in.h: Likewise.
25704         * lib/hard-locale.c (GLIBC_VERSION): Likewise.
25705         * lib/mbrtowc.c (mbrtowc): Likewise.
25706         * lib/relocatable.c (find_shared_library_fullname): Likewise.
25707         * lib/strerror_r.c: Likewise.
25708         * lib/unistr/u8-strnlen.c: Likewise.
25709         * lib/vasnprintf.c (decimal_point_char): Likewise.
25710         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Likewise.
25711         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
25712         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
25713         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
25714         * tests/test-sigaction.c (handler, main): Likewise.
25715         * lib/freading.h: Treat uClibc like a non-glibc platform.
25716         * lib/freading.c: Likewise.
25717         * lib/gettext.h: Likewise.
25718         * lib/localename.c (gl_locale_name_thread_unsafe, HAVE_LOCALE_NULL):
25719         Likewise.
25720         * lib/printf-parse.h (FLAG_LOCALIZED): Likewise.
25721         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
25722         * lib/propername.c (proper_name_utf8): Likewise.
25723         * lib/spawn.in.h: Likewise.
25724         * lib/striconv.c (mem_cd_iconv, str_cd_iconv, str_iconv): Likewise.
25725         * lib/striconveh.c (iconveh_open, iconv_carefully, iconv_carefully_1,
25726         mem_cd_iconveh_internal): Likewise.
25727         * lib/striconveha.c (mem_iconveha, str_iconveha): Likewise.
25728         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
25729         strstr, strcasestr): Likewise.
25730         * lib/unicodeio.c (unicode_to_mb): Likewise.
25731         * lib/uniconv/u16-conv-from-enc.c (UTF16_NAME): Likewise.
25732         * lib/uniconv/u16-conv-to-enc.c (UTF16_NAME): Likewise.
25733         * lib/uniconv/u16-strconv-to-enc.c (UTF16_NAME): Likewise.
25734         * lib/uniconv/u32-conv-from-enc.c (UTF32_NAME): Likewise.
25735         * lib/uniconv/u32-conv-to-enc.c (UTF32_NAME): Likewise.
25736         * lib/uniconv/u32-strconv-to-enc.c (UTF32_NAME): Likewise.
25737         * lib/unistr/u8-stpncpy.c: Likewise.
25738         * lib/vasnprintf.c (VASNPRINTF): Likewise.
25739         * lib/xmalloc.c (HAVE_GNU_CALLOC): Likewise.
25740         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
25741         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
25742         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
25743         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Likewise.
25744         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Likewise.
25745         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Likewise.
25746         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE, gl_FUNC_STRCASESTR):
25747         Likewise.
25748         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
25749         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
25750         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
25751         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
25752         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
25753         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
25754         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
25755         * m4/wchar_h.m4 (gl_WCHAR_H): Likewise.
25756         * tests/test-getopt.h (OPTIND_MIN): Likewise.
25757         * tests/test-striconveha.c (main): Likewise.
25758         * tests/test-vasnprintf-posix.c (test_function): Likewise.
25759         * tests/test-vasnprintf-posix3.c (test_function, main): Likewise.
25760         * doc/posix-functions/getdelim.texi: Mention an uClibc bug.
25761         * doc/posix-functions/getline.texi: Likewise.
25762         Reported by Mike Frysinger <vapier@gentoo.org>.
25763
25764 2010-11-20  Bruno Haible  <bruno@clisp.org>
25765
25766         nproc: Fix condition.
25767         * lib/nproc.c: Test HAVE_PTHREAD_GETAFFINITY_NP, not
25768         HAVE_PTHREAD_AFFINITY_NP.
25769
25770 2010-11-20  Bruno Haible  <bruno@clisp.org>
25771
25772         Fix a comment.
25773         * lib/vasnprintf.c (VASNPRINTF): Fix comment.
25774
25775 2010-11-19  Paul Eggert  <eggert@cs.ucla.edu>
25776
25777         ftoastr: don't assume snprintf
25778         * lib/ftoastr.c (snprintf) [! GNULIB_SNPRINTF_POSIX]:
25779         Implement a subset of snprintf here, by using sprintf safely.
25780         * modules/ftoastr (Depends-on): Remove snprintf.
25781
25782 2010-11-19  Jim Meyering  <meyering@redhat.com>
25783
25784         test-rename.h: fix compilation failure
25785         * tests/test-rename.h (test_rename): Add omitted "}".
25786
25787 2010-11-17  Jim Meyering  <meyering@redhat.com>
25788
25789         maint.mk: add a URL discussing the no-@acronym policy
25790         * top/maint.mk (sc_texinfo_acronym): Add a URL in a comment.
25791
25792 2010-11-18  Paul Eggert  <eggert@cs.ucla.edu>
25793
25794         ftoastr: depend on snprintf, improve comments
25795         * lib/ftoastr.c: Also mention Loitsch's draft.
25796         * lib/ftoastr.h: Require WIDTH to be nonnegative.  This isn't
25797         needed in the current implementation, but it might simplify
25798         speeding up the code later.
25799         * modules/ftoastr: Depend on snprintf; this improves portability.
25800         Suggested by Bruno Haible in the same email.
25801
25802         ftoastr: port to hosts lacking strtof and strtold
25803         Problem reported by Bruno Haible in
25804         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00242.html>.
25805         * lib/ftoastr.c (STRTOF): Define to strtod if in a pre-C99
25806         environment and strtold (and presumably strtof) are not available.
25807         * modules/ftoastr (Files): Add m4/c-strtod.m4.
25808         (configure.ac): Require gl_C99_STRTOLD.
25809
25810 2010-11-18  Bruno Haible  <bruno@clisp.org>
25811
25812         c-strtold: Avoid link error on AIX 7.
25813         * lib/c-strtod.c: Test also HAVE_STRTOD_L or HAVE_STRTOLD_L.
25814         * m4/c-strtod.m4 (gl_C_STRTOD): Test whether strtod_l exists.
25815         (gl_C_STRTOLD): Test whether strtold_l exists.
25816         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
25817
25818 2010-11-17  Paul Eggert  <eggert@cs.ucla.edu>
25819
25820         intprops: new macro INT_BITS_STRLEN_BOUND
25821         * lib/intprops.h (INT_BITS_STRLEN_BOUND): New macro, needed by
25822         ftoastr.h.  This exposes an internal of intprops.h that was formerly
25823         not exposed.  Also, it uses a slightly tighter bound than before;
25824         though this makes no practical difference, we might as well be as
25825         tight as we easily can.
25826
25827         ftoastr: new module, for lossless conversion of floats to short strings
25828         * lib/ftoastr.h, lib/ftoastr.c, lib/dtoastr.c, lib/ldtoastr.c:
25829         * modules/ftoastr: New files.
25830
25831 2010-11-15  Paul Eggert  <eggert@cs.ucla.edu>
25832
25833         bootstrap: port to Solaris sed
25834         * build-aux/bootstrap (get_version): Port to Solaris sed.
25835         See Ralf Wildenhues's note in
25836         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00156.html>.
25837
25838 2010-11-14  Jim Meyering  <meyering@redhat.com>
25839
25840         maint.mk: rename variable: s/noteworthy/gl_noteworthy_news_/
25841         * top/maint.mk (gl_noteworthy_news_): Rename from "noteworthy"
25842         and move definition closer to sole use.
25843
25844 2010-11-13  Jim Meyering  <meyering@redhat.com>
25845
25846         remove autoconf-2.57 work-around requiring AC_PROG_EGREP and AC_PROG_CPP
25847         Now we require at least autoconf-2.59, which means the work-around
25848         is no longer needed.
25849         * m4/alloca.m4 (gl_FUNC_ALLOCA): Remove work-around.
25850         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
25851         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
25852         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
25853         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
25854
25855 2010-11-13  Bruno Haible  <bruno@clisp.org>
25856
25857         rename, renameat: Avoid test failures at NFS mounted locations.
25858         * tests/test-rename.h (dentry_exists, assert_nonexistent): New
25859         functions.
25860         (test_rename): Use assert_nonexistent.
25861         * tests/test-rename.c: Include <dirent.h>.
25862         * tests/test-renameat.c: Likewise.
25863         Reported by Gary V. Vaughan <gary@gnu.org>.
25864
25865         rename, renameat: Document Linux bug with NFS
25866         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00154.html>.
25867         * doc/posix-functions/rename.texi: Mention the NFS bug on Linux.
25868         * doc/posix-functions/renameat.texi: Likewise.
25869         Suggested by Eric Blake.
25870
25871 2010-11-13  Bruno Haible  <bruno@clisp.org>
25872
25873         rename test: Add comments.
25874         * tests/test-rename.h (test_rename): Add structure and comments.
25875
25876 2010-11-13  Eric Blake  <eblake@redhat.com>
25877
25878         maintainer-makefile: cover a few more files
25879         * top/maint.mk (sc_prohibit_test_double_equal): Also cover shell
25880         scripts generated within C files, for libvirt.
25881
25882 2010-11-13  Bruno Haible  <bruno@clisp.org>
25883
25884         unistr/u8-mbtouc: Improve handling of ill-formed UTF-8 input.
25885         * lib/unistr/u8-mbtouc.c (u8_mbtouc): For an invalid multibyte
25886         character, return the number of bytes that belong together, not always
25887         1.
25888         * lib/unistr/u8-mbtouc-unsafe.c (u8_mbtouc_unsafe): Likewise.
25889         * lib/unistr/u8-mbtouc-aux.c (u8_mbtouc_aux): Likewise.
25890         * lib/unistr/u8-mbtouc-unsafe-aux.c (u8_mbtouc_unsafe_aux): Likewise.
25891         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtouc to determine the
25892         number of bytes of an invalid character.
25893         * tests/unistr/test-u8-mbtouc.c (test_safe_function): New function.
25894         (main): Invoke it.
25895         * tests/unistr/test-u8-mbtouc.h (test_function): Update two test
25896         results.
25897         * tests/unistr/test-u8-mbsnlen.c (main): Test various kinds of
25898         malformed byte sequences.
25899         * modules/unistr/u8-mbtouc (configure.ac): Bump version number.
25900         * modules/unistr/u8-mbtouc-unsafe (configure.ac): Likewise.
25901         * modules/unistr/u8-mbsnlen (configure.ac): Likewise.
25902         Reported by Ben Pfaff and Paolo Bonzini.
25903
25904 2010-11-13  Bruno Haible  <bruno@clisp.org>
25905
25906         openat: Work around glibc bug with fchownat() and empty file names.
25907         * m4/openat.m4 (gl_FUNC_FCHOWNAT_EMPTY_FILENAME_BUG): New macro.
25908         (gl_FUNC_FCHOWNAT): Invoke it.
25909         * lib/fchownat.c (rpl_fchownat): Handle the empty file name specially.
25910         * doc/posix-functions/fchownat.texi: Document the glibc bug.
25911         Reported by Gary V. Vaughan <gary@gnu.org>.
25912
25913 2010-11-13  Bruno Haible  <bruno@clisp.org>
25914
25915         openat: Ensure autoconf macro ordering.
25916         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Require
25917         gl_USE_SYSTEM_EXTENSIONS.
25918         (gl_FUNC_FCHOWNAT): Require gl_UNISTD_H_DEFAULTS.
25919
25920 2010-11-13  Bruno Haible  <bruno@clisp.org>
25921
25922         Update comments.
25923         * lib/unistr/u8-check.c: Update file name in comments.
25924         * lib/unistr/u8-mblen.c: Likewise.
25925         * lib/unistr/u8-prev.c: Likewise.
25926         * lib/unistr/u8-strmblen.c: Likewise.
25927         * lib/unistr/u8-strmbtouc.c: Likewise.
25928
25929 2010-11-13  Jim Meyering  <meyering@redhat.com>
25930
25931         tests: avoid test failure on Solaris 10 due to lack of PATH export
25932         * tests/test-update-copyright.sh: Don't forget to export PATH.
25933
25934         init.sh: ensure that IFS is defined, just in case...
25935         * tests/init.sh (setup_): Ensure that IFS is defined,
25936         so that saving and restoring it works as expected.  This
25937         appears to be useful at least for an old version of dash
25938         from a long time ago (RH 6).  See here for details:
25939         http://thread.gmane.org/gmane.comp.gnu.coreutils.general/436/focus=455
25940
25941         maint.mk: tighten "test a == b" check
25942         * top/maint.mk (sc_prohibit_test_double_equal): Restrict this
25943         test to files that contain something like #!/bin/sh.
25944         Without this, coreutils would get two false positives in
25945         the comments of C source files.
25946
25947 2010-11-12  Eric Blake  <eblake@redhat.com>
25948
25949         bootstrap: fix typo in previous attempt
25950         * build-aux/bootstrap (buildreq): Correct the grouping.
25951         Reported by Paul Eggert.
25952
25953         maintainer-makefile: prohibit test x == x
25954         * top/maint.mk (sc_prohibit_test_double_equal): New rule.
25955         Based on a report by Matthias Bolte.
25956
25957         bootstrap: allow FreeBSD gzip
25958         * build-aux/bootstrap (get_version): Parse FreeBSD gzip version,
25959         which has no '.' and goes to stderr.
25960         * build-aux/bootstrap.conf (buildreq): Improve the sample file.
25961         Reported by Matthias Bolte.
25962
25963         maintainer-makefile: check for i18n setup
25964         * top/maint.mk (sc_bindtextdomain): Check for evidence that _()
25965         will likely work.
25966
25967 2010-11-12  Bruno Haible  <bruno@clisp.org>
25968
25969         sleep, nanosleep: Work around Linux 2.6.9 nanosleep bug.
25970         * lib/sleep.c (rpl_sleep): Split in chunks no larger than 24 days.
25971         * lib/nanosleep.c (nanosleep): Likewise.
25972
25973 2010-11-11  Bruno Haible  <bruno@clisp.org>
25974
25975         fcntl-h: Fix for use of C++ on glibc systems.
25976         * lib/fcntl.in.h: Include <sys/stat.h> before include_next <fcntl.h>
25977         also on glibc systems in C++ mode.
25978         Reported by Gary V. Vaughan <gary@gnu.org>.
25979
25980 2010-11-11  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
25981
25982         mknod: avoid false failure with dash
25983         * m4/mknod.m4 (gl_FUNC_MKNOD): Use portable shell syntax.
25984
25985 2010-11-11  Paul Eggert  <eggert@cs.ucla.edu>
25986
25987         unlink: Fix "is it should" typo in diagnostic.
25988         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix typo, as per Reuben Thomas in
25989         <http://lists.gnu.org/archive/html/bug-gnulib/2010-11/msg00106.html>.
25990
25991 2010-11-11  Bruno Haible  <bruno@clisp.org>
25992
25993         Tests for module 'strerror_r-posix'.
25994         * modules/strerror_r-posix-tests: New file.
25995         * tests/test-strerror_r.c: New file.
25996         * tests/test-string-c++.cc: Check the signature of strerror_r.
25997
25998         New module 'strerror_r-posix'.
25999         * lib/string.in.h (strerror_r): New declaration.
26000         * lib/strerror_r.c: New file.
26001         * m4/strerror_r.m4: New file.
26002         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Check for the declaration
26003         of strerror_r.
26004         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRERROR_R,
26005         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
26006         * modules/strerror_r-posix: New file.
26007         * modules/string (Makefile.am): Substitute GNULIB_STRERROR_R,
26008         HAVE_DECL_STRERROR_R, REPLACE_STRERROR_R.
26009         * doc/posix-functions/strerror_r.texi: Mention the new module and the
26010         portability problems.
26011
26012 2010-11-11  Torsten Scheck  <Torsten.Scheck@Leica-Microsystems.com> (tiny change)
26013
26014         * build-aux/pmccabe2html: Fixed a off-by-one error, so last input
26015         line is also considered for output. Quoted function name in shell
26016         command, so temporary files for functions like MyClass::operator()
26017         are removed correctly without errors.
26018
26019 2010-11-09  Bruno Haible  <bruno@clisp.org>
26020
26021         * doc/posix-functions/strerror.texi: List more failing platforms.
26022
26023         * doc/posix-functions/strerror.texi: Add a comment.
26024
26025 2010-11-07  Paul Eggert  <eggert@cs.ucla.edu>
26026
26027         fdopendir: fix bug on MacOS X when low on file descriptors
26028
26029         * lib/fdopendir.c (REPLACE_FCHDIR): #define to 0 if not defined.
26030         (fdopendir_with_dup, fd_clone_opendir): Now have extra CWD arg.
26031         All callers changed.
26032         (fdopendir): Invoke save_cwd at the top level, not after using
26033         multiple dup() calls to use up file descriptors.  Then retry
26034         fdopendir_with_dup.  This avoids failure with EMFILE if FD is 1
26035         less than the maximum number of open file descriptors, because
26036         save_cwd fails with errno == EMFILE.  Problem reported by tsteven4
26037         on Mac OS X 10.6.4 for tar 1.24
26038         <http://lists.gnu.org/archive/html/bug-tar/2010-10/msg00084.html>
26039         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00000.html>
26040         and for tar 1.25
26041         <http://lists.gnu.org/archive/html/bug-tar/2010-11/msg00038.html>.
26042
26043 2010-11-07  Bruno Haible  <bruno@clisp.org>
26044
26045         vasnprintf: Support I flag on glibc systems.
26046         * lib/printf-parse.h (FLAG_LOCALIZED): New macro.
26047         * lib/printf-parse.c (PRINTF_PARSE): Handle the 'I' flag.
26048         * lib/vasnprintf.c (VASNPRINTF): Pass the 'I' flag on to the system's
26049         snprintf function.
26050         * tests/test-vasnprintf-posix.c (test_function): Test the 'I' flag on
26051         glibc systems.
26052         * tests/test-vasnprintf-posix3.c: New file.
26053         * modules/vasnprintf-posix-tests (Files): Add it.
26054         (TESTS, check_PROGRAMS): Add test-vasnprintf-posix3.
26055
26056 2010-11-05  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
26057
26058         [html] Fix copy/paste bug: Use unique name for compiler warnings.
26059         * MODULES.html.sh: For compiler warnings, use name
26060         `ansic_ext_compwarn' since `ansic_ext_misc' is already taken.
26061
26062 2010-11-05  Eric Blake  <eblake@redhat.com>
26063
26064         ceil, floor: avoid spurious failure with icc
26065         * tests/test-ceilf2.c (ceilf_reference): Avoid icc's use of DAZ
26066         [denormals-as-zero] when optimizing without -mieee-fp option.
26067         * tests/test-floorf2.c (floorf_reference): Likewise.
26068         * tests/test-ceilf1.c (dummy): New function.
26069         (main): Use it to outsmart icc's optimization.
26070         * tests/test-floorf1.c (dummy, main): Likewise.
26071
26072         tests: require working signbit
26073         * modules/ceilf-tests (Depends-on): Add signbit.
26074         * modules/ceill-tests (Depends-on): Likewise.
26075         * modules/floorf-tests (Depends-on): Likewise.
26076         * modules/floorl-tests (Depends-on): Likewise.
26077         * modules/round-tests (Depends-on): Likewise.
26078         * modules/roundf-tests (Depends-on): Likewise.
26079         * modules/roundl-tests (Depends-on): Likewise.
26080         * modules/trunc-tests (Depends-on): Likewise.
26081         * modules/truncf-tests (Depends-on): Likewise.
26082         * modules/truncl-tests (Depends-on): Likewise.
26083
26084         strtod: work around icc bug
26085         * lib/strtod.c (minus_zero): Define to working value.
26086         (strtod): Use it to avoid icc bug.
26087
26088         copysign: enhance tests
26089         * modules/copysign-tests (Files): Add minus-zero.h.
26090         * tests/test-copysign.c (main): Also test zeros.
26091
26092 2010-11-04  Eric Blake  <eblake@redhat.com>
26093
26094         ceil, floor, round, trunc: enhance tests of -0
26095         * tests/test-ceilf1.c (main): Ensure correct sign of result.
26096         * tests/test-ceill.c (main): Likewise.
26097         * tests/test-floorf1.c (main): Likewise.
26098         * tests/test-floorl.c (main): Likewise.
26099         * tests/test-round1.c (main): Likewise.
26100         * tests/test-roundf1.c (main): Likewise.
26101         * tests/test-roundl.c (main): Likewise.
26102         * tests/test-trunc1.c (main): Likewise.
26103         * tests/test-truncf1.c (main): Likewise.
26104         * tests/test-truncl.c (main): Likewise.
26105
26106 2010-11-04  Eric Blake  <eblake@redhat.com>
26107
26108         frexp, tests: work around ICC bug with -zero
26109         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Compute -0.0 in a way that
26110         works with more compilers.
26111         * tests/minus-zero.h: New file.
26112         * modules/ceilf-tests (Files): Include it.
26113         * modules/ceill-tests (Files): Likewise.
26114         * modules/floorf-tests (Files): Likewise.
26115         * modules/floorl-tests (Files): Likewise.
26116         * modules/frexp-nolibm-tests (Files): Likewise.
26117         * modules/frexp-tests (Files): Likewise.
26118         * modules/frexpl-nolibm-tests (Files): Likewise.
26119         * modules/frexpl-tests (Files): Likewise.
26120         * modules/isnan-tests (Files): Likewise.
26121         * modules/isnand-nolibm-tests (Files): Likewise.
26122         * modules/isnand-tests (Files): Likewise.
26123         * modules/isnanf-nolibm-tests (Files): Likewise.
26124         * modules/isnanf-tests (Files): Likewise.
26125         * modules/isnanl-nolibm-tests (Files): Likewise.
26126         * modules/isnanl-tests (Files): Likewise.
26127         * modules/round-tests (Files): Likewise.
26128         * modules/roundf-tests (Files): Likewise.
26129         * modules/roundl-tests (Files): Likewise.
26130         * modules/ldexpl-tests (Files): Likewise.
26131         * modules/signbit-tests (Files): Likewise.
26132         * modules/snprintf-posix-tests (Files): Likewise.
26133         * modules/sprintf-posix-tests (Files): Likewise.
26134         * modules/strtod-tests (Files): Likewise.
26135         * modules/trunc-tests (Files): Likewise.
26136         * modules/truncf-tests (Files): Likewise.
26137         * modules/truncl-tests (Files): Likewise.
26138         * modules/vsnprintf-posix-tests (Files): Likewise.
26139         * modules/vsprintf-posix-tests (Files): Likewise.
26140         * modules/vasnprintf-posix-tests (Files): Likewise.
26141         * modules/vasprintf-posix-tests (Files): Likewise.
26142         * tests/test-ceilf1.c (main): Use it.
26143         * tests/test-ceill.c (main): Likewise.
26144         * tests/test-floorf1.c (main): Likewise.
26145         * tests/test-floorl.c (main): Likewise.
26146         * tests/test-frexp.c (main): Likewise.
26147         * tests/test-frexpl.c (main): Likewise.
26148         * tests/test-isnan.c (main): Likewise.
26149         * tests/test-isnand.h (main): Likewise.
26150         * tests/test-isnanf.h (main): Likewise.
26151         * tests/test-isnanl.h (main): Likewise.
26152         * tests/test-ldexpl.c (main): Likewise.
26153         * tests/test-round.c (main): Likewise.
26154         * tests/test-roundf.c (main): Likewise.
26155         * tests/test-roundl.c (main): Likewise.
26156         * tests/test-signbit.c (test_signbitf, test_signbitd)
26157         (test_signbitl): Likewise.
26158         * tests/test-snprintf-posix.h (test_function): Likewise.
26159         * tests/test-sprintf-posix.h (test_function): Likewise.
26160         * tests/test-strtod.c (main): Likewise.
26161         * tests/test-trunc1.c (main): Likewise.
26162         * tests/test-truncf1.c (main): Likewise.
26163         * tests/test-truncl.c (main): Likewise.
26164
26165         isnanl: work around icc bug
26166         * lib/isnan.c (FUNC): Compute run-time NaN under ICC as well.
26167
26168 2010-11-03  Eric Blake  <eblake@redhat.com>
26169
26170         tests: fix compiler warnings
26171         * tests/test-getopt.h (test_getopt): Fix condition.
26172         * tests/test-getopt_long.h (test_getopt_long): Likewise.
26173         * tests/test-pipe2.c (main): Likewise.
26174         * tests/test-quotearg-simple.c (main): Avoid icc warning.
26175
26176         utimens: fix broken m4 test
26177         * m4/utimens.m4 (gl_UTIMENS): Include correct headers.
26178
26179 2010-10-28  Bruno Haible  <bruno@clisp.org>
26180
26181         posix_spawn*, getdtablesize: Relax license.
26182         * modules/posix_spawn (License): Change to LGPLv2+.
26183         * modules/posix_spawnp (License): Likewise.
26184         * modules/posix_spawn-internal (License): Likewise.
26185         * modules/posix_spawnattr_init (License): Likewise.
26186         * modules/posix_spawnattr_getflags (License): Likewise.
26187         * modules/posix_spawnattr_setflags (License): Likewise.
26188         * modules/posix_spawnattr_getpgroup (License): Likewise.
26189         * modules/posix_spawnattr_setpgroup (License): Likewise.
26190         * modules/posix_spawnattr_getschedparam (License): Likewise.
26191         * modules/posix_spawnattr_setschedparam (License): Likewise.
26192         * modules/posix_spawnattr_getschedpolicy (License): Likewise.
26193         * modules/posix_spawnattr_setschedpolicy (License): Likewise.
26194         * modules/posix_spawnattr_getsigdefault (License): Likewise.
26195         * modules/posix_spawnattr_setsigdefault (License): Likewise.
26196         * modules/posix_spawnattr_getsigmask (License): Likewise.
26197         * modules/posix_spawnattr_setsigmask (License): Likewise.
26198         * modules/posix_spawnattr_destroy (License): Likewise.
26199         * modules/posix_spawn_file_actions_init (License): Likewise.
26200         * modules/posix_spawn_file_actions_addclose (License): Likewise.
26201         * modules/posix_spawn_file_actions_adddup2 (License): Likewise.
26202         * modules/posix_spawn_file_actions_addopen (License): Likewise.
26203         * modules/posix_spawn_file_actions_destroy (License): Likewise.
26204         * modules/getdtablesize (License): Likewise.
26205         Requested by Adam Stokes <ajs@redhat.com> for use in netcf.
26206
26207 2010-10-26  Bruno Haible  <bruno@clisp.org>
26208
26209         unistd: Refine workaround from 2009-12-23 against Cygwin bug.
26210         * lib/unistd.in.h: Don't include <stdio.h> and <fcntl.h>, except on
26211         Cygwin and mingw.
26212         Suggested by Eric Blake.
26213
26214 2010-10-26  Bruno Haible  <bruno@clisp.org>
26215
26216         stdio: Work around compilation error due to renameat() on Solaris 10.
26217         * lib/stdio.in.h: Include <unistd.h> on Solaris.
26218         * lib/renameat.c: Don't include <unistd.h> here.
26219         * doc/posix-functions/renameat.texi: Mention the Solaris problem.
26220         Reported by Paul Eggert and Eric Blake.
26221
26222 2010-10-26  Paul Eggert  <eggert@cs.ucla.edu>
26223
26224         renameat: port to Solaris 10, which declares renameat in unistd.h
26225
26226         * lib/renameat.c: Include unistd.h before stdio.h, because
26227         Solaris 10 declares renameat in unistd.h.  Problem encountered
26228         when building GNU tar 1.24 on Solaris 10.
26229
26230 2010-10-26  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
26231
26232         fdopendir: fix C89 compilation
26233         * lib/fdopendir.c (fd_clone_opendir): Move declaration for older
26234         compilers.
26235
26236 2010-10-23  Paul Eggert  <eggert@cs.ucla.edu>
26237
26238         inttostr: simplify by removing unnecessary redundancy
26239         * lib/anytostr.c: Don't include verify.h.
26240         (anytostr): Don't verify that TYPE_SIGNED (inttype) equals
26241         inttype_is_signed.  Instead, disable the bogus GCC warnings, so that
26242         there's no need for inttype_is_signed and for calling TYPE_SIGNED.
26243         * lib/imaxtostr.c (inttype_is_signed): Remove; no longer needed.
26244         * lib/inttostr.c, lib/offtostr.c, lib/uinttostr.c, lib/umaxtostr.c:
26245         Likewise.
26246         * modules/inttostr (Depends-on): Remove 'verify'.
26247
26248 2010-10-23  Bruno Haible  <bruno@clisp.org>
26249
26250         nl_langinfo: Mention problem with CRNCYSTR on NetBSD 5.0.
26251         * doc/posix-functions/nl_langinfo.texi: Mention problem with CRNCYSTR.
26252         Reported by Eric Blake.
26253
26254 2010-10-23  Bruno Haible  <bruno@clisp.org>
26255
26256         Tests: Fix LOCALE_JA on MirBSD 10.
26257         * m4/locale-ja.m4 (gt_LOCALE_JA): Reject a locale identifier that leads
26258         to an UTF-8 locale.
26259         * m4/locale-fr.m4 (gt_LOCALE_FR): Likewise.
26260         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
26261         Reported by Eric Blake.
26262
26263 2010-10-21  Bruno Haible  <bruno@clisp.org>
26264
26265         nl_langinfo test: Avoid test failure on NetBSD 5.
26266         * tests/test-nl_langinfo.c (main): Relax test of nl_langinfo(CRNCYSTR).
26267         Reported by Eric Blake.
26268
26269 2010-10-21  Eric Blake  <eblake@redhat.com>
26270
26271         c-stack: work around libsigsegv 2.8 bug
26272         * lib/c-stack.c (SIGSTKSZ): Increase size to avoid alternate stack
26273         overflow on at least PowerPC64.
26274
26275 2010-10-17  Bruno Haible  <bruno@clisp.org>
26276
26277         userspec: Drop redundant file.
26278         * modules/userspec (Files): Remove lib/inttostr.h.
26279
26280 2010-10-17  Bruno Haible  <bruno@clisp.org>
26281
26282         nl_langinfo tests: Silence some warnings.
26283         * tests/test-nl_langinfo.c: Silence -Wtype-limits warnings.
26284         Reported by Jim Meyering.
26285
26286 2010-10-17  Bruno Haible  <bruno@clisp.org>
26287
26288         Make use of GCC's attribute __alloc_size__.
26289         * lib/xalloc.h (ATTRIBUTE_ALLOC_SIZE): New macro.
26290         (xmalloc, xzalloc, xcalloc, xrealloc, xmemdup, xnmalloc, xnrealloc,
26291         xcharalloc): Declare with ATTRIBUTE_ALLOC_SIZE.
26292         * lib/eealloc.h (eemalloc, eerealloc): Declare with attribute
26293         __alloc_size__.
26294         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
26295         Suggested by Jim Meyering.
26296
26297 2010-10-16  Joel E. Denny  <joeldenny@joeldenny.org>
26298
26299         bootstrap: anchor .gitignore entries.
26300         * build-aux/bootstrap (insert_sorted_if_absent): Replace all uses
26301         with...
26302         (insert_vc_ignore): ... this new function, which prepends `/' to
26303         all .gitignore entries before passing them to
26304         insert_sorted_if_absent.
26305
26306 2010-10-16  Bruno Haible  <bruno@clisp.org>
26307
26308         nextafter: Fix configure check.
26309         * modules/nextafter (configure.ac): Correct expected prototype.
26310
26311 2010-10-16  Bruno Haible  <bruno@clisp.org>
26312
26313         termios: Update documentation.
26314         * doc/posix-headers/termios.texi: Mention remaining mingw problems.
26315
26316 2010-10-16  Bruno Haible  <bruno@clisp.org>
26317
26318         tests: Make them compile with TinyCC.
26319         * tests/test-strstr.c (main): Remove parentheses around array
26320         initializer.
26321
26322 2010-10-15  Eric Blake  <eblake@redhat.com>
26323
26324         ignore-value: make header idempotent
26325         * lib/ignore-value.h: Add double-inclusion guards.
26326         Reported by Stefan Berger.
26327
26328 2010-10-15  Jim Meyering  <meyering@redhat.com>
26329
26330         GNUmakefile: handle "stable" target, not "major"
26331         * top/GNUmakefile (_is-dist-target): s/major/stable/ to match the
26332         lists in maint.mk and announce-gen.  Without this, "make stable"
26333         would fail to ensure that $(VERSION) is up to date.
26334
26335 2010-10-15  Ludovic Courtès  <ludo@gnu.org>
26336
26337         * lib/isnan.c (FUNC): Treat TinyCC (`__TINYC__') like `__SUNPRO_C'
26338         & co.
26339
26340 2010-10-14  Bruno Haible  <bruno@clisp.org>
26341
26342         vasnprintf: Don't set errno to 0.
26343         * lib/vasnprintf.c (VASNPRINTF): Save and restore errno around the
26344         block that sets it to 0.
26345         Reported by Gianluigi Tiesi <sherpya@netfarm.it>.
26346
26347 2010-10-14  Bruno Haible  <bruno@clisp.org>
26348
26349         socketlib: Fix.
26350         * modules/socketlib (Files): Add m4/sys_socket_h.m4. Needed for
26351         gl_PREREQ_SYS_H_WINSOCK2.
26352         Reported by Ian Beckwith <ianb@erislabs.net>.
26353
26354 2010-10-13  Jim Meyering  <meyering@redhat.com>
26355
26356         test-select-stdin.c: avoid warn_unused_result warnings
26357         * tests/test-select-stdin.c: Include "macros.h".
26358         ASSERT that read and fflush succeed.
26359
26360 2010-10-13  Jim Meyering  <meyering@redhat.com>
26361
26362         git-version-gen: do require git-VC'd files in cwd
26363         * build-aux/git-version-gen: Reject a git version string
26364         if there are no commits associated with the current directory.
26365         This avoids an unlikely false-positive (unrelated dir whose parent
26366         repository also contains a tag matching v*), as pointed out
26367         by Giuseppe Scrivano in
26368         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=23664
26369
26370 2010-10-13  Paul Eggert  <eggert@cs.ucla.edu>
26371
26372         argv-iter: omit nonconforming declaration
26373         * lib/argv-iter.h (enum argv_iter_err): Omit the useless
26374         enum arg_iter_err declaration, which doesn't conform to C99.
26375         Solaris 10 cc warns about this.
26376
26377 2010-10-13  Eric Blake  <eblake@redhat.com>
26378
26379         termios: fix compilation on mingw
26380         * m4/termios_h.m4 (gl_TERMIOS_H_DEFAULTS): Set default.
26381         (gl_TERMIOS_H): Adjust it on mingw.
26382         * modules/termios (Makefile.am): Substitute new key.
26383         * lib/termios.in.h (includes): Make include_next conditional.
26384         * doc/posix-headers/termios.texi (termios.h): Update
26385         documentation.
26386         Reported by Daniel P. Berrange.
26387
26388 2010-10-13  Jim Meyering  <meyering@redhat.com>
26389
26390         git-version-gen: don't require that .git/ be in the current dir
26391         * build-aux/git-version-gen: Adjust this script so that it works
26392         when run from any working directory beneath the top-level .git/-
26393         containing directory.  Inspired by a patch from Giuseppe Scrivano,
26394         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/21843/focus=21847
26395
26396         test-select: avoid warn_unused_result warnings
26397         * tests/test-select.c: Include "macros.h".
26398         ASSERT that each call to read, write, and pipe succeeds.
26399         While not technically required, also check each "close".
26400         * modules/select-tests (Files): Add tests/macros.h.
26401
26402         test-symlinkat: remove declaration of unused local
26403         * tests/test-symlinkat.c (main): Remove unused local, "buf".
26404
26405         test-inttostr: avoid shadowing warnings
26406         * tests/test-inttostr.c (main): Rename local, "buf" to "b",
26407         and use malloc rather than the stack for the same reason as
26408         mentioned in the comment justifying the other allocation.
26409
26410 2010-10-11  Bruno Haible  <bruno@clisp.org>
26411
26412         stdlib: Allow multiple gnulib generated replacements to coexist.
26413         * lib/stdlib.in.h (struct random_data): Avoid identical redefinition.
26414         Reported by Sam Steingold <sds@gnu.org>.
26415
26416 2010-10-11  Jim Meyering  <meyering@redhat.com>
26417
26418         fix a documentation typo
26419         * doc/posix-functions/futimens.texi (futimens): Fix typo: s/itme/item/
26420
26421 2010-10-11  Eric Blake  <eblake@redhat.com>
26422
26423         futimens: work around Solaris 11 bug
26424         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect the bug.
26425         * tests/test-futimens.h (test_futimens): Enhance, rather than
26426         weaken test.
26427         * doc/posix-functions/futimens.texi (futimens): Document the bug.
26428
26429 2010-10-11  Paul Eggert  <eggert@cs.ucla.edu>
26430
26431         Indentation.
26432         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Indent
26433         higher-level operators more to the left.
26434
26435 2010-10-11  Jim Meyering  <meyering@redhat.com>
26436
26437         test-futimens: avoid unwarranted test failure on Solaris 5.11
26438         * tests/test-futimens.h (test_futimens): When provoking EBADF, use an
26439         invalid file descriptor, so we don't provoke EFAULT from Solaris 5.11,
26440         because it tries to dereference the NULL name argument.
26441
26442 2010-10-11  Bruno Haible  <bruno@clisp.org>
26443
26444         Indentation.
26445         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Improve
26446         indentation.
26447
26448 2010-10-11  Jim Meyering  <meyering@redhat.com>
26449
26450         spawn.in.h: make indentation consistent with parentheses
26451         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap):
26452         Make indentation consistent with parentheses.
26453
26454 2010-10-11  Gary V. Vaughan  <gary@gnu.org>
26455
26456         Fix mismatched parens in previous commit
26457         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Fix mismatched
26458         parens.
26459
26460 2010-10-10  Paul Eggert  <eggert@cs.ucla.edu>
26461
26462         rewrite int foo[2*X-1] to verify(X) or to int foo[X?1:-1]
26463
26464         * lib/float+.h (verify_sizeof_flt, verify_sizeof_dbl):
26465         (verify_sizeof_ldbl): Rewrite 2*X-1 to X?1:-1.
26466         * lib/malloca.c: Include "verify.h".
26467         (verify1): Remove, replacing with a verify call.
26468         * lib/relocwrapper.c (verify1): Likewise.
26469         * lib/vasnprintf.c (mp_limb_verify, mp_twolimb_verify, TCHAR_T_verify):
26470         Likewise.
26471         * modules/malloca (Depends-on): Add 'verify'.
26472         * modules/relocatable-prog-wrapper (Depends-on): Add 'verify'.
26473         * modules/vasnprintf (Depends-on): Add 'verify'.
26474         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
26475         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
26476         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
26477         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
26478         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
26479         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
26480         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
26481
26482         prefer (X ? 1 : -1) when converting from boolean (1,0) to int (1,-1)
26483
26484         Formerly the style was sometimes 2*X - 1, because the C standard
26485         was wrongly thought to disallow ?: in integral constant expressions.
26486         * lib/inet_ntop.c (verify_int_size): Rewrite 2*X-7 (!) to 4<=X?1:-1.
26487         * lib/signal.in.h (verify_NSIG_constraint): Rewrite 2*X-1 to X?1:-1.
26488         * lib/spawn.in.h (verify_POSIX_SPAWN_USEVFORK_no_overlap): Likewise.
26489         * lib/stdint.in.h (_verify_intmax_size): Likewise.
26490         * lib/time.in.h (struct __time_t_must_be_integral): Rewrite
26491         2 * ((time_t) 1 / 2 == 0) - 1 to (time_t) 1; this suffices to
26492         verify that time_t cannot be floating.
26493
26494 2010-10-08  Eric Blake  <eblake@redhat.com>
26495
26496         time: enforce recent POSIX ruling that time_t is integral
26497         * lib/time.in.h (__time_t_must_be_integral): Detect any
26498         problematic systems, allowing the rest of gnulib to assume POSIX.
26499
26500 2010-10-08  Jim Meyering  <meyering@redhat.com>
26501
26502         fdopendir: fix a bug on systems lacking openat and /proc support
26503         OpenBSD 4.7 is one such system.  The most noticeable effect was
26504         failure of any application making nontrivial use of fts: rm, du,
26505         chown, chmod etc.  E.g., "mkdir -p a/b; ./rm -rf a" would fail with
26506           ./rm: traversal failed: `a': Bad file descriptor
26507         Debugging that, you see that even though FD 6 was closed just
26508         prior to the opendir call in fd_clone_opendir, its resulting
26509         dir->dd_fd was 8, rather than the expected value of 6:
26510
26511         Breakpoint 3, fdopendir_with_dup (fd=6, older_dupfd=-1) at fdopendir.c:93
26512         93                close (fd);
26513         (gdb) n
26514         94                dir = fd_clone_opendir (dupfd);
26515         (gdb) n
26516         95                saved_errno = errno;
26517         (gdb) p dir->dd_fd
26518         $11 = 8
26519
26520         Notice how it closes FD 6, then gets a DIR* pointer using FD 8.
26521         The problem is that on OpenBSD, fd_clone_opendir has to resort
26522         to using the old-style save/restore CWD mechanism, due to its
26523         lack of openat/proc support, and *that* would steal the FD (6)
26524         that opendir was supposed to use.
26525
26526         The fix is to squirrel away the desired FD so that save_cwd uses a
26527         different one, and then free the dest FD right before calling opendir.
26528         That guarantees opendir will use the required file descriptor.
26529
26530         * lib/fdopendir.c (fd_clone_opendir): Handle the above.
26531
26532 2010-10-08  Bruno Haible  <bruno@clisp.org>
26533
26534         sys_select: Avoid warning due to undeclared memset() on OpenBSD 4.5.
26535         * lib/sys_select.in.h: Include <string.h> also on OpenBSD.
26536
26537 2010-10-08  Bruno Haible  <bruno@clisp.org>
26538
26539         nanosleep: Make replacement POSIX compliant.
26540         * lib/nanosleep.c (nanosleep): Return -1/EINVAL if the delay's tv_nsec
26541         is out of range.
26542         Reported by Jim Meyering.
26543
26544 2010-10-08  Paul Eggert  <eggert@cs.ucla.edu>
26545
26546         bootstrap: add hook for altering gnulib.mk, for Bison
26547         * build-aux/bootstrap (gnulib_mk_hook): New function, so that
26548         the Bison bootstrapping process can rewrite file names and variables
26549         in this file before later parts of 'bootstrap' use the file.
26550         Bison wants to include lib/gnulib.mk from the top-level makefile,
26551         so it needs the file names in this file to be relative to the top
26552         level, not relative to lib; plus it needs variable names to be
26553         rewritten.
26554         (slurp): Use the new function.
26555
26556         bootstrap: reformat for readability
26557         * build-aux/bootstrap: Rewrite to avoid lines longer than 80 columns.
26558
26559 2010-10-08  Eric Blake  <eblake@redhat.com>
26560
26561         docs: update cygwin progress
26562         * doc/posix-functions/cacos.texi (cacos): Added after cygwin
26563         1.7.7.
26564         * doc/posix-functions/cacosf.texi (cacosf): Likewise.
26565         * doc/posix-functions/cacosh.texi (cacosh): Likewise.
26566         * doc/posix-functions/cacoshf.texi (cacoshf): Likewise.
26567         * doc/posix-functions/carg.texi (carg): Likewise.
26568         * doc/posix-functions/cargf.texi (cargf): Likewise.
26569         * doc/posix-functions/casin.texi (casin): Likewise.
26570         * doc/posix-functions/casinf.texi (casinf): Likewise.
26571         * doc/posix-functions/casinh.texi (casinh): Likewise.
26572         * doc/posix-functions/casinhf.texi (casinhf): Likewise.
26573         * doc/posix-functions/catan.texi (catan): Likewise.
26574         * doc/posix-functions/catanf.texi (catanf): Likewise.
26575         * doc/posix-functions/catanh.texi (catanh): Likewise.
26576         * doc/posix-functions/catanhf.texi (catanhf): Likewise.
26577         * doc/posix-functions/ccos.texi (ccos): Likewise.
26578         * doc/posix-functions/ccosf.texi (ccosf): Likewise.
26579         * doc/posix-functions/ccosh.texi (ccosh): Likewise.
26580         * doc/posix-functions/ccoshf.texi (ccoshf): Likewise.
26581         * doc/posix-functions/cexp.texi (cexp): Likewise.
26582         * doc/posix-functions/cexpf.texi (cexpf): Likewise.
26583         * doc/posix-functions/cimag.texi (cimag): Likewise.
26584         * doc/posix-functions/cimagf.texi (cimagf): Likewise.
26585         * doc/posix-functions/clog.texi (clog): Likewise.
26586         * doc/posix-functions/clogf.texi (clogf): Likewise.
26587         * doc/posix-functions/conj.texi (conj): Likewise.
26588         * doc/posix-functions/conjf.texi (conjf): Likewise.
26589         * doc/posix-functions/cpow.texi (cpow): Likewise.
26590         * doc/posix-functions/cpowf.texi (cpowf): Likewise.
26591         * doc/posix-functions/cproj.texi (cproj): Likewise.
26592         * doc/posix-functions/cprojf.texi (cprojf): Likewise.
26593         * doc/posix-functions/creal.texi (creal): Likewise.
26594         * doc/posix-functions/crealf.texi (crealf): Likewise.
26595         * doc/posix-functions/csin.texi (csin): Likewise.
26596         * doc/posix-functions/csinf.texi (csinf): Likewise.
26597         * doc/posix-functions/csinh.texi (csinh): Likewise.
26598         * doc/posix-functions/csinhf.texi (csinhf): Likewise.
26599         * doc/posix-functions/csqrt.texi (csqrt): Likewise.
26600         * doc/posix-functions/csqrtf.texi (csqrtf): Likewise.
26601         * doc/posix-functions/ctan.texi (ctan): Likewise.
26602         * doc/posix-functions/ctanf.texi (ctanf): Likewise.
26603         * doc/posix-functions/ctanh.texi (ctanh): Likewise.
26604         * doc/posix-functions/ctanhf.texi (ctanhf): Likewise.
26605         * doc/posix-headers/complex.texi (complex.h): Likewise.
26606
26607 2010-10-07  Jim Meyering  <meyering@redhat.com>
26608
26609         parse-datetime: avoid compilation failure on OpenBSD 4.7
26610         * lib/parse-datetime.y (_STDLIB_H) [_STDLIB_H_]: Define.
26611         This works around a compilation failure on OpenBSD 4.7:
26612         http://thread.gmane.org/gmane.comp.parsers.bison.bugs/3418
26613
26614 2010-10-07  Eric Blake  <eblake@redhat.com>
26615
26616         docs: update cygwin progress
26617         * doc/glibc-functions/mkostemp.texi (mkostemp): Added in cygwin
26618         1.7.6.
26619         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
26620         * doc/posix-headers/fenv.texi (fenv.h): Added after cygwin 1.7.7.
26621         * doc/posix-functions/feclearexcept.texi (feclearexcept): Likewise.
26622         * doc/posix-functions/fegetenv.texi (fegetenv): Likewise.
26623         * doc/posix-functions/fegetexceptflag.texi (fegetexceptflag):
26624         Likewise.
26625         * doc/posix-functions/fegetround.texi (fegetround): Likewise.
26626         * doc/posix-functions/feholdexcept.texi (feholdexcept): Likewise.
26627         * doc/posix-functions/feraiseexcept.texi (feraiseexcept):
26628         Likewise.
26629         * doc/posix-functions/fesetenv.texi (fesetenv): Likewise.
26630         * doc/posix-functions/fesetexceptflag.texi (fesetexceptflag):
26631         Likewise.
26632         * doc/posix-functions/fesetround.texi (fesetround): Likewise.
26633         * doc/posix-functions/fetestexcept.texi (fetestexcept): Likewise.
26634         * doc/posix-functions/feupdateenv.texi (feupdateenv): Likewise.
26635         * doc/glibc-functions/feenableexcept.texi (feenableexcept):
26636         Likewise.
26637         * doc/glibc-functions/fedisableexcept.texi (fedisableexcept):
26638         Likewise.
26639         * doc/glibc-functions/fegetexcept.texi (fegetexcept): Likewise.
26640
26641         docs: update parse-datetime history
26642         * doc/parse-datetime.texi (Authors of parse_datetime): Better
26643         documentation of this function's history and alternatives.
26644
26645         cygwin: use more robust version check
26646         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE, gl_FUNC_MEMMEM): Don't
26647         exclude an eventual cygwin 1.9.1.
26648         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26649         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26650         (gl_FUNC_STRCASESTR): Likewise.
26651         Reported by Bruno Haible.
26652
26653 2010-10-06  Bruno Haible  <bruno@clisp.org>
26654
26655         string, sys_select: Avoid #including large headers unless necessary.
26656         * lib/string.in.h: Don't include <unistd.h> except on NetBSD.
26657         * lib/sys_select.in.h: Don't include <string.h> except on Solaris,
26658         OSF/1, BeOS, Haiku.
26659         Reported by Jim Meyering.
26660
26661 2010-10-05  Eric Blake  <eblake@redhat.com>
26662
26663         memmem, strstr, strcasestr: fix bug with long periodic needle
26664         * lib/str-two-way.h (two_way_long_needle): Avoid bug with long
26665         periodic needle having false positive.
26666         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): Detect bug in glibc 2.12
26667         and cygwin 1.7.7.
26668         (gl_FUNC_MEMMEM): Be more pessimistic when cross-compiling.
26669         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE)
26670         (gl_FUNC_STRCASESTR): Likewise.
26671         * m4/strstr.m4 (gl_FUNC_STRSTR_SIMPLE, gl_FUNC_STRSTR): Likewise.
26672         * tests/test-memmem.c (main): Expose the bug.
26673         * tests/test-strcasestr.c (main): Likewise.
26674         * tests/test-strstr.c (main): Likewise.
26675         * tests/test-c-strcasestr.c (main): Likewise.
26676         * doc/glibc-functions/memmem.texi (memmem): Document the bug.
26677         * doc/posix-functions/strstr.texi (strstr): Likewise.
26678         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
26679         Reported via http://sourceware.org/bugzilla/show_bug.cgi?id=12092
26680
26681 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26682
26683         parse-datetime: do some more renaming
26684         * doc/parse-datetime.texi (Authors of parse_datetime): Call it
26685         parse_datetime, not get_date.  Mention the renaming.
26686         * lib/parse-datetime.y:  Call it parse_datetime, not getdate,
26687         in comments.
26688         * m4/bison.m4: Likewise.
26689
26690 2010-10-05  Eric Blake  <eblake@redhat.com>
26691
26692         parse-datetime: better name than get_date
26693         * NEWS: Reword the deprecation notice.
26694         * modules/get_date: Rename to modules/parse-datetime.
26695         * modules/get_date-tests: Rename to modules/parse-datetime-tests.
26696         * m4/get_date.m4: Rename to m4/parse-datetime.m4.
26697         * lib/get_date.y: Rename to lib/parse-datetime.y.
26698         * tests/test-get_date.c: Rename to tests/test-parse-datetime.c.
26699         * doc/get_date.texi: Rename to doc/parse-datetime.texi.
26700         * doc/getdate.texi: Provide fallback wrapper.
26701         * lib/getdate.h: Move guts, and wrap...
26702         * lib/parse-datetime.h: ...new file.
26703         * lib/parse-datetime.y (get_date): Rename...
26704         (parse_datetime): ...to this.
26705         * m4/parse-datetime.m4 (gl_GET_DATE): Rename...
26706         (gl_PARSE_DATETIME): ...to this.
26707         * doc/posix-functions/getdate.texi (get_date): Provide fallback
26708         documentation.
26709         * modules/getdate (Files): Provide fallback docs and header.
26710         (Notice, Depends-on): Update references.
26711         * tests/test-parse-datetime.c: Likewise.
26712         * DEPENDENCIES: Likewise.
26713         * MODULES.html.sh (Date and time <time.h>): Likewise.
26714         * doc/parse-datetime.texi (Date input formats)
26715         (Authors of parse_datetime): Likewise.
26716         * modules/parse-datetime (Files, configure.ac, Makefile.am)
26717         (Include): Likewise.
26718         * modules/parse-datetime-tests (Files, Makefile.am): Likewise.
26719         * gnulib-tool: Likewise.
26720         * m4/bison.m4 (gl_BISON): Likewise.
26721         Suggested by Bruno Haible.
26722
26723 2010-10-05  Paul Eggert  <eggert@cs.ucla.edu>
26724
26725         more ports to Solaris tr, which needs [] around ranges
26726         * gnulib-tool: Solaris tr needs [] around ranges.
26727         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX): Likewise.
26728         * tests/test-pipe-filter-gi1.c (main): Likewise.
26729         * tests/test-pipe-filter-ii1.c (main): Likewise.
26730
26731 2010-10-05  Eric Blake  <eblake@redhat.com>
26732
26733         bootstrap: fix Solaris regression
26734         * build-aux/bootstrap (check_versions): Solaris tr still needs []
26735         around ranges.
26736         Reported by Pádraig Brady.
26737
26738         bootstrap: work with pkg-config
26739         * build-aux/bootstrap (check_versions): Also transliterate - in
26740         prerequisite name.
26741         (print_versions): Be robust to any \ in $buildreq.  Avoid listing
26742         prerequisites that were already found, to avoid confusion.
26743         Reported by Justin Clift.
26744
26745         faccessat: remove unused wrappers
26746         * lib/openat.h (accessat, euidaccesat): Delete, since the mere
26747         presence of these wrappers dragged in -lgen on Solaris.
26748         Reported by Clemens Brogi; fix suggested by Paul Eggert.
26749
26750 2010-10-05  Jim Meyering  <meyering@redhat.com>
26751
26752         tests: require @PRAGMA_COLUMNS@ with each @PRAGMA_SYSTEM_HEADER@
26753         * Makefile (sc_pragma_columns): New syntax-check rule.
26754
26755 2010-10-04  Bruno Haible  <bruno@clisp.org>
26756
26757         gnulib-tool: Synthesize appropriate _LDFLAGS for a libtool library.
26758         * gnulib-tool (func_emit_lib_Makefile_am): When preparing for a libtool
26759         library, put '-no-undefined' and the link dependencies into _LDFLAGS.
26760         Reported by Bruce Korb and Eric Blake.
26761
26762 2010-10-04  Bruno Haible  <bruno@clisp.org>
26763
26764         threadlib: Make option --with-libpth-prefix work.
26765         * m4/threadlib.m4 (gl_THREADLIB_BODY): When testing whether pth works,
26766         use $LIBPTH, not just -lpth.
26767
26768 2010-10-04  Bruno Haible  <bruno@clisp.org>
26769
26770         Avoid line length limitation from HP NonStop system header files.
26771         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define also PRAGMA_COLUMNS.
26772         * lib/arpa_inet.in.h: Use PRAGMA_COLUMNS.
26773         * lib/ctype.in.h: Likewise.
26774         * lib/dirent.in.h: Likewise.
26775         * lib/errno.in.h: Likewise.
26776         * lib/fcntl.in.h: Likewise.
26777         * lib/float.in.h: Likewise.
26778         * lib/getopt.in.h: Likewise.
26779         * lib/iconv.in.h: Likewise.
26780         * lib/inttypes.in.h: Likewise.
26781         * lib/langinfo.in.h: Likewise.
26782         * lib/locale.in.h: Likewise.
26783         * lib/math.in.h: Likewise.
26784         * lib/netdb.in.h: Likewise.
26785         * lib/netinet_in.in.h: Likewise.
26786         * lib/poll.in.h: Likewise.
26787         * lib/pthread.in.h: Likewise.
26788         * lib/pty.in.h: Likewise.
26789         * lib/sched.in.h: Likewise.
26790         * lib/se-selinux.in.h: Likewise.
26791         * lib/search.in.h: Likewise.
26792         * lib/signal.in.h: Likewise.
26793         * lib/spawn.in.h: Likewise.
26794         * lib/stdarg.in.h: Likewise.
26795         * lib/stddef.in.h: Likewise.
26796         * lib/stdint.in.h: Likewise.
26797         * lib/stdio.in.h: Likewise.
26798         * lib/stdlib.in.h: Likewise.
26799         * lib/string.in.h: Likewise.
26800         * lib/strings.in.h: Likewise.
26801         * lib/sys_file.in.h: Likewise.
26802         * lib/sys_ioctl.in.h: Likewise.
26803         * lib/sys_select.in.h: Likewise.
26804         * lib/sys_socket.in.h: Likewise.
26805         * lib/sys_stat.in.h: Likewise.
26806         * lib/sys_time.in.h: Likewise.
26807         * lib/sys_times.in.h: Likewise.
26808         * lib/sys_utsname.in.h: Likewise.
26809         * lib/sys_wait.in.h: Likewise.
26810         * lib/sysexits.in.h: Likewise.
26811         * lib/termios.in.h: Likewise.
26812         * lib/time.in.h: Likewise.
26813         * lib/unistd.in.h: Likewise.
26814         * lib/wchar.in.h: Likewise.
26815         * lib/wctype.in.h: Likewise.
26816         * modules/arpa_inet (Makefile.am): Substitute PRAGMA_COLUMNS.
26817         * modules/ctype (Makefile.am): Likewise.
26818         * modules/dirent (Makefile.am): Likewise.
26819         * modules/errno (Makefile.am): Likewise.
26820         * modules/fcntl-h (Makefile.am): Likewise.
26821         * modules/float (Makefile.am): Likewise.
26822         * modules/getopt-posix (Makefile.am): Likewise.
26823         * modules/iconv-h (Makefile.am): Likewise.
26824         * modules/inttypes (Makefile.am): Likewise.
26825         * modules/langinfo (Makefile.am): Likewise.
26826         * modules/locale (Makefile.am): Likewise.
26827         * modules/math (Makefile.am): Likewise.
26828         * modules/netdb (Makefile.am): Likewise.
26829         * modules/netinet_in (Makefile.am): Likewise.
26830         * modules/poll-h (Makefile.am): Likewise.
26831         * modules/pthread (Makefile.am): Likewise.
26832         * modules/pty (Makefile.am): Likewise.
26833         * modules/sched (Makefile.am): Likewise.
26834         * modules/search (Makefile.am): Likewise.
26835         * modules/selinux-h (Makefile.am): Likewise.
26836         * modules/signal (Makefile.am): Likewise.
26837         * modules/spawn (Makefile.am): Likewise.
26838         * modules/stdarg (Makefile.am): Likewise.
26839         * modules/stddef (Makefile.am): Likewise.
26840         * modules/stdint (Makefile.am): Likewise.
26841         * modules/stdio (Makefile.am): Likewise.
26842         * modules/stdlib (Makefile.am): Likewise.
26843         * modules/string (Makefile.am): Likewise.
26844         * modules/strings (Makefile.am): Likewise.
26845         * modules/sys_file (Makefile.am): Likewise.
26846         * modules/sys_ioctl (Makefile.am): Likewise.
26847         * modules/sys_select (Makefile.am): Likewise.
26848         * modules/sys_socket (Makefile.am): Likewise.
26849         * modules/sys_stat (Makefile.am): Likewise.
26850         * modules/sys_time (Makefile.am): Likewise.
26851         * modules/sys_times (Makefile.am): Likewise.
26852         * modules/sys_utsname (Makefile.am): Likewise.
26853         * modules/sys_wait (Makefile.am): Likewise.
26854         * modules/sysexits (Makefile.am): Likewise.
26855         * modules/termios (Makefile.am): Likewise.
26856         * modules/time (Makefile.am): Likewise.
26857         * modules/unistd (Makefile.am): Likewise.
26858         * modules/wchar (Makefile.am): Likewise.
26859         * modules/wctype (Makefile.am): Likewise.
26860
26861 2010-10-04  Bruno Haible  <bruno@clisp.org>
26862
26863         read-file tests: Avoid a test failure on NonStop Kernel.
26864         * tests/test-read-file.c (main): Don't assume that /etc/resolv.conf is
26865         a regular file.
26866         Reported by Joachim Schmitz <schmitz@hp.com>.
26867
26868 2010-10-03  Bruno Haible  <bruno@clisp.org>
26869
26870         gnulib-tool: Fixes for --create-testdir with --libtool.
26871         * gnulib-tool (func_get_automake_snippet): Don't augment
26872         EXTRA_lib_SOURCES for the pt_chown module, since pt_chown.o goes into
26873         an executable.
26874         (func_create_testdir): Handle module 'alloca' like func_import.
26875         Reported by Bruce Korb <bruce.korb@gmail.com>.
26876
26877 2010-10-03  Paul Eggert  <eggert@cs.ucla.edu>
26878
26879         Avoid some lines longer than 80 characters.
26880         * lib/stdint.in.h: Break long comment lines.
26881         * lib/math.in.h: Likewise.
26882         (_GL_NUM_UINT_WORDS): New macro, for readability.
26883         (gl_signbitf, gl_signbitd, gl_signbitl): Use it.
26884         * lib/stdio.in.h: Break lines in _GL_WARN_ON_USE calls.
26885         * lib/stdlib.in.h: Likewise.
26886         * lib/spawn.in.h: Likewise.
26887         * lib/sys_socket.in.h: Update an URL.
26888         * lib/sys_stat.in.h: Break long line.
26889
26890 2010-10-03  Reuben Thomas  <rrt@sc3d.org>
26891
26892         Improve pmccabe2html.
26893         * build-aux/pmccabe2html: Add CYCLO_SRCS variable, and make
26894         cyclo-$(PACKAGE).html depend on it, so the HTML file is remade
26895         when the sources change. Remove the line in the HTML about "Used
26896         ranges" (which implied that there might be other unused ranges),
26897         rename "Resume" to "Summary" (easier to understand for more users).
26898         * build-aux/pmccabe.css: Removing the dashed dividers, some unused
26899         styles, and some unnecessary blank lines.
26900
26901 2010-10-03  Bruno Haible  <bruno@clisp.org>
26902             Joachim Schmitz  <schmitz@hp.com>  (tiny change)
26903
26904         acl: Add support for ACLs on NonStop Kernel.
26905         * m4/acl.m4 (gl_FUNC_ACL): For Solaris, test for facl(), not for acl().
26906         Check whether the function aclsort() exists.
26907         * lib/acl-internal.h: For Solaris, test HAVE_FACL, not HAVE_ACL.
26908         (acl_nontrivial) [HAVE_ACLSORT]: New declaration.
26909         * lib/file-has-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26910         (acl_nontrivial [HAVE_ACLSORT]: New function.
26911         (file_has_acl): Implement for NonStop Kernel.
26912         * lib/set-mode-acl.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26913         (qset_acl): Implement for NonStop Kernel.
26914         * lib/copy-acl.c (qcopy_acl): Implement for NonStop Kernel.
26915         * tests/test-sameacls.c: For Solaris, test HAVE_FACL, not HAVE_ACL.
26916         (main): Implement for NonStop Kernel.
26917         * tests/test-file-has-acl.sh (acl_flavor): Set to 'nsk' on NonStop
26918         Kernel. Handle this flavor.
26919         * tests/test-set-mode-acl.sh: Likewise.
26920         * tests/test-copy-acl.sh: Likewise.
26921         * tests/test-copy-file.sh: Likewise.
26922
26923 2010-10-03  Bruno Haible  <bruno@clisp.org>
26924
26925         Info about ACLs on NonStop Kernel.
26926         * doc/acl-resources.txt: Add info about NonStop Kernel.
26927         References by Joachim Schmitz <schmitz@hp.com>.
26928
26929 2010-10-02  Bruno Haible  <bruno@clisp.org>
26930
26931         Define missing EDQUOT on NonStop Kernel.
26932         * lib/errno.in.h (EDQUOT): Assign a value if missing.
26933         * lib/strerror.c (rpl_strerror): Handle missing EDQUOT.
26934         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether EDQUOT is
26935         missing.
26936         * doc/posix-headers/errno.texi: Mention the NSK bug.
26937         * doc/posix-functions/strerror.texi: Mention the workaround on NSK.
26938         Reported by Joachim Schmitz <schmitz@hp.com>.
26939
26940 2010-10-02  Bruno Haible  <bruno@clisp.org>
26941
26942         Update doc for POSIX:2008.
26943         * doc/posix-headers/*.texi [except ucontext.texi, sys_timeb.texi]:
26944         Update URL of POSIX specification.
26945
26946 2010-10-02  Bruno Haible  <bruno@clisp.org>
26947
26948         gnulib-tool: In testdirs, use the newest available config.{guess.sub}.
26949         * gnulib-tool (func_create_testdir): Use config.guess and config.sub
26950         from gnulib, not from Automake.
26951
26952 2010-10-02  Bruno Haible  <bruno@clisp.org>
26953
26954         New module 'system-posix'.
26955         * modules/system-posix: New file.
26956         * lib/stdlib.in.h: Include <sys/wait.h> only when the 'system-posix'
26957         module is present.
26958         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
26959         GNULIB_SYSTEM_POSIX.
26960         * modules/stdlib (Depends-on): Remove sys_wait.
26961         (Makefile.am): Substitute GNULIB_SYSTEM_POSIX.
26962         * doc/posix-functions/system.texi: Mention the new module.
26963         * doc/posix-headers/stdlib.texi: Likewise.
26964         * tests/test-stdlib.c: If GNULIB_TEST_SYSTEM_POSIX is not defined,
26965         define test_sys_wait_macros to a no-op.
26966         Reported by Sam Steingold <sds@gnu.org>.
26967
26968 2010-09-30  Bruno Haible  <bruno@clisp.org>
26969
26970         More renaming from 'getdate' to 'get_date'.
26971         * doc/get_date.texi: Renamed from doc/getdate.texi.
26972         * modules/get_date (Files): Update.
26973         * MODULES.html.sh (Date and time <time.h>): Update.
26974         * DEPENDENCIES: Update.
26975         * gnulib-tool: Update comment.
26976         * m4/bison.m4 (gl_BISON): Likewise.
26977         * m4/get_date.m4 (gl_GET_DATE): Likewise.
26978
26979 2010-09-30  Justin Clift  <jclift@redhat.com>  (tiny change)
26980
26981         bootstrap: support ACLOCAL_FLAGS during aclocal
26982         * build-aux/bootstrap (aclocal): Honor ACLOCAL_FLAGS, so the user
26983         can add additional -I dir for third-party .m4 files.
26984
26985 2010-09-30  Eric Blake  <eblake@redhat.com>
26986
26987         bootstrap: use glibtoolize on MacOS
26988         * build-aux/bootstrap (check_versions): Convert libtool into
26989         libtoolize.
26990         (tool search): Move libtool check earlier, and look for
26991         glibtoolize for MacOS.
26992         (gnulib_tool_options): Auto-add --libtool when appropriate.
26993         Reported by Justin Clift.
26994
26995         poll: fix typo that broke test on MacOS
26996         * m4/poll.m4 (gl_FUNC_POLL): Add missing test.
26997         Reported by Justin Clift.
26998
26999         getdate: rename to get_date
27000         Note: getdate.h is not renamed, to minimize client impact.
27001         * modules/getdate: Mark obsolete.  Move old contents...
27002         * modules/get_date: ...to new module name.
27003         * modules/getdate-tests: Move...
27004         * modules/get_date-tests: ...here.
27005         * m4/getdate.m4: Move...
27006         * m4/get_date.m4: ...here, and rename gl_GETDATE to gl_GET_DATE.
27007         * lib/getdate.y: Move...
27008         * lib/get_date.y: ...here.
27009         * tests/test-getdate.c: Move...
27010         * tests/test-get_date.c: ...here.
27011         * doc/posix-functions/getdate.texi (getdate): Update name.
27012         * NEWS: Mention the change.
27013
27014 2010-09-29  Bruno Haible  <bruno@clisp.org>
27015
27016         Separate the module 'waitpid' from the module 'sys_wait'.
27017         * lib/sys_wait.in.h (waitpid): Declare only if the 'waitpid' module is
27018         present.
27019         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Invoke
27020         gl_MODULE_INDICATOR_FOR_TESTS.
27021         (gl_SYS_WAIT_H_DEFAULTS): Initialize GNULIB_WAITPID.
27022         * modules/sys_wait (Depends-on): Remove waitpid.
27023         (Makefile.am): Substitute GNULIB_WAITPID.
27024         * modules/waitpid (configure.ac): Invoke gl_SYS_WAIT_MODULE_INDICATOR.
27025         * tests/test-sys_wait-c++.cc (GNULIB_NAMESPACE::waitpid): Check the
27026         signature only if the 'waitpid' module is present.
27027         * doc/posix-functions/waitpid.texi: Mention the 'waitpid' module.
27028         * NEWS: Mention the change.
27029         * modules/grantpt (Depends-on): Add waitpid.
27030         * modules/wait-process (Depends-on): Likewise.
27031
27032 2010-09-29  Bruno Haible  <bruno@clisp.org>
27033
27034         More tests for module 'sys_wait'.
27035         * modules/sys_wait-c++-tests: New file.
27036         * tests/test-sys_wait-c++.cc: New file.
27037         * modules/sys_wait-tests (Depends-on): Add sys_wait-c++-tests.
27038         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27039
27040 2010-09-29  Bruno Haible  <bruno@clisp.org>
27041
27042         New module 'waitpid'.
27043         * lib/waitpid.c: New file, extracted from lib/sys_wait.in.h.
27044         * lib/sys_wait.in.h: Include <sys/types.h>, c++defs.h, warn-on-use.h.
27045         Don't include <process.h>.
27046         (waitpid): Declare only, using modern idiom.
27047         * m4/waitpid.m4: New file.
27048         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Check whether waitpid is declared.
27049         * modules/waitpid: New file.
27050         * modules/sys_wait (Depends-on): Add c++defs, warn-on-use, waitpid.
27051         (Makefile.am): Update.
27052         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>.
27053
27054 2010-09-28  Bruno Haible  <bruno@clisp.org>
27055
27056         poll: Assume ANSI C.
27057         * lib/poll.c (poll): Use an ANSI C declaration.
27058
27059 2010-09-28  Bruno Haible  <bruno@clisp.org>
27060
27061         poll-h: Create poll.h on all platforms.
27062         * lib/poll.in.h: Use double-inclusion guard. Don't define POLL*,
27063         struct pollfd, nfds_t, INFTIM when the system has <poll.h>.
27064         * m4/poll_h.m4 (gl_POLL_H): Set HAVE_POLL_H. Invoke
27065         gl_CHECK_NEXT_HEADERS. Don't set POLL_H.
27066         (gl_REPLACE_POLL_H): Don't set POLL_H.
27067         (gl_POLL_H_DEFAULTS): Don't initialize POLL_H.
27068         * modules/poll-h (Depends-on): Add include_next.
27069         (Makefile.am): Create poll.h unconditionally. Substitute also
27070         HAVE_POLL_H, INCLUDE_NEXT, PRAGMA_SYSTEM_HEADER, NEXT_POLL_H.
27071
27072 2010-09-28  Bruno Haible  <bruno@clisp.org>
27073
27074         Tests for module 'poll-h'.
27075         * modules/poll-h-c++-tests: New file.
27076         * tests/test-poll-h-c++.cc: New file.
27077
27078         Tests for module 'poll-h'.
27079         * modules/poll-h-tests: New file.
27080         * tests/test-poll-h.c: New file.
27081
27082 2010-09-28  Bruno Haible  <bruno@clisp.org>
27083
27084         poll-h: Ensure POLL{RD,WR}{NORM,BAND} are defined on glibc platforms.
27085         * modules/poll-h (Depends-on): Add 'extensions'.
27086
27087 2010-09-28  Bruno Haible  <bruno@clisp.org>
27088
27089         New module 'poll-h'.
27090         * lib/poll.in.h: Include c++defs.h and warn-on-use.h.
27091         (poll): Use modern idiom.
27092         * modules/poll-h: New file.
27093         * modules/poll (Files): Remove lib/poll.in.h.
27094         (Depends-on): Add poll-h.
27095         (configure.ac): Invoke gl_POLL_MODULE_INDICATOR.
27096         (Makefile.am): Move code for generation of poll.h to modules/poll-h.
27097         * m4/poll_h.m4: New file.
27098         * m4/poll.m4 (gl_FUNC_POLL): Require gl_POLL_H. Don't check for poll.h
27099         here. Don't set POLL_H here. Instead, set HAVE_POLL and REPLACE_POLL
27100         and invoke gl_REPLACE_POLL_H.
27101         * lib/poll.c: Use common idiom.
27102         * tests/test-poll.c: Likewise.
27103         * doc/posix-headers/poll.texi: Mention the poll-h module.
27104         Suggested by Eric Blake.
27105
27106 2010-09-26  Bruno Haible  <bruno@clisp.org>
27107
27108         sys_wait: Implement WSTOPSIG.
27109         * lib/sys_wait.in.h (WSTOPSIG): New macro.
27110         Reported by Simon Josefsson.
27111
27112 2010-09-26  Simon Josefsson  <simon@josefsson.org>
27113
27114         stdlib, sys_wait: Avoid compilation error on mingw.
27115         * lib/sys_wait.in.h: Include <signal.h>, for SIGTERM.
27116
27117 2010-09-26  Bruno Haible  <bruno@clisp.org>
27118
27119         stdlib tests: Avoid code duplication.
27120         * modules/stdlib-tests (Files): Add tests/test-sys_wait.h.
27121         * modules/sys_wait-tests (Files): Likewise.
27122         * tests/test-sys_wait.h: New file, extracted from tests/test-stdlib.c.
27123         * tests/test-stdlib.c: Include test-sys_wait.h.
27124         (main): Invoke test_sys_wait_macros.
27125         * tests/test-sys_wait.c: Include test-sys_wait.h.
27126         (main): Invoke test_sys_wait_macros.
27127
27128 2010-09-25  Simon Josefsson  <simon@josefsson.org>
27129
27130         * modules/getaddrinfo (Depends-on): Depend on the sockets module.
27131         * lib/getaddrinfo.c (use_win32_p): Call gl_sockets_startup to make
27132         sure Windows sockets are working before calling getaddrinfo.
27133         * tests/test-getaddrinfo.c (main): Don't call WSAStartup here.
27134         * doc/gnulib.texi (Windows sockets): Fix typo.
27135
27136 2010-09-25  Bruno Haible  <bruno@clisp.org>
27137
27138         Tests for module 'regex-quote'.
27139         * modules/regex-quote-tests: New file.
27140         * tests/test-regex-quote.c: New file.
27141
27142         New module 'regex-quote'.
27143         * lib/regex-quote.h: New file.
27144         * lib/regex-quote.c: New file.
27145         * modules/regex-quote: New file.
27146         Suggested by Reuben Thomas <rrt@sc3d.org>.
27147
27148 2010-09-24  Bruno Haible  <bruno@clisp.org>
27149
27150         unistr/u8-strchr: Fix a test failure on i586 glibc systems.
27151         * tests/unistr/test-strchr.h (test_strchr): Disable an invalid check.
27152
27153 2010-09-23  Bruno Haible  <bruno@clisp.org>
27154
27155         setenv: Relax license.
27156         * modules/setenv (License): Change to LGPLv2+, with consent by Eric
27157         Blake.
27158         Requested by Eric Blake.
27159
27160 2010-09-22  Bruno Haible  <bruno@clisp.org>
27161
27162         termios: Relax license.
27163         * modules/termios (License): Change to LGPLv2+.
27164         Requested by Eric Blake.
27165
27166 2010-09-22  Bruno Haible  <bruno@clisp.org>
27167
27168         threadlib: Allow the package to change the default to 'no'.
27169         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): When
27170         gl_THREADLIB_DEFAULT_NO is defined, change the default to 'no'.
27171         Reported by Paul Eggert.
27172
27173 2010-09-22  Pádraig Brady  <P@draigbrady.com>
27174             Bruno Haible  <bruno@clisp.org>
27175
27176         Fix endless loop in mbmemcasecoll.
27177         * lib/mbmemcasecoll.c (apply_towlower): When mbrtowc returns 0, copy 1
27178         byte.
27179         * tests/test-mbmemcasecmp.h (test_ascii): Test embedded NULs.
27180
27181 2010-09-22  Bruno Haible  <bruno@clisp.org>
27182
27183         Tests for module 'memcoll'.
27184         * modules/memcoll-tests: New file.
27185         * tests/test-memcoll.c: New file, based on tests/test-memcmp.c.
27186
27187         memcoll, xmemcoll: Clarify size vs. length.
27188         * modules/memcoll.c (memcoll0): Clarify specification.
27189         * modules/xmemcoll.c (xmemcoll0): Likewise. Reduce by 1 the lengths
27190         passed to collate_error.
27191
27192 2010-09-22  Bruno Haible  <bruno@clisp.org>
27193
27194         Tests for module 'memcasecmp'.
27195         * modules/memcasecmp-tests: New file.
27196         * tests/test-memcasecmp.c: New file, based on tests/test-memcmp.c.
27197
27198 2010-09-22  Paul Eggert  <eggert@cs.ucla.edu>
27199
27200         * lib/pthread.in.h: Add split double-inclusion guard, and include
27201         system <pthread.h> if there is one.  Use @@-style as in other
27202         .in.h files.  Define PTHREAD_COND_INITIALIZER etc. only if system
27203         pthread.h doesn't.
27204         (pthread_mutexattr_destroy, pthread_mutexattr_init):
27205         (pthread_mutexattr_settype, pthread_mutex_trylock):
27206         New static inline functions, if there's no system <pthread.h>.
27207         (pthread_spinlock_t, pthread_spin_init, pthread_spin_destroy):
27208         (pthread_spin_lock, pthread_spin_trylock, pthread_spin_unlock):
27209         Approximate with mutexes if the system lacks spinlocks, as in
27210         MacOS.
27211         * m4/pthread.m4 (gl_PTHREAD_CHECK): Require gl_PTHREAD_DEFAULTS.
27212         Add gl_CHECK_NEXT_HEADERS for pthread.h, and support the usual
27213         @@-style.  Check for spinlocks separately.
27214         (gl_PTHREAD_DEFAULTS): New macro.
27215         * modules/pthread: Redo to use a more typical style for in.h files.
27216
27217 2010-09-21  Eric Blake  <eblake@redhat.com>
27218
27219         net_if: enhance tests
27220         * tests/test-net_if.c (main): Move signature checks earlier.
27221         Print failures to stderr.
27222         * doc/posix-functions/if_freenameindex.texi (if_freenameindex):
27223         Document the bug that we do not yet fix.
27224
27225 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27226
27227         * doc/gnulib.texi (Out of memory handling): Rewrite section to be
27228         about gnulib, not GSS.
27229
27230 2010-09-21  Reuben Thomas  <rrt@sc3d.org>
27231
27232         * build-aux/pmccabe2html: Look for sources in src/ instead of lib/.
27233         * build-aux/pmccabe2html: Set cut_dir properly, and add mode line
27234         for Emacs.
27235         * build-aux/pmccabe2html: Make Makefile.am example code more
27236         cut-and-paste friendly.
27237
27238 2010-09-21  Simon Josefsson  <simon@josefsson.org>
27239
27240         * tests/test-net_if.c: New file.
27241         * modules/net_if-tests: New file.
27242
27243 2010-09-20  Paul Eggert  <eggert@cs.ucla.edu>
27244
27245         pthread: add pthread_spin_destroy
27246         * lib/pthread.in.h (pthread_spin_destroy): New function.
27247
27248 2010-09-19  Bruno Haible  <bruno@clisp.org>
27249
27250         gnulib-tool: Fix --help output.
27251         * gnulib-tool (func_usage): Fix help message.
27252         Reported by Reuben Thomas <rrt@sc3d.org>.
27253
27254 2010-09-18  Jim Meyering  <meyering@redhat.com>
27255
27256         maint.mk: avoid unexpanded \n in two diagnostics
27257         * top/maint.mk (sc_prohibit_always_true_header_tests):
27258         Don't use a literal \n in a halt=... assignment.  It would not be
27259         expanded, and the two \n bytes would appear in the diagnostic output
27260         rather than the desired newline.  Use halt=$$(printf ... instead.
27261         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
27262
27263 2010-09-18  Bruno Haible  <bruno@clisp.org>
27264
27265         netinet_in: Doc tweak.
27266         * doc/posix-headers/netinet_in.texi: Mention an affected platform.
27267         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27268
27269 2010-09-18  Jim Meyering  <meyering@redhat.com>
27270
27271         init.sh: correct an outdated comment
27272         * tests/init.sh (create_exe_shims_):  s/function/alias/
27273
27274         init.sh: don't let an ephemeral "*.exe" make us skip all dir entries
27275         * tests/init.sh (find_exe_basenames_): Don't give up on a directory if
27276         a file named "*.exe" is removed between the glob expansion and the
27277         processing of that oddly named file.
27278
27279 2010-09-17  Eric Blake  <eblake@redhat.com>
27280
27281         mirbsd: add some more support
27282         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): MirBSD is
27283         in BSD family.
27284         * m4/gc-random.m4 (gl_GC_RANDOM): MirBSD supports same random
27285         devices as OpenBSD.
27286         * m4/host-os.m4 (mirbsd): Add MirBSD.
27287
27288         tests: fix unportable assumption on sys/wait.h
27289         * tests/test-sys_wait.c (main): Relax test.
27290         * tests/test-stdlib.c (main): Likewise.
27291
27292         init.sh: accommodate directory with no .exes
27293         * tests/init.sh: Accomodate directory containing only scripts.
27294
27295         tests: avoid compiler warning
27296         * tests/test-stdlib.c (main): Use the variable.
27297
27298         fdutimens, fdutimensat: update signature, again
27299         * lib/utimens.h (gl_futimens): Delete, and move signature...
27300         (fdutimens): ...here.
27301         (fdutimensat): Rearrange signature.
27302         (lutimensat): Rename variable for clarity.
27303         * lib/fdutimensat.c (fdutimensat): Update signature.
27304         * lib/utimens.c (fdutimens): Likewise.
27305         (gl_futimens): Delete.
27306         (utimens, lutimens): Update callers.
27307         * lib/futimens.c (futimens): Likewise.
27308         * tests/test-fdutimensat.c: Likewise.
27309         * tests/test-utimens.c: Likewise.
27310         * tests/test-futimens.h: Update comment.
27311         * NEWS: Mention this.
27312         Suggested by Paul Eggert.
27313
27314 2010-09-17  Bruno Haible  <bruno@clisp.org>
27315
27316         Take over the maintenance of some older macros from Autoconf.
27317         * m4/error.m4 (AC_FUNC_ERROR_AT_LINE): New macro, from GNU Autoconf.
27318         * m4/lstat.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): New macro, from
27319         GNU Autoconf.
27320         * m4/memcmp.m4 (AC_FUNC_MEMCMP): New macro, from GNU Autoconf.
27321         * m4/mktime.m4 (AC_FUNC_MKTIME): Change comment.
27322
27323 2010-09-17  Eric Blake  <eblake@redhat.com>
27324
27325         fdutimensat: drop atflag validation
27326         * lib/fdutimensat.c (fdutimensat): Allow AT_SYMLINK_NOFOLLOW even
27327         with valid fd, to close a race scenario where futimens is
27328         unsupported and FILE was replaced by a symlink.
27329         * tests/test-fdutimensat.c (do_fdutimens, main): Adjust test
27330         accordingly.
27331         Suggested by Paul Eggert.
27332
27333 2010-09-16  Bruno Haible  <bruno@clisp.org>
27334
27335         unlockpt: Fix declaration within GNULIB_POSIXCHECK.
27336         * lib/stdlib.in.h (unlockpt): Fix warning declaration.
27337
27338 2010-09-16  Bruno Haible  <bruno@clisp.org>
27339
27340         login_tty: Fix detection of function on FreeBSD, OpenBSD, NetBSD.
27341         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): Augment LIBS while checking whether
27342         login_tty exists.
27343         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27344
27345 2010-09-16  Bruno Haible  <bruno@clisp.org>
27346
27347         login_tty: Make the replacement code work on BSD systems.
27348         * lib/login_tty.c: Include <sys/ioctl.h>.
27349         (login_tty): Use ioctl TIOCSCTTY when available.
27350         * modules/login_tty (Depends-on): Add sys_ioctl.
27351         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27352
27353 2010-09-16  Bruno Haible  <bruno@clisp.org>
27354
27355         login_tty: Stricter unit test.
27356         * modules/login_tty-tests (Depends-on): Add tcgetsid.
27357         * tests/test-login_tty.c (main): Also check the results of tcgetpgrp()
27358         and tcgetsid() after login_tty.
27359         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27360
27361 2010-09-16  Bruno Haible  <bruno@clisp.org>
27362
27363         New module 'tcgetsid'.
27364         * lib/tcgetsid.c: New file.
27365         * m4/tcgetsid.m4: New file.
27366         * modules/tcgetsid: New file.
27367         * modules/termios (Depends-on): Add c++defs, warn-on-use.
27368         (Makefile.am): Ensure c++defs.h, warn-on-use.h get included. Substitute
27369         GNULIB_TCGETSID, HAVE_TCGETSID.
27370         * lib/termios.in.h: Include <sys/types.h>.
27371         (tcgetsid): New declaration.
27372         * m4/termios_h.m4 (gl_TERMIOS_H): Check whether tcgetsid is declared.
27373         (gl_TERMIOS_H_DEFAULTS): Initialize GNULIB_TCGETSID, HAVE_TCGETSID.
27374         * doc/posix-functions/tcgetsid.texi: Mention the new module.
27375         * tests/test-termios-c++.cc: Check GNULIB_NAMESPACE::tcgetsid.
27376
27377 2010-09-16  Bruno Haible  <bruno@clisp.org>
27378
27379         Tests for module 'termios'.
27380         * modules/termios-c++-tests: New file.
27381         * modules/termios-tests: New file.
27382         * tests/test-termios-c++.cc: New file.
27383         * tests/test-termios.c: New file.
27384
27385         New module 'termios'.
27386         * modules/termios: New file.
27387         * lib/termios.in.h: New file.
27388         * m4/termios_h.m4: New file.
27389         * doc/posix-headers/termios.texi: Mention the new module.
27390
27391 2010-09-16  Eric Blake  <eblake@redhat.com>
27392
27393         fdutimensat: add an atflag parameter
27394         * lib/fdutimensat.c (fdutimensat): Add new parameter.
27395         * lib/utimens.h (fdutimensat): Update prototype.
27396         * tests/test-fdutimensat.c: Adjust test to match.
27397         * NEWS: Document the change.
27398         Suggested by Paul Eggert.
27399
27400 2010-09-16  Bruno Haible  <bruno@clisp.org>
27401
27402         Fix typos in comments.
27403         * lib/striconveh.h: Fix typo in comment.
27404         * lib/login_tty.c (login_tty): Likewise.
27405
27406 2010-09-15  Bruno Haible  <bruno@clisp.org>
27407
27408         stdlib: clarify MirBSD WEXITSTATUS bug
27409         * lib/stdlib.in.h: Clarify the MirBSD bug regarding WEXITSTATUS.
27410         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27411
27412 2010-09-15  Eric Blake  <eblake@redhat.com>
27413
27414         stdlib: work around MirBSD WEXITSTATUS bug
27415         * lib/stdlib.in.h (includes): Guarantee WEXITSTATUS.
27416         * modules/stdlib (Depends-on): Add sys_wait.
27417         * tests/test-sys_wait.c (main): Enhance test.
27418         * tests/test-stdlib.c (main): Likewise.
27419         * doc/posix-headers/stdlib.texi (stdlib.h): Document the bug.
27420
27421         docs: mention MacOS issue with WEXITSTATUS(constant)
27422         * doc/posix-headers/sys_wait.texi (sys/wait.h): Document the
27423         issue.
27424         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
27425
27426         strnlen: add tests
27427         * modules/strnlen-tests: New file.
27428         * tests/test-strnlen.c: Likewise.
27429
27430 2010-09-14  Bruno Haible  <bruno@clisp.org>
27431
27432         unistr/base: Avoid link errors when module 'libunistring' is also used.
27433         * lib/unistr.in.h (u8_mbtouc_unsafe, u16_mbtouc_unsafe,
27434         u32_mbtouc_unsafe, u8_mbtouc, u16_mbtouc, u32_mbtouc, u8_mbtoucr,
27435         u16_mbtoucr, u32_mbtoucr, u8_uctomb_aux, u16_uctomb_aux, u32_uctomb):
27436         Declare also when HAVE_LIBUNISTRING is set.
27437         Reported by Pádraig Brady <P@draigbrady.com>.
27438
27439 2010-09-14  Eric Blake  <eblake@redhat.com>
27440
27441         test-rawmemchr: make more robust
27442         * modules/rawmemchr-tests (Files): Add zerosize-ptr.h, mmap-anon.m4.
27443         (Depends-on, configure.ac): Add needed prerequisites to use it.
27444         * modules/memchr-tests (Files, Depends-on, configure.ac):
27445         Likewise, to avoid implicit reliance on memchr module prereqs.
27446         * tests/test-memchr.c (main): Ensure proper masking.
27447         * tests/test-rawmemchr.c (main): Likewise.  Detect oversized
27448         reads.
27449
27450         memchr: detect glibc Alpha bug
27451         Avoids http://sourceware.org/bugzilla/show_bug.cgi?id=12019.
27452         * m4/memchr.m4 (gl_FUNC_MEMCHR): Detect glibc 2.11.2 failure on
27453         Alpha.
27454         * doc/posix-functions/memchr.texi (memchr): Tweak wording.
27455         * tests/test-memchr.c (main): Enhance test.
27456         Reported by Nelson H. F. Beebe.
27457
27458 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27459
27460         fts, getcwd, glob: audit for dirfd returning -1
27461         * lib/fts.c (opendir): Remove #define; no longer used.
27462         (opendirat): New arg PDIR_FD.  All callers changed.
27463         (fts_build, _opendir2): Use new opendirat to avoid the need for
27464         dirfd, or for checking whether dirfd returns a negative value.
27465         Don't use opendir; always use openat followed by fdopendir.
27466         * lib/getcwd.c (__getcwd): Don't reset fd; fdopendir no longer clobbers
27467         it.
27468         * lib/glob.c (link_exists_p): Add comment explaining why dirfd never
27469         returns -1 here.
27470         * modules/fts (Depends-on): Remove dirfd.
27471         * modules/getcwd (Depends-on): Likewise.
27472
27473 2010-09-13  Eric Blake  <eblake@redhat.com>
27474
27475         float: fix broken MirBSD header
27476         * m4/float_h.m4 (gl_FLOAT_H): MirBSD copied OpenBSD's bug.
27477         * doc/posix-headers/float.texi (float.h): Document it.
27478
27479 2010-09-13  Paul Eggert  <eggert@cs.ucla.edu>
27480
27481         fts: use O_NOFOLLOW to avoid race condition when opening a directory
27482         * lib/fts.c (opendirat): New arg extra_flags.
27483         (__opendir2): Use it to avoid following symlinks when opening
27484         a directory, if symlinks are not supposed to be followed.  See
27485         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00213.html>.
27486
27487         fdopendir: preserve argument fd before returning
27488         * lib/fdopendir.c: Adjust comments to say POSIX, not Solaris.
27489         (fdopendir_with_dup, fd_clone_opendir): New static functions.
27490         (fdopendir): Use them, arranging for FD to be open to the same
27491         directory that it was when it started.  (It might be temporarily
27492         closed while fdopendir is running, so this not thread- or
27493         signal-safe.)  Be careful to do the right thing even when file
27494         descriptors are scarce and dup fails with errno == EMFILE.  See
27495         <http://lists.gnu.org/archive/html/bug-gnulib/2010-09/msg00208.html>.
27496
27497 2010-09-10  Paolo Bonzini  <bonzini@gnu.org>
27498
27499         regex: Pass the system regex if its only problem is 32-bit regoff_t.
27500         * NEWS: Document change.
27501         * m4/regex.m4: Disable test for regoff_t size.
27502
27503 2010-09-13  Jim Meyering  <meyering@redhat.com>
27504
27505         fts: don't operate on an invalid file descriptor after failed dup
27506         * lib/fts.c (fts_build): Don't call set_cloexec_flag on a
27507         negative file descriptor.
27508
27509 2010-09-12  Paul Eggert  <eggert@cs.ucla.edu>
27510
27511         savedir: add streamsavedir, deprecate fdsavedir
27512         * NEWS: Mention deprecation of fdsavedir.
27513         * lib/savedir.c (streamsavedir): New extern function, whose name
27514         ends in "savedir" to be consistent with the others.  This differs
27515         from savedirstream in that it doesn't close its argument.  The
27516         next version of GNU tar will use this instead of fdsavedir, to
27517         avoid some race conditions and conserve file descriptors.
27518         (savedirstream): Reimplement as a wrapper around streamsavedir.
27519         (fdsavedir): Add a comment deprecating this function.  As far as
27520         I know, only GNU tar used it, and GNU tar doesn't need it any more.
27521         * lib/savedir.h (streamsavedir): New decl.
27522         (fdsavedir): Add a comment deprecating this.
27523
27524 2010-09-10  Bruno Haible  <bruno@clisp.org>
27525
27526         langinfo: Fix last commit.
27527         * m4/langinfo_h.m4 (gl_LANGINFO_H): Initialize
27528         HAVE_LANGINFO_T_FMT_AMPM, HAVE_LANGINFO_YESEXPR.
27529         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27530
27531 2010-09-10  Bruno Haible  <bruno@clisp.org>
27532
27533         relocatable-prog-wrapper: Fix compilation failure due to O_EXEC.
27534         * lib/progreloc.c (O_EXEC): Define fallback.
27535
27536 2010-09-10  Paul Eggert  <eggert@cs.ucla.edu>
27537
27538         fcntl-h: define O_CLOEXEC and O_EXEC if not defined; use new defines
27539         * NEWS: Document recent changes to fcntl-h.
27540         * doc/posix-headers/fcntl.texi (fcntl.h): Document that
27541         O_CLOEXEC is now defined to 0 if it is not defined, like other flags.
27542         Also, O_EXEC is now defined to be O_RDONLY if O_EXEC is not defined.
27543         Similarly for O_SEARCH; this last was already true, but not documented.
27544         * lib/fcntl.in.h (O_CLOEXEC): Define to 0 if not defined.
27545         * lib/dup-safer-flag.c (O_CLOEXEC): Remove now-useless #define.
27546         * lib/dup3.c, lib/pipe2.c, tests/test-dup-safer.c, tests/test-fcntl.c:
27547         Likewise.
27548         * lib/popen-safer.c (open_noinherit): Check whether O_CLOEXEC
27549         is zero, not whether it is defined.
27550         * tests/test-dup3.c, tests/test-pipe2.c (main): Likewise.
27551         * lib/progreloc.c (find_executable): Use O_EXEC rather than O_RDONLY.
27552         * lib/open.c (open): Check for O_SEARCH as well as for O_RDONLY.
27553
27554 2010-09-10  Bruno Haible  <bruno@clisp.org>
27555
27556         langinfo, nl_langinfo: Fix for IRIX 5.3.
27557         * m4/langinfo_h.m4 (gl_LANGINFO_H): Test whether langinfo.h defines
27558         T_FMT_AMPM, YESEXPR. Set HAVE_LANGINFO_T_FMT_AMPM,
27559         HAVE_LANGINFO_YESEXPR.
27560         * modules/langinfo (Makefile.am): Substitute HAVE_LANGINFO_T_FMT_AMPM,
27561         HAVE_LANGINFO_YESEXPR.
27562         * lib/langinfo.in.h (T_FMT_AMPM, GNULIB_defined_T_FMT_AMPM): Define if
27563         HAVE_LANGINFO_T_FMT_AMPM is 0.
27564         (YESEXPR, NOEXPR, GNULIB_defined_YESEXPR): Define if
27565         HAVE_LANGINFO_YESEXPR is 0.
27566         * lib/nl_langinfo.c (rpl_nl_langinfo): Handle also T_FMT_AMPM, YESEXPR,
27567         NOEXPR.
27568         * doc/posix-headers/langinfo.texi: Mention the IRIX 5.3 problem.
27569         * doc/posix-functions/nl_langinfo.texi: Likewise.
27570         Reported by Eric Blake.
27571
27572 2010-09-10  Bruno Haible  <bruno@clisp.org>
27573
27574         pty, readutmp: Fix for FreeBSD 8.0 and OpenBSD 4.6.
27575         * doc/glibc-functions/login_tty.texi: Mention the include file problem
27576         on FreeBSD 8.0 and OpenBSD 4.6.
27577         * lib/pty.in.h: Include <sys/types.h> before <libutil.h>.
27578         * m4/pty_h.m4 (gl_PTY_H): Likewise.
27579         * m4/pty.m4 (gl_FUNC_FORKPTY, gl_FUNC_OPENPTY): Likewise.
27580         * m4/readutmp.m4 (gl_READUTMP): Include <sys/types.h> before <utmp.h>.
27581         Invoke AC_INCLUDES_DEFAULT instead of using the undocumented variable
27582         ac_includes_default.
27583         Reported by Mats Erik Andersson <mats.andersson@gisladisker.se>.
27584
27585 2010-09-09  Eric Blake  <eblake@redhat.com>
27586
27587         strsignal: work around NetBSD bug
27588         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check in <unistd.h>.
27589         * lib/string.in.h (includes): Likewise.
27590         * doc/posix-functions/strsignal.texi (strsignal): Document the
27591         bug.
27592         Reported by Nelson H. F. Beebe.
27593
27594         gnulib-tool: work with NetBSD /bin/sh
27595         * gnulib-tool (func_cache_var, func_cache_lookup_module)
27596         (func_get_description, func_get_comment, func_get_status)
27597         (func_get_notice, func_get_applicability, func_get_filelist)
27598         (func_get_dependencies, func_get_autoconf_early_snippet)
27599         (func_get_autoconf_snippet, func_get_automake_snippet)
27600         (func_get_include_directive, func_get_link_directive)
27601         (func_get_license, func_get_maintainer, func_import): Avoid
27602         shell syntax errors from parsing syntax extensions.
27603
27604 2010-09-09  Bruno Haible  <bruno@clisp.org>
27605
27606         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27607         * gnulib-tool: Don't fiddle with file descriptors 0, 1, 2. Instead, use
27608         a reliable way to determine whether the 'alias' command works.
27609
27610 2010-09-08  Jim Meyering  <meyering@redhat.com>
27611
27612         init.sh: penalize a set-x-impaired shell; don't disqualify it
27613         * tests/init.sh: Too many shells corrupt application stderr when
27614         you set -x, so we can't afford to disqualify them, since at least
27615         on Irix-6.5, that would disqualify all bourne shells.
27616         Instead, use a two-pass approach.
27617         On the first pass, try to find a shell that meets the stricter
27618         condition that set -x does not corrupt stderr.
27619         If no shell meets the stricter condition, retest each candidate
27620         shell, but without that extra condition.  Finally, when
27621         VERBOSE=yes is requested and set -x might cause trouble, simply
27622         issue a warning and refrain from enabling debug output.
27623
27624 2010-09-08  Eric Blake  <eblake@redhat.com>
27625
27626         unsetenv: fix OpenBSD bug
27627         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for OpenBSD bug.
27628         * doc/posix-functions/unsetenv.texi (unsetenv): Update
27629         documentation.
27630         Reported by Jim Meyering.
27631
27632         strtod: work around IRIX 6.5 bug
27633         * lib/strtod.c (strtod): Reparse number on shorter string if
27634         exponent parse was invalid.
27635         * tests/test-strtod.c (main): Add check for "0x1p 2".
27636         Reported by Tom G. Christensen.
27637
27638         getopt: optimize previous patch
27639         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Correctly check for
27640         empty variable.  Speed up awk script.
27641         Reported by Paolo Bonzini.
27642
27643 2010-09-08  Jim Meyering  <meyering@redhat.com>
27644
27645         test.sh: disqualify shells for which set -x corrupts stderr
27646         * tests/init.sh: Add a test to disqualify /bin/sh from SunOS 5.11
27647         and OpenBSD 4.7.  They make it so with "set -x", environment settings
27648         appear in stderr output.  For example, this command:
27649             /bin/sh -c 'set -x; P=1 true 2> err' 2>/dev/null; cat err
27650         prints "P=1" on those two systems:
27651
27652 2010-09-08  Bruno Haible  <bruno@clisp.org>
27653
27654         gnulib-tool: Avoid stderr output on IRIX related to 'alias', 'unalias'.
27655         * gnulib-tool: Use stderr redirection around the 'alias' and 'unalias'
27656         commands, because some shells ignore redirections when there is an
27657         error in the command lookup.
27658         Reported by Eric Blake.
27659
27660 2010-09-07  Reuben Thomas  <rrt@sc3d.org>
27661
27662         * lib/regex.h: Fix a mention of `regex_compile' (should be
27663         `re_compile_pattern').
27664         Correct and clarify documentation for RE_CONTEXT_INVALID_DUP.
27665         (re_set_registers): Correct name of parameter in comment.
27666
27667         * doc/regex.texi: Add documentation for missing syntax flags.
27668         Remove commented-out documentation of defunct syntax option
27669         RE_NO_EMPTY_ALTS.
27670         Correct name of RE_CHAR_CLASSES in one incorrect occurrence.
27671         Add documentation of re_set_registers.
27672         Document trick to re-use a pattern buffer by setting fastmap manually.
27673         Update documentation of struct re_pattern_buffer per public members.
27674         Uncomment documentation of equivalence class operators and
27675         collating symbol operators, since they are now implemented,
27676         Explain leftmost-longest matching in relation to alternatives.
27677         Tidy documentation of substring matching.
27678         Remove POSIX documentation, which is done better in
27679         glibc, and refer the reader there. Keep BSD API documentation, as
27680         that is not readily available elsewhere.
27681
27682 2010-09-07  Eric Blake  <eblake@redhat.com>
27683
27684         getopt: handle POSIXLY_CORRECT set but not exported
27685         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Restore pre-existing
27686         export state of POSIXLY_CORRECT, due to bash set -o posix.
27687         Reported by Dustin J. Mitchell.
27688
27689 2010-09-05  Bruno Haible  <bruno@clisp.org>
27690
27691         gnulib-tool: Highlight the changed options.
27692         * gnulib-tool (func_usage): Display the --import, --add-import,
27693         --remove-import explanations in bold font.
27694
27695 2010-09-06  Karl Berry  <karl@gnu.org>
27696
27697         * doc/gnulib-tool.texi (Modified imports): doc tweaks.
27698
27699 2010-09-05  Bruno Haible  <bruno@clisp.org>
27700
27701         uniwidth/width: Update comment.
27702         * lib/uniwidth/width.c (uc_width): Update comment for Unicode >= 3.1.
27703         Reported by Emanuele Giaquinta <emanuele.giaquinta@gmail.com>.
27704
27705 2010-09-05  Bruno Haible  <bruno@clisp.org>
27706
27707         isinf, isnan: Relax license.
27708         * modules/isinf (License): Change from GPL to LGPL, with consent from
27709         Ben Pfaff.
27710         * modules/isnan (License): Likewise.
27711         Requested by Ludovic Courtès.
27712
27713 2010-09-04  Bruno Haible  <bruno@clisp.org>
27714
27715         gnulib-tool: Help migration from --import to --add-import or --update.
27716         * gnulib-tool: Emit a verbose error message when --import is used
27717         without any module name.
27718
27719 2010-09-04  Bruno Haible  <bruno@clisp.org>
27720
27721         Update doc about gnulib-tool.
27722         * doc/gnulib-tool.texi (VCS Issues): Explain 'gnulib-tool --import' vs.
27723         'gnulib-tool --update' in more detail.
27724         Reported by Eric Blake.
27725
27726 2010-09-04  Bruno Haible  <bruno@clisp.org>
27727
27728         gnulib-tool: Change --import. New options --add/remove-import.
27729         * gnulib-tool: New options --add-import, --remove-import.
27730         (func_usage): Document them.
27731         (have_associative): Define always.
27732         (func_import): In import mode, don't merge the specified settings with
27733         the cached settings. Implement remove-import mode.
27734         * doc/gnulib-tool.texi (Modified imports): Mention the new options.
27735         Explain when to use them versus --import.
27736         (Simple update): Use --add-import instead of --import.
27737         * NEWS: Mention the change.
27738
27739 2010-09-04  Bruno Haible  <bruno@clisp.org>
27740
27741         * doc/gnulib-tool.texi (Initial import): Update paragraph about
27742         separate gnulib.mk.
27743
27744 2010-09-04  Bruno Haible  <bruno@clisp.org>
27745
27746         gnulib-tool: Don't talk about CVS any more.
27747         * gnulib-tool (func_usage, func_import): Write "version control"
27748         instead of CVS.
27749
27750 2010-09-04  Jim Meyering  <meyering@redhat.com>
27751
27752         maint.mk: avoid obscure sc_copyright_check failure in coreutils
27753         * top/maint.mk (v_etc_file): Prepend $(gnulib_dir)/, to avoid
27754         false positives (whose names may be ill-chosen) when searching
27755         non-VC'd files.  Otherwise, a file named "a b/lib/version-etc.c"
27756         would cause a false-positive.
27757
27758         avoid coreutils "make distcheck" failure
27759         Coreutils tests with an absolute build directory name that contains
27760         a space.  Not quoting this directory name caused a failure.
27761         * tests/test-vc-list-files-git.sh: Quote PATH dir name.
27762         * tests/test-vc-list-files-cvs.sh: Likewise.
27763
27764 2010-09-04  Bruno Haible  <bruno@clisp.org>
27765
27766         gnulib-tool: Avoid error when run in a package without Makefile.am.
27767         * gnulib-tool: When collecting the m4dirs in a package that does not
27768         have a Makefile.am, eliminate those directories that contain no
27769         gnulib-cache.m4. Fix expression that counts these directories.
27770
27771 2010-09-04  Bruno Haible  <bruno@clisp.org>
27772
27773         update-copyright test: Improve output when perl is missing or too old.
27774         * tests/test-update-copyright.sh: Move test of Perl version down after
27775         the test whether Perl exists. Provide an explanation relating Perl's
27776         error message to Automake's SKIP: message.
27777
27778 2010-09-04  Bruno Haible  <bruno@clisp.org>
27779
27780         Don't augment PATH in TESTS_ENVIRONMENT.
27781         * modules/update-copyright-tests (Makefile.am): In TESTS_ENVIRONMENT,
27782         set abs_aux_dir instead of augmenting PATH.
27783         * modules/vc-list-files-tests (Makefile.am): Likewise.
27784         * tests/test-update-copyright.sh: Augment PATH here.
27785         * tests/test-vc-list-files-cvs.sh: Augment PATH here, through
27786         path_prepend_.
27787         * tests/test-vc-list-files-git.sh: Likewise.
27788
27789 2010-09-04  Jim Meyering  <meyering@redhat.com>
27790
27791         tests: prohibit augmenting PATH via TESTS_ENVIRONMENT
27792         * Makefile (sc_prohibit_augmenting_PATH_via_TESTS_ENVIRONMENT): New rule.
27793
27794 2010-09-04  Bruno Haible  <bruno@clisp.org>
27795
27796         strdup: Fix compilation error in C++ mode.
27797         * lib/string.in.h (strdup): In C++ mode with GNULIB_NAMESPACE, undefine
27798         the macro.
27799
27800 2010-09-04  Bruno Haible  <bruno@clisp.org>
27801
27802         dirfd: Fix compilation error in C++ mode on MacOS X, *BSD, IRIX.
27803         * lib/dirent.in.h (dirfd): In C++ mode with GNULIB_NAMESPACE, turn the
27804         macro into a function.
27805         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
27806
27807 2010-09-04  Bruno Haible  <bruno@clisp.org>
27808
27809         Set PATH_SEPARATOR the same way autoconf does.
27810         * build-aux/relocatable.sh.in (func_find_curr_installdir): Determine
27811         the value of PATH_SEPARATOR the same way autoconf-generated configure
27812         scripts do.
27813         * m4/lib-ld.m4 (AC_LIB_PROG_LD): Likewise.
27814         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
27815
27816 2010-09-04  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
27817
27818         Set PATH_SEPARATOR the same way autoconf does.
27819         * gnulib-tool (func_gnulib_dir): Determine the value of PATH_SEPARATOR
27820         the same way autoconf-generated configure scripts do.
27821         * posix-modules: Likewise.
27822
27823 2010-09-02  Paul Eggert  <eggert@cs.ucla.edu>
27824
27825         hash: fix safe_hasher const typo
27826         * lib/hash.c (safe_hasher): Result is pointer, not pointer to
27827         const; otherwise, there is a type error later.
27828
27829 2010-09-02  Jim Meyering  <meyering@redhat.com>
27830
27831         test-update-copyright.sh: require perl 5.8.0
27832         * tests/test-update-copyright.sh: Require 5.8.0,
27833         which Tom G. Christensen has confirmed is adequate,
27834         while 5.6.1 is not.
27835
27836 2010-09-02  Eric Blake  <eblake@redhat.com>
27837
27838         tests: init.sh improvements for re-exec'ing with zsh
27839         * tests/init.sh: Borrow autoconf POSIX-mode sanitization.  Pass
27840         -vx through shell re-exec.
27841         Reported by Tom G. Christensen.
27842
27843         wctype: fix typo in previous commit
27844         * m4/wctype_h.m4 (gl_WCTYPE_H): Fix spelling.
27845         Reported by Ludovic Courtès.
27846
27847 2010-09-02  Jim Meyering  <meyering@redhat.com>
27848
27849         test-update-copyright.sh: skip test if Perl is too old
27850         * tests/test-update-copyright.sh: Exit 77 if Perl is too old.
27851         Reported by Tom G. Christensen.
27852
27853 2010-09-02  Bruno Haible  <bruno@clisp.org>
27854
27855         wctype: Avoid compilation error on IRIX 6.5.30.
27856         * lib/wctype.in.h (iswblank): Declare with a replacement if
27857         REPLACE_ISWBLANK is set.
27858         * m4/wctype_h.m4 (gl_WCTYPE_H): Check also whether iswblank is
27859         declared. Set REPLACE_ISWBLANK.
27860         * modules/wctype (Makefile.am): Substitute REPLACE_ISWBLANK.
27861         * doc/posix-functions/iswblank.texi: Mention the IRIX 6.5.30 problem.
27862         * doc/posix-headers/wctype.texi: Likewise.
27863         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
27864
27865 2010-09-01  Bruno Haible  <bruno@clisp.org>
27866
27867         New module 'socketlib'.
27868         * modules/socketlib: New file.
27869         * m4/socketlib.m4: New file, extracted from m4/sockets.m4.
27870         * m4/sockets.m4 (gl_SOCKETS): Require gl_SOCKETLIB.
27871         * modules/sockets (Depends-on): Add socketlib.
27872         Suggested by Sam Steingold <sds@gnu.org>.
27873
27874 2010-09-01  Paul Eggert  <eggert@cs.ucla.edu>
27875
27876         fcntl-h, etc.: prefer O_SEARCH to O_RDONLY when applicable
27877
27878         POSIX 2008 specifies a new 'open' flag O_SEARCH, which can be used
27879         when one needs search access to a directory but not read access.
27880         On systems where it is available, it works in some cases where
27881         O_RDONLY does not, namely on directories that are searchable but
27882         not readable, and which need only to be searchable.  If O_SEARCH
27883         is not available, fall back to the traditional method of using
27884         O_RDONLY.
27885
27886         * lib/fcntl.in.h (O_SEARCH): #define to O_RDONLY if not defined.
27887         * lib/chdir-long.c (cdb_advance_fd): Use O_SEARCH, not O_RDONLY,
27888         when opening a directory that needs only to be searchable.
27889         * lib/chdir-safer.c (chdir_no_follow): Likewise.
27890         * lib/fts.c (diropen, fts_open, fd_ring_check): Likewise.
27891         * lib/openat-proc.c (openat_proc_name): Likewise.
27892         * lib/openat.c (openat_needs_fchdir): Likewise.
27893         * lib/save-cwd.c (save_cwd): Likewise.
27894         * lib/savewd.c (savewd_save, savewd_chdir): Likewise.
27895
27896 2010-08-28  Bruno Haible  <bruno@clisp.org>
27897
27898         New module 'host-cpu-c-abi'.
27899         * modules/host-cpu-c-abi: New file.
27900         * m4/host-cpu-c-abi.m4: New file, based on part of
27901         clisp/src/m4/general.m4.
27902         Requested by Sam Steingold <sds@gnu.org>.
27903
27904 2010-08-31  Eric Blake  <eblake@redhat.com>
27905         and Jim Meyering  <meyering@redhat.com>
27906
27907         hash: factor, and guard against misbehaving hasher function
27908         * lib/hash.c (safe_hasher): New function, to encapsulate the checking
27909         of table->hasher's return value.  Also protect against a hash value
27910         so large that adding it to table->bucket results in a NULL pointer.
27911         (hash_lookup, hash_get_next, hash_find_entry, transfer_entries):
27912         Use it in place of open-coded check-and-abort.
27913
27914 2010-08-30  Bruno Haible  <bruno@clisp.org>
27915
27916         hash: silence spurious clang warning
27917         * lib/hash.c (hash_get_next): Remove unnecessary test against NULL.
27918         Reported by Eric Blake.
27919
27920 2010-08-30  Eric Blake  <eblake@redhat.com>
27921
27922         strstr, memmem, strcasestr: avoid leaked shell message
27923         * m4/strstr.m4 (gl_FUNC_STRSTR): Avoid "Alarm clock" message from
27924         FreeBSD.
27925         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
27926         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
27927
27928         tests: silence clang warning
27929         * tests/test-malloca.c (do_allocation): Avoid dead store.
27930
27931 2010-08-29  Bruno Haible  <bruno@clisp.org>
27932
27933         gettext: Fix recent mistake.
27934         * m4/intl.m4 (gt_CHECK_DECL): Fix typo introduced on 2010-08-26.
27935
27936 2010-08-29  Bruno Haible  <bruno@clisp.org>
27937
27938         selinux-h: Offer a --without-selinux option.
27939         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): If
27940         --without-selinux was specified, skip all tests and define
27941         HAVE_SELINUX_SELINUX_H to 0.
27942         (gl_LIBSELINUX): Offer --without-selinux option. If it is specified,
27943         set LIB_SELINUX to empty.
27944         * m4/selinux-context-h.m4 (gl_HEADERS_SELINUX_CONTEXT_H): Require
27945         gl_LIBSELINUX. If --without-selinux was specified, replace
27946         selinux/context.h.
27947         Reported by Johan Hattne <johan.hattne@utsouthwestern.edu>.
27948
27949 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27950             Bruno Haible  <bruno@clisp.org>
27951
27952         Make the module 'realloc-gnu' work again on AIX and OSF/1.
27953         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): Define HAVE_REALLOC_GNU instead
27954         of HAVE_REALLOC.
27955         * lib/realloc.c (NEED_REALLOC_GNU): Enable behaviour also when
27956         GNULIB_REALLOC_GNU && !HAVE_REALLOC_GNU.
27957         (SYSTEM_MALLOC_GLIBC_COMPATIBLE): Adjust definition.
27958         * modules/realloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27959
27960 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27961             Bruno Haible  <bruno@clisp.org>
27962
27963         Make the module 'calloc-gnu' work again on AIX and OSF/1.
27964         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Define HAVE_CALLOC_GNU instead of
27965         HAVE_CALLOC.
27966         * lib/xmalloc.c: Update accordingly.
27967         * lib/calloc.c (NEED_CALLOC_GNU): Enable also when
27968         GNULIB_CALLOC_GNU && !HAVE_CALLOC_GNU.
27969         * modules/calloc-gnu (configure.ac): Invoke gl_MODULE_INDICATOR.
27970
27971 2010-08-29  Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
27972             Bruno Haible  <bruno@clisp.org>
27973
27974         Make the module 'malloc-gnu' work again on AIX and OSF/1.
27975         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): Define HAVE_MALLOC_GNU instead of
27976         HAVE_MALLOC.
27977         * lib/malloc.c (NEED_MALLOC_GNU): Enable behaviour also when
27978         GNULIB_MALLOC_GNU && !HAVE_MALLOC_GNU.
27979         * modules/malloc-gnu (configure.ac): Use gl_MODULE_INDICATOR.
27980
27981 2010-08-29  Bruno Haible  <bruno@clisp.org>
27982
27983         Update modules list.
27984         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
27985         malloc-gnu, calloc-gnu, realloc-gnu. Remove malloc, calloc, realloc.
27986         (String handling <string.h>): Add astrxfrm.
27987         (File system functions): Add readlinkat.
27988
27989 2010-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
27990
27991         Tests for module 'realloc-gnu'.
27992         * modules/realloc-gnu-tests: New file.
27993         * tests/test-realloc-gnu.c: New file.
27994
27995         Tests for module 'calloc-gnu'.
27996         * modules/calloc-gnu-tests: New file.
27997         * tests/test-calloc-gnu.c: New file.
27998
27999         Tests for module 'malloc-gnu'.
28000         * modules/malloc-gnu-tests: New file.
28001         * tests/test-malloc-gnu.c: New file.
28002
28003 2010-08-28  Bruno Haible  <bruno@clisp.org>
28004
28005         Rename module 'realloc' -> 'realloc-gnu'.
28006         * modules/realloc-gnu: New file, copied from modules/realloc.
28007         * modules/realloc: Convert to a redirection to 'realloc-gnu'. Mark as
28008         obsolete.
28009         * modules/mgetgroups (Depends-on): Update.
28010         * doc/posix-functions/realloc.texi: Update.
28011         * NEWS: Mention the change.
28012
28013         Rename module 'calloc' -> 'calloc-gnu'.
28014         * modules/calloc-gnu: New file, copied from modules/calloc.
28015         * modules/calloc: Convert to a redirection to 'calloc-gnu'. Mark as
28016         obsolete.
28017         * doc/posix-functions/calloc.texi: Update.
28018         * NEWS: Mention the change.
28019
28020         Rename module 'malloc' -> 'malloc-gnu'.
28021         * modules/malloc-gnu: New file, copied from modules/malloc.
28022         * modules/malloc: Convert to a redirection to 'malloc-gnu'. Mark as
28023         obsolete.
28024         * modules/argp (Depends-on): Update.
28025         * modules/regex (Depends-on): Update.
28026         * doc/posix-functions/malloc.texi: Update.
28027         * NEWS: Mention the change.
28028
28029 2010-08-28  Eric Blake  <eblake@redhat.com>
28030
28031         pread, pwrite: add missing dependency
28032         * modules/pread (Depends-on): Add extensions.
28033         * modules/pwrite (Depends-on): Likewise.
28034
28035 2010-08-28  Bruno Haible  <bruno@clisp.org>
28036
28037         unistr/u*-strchr: Fix tests dependencies.
28038         * modules/unistr/u8-strchr-tests (Depends-on): Add unistr/u32-to-u8.
28039         * modules/unistr/u16-strchr-tests (Depends-on): Add unistr/u32-to-u16.
28040         Reported by Ian Beckwith <ianb@erislabs.net>.
28041
28042 2010-08-28  Bruno Haible  <bruno@clisp.org>
28043
28044         read-file: Don't occupy too much unused memory.
28045         * lib/read-file.c (fread_file): Shrink the buffer at the end.
28046
28047 2010-08-28  Giuseppe Scrivano  <gscrivano@gnu.org>
28048             Eric Blake  <eblake@redhat.com>
28049             Bruno Haible  <bruno@clisp.org>
28050
28051         read-file: Avoid memory reallocations with regular files.
28052         * lib/read-file.c: Include <sys/stat.h>, <stdio.h>, <stdint.h>.
28053         (fread_file): With regular files, use the remaining length as the
28054         initial buffer size.  Check against overflow.
28055         * modules/read-file (Depends-on): Add ftello, malloc-posix, stdint,
28056         sys_stat.
28057
28058 2010-08-28  Bruno Haible  <bruno@clisp.org>
28059
28060         ftello: Relax license.
28061         * modules/ftello (License): Relax to LGPLv2+.
28062         Reported by Eric Blake.
28063
28064 2010-08-28  Bruno Haible  <bruno@clisp.org>
28065
28066         Avoid relocwrapper link errors due to gnulib replacement functions.
28067         * lib/canonicalize-lgpl.c [IN_RELOCWRAPPER]: Use the system's getcwd
28068         function.
28069         Reported by Ben Pfaff <blp@cs.stanford.edu>.
28070
28071 2010-08-28  Bruno Haible  <bruno@clisp.org>
28072
28073         Prefer using AC_DEFUN_ONCE over AC_DEFUN in projects with gnulib.
28074         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Use AC_DEFUN_ONCE if gl_00GNULIB is
28075         defined.
28076         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): Likewise.
28077         Suggested by Eric Blake.
28078
28079 2010-08-28  Bruno Haible  <bruno@clisp.org>
28080
28081         sys_socket, netdb: Ensure socklen_t gets defined.
28082         * modules/sys_socket (Depends-on): Add socklen.
28083         * modules/netdb (Depends-on): Likewise.
28084         * modules/getaddrinfo (Depends-on): Remove socklen.
28085         * modules/getsockopt (Depends-on): Likewise.
28086         * modules/setsockopt (Depends-on): Likewise.
28087         * tests/test-sys_socket.c: Check that socklen_t is defined.
28088         * tests/test-netdb.c: Likewise.
28089         * m4/socklen.m4: Update comments.
28090         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
28091
28092 2010-08-27  Eric Blake  <eblake@redhat.com>
28093
28094         login_tty: add missing dependency
28095         * modules/login_tty (Depends-on): Add pty.
28096
28097 2010-08-26  Eric Blake  <eblake@redhat.com>
28098
28099         lib-symbol-versions: fix m4 quoting
28100         * m4/ld-version-script.m4 (gl_LD_VERSION_SCRIPT): Use correct
28101         format for AC_LINK_IFELSE.
28102
28103         glob: fix compile test
28104         * m4/glob.m4 (gl_GLOB): Use correct format for AC_COMPILE_IFELSE.
28105
28106         btowc: fix missing file
28107         * modules/btowc (Files): Also ship locale-fr.m4.
28108
28109         lseek: fix link test
28110         * m4/lseek.m4 (gl_FUNC_LSEEK): Use correct format for
28111         AC_LINK_IFELSE.
28112
28113         include_next: silence autoconf 2.68 warning
28114         * m4/include_next.m4 (gl_INCLUDE_NEXT): Mark this use of
28115         AC_COMPILE_IFELSE as special.
28116         (AC_LANG_DEFINES_PROVIDED): Provide dummy implementation for
28117         autoconf < 2.68.
28118
28119         acl: fix compilation test
28120         * m4/acl.m4 (gl_FUNC_ALL): Use correct format for
28121         AC_COMPILE_IFELSE.
28122
28123 2010-08-26  Bruno Haible  <bruno@clisp.org>
28124
28125         Modernize AC_TRY_RUN invocations.
28126         * m4/btowc.m4 (gl_FUNC_BTOWC): Use AC_RUN_IFELSE instead of AC_TRY_RUN.
28127         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Likewise.
28128         * m4/exponentd.m4 (gl_DOUBLE_EXPONENT_LOCATION): Likewise.
28129         * m4/exponentf.m4 (gl_FLOAT_EXPONENT_LOCATION): Likewise.
28130         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Likewise.
28131         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28132         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Likewise.
28133         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
28134         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28135         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28136         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN_UTF): Likewise.
28137         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
28138         * m4/isnanf.m4 (gl_ISNANF_WORKS): Likewise.
28139         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
28140         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Likewise.
28141         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL,
28142         gl_MBRLEN_NUL_RETVAL): Likewise.
28143         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
28144         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
28145         Likewise.
28146         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
28147         * m4/open.m4 (gl_FUNC_OPEN): Likewise.
28148         * m4/printf.m4 (gl_PRINTF_SIZES_C99, gl_PRINTF_LONG_DOUBLE,
28149         gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE,
28150         gl_PRINTF_DIRECTIVE_A, gl_PRINTF_DIRECTIVE_F, gl_PRINTF_DIRECTIVE_N,
28151         gl_PRINTF_DIRECTIVE_LS, gl_PRINTF_POSITIONS, gl_PRINTF_FLAG_GROUPING,
28152         gl_PRINTF_FLAG_LEFTADJUST, gl_PRINTF_FLAG_ZERO, gl_PRINTF_PRECISION,
28153         gl_SNPRINTF_TRUNCATION_C99, gl_SNPRINTF_RETVAL_C99,
28154         gl_SNPRINTF_DIRECTIVE_N, gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99):
28155         Likewise.
28156         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
28157         * m4/signbit.m4 (gl_SIGNBIT, gl_FLOATTYPE_SIGN_LOCATION): Likewise.
28158         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
28159         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28160         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28161         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Likewise.
28162         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise.
28163         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION): Likewise.
28164         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
28165         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
28166
28167 2010-08-26  Bruno Haible  <bruno@clisp.org>
28168
28169         Modernize AC_TRY_LINK invocations.
28170         * m4/acosl.m4 (gl_FUNC_ACOSL): Use AC_LINK_IFELSE instead of
28171         AC_TRY_LINK.
28172         * m4/argp.m4 (gl_ARGP): Likewise.
28173         * m4/asinl.m4 (gl_FUNC_ASINL): Likewise.
28174         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
28175         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
28176         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
28177         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
28178         * m4/codeset.m4 (AM_LANGINFO_CODESET): Likewise.
28179         * m4/cosl.m4 (gl_FUNC_COSL): Likewise.
28180         * m4/expl.m4 (gl_FUNC_EXPL): Likewise.
28181         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
28182         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
28183         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
28184         * m4/frexp.m4 (gl_FUNC_FREXP, gl_CHECK_FREXP_NO_LIBM): Likewise.
28185         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_CHECK_FREXPL_NO_LIBM): Likewise.
28186         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
28187         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
28188         * m4/hostent.m4 (gl_HOSTENT): Likewise.
28189         * m4/iconv.m4 (AM_ICONV_LINK): Likewise.
28190         * m4/intl.m4 (gt_INTL_SUBDIR_CORE): Likewise.
28191         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
28192         * m4/isnand.m4 (gl_HAVE_ISNAND_IN_LIBM, gl_HAVE_ISNAND_NO_LIBM):
28193         Likewise.
28194         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_HAVE_ISNANF_IN_LIBM):
28195         Likewise.
28196         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM):
28197         Likewise.
28198         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
28199         * m4/ldexpl.m4 (gl_FUNC_LDEXPL, gl_CHECK_LDEXPL_NO_LIBM): Likewise.
28200         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Likewise.
28201         * m4/logb.m4 (gl_FUNC_LOGB): Likewise.
28202         * m4/logl.m4 (gl_FUNC_LOGL): Likewise.
28203         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
28204         * m4/servent.m4 (gl_SERVENT): Likewise.
28205         * m4/signbit.m4 (gl_SIGNBIT): Likewise.
28206         * m4/sinl.m4 (gl_FUNC_SINL): Likewise.
28207         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Likewise.
28208         * m4/tanl.m4 (gl_FUNC_TANL): Likewise.
28209         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
28210         * m4/trunc.m4 (gl_FUNC_TRUNC): Likewise.
28211         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
28212         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
28213         * modules/tsearch-tests (configure.ac): Likewise.
28214
28215 2010-08-26  Bruno Haible  <bruno@clisp.org>
28216
28217         Modernize AC_TRY_COMPILE invocations.
28218         * m4/environ.m4 (gt_CHECK_VAR_DECL): Use AC_COMPILE_IFELSE instead of
28219         AC_TRY_COMPILE.
28220         * m4/iconv.m4 (gl_iconv_AC_DEFUN): Likewise.
28221         * m4/intl.m4 (gt_CHECK_DECL): Likewise.
28222         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
28223         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
28224         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
28225         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
28226         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
28227         * m4/lock.m4 (gl_LOCK): Likewise.
28228         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): Likewise.
28229         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
28230         * m4/minmax.m4 (gl_MINMAX_IN_HEADER): Likewise.
28231         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
28232         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
28233         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Likewise.
28234         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
28235         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Likewise.
28236         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
28237         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
28238         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
28239         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
28240         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Likewise. Remove
28241         extraneous semicolon.
28242
28243 2010-08-26  Jim Meyering  <meyering@redhat.com>
28244
28245         stat-time: relax license LGPL
28246         * modules/stat-time (License): Change from GPL to LGPL,
28247         with consent from all contributors, for use in libguile.
28248         Requested by Ludovic Courtès.
28249
28250 2010-08-26  Erik Faye-Lund  <kusmabite@gmail.com>
28251
28252         poll: return immediately on POLLHUP.
28253         * lib/poll.c (poll): Always set timeout before wait_timeout is
28254         computed.
28255
28256 2010-08-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28257
28258         Fix test-unlinkat, test-rmdir failure on AIX 5.3.
28259         * tests/test-rmdir.h (test_rmdir_func): Also accept EEXIST for
28260         rmdir ("dir/.//"), unlinkat.
28261
28262 2010-08-24  Paul Eggert  <eggert@cs.ucla.edu>
28263
28264         stdbool: avoid spurious failure with modern xlc
28265         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28266
28267 2010-08-24  Bruno Haible  <bruno@clisp.org>
28268
28269         getloadavg: simplify code
28270         * m4/getloadavg.m4 (gl_GETLOADAVG): Remove useless test of
28271         gl_have_func. Update comments.
28272
28273 2010-08-24  Eric Blake  <eblake@redhat.com>
28274
28275         getloadavg: don't define SVR4 on cygwin
28276         * m4/getloadavg.m4 (gl_GETLOADAVG): Sync with autoconf fix, to
28277         only define SVR4 when -lkvm is required.
28278         Reported by Yaakov Selkowitz.
28279
28280 2010-08-24  Bruno Haible  <bruno@clisp.org>
28281
28282         priv-set: fix comment
28283         * lib/priv-set.c (priv_set_restore): Fix typo in comment.
28284
28285 2010-08-23  Paul Eggert  <eggert@cs.ucla.edu>
28286
28287         priv-set: fix comments
28288         * lib/priv-set.c (priv_set_remove, priv_set_restore): Fix comments
28289         to match code, as suggested by David Bartley in:
28290         http://lists.gnu.org/archive/html/bug-tar/2010-08/msg00018.html
28291
28292 2010-08-23  Eric Blake  <eblake@redhat.com>
28293
28294         stdbool: avoid rejecting clang
28295         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Resync with autoconf.
28296         * tests/test-stdbool.c: Enable more tests if using the system
28297         <stdbool.h> instead of the gnulib replacement.
28298         (main): Move xlc bug test to a runtime test for all compilers.
28299         Reported by Anders Kaseorg.
28300
28301         argz: fix shell quoting issue
28302         * m4/argz.m4 (gl_FUNC_ARGZ): Allow for spaces in argument.
28303         Reported by Charles Wilson.
28304
28305 2010-08-22  Paolo Bonzini  <bonzini@gnu.org>
28306             Erik Faye-Lund <kusmabite@gmail.com>
28307
28308         poll, select: handle ERROR_BROKEN_PIPE.
28309         * lib/poll.c (win32_compute_revents): Return POLLHUP when
28310         PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28311         * lib/select.c (win32_compute_revents): Do not mark a pipe
28312         as writeable if PeekNamedPipe fails with ERROR_BROKEN_PIPE.
28313
28314 2010-08-22  Giuseppe Scrivano  <gscrivano@gnu.org>
28315
28316         fts: allow compilation with C++
28317         * lib/fts_.h: Specify extern "C" linkage with C++.
28318
28319 2010-08-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
28320
28321         Fix gnulib-tool sed script de-commentation for AIX sed.
28322         * gnulib-tool (sed_comments): Try indented comments, for AIX 5.3
28323         sed.
28324
28325 2010-08-17  Eric Blake  <eblake@redhat.com>
28326
28327         test-stddef: test for (some) offsetof bugs
28328         * tests/test-stddef.c: Enhance test to ensure correct type of
28329         offsetof.
28330         * doc/posix-headers/stddef.texi (stddef.h): Document a Solaris bug
28331         that we are not fixing at this time.
28332
28333 2010-08-15  Bruno Haible  <bruno@clisp.org>
28334
28335         stpncpy: Allow stpncpy to be defined as a macro.
28336         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Don't attempt to redeclare stpncpy
28337         if it's already correctly declared.
28338         * lib/string.in.h (stpncpy): Undefine before redefining.
28339         Reported by Jeremy Huddleston <jeremyhu@macports.org>.
28340
28341 2010-08-14  Bruno Haible  <bruno@clisp.org>
28342
28343         Rename module 'memxfrm' to 'amemxfrm'.
28344         * lib/amemxfrm.h: Renamed from lib/memxfrm.h.
28345         (amemxfrm): Renamed from memxfrm.
28346         * lib/amemxfrm.c: Renamed from lib/memxfrm.h. Include amemxfrm.h.
28347         (amemxfrm): Renamed from memxfrm.
28348         * modules/amemxfrm: Renamed from modules/memxfrm. Update.
28349         * NEWS: Mention the change.
28350         * MODULES.html.sh (String handling <string.h>): Update.
28351         * lib/unicase/u-casexfrm.h: Invoke amemxfrm instead of memxfrm.
28352         * lib/unicase/u8-casexfrm.c: Include amemxfrm.h instead of memxfrm.h.
28353         * lib/unicase/u16-casexfrm.c: Likewise.
28354         * lib/unicase/u32-casexfrm.c: Likewise.
28355         * lib/uninorm/u-normxfrm.h: Invoke amemxfrm instead of memxfrm.
28356         * lib/uninorm/u8-normxfrm.c: Include amemxfrm.h instead of memxfrm.h.
28357         * lib/uninorm/u16-normxfrm.c: Likewise.
28358         * lib/uninorm/u32-normxfrm.c: Likewise.
28359         * modules/unicase/u8-casexfrm (Depends-on): Add amemxfrm, remove
28360         memxfrm.
28361         * modules/unicase/u16-casexfrm (Depends-on): Likewise.
28362         * modules/unicase/u32-casexfrm (Depends-on): Likewise.
28363         * modules/uninorm/u8-normxfrm (Depends-on): Likewise.
28364         * modules/uninorm/u16-normxfrm (Depends-on): Likewise.
28365         * modules/uninorm/u32-normxfrm (Depends-on): Likewise.
28366         Suggested by Paul Eggert.
28367
28368 2010-08-14  Bruno Haible  <bruno@clisp.org>
28369
28370         Tests for module 'astrxfrm'.
28371         * modules/astrxfrm-tests: New file.
28372         * tests/test-astrxfrm.c: New file.
28373
28374         New module 'astrxfrm'.
28375         * lib/astrxfrm.h: New file.
28376         * lib/astrxfrm.c: New file, based on lib/memxfrm.c.
28377         * modules/astrxfrm: New file.
28378
28379 2010-08-14  Reuben Thomas <rrt@sc3d.org>
28380
28381         regex: Tweak doc.
28382         * doc/regex.texi (Overview): Don't mention regex.c.
28383         (GNU Regular Expression Compiling): Likewise.
28384         (Match-end-of-line Operator): Mention 'not_eol'.
28385
28386 2010-08-14  Brian Gough  <bjg@gnu.org>
28387             Bruno Haible  <bruno@clisp.org>
28388
28389         git-merge-changelog: add doc relating to use with bzr and hg.
28390         * lib/git-merge-changelog.c: Add comments regarding bzr, hg, diff3.
28391
28392 2010-08-14  Matthias Bolte  <matthias.bolte@googlemail.com>
28393
28394         pthread: fix pthread.h creation for srcdir != builddir
28395         * modules/pthread (Makefile.am): Fix the rule to work also in a
28396         non-srcdir build.
28397
28398 2010-08-13  Karl Berry  <karl@gnu.org>
28399
28400         * doc/regex.texi (Predefined Syntaxes): @smallexample.
28401         * doc/posix-*/*: force line break before @url of POSIX
28402         specifications.
28403         Suggested by Werner Lemberg.
28404
28405 2010-08-10  Paul Eggert  <eggert@cs.ucla.edu>
28406
28407         strtod: fix const diagnostic
28408         * lib/strtod.c (strtod): Don't assign const char * to char *,
28409         as this elicits a warning from GCC when warnings are enabled.
28410
28411 2010-08-10  Pádraig Brady <P@draigbrady.com>
28412         and Eric Blake  <eblake@redhat.com>
28413
28414         copy-acl: ignore ENOTSUP on HP-UX
28415         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Move definition up,
28416         so that it is available for HP-UX.
28417         * lib/copy-acl.c (qcopy_acl): Use it.
28418         Reported by Patrick M. Callahan.
28419
28420 2010-08-10  Eric Blake  <eblake@redhat.com>
28421
28422         open, chown: relax license
28423         * modules/open (License): Change to LGPLv2+, with consent by all
28424         authors, for use in augeas.
28425         * modules/chown (License): Likewise.
28426         * modules/lchown (Likewise): Likewise.
28427         Requested by Adam Stokes.
28428
28429 2010-08-09  Karl Berry  <karl@gnu.org>
28430
28431         * build-aux/ar-lib: new file, import from Automake.
28432         * config/srclist.txt: autocheck for updates.
28433
28434 2010-08-09  Eric Blake  <eblake@redhat.com>
28435
28436         readlinkat: adjust client modules
28437         * modules/areadlinkat (Depends-on): Use readlinkat, not
28438         symlinkat.
28439         * modules/areadlinkat-with-size (Depends-on): Likewise.
28440
28441         mknod: be more vocal about danger of running tests as root
28442         * m4/mknod.m4 (gl_FUNC_MKNOD): Make it harder to run configure as
28443         root, since that is just asking for problems.
28444         Suggested by Bruno Haible, based on a report by Rainer Tammer.
28445
28446         readlinkat: split into its own module
28447         * modules/symlinkat: Split readlinkat...
28448         * modules/readlinkat: ...into separate module.
28449         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Move readlinkat check...
28450         * m4/readlinkat.m4 (gl_FUNC_READLINAT): ...to new file.
28451         * lib/symlinkat.c (readlinkat): Move...
28452         * lib/readlinkat.c: ...into new file.
28453         * modules/symlinkat-tests: Split readlinkat test...
28454         * modules/readlinkat-tests: ...into separate module.
28455         * tests/test-symlinkat.c: Split...
28456         * tests/test-readlinkat.c: ...into new file.
28457         * NEWS: Document the split.
28458         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
28459         * lib/unistd.in.h (readlinkat): Likewise.
28460         Suggested by Bruno Haible.
28461
28462 2010-08-08  Bruno Haible  <bruno@clisp.org>
28463
28464         memxfrm: Speed up.
28465         * lib/memxfrm.c (memxfrm): Allocate enough memory ahead of time, so
28466         that usually only one call to strxfrm is necessary for each string
28467         part.
28468         Reported by Paul Eggert <eggert@cs.ucla.edu>.
28469
28470 2010-08-07  Karl Berry  <karl@gnu.org>
28471
28472         * doc/posix-headers/limits.texi,
28473         * doc/posix-functions/malloc.texi,
28474         * doc/posix-functions/strsignal.texi: missing @item.
28475         * doc/ld-version-script.texi: spurious leading i.
28476         * doc/regex.texi (Interval Operators): no commas inside @var.
28477
28478 2010-08-01  Bruno Haible  <bruno@clisp.org>
28479
28480         Integrate the regex documentation.
28481         * doc/gnulib.texi: Define 'cn' index.
28482         (Regular expressions): New a chapter that includes regex.texi and
28483         regexprops-generic.texi.
28484         * doc/regex.texi: Remove boilerplate stuff. Use simplified @node
28485         syntax.
28486
28487         Whitespace cleanup.
28488         * doc/regex.texi: Remove trailing spaces.
28489
28490         Add regex documentation.
28491         * doc/regex.texi: New file. Taken from regex-0.12/doc/regex.texi in
28492         http://ftp.gnu.org/old-gnu/regex/regex-0.12.tar.gz.
28493         Written by Kathy A. Hargreaves and Karl Berry.
28494
28495 2010-08-01  Bruno Haible  <bruno@clisp.org>
28496
28497         link: Update documentation.
28498         * doc/posix-functions/link.texi: Update regarding Solaris.
28499
28500 2010-07-31  Bruno Haible  <bruno@clisp.org>
28501
28502         Update modules list.
28503         * MODULES.html.sh (Sorting functions <stdlib.h>): Add array-mergesort.
28504         (String handling <string.h>): Add memcmp2, memxfrm.
28505         (Container data structures): Add xlist, xsublist, xoset.
28506         (Core language properties): Add alignof, unused-parameter.
28507         (Process control, Numeric conversion functions <stdlib.h>): Renamed
28508         from Numeric conversion functions <stdlib.h>. Add _Exit, atoll.
28509         (Unibyte characters <ctype.h>): New section.
28510         (String handling <string.h>): New section.
28511         (Mathematics <math.h>): Add acos, acosl, asin, asinl, atan, atan2,
28512         atanl, cbrt, copysign, cos, cosh, cosl, erf, erfc, exp, expl, fabs,
28513         fmod, hypot, j0, j1, jn, ldexp, lgamma, log, log10, log1p, logb, logl,
28514         modf, nextafter, pow, remainder, rint, sin, sinh, sinl, sqrt, sqrtl,
28515         tan, tanh, tanl, y0, y1, yn.
28516         (Support for systems lacking POSIX:2008): Add alphasort, dirent,
28517         dprintf, dprintf-posix, duplocale, fcntl, getlogin, getopt-posix,
28518         grantpt, iconv-h, ioctl, isblank, langinfo, nl_langinfo, pread,
28519         ptsname, pwrite, scandir, servent, sys_utsname, ttyname_r, uname,
28520         unlockpt, vdprintf, vdprintf-posix.
28521         (Enhancements for POSIX:2008 functions): Add getopt-gnu. Remove getopt.
28522         (File system functions): Add concat-filename, sys_file, sys_ioctl,
28523         xconcat-filename.
28524         (File descriptor based Input/Output): Add dup3, fd-safer-flag,
28525         getdtablesize, pipe2, pipe2-safer.
28526         (Security): New section.
28527         (Networking functions): Add accept4.
28528         (Signal handling): Add sigpipe.
28529         (Internationalization functions): Add xstriconveh, mbmemcasecmp,
28530         mbmemcasecoll.
28531         (Unicode string functions): Add libunistring-optional, unistr/u*-cmp2,
28532         unistr/u*-strcoll, uniwbrk/*, uninorm/*, unicase/*.
28533         (Executing programs): Add findprog-lgpl, pipe-filter-gi,
28534         pipe-filter-ii.
28535         (Misc): Add argp-version-etc, login_tty, parse-duration.
28536
28537 2010-07-31  Bruno Haible  <bruno@clisp.org>
28538
28539         Improve doc in MODULES.html.
28540         * modules/linkat (Description): Add the word "function".
28541         * modules/mkfifo (Description): Likewise.
28542         * modules/mknod (Description): Likewise.
28543         * modules/remove (Description): Likewise.
28544         * modules/renameat (Description): Likewise.
28545         * modules/stat (Description): Likewise.
28546         * modules/symlink (Description): Likewise.
28547         * modules/unlink (Description): Likewise.
28548
28549 2010-07-31  Bruno Haible  <bruno@clisp.org>
28550
28551         ansi-c++-opt: Provide option --enable-c++/--disable-c++ when possible.
28552         * m4/ansi-c++.m4 (gl_CXX_CHOICE): In Autoconf 2.66 or newer, provide
28553         option --enable/disable-c++ instead of --enable/disable-cxx.
28554         * NEWS: Mention the change.
28555
28556 2010-07-31  Bruno Haible  <bruno@clisp.org>
28557
28558         readlink, areadlink: Relax test a bit.
28559         * tests/test-readlink.h (test_readlink): Accept EINVAL as an
28560         alternative to ENOTDIR.
28561         * tests/test-areadlink.h (test_areadlink): Likewise.
28562         Reported by Rainer Tammer.
28563
28564 2010-07-31  Bruno Haible  <bruno@clisp.org>
28565
28566         unistr/u8-strstr, unistr/u16-strstr: Optimize the one-character case.
28567         * lib/unistr/u-strstr.h (FUNC): When the needle contains only one
28568         character, perform the search using U_STRCHR.
28569         * lib/unistr/u8-strstr.c (U_STRMBTOUC): New macro.
28570         * lib/unistr/u16-strstr.c (U_STRMBTOUC): Likewise.
28571         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strmbtouc.
28572         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strmbtouc.
28573         Suggested by Paolo Bonzini.
28574
28575 2010-07-31  Bruno Haible  <bruno@clisp.org>
28576
28577         unistr/u*-strstr: Fix dependencies.
28578         * modules/unistr/u8-strstr (Depends-on): Add unistr/u8-strchr.
28579         * modules/unistr/u16-strstr (Depends-on): Add unistr/u16-strchr.
28580         * modules/unistr/u32-strstr (Depends-on): Add unistr/u32-strchr.
28581
28582 2010-07-31  Bruno Haible  <bruno@clisp.org>
28583
28584         unistr/u8-chr, unistr/u8-strchr: Optimize and add comments.
28585         * lib/unistr/u8-chr.c (u8_chr): Add comments. Remove a useless test at
28586         the beginning of the loop.
28587         * lib/unistr/u8-strchr.c (u8_strchr): Add comments. Don't fall through
28588         cases in 'switch' statement.
28589
28590         unistr/u8-strchr: Fix several bugs.
28591         * lib/unistr/u8-strchr.c (u8_strchr): Don't search beyond the end of
28592         the string. When not found, return NULL, not a pointer near the end.
28593
28594         More tests for unistr/u8-strchr.
28595         * tests/unistr/test-strchr.h (test_strchr): Renamed from main. Check
28596         that the function does not read past the first occurrence of the byte
28597         being searched.
28598         * tests/unistr/test-u8-strchr.c (main): New function, with more tests.
28599         * tests/unistr/test-u16-strchr.c (main): New function.
28600         * tests/unistr/test-u32-strchr.c (main): New function.
28601
28602 2010-07-31  Bruno Haible  <bruno@clisp.org>
28603
28604         posix-modules: Ignore backup files of documentation files.
28605         * posix-modules: grep only through files named *.texi.
28606
28607 2010-07-31  Bruno Haible  <bruno@clisp.org>
28608
28609         symlinkat: Fix documentation.
28610         * doc/posix-functions/readlinkat.texi: Fix module name.
28611
28612 2010-07-31  Bruno Haible  <bruno@clisp.org>
28613
28614         fchownat: Replace also when chown has the trailing slash bug.
28615         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Move the test of REPLACE_CHOWN
28616         outside the gl_FUNC_FCHOWNAT_DEREF_BUG invocation. Fixes regression
28617         introduced on 2010-04-10.
28618         Reported by Rainer Tammer.
28619
28620 2010-07-31  Bruno Haible  <bruno@clisp.org>
28621
28622         linkat: Work around AIX 7.1 bug.
28623         * m4/linkat.m4 (gl_FUNC_LINKAT): Require AC_CANONICAL_HOST. Test
28624         whether linkat handles trailing slash correctly. If not, replace linkat
28625         and define LINKAT_TRAILING_SLASH_BUG.
28626         * lib/linkat.c (rpl_linkat): If LINKAT_TRAILING_SLASH_BUG is defined,
28627         check whether (fd1,file1) points to a directory if file1 or file2 ends
28628         in a slash. Code taken from lib/link.c.
28629         * doc/posix-functions/linkat.texi: Mention trailing slash bug.
28630         Reported by Rainer Tammer.
28631
28632 2010-07-31  Bruno Haible  <bruno@clisp.org>
28633
28634         Correctly determine whether pow is available in libc on AIX 7 with xlc.
28635         * m4/mathfunc.m4 (gl_MATHFUNC): Actually use the 'funcptr' variable.
28636         This disables an xlc optimization that was causing wrong test results.
28637         Reported by Rainer Tammer.
28638
28639 2010-07-31  Bruno Haible  <bruno@clisp.org>
28640
28641         iconv: Work around AIX 6.1..7.1 bug.
28642         * doc/posix-functions/iconv.texi: Mention AIX 6.1, 7.1 bug.
28643         * m4/iconv.m4 (AM_ICONV_LINK): Test against AIX 6.1, 7.1 bug. When
28644         cross-compiling, guess no on all versions of AIX.
28645         Reported by Rainer Tammer.
28646
28647 2010-07-31  Bruno Haible  <bruno@clisp.org>
28648
28649         readlink: Relax test a bit.
28650         * tests/test-readlink.h (test_readlink): Allow different errno value
28651         when readlink is called with a file name that ends in / and refers to
28652         a file.
28653         Suggested by Eric Blake.
28654         Reported by Rainer Tammer.
28655
28656 2010-07-31  Bruno Haible  <bruno@clisp.org>
28657
28658         copysign: Does not require -lm on glibc systems.
28659         * modules/copysign (configure.ac): Use gl_MATHFUNC, not
28660         gl_COMMON_DOUBLE_MATHFUNC.
28661         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC): Update comments.
28662
28663 2010-07-31  Bruno Haible  <bruno@clisp.org>
28664
28665         duplocale: Work around AIX 7.1 bug.
28666         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Let the test fail also when
28667         duplocale(LC_GLOBAL_LOCALE) returns (locale_t)0.
28668         * lib/duplocale.c (rpl_duplocale): Update comment.
28669         * doc/posix-functions/duplocale.texi: Mention the AIX 7.1 bug.
28670         Reported by Rainer Tammer.
28671
28672 2010-07-30  Bruno Haible  <bruno@clisp.org>
28673
28674         dirfd: Avoid link error on AIX 7.1.
28675         * lib/dirent.in.h (dirfd): Use modern idiom with REPLACE_DIRFD.
28676         * m4/dirfd.m4 (gl_FUNC_DIRFD): If the function is declared but does not
28677         exist, set REPLACE_DIRFD.
28678         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize REPLACE_DIRFD.
28679         * modules/dirent (Makefile.am): Substitute REPLACE_DIRFD.
28680         * doc/posix-functions/dirfd.texi: Update.
28681         Reported by Rainer Tammer.
28682
28683 2010-07-30  Eric Blake  <eblake@redhat.com>
28684
28685         strtod: next round of AIX fixes
28686         * lib/strtod.c (strtod): Work around AIX bug of parsing p with no
28687         exponent.
28688         * tests/test-strtod.c (main): Enhance tests.
28689         * doc/posix-functions/strtod.texi (strtod): Document next bug.
28690         Reported by Rainer Tammer.
28691
28692         futimens: fix configure check
28693         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Use correct logic.
28694         Reported by Bruno Haible.
28695
28696 2010-07-30  Bruno Haible  <bruno@clisp.org>
28697
28698         getline: Update regarding AIX.
28699         * doc/posix-functions/getline.texi: Mention bug on AIX 7.1.
28700         Reported by Rainer Tammer.
28701
28702 2010-07-30  Bruno Haible  <bruno@clisp.org>
28703
28704         wcwidth: Drop replacement on AIX 7.
28705         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): When cross-compiling, guess yes on
28706         AIX 7.
28707         Reported by Rainer Tammer.
28708
28709 2010-07-30  Bruno Haible  <bruno@clisp.org>
28710
28711         strtok_r: Avoid triggering bug in AIX 7.1 xlc compiler.
28712         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Don't cast an invalid address to
28713         a 'char *'.
28714         Reported by Rainer Tammer.
28715
28716 2010-07-30  Bruno Haible  <bruno@clisp.org>
28717
28718         unlink: Update regarding AIX.
28719         * doc/posix-functions/unlink.texi: Mention bug on AIX 7.1.
28720         * m4/unlink.m4 (gl_FUNC_UNLINK): Update comment.
28721         Reported by Rainer Tammer.
28722
28723 2010-07-30  Bruno Haible  <bruno@clisp.org>
28724
28725         symlink: Update regarding AIX.
28726         * doc/posix-functions/symlink.texi: Mention bug on AIX 7.1.
28727         * m4/symlink.m4 (gl_FUNC_SYMLINK): Update comment.
28728         Reported by Rainer Tammer.
28729
28730 2010-07-30  Bruno Haible  <bruno@clisp.org>
28731
28732         strndup: Update regarding AIX.
28733         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, guess yes on
28734         AIX 7.
28735         Reported by Rainer Tammer.
28736
28737 2010-07-30  Bruno Haible  <bruno@clisp.org>
28738
28739         stat: Update regarding AIX.
28740         * doc/posix-functions/stat.texi: Mention bug on AIX 7.1.
28741         * m4/stat.m4 (gl_FUNC_STAT): Update comment.
28742         Reported by Rainer Tammer.
28743
28744 2010-07-30  Bruno Haible  <bruno@clisp.org>
28745
28746         truncl: Fix autoconf test.
28747         * m4/truncl.m4 (gl_FUNC_TRUNCL): Add TRUNCL_LIBM to LIBS while testing
28748         whether truncl works.
28749         Reported by Rainer Tammer.
28750
28751 2010-07-30  Bruno Haible  <bruno@clisp.org>
28752
28753         round: Update regarding AIX.
28754         * m4/round.m4 (gl_FUNC_ROUND): When cross-compiling, guess no on AIX 7.
28755         * doc/posix-functions/round.texi: Mention bug on AIX 7.1.
28756         Reported by Rainer Tammer.
28757
28758 2010-07-30  Bruno Haible  <bruno@clisp.org>
28759
28760         rename: Update regarding AIX.
28761         * doc/posix-functions/rename.texi: Mention bug on AIX 7.1.
28762         * m4/rename.m4 (gl_FUNC_RENAME): Update comment.
28763         Reported by Rainer Tammer.
28764
28765 2010-07-30  Bruno Haible  <bruno@clisp.org>
28766
28767         printf.m4: Update regarding AIX.
28768         * m4/printf.m4: Update comments regarding AIX.
28769         Reported by Rainer Tammer.
28770
28771 2010-07-30  Bruno Haible  <bruno@clisp.org>
28772
28773         iconv: Update regarding AIX.
28774         * m4/iconv.m4 (AM_ICONV_LINK): When cross-compiling, guess yes on
28775         AIX 7.
28776         Reported by Rainer Tammer.
28777
28778 2010-07-30  Bruno Haible  <bruno@clisp.org>
28779
28780         getopt: Update regarding AIX.
28781         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): When cross-compiling, guess
28782         no on AIX.
28783         * doc/posix-functions/getopt.texi: Mention that AIX has the optind bug.
28784         Reported by Rainer Tammer.
28785
28786 2010-07-30  Bruno Haible  <bruno@clisp.org>
28787
28788         ldexpl; Update regarding AIX.
28789         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): When cross-compiling, guess yes
28790         on AIX 7.
28791         Reported by Rainer Tammer.
28792
28793 2010-07-30  Bruno Haible  <bruno@clisp.org>
28794
28795         frexpl: Update regarding AIX.
28796         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): When cross-compiling, guess yes
28797         on AIX 7.
28798         Reported by Rainer Tammer.
28799
28800 2010-07-30  Bruno Haible  <bruno@clisp.org>
28801
28802         open, fopen: Update regarding AIX.
28803         * m4/open.m4 (gl_FUNC_OPEN): Adjust cross-compiling guess for AIX.
28804         * m4/fopen.m4 (gl_FUNC_FOPEN): Likewise.
28805         * doc/posix-functions/open.texi: Mention the trailing-slash bug on AIX.
28806         * doc/posix-functions/fopen.texi: Likewise.
28807         Reported by Rainer Tammer.
28808
28809 2010-07-30  Bruno Haible  <bruno@clisp.org>
28810
28811         chown: Update doc regarding AIX.
28812         * doc/posix-functions/chown.texi: Mention bug on AIX 7.1.
28813         * m4/chown.m4 (gl_FUNC_CHOWN): Update comment.
28814         Reported by Rainer Tammer.
28815
28816 2010-07-30  Eric Blake  <eblake@redhat.com>
28817
28818         strtod: fix bug in replacement function on AIX
28819         * lib/strtod.c (strtod): Special case broken "0x" parse in
28820         underlying strtod.
28821         * tests/test-strtod.c (main): Document AIX 7.1 bugs.
28822         * doc/posix-functions/strtod.texi (strtod): Likewise.
28823         Reported by Rainer Tammer.
28824
28825 2010-07-30  Bruno Haible  <bruno@clisp.org>
28826
28827         mbrlen: Fix cross-compilation guess for AIX.
28828         * m4/mbrlen.m4 (gl_MBRLEN_INCOMPLETE_STATE): Fix cross-compilation
28829         guess. Leftover from 2008-12-22.
28830
28831 2010-07-30  Bruno Haible  <bruno@clisp.org>
28832
28833         mbrtowc: Fix cross-compilation guess for AIX.
28834         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Fix cross-compilation
28835         guess. Leftover from 2008-12-21.
28836
28837 2010-07-29  Peter O'Gorman  <pogma@thewrittenword.com>  (tiny change)
28838
28839         init.sh: work around trap limitation of some shells
28840         * tests/init.sh (setup_): Move exit trap outside of shell function.
28841
28842 2010-07-29  Eric Blake  <eblake@redhat.com>
28843
28844         strtod: aid debugging
28845         * m4/strtod.m4(gl_FUNC_STRTOD): Use distinct exit status to aid
28846         understanding why strtod is rejected.
28847
28848 2010-07-28  Bruno Haible  <bruno@clisp.org>
28849
28850         unistr/u*-chr, unistr/u*-strchr: Fix link errors and warnings.
28851         * lib/unistr/u8-chr.c: Include <string.h>.
28852         * tests/unistr/test-u8-chr.c: Likewise.
28853         * tests/unistr/test-u16-chr.c: Likewise.
28854         * tests/unistr/test-u32-chr.c: Likewise.
28855         * tests/unistr/test-u8-strchr.c: Likewise.
28856         * tests/unistr/test-u16-strchr.c: Likewise.
28857         * tests/unistr/test-u32-strchr.c: Likewise.
28858         * modules/unistr/u8-chr-tests (Depends-on): Add unistr/u32-set.
28859         * modules/unistr/u16-chr-tests (Depends-on): Likewise.
28860         * modules/unistr/u8-strchr-tests (Depends-on): Likewise.
28861         * modules/unistr/u16-strchr-tests (Depends-on): Likewise.
28862
28863 2010-07-28  Bruno Haible  <bruno@clisp.org>
28864
28865         Use spaces for indentation, not tabs.
28866         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
28867
28868 2010-07-27  Bruno Haible  <bruno@clisp.org>
28869
28870         mbspcasecmp: Fix function specification.
28871         * lib/string.in.h (mbspcasecmp): Fix specification comment.
28872         * lib/mbspcasecmp.c (mbspcasecmp): Likewise.
28873         Reported by Eric Blake <eblake@redhat.com>.
28874
28875 2010-07-26  Paul R. Eggert  <eggert@cs.ucla.edu>
28876
28877         timespec: use cast and not conditional, as truncation isn't possible
28878         * lib/timespec.h (timespec_cmp): Use cast to pacify gcc -Wconversion
28879         instead of a conditional.  Comment about the situation in more detail.
28880         This undoes most of the 2009-10-29 patch.
28881
28882 2010-07-23  Paolo Bonzini  <pbonzini@redhat.com>
28883
28884         unistr/u8-chr, unistr/u8-strchr: use Boyer-Moore like algorithm.
28885         * lib/unistr/u8-chr.c: Add Boyer-Moore like operation.
28886         * lib/unistr/u8-strchr.c: Likewise.
28887         * modules/unistr/u8-chr: Depend on memchr.
28888
28889         unistr/u*-strchr: add tests
28890         * modules/unistr/u8-strchr-tests: New file.
28891         * modules/unistr/u16-strchr-tests: New file.
28892         * modules/unistr/u32-strchr-tests: New file.
28893         * tests/unistr/test-strchr.h: New file.
28894         * tests/unistr/test-u8-strchr.c: New file.
28895         * tests/unistr/test-u16-strchr.c: New file.
28896         * tests/unistr/test-u32-strchr.c: New file.
28897
28898         unistr/u*-chr: test multibyte sequences more
28899         * tests/unistr/test-chr.h: Do complete testing of the characters in the
28900         test vector.
28901         * tests/unistr/test-u8-chr.c (U_UCTOMB): Define.
28902         * tests/unistr/test-u16-chr.c (U_UCTOMB): Likewise.
28903         * tests/unistr/test-u32-chr.c (U_UCTOMB): Likewise.
28904
28905         unistr/u*-chr: test multibyte sequences
28906         * tests/unistr/test-chr.h: Put characters above 0-127 in the test input.
28907
28908         unistr/u*-chr: prepare for multibyte tests
28909         * modules/unistr/u8-chr-tests: Depend on u32-to-u8.
28910         * modules/unistr/u16-chr-tests: Depend on u32-to-u16.
28911         * tests/unistr/test-chr.h: Build initial version as UCS-4 then convert.
28912         * tests/unistr/test-u8-chr.c (U32_TO_U): Define.
28913         * tests/unistr/test-u16-chr.c (U32_TO_U): Likewise.
28914         * tests/unistr/test-u32-chr.c (U32_TO_U): Likewise.
28915
28916 2010-07-18  Bruno Haible  <bruno@clisp.org>
28917
28918         unistr/u8-strchr: Optimize non-ASCII argument case.
28919         * lib/unistr/u8-strchr.c (u8_strchr): Compare the last byte first,
28920         because the first byte often matches anyway.
28921         Reported by Pádraig Brady <P@draigbrady.com>.
28922
28923 2010-07-15  Karl Berry  <karl@gnu.org>
28924
28925         * config/srclist.txt (fdl.texi): only one copy, from gnustandards.
28926
28927 2010-07-14  Paul R. Eggert  <eggert@cs.ucla.edu>
28928
28929         getcwd: on Solaris, work better if ancestors are inaccessible
28930         * lib/getcwd.c (__getcwd): If getcwd returns EINVAL for zero
28931         buffer and size, try again with a large buffer.  This works better
28932         on Solaris, since its getcwd succeeds even if the path to the root
28933         is inaccessible, and this is helpful in common cases such as .zfs
28934         hidden directories.  Problem reported by J Chapman Flack in
28935         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00000.html
28936         Use system getcwd if it's declared, not merely if it's partly
28937         working; use the partly-working test only to avoid needless effort
28938         if the system getcwd fails.
28939         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Omit
28940         comment that was already obsolete and is now even more obsolete.
28941         * modules/getcwd (Depends-on): Depend on strdup, since __getcwd
28942         now might call strdup.
28943
28944 2010-07-13  Paul R. Eggert  <eggert@cs.ucla.edu>
28945
28946         pthread: Add enough so that coreutils/src/sort.c compiles.
28947         * lib/pthread.in.h: Add self to author comment.  Conditionalize on
28948         _GL_PTHREAD_H, not PTHREAD_H_, for consistency with the rest of
28949         gnulib. Include <sched.h> and <time.h>, as per POSIX.
28950         Include <sys/types.h>, in case it defines pthread_t.
28951         (pthread_t, pthread_attr_t, pthread_barrier_t, pthread_barrierattr_t):
28952         (pthread_cond_t, pthread_condattr_t, pthread_key_t, pthread_mutex_t):
28953         (pthread_mutexattr_t, pthread_once_t, pthread_rwlock_t):
28954         (pthread_rwlockattr_t, pthread_spinlock_t):
28955         New typedefs, if HAVE_PTHREAD_T is not defined.
28956         (PTHREAD_COND_INITIALIZER, PTHREAD_MUTEX_INITIALIZER):
28957         (PTHREAD_ONCE_INIT, PTHREAD_RWLOCK_INITIALIZER):
28958         (PTHREAD_BARRIER_SERIAL_THREAD, PTHREAD_CANCEL_DEFERRED):
28959         (PTHREAD_CANCEL_ASYNCHRONOUS, PTHREAD_CANCEL_ENABLE):
28960         (PTHREAD_CANCEL_DISABLE, PTHREAD_CANCELED, PTHREAD_CREATE_JOINABLE):
28961         (PTHREAD_CREATE_DETACHED, PTHREAD_INHERIT_SCHED):
28962         (PTHREAD_EXPLICIT_SCHED, PTHREAD_MUTEX_DEFAULT, PTHREAD_MUTEX_NORMAL):
28963         (PTHREAD_MUTEX_ERRORCHECK, PTHREAD_MUTEX_RECURSIVE):
28964         (PTHREAD_MUTEX_STALLED, PTHREAD_MUTEX_ROBUST, PTHREAD_PRIO_NONE):
28965         (PTHREAD_PRIO_INHERIT, PTHREAD_PRIO_PROTECT, PTHREAD_PROCESS_PRIVATE):
28966         (PTHREAD_PROCESS_SHARED, PTHREAD_SCOPE_SYSTEM, PTHREAD_SCOPE_PROCESS):
28967         New macros.
28968         (pthread_cond_destroy, pthread_cond_init, pthread_cond_signal):
28969         (pthread_cond_wait, pthread_exit, pthread_mutex_destroy):
28970         (pthread_mutex_init, pthread_mutex_lock, pthread_mutex_unlock):
28971         (pthread_spin_init, pthread_spin_lock, pthread_spin_trylock);
28972         (pthread_spin_unlock): New dummy functions.
28973         (pthread_create): Return EAGAIN; don't set errno.
28974         * m4/pthread.m4 (gl_PTHREAD_CHECK): Check for pthread_t, and
28975         require AC_C_INLINE.
28976         * modules/pthread (Depends-on): Add sched, time.
28977         (pthread.h): Use AM_V_GEN.
28978
28979 2010-07-13  Bruno Haible  <bruno@clisp.org>
28980
28981         striconveh: Don't malloc memory if the result buffer is sufficient.
28982         * lib/striconveh.c (mem_cd_iconveh_internal): Use the provided result
28983         buffer if its size is sufficient.
28984         Reported by Ludovic Courtès <ludo@gnu.org>.
28985
28986 2010-07-13  Bruno Haible  <bruno@clisp.org>
28987
28988         strtod: Add safety check.
28989         * lib/strtod.c (ldexp): Abort if this dummy replacement gets called.
28990
28991 2010-07-12  Bruno Haible  <bruno@clisp.org>
28992
28993         Unify tests that set gl_cv_func_ldexpl_no_libm.
28994         * m4/ldexpl.m4 (gl_CHECK_LDEXPL_NO_LIBM): New macro, extracted from
28995         gl_FUNC_LDEXPL.
28996         (gl_FUNC_LDEXPL): Invoke it.
28997         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
28998
28999 2010-07-12  Bruno Haible  <bruno@clisp.org>
29000
29001         Unify tests that set gl_cv_func_ldexp_no_libm.
29002         * m4/ldexp.m4: New file, based on m4/mathfunc.m4.
29003         * m4/strtod.m4 (gl_PREREQ_STRTOD): Require gl_CHECK_LDEXP_NO_LIBM.
29004         * modules/ldexp (Files): Remove m4/mathfunc.m4. Add m4/ldexp.m4.
29005         (configure.ac): Simply invoke gl_FUNC_LDEXP.
29006         * modules/strtod (Files): Add m4/ldexp.m4.
29007
29008 2010-07-12  Bruno Haible  <bruno@clisp.org>
29009
29010         Unify tests that set gl_cv_func_frexpl_no_libm.
29011         * m4/frexpl.m4 (gl_CHECK_FREXPL_NO_LIBM): New macro, extracted from
29012         gl_FUNC_FREXPL_NO_LIBM.
29013         (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): Invoke it.
29014         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
29015
29016 2010-07-12  Bruno Haible  <bruno@clisp.org>
29017
29018         Unify tests that set gl_cv_func_frexp_no_libm.
29019         * m4/frexp.m4 (gl_CHECK_FREXP_NO_LIBM): New macro, extracted from
29020         gl_FUNC_FREXP_NO_LIBM.
29021         (gl_FUNC_FREXP, gl_FUNC_FREXP_NO_LIBM): Require it.
29022         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Likewise.
29023
29024 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29025
29026         memcoll: clarify sizes versus lengths, document better, and tweak perf
29027         * lib/memcoll.c (strcoll_loop, memcoll0):
29028         Improve quality of descriptive comments.  Name variables
29029         consistently as to whether they are lengths (which do not include
29030         terminating null) versus sizes (which do).
29031         * lib/xmemcoll.c (xmemcoll0): Likewise.
29032         * lib/memcoll.c (strcoll_loop): Tweak the way that the diff is
29033         returned when s1size == 0; this is easier to compile and saves
29034         about 17% of memcoll's code space on x86-64 with GCC 4.1.2.
29035
29036 2010-07-12  Bruno Haible  <bruno@clisp.org>
29037
29038         Tests for module '_Exit'.
29039         * modules/_Exit-tests: New file.
29040         * tests/test-_Exit.sh: New file.
29041         * tests/test-_Exit.c: New file.
29042
29043         New module '_Exit'.
29044         * lib/stdlib.in.h (__attribute__): New macro.
29045         (_Exit): New declaration.
29046         * lib/_Exit.c: New file.
29047         * m4/_Exit.m4: New file.
29048         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether _Exit is declared.
29049         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB__EXIT and HAVE__EXIT.
29050         * modules/stdlib (Makefile.am): Substitute GNULIB__EXIT and HAVE__EXIT.
29051         * modules/_Exit: New file.
29052         * tests/test-stdlib-c++.cc (_Exit): Check signature.
29053         * doc/posix-functions/_Exit_C99.texi: Mention the new module.
29054
29055 2010-07-12  Paul R. Eggert  <eggert@cs.ucla.edu>
29056
29057         strtod: make it more-accurate typically, and don't require libm
29058         * lib/strtod.c (_GL_ARG_NONNULL): Remove; no longer needed.
29059         Include limits.h.  Don't include string.h.
29060         (HAVE_LDEXP_IN_LIBC, HAVE_RAW_DECL_STRTOD): Define to 0 if not defined.
29061         (locale_isspace): New function, so that no casts are needed to
29062         check whether *s is a space.
29063         (ldexp): Provide an unused dummy if not available.
29064         (scale_radix_exp, parse_number, underlying_strtod): New functions.
29065         (strtod): Use them.  This implementation prefers to use the
29066         underlying strtod if available, falling back on our own code
29067         only to fix known bugs.  This is more likely to produce an
29068         accurate result.  Also, it avoids the use of libm functions.
29069         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't invoke _AC_LIBOBJ_STRTOD;
29070         no longer needed.  Invoke AC_LIBOBJ([strtod]); don't know why this
29071         was absent, but it caused a test failure with coreutils.
29072         (gl_PREREQ_STRTOD): Check wither ldexp can be used without linking
29073         with libm.
29074         * modules/strtod (Makefile.am, Link): libm is no longer needed.
29075         * modules/strtod-tests (Makefile.am): Likewise.
29076
29077 2010-07-11  Pádraig Brady  <P@draigBrady.com>
29078             Bruno Haible  <bruno@clisp.org>
29079
29080         unistr/u8-strchr: Optimize ASCII argument case.
29081         * lib/unistr/u8-strchr.c (u8_strchr): For ASCII arguments, use strchr.
29082
29083 2010-07-08  Paul Eggert  <eggert@cs.ucla.edu>
29084
29085         (x)memcoll: minor tweaks
29086         * lib/memcoll.c (strcoll_loop): Prefer the style where 'const'
29087         is after the type that it qualifies.
29088         (memcoll0): Likewise.
29089         * lib/memcoll.h (memcoll0): Likewise.
29090         * lib/xmemcoll.c (collate_error, xmemcoll0): Likewise.
29091         * lib/xmemcoll.h (xmemcoll0): Likewise.
29092         * lib/memcoll.c (memcoll0): Correct the comment.  This function
29093         differs from memcoll in that the NUL byte is part of the argument.
29094         Omit the abort-checks, as performance is a real issue here.  Plus,
29095         the checks were wrong anyway (an off-by-one error).  Omit local
29096         variable 'diff', as it's a bit clearer that way.
29097         * m4/memcoll.m4 (gl_MEMCOLL): Omit AC_FUNC_STRCOLL, as it's
29098         no longer needed.
29099
29100 2010-07-08  Chen Guo <chenguo4@yahoo.com>
29101
29102         (x)memcoll: speedup when input is known to be NUL delimited
29103         * lib/memcoll.c: Include stdlib.
29104         (memcoll0): New function.
29105         (strcoll_loop): New function, refactored for use in both memcoll
29106         and memcoll0.
29107         * lib/memcoll.h (memcoll0): Add prototype.
29108         * lib/xmemcoll.c (xmemcoll0): New function.
29109         (collate_error): New function, refactored for use in both xmemcoll
29110         and xmemcoll0.
29111         * lib/xmemcoll.h (xmemcoll0): Add prototype.
29112         * m4/memcoll.m4: add inline invocation.
29113
29114 2010-07-06  Pádraig Brady  <P@draigBrady.com>
29115
29116         * build-aux/bootstrap: Remove any local translations
29117         from the translation project synchronization directory,
29118         so that local only translations are not distributed.
29119
29120 2010-07-04  Bruno Haible  <bruno@clisp.org>
29121
29122         fsusage: Clarify which code applies to which platforms.
29123         * m4/fsusage.m4 (gl_FSUSAGE): Clarify which test succeeds on which
29124         platform.
29125         * lib/fsusage.c (get_fs_usage): Likewise.
29126
29127 2010-07-04  Bruno Haible  <bruno@clisp.org>
29128
29129         havelib: Fix bug when AC_LIB_FROMPACKAGE is used more than twice.
29130         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): Use m4_defn.
29131         Reported by Martin Lambers <marlam@marlam.de>.
29132
29133 2010-07-04  Jim Meyering  <meyering@redhat.com>
29134
29135         hash: once again explicitly disallow insertion of NULL
29136         * lib/hash.c (hash_insert0): Reinstate just-removed test:
29137         inserting a NULL pointer cannot work with these functions.
29138         Add a comment with details.
29139         This reverts part of the 2010-07-01 commit, 5bef1a35
29140         "hash: extend module to deal with non-pointer keys".
29141
29142 2010-07-01  Bruno Haible  <bruno@clisp.org>
29143
29144         stdbool: Update doc.
29145         * doc/posix-headers/stdbool.texi: Mention OpenBSD bug.
29146         Info from Christian Weisgerber <naddy@mips.inka.de>.
29147
29148 2010-07-01  Jim Meyering  <meyering@redhat.com>
29149
29150         hash: extend module to deal with non-pointer keys
29151         * lib/hash.c (hash_insert0): New interface, much like hash_insert
29152         but that allows insertion of non-pointer entries.
29153         Do not disallow an ENTRY value of NULL.
29154         (hash_insert): This is now just a thin wrapper.  Call hash_insert0.
29155         * lib/hash.h (hash_insert0): Declare.
29156
29157 2010-07-01  Christian Weisgerber  <naddy@mips.inka.de>  (tiny change)
29158
29159         gettext: Use AC_GNU_SOURCE as a fallback for AC_USE_SYSTEM_EXTENSIONS.
29160         * m4/fcntl-o.m4 (gl_FCNTL_O_FLAGS): When AC_USE_SYSTEM_EXTENSIONS is
29161         not present (i.e. with autoconf 2.59 and when using gettextize, not
29162         gnulib), require AC_GNU_SOURCE instead.
29163
29164 2010-07-01  Ian Beckwith  <ianb@erislabs.net>
29165
29166         idpriv-drop: Fix tests.
29167         * tests/test-idpriv-drop.su.sh: Refer to the test-idpriv-drop program,
29168         not to the test-idpriv-droptemp program.
29169
29170 2010-06-29  Bruno Haible  <bruno@clisp.org>
29171
29172         string: Fix syntax error with g++ 2.96.
29173         * lib/string.in.h (__pure__): Remove definition.
29174         (_GL_ATTRIBUTE_PURE): New macro.
29175         (memchr, memmem, memrchr, rawmemchr, strchrnul, strnlen, strpbrk,
29176         strstr, strcasestr): Use it instead of __attribute__ ((__pure__)).
29177         Reported by Christian Weisgerber <naddy@mips.inka.de>.
29178
29179 2010-06-28  Ian Beckwith  <ianb@erislabs.net>
29180
29181         unitypes: Fix bug introduced on 2010-05-18.
29182         * modules/unitypes (Files): Really add m4/libunistring-base.m4.
29183
29184 2010-06-22  Eric Blake  <eblake@redhat.com>
29185
29186         memmem: slight optimization
29187         * lib/str-two-way.h (critical_factorization): Update comments.
29188         Reduce work during factorization phase.
29189         Reported by Carlos Bueno <carlos@bueno.org>.
29190
29191 2010-06-21  Bruno Haible  <bruno@clisp.org>
29192
29193         Fix HAVE_CALLOC_POSIX misnomer.
29194         * lib/stdlib.in.h (calloc): Use REPLACE_CALLOC instead of
29195         !HAVE_CALLOC_POSIX.
29196         * m4/calloc.m4 (gl_REPLACE_CALLOC): Set REPLACE_CALLOC instead of
29197         HAVE_CALLOC_POSIX.
29198         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_CALLOC
29199         instead of HAVE_CALLOC_POSIX.
29200         * modules/stdlib (Makefile.am): Substitute REPLACE_CALLOC instead of
29201         HAVE_CALLOC_POSIX.
29202
29203         Use modern idiom for calloc() replacement.
29204         * modules/calloc (configure.ac): Invoke gl_FUNC_CALLOC_GNU instead of
29205         AC_FUNC_CALLOC.
29206         * m4/calloc.m4 (gl_FUNC_CALLOC_GNU): Renamed from AC_FUNC_CALLOC.
29207         Require gl_STDLIB_H_DEFAULTS. Invoke gl_REPLACE_CALLOC.
29208         (gl_FUNC_CALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29209         HAVE_CALLOC_POSIX. Invoke gl_REPLACE_CALLOC.
29210         (gl_REPLACE_CALLOC): New macro.
29211
29212 2010-06-21  Bruno Haible  <bruno@clisp.org>
29213
29214         Fix HAVE_REALLOC_POSIX misnomer.
29215         * lib/stdlib.in.h (realloc): Use REPLACE_REALLOC instead of
29216         !HAVE_REALLOC_POSIX.
29217         * m4/realloc.m4 (gl_REPLACE_REALLOC): Set REPLACE_REALLOC instead of
29218         HAVE_REALLOC_POSIX.
29219         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_REALLOC
29220         instead of HAVE_REALLOC_POSIX.
29221         * modules/stdlib (Makefile.am): Substitute REPLACE_REALLOC instead of
29222         HAVE_REALLOC_POSIX.
29223
29224         Use modern idiom for realloc() replacement.
29225         * modules/realloc (configure.ac): Invoke gl_FUNC_REALLOC_GNU instead of
29226         AC_FUNC_REALLOC.
29227         * m4/realloc.m4 (gl_FUNC_REALLOC_GNU): New macro, mostly copied from
29228         Autoconf's AC_FUNC_REALLOC.
29229         (gl_FUNC_REALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29230         HAVE_REALLOC_POSIX. Invoke gl_REPLACE_REALLOC.
29231         (gl_REPLACE_REALLOC): New macro.
29232         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29233
29234 2010-06-21  Bruno Haible  <bruno@clisp.org>
29235
29236         Fix HAVE_MALLOC_POSIX misnomer.
29237         * lib/stdlib.in.h (malloc): Use REPLACE_MALLOC instead of
29238         !HAVE_MALLOC_POSIX.
29239         * m4/malloc.m4 (gl_REPLACE_MALLOC): Set REPLACE_MALLOC instead of
29240         HAVE_MALLOC_POSIX.
29241         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize REPLACE_MALLOC
29242         instead of HAVE_MALLOC_POSIX.
29243         * modules/stdlib (Makefile.am): Substitute REPLACE_MALLOC instead of
29244         HAVE_MALLOC_POSIX.
29245
29246         Use modern idiom for malloc() replacement.
29247         * modules/malloc (configure.ac): Invoke gl_FUNC_MALLOC_GNU instead of
29248         AC_FUNC_MALLOC.
29249         * m4/malloc.m4 (gl_FUNC_MALLOC_GNU): New macro, mostly copied from
29250         Autoconf's AC_FUNC_MALLOC.
29251         (gl_FUNC_MALLOC_POSIX): Rely on gl_STDLIB_H_DEFAULTS to initialize
29252         HAVE_MALLOC_POSIX. Invoke gl_REPLACE_MALLOC.
29253         (gl_REPLACE_MALLOC): New macro.
29254         Reported by Richard Lloyd <richard.lloyd@connectinternetsolutions.com>.
29255
29256 2010-06-20  Richard Lloyd  <richard.lloyd@connectinternetsolutions.com>
29257
29258         stdio.in.h: fix compilation failure when using HP-UX 11's C compiler
29259         * lib/stdio.in.h: Remove excess _GL_CXXALIAS_RPL macro argument.
29260         This macro takes 3 arguments, not 4.
29261
29262 2010-06-15  Giuseppe Scrivano  <gscrivano@gnu.org>
29263
29264         ipv6: fix detection under mingw
29265         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Include <ws2tcpip.h> for struct
29266         in6_addr.
29267
29268 2010-06-14  Ben Pfaff  <blp@cs.stanford.edu>
29269
29270         * m4/strtod.m4 (gl_FUNC_STRTOD): Factor out common code.  Assume
29271         that strtod() works when cross-compiling to a glibc version known
29272         to work.
29273
29274 2010-06-15  Bruno Haible  <bruno@clisp.org>
29275
29276         * m4/strtod.m4 (gl_FUNC_STRTOD): Stop using AC_FUNC_STRTOD.
29277
29278 2010-06-15  René Berber  <r.berber@computer.org>  (tiny change)
29279
29280         select: Correct timeout.
29281         * lib/select.c (rpl_select): Compute wait_timeout correctly.
29282
29283 2010-06-14  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
29284
29285         git-version-gen: init shell var to avoid env var influence
29286         * build-aux/git-version-gen (v): Init shell var to empty.
29287
29288 2010-06-14  Paul Eggert  <eggert@cs.ucla.edu>
29289
29290         priv-set: Don't assume that priv.h exists merely because getppriv does.
29291         See Jan Andersen's bug report about AIX 5L in
29292         http://lists.gnu.org/archive/html/bug-tar/2010-06/msg00019.html
29293         * m4/priv-set.m4 (gl_PRIV_SET): Check for priv.h.
29294         * lib/priv-set.c: Do nothing unless HAVE_PRIV_H.
29295         * lib/priv-set.h: Likewise.
29296         * tests/test-priv-set.c: Likewise.
29297
29298 2010-06-13  Bruno Haible  <bruno@clisp.org>
29299
29300         relocatable: Make it easier to test whether to install wrappers.
29301         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): New automake conditional
29302         RELOCATABLE_VIA_WRAPPER.
29303
29304 2010-06-13  Bruno Haible  <bruno@clisp.org>
29305
29306         gnulib-tool: Display specified modules and dependencies differently.
29307         * gnulib-tool (func_show_module_list): New function.
29308         (func_import, func_create_testdir): Invoke it.
29309         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
29310
29311 2010-06-13  Bruno Haible  <bruno@clisp.org>
29312
29313         gnulib-tool: Align code of func_import and func_create_testdir.
29314         * gnulib-tool (func_create_testdir): Rename variable saved_modules to
29315         specified_modules.
29316
29317 2010-06-12  Jim Meyering  <meyering@redhat.com>
29318
29319         test-inttostr: avoid spurious failure on Solaris 9
29320         * tests/test-inttostr.c (main): Skip the test when snprintf fails
29321         to accept "%ju".  Reported by Bruno Haible.
29322
29323 2010-06-11  Jim Meyering  <meyering@redhat.com>
29324
29325         test-sys_socket: mark variables as used more readably
29326         * tests/test-sys_socket.c (main): Mark otherwise unused variables
29327         as "used" explicitly via (void) statement casts.  This is more
29328         readable than using them in an artificial return expression.
29329         Suggestion from Bruno Haible.
29330
29331 2010-06-11  Bruno Haible  <bruno@clisp.org>
29332
29333         Avoid some more warnings from "gcc -Wwrite-strings".
29334         * tests/test-argp.c (test_optional): Change 5th and 6th argument type
29335         to 'const char *'.
29336         * tests/test-c-strstr.c (main): Add 'const' to variable declaration.
29337         * tests/test-c-strcasestr.c (main): Likewise.
29338         * tests/test-mbscasestr1.c (main): Likewise.
29339         * tests/test-mbscasestr2.c (main): Likewise.
29340         * tests/test-memmem.c (main): Likewise.
29341         * tests/test-strstr.c (main): Likewise.
29342         * tests/test-strcasestr.c (main): Likewise.
29343
29344 2010-06-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29345
29346         init.sh: change framework_failure_ to fail with status 99, not 1
29347         * tests/init.sh (framework_failure_): Exit 99, not 1.  This informs
29348         automake's parallel-tests rule that this is an unexpected failure,
29349         even if the test is listed in XFAIL_TESTS.
29350
29351 2010-06-11  Jim Meyering  <meyering@redhat.com>
29352
29353         test-inttostr: avoid warnings about 4-6KB literal strings
29354         * tests/test-inttostr.c: Don't use <assert.h>.  Instead, ...
29355         Include "macros.h", for its definition of ASSERT.
29356         (CK): s/assert/ASSERT/
29357         * modules/inttostr-tests (Files): Add macros.h.
29358
29359         init.sh: don't use $ME_ or skip_ before they are defined
29360         * tests/init.sh: Hoist definitions of $ME_ and skip_ to precede
29361         their first uses.  Also hoist their companions: warn_, fail_,
29362         framework_failure_, $stderr_fileno.  Prompted by a patch from
29363         Stefano Lattarini.
29364
29365         test-sys_socket: avoid set-but-not-used warnings from gcc
29366         * tests/test-sys_socket.c (main): Use "i" and "x", in order to
29367         avoid warning about set-but-not-used variables.
29368
29369         test-xvasprintf: avoid 'const' discard warnings
29370         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Use
29371         "const" when assigning from literal strings.
29372         (test_xasprintf): Add "void" in function argument list to placate
29373         -Wstrict-prototypes and to be consistent with test_xvasprintf above.
29374
29375         tests: avoid compilation warnings in argmatch and exclude tests...
29376         in packages that define ARGMATCH_DIE_DECL, like coreutils.
29377         * tests/test-exclude.c [ARGMATCH_DIE_DECL]: Also declare the function.
29378         Since it always exits, declare with the "noreturn" attribute.
29379         * tests/test-argmatch.c: Likewise.
29380
29381         tests: avoid 'const' discard warnings in mbsstr tests
29382         * tests/test-mbsstr1.c (main): Add "const" to avoid trivial warning.
29383         * tests/test-mbsstr2.c (main): Likewise.
29384
29385         test-verify: avoid warning from gcc's -Wmissing-declarations
29386         * tests/test-verify.c (function): Declare to be static.
29387
29388         test-inttostr.c: include <string.h> for use of strcmp
29389         * tests/test-inttostr.c: Include <string.h> for strcmp declaration.
29390
29391         test-linkat: avoid failed assertion on "other" architectures
29392         * tests/test-linkat.c: Include <sys/stat.h>, for declarations of stat,
29393         lstat, mkdir.  Patch by John Rigby, to fix FTBFS on armel, powerpc,
29394         sparc: https://bugs.launchpad.net/bugs/591968
29395
29396 2010-06-11  Jim Meyering  <meyering@redhat.com>
29397
29398         printf.m4: avoid autoconf's "Expanded Before Required" warning
29399         * m4/printf.m4 (gl_SNPRINTF_RETVAL_C99): Define using AC_DEFUN_ONCE,
29400         rather than AC_DEFUN, to avoid the classic "Expanded Before Required"
29401         autoconf warning.
29402
29403 2010-06-10  Ben Pfaff  <blp@cs.stanford.edu>
29404
29405         Replacement header templates are now named with ".in", not "_".
29406         * doc/gnulib-intro.texi: Correct.
29407
29408 2010-06-10  Jim Meyering  <meyering@redhat.com>
29409
29410         inttostr-tests: depend on snprintf, not snprintf-posix
29411         * modules/inttostr-tests (Depends-on): Depend on snprintf, not
29412         snprintf-posix, to avoid this aclocal failure:
29413           missing file gnulib-tests/vasnprintf.c
29414           configure.ac:45: error: expected source file, required through \
29415           AC_LIBSOURCES, not found
29416
29417 2010-06-10  Jim Meyering  <meyering@redhat.com>
29418
29419         inttostr: add a new function, inttostr, and tests
29420         The namesake function was not available.  The existence of the
29421         template file, inttostr.c makes its addition nontrivial.
29422         * lib/anytostr.c: Rename from inttostr.c.
29423         (anytostr): Rename from inttostr.
29424         * lib/inttostr.c: New file.
29425         * modules/inttostr (Files): Add anytostr.c.
29426         (Makefile.am): Set lib_SOURCES instead of ...
29427         * m4/inttostr.m4: Remove uses of AC_LIBOBJ.
29428         * lib/imaxtostr.c: Update use.  s/inttostr/anytostr/
29429         * lib/offtostr.c: Likewise.
29430         * lib/uinttostr.c: Likewise.
29431         * lib/umaxtostr.c: Likewise.
29432         * modules/inttostr-tests: New file.
29433         * tests/test-inttostr.c: New file.  Test these functions.
29434
29435 2010-06-09  Ben Pfaff  <blp@cs.stanford.edu>
29436             Bruno Haible  <bruno@clisp.org>
29437
29438         Add "Extending Gnulib" chapter to manual.
29439         * doc/gnulib.texi (Writing Modules): Add cross-reference to new
29440         chapter.
29441         (Extending Gnulib): New chapter.
29442         * doc/gnulib-intro.texi (Openness): Add cross-reference to new
29443         chapter.
29444
29445 2010-06-09  Bruno Haible  <bruno@clisp.org>
29446
29447         Avoid relocwrapper link errors due to gnulib replacement functions.
29448         * lib/areadlink.c: Use the system's malloc, realloc functions.
29449         (areadlink): Set errno to ENOMEM explicitly.
29450         * modules/areadlink (Depends-on): Remove malloc-posix.
29451         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29452
29453 2010-06-09  Bruno Haible  <bruno@clisp.org>
29454
29455         Avoid relocwrapper link errors due to gnulib replacement functions.
29456         * lib/canonicalize-lgpl.c: Use the system's malloc function.
29457         * lib/malloca.c: Likewise.
29458         * lib/relocatable.c: Likewise.
29459         * lib/progreloc.c: Use the system's malloc, sprintf functions.
29460         * lib/relocwrapper.c: Use the system's fprintf, malloc functions.
29461         * lib/setenv.c: Use the system's malloc, realloc functions.
29462         * lib/strerror.c: Use the system's sprintf function.
29463         Reported by Ben Pfaff <blp@cs.stanford.edu>.
29464
29465 2010-06-04  Bruno Haible  <bruno@clisp.org>
29466
29467         Prefer documented low-level autoconf macro names.
29468         * m4/lib-link.m4: Use m4_translit instead of translit.
29469         * m4/environ.m4: Likewise.
29470         * m4/mathfunc.m4: Likewise.
29471         * m4/onceonly.m4: Likewise.
29472         * m4/stdint.m4: Likewise.
29473         Suggested by Eric Blake.
29474
29475 2010-06-04  Martin Lambers  <marlam@marlam.de>
29476             Bruno Haible  <bruno@clisp.org>
29477
29478         havelib: Allow library names with '+' characters.
29479         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
29480         AC_LIB_FROMPACKAGE, AC_LIB_LINKFLAGS_BODY): Convert '+' in name to '_'.
29481
29482 2010-06-09  Bruno Haible  <bruno@clisp.org>
29483
29484         Module setenv does not depend on 'malloc-posix', 'realloc-posix'.
29485         * lib/setenv.c (__add_to_environ): Set errno to ENOMEM when malloc or
29486         realloc failed.
29487
29488 2010-06-08  Peter Simons  <simons@cryp.to>
29489
29490         maint.mk: make the news-check rule more configurable
29491         * top/maint.mk (news-check-lines-spec): New variable.
29492         (news-check): Use "sed -n 1,10p" in place of "head".
29493
29494 2010-06-07  Jim Meyering  <meyering@redhat.com>
29495
29496         do-release-commit-and-tag: fix typo in --help
29497         * build-aux/do-release-commit-and-tag (Usage): Fix typo in --help.
29498
29499         regex: avoid new dead-code warning with gcc-4.6.0
29500         * lib/regex_internal.c (re_string_reconstruct): #if-0-out a dead
29501         if-block containing a while-loop.  It's been unused for at least
29502         5 years.
29503
29504 2010-06-05  Bruno Haible  <bruno@clisp.org>
29505
29506         * doc/posix-functions/strcoll.texi: Mention Solaris limitation.
29507         Reported by River Tarnell <river.tarnell@wikimedia.de> via Eric Blake.
29508
29509 2010-06-04  Bruno Haible  <bruno@clisp.org>
29510
29511         Update to GNU gettext 0.18.1.
29512         * modules/gettext (configure.ac): Require gettext infrastructure from
29513         version 0.18.1.
29514
29515 2010-06-03  Bruno Haible  <bruno@clisp.org>
29516
29517         Don't use AC_LIBOBJ with file names in subdirectories.
29518         * m4/libunistring-base.m4 (gl_LIBUNISTRING_MODULE): Renamed from
29519         gl_LIBUNISTRING_LIBSOURCE. Take a module name as argument, not a file
29520         name. Define an automake conditional. Don't invoke AC_LIBOBJ.
29521         * m4/libunistring.m4 (gl_LIBUNISTRING): Update AC_BEFORE invocation.
29522         * modules/uni*/* (configure.ac): Use gl_LIBUNISTRING_MODULE instead of
29523         gl_LIBUNISTRING_LIBSOURCE.
29524         (Makefile.am): Augment lib_SOURCES here, conditionally.
29525         * NEWS: Drop requirement for Automake option 'subdir-objects'.
29526
29527 2010-06-03  Bruno Haible  <bruno@clisp.org>
29528
29529         Simplify gl_LIBUNISTRING_VERSION_CMP expansion.
29530         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Ensure
29531         expansion does not end with a newline.
29532         (gl_LIBUNISTRING_LIBSOURCE, gl_LIBUNISTRING_LIBHEADER): Avoid
29533         unnecessary newline.
29534
29535 2010-06-03  Bruno Haible  <bruno@clisp.org>
29536
29537         Reduce dependencies.
29538         * tests/test-quotearg.h: New file, extracted from
29539         tests/test-quotearg.c.
29540         * tests/test-quotearg-simple.c: New file, extracted from
29541         tests/test-quotearg.c.
29542         * tests/test-quotearg.c: Don't include <ctype.h>.
29543         (struct result_strings, struct result_groups, LQ, RQ, LQ_ENC, RQ_ENC,
29544         RQ_ESC, inputs, compare, use_quotearg_buffer, use_quotearg,
29545         use_quote_double_quotes, use_quotearg_colon): Moved to
29546         tests/test-quotearg.h.
29547         (results_g, flag_results, custom_quotes, custom_results): Moved
29548         to tests/test-quotearg-simple.c.
29549         (main): Moved the part that does not depend on gettext to
29550         tests/test-quotearg-simple.c. Return 77 if the test cannot be
29551         performed.
29552         * modules/quotearg-simple: New file.
29553         * modules/quotearg-simple-tests: New file.
29554         * modules/quotearg (Depends-on): Add quotearg-simple.
29555         * modules/quotearg-tests (Status): Mark as gettext-dependent-test.
29556         (Files): Add tests/test-quotearg.h.
29557         Reported by Paolo Bonzini.
29558
29559 2010-06-03  Bruno Haible  <bruno@clisp.org>
29560
29561         Reduce dependencies.
29562         * modules/acl (Depends-on): Add gettext-h. Remove gettext.
29563
29564 2010-06-03  Bruno Haible  <bruno@clisp.org>
29565
29566         time: Undefine more broken macros.
29567         * lib/time.in.h: Undefine broken localtime_r and gmtime_r macros only
29568         for pthread-win32. Undefine also asctime_r, ctime_r, rand_r, strtok_r.
29569         Reported by Eric Blake.
29570
29571 2010-06-03  Bruno Haible  <bruno@clisp.org>
29572
29573         Choose among AC_DEFUN_ONCE, AC_DEFUN in a way that aclocal understands.
29574         * m4/iconv.m4 (gl_iconv_AC_DEFUN): New macro.
29575         (AM_ICONV): Define it through gl_iconv_AC_DEFUN.
29576         * m4/libunistring.m4 (gl_libunistring_AC_DEFUN): New macro.
29577         (gl_LIBUNISTRING): Define it through gl_libunistring_AC_DEFUN.
29578         Reported by Ludovic Courtès <ludo@gnu.org>.
29579
29580 2010-06-02  Eric Blake  <eblake@redhat.com>
29581
29582         time: work with mingw + pthreads-win32 library
29583         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Set new variable
29584         if timespec is defined only in pthread.h.
29585         * modules/time (Makefile.am): Substitute it.
29586         * lib/time.in.h (!TIME_H_DEFINES_STRUCT_TIMESPEC): Include
29587         <pthread.h>, when needed.
29588         (GNULIB_TIME_R): Undefine broken localtime_r and gmtime_r macros
29589         from the library.
29590
29591 2010-05-31  Bruno Haible  <bruno@clisp.org>
29592
29593         Avoid expanding two macros in the wrong order.
29594         * m4/libunistring-base.m4 (gl_LIBUNISTRING_LIB_PREPARE): Require
29595         gl_LIBUNISTRING if it is defined.
29596         * m4/libunistring.m4 (gl_LIBUNISTRING): Define using AC_DEFUN_ONCE for
29597         autoconf >= 2.64.
29598         Reported by Ludovic Courtès <ludo@gnu.org>.
29599
29600 2010-05-27  Jim Meyering  <meyering@redhat.com>
29601
29602         maint.mk: also prohibit "#undef" of always-defined symbols
29603         * top/maint.mk (def_sym_regex): Handle #undef as well as #define.
29604         Allow more than one space before the symbol name.
29605         (sc_prohibit_always-defined_macros): Use grep's -E, now that
29606         the regexp uses alternation.
29607
29608 2010-05-26  Eric Blake  <eblake@redhat.com>
29609
29610         maint.mk: avoid echo -e
29611         * top/maint.mk (gzip_rsyncable, _ignore_case, _sc_say_and_exit):
29612         Convert all uses of echo -* to printf.
29613         Reported by Matthias Bolte.
29614
29615 2010-05-25  Bruno Haible  <bruno@clisp.org>
29616
29617         Update to GNU gettext 0.18, part 2.
29618         * build-aux/po/Makefile.in.in: Update to GNU gettext 0.18.
29619         Reported by Martin von Gagern <Martin.vGagern@gmx.net>.
29620
29621 2010-05-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29622
29623         Add missing include in test-pwrite.c.
29624         * tests/test-pwrite.c: Include string.h, for strcmp.
29625
29626 2010-05-24  Bruno Haible  <bruno@clisp.org>
29627
29628         * NEWS: Mention requirement for Automake option 'subdir-objects'.
29629
29630 2010-05-24  Bruno Haible  <bruno@clisp.org>
29631
29632         Don't use conversion with transliteration in u{8,16,32}_strcoll.
29633         * lib/unistr/u-strcoll.h (FUNC): Use U_STRCONV_TO_ENCODING with
29634         iconveh_error argument.
29635         * lib/unistr/u8-strcoll.c: Define U_STRCONV_TO_ENCODING instead of
29636         U_STRCONV_TO_LOCALE.
29637         * lib/unistr/u16-strcoll.c: Likewise.
29638         * lib/unistr/u32-strcoll.c: Likewise.
29639         * modules/unistr/u8-strcoll (Depends-on): Add
29640         uniconv/u8-strconv-to-enc, localcharset. Remove
29641         uniconv/u8-strconv-to-locale.
29642         (configure.ac): Bump version number.
29643         * modules/unistr/u16-strcoll (Depends-on): Add
29644         uniconv/u16-strconv-to-enc, localcharset. Remove
29645         uniconv/u16-strconv-to-locale.
29646         (configure.ac): Bump version number.
29647         * modules/unistr/u32-strcoll (Depends-on): Add
29648         uniconv/u32-strconv-to-enc, localcharset. Remove
29649         uniconv/u32-strconv-to-locale.
29650         (configure.ac): Bump version number.
29651
29652 2010-05-24  Bruno Haible  <bruno@clisp.org>
29653
29654         Avoid a test failure on NetBSD 5.0.
29655         * tests/test-striconveh.c (main): On NetBSD, skip a test that triggers
29656         an iconv() bug.
29657
29658 2010-05-24  Bruno Haible  <bruno@clisp.org>
29659
29660         Adjust #include directive style.
29661         * modules/regex (Includes): Recommend to write <regex.h>.
29662
29663 2010-05-24  Bruno Haible  <bruno@clisp.org>
29664
29665         regex: Don't require alloca.
29666         * modules/regex (Depends-on): Remove alloca. Add alloca-opt.
29667         * lib/regex_internal.h (alloca): Ensure it's defined even if we call it
29668         only inside if (0).
29669
29670 2010-05-23  Jim Meyering  <meyering@redhat.com>
29671
29672         test-renameat.c: include <sys/stat.h>
29673         * tests/test-renameat.c: Include <sys/stat.h>; required for
29674         definition of S_IS* macros.
29675
29676 2010-05-23  Ben Pfaff  <blp@cs.stanford.edu>
29677
29678         Update maintainer documentation for 'relocatable-prog' module.
29679         * doc/relocatable-maint.texi: Update.
29680         Comments by Bruno Haible.
29681
29682 2010-05-23  Bruno Haible  <bruno@clisp.org>
29683
29684         git-merge-changelog: Enable --split-merged-entry by default.
29685         * lib/git-merge-changelog.c (main): Set split_merged_entry to true.
29686         (usage): Don't mention this option any more.
29687         Reported by Ralf Wildenhues.
29688
29689 2010-05-23  Jim Meyering  <meyering@redhat.com>
29690
29691         test-pwrite: do not leave behind a test file named "out"
29692         Revert commit d8fa18472a54c1cb2674c296b3d82443f234d5f7.
29693         The trivial-looking use of init.sh is really necessary.
29694         It ensures that the temporary file, "out", is created in
29695         a temporary directory, and removed upon termination.
29696         * tests/test-pwrite.sh: Re-add file.
29697         * modules/pwrite-tests: Reference it.
29698
29699 2010-05-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
29700
29701         Fix output redirection buglet in init.sh.
29702         * tests/init.sh: Fix redirection of stderr.
29703
29704 2010-05-20  Simon Josefsson  <simon@josefsson.org>
29705
29706         * modules/valgrind-tests (configure.ac): Invoke gl_VALGRIND_TESTS.
29707
29708 2010-05-17  Simon Josefsson  <simon@josefsson.org>
29709
29710         * modules/valgrind-tests: New file.
29711         * m4/valgrind-tests.m4: New file.
29712         * doc/valgrind-tests.texi: New file.
29713         * doc/gnulib.texi (Running self-tests under valgrind): New
29714         section.
29715
29716 2010-05-19  Bruno Haible  <bruno@clisp.org>
29717
29718         Clean up dead code in recent commit.
29719         * m4/libunistring-base.m4 (gl_LIBUNISTRING_VERSION_CMP): Include the
29720         body of gl_LIBUNISTRING_VERSION_CMP_ORIG as fallback.
29721         (gl_LIBUNISTRING_VERSION_CMP_ORIG): Remove macro.
29722         Suggested by Paolo Bonzini.
29723
29724 2010-05-19  Bruno Haible  <bruno@clisp.org>
29725
29726         Avoid valgrind error reports from libunistring.
29727         * lib/libunistring.valgrind: New file, based on lib/malloca.valgrind.
29728         * modules/libunistring (Files): Add it.
29729         * modules/libunistring-optional (Files): Likewise.
29730
29731 2010-05-18  Paolo Bonzini  <bonzini@gnu.org>
29732             Bruno Haible  <bruno@clisp.org>
29733
29734         New module 'libunistring-optional'.
29735         * modules/libunistring-optional: New file.
29736         * m4/libunistring-base.m4: New file.
29737         * m4/libunistring-optional.m4: New file.
29738         * lib/unicase.in.h: Renamed from lib/unicase.h.
29739         * lib/uniconv.in.h: Renamed from lib/uniconv.h.
29740         * lib/unictype.in.h: Renamed from lib/unictype.h.
29741         * lib/unilbrk.in.h: Renamed from lib/unilbrk.h.
29742         * lib/uniname.in.h: Renamed from lib/uniname.h.
29743         * lib/uninorm.in.h: Renamed from lib/uninorm.h.
29744         * lib/unistdio.in.h: Renamed from lib/unistdio.h.
29745         * lib/unistr.in.h: Renamed from lib/unistr.h.
29746         * lib/unitypes.in.h: Renamed from lib/unitypes.h.
29747         * lib/uniwbrk.in.h: Renamed from lib/uniwbrk.h.
29748         * lib/uniwidth.in.h: Renamed from lib/uniwidth.h.
29749         * m4/libunistring.m4 (gl_LIBUNISTRING_CORE): Renamed from
29750         gl_LIBUNISTRING. If the library was found, determine the installed
29751         version and set LIBUNISTRING_VERSION.
29752         (gl_LIBUNISTRING): New macro, as a wrapper arount it. Document that it
29753         sets LIBUNISTRING_VERSION. If the module libunistring-optional is used,
29754         handle a configuration option --with-included-libunistring.
29755         * modules/libunistring (Files): Add m4/absolute-header.m4.
29756         * modules/unicase/base (Files): Use unicase.in.h instead of unicase.h.
29757         Add m4/libunistring-base.m4.
29758         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29759         (Makefile.am): Build unicase.h from unicase.in.h.
29760         * modules/uniconv/base (Files): Use uniconv.in.h instead of uniconv.h.
29761         Add m4/libunistring-base.m4.
29762         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29763         (Makefile.am): Build uniconv.h from uniconv.in.h.
29764         * modules/unictype/base (Files): Use unictype.in.h instead of
29765         unictype.h. Add m4/libunistring-base.m4.
29766         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29767         (Makefile.am): Build unictype.h from unictype.in.h.
29768         * modules/unilbrk/base (Files): Use unilbrk.in.h instead of unilbrk.h.
29769         Add m4/libunistring-base.m4.
29770         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29771         (Makefile.am): Build unilbrk.h from unilbrk.in.h.
29772         * modules/uniname/base (Files): Use uniname.in.h instead of uniname.h.
29773         Add m4/libunistring-base.m4.
29774         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29775         (Makefile.am): Build uniname.h from uniname.in.h.
29776         * modules/uninorm/base (Files): Use uninorm.in.h instead of uninorm.h.
29777         Add m4/libunistring-base.m4.
29778         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29779         (Makefile.am): Build uninorm.h from uninorm.in.h.
29780         * modules/unistdio/base (Files): Use unistdio.in.h instead of
29781         unistdio.h. Add m4/libunistring-base.m4.
29782         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29783         (Makefile.am): Build unistdio.h from unistdio.in.h.
29784         * modules/unistr/base (Files): Use unistr.in.h instead of unistr.h.
29785         Add m4/libunistring-base.m4.
29786         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29787         (Makefile.am): Build unistr.h from unistr.in.h.
29788         * modules/unitypes (Files): Use unitypes.in.h instead of unitypes.h.
29789         Add m4/libunistring-base.m4.
29790         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29791         (Makefile.am): Build unitypes.h from unitypes.in.h.
29792         * modules/uniwbrk/base (Files): Use uniwbrk.in.h instead of uniwbrk.h.
29793         Add m4/libunistring-base.m4.
29794         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29795         (Makefile.am): Build uniwbrk.h from uniwbrk.in.h.
29796         * modules/uniwidth/base (Files): Use uniwidth.in.h instead of
29797         uniwidth.h. Add m4/libunistring-base.m4.
29798         (configure.ac): Invoke gl_LIBUNISTRING_LIBHEADER.
29799         (Makefile.am): Build uniwidth.h from uniwidth.in.h.
29800         * modules/unicase/empty-prefix-context: Use gl_LIBUNISTRING_LIBSOURCE
29801         instead of augmenting lib_SOURCES.
29802         * modules/unicase/empty-suffix-context: Likewise.
29803         * modules/unicase/locale-language: Likewise.
29804         * modules/unicase/tolower: Likewise.
29805         * modules/unicase/totitle: Likewise.
29806         * modules/unicase/toupper: Likewise.
29807         * modules/unicase/u8-casecmp: Likewise.
29808         * modules/unicase/u8-casecoll: Likewise.
29809         * modules/unicase/u8-casefold: Likewise.
29810         * modules/unicase/u8-casexfrm: Likewise.
29811         * modules/unicase/u8-ct-casefold: Likewise.
29812         * modules/unicase/u8-ct-tolower: Likewise.
29813         * modules/unicase/u8-ct-totitle: Likewise.
29814         * modules/unicase/u8-ct-toupper: Likewise.
29815         * modules/unicase/u8-is-cased: Likewise.
29816         * modules/unicase/u8-is-casefolded: Likewise.
29817         * modules/unicase/u8-is-lowercase: Likewise.
29818         * modules/unicase/u8-is-titlecase: Likewise.
29819         * modules/unicase/u8-is-uppercase: Likewise.
29820         * modules/unicase/u8-prefix-context: Likewise.
29821         * modules/unicase/u8-suffix-context: Likewise.
29822         * modules/unicase/u8-tolower: Likewise.
29823         * modules/unicase/u8-totitle: Likewise.
29824         * modules/unicase/u8-toupper: Likewise.
29825         * modules/unicase/u16-casecmp: Likewise.
29826         * modules/unicase/u16-casecoll: Likewise.
29827         * modules/unicase/u16-casefold: Likewise.
29828         * modules/unicase/u16-casexfrm: Likewise.
29829         * modules/unicase/u16-ct-casefold: Likewise.
29830         * modules/unicase/u16-ct-tolower: Likewise.
29831         * modules/unicase/u16-ct-totitle: Likewise.
29832         * modules/unicase/u16-ct-toupper: Likewise.
29833         * modules/unicase/u16-is-cased: Likewise.
29834         * modules/unicase/u16-is-casefolded: Likewise.
29835         * modules/unicase/u16-is-lowercase: Likewise.
29836         * modules/unicase/u16-is-titlecase: Likewise.
29837         * modules/unicase/u16-is-uppercase: Likewise.
29838         * modules/unicase/u16-prefix-context: Likewise.
29839         * modules/unicase/u16-suffix-context: Likewise.
29840         * modules/unicase/u16-tolower: Likewise.
29841         * modules/unicase/u16-totitle: Likewise.
29842         * modules/unicase/u16-toupper: Likewise.
29843         * modules/unicase/u32-casecmp: Likewise.
29844         * modules/unicase/u32-casecoll: Likewise.
29845         * modules/unicase/u32-casefold: Likewise.
29846         * modules/unicase/u32-casexfrm: Likewise.
29847         * modules/unicase/u32-ct-casefold: Likewise.
29848         * modules/unicase/u32-ct-tolower: Likewise.
29849         * modules/unicase/u32-ct-totitle: Likewise.
29850         * modules/unicase/u32-ct-toupper: Likewise.
29851         * modules/unicase/u32-is-cased: Likewise.
29852         * modules/unicase/u32-is-casefolded: Likewise.
29853         * modules/unicase/u32-is-lowercase: Likewise.
29854         * modules/unicase/u32-is-titlecase: Likewise.
29855         * modules/unicase/u32-is-uppercase: Likewise.
29856         * modules/unicase/u32-prefix-context: Likewise.
29857         * modules/unicase/u32-suffix-context: Likewise.
29858         * modules/unicase/u32-tolower: Likewise.
29859         * modules/unicase/u32-totitle: Likewise.
29860         * modules/unicase/u32-toupper: Likewise.
29861         * modules/unicase/ulc-casecmp: Likewise.
29862         * modules/unicase/ulc-casecoll: Likewise.
29863         * modules/unicase/ulc-casexfrm: Likewise.
29864         * modules/uniconv/u8-conv-from-enc: Likewise.
29865         * modules/uniconv/u8-conv-to-enc: Likewise.
29866         * modules/uniconv/u8-strconv-from-enc: Likewise.
29867         * modules/uniconv/u8-strconv-from-locale: Likewise.
29868         * modules/uniconv/u8-strconv-to-enc: Likewise.
29869         * modules/uniconv/u8-strconv-to-locale: Likewise.
29870         * modules/uniconv/u16-conv-from-enc: Likewise.
29871         * modules/uniconv/u16-conv-to-enc: Likewise.
29872         * modules/uniconv/u16-strconv-from-enc: Likewise.
29873         * modules/uniconv/u16-strconv-from-locale: Likewise.
29874         * modules/uniconv/u16-strconv-to-enc: Likewise.
29875         * modules/uniconv/u16-strconv-to-locale: Likewise.
29876         * modules/uniconv/u32-conv-from-enc: Likewise.
29877         * modules/uniconv/u32-conv-to-enc: Likewise.
29878         * modules/uniconv/u32-strconv-from-enc: Likewise.
29879         * modules/uniconv/u32-strconv-from-locale: Likewise.
29880         * modules/uniconv/u32-strconv-to-enc: Likewise.
29881         * modules/uniconv/u32-strconv-to-locale: Likewise.
29882         * modules/unictype/bidicategory-byname: Likewise.
29883         * modules/unictype/bidicategory-name: Likewise.
29884         * modules/unictype/bidicategory-of: Likewise.
29885         * modules/unictype/bidicategory-test: Likewise.
29886         * modules/unictype/block-list: Likewise.
29887         * modules/unictype/block-test: Likewise.
29888         * modules/unictype/category-C: Likewise.
29889         * modules/unictype/category-Cc: Likewise.
29890         * modules/unictype/category-Cf: Likewise.
29891         * modules/unictype/category-Cn: Likewise.
29892         * modules/unictype/category-Co: Likewise.
29893         * modules/unictype/category-Cs: Likewise.
29894         * modules/unictype/category-L: Likewise.
29895         * modules/unictype/category-Ll: Likewise.
29896         * modules/unictype/category-Lm: Likewise.
29897         * modules/unictype/category-Lo: Likewise.
29898         * modules/unictype/category-Lt: Likewise.
29899         * modules/unictype/category-Lu: Likewise.
29900         * modules/unictype/category-M: Likewise.
29901         * modules/unictype/category-Mc: Likewise.
29902         * modules/unictype/category-Me: Likewise.
29903         * modules/unictype/category-Mn: Likewise.
29904         * modules/unictype/category-N: Likewise.
29905         * modules/unictype/category-Nd: Likewise.
29906         * modules/unictype/category-Nl: Likewise.
29907         * modules/unictype/category-No: Likewise.
29908         * modules/unictype/category-P: Likewise.
29909         * modules/unictype/category-Pc: Likewise.
29910         * modules/unictype/category-Pd: Likewise.
29911         * modules/unictype/category-Pe: Likewise.
29912         * modules/unictype/category-Pf: Likewise.
29913         * modules/unictype/category-Pi: Likewise.
29914         * modules/unictype/category-Po: Likewise.
29915         * modules/unictype/category-Ps: Likewise.
29916         * modules/unictype/category-S: Likewise.
29917         * modules/unictype/category-Sc: Likewise.
29918         * modules/unictype/category-Sk: Likewise.
29919         * modules/unictype/category-Sm: Likewise.
29920         * modules/unictype/category-So: Likewise.
29921         * modules/unictype/category-Z: Likewise.
29922         * modules/unictype/category-Zl: Likewise.
29923         * modules/unictype/category-Zp: Likewise.
29924         * modules/unictype/category-Zs: Likewise.
29925         * modules/unictype/category-and: Likewise.
29926         * modules/unictype/category-and-not: Likewise.
29927         * modules/unictype/category-byname: Likewise.
29928         * modules/unictype/category-name: Likewise.
29929         * modules/unictype/category-none: Likewise.
29930         * modules/unictype/category-of: Likewise.
29931         * modules/unictype/category-or: Likewise.
29932         * modules/unictype/category-test: Likewise.
29933         * modules/unictype/combining-class: Likewise.
29934         * modules/unictype/ctype-alnum: Likewise.
29935         * modules/unictype/ctype-alpha: Likewise.
29936         * modules/unictype/ctype-blank: Likewise.
29937         * modules/unictype/ctype-cntrl: Likewise.
29938         * modules/unictype/ctype-digit: Likewise.
29939         * modules/unictype/ctype-graph: Likewise.
29940         * modules/unictype/ctype-lower: Likewise.
29941         * modules/unictype/ctype-print: Likewise.
29942         * modules/unictype/ctype-punct: Likewise.
29943         * modules/unictype/ctype-space: Likewise.
29944         * modules/unictype/ctype-upper: Likewise.
29945         * modules/unictype/ctype-xdigit: Likewise.
29946         * modules/unictype/decimal-digit: Likewise.
29947         * modules/unictype/digit: Likewise.
29948         * modules/unictype/mirror: Likewise.
29949         * modules/unictype/numeric: Likewise.
29950         * modules/unictype/property-alphabetic: Likewise.
29951         * modules/unictype/property-ascii-hex-digit: Likewise.
29952         * modules/unictype/property-bidi-arabic-digit: Likewise.
29953         * modules/unictype/property-bidi-arabic-right-to-left: Likewise.
29954         * modules/unictype/property-bidi-block-separator: Likewise.
29955         * modules/unictype/property-bidi-boundary-neutral: Likewise.
29956         * modules/unictype/property-bidi-common-separator: Likewise.
29957         * modules/unictype/property-bidi-control: Likewise.
29958         * modules/unictype/property-bidi-embedding-or-override: Likewise.
29959         * modules/unictype/property-bidi-eur-num-separator: Likewise.
29960         * modules/unictype/property-bidi-eur-num-terminator: Likewise.
29961         * modules/unictype/property-bidi-european-digit: Likewise.
29962         * modules/unictype/property-bidi-hebrew-right-to-left: Likewise.
29963         * modules/unictype/property-bidi-left-to-right: Likewise.
29964         * modules/unictype/property-bidi-non-spacing-mark: Likewise.
29965         * modules/unictype/property-bidi-other-neutral: Likewise.
29966         * modules/unictype/property-bidi-pdf: Likewise.
29967         * modules/unictype/property-bidi-segment-separator: Likewise.
29968         * modules/unictype/property-bidi-whitespace: Likewise.
29969         * modules/unictype/property-byname: Likewise.
29970         * modules/unictype/property-combining: Likewise.
29971         * modules/unictype/property-composite: Likewise.
29972         * modules/unictype/property-currency-symbol: Likewise.
29973         * modules/unictype/property-dash: Likewise.
29974         * modules/unictype/property-decimal-digit: Likewise.
29975         * modules/unictype/property-default-ignorable-code-point: Likewise.
29976         * modules/unictype/property-deprecated: Likewise.
29977         * modules/unictype/property-diacritic: Likewise.
29978         * modules/unictype/property-extender: Likewise.
29979         * modules/unictype/property-format-control: Likewise.
29980         * modules/unictype/property-grapheme-base: Likewise.
29981         * modules/unictype/property-grapheme-extend: Likewise.
29982         * modules/unictype/property-grapheme-link: Likewise.
29983         * modules/unictype/property-hex-digit: Likewise.
29984         * modules/unictype/property-hyphen: Likewise.
29985         * modules/unictype/property-id-continue: Likewise.
29986         * modules/unictype/property-id-start: Likewise.
29987         * modules/unictype/property-ideographic: Likewise.
29988         * modules/unictype/property-ids-binary-operator: Likewise.
29989         * modules/unictype/property-ids-trinary-operator: Likewise.
29990         * modules/unictype/property-ignorable-control: Likewise.
29991         * modules/unictype/property-iso-control: Likewise.
29992         * modules/unictype/property-join-control: Likewise.
29993         * modules/unictype/property-left-of-pair: Likewise.
29994         * modules/unictype/property-line-separator: Likewise.
29995         * modules/unictype/property-logical-order-exception: Likewise.
29996         * modules/unictype/property-lowercase: Likewise.
29997         * modules/unictype/property-math: Likewise.
29998         * modules/unictype/property-non-break: Likewise.
29999         * modules/unictype/property-not-a-character: Likewise.
30000         * modules/unictype/property-numeric: Likewise.
30001         * modules/unictype/property-other-alphabetic: Likewise.
30002         * modules/unictype/property-other-default-ignorable-code-point: Likewise.
30003         * modules/unictype/property-other-grapheme-extend: Likewise.
30004         * modules/unictype/property-other-id-continue: Likewise.
30005         * modules/unictype/property-other-id-start: Likewise.
30006         * modules/unictype/property-other-lowercase: Likewise.
30007         * modules/unictype/property-other-math: Likewise.
30008         * modules/unictype/property-other-uppercase: Likewise.
30009         * modules/unictype/property-paired-punctuation: Likewise.
30010         * modules/unictype/property-paragraph-separator: Likewise.
30011         * modules/unictype/property-pattern-syntax: Likewise.
30012         * modules/unictype/property-pattern-white-space: Likewise.
30013         * modules/unictype/property-private-use: Likewise.
30014         * modules/unictype/property-punctuation: Likewise.
30015         * modules/unictype/property-quotation-mark: Likewise.
30016         * modules/unictype/property-radical: Likewise.
30017         * modules/unictype/property-sentence-terminal: Likewise.
30018         * modules/unictype/property-soft-dotted: Likewise.
30019         * modules/unictype/property-space: Likewise.
30020         * modules/unictype/property-terminal-punctuation: Likewise.
30021         * modules/unictype/property-test: Likewise.
30022         * modules/unictype/property-titlecase: Likewise.
30023         * modules/unictype/property-unassigned-code-value: Likewise.
30024         * modules/unictype/property-unified-ideograph: Likewise.
30025         * modules/unictype/property-uppercase: Likewise.
30026         * modules/unictype/property-variation-selector: Likewise.
30027         * modules/unictype/property-white-space: Likewise.
30028         * modules/unictype/property-xid-continue: Likewise.
30029         * modules/unictype/property-xid-start: Likewise.
30030         * modules/unictype/property-zero-width: Likewise.
30031         * modules/unictype/scripts: Likewise.
30032         * modules/unictype/syntax-c-ident: Likewise.
30033         * modules/unictype/syntax-c-whitespace: Likewise.
30034         * modules/unictype/syntax-java-ident: Likewise.
30035         * modules/unictype/syntax-java-whitespace: Likewise.
30036         * modules/unilbrk/u8-possible-linebreaks: Likewise.
30037         * modules/unilbrk/u8-width-linebreaks: Likewise.
30038         * modules/unilbrk/u16-possible-linebreaks: Likewise.
30039         * modules/unilbrk/u16-width-linebreaks: Likewise.
30040         * modules/unilbrk/u32-possible-linebreaks: Likewise.
30041         * modules/unilbrk/u32-width-linebreaks: Likewise.
30042         * modules/unilbrk/ulc-possible-linebreaks: Likewise.
30043         * modules/unilbrk/ulc-width-linebreaks: Likewise.
30044         * modules/uniname/uniname: Likewise.
30045         * modules/uninorm/canonical-decomposition: Likewise.
30046         * modules/uninorm/composition: Likewise.
30047         * modules/uninorm/decomposing-form: Likewise.
30048         * modules/uninorm/decomposition: Likewise.
30049         * modules/uninorm/filter: Likewise.
30050         * modules/uninorm/nfc: Likewise.
30051         * modules/uninorm/nfd: Likewise.
30052         * modules/uninorm/nfkc: Likewise.
30053         * modules/uninorm/nfkd: Likewise.
30054         * modules/uninorm/u8-normalize: Likewise.
30055         * modules/uninorm/u8-normcmp: Likewise.
30056         * modules/uninorm/u8-normcoll: Likewise.
30057         * modules/uninorm/u8-normxfrm: Likewise.
30058         * modules/uninorm/u16-normalize: Likewise.
30059         * modules/uninorm/u16-normcmp: Likewise.
30060         * modules/uninorm/u16-normcoll: Likewise.
30061         * modules/uninorm/u16-normxfrm: Likewise.
30062         * modules/uninorm/u32-normalize: Likewise.
30063         * modules/uninorm/u32-normcmp: Likewise.
30064         * modules/uninorm/u32-normcoll: Likewise.
30065         * modules/uninorm/u32-normxfrm: Likewise.
30066         * modules/unistdio/u8-asnprintf: Likewise.
30067         * modules/unistdio/u8-asprintf: Likewise.
30068         * modules/unistdio/u8-snprintf: Likewise.
30069         * modules/unistdio/u8-sprintf: Likewise.
30070         * modules/unistdio/u8-u8-asnprintf: Likewise.
30071         * modules/unistdio/u8-u8-asprintf: Likewise.
30072         * modules/unistdio/u8-u8-snprintf: Likewise.
30073         * modules/unistdio/u8-u8-sprintf: Likewise.
30074         * modules/unistdio/u8-u8-vasnprintf: Likewise.
30075         * modules/unistdio/u8-u8-vasprintf: Likewise.
30076         * modules/unistdio/u8-u8-vsnprintf: Likewise.
30077         * modules/unistdio/u8-u8-vsprintf: Likewise.
30078         * modules/unistdio/u8-vasnprintf: Likewise.
30079         * modules/unistdio/u8-vasprintf: Likewise.
30080         * modules/unistdio/u8-vsnprintf: Likewise.
30081         * modules/unistdio/u8-vsprintf: Likewise.
30082         * modules/unistdio/u16-asnprintf: Likewise.
30083         * modules/unistdio/u16-asprintf: Likewise.
30084         * modules/unistdio/u16-snprintf: Likewise.
30085         * modules/unistdio/u16-sprintf: Likewise.
30086         * modules/unistdio/u16-u16-asnprintf: Likewise.
30087         * modules/unistdio/u16-u16-asprintf: Likewise.
30088         * modules/unistdio/u16-u16-snprintf: Likewise.
30089         * modules/unistdio/u16-u16-sprintf: Likewise.
30090         * modules/unistdio/u16-u16-vasnprintf: Likewise.
30091         * modules/unistdio/u16-u16-vasprintf: Likewise.
30092         * modules/unistdio/u16-u16-vsnprintf: Likewise.
30093         * modules/unistdio/u16-u16-vsprintf: Likewise.
30094         * modules/unistdio/u16-vasnprintf: Likewise.
30095         * modules/unistdio/u16-vasprintf: Likewise.
30096         * modules/unistdio/u16-vsnprintf: Likewise.
30097         * modules/unistdio/u16-vsprintf: Likewise.
30098         * modules/unistdio/u32-asnprintf: Likewise.
30099         * modules/unistdio/u32-asprintf: Likewise.
30100         * modules/unistdio/u32-snprintf: Likewise.
30101         * modules/unistdio/u32-sprintf: Likewise.
30102         * modules/unistdio/u32-u32-asnprintf: Likewise.
30103         * modules/unistdio/u32-u32-asprintf: Likewise.
30104         * modules/unistdio/u32-u32-snprintf: Likewise.
30105         * modules/unistdio/u32-u32-sprintf: Likewise.
30106         * modules/unistdio/u32-u32-vasnprintf: Likewise.
30107         * modules/unistdio/u32-u32-vasprintf: Likewise.
30108         * modules/unistdio/u32-u32-vsnprintf: Likewise.
30109         * modules/unistdio/u32-u32-vsprintf: Likewise.
30110         * modules/unistdio/u32-vasnprintf: Likewise.
30111         * modules/unistdio/u32-vasprintf: Likewise.
30112         * modules/unistdio/u32-vsnprintf: Likewise.
30113         * modules/unistdio/u32-vsprintf: Likewise.
30114         * modules/unistdio/ulc-asnprintf: Likewise.
30115         * modules/unistdio/ulc-asprintf: Likewise.
30116         * modules/unistdio/ulc-fprintf: Likewise.
30117         * modules/unistdio/ulc-snprintf: Likewise.
30118         * modules/unistdio/ulc-sprintf: Likewise.
30119         * modules/unistdio/ulc-vasnprintf: Likewise.
30120         * modules/unistdio/ulc-vasprintf: Likewise.
30121         * modules/unistdio/ulc-vfprintf: Likewise.
30122         * modules/unistdio/ulc-vsnprintf: Likewise.
30123         * modules/unistdio/ulc-vsprintf: Likewise.
30124         * modules/unistr/u8-check: Likewise.
30125         * modules/unistr/u8-chr: Likewise.
30126         * modules/unistr/u8-cmp: Likewise.
30127         * modules/unistr/u8-cmp2: Likewise.
30128         * modules/unistr/u8-cpy: Likewise.
30129         * modules/unistr/u8-cpy-alloc: Likewise.
30130         * modules/unistr/u8-endswith: Likewise.
30131         * modules/unistr/u8-mblen: Likewise.
30132         * modules/unistr/u8-mbsnlen: Likewise.
30133         * modules/unistr/u8-mbtouc: Likewise.
30134         * modules/unistr/u8-mbtouc-unsafe: Likewise.
30135         * modules/unistr/u8-mbtoucr: Likewise.
30136         * modules/unistr/u8-move: Likewise.
30137         * modules/unistr/u8-next: Likewise.
30138         * modules/unistr/u8-prev: Likewise.
30139         * modules/unistr/u8-set: Likewise.
30140         * modules/unistr/u8-startswith: Likewise.
30141         * modules/unistr/u8-stpcpy: Likewise.
30142         * modules/unistr/u8-stpncpy: Likewise.
30143         * modules/unistr/u8-strcat: Likewise.
30144         * modules/unistr/u8-strchr: Likewise.
30145         * modules/unistr/u8-strcmp: Likewise.
30146         * modules/unistr/u8-strcoll: Likewise.
30147         * modules/unistr/u8-strcpy: Likewise.
30148         * modules/unistr/u8-strcspn: Likewise.
30149         * modules/unistr/u8-strdup: Likewise.
30150         * modules/unistr/u8-strlen: Likewise.
30151         * modules/unistr/u8-strmblen: Likewise.
30152         * modules/unistr/u8-strmbtouc: Likewise.
30153         * modules/unistr/u8-strncat: Likewise.
30154         * modules/unistr/u8-strncmp: Likewise.
30155         * modules/unistr/u8-strncpy: Likewise.
30156         * modules/unistr/u8-strnlen: Likewise.
30157         * modules/unistr/u8-strpbrk: Likewise.
30158         * modules/unistr/u8-strrchr: Likewise.
30159         * modules/unistr/u8-strspn: Likewise.
30160         * modules/unistr/u8-strstr: Likewise.
30161         * modules/unistr/u8-strtok: Likewise.
30162         * modules/unistr/u8-to-u16: Likewise.
30163         * modules/unistr/u8-to-u32: Likewise.
30164         * modules/unistr/u8-uctomb: Likewise.
30165         * modules/unistr/u16-check: Likewise.
30166         * modules/unistr/u16-chr: Likewise.
30167         * modules/unistr/u16-cmp: Likewise.
30168         * modules/unistr/u16-cmp2: Likewise.
30169         * modules/unistr/u16-cpy: Likewise.
30170         * modules/unistr/u16-cpy-alloc: Likewise.
30171         * modules/unistr/u16-endswith: Likewise.
30172         * modules/unistr/u16-mblen: Likewise.
30173         * modules/unistr/u16-mbsnlen: Likewise.
30174         * modules/unistr/u16-mbtouc: Likewise.
30175         * modules/unistr/u16-mbtouc-unsafe: Likewise.
30176         * modules/unistr/u16-mbtoucr: Likewise.
30177         * modules/unistr/u16-move: Likewise.
30178         * modules/unistr/u16-next: Likewise.
30179         * modules/unistr/u16-prev: Likewise.
30180         * modules/unistr/u16-set: Likewise.
30181         * modules/unistr/u16-startswith: Likewise.
30182         * modules/unistr/u16-stpcpy: Likewise.
30183         * modules/unistr/u16-stpncpy: Likewise.
30184         * modules/unistr/u16-strcat: Likewise.
30185         * modules/unistr/u16-strchr: Likewise.
30186         * modules/unistr/u16-strcmp: Likewise.
30187         * modules/unistr/u16-strcoll: Likewise.
30188         * modules/unistr/u16-strcpy: Likewise.
30189         * modules/unistr/u16-strcspn: Likewise.
30190         * modules/unistr/u16-strdup: Likewise.
30191         * modules/unistr/u16-strlen: Likewise.
30192         * modules/unistr/u16-strmblen: Likewise.
30193         * modules/unistr/u16-strmbtouc: Likewise.
30194         * modules/unistr/u16-strncat: Likewise.
30195         * modules/unistr/u16-strncmp: Likewise.
30196         * modules/unistr/u16-strncpy: Likewise.
30197         * modules/unistr/u16-strnlen: Likewise.
30198         * modules/unistr/u16-strpbrk: Likewise.
30199         * modules/unistr/u16-strrchr: Likewise.
30200         * modules/unistr/u16-strspn: Likewise.
30201         * modules/unistr/u16-strstr: Likewise.
30202         * modules/unistr/u16-strtok: Likewise.
30203         * modules/unistr/u16-to-u32: Likewise.
30204         * modules/unistr/u16-to-u8: Likewise.
30205         * modules/unistr/u16-uctomb: Likewise.
30206         * modules/unistr/u32-check: Likewise.
30207         * modules/unistr/u32-chr: Likewise.
30208         * modules/unistr/u32-cmp: Likewise.
30209         * modules/unistr/u32-cmp2: Likewise.
30210         * modules/unistr/u32-cpy: Likewise.
30211         * modules/unistr/u32-cpy-alloc: Likewise.
30212         * modules/unistr/u32-endswith: Likewise.
30213         * modules/unistr/u32-mblen: Likewise.
30214         * modules/unistr/u32-mbsnlen: Likewise.
30215         * modules/unistr/u32-mbtouc: Likewise.
30216         * modules/unistr/u32-mbtouc-unsafe: Likewise.
30217         * modules/unistr/u32-mbtoucr: Likewise.
30218         * modules/unistr/u32-move: Likewise.
30219         * modules/unistr/u32-next: Likewise.
30220         * modules/unistr/u32-prev: Likewise.
30221         * modules/unistr/u32-set: Likewise.
30222         * modules/unistr/u32-startswith: Likewise.
30223         * modules/unistr/u32-stpcpy: Likewise.
30224         * modules/unistr/u32-stpncpy: Likewise.
30225         * modules/unistr/u32-strcat: Likewise.
30226         * modules/unistr/u32-strchr: Likewise.
30227         * modules/unistr/u32-strcmp: Likewise.
30228         * modules/unistr/u32-strcoll: Likewise.
30229         * modules/unistr/u32-strcpy: Likewise.
30230         * modules/unistr/u32-strcspn: Likewise.
30231         * modules/unistr/u32-strdup: Likewise.
30232         * modules/unistr/u32-strlen: Likewise.
30233         * modules/unistr/u32-strmblen: Likewise.
30234         * modules/unistr/u32-strmbtouc: Likewise.
30235         * modules/unistr/u32-strncat: Likewise.
30236         * modules/unistr/u32-strncmp: Likewise.
30237         * modules/unistr/u32-strncpy: Likewise.
30238         * modules/unistr/u32-strnlen: Likewise.
30239         * modules/unistr/u32-strpbrk: Likewise.
30240         * modules/unistr/u32-strrchr: Likewise.
30241         * modules/unistr/u32-strspn: Likewise.
30242         * modules/unistr/u32-strstr: Likewise.
30243         * modules/unistr/u32-strtok: Likewise.
30244         * modules/unistr/u32-to-u16: Likewise.
30245         * modules/unistr/u32-to-u8: Likewise.
30246         * modules/unistr/u32-uctomb: Likewise.
30247         * modules/uniwbrk/u8-wordbreaks: Likewise.
30248         * modules/uniwbrk/u16-wordbreaks: Likewise.
30249         * modules/uniwbrk/u32-wordbreaks: Likewise.
30250         * modules/uniwbrk/ulc-wordbreaks: Likewise.
30251         * modules/uniwbrk/wordbreak-property: Likewise.
30252         * modules/uniwidth/u8-strwidth: Likewise.
30253         * modules/uniwidth/u8-width: Likewise.
30254         * modules/uniwidth/u16-strwidth: Likewise.
30255         * modules/uniwidth/u16-width: Likewise.
30256         * modules/uniwidth/u32-strwidth: Likewise.
30257         * modules/uniwidth/u32-width: Likewise.
30258         * modules/uniwidth/width: Likewise.
30259         * modules/unicase/cased-tests (Makefile.am): Link all test programs
30260         with $(LIBUNISTRING).
30261         * modules/unicase/ignorable-tests: Likewise.
30262         * modules/unicase/locale-language-tests: Likewise.
30263         * modules/unicase/tolower-tests: Likewise.
30264         * modules/unicase/totitle-tests: Likewise.
30265         * modules/unicase/toupper-tests: Likewise.
30266         * modules/unicase/u8-casecmp-tests: Likewise.
30267         * modules/unicase/u8-casecoll-tests: Likewise.
30268         * modules/unicase/u8-casefold-tests: Likewise.
30269         * modules/unicase/u8-is-cased-tests: Likewise.
30270         * modules/unicase/u8-is-casefolded-tests: Likewise.
30271         * modules/unicase/u8-is-lowercase-tests: Likewise.
30272         * modules/unicase/u8-is-titlecase-tests: Likewise.
30273         * modules/unicase/u8-is-uppercase-tests: Likewise.
30274         * modules/unicase/u8-tolower-tests: Likewise.
30275         * modules/unicase/u8-totitle-tests: Likewise.
30276         * modules/unicase/u8-toupper-tests: Likewise.
30277         * modules/unicase/u16-casecmp-tests: Likewise.
30278         * modules/unicase/u16-casecoll-tests: Likewise.
30279         * modules/unicase/u16-casefold-tests: Likewise.
30280         * modules/unicase/u16-is-cased-tests: Likewise.
30281         * modules/unicase/u16-is-casefolded-tests: Likewise.
30282         * modules/unicase/u16-is-lowercase-tests: Likewise.
30283         * modules/unicase/u16-is-titlecase-tests: Likewise.
30284         * modules/unicase/u16-is-uppercase-tests: Likewise.
30285         * modules/unicase/u16-tolower-tests: Likewise.
30286         * modules/unicase/u16-totitle-tests: Likewise.
30287         * modules/unicase/u16-toupper-tests: Likewise.
30288         * modules/unicase/u32-casecmp-tests: Likewise.
30289         * modules/unicase/u32-casecoll-tests: Likewise.
30290         * modules/unicase/u32-casefold-tests: Likewise.
30291         * modules/unicase/u32-is-cased-tests: Likewise.
30292         * modules/unicase/u32-is-casefolded-tests: Likewise.
30293         * modules/unicase/u32-is-lowercase-tests: Likewise.
30294         * modules/unicase/u32-is-titlecase-tests: Likewise.
30295         * modules/unicase/u32-is-uppercase-tests: Likewise.
30296         * modules/unicase/u32-tolower-tests: Likewise.
30297         * modules/unicase/u32-totitle-tests: Likewise.
30298         * modules/unicase/u32-toupper-tests: Likewise.
30299         * modules/unicase/ulc-casecmp-tests: Likewise.
30300         * modules/unicase/ulc-casecoll-tests: Likewise.
30301         * modules/uniconv/u8-conv-from-enc-tests: Likewise.
30302         * modules/uniconv/u8-conv-to-enc-tests: Likewise.
30303         * modules/uniconv/u8-strconv-from-enc-tests: Likewise.
30304         * modules/uniconv/u8-strconv-to-enc-tests: Likewise.
30305         * modules/uniconv/u16-conv-from-enc-tests: Likewise.
30306         * modules/uniconv/u16-conv-to-enc-tests: Likewise.
30307         * modules/uniconv/u16-strconv-from-enc-tests: Likewise.
30308         * modules/uniconv/u16-strconv-to-enc-tests: Likewise.
30309         * modules/uniconv/u32-conv-from-enc-tests: Likewise.
30310         * modules/uniconv/u32-conv-to-enc-tests: Likewise.
30311         * modules/uniconv/u32-strconv-from-enc-tests: Likewise.
30312         * modules/uniconv/u32-strconv-to-enc-tests: Likewise.
30313         * modules/unictype/bidicategory-byname-tests: Likewise.
30314         * modules/unictype/bidicategory-name-tests: Likewise.
30315         * modules/unictype/bidicategory-of-tests: Likewise.
30316         * modules/unictype/bidicategory-test-tests: Likewise.
30317         * modules/unictype/block-list-tests: Likewise.
30318         * modules/unictype/block-of-tests: Likewise.
30319         * modules/unictype/block-test-tests: Likewise.
30320         * modules/unictype/category-C-tests: Likewise.
30321         * modules/unictype/category-Cc-tests: Likewise.
30322         * modules/unictype/category-Cf-tests: Likewise.
30323         * modules/unictype/category-Cn-tests: Likewise.
30324         * modules/unictype/category-Co-tests: Likewise.
30325         * modules/unictype/category-Cs-tests: Likewise.
30326         * modules/unictype/category-L-tests: Likewise.
30327         * modules/unictype/category-Ll-tests: Likewise.
30328         * modules/unictype/category-Lm-tests: Likewise.
30329         * modules/unictype/category-Lo-tests: Likewise.
30330         * modules/unictype/category-Lt-tests: Likewise.
30331         * modules/unictype/category-Lu-tests: Likewise.
30332         * modules/unictype/category-M-tests: Likewise.
30333         * modules/unictype/category-Mc-tests: Likewise.
30334         * modules/unictype/category-Me-tests: Likewise.
30335         * modules/unictype/category-Mn-tests: Likewise.
30336         * modules/unictype/category-N-tests: Likewise.
30337         * modules/unictype/category-Nd-tests: Likewise.
30338         * modules/unictype/category-Nl-tests: Likewise.
30339         * modules/unictype/category-No-tests: Likewise.
30340         * modules/unictype/category-P-tests: Likewise.
30341         * modules/unictype/category-Pc-tests: Likewise.
30342         * modules/unictype/category-Pd-tests: Likewise.
30343         * modules/unictype/category-Pe-tests: Likewise.
30344         * modules/unictype/category-Pf-tests: Likewise.
30345         * modules/unictype/category-Pi-tests: Likewise.
30346         * modules/unictype/category-Po-tests: Likewise.
30347         * modules/unictype/category-Ps-tests: Likewise.
30348         * modules/unictype/category-S-tests: Likewise.
30349         * modules/unictype/category-Sc-tests: Likewise.
30350         * modules/unictype/category-Sk-tests: Likewise.
30351         * modules/unictype/category-Sm-tests: Likewise.
30352         * modules/unictype/category-So-tests: Likewise.
30353         * modules/unictype/category-Z-tests: Likewise.
30354         * modules/unictype/category-Zl-tests: Likewise.
30355         * modules/unictype/category-Zp-tests: Likewise.
30356         * modules/unictype/category-Zs-tests: Likewise.
30357         * modules/unictype/category-and-not-tests: Likewise.
30358         * modules/unictype/category-and-tests: Likewise.
30359         * modules/unictype/category-byname-tests: Likewise.
30360         * modules/unictype/category-name-tests: Likewise.
30361         * modules/unictype/category-none-tests: Likewise.
30362         * modules/unictype/category-of-tests: Likewise.
30363         * modules/unictype/category-or-tests: Likewise.
30364         * modules/unictype/category-test-withtable-tests: Likewise.
30365         * modules/unictype/combining-class-tests: Likewise.
30366         * modules/unictype/ctype-alnum-tests: Likewise.
30367         * modules/unictype/ctype-alpha-tests: Likewise.
30368         * modules/unictype/ctype-blank-tests: Likewise.
30369         * modules/unictype/ctype-cntrl-tests: Likewise.
30370         * modules/unictype/ctype-digit-tests: Likewise.
30371         * modules/unictype/ctype-graph-tests: Likewise.
30372         * modules/unictype/ctype-lower-tests: Likewise.
30373         * modules/unictype/ctype-print-tests: Likewise.
30374         * modules/unictype/ctype-punct-tests: Likewise.
30375         * modules/unictype/ctype-space-tests: Likewise.
30376         * modules/unictype/ctype-upper-tests: Likewise.
30377         * modules/unictype/ctype-xdigit-tests: Likewise.
30378         * modules/unictype/decimal-digit-tests: Likewise.
30379         * modules/unictype/digit-tests: Likewise.
30380         * modules/unictype/mirror-tests: Likewise.
30381         * modules/unictype/numeric-tests: Likewise.
30382         * modules/unictype/property-alphabetic-tests: Likewise.
30383         * modules/unictype/property-ascii-hex-digit-tests: Likewise.
30384         * modules/unictype/property-bidi-arabic-digit-tests: Likewise.
30385         * modules/unictype/property-bidi-arabic-right-to-left-tests: Likewise.
30386         * modules/unictype/property-bidi-block-separator-tests: Likewise.
30387         * modules/unictype/property-bidi-boundary-neutral-tests: Likewise.
30388         * modules/unictype/property-bidi-common-separator-tests: Likewise.
30389         * modules/unictype/property-bidi-control-tests: Likewise.
30390         * modules/unictype/property-bidi-embedding-or-override-tests: Likewise.
30391         * modules/unictype/property-bidi-eur-num-separator-tests: Likewise.
30392         * modules/unictype/property-bidi-eur-num-terminator-tests: Likewise.
30393         * modules/unictype/property-bidi-european-digit-tests: Likewise.
30394         * modules/unictype/property-bidi-hebrew-right-to-left-tests: Likewise.
30395         * modules/unictype/property-bidi-left-to-right-tests: Likewise.
30396         * modules/unictype/property-bidi-non-spacing-mark-tests: Likewise.
30397         * modules/unictype/property-bidi-other-neutral-tests: Likewise.
30398         * modules/unictype/property-bidi-pdf-tests: Likewise.
30399         * modules/unictype/property-bidi-segment-separator-tests: Likewise.
30400         * modules/unictype/property-bidi-whitespace-tests: Likewise.
30401         * modules/unictype/property-byname-tests: Likewise.
30402         * modules/unictype/property-combining-tests: Likewise.
30403         * modules/unictype/property-composite-tests: Likewise.
30404         * modules/unictype/property-currency-symbol-tests: Likewise.
30405         * modules/unictype/property-dash-tests: Likewise.
30406         * modules/unictype/property-decimal-digit-tests: Likewise.
30407         * modules/unictype/property-default-ignorable-code-point-tests: Likewise.
30408         * modules/unictype/property-deprecated-tests: Likewise.
30409         * modules/unictype/property-diacritic-tests: Likewise.
30410         * modules/unictype/property-extender-tests: Likewise.
30411         * modules/unictype/property-format-control-tests: Likewise.
30412         * modules/unictype/property-grapheme-base-tests: Likewise.
30413         * modules/unictype/property-grapheme-extend-tests: Likewise.
30414         * modules/unictype/property-grapheme-link-tests: Likewise.
30415         * modules/unictype/property-hex-digit-tests: Likewise.
30416         * modules/unictype/property-hyphen-tests: Likewise.
30417         * modules/unictype/property-id-continue-tests: Likewise.
30418         * modules/unictype/property-id-start-tests: Likewise.
30419         * modules/unictype/property-ideographic-tests: Likewise.
30420         * modules/unictype/property-ids-binary-operator-tests: Likewise.
30421         * modules/unictype/property-ids-trinary-operator-tests: Likewise.
30422         * modules/unictype/property-ignorable-control-tests: Likewise.
30423         * modules/unictype/property-iso-control-tests: Likewise.
30424         * modules/unictype/property-join-control-tests: Likewise.
30425         * modules/unictype/property-left-of-pair-tests: Likewise.
30426         * modules/unictype/property-line-separator-tests: Likewise.
30427         * modules/unictype/property-logical-order-exception-tests: Likewise.
30428         * modules/unictype/property-lowercase-tests: Likewise.
30429         * modules/unictype/property-math-tests: Likewise.
30430         * modules/unictype/property-non-break-tests: Likewise.
30431         * modules/unictype/property-not-a-character-tests: Likewise.
30432         * modules/unictype/property-numeric-tests: Likewise.
30433         * modules/unictype/property-other-alphabetic-tests: Likewise.
30434         * modules/unictype/property-other-default-ignorable-code-point-tests:
30435         Likewise.
30436         * modules/unictype/property-other-grapheme-extend-tests: Likewise.
30437         * modules/unictype/property-other-id-continue-tests: Likewise.
30438         * modules/unictype/property-other-id-start-tests: Likewise.
30439         * modules/unictype/property-other-lowercase-tests: Likewise.
30440         * modules/unictype/property-other-math-tests: Likewise.
30441         * modules/unictype/property-other-uppercase-tests: Likewise.
30442         * modules/unictype/property-paired-punctuation-tests: Likewise.
30443         * modules/unictype/property-paragraph-separator-tests: Likewise.
30444         * modules/unictype/property-pattern-syntax-tests: Likewise.
30445         * modules/unictype/property-pattern-white-space-tests: Likewise.
30446         * modules/unictype/property-private-use-tests: Likewise.
30447         * modules/unictype/property-punctuation-tests: Likewise.
30448         * modules/unictype/property-quotation-mark-tests: Likewise.
30449         * modules/unictype/property-radical-tests: Likewise.
30450         * modules/unictype/property-sentence-terminal-tests: Likewise.
30451         * modules/unictype/property-soft-dotted-tests: Likewise.
30452         * modules/unictype/property-space-tests: Likewise.
30453         * modules/unictype/property-terminal-punctuation-tests: Likewise.
30454         * modules/unictype/property-test-tests: Likewise.
30455         * modules/unictype/property-titlecase-tests: Likewise.
30456         * modules/unictype/property-unassigned-code-value-tests: Likewise.
30457         * modules/unictype/property-unified-ideograph-tests: Likewise.
30458         * modules/unictype/property-uppercase-tests: Likewise.
30459         * modules/unictype/property-variation-selector-tests: Likewise.
30460         * modules/unictype/property-white-space-tests: Likewise.
30461         * modules/unictype/property-xid-continue-tests: Likewise.
30462         * modules/unictype/property-xid-start-tests: Likewise.
30463         * modules/unictype/property-zero-width-tests: Likewise.
30464         * modules/unictype/scripts-tests: Likewise.
30465         * modules/unictype/syntax-c-ident-tests: Likewise.
30466         * modules/unictype/syntax-c-whitespace-tests: Likewise.
30467         * modules/unictype/syntax-java-ident-tests: Likewise.
30468         * modules/unictype/syntax-java-whitespace-tests: Likewise.
30469         * modules/unilbrk/u8-possible-linebreaks-tests: Likewise.
30470         * modules/unilbrk/u8-width-linebreaks-tests: Likewise.
30471         * modules/unilbrk/u16-possible-linebreaks-tests: Likewise.
30472         * modules/unilbrk/u16-width-linebreaks-tests: Likewise.
30473         * modules/unilbrk/u32-possible-linebreaks-tests: Likewise.
30474         * modules/unilbrk/u32-width-linebreaks-tests: Likewise.
30475         * modules/unilbrk/ulc-possible-linebreaks-tests: Likewise.
30476         * modules/unilbrk/ulc-width-linebreaks-tests: Likewise.
30477         * modules/uniname/uniname-tests: Likewise.
30478         * modules/uninorm/canonical-decomposition-tests: Likewise.
30479         * modules/uninorm/compat-decomposition-tests: Likewise.
30480         * modules/uninorm/composition-tests: Likewise.
30481         * modules/uninorm/decomposing-form-tests: Likewise.
30482         * modules/uninorm/decomposition-tests: Likewise.
30483         * modules/uninorm/filter-tests: Likewise.
30484         * modules/uninorm/nfc-tests: Likewise.
30485         * modules/uninorm/nfd-tests: Likewise.
30486         * modules/uninorm/nfkc-tests: Likewise.
30487         * modules/uninorm/nfkd-tests: Likewise.
30488         * modules/uninorm/u8-normcmp-tests: Likewise.
30489         * modules/uninorm/u8-normcoll-tests: Likewise.
30490         * modules/uninorm/u16-normcmp-tests: Likewise.
30491         * modules/uninorm/u16-normcoll-tests: Likewise.
30492         * modules/uninorm/u32-normcmp-tests: Likewise.
30493         * modules/uninorm/u32-normcoll-tests: Likewise.
30494         * modules/unistdio/u8-asnprintf-tests: Likewise.
30495         * modules/unistdio/u8-vasnprintf-tests: Likewise.
30496         * modules/unistdio/u8-vasprintf-tests: Likewise.
30497         * modules/unistdio/u8-vsnprintf-tests: Likewise.
30498         * modules/unistdio/u8-vsprintf-tests: Likewise.
30499         * modules/unistdio/u16-asnprintf-tests: Likewise.
30500         * modules/unistdio/u16-vasnprintf-tests: Likewise.
30501         * modules/unistdio/u16-vasprintf-tests: Likewise.
30502         * modules/unistdio/u16-vsnprintf-tests: Likewise.
30503         * modules/unistdio/u16-vsprintf-tests: Likewise.
30504         * modules/unistdio/u32-asnprintf-tests: Likewise.
30505         * modules/unistdio/u32-vasnprintf-tests: Likewise.
30506         * modules/unistdio/u32-vasprintf-tests: Likewise.
30507         * modules/unistdio/u32-vsnprintf-tests: Likewise.
30508         * modules/unistdio/u32-vsprintf-tests: Likewise.
30509         * modules/unistdio/ulc-asnprintf-tests: Likewise.
30510         * modules/unistdio/ulc-vasnprintf-tests: Likewise.
30511         * modules/unistdio/ulc-vasprintf-tests: Likewise.
30512         * modules/unistdio/ulc-vsnprintf-tests: Likewise.
30513         * modules/unistdio/ulc-vsprintf-tests: Likewise.
30514         * modules/unistr/u8-check-tests: Likewise.
30515         * modules/unistr/u8-chr-tests: Likewise.
30516         * modules/unistr/u8-cmp-tests: Likewise.
30517         * modules/unistr/u8-cmp2-tests: Likewise.
30518         * modules/unistr/u8-cpy-alloc-tests: Likewise.
30519         * modules/unistr/u8-cpy-tests: Likewise.
30520         * modules/unistr/u8-mblen-tests: Likewise.
30521         * modules/unistr/u8-mbsnlen-tests: Likewise.
30522         * modules/unistr/u8-mbtouc-tests: Likewise.
30523         * modules/unistr/u8-mbtouc-unsafe-tests: Likewise.
30524         * modules/unistr/u8-mbtoucr-tests: Likewise.
30525         * modules/unistr/u8-move-tests: Likewise.
30526         * modules/unistr/u8-next-tests: Likewise.
30527         * modules/unistr/u8-prev-tests: Likewise.
30528         * modules/unistr/u8-set-tests: Likewise.
30529         * modules/unistr/u8-stpcpy-tests: Likewise.
30530         * modules/unistr/u8-stpncpy-tests: Likewise.
30531         * modules/unistr/u8-strcat-tests: Likewise.
30532         * modules/unistr/u8-strcmp-tests: Likewise.
30533         * modules/unistr/u8-strcoll-tests: Likewise.
30534         * modules/unistr/u8-strcpy-tests: Likewise.
30535         * modules/unistr/u8-strdup-tests: Likewise.
30536         * modules/unistr/u8-strlen-tests: Likewise.
30537         * modules/unistr/u8-strmblen-tests: Likewise.
30538         * modules/unistr/u8-strmbtouc-tests: Likewise.
30539         * modules/unistr/u8-strncat-tests: Likewise.
30540         * modules/unistr/u8-strncmp-tests: Likewise.
30541         * modules/unistr/u8-strncpy-tests: Likewise.
30542         * modules/unistr/u8-strnlen-tests: Likewise.
30543         * modules/unistr/u8-to-u16-tests: Likewise.
30544         * modules/unistr/u8-to-u32-tests: Likewise.
30545         * modules/unistr/u8-uctomb-tests: Likewise.
30546         * modules/unistr/u16-check-tests: Likewise.
30547         * modules/unistr/u16-chr-tests: Likewise.
30548         * modules/unistr/u16-cmp-tests: Likewise.
30549         * modules/unistr/u16-cmp2-tests: Likewise.
30550         * modules/unistr/u16-cpy-alloc-tests: Likewise.
30551         * modules/unistr/u16-cpy-tests: Likewise.
30552         * modules/unistr/u16-mblen-tests: Likewise.
30553         * modules/unistr/u16-mbsnlen-tests: Likewise.
30554         * modules/unistr/u16-mbtouc-tests: Likewise.
30555         * modules/unistr/u16-mbtouc-unsafe-tests: Likewise.
30556         * modules/unistr/u16-mbtoucr-tests: Likewise.
30557         * modules/unistr/u16-move-tests: Likewise.
30558         * modules/unistr/u16-next-tests: Likewise.
30559         * modules/unistr/u16-prev-tests: Likewise.
30560         * modules/unistr/u16-set-tests: Likewise.
30561         * modules/unistr/u16-stpcpy-tests: Likewise.
30562         * modules/unistr/u16-stpncpy-tests: Likewise.
30563         * modules/unistr/u16-strcat-tests: Likewise.
30564         * modules/unistr/u16-strcmp-tests: Likewise.
30565         * modules/unistr/u16-strcoll-tests: Likewise.
30566         * modules/unistr/u16-strcpy-tests: Likewise.
30567         * modules/unistr/u16-strdup-tests: Likewise.
30568         * modules/unistr/u16-strlen-tests: Likewise.
30569         * modules/unistr/u16-strmblen-tests: Likewise.
30570         * modules/unistr/u16-strmbtouc-tests: Likewise.
30571         * modules/unistr/u16-strncat-tests: Likewise.
30572         * modules/unistr/u16-strncmp-tests: Likewise.
30573         * modules/unistr/u16-strncpy-tests: Likewise.
30574         * modules/unistr/u16-strnlen-tests: Likewise.
30575         * modules/unistr/u16-to-u32-tests: Likewise.
30576         * modules/unistr/u16-to-u8-tests: Likewise.
30577         * modules/unistr/u16-uctomb-tests: Likewise.
30578         * modules/unistr/u32-check-tests: Likewise.
30579         * modules/unistr/u32-chr-tests: Likewise.
30580         * modules/unistr/u32-cmp-tests: Likewise.
30581         * modules/unistr/u32-cmp2-tests: Likewise.
30582         * modules/unistr/u32-cpy-alloc-tests: Likewise.
30583         * modules/unistr/u32-cpy-tests: Likewise.
30584         * modules/unistr/u32-mblen-tests: Likewise.
30585         * modules/unistr/u32-mbsnlen-tests: Likewise.
30586         * modules/unistr/u32-mbtouc-tests: Likewise.
30587         * modules/unistr/u32-mbtouc-unsafe-tests: Likewise.
30588         * modules/unistr/u32-mbtoucr-tests: Likewise.
30589         * modules/unistr/u32-move-tests: Likewise.
30590         * modules/unistr/u32-next-tests: Likewise.
30591         * modules/unistr/u32-prev-tests: Likewise.
30592         * modules/unistr/u32-set-tests: Likewise.
30593         * modules/unistr/u32-stpcpy-tests: Likewise.
30594         * modules/unistr/u32-stpncpy-tests: Likewise.
30595         * modules/unistr/u32-strcat-tests: Likewise.
30596         * modules/unistr/u32-strcmp-tests: Likewise.
30597         * modules/unistr/u32-strcoll-tests: Likewise.
30598         * modules/unistr/u32-strcpy-tests: Likewise.
30599         * modules/unistr/u32-strdup-tests: Likewise.
30600         * modules/unistr/u32-strlen-tests: Likewise.
30601         * modules/unistr/u32-strmblen-tests: Likewise.
30602         * modules/unistr/u32-strmbtouc-tests: Likewise.
30603         * modules/unistr/u32-strncat-tests: Likewise.
30604         * modules/unistr/u32-strncmp-tests: Likewise.
30605         * modules/unistr/u32-strncpy-tests: Likewise.
30606         * modules/unistr/u32-strnlen-tests: Likewise.
30607         * modules/unistr/u32-to-u16-tests: Likewise.
30608         * modules/unistr/u32-to-u8-tests: Likewise.
30609         * modules/unistr/u32-uctomb-tests: Likewise.
30610         * modules/uniwbrk/u8-wordbreaks-tests: Likewise.
30611         * modules/uniwbrk/u16-wordbreaks-tests: Likewise.
30612         * modules/uniwbrk/u32-wordbreaks-tests: Likewise.
30613         * modules/uniwbrk/ulc-wordbreaks-tests: Likewise.
30614         * modules/uniwidth/u8-strwidth-tests: Likewise.
30615         * modules/uniwidth/u8-width-tests: Likewise.
30616         * modules/uniwidth/u16-strwidth-tests: Likewise.
30617         * modules/uniwidth/u16-width-tests: Likewise.
30618         * modules/uniwidth/u32-strwidth-tests: Likewise.
30619         * modules/uniwidth/u32-width-tests: Likewise.
30620         * modules/uniwidth/width-tests: Likewise.
30621
30622 2010-05-18  Richard Jones  <rjones@redhat.com>
30623
30624         doc: users.txt: list hivex
30625         * users.txt: Add hivex.
30626
30627 2010-05-18  Richard Jones  <rjones@redhat.com>
30628
30629         doc: users.txt: list febootstrap
30630         * users.txt: Add febootstrap.
30631
30632 2010-05-17  Giuseppe Scrivano  <gscrivano@gnu.org>
30633
30634         bootstrap: fix an error when gnulib is not used as a git submodule
30635         * build-aux/bootstrap (gnulib_path): If its length is zero then
30636         assign "gnulib" to it.
30637         * build-aux/bootstrap: Redirect "git clone -h" stderr to stdout.
30638
30639 2010-05-16  Bruno Haible  <bruno@clisp.org>
30640
30641         Avoid autoconf warnings about AM_ICONV.
30642         * m4/iconv.m4 (AM_ICONV): Define using AC_DEFUN_ONCE for autoconf >=
30643         2.64.
30644
30645 2010-05-16  Bruno Haible  <bruno@clisp.org>
30646
30647         absolute-header: Make the macro usable in more situations.
30648         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER_ONE): New macro, extracted
30649         from gl_ABSOLUTE_HEADER.
30650         (gl_ABSOLUTE_HEADER): Use it. Fix comment.
30651
30652 2010-05-16  James Youngman  <jay@gnu.org>
30653
30654         doc: update users.txt
30655         * users.txt: Add CSSC.
30656
30657 2010-05-16  Jim Meyering  <meyering@redhat.com>
30658
30659         init.sh: fix an error in the previous change; add more comments
30660         * tests/init.sh: Compare exit code in loop against 9, not 2.
30661         Patch by Bruno Haible.
30662         Make the two tests more similar by adding an empty "then" clause.
30663         Add comments.
30664
30665         init.sh: avoid unnecessary shell re-exec
30666         * tests/init.sh: Improve the re-exec-required check to first test the
30667         current shell.  If it passes the test, do not search for a shell that
30668         does pass, and do not re-exec.  This test is particularly contorted to
30669         avoid triggering misbehavior in Solaris 10's /bin/sh whereby any use
30670         of $(...) evokes a syntax error and causes immediate shell exit with
30671         status 2.  Bruno Haible reported that the re-exec made it impossible
30672         to single-step through any init.sh-using script.
30673
30674 2010-05-16  Bruno Haible  <bruno@clisp.org>
30675
30676         Fix collision between gnulib's and libintl's printf replacements.
30677         * lib/stdio.in.h (_GL_STDIO_STRINGIZE,
30678         _GL_STDIO_MACROEXPAND_AND_STRINGIZE): New macros.
30679         (printf): When using GNU C, map the __printf__ function to rpl_printf
30680         via __asm__. When not using GNU C, define rpl_printf instead of
30681         __printf__.
30682         * lib/printf.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2010-03-25
30683         commit.
30684         * lib/stdio-write.c: Ignore DEPENDS_ON_LIBINTL. Undoes the 2009-08-10
30685         commit.
30686         * m4/asm-underscore.m4: New file.
30687         * m4/stdio_h.m4 (gl_STDIO_H): Require gl_ASM_SYMBOL_PREFIX.
30688         * modules/stdio (Files): Add m4/asm-underscore.m4.
30689         (Makefile.am): Substitute ASM_SYMBOL_PREFIX.
30690         Reported by Ben Pfaff.
30691
30692 2010-05-16  Bruno Haible  <bruno@clisp.org>
30693
30694         verify: Avoid skipping the test on openSUSE 11.0.
30695         * tests/test-verify.sh: Unset MALLOC_PERTURB_.
30696
30697 2010-05-13  Bruno Haible  <bruno@clisp.org>
30698
30699         Avoid useless warnings from G++.
30700         * build-aux/c++defs.h (_GL_CXXALIASWARN_2, _GL_CXXALIASWARN1_2): Don't
30701         use _GL_WARN_ON_USE or _GL_WARN_ON_USE_CXX when optimizing.
30702         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
30703
30704 2010-05-11  Jim Meyering  <meyering@redhat.com>
30705
30706         maint.mk: tweak preceding change
30707         * top/maint.mk (gl_extract_significant_defines_): Make exclusion
30708         regexps tighter by anchoring at EOL, and make the new group "shy"
30709         for slightly decreased overhead.
30710
30711 2010-05-11  Eric Blake  <eblake@redhat.com>
30712
30713         maint.mk: gnulib doesn't guarantee NSIG
30714         * top/maint.mk (gl_extract_significant_defines_): Exclude NSIG.
30715
30716 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30717
30718         test-pwrite.c: Remove unused variable declaration.
30719         * tests/test-pwrite.c (main): Remove read_buf declaration.
30720
30721         Remove useless test-pwrite.sh file.
30722         * tests/test-pwrite.sh: Delete file.
30723         * modules/pwrite-tests: Remove references.
30724         Reported by Bruno Haible.
30725
30726 2010-05-10  Peter O'Gorman  <pogma@thewrittenword.com>
30727
30728         init.sh: fix a typo
30729         * tests/init.sh: Correct typo in MALLOC_PERTURB_ initialization.
30730
30731 2010-05-10  Jim Meyering  <meyering@redhat.com>
30732
30733         maint.mk: avoid using a temporary file in the always-defined-macros check
30734         * top/maint.mk (.re-defmac): Remove rule.
30735         (gl_trap_): Remove definition.
30736         (sc_prohibit_always-defined_macros): Rewrite not to create and
30737         depend on a temporary file.  Instead, depend on GNU grep's ability
30738         to read a list of regular expressions from stdin when given "-f -".
30739
30740 2010-05-09  Bruno Haible  <bruno@clisp.org>
30741
30742         Update to GNU gettext 0.18, part 1.
30743         * m4/gettext.m4: Update to GNU gettext 0.18.
30744         * m4/intl.m4: Likewise.
30745         * m4/po.m4: Likewise.
30746         * modules/gettext (Files): Add m4/fcntl-o.m4.
30747         (configure.ac): Require gettext infrastructure from version 0.18.
30748
30749 2010-05-09  Jim Meyering  <meyering@redhat.com>
30750
30751         init.sh: enable MALLOC_PERTURB_
30752         * tests/init.sh: Enable glibc's malloc-perturbing option.
30753
30754         maint.mk: improve sc_cross_check_PATH_usage_in_tests
30755         With my recent change in init.sh from the two-line form:
30756             -#   : ${srcdir=.}
30757             -#   . "$srcdir/init.sh"; path_prepend_ .
30758             +#   . "${srcdir=.}/init.sh"; path_prepend_ .
30759         I noticed that using the one-line form would cause this test
30760         to fail with a false-positive, or to stop working altogether,
30761         depending on whether help-version changed or all the tests did.
30762         * top/maint.mk (_hv_regex): Remove this definition.
30763         (_hv_regex_weak): Use a weak regex to select all init.sh-sourcing files.
30764         (_hv_regex_strong): Use a stronger regex to check for conformance.
30765         (sc_cross_check_PATH_usage_in_tests): Rewrite to use the above.
30766         Give a separate diagnostic for lack of conforming use.
30767
30768         maint.mk: prohibit definition of symbols defined by gnulib
30769         * top/maint.mk (sc_prohibit_always-defined_macros): Reject the
30770         definition of symbols defined by gnulib.
30771
30772 2010-05-09  Bruno Haible  <bruno@clisp.org>
30773
30774         acl: Avoid test failure on Cygwin-hosted mingw.
30775         * tests/test-set-mode-acl.sh: Skip test if USE_ACL is 0.
30776
30777 2010-05-09  Bruno Haible  <bruno@clisp.org>
30778
30779         error: Use system's fcntl function.
30780         * lib/error.c (fcntl): Undefine.
30781
30782 2010-05-09  Jim Meyering  <meyering@redhat.com>
30783
30784         verify: adjust formatting to be more consistent
30785         * lib/verify.h (_GL_GENSYM): Add a space before each of a few
30786         argument-list '('s, and after one comma.
30787
30788 2010-05-09  Bruno Haible  <bruno@clisp.org>
30789
30790         error: More reliable output on mingw.
30791         * lib/error.c: Include <windows.h>.
30792         (is_open): New function.
30793         (flush_stdout): Call it instead of fcntl, also if F_GETFL is not
30794         defined.
30795
30796 2010-05-09  Bruno Haible  <bruno@clisp.org>
30797
30798         vasnprintf: Fix syntax errors in libintl build on mingw.
30799         * lib/vasnprintf.c (VASNPRINTF): Move a closing brace. Undefine
30800         pad_ourselves and prec_ourselves after use.
30801
30802 2010-05-08  Bruno Haible  <bruno@clisp.org>
30803
30804         * lib/config.charset: Update comments for Cygwin 1.7.
30805         * lib/localcharset.c: Likewise.
30806
30807 2010-05-07  Jim Meyering  <meyering@redhat.com>
30808
30809         init.sh: improve comments
30810         * tests/init.sh: Recommend the one-line init.sh-sourcing idiom:
30811         . "${srcdir=.}/init.sh"; path_prepend_ .
30812         Add a note about path_prepend_ and the alternative of using
30813         TESTS_ENVIRONMENT.
30814
30815 2010-05-06  Sergey Poznyakoff  <gray@gnu.org.ua>
30816
30817         exclude: Unescape hashed patterns in wildcard mode.
30818         * lib/exclude.c (add_exclude): Unescape the pattern before adding it
30819         to the hash list.
30820         * tests/test-exclude8.sh: New test case.
30821         * modules/exclude-tests: Add new test.
30822
30823 2010-05-05  Eric Blake  <eblake@redhat.com>
30824
30825         verify: automate tests
30826         * modules/verify-tests: New module.
30827         * tests/test-verify.sh: New file.
30828         * tests/test-verify.c: Guard each negative test with a unique id.
30829         Also avoid warning about unused left hand of comma expressions.
30830
30831 2010-05-05  Paul Eggert  <eggert@cs.ucla.edu>
30832
30833         Further improvements to verify.h, suggested by Eric Blake.
30834         * lib/verify.h (_GL_CONCAT, _GL_CONCAT0, _GL_GENSYM): Renamed from
30835         the GL_* versions, to avoid collision with OpenGL.
30836         (_GL_COUNTER): New macro, so that we can fall back on __LINE__ if
30837         __COUNTER__ doesn't work.  Test that __COUNTER__ increments rather
30838         than testing merely whether it's defined.
30839
30840         Modify verify.h to pacify gcc -Wredundant_decls.
30841         * lib/verify.h (GL_CONCAT, GL_CONCAT0, GL_GENSYM): New macros.
30842         These use the prefix "GL_" since they're likely to be useful elsewhere.
30843         We may need to break them out into a different .h file.
30844         (__COUNTER__): Define to 0 if the compiler doesn't support it.
30845         (verify) [!defined __cplusplus]: Use them to avoid duplicate decls
30846         of verify_function__.
30847
30848 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30849
30850         Tests for module pwrite.
30851         * modules/pwrite-tests: New file.
30852         * tests/test-pwrite.sh: New file.
30853         * tests/test-pwrite.c: New file.
30854
30855         New module pwrite.
30856         * lib/unistd.in.h (pwrite): New declaration.
30857         * lib/pwrite.c: New file, from glibc with modifications.
30858         * m4/pwrite.m4: New file.
30859         * m4/unistd_h.m4 (gl_UNISTD_H): Test whether pwrite is declared.
30860         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PWRITE, HAVE_PWRITE,
30861         REPLACE_PWRITE.
30862         * modules/pwrite: New file.
30863         * modules/unistd (Makefile.am): Substitute GNULIB_PWRITE, HAVE_PWRITE,
30864         REPLACE_PWRITE.
30865         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::pwrite.
30866         * doc/posix-functions/pwrite.texi: Mention the new module.
30867
30868 2010-05-05  Peter O'Gorman  <pogma@thewrittenword.com>
30869
30870         pread: Update documentation.
30871         * doc/posix-functions/pread.texi: Mention the 'pread' module.
30872
30873 2010-05-04  Eric Blake  <eblake@redhat.com>
30874
30875         docs: update cygwin progress
30876         * doc/posix-functions/wctob.texi (wctob): Cygwin 1.7.6 will fix
30877         this bug.
30878         * doc/glibc-functions/get_nprocs_conf.texi (get_nprocs_conf):
30879         Added in cygwin 1.7.2.
30880         * doc/glibc-functions/get_phys_pages.texi (get_phys_pages):
30881         Likewise.
30882         * doc/glibc-functions/get_avphys_pages.texi (get_avphys_pages):
30883         Likewise.
30884         * doc/glibc-functions/dup3.texi (dup3): Likewise.
30885         * doc/glibc-functions/pipe2.texi (pipe2): Likewise.
30886         * doc/glibc-functions/accept4.texi (accept4): Likewise.
30887         * doc/posix-functions/strfmon.texi (strfmon): Likewise.
30888         * doc/glibc-functions/get_nprocs.texi (get_nprocs): Likewise.
30889         Mention nproc module.
30890         * doc/glibc-functions/xdr_uint16_t.texi (xdr_uint16_t): Mention
30891         bug in cygwin 1.7.5 addition.
30892         * doc/glibc-functions/xdr_uint32_t.texi (xdr_uint32_t): Likewise.
30893         * doc/glibc-functions/xdr_uint64_t.texi (xdr_uint64_t): Likewise.
30894         * doc/glibc-functions/xdr_uint8_t.texi (xdr_uint8_t): Likewise.
30895         * doc/glibc-functions/xdr_array.texi (xdr_array): Added in cygwin
30896         1.7.5.
30897         * doc/glibc-functions/xdr_bool.texi (xdr_bool): Likewise.
30898         * doc/glibc-functions/xdr_bytes.texi (xdr_bytes): Likewise.
30899         * doc/glibc-functions/xdr_char.texi (xdr_char): Likewise.
30900         * doc/glibc-functions/xdr_double.texi (xdr_double): Likewise.
30901         * doc/glibc-functions/xdr_enum.texi (xdr_enum): Likewise.
30902         * doc/glibc-functions/xdr_float.texi (xdr_float): Likewise.
30903         * doc/glibc-functions/xdr_free.texi (xdr_free): Likewise.
30904         * doc/glibc-functions/xdr_hyper.texi (xdr_hyper): Likewise.
30905         * doc/glibc-functions/xdr_int.texi (xdr_int): Likewise.
30906         * doc/glibc-functions/xdr_int16_t.texi (xdr_int16_t): Likewise.
30907         * doc/glibc-functions/xdr_int32_t.texi (xdr_int32_t): Likewise.
30908         * doc/glibc-functions/xdr_int64_t.texi (xdr_int64_t): Likewise.
30909         * doc/glibc-functions/xdr_int8_t.texi (xdr_int8_t): Likewise.
30910         * doc/glibc-functions/xdr_long.texi (xdr_long): Likewise.
30911         * doc/glibc-functions/xdr_longlong_t.texi (xdr_longlong_t):
30912         Likewise.
30913         * doc/glibc-functions/xdr_netobj.texi (xdr_netobj): Likewise.
30914         * doc/glibc-functions/xdr_opaque.texi (xdr_opaque): Likewise.
30915         * doc/glibc-functions/xdr_pointer.texi (xdr_pointer): Likewise.
30916         * doc/glibc-functions/xdr_reference.texi (xdr_reference):
30917         Likewise.
30918         * doc/glibc-functions/xdr_short.texi (xdr_short): Likewise.
30919         * doc/glibc-functions/xdr_sizeof.texi (xdr_sizeof): Likewise.
30920         * doc/glibc-functions/xdr_string.texi (xdr_string): Likewise.
30921         * doc/glibc-functions/xdr_u_char.texi (xdr_u_char): Likewise.
30922         * doc/glibc-functions/xdr_u_hyper.texi (xdr_u_hyper): Likewise.
30923         * doc/glibc-functions/xdr_u_int.texi (xdr_u_int): Likewise.
30924         * doc/glibc-functions/xdr_u_long.texi (xdr_u_long): Likewise.
30925         * doc/glibc-functions/xdr_u_longlong_t.texi (xdr_u_longlong_t):
30926         Likewise.
30927         * doc/glibc-functions/xdr_u_short.texi (xdr_u_short): Likewise.
30928         * doc/glibc-functions/xdr_union.texi (xdr_union): Likewise.
30929         * doc/glibc-functions/xdr_vector.texi (xdr_vector): Likewise.
30930         * doc/glibc-functions/xdr_void.texi (xdr_void): Likewise.
30931         * doc/glibc-functions/xdr_wrapstring.texi (xdr_wrapstring):
30932         Likewise.
30933         * doc/glibc-functions/xdrmem_create.texi (xdrmem_create):
30934         Likewise.
30935         * doc/glibc-functions/xdrrec_create.texi (xdrrec_create):
30936         Likewise.
30937         * doc/glibc-functions/xdrrec_endofrecord.texi
30938         (xdrrec_endofrecord): Likewise.
30939         * doc/glibc-functions/xdrrec_eof.texi (xdrrec_eof): Likewise.
30940         * doc/glibc-functions/xdrrec_skiprecord.texi (xdrrec_skiprecord):
30941         Likewise.
30942         * doc/glibc-functions/xdrstdio_create.texi (xdrstdio_create):
30943         Likewise.
30944
30945 2010-05-04  Jim Meyering  <meyering@redhat.com>
30946
30947         gendocs.sh: make its "-s FILE" option more useful
30948         * build-aux/gendocs.sh: When honoring the -s FILE option, update
30949         $PACKAGE to reflect the probably-different basename of "FILE".
30950
30951 2010-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
30952
30953         bootstrap: don't ignore download_po_files failure
30954         * build-aux/bootstrap (update_po_files): Don't ignore download_po_files
30955         failure.
30956
30957 2010-05-03  Jim Meyering  <meyering@redhat.com>
30958
30959         maint.mk: allow to pass options to gendocs.sh
30960         * top/maint.mk (web-manual): Pass gendocs_options_ to gendocs.sh.
30961         (gendocs_options_): New overridable variable.
30962
30963         gnu-web-doc-update: don't ignore configure or build failure
30964         * build-aux/gnu-web-doc-update: Exit nonzero upon internal failure.
30965
30966         announce-gen: backslash-escape '@'s in --help output
30967         * build-aux/announce-gen: Fix syntax errors.
30968
30969         maint.mk, announce-gen: allow project-specific announcement mail headers
30970         * top/maint.mk (translation_project_): Define default.
30971         (announcement_Cc_, announcement_mail_headers_): Likewise.
30972         (announcement): Invoke announce-gen with new --mail-headers option.
30973         * build-aux/announce-gen: New option: --mail-headers=HEADERS.
30974
30975         test-xalloc-die: avoid unwarranted test failure on OpenSolaris 5.11
30976         * tests/test-xalloc-die.sh: Redirect stdout before stderr, (i.e.,
30977         "> out 2> err", rather than "2> err > out").  Otherwise, with /bin/sh
30978         on OpenSolaris 5.11 snv_134, we would end up with a stray "1> out"
30979         line in the "err2" output file when running "make check" in verbose
30980         mode (i.e., with set -x enabled).
30981
30982 2010-05-03  Bruno Haible  <bruno@clisp.org>
30983
30984         wctob: Fix for weird platforms.
30985         * lib/wctob.c (wctob): When wint_t is larger than wchar_t, check the
30986         argument value.
30987
30988 2010-05-03  Jim Meyering  <meyering@redhat.com>
30989
30990         maint.mk: prohibit unwarranted use of <strings.h>
30991         * top/maint.mk (sc_prohibit_strings_without_use): Reject inclusion of
30992         strings.h in a file that does not also use strcasecmp, strncasecmp,
30993         ffs or ffsll.
30994
30995         maint.mk: remove obsolete comments
30996         * top/maint.mk: Remove stale, commented-out rules.
30997
30998 2010-05-02  Bruno Haible  <bruno@clisp.org>
30999
31000         wcwidth: Declare also when it's aliased.
31001         * lib/wchar.in.h (wcwidth): Don't test whether wcwidth is defined as a
31002         macro.
31003
31004 2010-05-02  Bruno Haible  <bruno@clisp.org>
31005
31006         Fix regression from 2010-04-25.
31007         * gnulib-tool (func_modules_transitive_closure): Check the status of
31008         all modules, not only of the tests that are of the form foo-tests where
31009         foo is a module.
31010
31011 2010-05-02  Bruno Haible  <bruno@clisp.org>
31012
31013         wctob: Work around nasty Cygwin 1.7.2 bug.
31014         * m4/wctob.m4 (gl_FUNC_WCTOB): Detect the Cygwin bug.
31015         * doc/posix-functions/wctob.texi: Mention the Cygwin bug.
31016
31017 2010-05-01  Bruno Haible  <bruno@clisp.org>
31018
31019         fpurge: Sharper test.
31020         * tests/test-fpurge.c (main): Add one more ftell check.
31021         * modules/fpurge-tests (Depends-on): Add ftell.
31022         Suggested by Eric Blake.
31023
31024 2010-05-01  Bruno Haible  <bruno@clisp.org>
31025
31026         ftello: Another test.
31027         * tests/test-ftello3.c: New file.
31028         * modules/ftello-tests (Files): Add it.
31029         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
31030         MOSTLYCLEANFILES.
31031
31032         ftell: Another test.
31033         * tests/test-ftell3.c: New file.
31034         * modules/ftell-tests (Files): Add it.
31035         (Makefile.am): Add it to TESTS and check_PROGRAMS. Augment
31036         MOSTLYCLEANFILES.
31037
31038 2010-05-01  Bruno Haible  <bruno@clisp.org>
31039
31040         ftell, ftello: Work around Solaris bug.
31041         * m4/ftello.m4 (gl_FUNC_FTELLO): Detect Solaris bug.
31042         * lib/ftello.c: Include stdio-impl.h.
31043         (ftello): On Solaris, when _IOWRT is set, compute the result without
31044         looking at _IOREAD.
31045         * modules/ftello (Files): Add lib/stdio-impl.h.
31046         * doc/posix-functions/ftell.texi: Mention Solaris bug.
31047         * doc/posix-functions/ftello.texi: Likewise.
31048         Reported by Eric Blake.
31049
31050 2010-05-01  Bruno Haible  <bruno@clisp.org>
31051
31052         freading: Adapt to special meaning of _IOREAD flag on Solaris.
31053         * lib/freading.c (freading): On Solaris, ignore the _IOREAD flag if
31054         the _IOWRT flag is also set.
31055
31056 2010-05-01  Bruno Haible  <bruno@clisp.org>
31057
31058         Fix doc about a HP-UX stdio bug.
31059         * doc/posix-functions/ftell.texi: Mark HP-UX bug as unfixed.
31060         * doc/posix-functions/ftello.texi: Likewise.
31061
31062 2010-05-01  Bruno Haible  <bruno@clisp.org>
31063
31064         lseek test: Fix failure on Solaris.
31065         * tests/test-lseek.sh: Partially revert 2010-04-20 commit. Consume all
31066         output.
31067
31068 2010-04-30  Jim Meyering  <meyering@redhat.com>
31069
31070         bootstrap: don't ignore failure to generate po*/Makevars
31071         * build-aux/bootstrap (with_gettext): Don't ignore failure
31072         to create po/Makevars or runtime-po/Makevars.
31073
31074 2010-04-29  Eric Blake  <eblake@redhat.com>
31075
31076         headers: relax license to LGPLv2+
31077         * modules/fcntl-h (License): Relax license.
31078         * modules/getopt-posix (License): Likewise.
31079         * modules/locale (License): Likewise.
31080         * modules/math (License): Likewise.
31081         * modules/pty (License): Likewise.
31082         * modules/sched (License): Likewise.
31083         * modules/search (License): Likewise.
31084         * modules/spawn (License): Likewise.
31085         * modules/stdarg (License): Likewise.
31086         * modules/sysexits (License): Likewise.
31087
31088 2010-04-29  Jim Meyering  <meyering@redhat.com>
31089
31090         inttypes: relax license to LGPLv2+
31091         * modules/inttypes (License): Relax license.
31092
31093 2010-04-29  Simon Josefsson  <simon@josefsson.org>
31094
31095         * top/maint.mk (indent): Run twice to produce idempotent results.
31096
31097 2010-04-28  Bruno Haible  <bruno@clisp.org>
31098
31099         getdate: Generate getdate.c in the source directory.
31100         * modules/getdate (Makefile.am): Add rule for getdate.c. Augment
31101         MOSTLYCLEANFILES.
31102         Suggested by Daniel Richard G. <skunk@iskunk.org> and Ralf Wildenhues.
31103
31104 2010-04-27  Andreas Gruenbacher  <agruen@suse.de>  (tiny change)
31105
31106         * lib/utimens.c: On Tru64, the timestamp parameter of utimens(2)
31107         is not declared as a const *; avoid warnings in that case.
31108
31109 2010-04-28  Eric Blake  <eblake@redhat.com>
31110
31111         canonicalize-lgpl: avoid compiler warning
31112         * lib/canonicalize-lgpl.c (versioned_symbol): Avoid an 'empty
31113         declaration' / 'extraneous semicolon' warning with some compilers.
31114         Reported by Andreas Gruenbacher.
31115
31116 2010-04-28  Jim Meyering  <meyering@redhat.com>
31117
31118         init.sh: ensure a more reliable exit status when exiting via trap
31119         * tests/init.sh (setup_): Don't rely on $? in signal handler.
31120         Inspired by patches from Dmitry V. Levin.
31121         Also trap on signal 3 (SIGQUIT).
31122
31123 2010-04-27  Bruno Haible  <bruno@clisp.org>
31124
31125         Update doc about utimes().
31126         * doc/posix-functions/utimes.texi: Mention the OSF/1 problem and the
31127         'utimens' module.
31128         Reported by Andreas Gruenbacher <agruen@suse.de>.
31129
31130 2010-04-27  Eric Blake  <eblake@redhat.com>
31131
31132         full-read, full-write: relax license
31133         * modules/full-read (License): Drop to LGPLv2+.
31134         * modules/full-write (License): Likewise.
31135         * modules/safe-read (License): Likewise.
31136         * modules/safe-write (License): Likewise.
31137
31138         pthread: mention library for linking
31139         * modules/pthread (Link): Mention $(LIB_PTHREAD).
31140
31141 2010-04-27  Jim Meyering  <meyering@redhat.com>
31142
31143         maint.mk: fix a bug introduced in last change
31144         * top/maint.mk (gl_assured_headers_): Now that all names are on
31145         one line, use sed's "g" modifier.  Note that while the \.in\.h LHS
31146         is not anchored to end of word, it should be adequate.
31147
31148         maint.mk: avoid side-effect in latest syntax-check
31149         * top/maint.mk (sc_prohibit_always_true_header_tests): Rework not
31150         to run commands via $(shell...), and hence to incur cost only when
31151         the new rule is actually run.
31152
31153         maint.mk: syntax-check: prohibit HAVE_<header>_H that are always true
31154         Derive the list of guaranteed header names from gnulib/lib/*.in.h,
31155         and use that to create a regexp used to detect all #if HAVE_..._H uses.
31156         * top/maint.mk (sc_prohibit_always_true_header_tests): New rule.
31157         (gl_assured_headers_, az_, AZ_): Define.
31158         (gl_header_upper_case_or_, gl_have_header_regex_): Define.
31159
31160 2010-04-26  Jim Meyering  <jim@meyering.net>
31161             Bruno Haible  <bruno@clisp.org>
31162
31163         gnulib-common.m4: make glibc write diagnostics to stderr, not /dev/tty
31164         * m4/gnulib-common.m4 (gl_COMMON_BODY): Set LIBC_FATAL_STDERR_.
31165         Prompted by an exchange with Gilles Espinasse.
31166
31167 2010-04-26  Jim Meyering  <meyering@redhat.com>
31168
31169         git-version-gen: aesthetic tweak
31170         * build-aux/git-version-gen: Use "$nl" rather than a literal,
31171         so that the command remains on a single line.
31172
31173 2010-04-26  Eric Blake  <eblake@redhat.com>
31174
31175         git-version-gen: allow use on EBCDIC hosts
31176         * build-aux/git-version-gen (dirty): Use literal rather than tying
31177         ourselves to ascii.
31178         Reported by Steve Goetze.
31179
31180 2010-04-25  Bruno Haible  <bruno@clisp.org>
31181
31182         netdb: Add support for GNULIB_POSIXCHECK.
31183         * lib/netdb.in.h: Include warn-on-use.h.
31184         (getaddrinfo, freeaddrinfo, gai_strerror, getnameinfo): Warn if these
31185         functions are used when GNULIB_POSIXCHECK is defined and the
31186         getaddrinfo module is not in use.
31187         * m4/netdb_h.m4 (gl_HEADER_NETDB): Test whether getaddrinfo,
31188         freeaddrinfo, gai_strerror, getnameinfo are declared.
31189         * modules/netdb (Depends-on): Add warn-on-use.
31190         (Makefile.am): Include warn-on-use.h in netdb.h.
31191
31192 2010-04-24  Ian Beckwith  <ianb@erislabs.net>
31193
31194         build: avoid "make check" failure without .git/ directory
31195         * Makefile (sc_prefer_ac_check_funcs_once): Skip this test when
31196         there is no .git/ directory.
31197
31198 2010-04-25  Bruno Haible  <bruno@clisp.org>
31199
31200         ptsname: Fix misuse of ttyname_r.
31201         * lib/ptsname.c (__ptsname_r): Use __ttyname_r's return value instead
31202         of errno.
31203
31204 2010-04-25  Bruno Haible  <bruno@clisp.org>
31205
31206         ttyname_r: Make it work on Solaris 10.
31207         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Define HAVE_POSIXDECL_TTYNAME_R
31208         if the system function has the POSIX declaration. Test whether the
31209         function fails if the buffer is less than 128 bytes large.
31210         * lib/ttyname_r.c (ttyname_r): Handle both possible declarations of the
31211         system's ttyname_r function. Provide a reasonably large buffer.
31212         * modules/ttyname_r (Depends-on): Add extensions.
31213         * doc/posix-functions/ttyname_r.texi: Mention the Solaris problem.
31214
31215 2010-04-25  Bruno Haible  <bruno@clisp.org>
31216
31217         Use the 'extensions' module for some more functions on Solaris.
31218         * doc/posix-functions/asctime_r.texi: Recommend to use the 'extensions'
31219         module.
31220         * doc/posix-functions/ctime_r.texi: Likewise.
31221         * doc/posix-functions/getgrgid_r.texi: Likewise.
31222         * doc/posix-functions/getgrnam_r.texi: Likewise.
31223         * doc/posix-functions/getpwnam_r.texi: Likewise.
31224         * doc/posix-functions/getpwuid_r.texi: Likewise.
31225         * doc/posix-functions/readdir_r.texi: Likewise.
31226         * doc/posix-functions/sigwait.texi: Likewise.
31227         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Add comment.
31228         * doc/posix-functions/getlogin_r.texi: Mark Solaris problem as fixed.
31229
31230 2010-04-25  Bruno Haible  <bruno@clisp.org>
31231
31232         ttyname_r: Make it work on MacOS X 10.4 and Solaris 10.
31233         * m4/ttyname_r.m4 (gl_FUNC_TTYNAME_R): Test whether the system function
31234         has the POSIX declaration. Set REPLACE_TTYNAME_R if not.
31235         * lib/ttyname_r.c: Include <limits.h>.
31236         (ttyname_r): Define using the system's ttyname_r function, if it exists
31237         and not on Solaris.
31238         * lib/unistd.in.h (ttyname_r): Replace function if REPLACE_TTYNAME_R is
31239         set.
31240         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize REPLACE_TTYNAME_R.
31241         * modules/unistd (Makefile.am): Substitute REPLACE_TTYNAME_R.
31242         * doc/posix-functions/ttyname_r.texi: Mark the problem as fixed.
31243         Reported by Simon Josefsson.
31244
31245 2010-04-25  Bruno Haible  <bruno@clisp.org>
31246
31247         Mention effects of _POSIX_PTHREAD_SEMANTICS on Solaris.
31248         * doc/posix-functions/asctime_r.texi: Mention the Solaris problem.
31249         * doc/posix-functions/ctime_r.texi: Likewise.
31250         * doc/posix-functions/getgrgid_r.texi: Likewise.
31251         * doc/posix-functions/getgrnam_r.texi: Likewise.
31252         * doc/posix-functions/getlogin_r.texi: Likewise.
31253         * doc/posix-functions/getpwnam_r.texi: Likewise.
31254         * doc/posix-functions/getpwuid_r.texi: Likewise.
31255         * doc/posix-functions/readdir_r.texi: Likewise.
31256         * doc/posix-functions/sigwait.texi: Likewise.
31257         * doc/posix-functions/ttyname_r.texi: Likewise.
31258         Reported by Simon Josefsson.
31259
31260 2010-04-25  Bruno Haible  <bruno@clisp.org>
31261
31262         gnulib-tool: Don't include hairy tests of dependencies in testdirs.
31263         * gnulib-tool (func_usage): Document that --with-*-tests options apply
31264         also to --create-testdir.
31265         (func_acceptable): Don't consider the status of *-tests modules here.
31266         (func_modules_transitive_closure): Consider it here, before including a
31267         test module.
31268         (func_import, func_create_testdir): Set inc_all_direct_tests,
31269         inc_all_indirect_tests.
31270         * doc/gnulib.texi (Extra tests modules): Document new behaviour of
31271         --create-testdir and --create-megatestdir.
31272
31273 2010-04-25  Bruno Haible  <bruno@clisp.org>
31274
31275         gnulib-tool: Add --without-*-tests options.
31276         * gnulib-tool (func_usage): Document the --without-*-tests options.
31277         (excl_cxx_tests, excl_longrunning_tests, excl_privileged_tests,
31278         excl_unportable_tests): New variables.
31279         Fail if they are specified with --import or --update.
31280         (func_acceptable): Respect the excl_*_tests variables.
31281         (func_import): Set the excl_*_tests variables to empty.
31282
31283 2010-04-25  Simon Josefsson  <simon@josefsson.org>
31284             Bruno Haible  <bruno@clisp.org>
31285
31286         Work around a MacOS X 10.4 bug with openpty.
31287         * doc/glibc-functions/openpty.texi: Mention the MacOS X 10.4 bug.
31288         * tests/test-openpty.c (main): Close the master side explicitly.
31289
31290 2010-04-25  Bruno Haible  <bruno@clisp.org>
31291
31292         strnlen: Fix a C++ test error on MacOS X and Solaris.
31293         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Don't set REPLACE_STRNLEN to 1 if
31294         the function is not declared.
31295         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com> and
31296         Simon Josefsson.
31297
31298 2010-04-24  Bruno Haible  <bruno@clisp.org>
31299
31300         Avoid a gcc warning.
31301         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Pass argument
31302         of correct type for %08lx directive.
31303         Reported by Eric Blake.
31304
31305 2010-04-24  Bruno Haible  <bruno@clisp.org>
31306
31307         vasnprintf: Correct errno value in case of out-of-memory.
31308         * lib/vasnprintf.c (VASNPRINTF): Set errno to 0 before calling SNPRINTF
31309         or sprintf. Use the errno value from SNPRINTF or sprintf.
31310         Reported by Ian Beckwith <ianb@erislabs.net>.
31311
31312 2010-04-24  Bruno Haible  <bruno@clisp.org>
31313
31314         ansi-c++-opt: Find correct compiler when cross-compiling.
31315         * m4/ansi-c++.m4 (gl_PROG_ANSI_CXX): Use AC_CHECK_TOOLS instead of
31316         AC_CHECK_PROGS.
31317         Reported by Simon Josefsson.
31318
31319 2010-04-24  Giuseppe Scrivano  <gscrivano@gnu.org>
31320
31321         vc-list-files: Add support for subversion
31322         * build-aux/vc-list-files: Use "svn list" to generate the list of
31323         files controlled by subversion.
31324
31325 2010-04-23  Jim Meyering  <meyering@redhat.com>
31326
31327         vc-list-files tests: convert to use init.sh
31328         * tests/test-vc-list-files-cvs.sh: Invoke "$srcdir/init.sh" and
31329         path_prepend_.
31330         Use Exit, not exit.
31331         Use skip_ rather than open coding it.
31332         Remove trap set-up and compare definitions.
31333         * tests/test-vc-list-files-git.sh: Likewise.
31334         * modules/vc-list-files-tests (Files): Add tests/init.sh.
31335
31336 2010-04-22  Simon Josefsson  <simon@josefsson.org>
31337
31338         * top/maint.mk (sc_prohibit_backup_files): Prohibit checked in
31339         backup files.
31340
31341 2010-04-21  Simon Josefsson  <simon@josefsson.org>
31342
31343         * tests/test-vasprintf.c (test_vasprintf, test_asprintf): Test %08lx.
31344
31345 2010-04-20  Eric Blake  <eblake@redhat.com>
31346
31347         tests: be robust to ignored SIGPIPE
31348         * tests/test-select-in.sh: Consume all output.
31349         * tests/test-lseek.sh: Check correct exit status, while avoiding
31350         EPIPE.
31351
31352 2010-04-20  Simon Josefsson  <simon@josefsson.org>
31353             Bruno Haible  <bruno@clisp.org>
31354
31355         visibility: Don't use -fvisibility if it leads to a warning.
31356         * m4/visibility.m4 (gl_VISIBILITY): Check whether -Werror is usable. If
31357         yes, don't pretend that visibility works if it leads to a warning.
31358         Reported by Mike Gran <spk121@yahoo.com>.
31359
31360 2010-04-20  Andreas Gruenbacher  <agruen@suse.de>
31361
31362         * build-aux/bootstrap: Use "git -h" for testing for supported options
31363         instead of "git --help".  The short-form option only shows a summary,
31364         and doesn't layout the full man page.  Grep for the full option name
31365         in the summary, too.
31366
31367 2010-04-19  Bruno Haible  <bruno@clisp.org>
31368
31369         relocatable: Drop the need to define RELOCATABLE_STRIP in Makefile.am.
31370         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Set RELOCATABLE_STRIP.
31371         * doc/relocatable-maint.texi (Supporting Relocation): Remove the
31372         mention of RELOCATABLE_STRIP.
31373         Reported by Sylvain Beucler <beuc@beuc.net>.
31374
31375 2010-04-19  Bruno Haible  <bruno@clisp.org>
31376
31377         * lib/diffseq.h: Fix typo in comment.
31378         Reported by Eric Blake.
31379
31380 2010-04-19  Bruno Haible  <bruno@clisp.org>
31381
31382         ioctl: Move autoconf macro to a .m4 file.
31383         * m4/ioctl.m4: New file, extracted from modules/ioctl.
31384         * modules/ioctl (Files): Add it.
31385         (configure.ac): Simply invoke gl_FUNC_IOCTL.
31386         Reported by Ian Beckwith <ianb@erislabs.net>.
31387
31388 2010-04-18  Andreas Gruenbacher  <agruen@suse.de>
31389             Bruno Haible  <bruno@clisp.org>
31390
31391         diffseq: Accommodate use-case with abstract arrays.
31392         * lib/diffseq.h (struct context): Remove xvec, yvec fields if ELEMENT
31393         is not defined.
31394         (diag, compareseq): Remove local variables xv, yv if ELEMENT is not
31395         defined. Use local macro XREF_YREF_EQUAL instead of EQUAL.
31396
31397 2010-04-18  Bruno Haible  <bruno@clisp.org>
31398
31399         * doc/posix-headers/stdbool.texi: More precise wording.
31400
31401 2010-04-17  Jim Meyering  <meyering@redhat.com>
31402
31403         maint.mk: use gnu-style indentation in an embedded perl script
31404         * top/maint.mk (detect_empty_lines_at_EOF_): Clean up formatting.
31405         Rename variable: s/two/last_two_bytes/
31406
31407 2010-04-16  Eric Blake  <eblake@redhat.com>
31408
31409         test-stdbool: skip test that fails with Solaris CC
31410         * tests/test-stdbool.c (f): Skip test that causes compilation
31411         error under buggy C++ compiler.
31412         * lib/stdbool.in.h: Document the limitation.
31413         * doc/posix-headers/stdbool.texi (stdbool.h): Likewise.
31414
31415         setenv: allow compilation with C++
31416         * lib/setenv.c (__add_to_environ): Add a cast.  Also, drop use of
31417         register keyword.
31418
31419         stdint: allow test to pass with C++
31420         * tests/test-stdint.c: Define __STDC_CONSTANT_MACROS, for glibc.
31421
31422         getopt: allow compilation with C++
31423         * lib/getopt_int.h (__ordering): Hoist enum declaration outside
31424         struct.
31425         * lib/getopt.c (_getopt_internal_r): Use correct type.
31426         Reported by Dagobert Michelson, via Joel E. Denny.
31427
31428 2010-04-16  Bruno Haible  <bruno@clisp.org>
31429
31430         Override netdb.h always.
31431         * modules/netdb (Makefile.am): Augment BUILT_SOURCES always.
31432         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't set NETDB_H.
31433         Reported by Ludovic Courtès <ludo@gnu.org>.
31434
31435 2010-04-15  Bruno Haible  <bruno@clisp.org>
31436
31437         openpty: Fix mistake from 2010-03-21.
31438         * m4/pty.m4 (gl_FUNC_OPENPTY): Define HAVE_OPENPTY when openpty exists.
31439         Reported by Simon Josefsson.
31440
31441 2010-04-15  Eric Blake  <eblake@redhat.com>
31442
31443         test-forkpty: fix expected signature
31444         * tests/test-forkpty.c (SIGNATURE_CHECK): Add appropriate const.
31445         Reported by Simon Josefsson.
31446
31447 2010-04-15  Jim Meyering  <meyering@redhat.com>
31448
31449         maint.mk: texinfo_suffix_re_: correct the default regexp
31450         * top/maint.mk (texinfo_suffix_re_): Fix default regexp.
31451
31452         * top/maint.mk (sc_texinfo_acronym): Improve filename regexp, and
31453         make it configurable via texinfo_suffix_re_.
31454
31455 2010-04-14  Eric Blake  <eblake@redhat.com>
31456
31457         strtok_r: relax license to LGPLv2+
31458         * modules/strtok_r (License): Relax license.
31459         Reported by Matthias Bolte.
31460
31461 2010-04-14  Simon Josefsson  <simon@josefsson.org>
31462
31463         * lib/gc-libgcrypt.c (gc_init): Use MIN_GCRYPT_VERSION set to
31464         version 1.4.4 by default instead of requiring the libgcrypt
31465         version used during build.  This makes it possible to use the
31466         application with older but still binary compatible libgcrypt
31467         versions.
31468
31469 2010-04-13  Eric Blake  <eblake@redhat.com>
31470
31471         getopt-gnu: match recent glibc fixes and posix ruling
31472         * tests/test-getopt.h (test_getopt): Strengthen tests of leading
31473         '+' handling, when requesting extensions.
31474         * tests/test-getopt_long.h (test_getopt_long): Strengthen test of
31475         'W;' handling.
31476         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Detect glibc 2.11 bug.
31477         * doc/posix-functions/getopt.texi (getopt): Document this.
31478         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31479         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31480         Likewise.
31481
31482         getopt: merge bug fixes from glibc
31483         * lib/getopt.c (_getopt_internal_r): Use correct message for 'W;'
31484         diagnostics.  Honor '+:' correctly.  Reject ';'.
31485
31486         getopt-posix: detect MacOS bug
31487         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Reject MacOS botch of
31488         optind when missing a required argument.
31489         * doc/posix-functions/getopt.texi (getopt): Document the bug.
31490         * doc/glibc-functions/getopt_long.texi (getopt_long): Likewise.
31491         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
31492         Likewise.
31493
31494         getopt-posix: avoid spurious failure on Solaris
31495         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for getopt_clip as
31496         an indicator that setting optind=1 is sufficient for reset.
31497
31498         getopt-posix: avoid spurious failure on FreeBSD
31499         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Check for optreset even
31500         in POSIX mode, since the m4 test uses it.
31501
31502         gnulib-tool: silence warning on BSD sh
31503         * gnulib-tool: Avoid leaking warning about unknown 'declare'.
31504
31505 2010-04-13  Jim Meyering  <meyering@redhat.com>
31506
31507         doc: users.txt: GNU patch now uses gnulib
31508         * users.txt: Add patch.
31509
31510 2010-04-12  Jim Meyering  <meyering@redhat.com>
31511
31512         maint.mk: generate more concise timing data for syntax-check rules
31513         * top/maint.mk ($(sc_z_rules_)): Remove the ":", "sc_" prefix and
31514         " done" from each line that reports a syntax-check test duration.
31515
31516 2010-04-12  Andreas Gruenbacher  <agruen@suse.de>
31517
31518         git-version-gen: use "git update-index..." rather than "git status"
31519         * build-aux/git-version-gen: Use git update-index --refresh, not
31520         "git status".  With some versions of git, "git status" would fail
31521         to update the index and result in an unwarranted "-dirty" suffix.
31522
31523 2010-04-11  Jim Meyering  <meyering@redhat.com>
31524
31525         openat: correct formatting (no semantic change)
31526         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Correct formatting in AC_DEFINE.
31527         Suggested by Bruno Haible.
31528
31529 2010-04-11  Bruno Haible  <bruno@clisp.org>
31530
31531         Stricter declaration checking in testdirs.
31532         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
31533         If for_tests is true, augment AM_CPPFLAGS to define
31534         GNULIB_STRICT_CHECKING.
31535         * build-aux/warn-on-use.h (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): When
31536         GNULIB_STRICT_CHECKING is defined, verify that the function is
31537         declared.
31538
31539 2010-04-11  Paolo Bonzini  <bonzini@gnu.org>
31540             Bruno Haible  <bruno@clisp.org>
31541
31542         libunistring: Improve configure output.
31543         * m4/libunistring.m4 (gl_LIBUNISTRING): Check for libiconv first.
31544         Don't say "consider installing GNU libunistring" when checking again
31545         with libiconv.
31546
31547 2010-04-11  Bruno Haible  <bruno@clisp.org>
31548
31549         libunistring: Correct value of $LTLIBUNISTRING.
31550         * m4/libunistring.m4 (gl_LIBUNISTRING): When it depends on libiconv,
31551         correct the value of $LTLIBUNISTRING.
31552
31553 2010-04-11  Bruno Haible  <bruno@clisp.org>
31554
31555         havelib: Add static libraries to LIBS in the right order.
31556         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): When $LIB[]NAME contains no
31557         -l options, prepend it to $LIBS, instead of appending it to $LIBS.
31558
31559 2010-04-11  Bruno Haible  <bruno@clisp.org>
31560
31561         libunistring: Detect libunistring also when it depends on libiconv.
31562         * m4/libunistring.m4 (gl_LIBUNISTRING): Unset the cached result before
31563         the second AC_LIB_HAVE_LINKFLAGS invocation.
31564
31565 2010-04-11  James Youngman  <jay@gnu.org>
31566
31567         close-stream: declare local scalars to be "const"
31568         * lib/close-stream.c (close_stream): Make boolean variables const
31569         to document the fact that we set but do not change them.
31570
31571 2010-04-11  Bruno Haible  <bruno@clisp.org>
31572
31573         * m4/libunistring.m4 (gl_LIBUNISTRING): Fix typo in comment.
31574
31575 2010-04-11  Jim Meyering  <meyering@redhat.com>
31576
31577         maint.mk: don't include dist-check.mk
31578         * top/maint.mk: Remove bogus include directive.
31579
31580         maint.mk: improve empty-line-at-EOF check
31581         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): Use Perl-based
31582         solution, rather than tail+Perl-based one.  The latter would read
31583         a few kilobytes from the end of each file, and did not handle empty
31584         files properly.
31585
31586         maint.mk: print the elapsed time for each syntax-check rule
31587         * top/maint.mk (sc_m_rules_): Save start time in a file.
31588         (sc_z_rules_): New rules: remove temp file and print elapsed time.
31589         (local-check): Interpose the .z rules
31590
31591 2010-04-11  Jim Meyering  <meyering@redhat.com>
31592
31593         maint.mk: detect_empty_lines_at_EOF_: avoid FP for an empty file
31594         * top/maint.mk (detect_empty_lines_at_EOF_): Don't confuse an
31595         empty file with one that ends in an empty line.
31596
31597 2010-04-10  Bruno Haible  <bruno@clisp.org>
31598
31599         mkdir: Make it work on mingw64.
31600         * lib/sys_stat.in.h: Include <direct.h> together with <io.h>.
31601         * lib/mkdir.c: Update comment.
31602         Reported by Roman Donchenko (Роман Ð”онченко) <dxdragon@yandex.ru>.
31603
31604 2010-04-10  Bruno Haible  <bruno@clisp.org>
31605
31606         Don't override improved macro from newer autoconf.
31607         * m4/gnulib-common.m4 (AC_C_RESTRICT): Don't define for
31608         autoconf >= 2.62.
31609         Reported by Joel E. Denny <jdenny@clemson.edu>.
31610
31611 2010-04-10  Jim Meyering  <meyering@redhat.com>
31612
31613         maint.mk: new syntax-check rule: prohibit empty lines at end of file
31614         * top/maint.mk (sc_prohibit_empty_lines_at_EOF): New rule.
31615
31616         maint.mk: correct a diagnostic
31617         * top/maint.mk (sc_prohibit_HAVE_MBRTOWC): Fix obsolete use of $re
31618         in diagnostic; now use $prohibit.
31619
31620 2010-04-10  Bruno Haible  <address@hidden>
31621
31622         fchownat: Fix a C++ test error on Solaris 8.
31623         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Don't set REPLACE_FCHOWNAT to 1 if
31624         the function does not exist.
31625
31626 2010-04-10  Bruno Haible  <bruno@clisp.org>
31627
31628         vasnprintf: Add more tests.
31629         * tests/test-vasnprintf-posix.c: Include <errno.h>.
31630         (test_function): Test converting an invalid wide string.
31631
31632         vasnprintf: Correct handling of unconvertible wide string arguments.
31633         * lib/vasnprintf.c (MAX_ROOM_NEEDED): New function, extracted from
31634         VASNPRINTF.
31635         (VASNPRINTF): Use it. After snprintf failed, allocate more memory only
31636         if HAVE_SNPRINTF_RETVAL_C99 is false and the allocated memory is
31637         smaller than the expected maximum need for the directive. Set errno to
31638         EILSEQ, not EINVAL, when the directive is 'c' or 's'.
31639         (local_strnlen, local_wcslen, local_wcsnlen): Update conditions.
31640         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Require AC_C_INLINE and
31641         gl_SNPRINTF_RETVAL_C99. Define HAVE_SNPRINTF_RETVAL_C99.
31642         * modules/vasnprintf (Files): Add m4/printf.m4.
31643         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31644
31645 2010-04-10  Bruno Haible  <bruno@clisp.org>
31646
31647         vasnprintf: Fix crash in %ls directive.
31648         * lib/vasnprintf.c (VASNPRINTF): Don't abort when a unconvertible wide
31649         string is passed as argument to %ls, with no precision and no width.
31650         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31651
31652 2010-04-10  Bruno Haible  <bruno@clisp.org>
31653
31654         vasnprintf: Fix multiple test failures on mingw.
31655         * lib/vasnprintf.c (SNPRINTF) [mingw]: Define to snprintf, not
31656         _snprintf, or snwprintf, not _snwprintf.
31657
31658 2010-04-10  Bruno Haible  <bruno@clisp.org>
31659
31660         write: Fix a C++ test error on mingw.
31661         * lib/unistd.in.h (write): Use _GL_CXXALIAS_SYS_CAST.
31662
31663 2010-04-10  Bruno Haible  <bruno@clisp.org>
31664
31665         vasnprintf test: Reduce code duplication.
31666         * tests/test-vasnprintf.c (test_function): New function, extracted from
31667         test_vasnprintf.
31668         (test_vasnprintf, test_asnprintf): Invoke it.
31669
31670 2010-04-10  Bruno Haible  <bruno@clisp.org>
31671
31672         strnlen: Fix warning in C++ mode on MacOS X.
31673         * lib/string.in.h (strnlen): Use the modern idiom.
31674         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set REPLACE_STRNLEN to 1, instead of
31675         defining strnlen as a macro already in <config.h>.
31676         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
31677         REPLACE_STRNLEN.
31678         * modules/string (Makefile.am): Substitute REPLACE_STRNLEN.
31679         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31680
31681 2010-04-08  James Youngman  <jay@gnu.org>
31682
31683         * doc/manywarnings.texi (manywarnings): Add missing parenthesis in
31684         the example.
31685
31686 2010-04-09  Jim Meyering  <meyering@redhat.com>
31687
31688         maint.mk: print better diagnostic when there is no $(_hv_file)
31689         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): Skip test and
31690         announce that when $(_hv_file) (aka help-version) does not exist.
31691
31692         init.sh: run tr in the "C" locale to avoid multibyte interpretation
31693         * tests/init.sh (rand_bytes_): Run tr in the "C" locale so it does
31694         not try to interpret its random input bytes.  Jarno Rajahalme reported
31695         that ./test-xalloc-die.sh would fail with "tr: Illegal byte sequence".
31696         on Darwin 10.3.0 with LC_CTYPE=UTF-8.
31697         (mktempd_): Likewise, just in case.
31698
31699         ftruncate: add two years to projected module removal date: 2012
31700         * m4/ftruncate.m4: Adjust comments.
31701
31702         ftruncate: mark module as obsolete; even MinGW provides it, now
31703         * modules/ftruncate (Status): Obsolete.
31704         (Notice): Say that.
31705         * doc/posix-functions/ftruncate.texi: Don't say MinGW lacks it.
31706         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/9203
31707
31708 2010-04-08  Bruno Haible  <bruno@clisp.org>
31709
31710         Fix side effects from tests-related modules.
31711         * modules/dprintf-posix (Comment): New section.
31712         * modules/fprintf-posix (Comment): Likewise.
31713         * modules/obstack-printf-posix (Comment): Likewise.
31714         * modules/printf-posix (Comment): Likewise.
31715         * modules/snprintf-posix (Comment): Likewise.
31716         * modules/sprintf-posix (Comment): Likewise.
31717         * modules/vasnprintf-posix (Comment): Likewise.
31718         * modules/vasprintf-posix (Comment): Likewise.
31719         * modules/vdprintf-posix (Comment): Likewise.
31720         * modules/vfprintf-posix (Comment): Likewise.
31721         * modules/vprintf-posix (Comment): Likewise.
31722         * modules/vsnprintf-posix (Comment): Likewise.
31723         * modules/vsprintf-posix (Comment): Likewise.
31724         * modules/xprintf-posix (Comment): Likewise.
31725         * modules/xvasprintf-posix (Comment): Likewise.
31726         * modules/ceilf-tests (Depends-on): Remove fprintf-posix.
31727         * modules/floorf-tests (Depends-on): Likewise.
31728         * modules/round-tests (Depends-on): Likewise.
31729         * modules/roundf-tests (Depends-on): Likewise.
31730         * modules/trunc-tests (Depends-on): Likewise.
31731         * modules/truncf-tests (Depends-on): Likewise.
31732         * tests/test-ceilf2.c (check): Don't invoke fprintf if the
31733         'fprintf-posix' module is not present.
31734         * tests/test-floorf2.c (check): Likewise.
31735         * tests/test-trunc2.c (check): Likewise.
31736         * tests/test-truncf2.c (check): Likewise.
31737         * tests/test-round2.c (equal): Likewise.
31738         Reported by Jarno Rajahalme <jarno.rajahalme@nsn.com>.
31739
31740 2010-04-07  Karl Berry  <karl@gnu.org>
31741
31742         * config/srclist.txt,
31743         * config/srclistvars.sh,
31744         * config/srclist-update: doc fixes.
31745
31746 2010-04-07  Jim Meyering  <meyering@redhat.com>
31747
31748         maint.mk: add a PATH crosschecking syntax-check rule
31749         * top/maint.mk (sc_cross_check_PATH_usage_in_tests): New rule.
31750         Useful if you use a test like the one in help-version (coreutils,
31751         diffutils, grep, gzip) that ensures $(VERSION) matches what is
31752         printed by prog --version.
31753
31754 2010-04-06  Bruno Haible  <bruno@clisp.org>
31755
31756         Fix link error on mingw.
31757         * modules/unistd-c++-tests (test_unistd_c___LDADD): Add LIBSOCKET.
31758         * modules/fcntl-h-c++-tests (test_fcntl_h_c___LDADD): Likewise.
31759
31760 2010-04-06  Bruno Haible  <bruno@clisp.org>
31761
31762         Assume rmdir exists.
31763         * lib/rmdir.c (rpl_rmdir): Remove code that invokes the rmdir program.
31764
31765 2010-04-06  Giuseppe Scrivano <gscrivano@gnu.org>
31766
31767         doc: update users.txt
31768         * users.txt: Add gcal.
31769
31770 2010-04-06  Jim Meyering  <meyering@redhat.com>
31771
31772         init.sh: simply unset TMPDIR rather than risking env -i
31773         * tests/init.sh (mktempd_): Using env -i is rather harsh, and
31774         although it probably works fine on all Unix-based systems, some
31775         systems (Cygwin?) cannot tolerate a totally cleared environment.
31776         Suggestion from Eric Blake.
31777
31778 2010-04-06  Jim Meyering  <meyering@redhat.com>
31779
31780         init.sh: portability fix: use env's POSIX-specified -i option not -u
31781         * tests/init.sh (mktempd_): Use env -i and set PATH explicitly rather
31782         than unportable env -u.  Solaris 5.11's env lacks support for -u.
31783
31784 2010-04-05  Bruno Haible  <bruno@clisp.org>
31785
31786         btowc: Work around Cygwin 1.7.2 bug.
31787         * m4/btowc.m4 (gl_FUNC_BTOWC): Set REPLACE_BTOWC to 1 if the function
31788         does not map NUL to 0.
31789         * doc/posix-functions/btowc.texi: Mention the Cygwin bug.
31790
31791 2010-04-05  Bruno Haible  <bruno@clisp.org>
31792
31793         Make the multithread modules work on Cygwin 1.7.2.
31794         * m4/threadlib.m4 (gl_THREADLIB_BODY): Improve the test whether
31795         imported symbols can be declared weak, so that it returns "no" on
31796         Cygwin 1.7.2.
31797
31798 2010-04-05  Bruno Haible  <bruno@clisp.org>
31799
31800         Use the module 'strncat'.
31801         * modules/unistr/u8-strncat (Depends-on): Add strncat.
31802
31803         Tests for module 'strncat'.
31804         * modules/strncat-tests: New file.
31805         * tests/test-strncat.c: New file.
31806
31807         New module 'strncat'.
31808         * lib/string.in.h (strncat): New declaration.
31809         * lib/strncat.c: New file, based on lib/unistr/u-strncat.h.
31810         * m4/strncat.m4: New file, based on m4/memchr.m4.
31811         * modules/strncat: New file.
31812         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Also check whether strncat
31813         is declared.
31814         (gl_HEADER_STRING_H_DEFAULTS): Initialize GNULIB_STRNCAT,
31815         REPLACE_STRNCAT.
31816         * modules/string (Makefile.am): Substitute GNULIB_STRNCAT,
31817         REPLACE_STRNCAT.
31818         * doc/posix-functions/strncat.texi: Mention the Solaris bug and the new
31819         module.
31820         * tests/test-string-c++.cc: Check signature of strncat.
31821
31822 2010-04-05  Jim Meyering  <meyering@redhat.com>
31823
31824         xstrtoumax-tests: convert to use init.sh
31825         * modules/xstrtoumax-tests (Files): Add tests/init.sh.
31826         * tests/test-xstrtoumax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31827         Use Exit, not exit.
31828         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31829
31830         xstrtoimax-tests: convert to use init.sh
31831         * modules/xstrtoimax-tests (Files): Add tests/init.sh.
31832         * tests/test-xstrtoimax.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31833         Use Exit, not exit.
31834         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31835
31836 2010-04-05  Bruno Haible  <bruno@clisp.org>
31837
31838         sys_socket: Avoid #define replacements in C++ mode.
31839         * lib/sys_socket.in.h (close, gethostname, select): In C++, attach a
31840         warning to the function if possible, rather than #defining the symbol
31841         to a dysfunctional alias.
31842
31843 2010-04-05  Bruno Haible  <bruno@clisp.org>
31844
31845         fseeko: Fix C++ test error on mingw.
31846         * m4/fseeko.m4 (gl_HAVE_FSEEKO): New macro, extracted from
31847         gl_FUNC_FSEEKO.
31848         (gl_REPLACE_FSEEKO): Also set REPLACE_FSEEKO if appropriate.
31849         (gl_FUNC_FSEEKO): Require gl_HAVE_FSEEKO. Update.
31850         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't fiddle with internals of the
31851         fseeko module. Instead, invoke gl_REPLACE_FSEEKO.
31852
31853 2010-04-05  Bruno Haible  <bruno@clisp.org>
31854
31855         duplocale: Improve test output.
31856         * tests/test-duplocale.c (main): Print reason for skipped test.
31857
31858 2010-04-05  Bruno Haible  <bruno@clisp.org>
31859
31860         Assume rmdir exists.
31861         * m4/rmdir.m4 (gl_FUNC_RMDIR): Remove test whether rmdir exists.
31862         * doc/posix-functions/rmdir.texi: Remove mention of "old platforms".
31863
31864 2010-04-05  Bruno Haible  <bruno@clisp.org>
31865
31866         Fix link error on Solaris 8 with cc.
31867         * modules/pty-c++-tests (test_pty_c___LDADD): Add LIBINTL.
31868
31869 2010-04-05  Bruno Haible  <bruno@clisp.org>
31870
31871         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
31872         * lib/math.in.h (frexpl): Fix condition on _GL_CXXALIASWARN invocation.
31873
31874 2010-04-05  Bruno Haible  <bruno@clisp.org>
31875
31876         vasprintf: Update documentation.
31877         * doc/glibc-functions/asprintf.texi: Mention the 'vasprintf' module.
31878
31879 2010-04-05  Bruno Haible  <bruno@clisp.org>
31880
31881         ptsname: Improve test.
31882         * tests/test-ptsname.c (main): Also try the various master names of BSD
31883         systems.
31884
31885 2010-04-05  Bruno Haible  <bruno@clisp.org>
31886
31887         memchr: Avoid a possible C++ test error.
31888         * lib/string.in.h (memchr): Provide declaration if function is missing.
31889         * m4/memchr.m4 (gl_FUNC_MEMCHR): If the function is missing, set
31890         HAVE_MEMCHR to 0, not REPLACE_MEMCHR to 1.
31891         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MEMCHR.
31892         * modules/string (Makefile.am): Substitute HAVE_MEMCHR.
31893
31894 2010-04-05  Bruno Haible  <bruno@clisp.org>
31895
31896         strtok_r: Improve idiom.
31897         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Invoke gl_PREREQ_STRDUP only when
31898         AC_LIBOBJ is used.
31899
31900 2010-04-05  Bruno Haible  <bruno@clisp.org>
31901
31902         strdup: Improve idiom.
31903         * m4/strdup.m4 (gl_FUNC_STRDUP): Invoke gl_PREREQ_STRDUP only when
31904         AC_LIBOBJ is used.
31905         (gl_FUNC_STRDUP_POSIX): When strdup is missing and malloc is not POSIX
31906         compliant, don't set REPLACE_STRDUP to 1. Invoke gl_PREREQ_STRDUP only
31907         when AC_LIBOBJ is used.
31908
31909 2010-04-05  Bruno Haible  <bruno@clisp.org>
31910
31911         mbsinit, mbrtowc, wcrtomb: Improve idioms.
31912         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): When the function does not exist,
31913         don't set REPLACE_MBSINIT to 1.
31914         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): When the function does not exist,
31915         don't set REPLACE_MBRTOWC to 1.
31916         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): When the function does not
31917         exist, don't set REPLACE_MBSRTOWCS to 1.
31918         * m4/mbsnrtowcs.m4 (gl_FUNC_MBSNRTOWCS): When the function does not
31919         exist, don't set REPLACE_MBSNRTOWCS to 1.
31920         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): When the function does not exist,
31921         don't set REPLACE_WCRTOMB to 1.
31922         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): When the function does not
31923         exist, don't set REPLACE_WCSRTOMBS to 1.
31924         * m4/wcsnrtombs.m4 (gl_FUNC_WCSNRTOMBS): When the function does not
31925         exist, don't set REPLACE_WCSNRTOMBS to 1.
31926
31927 2010-04-05  Bruno Haible  <bruno@clisp.org>
31928
31929         ldexpl: Improve idiom.
31930         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): When the function is not declared,
31931         make sure to set HAVE_DECL_LDEXPL to 0.
31932
31933 2010-04-05  Jim Meyering  <meyering@redhat.com>
31934
31935         xstrtol-tests: convert to use init.sh
31936         * modules/xstrtol-tests (Files): Add tests/init.sh.
31937         * tests/test-xstrtol.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31938         Use Exit, not exit.
31939         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31940
31941         atexit-tests: convert to use init.sh
31942         * modules/atexit-tests (Files): Add tests/init.sh.
31943         * tests/test-atexit.sh: Invoke "$srcdir/init.sh" and path_prepend_.
31944         Use Exit, not exit.
31945         Remove uses of $EXEEXT and "./" to run a program in the current dir.
31946
31947         init.sh: fix typo
31948         * tests/init.sh: Restore omitted ":" before stderr_fileno_ initialization.
31949
31950         init.sh: make it easier for a test script to write to the tty, ...
31951         when using automake's parallel-tests mode.
31952         * tests/init.sh (stderr_fileno_): Define overridable variable.
31953         (warn_): New function, to use it.
31954         (fail_, skip_, framework_failure_): Use warn_.
31955
31956 2010-04-04  Bruno Haible  <bruno@clisp.org>
31957
31958         btowc: Avoid warning.
31959         * lib/btowc.c: Include <stdlib.h>.
31960         Reported by Hauke Fath <hauke@espresso.rhein-neckar.de>.
31961
31962 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31963             Bruno Haible  <bruno@clisp.org>
31964
31965         wchar: Port to NetBSD 1.5.
31966         * lib/wchar.in.h (WEOF): Provide fallback also when wint_t exists.
31967         * lib/wctype.in.h (WEOF): Likewise.
31968
31969 2010-04-04  Hauke Fath  <hauke@espresso.rhein-neckar.de>  (tiny change)
31970             Bruno Haible  <bruno@clisp.org>
31971
31972         Port extended stdio to NetBSD 1.5.
31973         * lib/stdio-impl.h [NetBSD]: Include <sys/param.h>.
31974         (struct __sfileext, fp_ub): Define the "old way" for NetBSD 1.5Z and
31975         older.
31976
31977 2010-04-04  Bruno Haible  <bruno@clisp.org>
31978
31979         string: Remove unused substitution.
31980         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
31981         HAVE_DECL_STRERROR.
31982         * modules/string (Makefile.am): Don't substitute HAVE_DECL_STRERROR.
31983
31984 2010-04-04  Bruno Haible  <bruno@clisp.org>
31985
31986         strtod: Avoid a possible C++ test error.
31987         * m4/strtod.m4 (gl_FUNC_STRTOD): When setting HAVE_STRTOD to 0, don't
31988         set REPLACE_STRTOD.
31989
31990 2010-04-04  Bruno Haible  <bruno@clisp.org>
31991
31992         strerror: Update documentation.
31993         * doc/posix-functions/strerror.texi: Remove mention of old platforms.
31994
31995 2010-04-04  Bruno Haible  <bruno@clisp.org>
31996
31997         stdio: Fix some C++ test errors on Solaris 8 with GCC.
31998         * lib/stdio.in.h (vdprintf, vfprintf, vprintf, vsprintf): Use
31999         _GL_CXXALIAS_SYS_CAST.
32000
32001 2010-04-04  Bruno Haible  <bruno@clisp.org>
32002
32003         frexpl: Fix a C++ test error on Solaris 8 and Cygwin.
32004         * m4/frexpl.m4 (gl_FUNC_FREXPL, gl_FUNC_FREXPL_NO_LIBM): When the
32005         function is not declared, set HAVE_DECL_FREXPL to 0, instead of setting
32006         REPLACE_FREXPL to 1.
32007         * doc/posix-functions/frexpl.texi: Update documentation.
32008
32009 2010-04-04  Bruno Haible  <bruno@clisp.org>
32010
32011         math: Fix some C++ test errors on Solaris 8 and Cygwin.
32012         * lib/math.in.h (cosl, logl, sinl): Use simpler idiom.
32013
32014 2010-04-04  Bruno Haible  <bruno@clisp.org>
32015
32016         Implement nanosleep for native Windows.
32017         * lib/nanosleep.c (nanosleep): New implementation for native Windows.
32018
32019 2010-04-04  Bruno Haible  <bruno@clisp.org>
32020
32021         math: Fix some C++ test errors on Solaris 8.
32022         * lib/math.in.h (truncf, trunc): Use simpler idiom.
32023
32024 2010-04-04  Bruno Haible  <bruno@clisp.org>
32025
32026         math: Fix some C++ test errors on Cygwin.
32027         * lib/math.in.h (ceilf, ceill, floorf, floorl, roundf, round, roundl,
32028         truncl): Provide declaration if the system does not have it.
32029         * m4/ceilf.m4 (gl_FUNC_CEILF): If the function is not declared, set
32030         HAVE_DECL_CEILF to 0, not REPLACE_CEILF to 1.
32031         * m4/ceill.m4 (gl_FUNC_CEILL): If the function is not declared, set
32032         HAVE_DECL_CEILL to 0, not REPLACE_CEILL to 1.
32033         * m4/floorf.m4 (gl_FUNC_FLOORF): If the function is not declared, set
32034         HAVE_DECL_FLOORF to 0, not REPLACE_FLOORF to 1.
32035         * m4/floorl.m4 (gl_FUNC_FLOORL): If the function is not declared, set
32036         HAVE_DECL_FLOORL to 0, not REPLACE_FLOORL to 1.
32037         * m4/round.m4 (gl_FUNC_ROUND): If the function is not declared, set
32038         HAVE_DECL_ROUND to 0, not REPLACE_ROUND to 1.
32039         * m4/roundf.m4 (gl_FUNC_ROUNDF): If the function is not declared, set
32040         HAVE_DECL_ROUNDF to 0, not REPLACE_ROUNDF to 1.
32041         * m4/roundl.m4 (gl_FUNC_ROUNDL): If the function is not declared, set
32042         HAVE_DECL_ROUNDL to 0, not REPLACE_ROUNDL to 1.
32043         * m4/truncl.m4 (gl_FUNC_TRUNCL): If the function is not declared, set
32044         HAVE_DECL_TRUNCL to 0, not REPLACE_TRUNCL to 1.
32045         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize HAVE_DECL_CEILF,
32046         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32047         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32048         * modules/math (Makefile.am): Substitute HAVE_DECL_CEILF,
32049         HAVE_DECL_CEILL, HAVE_DECL_FLOORF, HAVE_DECL_FLOORL, HAVE_DECL_ROUND,
32050         HAVE_DECL_ROUNDF, HAVE_DECL_ROUNDL, HAVE_DECL_TRUNCL.
32051
32052 2010-04-04  Bruno Haible  <bruno@clisp.org>
32053
32054         * m4/ceilf.m4 (gl_FUNC_CEILF): Remove redundant AC_SUBST invocation.
32055         * m4/ceill.m4 (gl_FUNC_CEILL): Likewise.
32056         * m4/floorf.m4 (gl_FUNC_FLOORF): Likewise.
32057         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
32058         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
32059         * m4/isinf.m4 (gl_ISINF): Likewise.
32060         * m4/truncl.m4 (gl_FUNC_TRUNCL): Likewise.
32061
32062 2010-04-04  Bruno Haible  <bruno@clisp.org>
32063
32064         * m4/trunc.m4 (gl_FUNC_TRUNC): Remove redundant AC_SUBST invocation.
32065         * m4/truncf.m4 (gl_FUNC_TRUNCF): Likewise.
32066
32067 2010-04-04  Bruno Haible  <bruno@clisp.org>
32068
32069         * m4/tmpfile.m4 (gl_FUNC_TMPFILE): Renamed from gl_TMPFILE.
32070         * modules/tmpfile (configure.ac): Update.
32071
32072         tmpfile: Fix C++ test error on mingw.
32073         * lib/stdio.in.h (tmpfile): New declaration.
32074         * m4/tmpfile.m4 (gl_TMPFILE): Require gl_STDIO_H_DEFAULTS. Set
32075         REPLACE_TMPFILE instead of defining tmpfile as a macro in config.h.
32076         * modules/tmpfile (Depends-on): Add stdio.
32077         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
32078         * m4/stdio_h.m4 (gl_STDIO_H): Also check whether tmpfile is declared.
32079         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_TMPFILE and REPLACE_TMPFILE.
32080         * modules/stdio (Makefile.am): Substitute GNULIB_TMPFILE and
32081         REPLACE_TMPFILE.
32082         * tests/test-stdio-c++.cc (tmpfile): Verify signature.
32083
32084 2010-04-04  Bruno Haible  <bruno@clisp.org>
32085
32086         ioctl: Fix C++ test error on mingw.
32087         * lib/ioctl.c (ioctl): Renamed from rpl_ioctl.
32088         * lib/sys_ioctl.in.h (ioctl): When SYS_IOCTL_H_HAVE_WINSOCK2_H is 1,
32089         use _GL_FUNCDECL_SYS, not _GL_FUNCDECL_RPL.
32090
32091 2010-04-03  Bruno Haible  <bruno@clisp.org>
32092
32093         wcwidth: Fix C++ test error on mingw.
32094         * lib/wcwidth.c (wcwidth): Renamed from rpl_wcwidth.
32095         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): If the wcwidth function does not
32096         exist, don't set REPLACE_WCWIDTH. Instead, rely on HAVE_DECL_WCWIDTH.
32097
32098 2010-04-03  Bruno Haible  <bruno@clisp.org>
32099
32100         nanosleep: Fix C++ test error on mingw.
32101         * lib/nanosleep.c (nanosleep): Renamed from rpl_nanosleep.
32102         * lib/time.in.h (nanosleep): Use modern idiom.
32103         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): When the system does not have a
32104         nanosleep function, set HAVE_NANOSLEEP to 0, instead of setting
32105         REPLACE_NANOSLEEP to 1.
32106         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_NANOSLEEP.
32107         * modules/time (Makefile.am): Substitute HAVE_NANOSLEEP.
32108
32109 2010-04-03  Bruno Haible  <bruno@clisp.org>
32110
32111         strptime: Fix C++ test error on mingw.
32112         * lib/time.in.h (strptime): Use HAVE_STRPTIME, not REPLACE_STRPTIME.
32113         * m4/strptime.m4 (gl_FUNC_STRPTIME): Set HAVE_STRPTIME, not
32114         REPLACE_STRPTIME. Invoke gl_PREREQ_STRPTIME.
32115         (gl_PREREQ_STRPTIME): New macro, extracted from gl_FUNC_STRPTIME.
32116         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_STRPTIME,
32117         not REPLACE_STRPTIME.
32118         * modules/time (Makefile.am): Substitute HAVE_STRPTIME, not
32119         REPLACE_STRPTIME.
32120
32121 2010-04-03  Bruno Haible  <bruno@clisp.org>
32122
32123         timegm: Fix C++ test error on mingw.
32124         * lib/time.in.h (timegm): Use modern idiom.
32125         * m4/timegm.m4 (gl_FUNC_TIMEGM): When timegm does not exist, set
32126         HAVE_TIMEGM to 0, not REPLACE_TIMEGM to 1.
32127         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_TIMEGM.
32128         * modules/time (Makefile.am): Substitute HAVE_TIMEGM.
32129
32130 2010-04-03  Bruno Haible  <bruno@clisp.org>
32131
32132         timegm: Assume declaration if function exists.
32133         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume timegm is declared if and only
32134         if it exists. Don't clobber ac_cv_func_timegm.
32135
32136 2010-04-03  Bruno Haible  <bruno@clisp.org>
32137
32138         time_r: Fix C++ test error on mingw.
32139         * lib/time.in.h (localtime_r, gmtime_r): Use modern idiom.
32140         * m4/time_r.m4 (gl_TIME_R): When localtime_r does not exist, set
32141         HAVE_LOCALTIME_R to 0, not REPLACE_LOCALTIME_R to 1.
32142         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize HAVE_LOCALTIME_R.
32143         * modules/time (Makefile.am): Substitute HAVE_LOCALTIME_R.
32144
32145 2010-04-03  Bruno Haible  <bruno@clisp.org>
32146
32147         time_r: Minor updates.
32148         * modules/time_r (Description): Mention the provided functions.
32149         * lib/time_r.c: Don't include <string.h>.
32150         * doc/posix-functions/gmtime_r.texi: Mention the 'time_r' module.
32151         * doc/posix-functions/localtime_r.texi: Likewise.
32152
32153 2010-04-03  Bruno Haible  <bruno@clisp.org>
32154
32155         time: Fix regression introduced on 2010-03-08.
32156         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Require
32157         gl_HEADER_TIME_H_DEFAULTS, not gl_HEADER_STRING_H_DEFAULTS.
32158
32159 2010-04-03  Jim Meyering  <meyering@redhat.com>
32160
32161         maint.mk: don't silently disable project-specific syntax-check rules
32162         * top/maint.mk (_prohibit_regexp): Define, to help people realize
32163         that they need to convert their project-specific syntax-check rules
32164         to use the new _sc_search_regexp.
32165
32166 2010-04-03  Bruno Haible  <bruno@clisp.org>
32167
32168         fchdir: Fix regression introduced on 2010-03-08.
32169         * lib/unistd.in.h (fchdir): Fix declaration.
32170         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set HAVE_FCHDIR, not REPLACE_FCHDIR.
32171         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize HAVE_FCHDIR, not
32172         REPLACE_FCHDIR.
32173         * modules/unistd (Makefile.am): Substitute HAVE_FCHDIR, not
32174         REPLACE_FCHDIR.
32175
32176 2010-04-03  Bruno Haible  <bruno@clisp.org>
32177
32178         getpagesize: Fix C++ test error on mingw.
32179         * lib/unistd.in.h (getpagesize): Don't use _GL_CXXALIASWARN if the
32180         system does not declare the function.
32181         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Also check whether it's
32182         declared.
32183         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
32184         HAVE_DECL_GETPAGESIZE.
32185         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETPAGESIZE.
32186
32187 2010-04-03  Bruno Haible  <bruno@clisp.org>
32188
32189         stdio: Make C++ tests work on mingw.
32190         * lib/stdio.in.h (getline): Don't use _GL_CXXALIASWARN if the system
32191         does not declare the function.
32192
32193 2010-04-03  Bruno Haible  <bruno@clisp.org>
32194
32195         ftello: Fix C++ test error on mingw.
32196         * lib/stdio.in.h (ftello): Use modern idiom.
32197         * lib/ftello.c (ftello): Renamed from rpl_ftello.
32198         * m4/ftello.m4 (gl_FUNC_FTELLO): Distinguish the case that the function
32199         is missing and that it needs to be replaced.
32200         (gl_REPLACE_FTELLO): Don't set REPLACE_FTELLO here.
32201         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FTELLO.
32202         * modules/stdio (Makefile.am): Substitute HAVE_FTELLO.
32203
32204 2010-04-03  Bruno Haible  <bruno@clisp.org>
32205
32206         fseeko: Fix C++ test error on mingw.
32207         * lib/stdio.in.h (fseeko): Use modern idiom.
32208         * lib/fseeko.c (fseeko): Renamed from rpl_fseeko.
32209         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Distinguish the case that the function
32210         is missing and that it needs to be replaced.
32211         (gl_REPLACE_FSEEKO): Don't set REPLACE_FSEEKO here.
32212         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize HAVE_FSEEKO.
32213         * modules/stdio (Makefile.am): Substitute HAVE_FSEEKO.
32214
32215 2010-04-03  Bruno Haible  <bruno@clisp.org>
32216
32217         mkstemp: Fix C++ test error on mingw.
32218         * lib/stdlib.in.h (mkstemp): Use modern idiom.
32219         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Distinguish the case that the
32220         function is missing and that it needs to be replaced.
32221         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize HAVE_MKSTEMP.
32222         * modules/stdlib (Makefile.am): Substitute HAVE_MKSTEMP.
32223
32224 2010-04-03  Bruno Haible  <bruno@clisp.org>
32225
32226         stpncpy: Fix C++ test error on mingw.
32227         * lib/string.in.h (stpncpy): Use modern idiom.
32228         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Distinguish the case that the
32229         function is missing and that it needs to be replaced.
32230         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
32231         REPLACE_STPNCPY.
32232         * modules/string (Makefile.am): Substitute REPLACE_STPNCPY.
32233
32234 2010-04-03  Bruno Haible  <bruno@clisp.org>
32235
32236         sys_stat: Fix C++ test error on mingw.
32237         * build-aux/c++defs.h (_GL_CXXALIAS_RPL_CAST_1): New macro.
32238         * lib/sys_stat.in.h (lchmod): Use it instead of _GL_CXXALIAS_RPL_1.
32239
32240 2010-04-03  Bruno Haible  <bruno@clisp.org>
32241
32242         pty: Update doc.
32243         * doc/glibc-headers/pty.texi: Mention changes done since 2010-03-18.
32244
32245 2010-04-03  Bruno Haible  <bruno@clisp.org>
32246
32247         unistd: Fix C++ test error on mingw.
32248         * lib/unistd.in.h (getcwd): Use _GL_CXXALIAS_SYS_CAST.
32249
32250 2010-04-03  Bruno Haible  <bruno@clisp.org>
32251
32252         Update doc regarding mingw.
32253         * doc/glibc-functions/openpty.texi: Update regarding mingw.
32254         * doc/glibc-functions/login_tty.texi: Likewise.
32255         * doc/glibc-functions/forkpty.texi: Likewise.
32256
32257 2010-04-03  Bruno Haible  <bruno@clisp.org>
32258
32259         stdlib: Avoid compilation failure of c-strtold on mingw.
32260         * lib/stdlib.in.h: Don't include <unistd.h> on native Windows systems.
32261
32262 2010-04-03  Bruno Haible  <bruno@clisp.org>
32263
32264         locale: Make C++ tests work on Cygwin and mingw.
32265         * lib/locale.in.h (duplocale): Don't use _GL_CXXALIASWARN if gnulib
32266         cannot provide the function.
32267         Reported by Simon Josefsson.
32268
32269 2010-04-03  Bruno Haible  <bruno@clisp.org>
32270
32271         localename: Port to MacOS X 10.6.
32272         * lib/localename.c (gl_locale_name_thread_unsafe): On MacOS X, try the
32273         memory layout of the locales in MacOS X 10.6 as well.
32274         Reported by Panu Kekäläinen <panu@kekalainen.eu>.
32275
32276 2010-04-02  Bruno Haible  <bruno@clisp.org>
32277
32278         gnulib-tool: Ensure that long-running tests are executed last.
32279         * gnulib-tool (func_emit_tests_Makefile_am): Emit the code for long-
32280         running tests after the one for the other tests.
32281
32282 2010-04-02  Bruno Haible  <bruno@clisp.org>
32283
32284         gnulib-tool: Ensure the tests in the main directory are executed first.
32285         * gnulib-tool (func_emit_tests_Makefile_am): Initialize SUBDIRS to
32286         start with the current directory.
32287
32288 2010-04-02  Bruno Haible  <bruno@clisp.org>
32289
32290         Tests for module 'havelib', moved here from GNU gettext.
32291         * modules/havelib-tests: New file, from gettext/autoconf-lib-link with
32292         modifications.
32293         * tests/havelib/README: New file, from gettext/autoconf-lib-link.
32294         * tests/havelib/Makefile.am: New file, from gettext/autoconf-lib-link
32295         with modifications.
32296         * tests/havelib/rpath-1: New file, from gettext/autoconf-lib-link with
32297         modifications.
32298         * tests/havelib/rpath-1a: New file, from gettext/autoconf-lib-link.
32299         * tests/havelib/rpath-1b: New file, from gettext/autoconf-lib-link.
32300         * tests/havelib/rpath-2_a: New file, from gettext/autoconf-lib-link
32301         with modifications.
32302         * tests/havelib/rpath-2_b: New file, from gettext/autoconf-lib-link
32303         with modifications.
32304         * tests/havelib/rpath-2aaa: New file, from gettext/autoconf-lib-link.
32305         * tests/havelib/rpath-2aab: New file, from gettext/autoconf-lib-link.
32306         * tests/havelib/rpath-2aac: New file, from gettext/autoconf-lib-link.
32307         * tests/havelib/rpath-2aad: New file, from gettext/autoconf-lib-link.
32308         * tests/havelib/rpath-2aba: New file, from gettext/autoconf-lib-link.
32309         * tests/havelib/rpath-2abb: New file, from gettext/autoconf-lib-link.
32310         * tests/havelib/rpath-2abc: New file, from gettext/autoconf-lib-link.
32311         * tests/havelib/rpath-2abd: New file, from gettext/autoconf-lib-link.
32312         * tests/havelib/rpath-2baa: New file, from gettext/autoconf-lib-link.
32313         * tests/havelib/rpath-2bab: New file, from gettext/autoconf-lib-link.
32314         * tests/havelib/rpath-2bac: New file, from gettext/autoconf-lib-link.
32315         * tests/havelib/rpath-2bad: New file, from gettext/autoconf-lib-link.
32316         * tests/havelib/rpath-2bba: New file, from gettext/autoconf-lib-link.
32317         * tests/havelib/rpath-2bbb: New file, from gettext/autoconf-lib-link.
32318         * tests/havelib/rpath-2bbc: New file, from gettext/autoconf-lib-link.
32319         * tests/havelib/rpath-2bbd: New file, from gettext/autoconf-lib-link.
32320         * tests/havelib/rpath-3_a: New file, from gettext/autoconf-lib-link
32321         with modifications.
32322         * tests/havelib/rpath-3_b: New file, from gettext/autoconf-lib-link
32323         with modifications.
32324         * tests/havelib/rpath-3aaa: New file, from gettext/autoconf-lib-link.
32325         * tests/havelib/rpath-3aab: New file, from gettext/autoconf-lib-link.
32326         * tests/havelib/rpath-3aac: New file, from gettext/autoconf-lib-link.
32327         * tests/havelib/rpath-3aad: New file, from gettext/autoconf-lib-link.
32328         * tests/havelib/rpath-3aae: New file, from gettext/autoconf-lib-link.
32329         * tests/havelib/rpath-3aaf: New file, from gettext/autoconf-lib-link.
32330         * tests/havelib/rpath-3aag: New file, from gettext/autoconf-lib-link.
32331         * tests/havelib/rpath-3aah: New file, from gettext/autoconf-lib-link.
32332         * tests/havelib/rpath-3aba: New file, from gettext/autoconf-lib-link.
32333         * tests/havelib/rpath-3abb: New file, from gettext/autoconf-lib-link.
32334         * tests/havelib/rpath-3abc: New file, from gettext/autoconf-lib-link.
32335         * tests/havelib/rpath-3abd: New file, from gettext/autoconf-lib-link.
32336         * tests/havelib/rpath-3abe: New file, from gettext/autoconf-lib-link.
32337         * tests/havelib/rpath-3abf: New file, from gettext/autoconf-lib-link.
32338         * tests/havelib/rpath-3abg: New file, from gettext/autoconf-lib-link.
32339         * tests/havelib/rpath-3abh: New file, from gettext/autoconf-lib-link.
32340         * tests/havelib/rpath-3baa: New file, from gettext/autoconf-lib-link.
32341         * tests/havelib/rpath-3bab: New file, from gettext/autoconf-lib-link.
32342         * tests/havelib/rpath-3bac: New file, from gettext/autoconf-lib-link.
32343         * tests/havelib/rpath-3bad: New file, from gettext/autoconf-lib-link.
32344         * tests/havelib/rpath-3bae: New file, from gettext/autoconf-lib-link.
32345         * tests/havelib/rpath-3baf: New file, from gettext/autoconf-lib-link.
32346         * tests/havelib/rpath-3bag: New file, from gettext/autoconf-lib-link.
32347         * tests/havelib/rpath-3bah: New file, from gettext/autoconf-lib-link.
32348         * tests/havelib/rpath-3bba: New file, from gettext/autoconf-lib-link.
32349         * tests/havelib/rpath-3bbb: New file, from gettext/autoconf-lib-link.
32350         * tests/havelib/rpath-3bbc: New file, from gettext/autoconf-lib-link.
32351         * tests/havelib/rpath-3bbd: New file, from gettext/autoconf-lib-link.
32352         * tests/havelib/rpath-3bbe: New file, from gettext/autoconf-lib-link.
32353         * tests/havelib/rpath-3bbf: New file, from gettext/autoconf-lib-link.
32354         * tests/havelib/rpath-3bbg: New file, from gettext/autoconf-lib-link.
32355         * tests/havelib/rpath-3bbh: New file, from gettext/autoconf-lib-link.
32356         * tests/havelib/rpathx/rpathx.c: New file, from
32357         gettext/autoconf-lib-link.
32358         * tests/havelib/rpathx/Makefile.am: New file, from
32359         gettext/autoconf-lib-link.
32360         * tests/havelib/rpathx/configure.ac: New file, from
32361         gettext/autoconf-lib-link with modifications.
32362         * tests/havelib/rpathy/rpathy.c: New file, from
32363         gettext/autoconf-lib-link.
32364         * tests/havelib/rpathy/Makefile.am: New file, from
32365         gettext/autoconf-lib-link.
32366         * tests/havelib/rpathy/configure.ac: New file, from
32367         gettext/autoconf-lib-link with modifications.
32368         * tests/havelib/rpathz/rpathz.c: New file, from
32369         gettext/autoconf-lib-link.
32370         * tests/havelib/rpathz/Makefile.am: New file, from
32371         gettext/autoconf-lib-link.
32372         * tests/havelib/rpathz/configure.ac: New file, from
32373         gettext/autoconf-lib-link with modifications.
32374         * tests/havelib/rpathlx/usex.c: New file, from
32375         gettext/autoconf-lib-link.
32376         * tests/havelib/rpathlx/Makefile.am: New file, from
32377         gettext/autoconf-lib-link.
32378         * tests/havelib/rpathlx/configure.ac: New file, from
32379         gettext/autoconf-lib-link with modifications.
32380         * tests/havelib/rpathly/usey.c: New file, from
32381         gettext/autoconf-lib-link.
32382         * tests/havelib/rpathly/Makefile.am: New file, from
32383         gettext/autoconf-lib-link.
32384         * tests/havelib/rpathly/configure.ac: New file, from
32385         gettext/autoconf-lib-link with modifications.
32386         * tests/havelib/rpathlz/usez.c: New file, from
32387         gettext/autoconf-lib-link.
32388         * tests/havelib/rpathlz/Makefile.am: New file, from
32389         gettext/autoconf-lib-link.
32390         * tests/havelib/rpathlz/configure.ac: New file, from
32391         gettext/autoconf-lib-link with modifications.
32392         * tests/havelib/rpathlyx/usey.c: New file, from
32393         gettext/autoconf-lib-link.
32394         * tests/havelib/rpathlyx/Makefile.am: New file, from
32395         gettext/autoconf-lib-link.
32396         * tests/havelib/rpathlyx/configure.ac: New file, from
32397         gettext/autoconf-lib-link with modifications.
32398         * tests/havelib/rpathlzyx/usez.c: New file, from
32399         gettext/autoconf-lib-link.
32400         * tests/havelib/rpathlzyx/Makefile.am: New file, from
32401         gettext/autoconf-lib-link.
32402         * tests/havelib/rpathlzyx/configure.ac: New file, from
32403         gettext/autoconf-lib-link with modifications.
32404         * tests/havelib/rpathcfg.sh: New file, from gettext/autoconf-lib-link
32405         with modifications.
32406
32407 2010-04-02  Bruno Haible  <bruno@clisp.org>
32408
32409         gnulib-tool: Create distributed built sources also for the tests.
32410         * gnulib-tool (func_create_testdir): Also generate distributed built
32411         sources in the tests directory.
32412
32413 2010-04-02  Bruno Haible  <bruno@clisp.org>
32414
32415         gnulib-tool: Obey user's environment variables.
32416         * gnulib-tool (func_create_testdir): When creating built sources,
32417         respect the environment variables for autoconf, automake, etc. given by
32418         the user.
32419
32420 2010-04-02  Bruno Haible  <bruno@clisp.org>
32421
32422         gnulib-tool: Provide the value of --m4-base to modules.
32423         * gnulib-tool (func_import, func_create_testdir): Emit a definition
32424         of gl_m4_base.
32425
32426 2010-04-02  Eric Blake  <eblake@redhat.com>
32427
32428         maint.mk: fix some fallout
32429         * NEWS: Document the incompatible change, and its effect on cfg.mk.
32430         * top/maint.mk (sc_prohibit_test_minus_ao): Update.
32431
32432 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32433
32434         maint.mk: _sc_search_regexp: generalize and rename from _prohibit_regexp
32435         * top/maint.mk (_sc_search_regexp): Rename from _prohibit_regexp.
32436         (sc_cast_of_argument_to_free): Adapt to use _sc_search_regexp.
32437         (sc_cast_of_x_alloc_return_value): Likewise.
32438         (sc_cast_of_alloca_return_value): Likewise.
32439         (sc_space_tab): Likewise.
32440         (sc_prohibit_atoi_atof): Likewise.
32441         (sc_prohibit_magic_number_exit): Likewise.
32442         (sc_error_exit_success): Likewise.
32443         (sc_file_system): Likewise.
32444         (sc_prohibit_have_config_h): Likewise.
32445         (sc_require_config_h): Likewise.
32446         (sc_prohibit_HAVE_MBRTOWC): Likewise.
32447         (sc_obsolete_symbols): Likewise.
32448         (sc_changelog): Likewise.
32449         (sc_program_name): Likewise.
32450         (sc_the_the): Likewise.
32451         (sc_trailing_blank): Likewise.
32452         (sc_two_space_separator_in_usage): Likewise.
32453         (sc_useless_cpp_parens): Likewise.
32454         (sc_GPL_version): Likewise.
32455         (sc_GFDL_version): Likewise.
32456         (sc_texinfo_acronym): Likewise.
32457         (sc_prohibit_cvs_keyword): Likewise.
32458         (sc_prohibit_stat_st_blocks): Likewise.
32459         (sc_prohibit_S_IS_definition): Likewise.
32460         (sc_redundant_const): Likewise.
32461         (sc_makefile_TAB_only_indentation): Likewise.
32462         (sc_m4_quote_check): Likewise.
32463         (sc_makefile_path_separator_check): Likewise.
32464         (sc_copyright_check): Likewise.
32465         (sc_Wundef_boolean): Likewise.
32466         (sc_vulnerable_makefile_CVE-2009-4029): Likewise.
32467
32468         maint.mk: match 0 or more whitespace-before-function-call '('
32469         * top/maint.mk (sc_error_exit_success): Relax regexp to match uses
32470         that have zero or two-and-more spaces between the function name
32471         and the open parenthesis.
32472         (sc_error_message_warn_fatal): Likewise.
32473         (sc_error_message_uppercase): Likewise.
32474         (sc_error_message_period): Likewise.
32475
32476 2010-03-31  Eric Blake  <eblake@redhat.com>
32477
32478         maint.mk: check for [ as well as test
32479         * top/maint.mk (sc_prohibit_test_minus_ao): Extend test.
32480         Based on a libvirt report by Matthias Bolte.
32481
32482         gnumakefile: don't squelch _version output
32483         * top/GNUmakefile (_version): Create one-shot dependency rather
32484         than using $(shell) when version must be regenerated.
32485         (_autoreconf): Run verbosely, by default.
32486
32487         sys_time: avoid compiler warnings
32488         * lib/sys_time.in.h (includes): Ensure gcc pragma is
32489         unconditional, fixing regression from 2010-03-29.
32490         Reported by Simon Josefsson.
32491
32492 2010-03-28  Jose E. Marchesi  <jemarch@gnu.org>
32493
32494         maint.mk: s/_header_without_use/_sc_header_without_use/
32495         * top/maint.mk (_sc_header_without_use): Rename from _header_without_use.
32496         (sc_prohibit_assert_without_use): Use the new name.
32497         (sc_prohibit_close_stream_without_use): Likewise.
32498         (sc_prohibit_getopt_without_use): Likewise.
32499         (sc_prohibit_quotearg_without_use): Likewise.
32500         (sc_prohibit_quote_without_use): Likewise.
32501         (sc_prohibit_long_options_without_use): Likewise.
32502         (sc_prohibit_inttostr_without_use): Likewise.
32503         (sc_prohibit_ignore_value_without_use): Likewise.
32504         (sc_prohibit_error_without_use): Likewise.
32505         (sc_prohibit_xalloc_without_use): Likewise.
32506         (sc_prohibit_hash_without_use): Likewise.
32507         (sc_prohibit_hash_pjw_without_use): Likewise.
32508         (sc_prohibit_safe_read_without_use): Likewise.
32509         (sc_prohibit_argmatch_without_use): Likewise.
32510         (sc_prohibit_canonicalize_without_use): Likewise.
32511         (sc_prohibit_root_dev_ino_without_use): Likewise.
32512         (sc_prohibit_openat_without_use): Likewise.
32513         (sc_prohibit_c_ctype_without_use): Likewise.
32514         (sc_prohibit_signal_without_use): Likewise.
32515         (sc_prohibit_intprops_without_use): Likewise.
32516
32517 2010-03-30  Eric Blake  <eblake@redhat.com>
32518
32519         maint: improve module indicators
32520         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE)
32521         (gl_MODULE_INDICATOR, gl_MODULE_INDICATOR_FOR_TESTS): Fit in 80
32522         columns, and avoid extra macro expansion.
32523
32524         fdopendir: work around FreeBSD bug
32525         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
32526         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Set it.
32527         * modules/dirent (Makefile.am): Substitute it.
32528         * lib/dirent.in.h (fdopendir): Supply missing FreeBSD
32529         declaration.
32530         * doc/posix-functions/fdopendir.texi (fdopendir): Document the
32531         fix.
32532         Reported by Christian Weisgerber <naddy@mips.inka.de>.
32533
32534 2010-03-29  Bruno Haible  <bruno@clisp.org>
32535
32536         Emit #pragma system_header after the inclusion guard, not before.
32537         * lib/arpa_inet.in.h: Emit #pragma system_header after the inclusion
32538         guard that spans the entire file, not before. This enables an
32539         optimization in GCC's preprocessor.
32540         * lib/ctype.in.h: Likewise.
32541         * lib/dirent.in.h: Likewise.
32542         * lib/errno.in.h: Likewise.
32543         * lib/float.in.h: Likewise.
32544         * lib/getopt.in.h: Likewise.
32545         * lib/iconv.in.h: Likewise.
32546         * lib/langinfo.in.h: Likewise.
32547         * lib/locale.in.h: Likewise.
32548         * lib/math.in.h: Likewise.
32549         * lib/netdb.in.h: Likewise.
32550         * lib/netinet_in.in.h: Likewise.
32551         * lib/pty.in.h: Likewise.
32552         * lib/sched.in.h: Likewise.
32553         * lib/se-selinux.in.h: Likewise.
32554         * lib/search.in.h: Likewise.
32555         * lib/spawn.in.h: Likewise.
32556         * lib/stdarg.in.h: Likewise.
32557         * lib/stdint.in.h: Likewise.
32558         * lib/string.in.h: Likewise.
32559         * lib/strings.in.h: Likewise.
32560         * lib/sys_file.in.h: Likewise.
32561         * lib/sys_ioctl.in.h: Likewise.
32562         * lib/sys_time.in.h: Likewise.
32563         * lib/sys_times.in.h: Likewise.
32564         * lib/sys_utsname.in.h: Likewise.
32565         * lib/sys_wait.in.h: Likewise.
32566         * lib/sysexits.in.h: Likewise.
32567         * lib/wctype.in.h: Likewise.
32568
32569 2010-03-28  James Youngman  <jay@gnu.org>
32570
32571         save-cwd: don't leak a file descriptor when the caller execs.
32572         * lib/save-cwd.c (save_cwd): set the close-on-exec flag for the
32573         saved file descriptor.
32574         * modules/save-cwd (Depends-on): Depend on cloexec.
32575
32576 2010-03-29  Bruno Haible  <bruno@clisp.org>
32577
32578         Remove vestiges of fts-lgpl module.
32579         * lib/fts_.h: Assume GNULIB_FTS is 1.
32580         * lib/fts.c: Likewise.
32581         * modules/fts (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32582
32583 2010-03-28  Bruno Haible  <bruno@clisp.org>
32584
32585         Fix definition of tests witness macro.
32586         * gnulib-tool (func_import): Fix definition of witness macro.
32587
32588 2010-03-28  Bruno Haible  <bruno@clisp.org>
32589
32590         Fix ioctl's protoype on glibc systems.
32591         * lib/sys_ioctl.in.h (ioctl): If REPLACE_IOCTL is 1, use a wrapper. Use
32592         _GL_CXXALIAS_SYS, not _GL_CXXALIAS_SYS_CAST.
32593         * lib/ioctl.c (rpl_ioctl) [HAVE_IOCTL]: New wrapper.
32594         * modules/ioctl (configure.ac): Test whether ioctl has the POSIX
32595         signature. If not, arrange to replace the ioctl function.
32596         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
32597         REPLACE_IOCTL.
32598         * modules/sys_ioctl (Makefile.am): Substitute REPLACE_IOCTL.
32599         * doc/posix-functions/ioctl.texi: Mention the glibc problem.
32600         Reported by Ludovic Courtès <ludo@gnu.org>.
32601
32602 2010-03-28  Javier Villavicencio  <the_paya@gentoo.org>
32603
32604         exclude: fix the case of globs vs. EXCLUDE_INCLUDE
32605         * lib/exclude.c (excluded_file_pattern_p): Fix logic error that
32606         made it so grep -r --include=GLOB* ... did not work.
32607
32608 2010-03-26  Jim Meyering  <meyering@redhat.com>
32609             Eric Blake  <eblake@redhat.com>
32610
32611         maint.mk: prohibit use of test's -o and -a operators
32612         * top/maint.mk (sc_prohibit_test_minus_ao): New rule.
32613
32614 2010-03-28  Bruno Haible  <bruno@clisp.org>
32615
32616         Remove unused GNULIB_XYZ macro definitions.
32617         * modules/crypto/gc-camellia (configure.ac): Remove gl_MODULE_INDICATOR
32618         invocation.
32619
32620 2010-03-28  Bruno Haible  <bruno@clisp.org>
32621
32622         Mark privileged tests modules.
32623         * modules/idpriv-drop-tests (Status): New section.
32624         * modules/idpriv-droptemp-tests (Status): New section.
32625
32626 2010-03-28  Bruno Haible  <bruno@clisp.org>
32627
32628         Split C++ tests into separate tests modules.
32629         * modules/dirent-c++-tests: New file, extracted from
32630         modules/dirent-tests.
32631         * modules/dirent-tests: Depend on it.
32632         * modules/fcntl-h-c++-tests: New file, extracted from
32633         modules/fcntl-h-tests.
32634         * modules/fcntl-h-tests: Depend on it.
32635         * modules/glob-c++-tests: New file, extracted from modules/glob-tests.
32636         * modules/glob-tests: Depend on it.
32637         * modules/iconv-h-c++-tests: New file, extracted from
32638         modules/iconv-h-tests.
32639         * modules/iconv-h-tests: Depend on it.
32640         * modules/langinfo-c++-tests: New file, extracted from
32641         modules/langinfo-tests.
32642         * modules/langinfo-tests: Depend on it.
32643         * modules/locale-c++-tests: New file, extracted from
32644         modules/locale-tests.
32645         * modules/locale-tests: Depend on it.
32646         * modules/math-c++-tests: New file, extracted from modules/math-tests.
32647         * modules/math-tests: Depend on it.
32648         * modules/pty-c++-tests: New file, extracted from modules/pty-tests.
32649         * modules/pty-tests: Depend on it.
32650         * modules/search-c++-tests: New file, extracted from
32651         modules/search-tests.
32652         * modules/search-tests: Depend on it.
32653         * modules/signal-c++-tests: New file, extracted from
32654         modules/signal-tests.
32655         * modules/signal-tests: Depend on it.
32656         * modules/spawn-c++-tests: New file, extracted from
32657         modules/spawn-tests.
32658         * modules/spawn-tests: Depend on it.
32659         * modules/stdio-c++-tests: New file, extracted from
32660         modules/stdio-tests.
32661         * modules/stdio-tests: Depend on it.
32662         * modules/stdlib-c++-tests: New file, extracted from
32663         modules/stdlib-tests.
32664         * modules/stdlib-tests: Depend on it.
32665         * modules/string-c++-tests: New file, extracted from
32666         modules/string-tests.
32667         * modules/string-tests: Depend on it.
32668         * modules/sys_ioctl-c++-tests: New file, extracted from
32669         modules/sys_ioctl-tests.
32670         * modules/sys_ioctl-tests: Depend on it.
32671         * modules/sys_select-c++-tests: New file, extracted from
32672         modules/sys_select-tests.
32673         * modules/sys_select-tests: Depend on it.
32674         * modules/sys_socket-c++-tests: New file, extracted from
32675         modules/sys_socket-tests.
32676         * modules/sys_socket-tests: Depend on it.
32677         * modules/sys_stat-c++-tests: New file, extracted from
32678         modules/sys_stat-tests.
32679         * modules/sys_stat-tests: Depend on it.
32680         * modules/sys_time-c++-tests: New file, extracted from
32681         modules/sys_time-tests.
32682         * modules/sys_time-tests: Depend on it.
32683         * modules/time-c++-tests: New file, extracted from modules/time-tests.
32684         * modules/time-tests: Depend on it.
32685         * modules/unistd-c++-tests: New file, extracted from
32686         modules/unistd-tests.
32687         * modules/unistd-tests: Depend on it.
32688         * modules/wchar-c++-tests: New file, extracted from
32689         modules/wchar-tests.
32690         * modules/wchar-tests: Depend on it.
32691         * modules/wctype-c++-tests: New file, extracted from
32692         modules/wctype-tests.
32693         * modules/wctype-tests: Depend on it.
32694         Reported by Simon Josefsson.
32695
32696 2010-03-28  Bruno Haible  <bruno@clisp.org>
32697
32698         gnulib-tool: Allow 'foo-tests' module even if there is no module 'foo'.
32699         * gnulib-tool (func_exists_module): New function, extracted from
32700         func_verify_module.
32701         (func_verify_module): Use it.
32702         (func_get_dependencies): Synthetize a dependency from 'foo-tests' to
32703         'foo' only if 'foo' exists.
32704         * doc/gnulib.texi (Extra tests modules): Explain how to split a tests
32705         module.
32706
32707 2010-03-28  Bruno Haible  <bruno@clisp.org>
32708
32709         gnulib-tool: Add support for special categories of tests.
32710         * gnulib-tool: New options --with-c++-tests, --with-longrunning-tests,
32711         --with-privileged-tests, --with-unportable-tests, --with-all-tests.
32712         (func_usage): Document them.
32713         (inc_cxx_tests, inc_longrunning_tests, inc_privileged_tests,
32714         inc_unportable_tests, inc_all_tests): New variables.
32715         (func_acceptable): Consider these variables.
32716         (func_modules_transitive_closure): Make it work when the 'Status' field
32717         consists of multiple words.
32718         (func_import): Store and restore the values of inc_cxx_tests,
32719         inc_longrunning_tests, inc_privileged_tests, inc_unportable_tests,
32720         inc_all_tests in gnulib-comp.m4.
32721         (func_create_testdir): Set inc_all_tests to true.
32722         * doc/gnulib.texi (Extra tests modules): New section.
32723         Suggested by Jim Meyering.
32724
32725 2010-03-28  Bruno Haible  <bruno@clisp.org>
32726
32727         ansi-c++-opt: Allow turning off the C++ build by default.
32728         * m4/ansi-c++.m4 (gl_CXX_CHOICE): Let CXX_CHOICE default to 'no' if
32729         gl_CXX_CHOICE_DEFAULT_NO is defined.
32730         Requested by Eric Blake.
32731
32732 2010-03-28  Bruno Haible  <bruno@clisp.org>
32733
32734         unistd: Avoid #define replacements in C++ mode.
32735         * lib/unistd.in.h (socket, connect, accept, bind, getpeername,
32736         getsockname, getsockopt, listen, recv, send, recvfrom, sendto,
32737         setsockopt, shutdown, select): In C++, attach a warning to the function
32738         if possible, rather than #defining the symbol to a dysfunctional alias.
32739         Reported by John W. Eaton <jwe@gnu.org>.
32740
32741 2010-03-28  Bruno Haible  <bruno@clisp.org>
32742
32743         Fix link errors on mingw.
32744         * lib/sys_ioctl.in.h (ioctl): Fix declaration idiom.
32745         * modules/sys_ioctl-tests (Makefile.am): Link test-sys_ioctl-c++ with
32746         $(LIBSOCKET).
32747         * modules/sys_select-tests (Makefile.am): Link test-sys_select-c++ with
32748         $(LIBSOCKET).
32749
32750 2010-03-28  Bruno Haible  <bruno@clisp.org>
32751             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
32752
32753         lib-ignore: Determine different options for different compilers.
32754         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Set a variable which
32755         depends on the current language (C/C++/Fortran). Don't set LDFLAGS.
32756         Add comments.
32757         (_gl_IGNORE_UNUSED_LIBRARIES_OPTIONS): New macro.
32758         * NEWS: Mention the change.
32759
32760 2010-03-27  Bruno Haible  <bruno@clisp.org>
32761
32762         Remove unused GNULIB_XYZ macro definitions.
32763         * modules/dup3 (configure.ac): Remove gl_MODULE_INDICATOR invocation.
32764         * modules/fseek (configure.ac): Likewise.
32765         * modules/ioctl (configure.ac): Likewise.
32766         * modules/open (configure.ac): Likewise.
32767         * modules/stdlib-safer (configure.ac): Likewise.
32768
32769 2010-03-27  Bruno Haible  <bruno@clisp.org>
32770
32771         Add a remark about certain modules.
32772         * modules/malloc (Comment): New section.
32773         * modules/realloc (Comment): Likewise.
32774         * modules/sigpipe (Comment): Likewise.
32775
32776 2010-03-27  Bruno Haible  <bruno@clisp.org>
32777
32778         Resolve conflict between the two kinds of module indicators.
32779         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Define
32780         GNULIB_TEST_XYZ instead of GNULIB_XYZ.
32781         * modules/canonicalize (configure.ac): Invoke
32782         gl_MODULE_INDICATOR_FOR_TESTS.
32783         * tests/test-canonicalize-lgpl.c: Test GNULIB_TEST_XYZ instead of
32784         GNULIB_XYZ.
32785         * tests/test-dirent-c++.cc: Likewise.
32786         * tests/test-dirent-safer.c: Likewise.
32787         * tests/test-dup2.c: Likewise.
32788         * tests/test-fchdir.c: Likewise.
32789         * tests/test-fcntl-h-c++.cc: Likewise.
32790         * tests/test-getopt.c: Likewise.
32791         * tests/test-getopt.h: Likewise.
32792         * tests/test-langinfo-c++.cc: Likewise.
32793         * tests/test-locale-c++.cc: Likewise.
32794         * tests/test-math-c++.cc: Likewise.
32795         * tests/test-pty-c++.cc: Likewise.
32796         * tests/test-search-c++.cc: Likewise.
32797         * tests/test-signal-c++.cc: Likewise.
32798         * tests/test-spawn-c++.cc: Likewise.
32799         * tests/test-stdio-c++.cc: Likewise.
32800         * tests/test-stdlib-c++.cc: Likewise.
32801         * tests/test-string-c++.cc: Likewise.
32802         * tests/test-sys_ioctl-c++.cc: Likewise.
32803         * tests/test-sys_select-c++.cc: Likewise.
32804         * tests/test-sys_socket-c++.cc: Likewise.
32805         * tests/test-sys_stat-c++.cc: Likewise.
32806         * tests/test-sys_time-c++.cc: Likewise.
32807         * tests/test-time-c++.cc: Likewise.
32808         * tests/test-unistd-c++.cc: Likewise.
32809         * tests/test-wchar-c++.cc: Likewise.
32810         * tests/uninorm/test-u8-nfc.c: Likewise.
32811         * tests/uninorm/test-u8-nfd.c: Likewise.
32812         * tests/uninorm/test-u8-nfkc.c: Likewise.
32813         * tests/uninorm/test-u8-nfkd.c: Likewise.
32814         * tests/uninorm/test-u16-nfc.c: Likewise.
32815         * tests/uninorm/test-u16-nfd.c: Likewise.
32816         * tests/uninorm/test-u16-nfkc.c: Likewise.
32817         * tests/uninorm/test-u16-nfkd.c: Likewise.
32818         * tests/uninorm/test-u32-nfc.c: Likewise.
32819         * tests/uninorm/test-u32-nfc-big.c: Likewise.
32820         * tests/uninorm/test-u32-nfd.c: Likewise.
32821         * tests/uninorm/test-u32-nfd-big.c: Likewise.
32822         * tests/uninorm/test-u32-nfkc.c: Likewise.
32823         * tests/uninorm/test-u32-nfkc-big.c: Likewise.
32824         * tests/uninorm/test-u32-nfkd.c: Likewise.
32825         * tests/uninorm/test-u32-nfkd-big.c: Likewise.
32826         * tests/uninorm/test-u32-normalize-big.c: Likewise.
32827
32828 2010-03-27  Bruno Haible  <bruno@clisp.org>
32829
32830         Distinguish two kinds of module indicators.
32831         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_FOR_TESTS): Renamed from
32832         gl_MODULE_INDICATOR.
32833         (gl_MODULE_INDICATOR): New macro.
32834         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
32835         gl_MODULE_INDICATOR_FOR_TESTS instead of gl_MODULE_INDICATOR.
32836         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32837         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32838         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32839         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32840         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32841         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32842         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32843         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32844         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32845         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32846         * m4/string_h.m4 (gl_STRING_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/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32853         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32854         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32855         * modules/cloexec (configure.ac): Likewise.
32856         * modules/getopt-gnu (configure.ac): Likewise.
32857         * modules/uninorm/u8-normalize (configure.ac): Likewise.
32858         * modules/uninorm/u16-normalize (configure.ac): Likewise.
32859         * modules/uninorm/u32-normalize (configure.ac): Likewise.
32860         * modules/fdopendir (configure.ac): Invoke gl_MODULE_INDICATOR.
32861
32862 2010-03-27  Bruno Haible  <bruno@clisp.org>
32863
32864         New module description field 'Comment'.
32865         * gnulib-tool: New option --extract-comment.
32866         (func_usage): Document it.
32867         (sed_extract_prog, sed_extract_field_header): Support 'Comment' field.
32868         (func_get_comment): New function.
32869         * modules/TEMPLATE-EXTENDED: Add a blank Comment field.
32870
32871 2010-03-27  Bruno Haible  <bruno@clisp.org>
32872
32873         Addendum to 2010-02-07 commit.
32874         * gnulib-tool (func_usage): Document --extract-applicability option.
32875
32876 2010-03-27  Bruno Haible  <bruno@clisp.org>
32877
32878         Use GNULIB_POSIXCHECK instead of GNULIB_PORTCHECK.
32879         * lib/time.in.h (asctime, asctime_r, ctime, ctime_r): Test
32880         GNULIB_POSIXCHECK, not GNULIB_PORTCHECK. Provide compile-time warnings
32881         rather than link errors.
32882
32883 2010-03-27  Bruno Haible  <bruno@clisp.org>
32884
32885         Avoid side effects from tests-related modules on the compilation of lib.
32886         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_CONDITION): New macro.
32887         (gl_MODULE_INDICATOR_SET_VARIABLE): Use its expansion as a value.
32888         * gnulib-tool (func_emit_tests_Makefile_am): Accept a witness_macro
32889         parameter. Emit into AM_CPPFLAGS a definition of the designated C
32890         macro.
32891         (func_import): Define a witness macro. Assign it a value that depends
32892         on the current package. Override gl_MODULE_INDICATOR_CONDITION for the
32893         tests-related modules.
32894         (func_create_testdir): Update func_emit_tests_Makefile_am invocation.
32895         Reported by Jim Meyering.
32896
32897 2010-03-27  Bruno Haible  <bruno@clisp.org>
32898
32899         Factorize common .m4 code.
32900         * m4/gnulib-common.m4 (gl_MODULE_INDICATOR_SET_VARIABLE): New macro.
32901         * m4/arpa_inet_h.m4 (gl_ARPA_INET_MODULE_INDICATOR): Use it.
32902         * m4/ctype.m4 (gl_CTYPE_MODULE_INDICATOR): Likewise.
32903         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Likewise.
32904         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Likewise.
32905         * m4/iconv_h.m4 (gl_ICONV_MODULE_INDICATOR): Likewise.
32906         * m4/inttypes.m4 (gl_INTTYPES_MODULE_INDICATOR): Likewise.
32907         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Likewise.
32908         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Likewise.
32909         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Likewise.
32910         * m4/netdb_h.m4 (gl_NETDB_MODULE_INDICATOR): Likewise.
32911         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Likewise.
32912         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Likewise.
32913         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Likewise.
32914         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Likewise.
32915         * m4/stddef_h.m4 (gl_STDDEF_MODULE_INDICATOR): Likewise.
32916         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Likewise.
32917         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Likewise.
32918         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Likewise.
32919         * m4/strings_h.m4 (gl_STRINGS_MODULE_INDICATOR): Likewise.
32920         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_MODULE_INDICATOR): Likewise.
32921         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Likewise.
32922         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Likewise.
32923         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Likewise.
32924         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Likewise.
32925         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Likewise.
32926         * m4/sys_times_h.m4 (gl_SYS_TIMES_MODULE_INDICATOR): Likewise.
32927         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_MODULE_INDICATOR): Likewise.
32928         * m4/sys_wait_h.m4 (gl_SYS_WAIT_MODULE_INDICATOR): Likewise.
32929         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Likewise.
32930         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Likewise.
32931         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Likewise.
32932
32933 2010-03-27  Bruno Haible  <bruno@clisp.org>
32934
32935         Fix a compilation error on Cygwin with g++ >= 4.3.
32936         * lib/sys_stat.in.h (lchmod): Don't warn about the use of this function
32937         if it is undefined or if we alias it to chmod.
32938         (lstat): Don't warn about the use of this function if it is undefined
32939         or if we alias it to stat.
32940         Reported by Simon Josefsson.
32941
32942 2010-03-27  Bruno Haible  <bruno@clisp.org>
32943
32944         * m4/getlogin.m4 (gl_FUNC_GETLOGIN): Renamed from gl_GETLOGIN.
32945         * modules/getlogin (configure.ac): Update.
32946
32947         * m4/getlogin_r.m4 (gl_FUNC_GETLOGIN_R): Renamed from gl_GETLOGIN_R.
32948         * modules/getlogin_r (configure.ac): Update.
32949
32950         * m4/inet_ntop.m4 (gl_FUNC_INET_NTOP): Renamed from gl_INET_NTOP.
32951         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Update.
32952         * modules/inet_ntop (configure.ac): Update.
32953
32954         * m4/inet_pton.m4 (gl_FUNC_INET_PTON): Renamed from gl_INET_PTON.
32955         * modules/inet_pton (configure.ac): Update.
32956
32957         * m4/mbslen.m4 (gl_FUNC_MBSLEN): Renamed from gl_MBSLEN.
32958         * modules/mbslen (configure.ac): Update.
32959
32960         * m4/pty.m4 (gl_FUNC_FORKPTY): Renamed from gl_FORKPTY.
32961         (gl_FUNC_OPENPTY): Renamed from gl_OPENPTY.
32962         * modules/forkpty (configure.ac): Update.
32963         * modules/openpty (configure.ac): Update.
32964
32965 2010-03-26  Simon Josefsson  <simon@josefsson.org>
32966
32967         * top/maint.mk (sc_texinfo_acronym): Don't infloop if there is
32968         no *.texi files.  Reported by Eric Blake <eblake@redhat.com>.
32969
32970 2010-03-25  Eric Blake  <eblake@redhat.com>
32971
32972         maint: use pragma consistently across replacement headers
32973         * lib/ctype.in.h (system_header): Hoist for consistent placement.
32974         * lib/dirent.in.h (system_header): Likewise.
32975         * lib/errno.in.h (system_header): Likewise.
32976         * lib/float.in.h (system_header): Likewise.
32977         * lib/getopt.in.h (system_header): Likewise.
32978         * lib/iconv.in.h (system_header): Likewise.
32979         * lib/inttypes.in.h (system_header): Likewise.
32980         * lib/langinfo.in.h (system_header): Likewise.
32981         * lib/locale.in.h (system_header): Likewise.
32982         * lib/math.in.h (system_header): Likewise.
32983         * lib/netdb.in.h (system_header): Likewise.
32984         * lib/netinet_in.in.h (system_header): Likewise.
32985         * lib/pty.in.h (system_header): Likewise.
32986         * lib/sched.in.h (system_header): Likewise.
32987         * lib/se-selinux.in.h (system_header): Likewise.
32988         * lib/search.in.h (system_header): Likewise.
32989         * lib/spawn.in.h (system_header): Likewise.
32990         * lib/stdarg.in.h (system_header): Likewise.
32991         * lib/stdint.in.h (system_header): Likewise.
32992         * lib/string.in.h (system_header): Likewise.
32993         * lib/strings.in.h (system_header): Likewise.
32994         * lib/sys_file.in.h (system_header): Likewise.
32995         * lib/sys_ioctl.in.h (system_header): Likewise.
32996         * lib/sys_socket.in.h (system_header): Likewise.
32997         * lib/sys_times.in.h (system_header): Likewise.
32998         * lib/sys_utsname.in.h (system_header): Likewise.
32999         * lib/sys_wait.in.h (system_header): Likewise.
33000         * lib/sysexits.in.h (system_header): Likewise.
33001         * lib/unistd.in.h (system_header): Likewise.
33002         * lib/wctype.in.h (system_header): Likewise.
33003
33004         arpa/inet: fix mingw compilation warning
33005         * lib/arpa_inet.in.h (system_header): Hoist to be unconditional.
33006         Reported by Matthew Bolte.
33007
33008 2010-03-25  Bruno Haible  <bruno@clisp.org>
33009
33010         Avoid collision between gnulib wrapper and libintl wrapper.
33011         * lib/printf.c (printf): Don't define if a printf wrapper is already
33012         defined in intl/printf.c.
33013         Reported by Michel Boaventura <michel@michelboaventura.com>.
33014
33015 2010-03-25  Bruno Haible  <bruno@clisp.org>
33016
33017         Use ANSI C.
33018         * lib/readutmp.h (getutent): Provide ANSI C prototype.
33019
33020 2010-03-25  Bruno Haible  <bruno@clisp.org>
33021
33022         Minor formatting changes.
33023         * lib/acosl.c: Insert space before function argument list.
33024         * lib/argz.c: Likewise.
33025         * lib/asinl.c: Likewise.
33026         * lib/expl.c: Likewise.
33027         * lib/gen-uni-tables.c: Likewise.
33028         * lib/gettext.h: Likewise.
33029         * lib/glthread/lock.h: Likewise.
33030         * lib/tanl.c: Likewise.
33031         * lib/uniname/uniname.c: Likewise.
33032         * tests/test-idpriv-drop.c: Likewise.
33033         * tests/test-idpriv-droptemp.c: Likewise.
33034         * tests/test-lock.c: Likewise.
33035         * tests/test-tls.c: Likewise.
33036         * lib/argp-help.c: Insert space before function-like macro argument
33037         list.
33038         * lib/memcmp.c: Likewise.
33039         * tests/test-base64.c: Likewise.
33040         * lib/localename.c: Insert space before sizeof's argument list.
33041         * lib/safe-alloc.h: Likewise.
33042         * lib/file-set.h: Insert space before macro argument list.
33043         * tests/test-argp.c: Likewise.
33044         * lib/argp-namefrob.h: Insert space before function parameter list.
33045         * lib/getaddrinfo.c: Likewise.
33046         * lib/netdb.in.h: Likewise.
33047         * lib/parse-duration.h: Likewise.
33048         * lib/parse-duration.c: Likewise.
33049         * lib/poll.c: Likewise.
33050         * lib/select.c: Likewise.
33051         * lib/trim.h: Likewise.
33052         * tests/test-usleep.c: Likewise.
33053         * lib/ldexpl.c: Insert space before function parameter list and before
33054         function argument list.
33055         * lib/logl.c: Likewise.
33056         * lib/sqrtl.c: Likewise.
33057         * lib/trim.c: Likewise.
33058         * lib/cosl.c: Use GNU style indentation. Insert space before function
33059         argument list.
33060         * lib/sinl.c: Likewise.
33061         * lib/tsearch.c: Insert space after 'for'.
33062         Reported by Jim Meyering.
33063
33064 2010-03-23  Pádraig Brady  <P@draigBrady.com>  (tiny change)
33065
33066         * maint.mk (sc_Wundef_boolean): Check for the presence of the
33067         config header before grepping, as it's not present before
33068         autoreconf/configure are run.  Reported by Simon Josefsson.
33069
33070 2010-03-23  Bruno Haible  <bruno@clisp.org>
33071
33072         pt_chown: Make it work with automake < 1.11.
33073         * modules/pt_chown (Makefile.am): Define pkglibexecdir.
33074         Reported by Simon Josefsson.
33075
33076 2010-03-23  Bruno Haible  <bruno@clisp.org>
33077
33078         pt_chown: Don't depend on GPLed modules.
33079         * lib/pt_chown.c: Don't include idpriv.h.
33080         (main): Don't drop privileges.
33081         * modules/pt_chown (Depends-on): Remove idpriv-drop.
33082         Reported by Simon Josefsson.
33083
33084 2010-03-24  Simon Josefsson  <simon@josefsson.org>
33085
33086         * top/maint.mk (sc_texinfo_acronym): Add rule, based on
33087         suggestions from karl@freefriends.org (Karl Berry).
33088
33089 2010-03-22  Eric Blake  <eblake@redhat.com>
33090
33091         gethostname: further tweaks
33092         * lib/unistd.in.h (includes): Only worry about <winsock2.h> if we
33093         are overriding gethostname.
33094         Suggested by Bruno Haible.
33095
33096 2010-03-21  Bruno Haible  <bruno@clisp.org>
33097
33098         Fix comments.
33099         * lib/forkpty.c (rpl_forkpty): Fix comment.
33100         * lib/openpty.c (rpl_openpty): Likewise.
33101         Reported by Eric Blake.
33102
33103 2010-03-22  Eric Blake  <eblake@redhat.com>
33104
33105         gethostname: fix build on mingw
33106         * lib/unistd.in.h (includes): Work around fact that mingw
33107         <winsock2.h> re-includes <unistd.h>, by avoiding any
33108         redeclarations if we are being included by <winsock2.h>.
33109         Reported by Matthias Bolte.
33110
33111 2010-03-21  Bruno Haible  <bruno@clisp.org>
33112
33113         forkpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33114         * lib/forkpty.c (forkpty): New replacement function, from glibc with
33115         modifications.
33116         * lib/pty.in.h (forkpty): Update declaration. Add comments.
33117         * m4/pty.m4 (gl_FORKPTY): If forkpty is not declared, arrange to
33118         provide the replacement.
33119         * modules/forkpty (Depends-on): Add openpty, login_tty.
33120         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_FORKPTY.
33121         * modules/pty (Makefile.am): Substitute HAVE_FORKPTY.
33122         * doc/glibc-functions/forkpty.texi: More supported platforms.
33123         * config/srclist.txt: Add forkpty.c (commented).
33124
33125 2010-03-21  Bruno Haible  <bruno@clisp.org>
33126
33127         * modules/forkpty-tests: Use the common TEMPLATE-TESTS.
33128         (Makefile.am): Verify that PTY_LIB is defined.
33129
33130         * modules/openpty-tests: Use the common TEMPLATE-TESTS.
33131
33132 2010-03-21  Bruno Haible  <bruno@clisp.org>
33133
33134         Tests for module 'login_tty'.
33135         * modules/login_tty-tests: New file.
33136         * tests/test-login_tty.c: New file.
33137
33138         New module 'login_tty'.
33139         * lib/login_tty.c: New file.
33140         * m4/pty.m4 (gl_FUNC_LOGIN_TTY): New macro.
33141         * modules/login_tty: New file.
33142         * doc/glibc-functions/login_tty.texi: Mention the new module.
33143
33144 2010-03-21  Bruno Haible  <bruno@clisp.org>
33145
33146         login_tty: Documentation.
33147         * doc/glibc-functions/login_tty.texi: New file.
33148         * doc/gnulib.texi (Glibc <utmp.h>): Include it.
33149
33150 2010-03-21  Bruno Haible  <bruno@clisp.org>
33151
33152         pty: Consistent macro naming.
33153         * m4/pty_h.m4 (gl_PTY_H): Renamed from gl_PTY.
33154         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): Update.
33155         * modules/pty (configure.ac): Update.
33156
33157 2010-03-21  Bruno Haible  <bruno@clisp.org>
33158
33159         Tests for openpty: Make stricter.
33160         * tests/test-openpty.c (main): Add test of canonical processing and
33161         erase.
33162         * modules/openpty-tests (Makefile.am): Verify that PTY_LIB is defined.
33163
33164         openpty: Provide replacement on AIX, HP-UX, IRIX, Solaris.
33165         * lib/openpty.c (openpty): New replacement function.
33166         * lib/pty.in.h: Include <termios.h>.
33167         (openpty): Update declaration. Add comments.
33168         * m4/pty.m4 (gl_OPENPTY): Require AC_USE_SYSTEM_EXTENSIONS. If openpty
33169         is not declared, arrange to provide the replacement. Check for _getpty
33170         and posix_openpt.
33171         * modules/openpty (Depends-on): Add extensions, fcntl-h, ioctl.
33172         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Initialize HAVE_OPENPTY.
33173         * modules/pty (Makefile.am): Substitute HAVE_OPENPTY.
33174         * modules/pty-tests (test_pty_c___LDADD): New variable.
33175         * doc/glibc-functions/openpty.texi: More supported platforms.
33176
33177 2010-03-21  Bruno Haible  <bruno@clisp.org>
33178
33179         setenv: Tweaks.
33180         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Include necessary headers in
33181         the test program.
33182         * doc/posix-functions/setenv.texi: Update platforms list.
33183
33184 2010-03-21  Bruno Haible  <bruno@clisp.org>
33185
33186         New module 'unlockpt'.
33187         * lib/unlockpt.c: New file, from glibc with modifications.
33188         * m4/unlockpt.m4: New file.
33189         * modules/unlockpt: New file.
33190         * lib/stdlib.in.h (unlockpt): New declaration.
33191         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether unlockpt is declared.
33192         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_UNLOCKPT, HAVE_UNLOCKPT.
33193         * modules/stdlib (Makefile.am): Substitute GNULIB_UNLOCKPT,
33194         HAVE_UNLOCKPT.
33195         * doc/posix-functions/unlockpt.texi: Mention the new module.
33196         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::unlockpt.
33197         * config/srclist.txt: Add unlockpt.c (commented).
33198
33199 2010-03-21  Jim Meyering  <meyering@redhat.com>
33200
33201         maint.mk: prohibit inclusion of "intprops.h" without use
33202         * top/maint.mk (sc_prohibit_intprops_without_use): New rule.
33203
33204 2010-03-21  Bruno Haible  <bruno@clisp.org>
33205
33206         New module 'grantpt'.
33207         * lib/grantpt.c: New file, from glibc with modifications.
33208         * m4/grantpt.m4: New file.
33209         * modules/grantpt: New file.
33210         * lib/stdlib.in.h (grantpt): New declaration.
33211         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether grantpt is declared.
33212         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GRANTPT, HAVE_GRANTPT.
33213         * modules/stdlib (Makefile.am): Substitute GNULIB_GRANTPT,
33214         HAVE_GRANTPT.
33215         * doc/posix-functions/grantpt.texi: Mention the new module.
33216         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::grantpt.
33217         * config/srclist.txt: Add grantpt.c (commented).
33218
33219 2010-03-21  Bruno Haible  <bruno@clisp.org>
33220
33221         New module 'pt_chown'.
33222         * lib/pt_chown.c: New file, from glibc with modifications.
33223         * lib/pty-private.h: New file, from glibc with modifications.
33224         * modules/pt_chown: New file.
33225         * config/srclist.txt: Add pt_chown.c, pty-private.h (commented).
33226
33227 2010-03-21  Bruno Haible  <bruno@clisp.org>
33228
33229         Tests for module 'ptsname'.
33230         * modules/ptsname-tests: New file.
33231         * tests/test-ptsname.c: New file.
33232
33233         New module 'ptsname'.
33234         * lib/ptsname.c: New file, from glibc with modifications.
33235         * m4/ptsname.m4: New file.
33236         * modules/ptsname: New file.
33237         * lib/stdlib.in.h (ptsname): New declaration.
33238         * m4/stdlib_h.m4 (gl_STDLIB_H): Check whether ptsname is declared.
33239         (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PTSNAME, HAVE_PTSNAME.
33240         * modules/stdlib (Makefile.am): Substitute GNULIB_PTSNAME,
33241         HAVE_PTSNAME.
33242         * doc/posix-functions/ptsname.texi: Mention the new module.
33243         * tests/test-stdlib-c++.cc: Check GNULIB_NAMESPACE::ptsname.
33244         * config/srclist.txt: Add ptsname.c (commented).
33245
33246 2010-03-21  Bruno Haible  <bruno@clisp.org>
33247
33248         Tests for module 'ttyname_r'.
33249         * modules/ttyname_r-tests: New file.
33250         * tests/test-ttyname_r.c: New file.
33251
33252         New module 'ttyname_r'.
33253         * lib/ttyname_r.c: New file.
33254         * m4/ttyname_r.m4: New file.
33255         * modules/ttyname_r: New file.
33256         * lib/unistd.in.h (ttyname_r): New declaration.
33257         * m4/unistd_h.m4 (gl_UNISTD_H): Check whether ttyname_r is declared.
33258         (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_TTYNAME_R, HAVE_TTYNAME_R.
33259         * modules/unistd (Makefile.am): Substitute GNULIB_TTYNAME_R,
33260         HAVE_TTYNAME_R.
33261         * tests/test-unistd-c++.cc: Check GNULIB_NAMESPACE::ttyname_r.
33262         * doc/posix-functions/ttyname_r.texi: Mention the new module.
33263
33264 2010-03-20  Bruno Haible  <bruno@clisp.org>
33265
33266         signal: Undefine macro definitions in C++ mode.
33267         * lib/signal.in.h (sigismember, sigemptyset, sigaddset, sigdelset,
33268         sigfillset): Undefine macro definitions from the system header in C++
33269         mode.
33270         Reported by John W. Eaton <jwe@gnu.org>.
33271
33272 2010-03-20  Bruno Haible  <bruno@clisp.org>
33273
33274         Ensure no #include statements inside extern "C" { ... }.
33275         * lib/obstack.h: Shrink extern "C" { ... } region so that it does not
33276         contain #include statements.
33277         * lib/time.in.h: Likewise.
33278
33279 2010-03-20  Bruno Haible  <bruno@clisp.org>
33280
33281         Make _GL_WARN_ON_USE usable in C++ and C mode in the same compilation.
33282         * build-aux/warn-on-use.h (_GL_WARN_EXTERN_C): New macro.
33283         (_GL_WARN_ON_USE, _GL_WARN_ON_USE_CXX): Likewise.
33284         Reported by John W. Eaton <jwe@gnu.org>.
33285
33286 2010-03-20  Bruno Haible  <bruno@clisp.org>
33287
33288         * m4/unlink.m4 (gl_FUNC_UNLINK): Fix last commit.
33289         Reported by Jim Meyering.
33290
33291 2010-03-20  Bruno Haible  <bruno@clisp.org>
33292
33293         pipe: Set errno upon failure.
33294         * lib/pipe.h: Specify that when -1 is returned, errno is set.
33295         * lib/pipe.c (create_pipe): Set errno when returning -1. Use the right
33296         errno value in error message.
33297
33298 2010-03-20  Bruno Haible  <bruno@clisp.org>
33299             Jim Meyering  <meyering@redhat.com>
33300
33301         lchown: Avoid "unused variable" warning.
33302         * lib/lchown.c (rpl_lchown): Move variable 'st' into #if block.
33303
33304 2010-03-20  Bruno Haible  <bruno@clisp.org>
33305
33306         Work around unlink() bug on MacOS X 10.5.6.
33307         * lib/unlink.c (rpl_unlink): If UNLINK_PARENT_BUG is defined, fail when
33308         attempting to unlink a parent directory.
33309         * m4/unlink.m4 (gl_FUNC_UNLINK): Require AC_CANONICAL_HOST. Test for
33310         MacOS X 10.5 bug. If the bug is present, define UNLINK_PARENT_BUG and
33311         activate for the replacement function.
33312         * doc/posix-functions/unlink.texi: Mention the MacOS X 10.5 bug.
33313
33314 2010-03-20  Bruno Haible  <bruno@clisp.org>
33315
33316         Fix link errors on Solaris 8.
33317         * modules/dirent-tests (test_dirent_c___LDADD): Add LIB_NANOSLEEP.
33318         * modules/wctype-tests (test_wctype_c___LDADD): Likewise.
33319
33320 2010-03-19  Jim Meyering  <meyering@redhat.com>
33321
33322         regcomp.c: make non-_LIBC implementation of build_range_exp consistent
33323         The _LIBC implementation of build_range_exp correctly honors the
33324         RE_NO_EMPTY_RANGES flag when checking for reversed range endpoints.
33325         However, the non-_LIBC implementation would ignore that syntax-bit
33326         flag and return REG_ERANGE unconditionally.
33327         This change makes it honor that flag.
33328         * lib/regcomp.c (build_range_exp) [!_LIBC]: Add a parameter: "syntax".
33329         Make two pointer parameters "const".
33330         Use "syntax" bits in order to honor RE_NO_EMPTY_RANGES.
33331         (parse_bracket_exp): Update caller.
33332
33333         regex.m4: correct the reversed range endpoint ([b-a]) test
33334         * m4/regex.m4: When requiring that [b-a] evoke failure,
33335         use RE_NO_EMPTY_RANGES.  This makes this entire configure-time
33336         test pass once again for x86-based systems.
33337
33338 2010-03-19  Bruno Haible  <bruno@clisp.org>
33339
33340         scandir: Fix link error on Solaris 8.
33341         * lib/scandir.c (_D_EXACT_NAMLEN, _D_ALLOC_NAMLEN): New fallback
33342         macros.
33343
33344 2010-03-19  Bruno Haible  <bruno@clisp.org>
33345
33346         getusershell: Fix documentation.
33347         * doc/glibc-functions/endusershell.texi: Refer to the getusershell
33348         module.
33349         * doc/glibc-functions/setusershell.texi: Likewise.
33350
33351         getusershell: Provide declaration, missing on Solaris 9.
33352         * lib/unistd.in.h (getusershell, setusershell, endusershell): Declare
33353         also if HAVE_GETUSERSHELL && !HAVE_DECL_GETUSERSHELL.
33354         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): When the function exists,
33355         check whether it is declared. Set HAVE_DECL_GETUSERSHELL.
33356         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
33357         HAVE_DECL_GETUSERSHELL, not HAVE_GETUSERSHELL.
33358         * modules/unistd (Makefile.am): Substitute HAVE_DECL_GETUSERSHELL, not
33359         HAVE_GETUSERSHELL.
33360         * doc/glibc-functions/getusershell.texi: Mention the Solaris problem.
33361
33362 2010-03-19  Bruno Haible  <bruno@clisp.org>
33363
33364         wctype: Provide iswblank function.
33365         * lib/wctype.in.h (iswblank): Provide a replacement also when iswcntrl
33366         exists and is fine.
33367         * m4/wctype_h.m4 (gl_WCTYPE_H): Also check whether iswcntrl exists.
33368         * modules/wctype (Makefile.am): Substitute HAVE_ISWBLANK.
33369         * tests/test-wctype.c (main): Re-enable the iswblank tests.
33370         * doc/posix-functions/iswblank.texi: Update.
33371
33372 2010-03-19  Bruno Haible  <bruno@clisp.org>
33373
33374         Tests of module 'pty' in C++ mode.
33375         * modules/pty-tests: New file.
33376         * tests/test-pty-c++.cc: New file.
33377         * m4/pty_h.m4 (gl_PTY_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33378
33379 2010-03-19  Eric Blake  <eblake@redhat.com>
33380
33381         logb: fix documentation
33382         * doc/posix-functions/logb.texi (logb): Gnulib fixes the cygwin
33383         1.5 declaration bug.
33384
33385         forkpty, openpty: prefer glibc's const-safe prototype
33386         * lib/forkpty.c (rpl_forkpty): New file.
33387         * lib/openpty.c (rpl_openpty): Likewise.
33388         * modules/forkpty (Files): Distribute it.
33389         * modules/openpty (Files): Likewise.
33390         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.  Move decl
33391         check...
33392         * m4/pty.m4 (gl_FORKPTY, gl_OPENPTY): ...here.  Request
33393         replacement for for non-const BSD signature.
33394         * modules/pty (Makefile.am): Substitute witnesses.
33395         * lib/pty.in.h (forkpty, openpty): Declare replacements.
33396         * tests/test-forkpty.c: Update signature check.
33397         * tests/test-openpty.c: Likewise.
33398         * doc/glibc-functions/forkpty.texi (forkpty): Document the fix.
33399         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33400
33401         forkpty, openpty: split functions into new modules
33402         * modules/pty (Makefile.am): Substitute new witnesses.
33403         (Libraries): Move library detection...
33404         * modules/forkpty: ...into new module.
33405         * modules/openpty: Another new module.
33406         * modules/pty-tests: Rename and split...
33407         * modules/forkpty-tests: ...to this...
33408         * modules/openpty-tests: ...and this.
33409         * tests/test-pty.c: Rename and split...
33410         * tests/test-forkpty.c: ...to this...
33411         * tests/test-openpty.c: ...and this.
33412         * m4/pty_h.m4 (gl_PTY_H_DEFAULTS): Add new witnesses.
33413         (gl_PTY): Split library searching...
33414         * m4/pty.m4 (gl_PTY_LIB): ...into new file.
33415         (gl_FORKPTY, gl_OPENPTY): New macros.
33416         * lib/pty.in.h (forkpty, openpty): Honor new witnesses.
33417         * NEWS: Mention the split.
33418         * MODULES.html.sh (Misc): Document the modules.
33419         * doc/glibc-functions/forkpty.texi (forkpty): Likewise.
33420         * doc/glibc-functions/openpty.texi (openpty): Likewise.
33421
33422         pty: improve replacement header
33423         * lib/pty.in.h: New file.
33424         * modules/pty (Files): Ship it.
33425         (Makefile.am): Always build replacement.
33426         * m4/pty.m4: Rename...
33427         * m4/pty_h.m4: ...to this.
33428         (gl_PTY): Modernize setting of witness macros; update check of
33429         forkpty to take proper advantage of cache.
33430         (gl_PTY_MODULE_INDICATOR, gl_PTY_H_DEFAULTS): New macros.
33431
33432         getopt: avoid compiler warning
33433         * lib/getopt.c (attribute_hidden): Remove unused macro.
33434
33435 2010-03-18  Bruno Haible  <bruno@clisp.org>
33436
33437         Fix link errors on Solaris 8.
33438         * modules/iconv-h-tests (test_iconv_h_c___LDADD): Add LIB_NANOSLEEP.
33439         * modules/search-tests (test_search_c___LDADD): Likewise.
33440         * modules/signal-tests (test_signal_c___LDADD): Likewise.
33441         * modules/spawn-tests (test_spawn_c___LDADD): Likewise.
33442         * modules/stdio-tests (test_stdio_c___LDADD): Likewise.
33443         * modules/sys_select-tests (test_sys_select_c___LDADD): Likewise.
33444         * modules/sys_socket-tests (test_sys_socket_c___LDADD): Likewise.
33445         * modules/sys_time-tests (test_sys_time_c___LDADD): Likewise.
33446         * modules/wchar-tests (test_wchar_c___LDADD): Likewise.
33447
33448 2010-03-18  Bruno Haible  <bruno@clisp.org>
33449
33450         Fix bug introduced on 2010-03-14.
33451         * m4/spawn_h.m4 (gl_HAVE_POSIX_SPAWN): New macro.
33452         (gl_SPAWN_H): Require it.
33453         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Likewise.
33454         Reported by Simon Josefsson.
33455
33456 2010-03-18  Bruno Haible  <bruno@clisp.org>
33457
33458         Fix typo introduced on 2009-12-31.
33459         * m4/spawn_h.m4 (gl_SPAWN_H): Check for the declaration of
33460         posix_spawn_file_actions_adddup2.
33461
33462 2010-03-17  Bert Wesarg  <bert.wesarg@googlemail.com>  (tiny change)
33463         and Eric Blake  <eblake@redhat.com>
33464
33465         test-vc-list-files-git: make more robust
33466         * tests/test-vc-list-files-git.sh: Unset problematic environment
33467         variables.  Chain commands together.
33468
33469 2010-03-17  Ludovic Courtès <ludo@gnu.org>  (tiny change)
33470
33471         * m4/pty.m4: Unset $ac_cv_have_decl_forkpty before the second
33472         `AC_CHECK_DECL' invocation.
33473
33474 2010-03-15  Sergey Poznyakoff  <gray@gnu.org.ua>
33475
33476         * lib/inttostr.c (inttostr): Make sure the invocation of verify
33477         appears before executable statements. Suggested by Petr Sumbera
33478         <Petr.Sumbera@Sun.COM>.
33479
33480 2010-03-14  Bruno Haible  <bruno@clisp.org>
33481
33482         * tests/test-flock.c (test_exclusive): Comment out a test that causes
33483         portability problems. Instead use a simpler test.
33484         (main): Check that invalid arguments are rejected only on Linux.
33485
33486 2010-03-14  Bruno Haible  <bruno@clisp.org>
33487
33488         Fix bug introduced on 2009-12-31.
33489         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
33490         gl_PREREQ_SYS_H_WINSOCK2 always.
33491         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise. Remove
33492         SYS_SOCKET_H variable.
33493         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Remove test for flock.
33494         Update comments.
33495         * m4/ctype.m4 (gl_CTYPE_H): Update comments.
33496         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
33497         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
33498         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
33499         * m4/sys_wait_h.m4 (gl_SYS_WAIT_H): Likewise.
33500
33501 2010-03-14  Bruno Haible  <bruno@clisp.org>
33502
33503         Fix values returned by sinl, cosl.
33504         * lib/trigl.h: Add specification comments.
33505         * lib/sincosl.c (kernel_sinl, kernel_cosl): Fix comments and formula
33506         that combines the values from the precomputed table with the values of
33507         the Chebyshev polynomials.
33508
33509 2010-03-14  Bruno Haible  <bruno@clisp.org>
33510
33511         Fix compilation error when modules 'posix_spawn[p]' are not used.
33512         * m4/spawn_h.m4 (gl_SPAWN_H): Set HAVE_POSIX_SPAWN here.
33513         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): ... not here.
33514
33515 2010-03-14  Bruno Haible  <bruno@clisp.org>
33516
33517         Fix compilation error on mingw when module 'time_r' is not used.
33518         * lib/time.in.h (localtime_r, gmtime_r): Declare only if GNULIB_TIME_R
33519         is 1.
33520         * tests/test-time-c++.cc (localtime_r, gmtime_r): Likewise.
33521         * modules/time_r (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33522         * modules/time (Makefile.am): Substitute GNULIB_TIME_R.
33523         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize GNULIB_TIME_R.
33524
33525 2010-03-14  Bruno Haible  <bruno@clisp.org>
33526
33527         Fix compilation error with Sun C.
33528         * lib/strtol.c: Use LLONG_MIN instead of GCC specific LONG_LONG_MIN.
33529         Use LLONG_MAX instead of GCC specific LONG_LONG_MAX. Use ULLONG_MAX
33530         instead of GCC specific ULONG_LONG_MAX.
33531         * lib/xstrtoll.c: Likewise.
33532         * lib/xstrtoull.c: Likewise.
33533
33534 2010-03-13  Bruno Haible  <bruno@clisp.org>
33535
33536         Allow the user to disable C++ code and tests.
33537         * m4/ansi-c++.m4 (gl_CXX_CHOICE): New macro.
33538         (gl_PROG_ANSI_CXX): Require it.
33539
33540 2010-03-13  Bruno Haible  <bruno@clisp.org>
33541
33542         * DEPENDENCIES (libtool): Mention libtool 2.2.x requirement in special
33543         cases.
33544
33545 2010-03-13  Bruno Haible  <bruno@clisp.org>
33546
33547         Test that gnulib does not break the standard C++ headers.
33548         * tests/test-locale-c++2.cc: New file.
33549         * modules/locale-tests (Files): Add it.
33550         (Makefile.am): Compile it for test-locale-c++.
33551         * tests/test-math-c++2.cc: New file.
33552         * modules/math-tests (Files): Add it.
33553         (Makefile.am): Compile it for test-math-c++.
33554         * tests/test-signal-c++2.cc: New file.
33555         * modules/signal-tests (Files): Add it.
33556         (Makefile.am): Compile it for test-signal-c++.
33557         * tests/test-stdio-c++2.cc: New file.
33558         * modules/stdio-tests (Files): Add it.
33559         (Makefile.am): Compile it for test-stdio-c++.
33560         * tests/test-stdlib-c++2.cc: New file.
33561         * modules/stdlib-tests (Files): Add it.
33562         (Makefile.am): Compile it for test-stdlib-c++.
33563         * tests/test-string-c++2.cc: New file.
33564         * modules/string-tests (Files): Add it.
33565         (Makefile.am): Compile it for test-string-c++.
33566         * tests/test-time-c++2.cc: New file.
33567         * modules/time-tests (Files): Add it.
33568         (Makefile.am): Compile it for test-time-c++.
33569         Reported by John W. Eaton <jwe@gnu.org>.
33570
33571 2010-03-13  Bruno Haible  <bruno@clisp.org>
33572
33573         * gnulib-tool (func_usage): Clarify which options are available for
33574         --create-testdir and --create-megatestdir.
33575
33576 2010-03-13  Bruno Haible  <bruno@clisp.org>
33577
33578         Fix compilation error with glibc >= 2.10 and g++ >= 4.4.
33579         * build-aux/warn-on-use.h (_GL_WARN_ON_USE_CXX): New macro.
33580         * build-aux/c++defs.h (_GL_CXXALIASWARN1): New macro.
33581         * lib/string.in.h (memchr, memrchr, rawmemchr, strchrnul, strpbrk,
33582         strstr, strcasestr): Use _GL_CXXALIASWARN1 instead of _GL_CXXALIASWARN
33583         when appropriate.
33584         Reported by Jim Meyering.
33585
33586 2010-03-12  Simon Josefsson  <simon@josefsson.org>
33587
33588         * gnulib-tool (func_import): Explain origin of code.
33589
33590 2010-03-12  Bruno Haible  <bruno@clisp.org>
33591
33592         Fix problem with automake's definition of CXXLINK.
33593         * gnulib-tool (func_create_testdir): After LT_INIT, also use LT_LANG.
33594         Reported by Simon Josefsson and Ludovic Courtès.
33595
33596 2010-03-12  Bruno Haible  <bruno@clisp.org>
33597
33598         * doc/gnulib-intro.texi (Steady Development): Mention Ian Beckwith's
33599         stable releases.
33600
33601 2010-03-11  Bruno Haible  <bruno@clisp.org>
33602
33603         Fix problems with overloaded C++ definitions of memchr, strpbrk, etc.
33604         * build-aux/c++defs.h (_GL_CXXALIAS_SYS_CAST2): Make it work regardless
33605         whether the system provides one variant or multiple variants of the
33606         function.
33607         * lib/string.in.h (memchr, strpbrk): Use _GL_CXXALIAS_SYS_CAST2 for all
33608         C++ compilers.
33609         (memrchr, rawmemchr, strchrnul, strstr, strcasestr): Use
33610         _GL_CXXALIAS_SYS_CAST2 instead of _GL_CXXALIAS_SYS.
33611         Reported by Jim Meyering.
33612
33613 2010-03-09  Simon Josefsson  <simon@josefsson.org>
33614
33615         * gnulib-tool (LIBTOOLPATH): Fix cut'n'paste bug.
33616
33617 2010-03-08  Bruno Haible  <bruno@clisp.org>
33618
33619         gnulib-tool: Add support for --libtool in --create-testdir.
33620         * gnulib-tool (LIBTOOLPATH, LIBTOOLIZE): New variables.
33621         (func_create_testdir): Emit LT_INIT invocations. Invoke LIBTOOLIZE.
33622
33623 2010-03-08  Eric Blake  <eblake@redhat.com>
33624
33625         gnulib-tool.texi: mention possibility of git submodule
33626         * doc/gnulib-tool.texi (VCS Issues): Add details about using git
33627         submodules.
33628         * doc/.gitignore: Ignore another generated file.
33629
33630 2010-03-08  Karl Berry  <karl@gnu.org>
33631
33632         * doc/gnulib-tool.texi (VCS Issues): Mention third option
33633         of committing gnulib files while skipping others.
33634
33635 2010-03-07  Bruno Haible  <bruno@clisp.org>
33636
33637         Tests of module 'wctype' in C++ mode.
33638         * tests/test-wctype-c++.cc: New file.
33639         * modules/wctype-tests (Files): Add it and tests/signature.h.
33640         (Depends-on): Add ansi-c++-opt.
33641         (Makefile.am): Arrange to compile and run test-wctype-c++.
33642
33643         Tests of module 'wchar' in C++ mode.
33644         * tests/test-wchar-c++.cc: New file.
33645         * modules/wchar-tests (Files): Add it and tests/signature.h.
33646         (Depends-on): Add ansi-c++-opt.
33647         (Makefile.am): Arrange to compile and run test-wchar-c++.
33648         * m4/wchar_h.m4 (gl_WCHAR_MODULE_INDICATOR): Invoke
33649         gl_MODULE_INDICATOR.
33650
33651         Tests of module 'unistd' in C++ mode.
33652         * tests/test-unistd-c++.cc: New file.
33653         * modules/unistd-tests (Files): Add it and tests/signature.h.
33654         (Depends-on): Add ansi-c++-opt.
33655         (Makefile.am): Arrange to compile and run test-unistd-c++.
33656         * m4/unistd_h.m4 (gl_UNISTD_MODULE_INDICATOR): Invoke
33657         gl_MODULE_INDICATOR.
33658
33659         Tests of module 'time' in C++ mode.
33660         * tests/test-time-c++.cc: New file.
33661         * modules/time-tests (Files): Add it and tests/signature.h.
33662         (Depends-on): Add ansi-c++-opt.
33663         (Makefile.am): Arrange to compile and run test-time-c++.
33664         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33665
33666         Tests of module 'sys_time' in C++ mode.
33667         * tests/test-sys_time-c++.cc: New file.
33668         * modules/sys_time-tests (Files): Add it and tests/signature.h.
33669         (Depends-on): Add ansi-c++-opt.
33670         (Makefile.am): Arrange to compile and run test-sys_time-c++.
33671         * m4/sys_time_h.m4 (gl_SYS_TIME_MODULE_INDICATOR): Invoke
33672         gl_MODULE_INDICATOR.
33673
33674         Tests of module 'sys_stat' in C++ mode.
33675         * tests/test-sys_stat-c++.cc: New file.
33676         * modules/sys_stat-tests (Files): Add it and tests/signature.h.
33677         (Depends-on): Add ansi-c++-opt.
33678         (Makefile.am): Arrange to compile and run test-sys_stat-c++.
33679         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): Invoke
33680         gl_MODULE_INDICATOR.
33681
33682         Tests of module 'sys_socket' in C++ mode.
33683         * tests/test-sys_socket-c++.cc: New file.
33684         * modules/sys_socket-tests (Files): Add it and tests/signature.h.
33685         (Depends-on): Add ansi-c++-opt.
33686         (Makefile.am): Arrange to compile and run test-sys_socket-c++.
33687         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Invoke
33688         gl_MODULE_INDICATOR.
33689
33690         Tests of module 'sys_select' in C++ mode.
33691         * tests/test-sys_select-c++.cc: New file.
33692         * modules/sys_select-tests (Files): Add it and tests/signature.h.
33693         (Depends-on): Add ansi-c++-opt.
33694         (Makefile.am): Arrange to compile and run test-sys_select-c++.
33695         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): Invoke
33696         gl_MODULE_INDICATOR.
33697
33698         Tests of module 'sys_ioctl' in C++ mode.
33699         * tests/test-sys_ioctl-c++.cc: New file.
33700         * modules/sys_ioctl-tests (Files): Add it and tests/signature.h.
33701         (Depends-on): Add ansi-c++-opt.
33702         (Makefile.am): Arrange to compile and run test-sys_ioctl-c++.
33703         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_MODULE_INDICATOR): Invoke
33704         gl_MODULE_INDICATOR.
33705
33706         Tests of module 'string' in C++ mode.
33707         * tests/test-string-c++.cc: New file.
33708         * modules/string-tests (Files): Add it and tests/signature.h.
33709         (Depends-on): Add ansi-c++-opt.
33710         (Makefile.am): Arrange to compile and run test-string-c++.
33711         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Invoke
33712         gl_MODULE_INDICATOR.
33713
33714         Tests of module 'stdlib' in C++ mode.
33715         * tests/test-stdlib-c++.cc: New file.
33716         * modules/stdlib-tests (Files): Add it and tests/signature.h.
33717         (Depends-on): Add ansi-c++-opt.
33718         (Makefile.am): Arrange to compile and run test-stdlib-c++.
33719         * m4/stdlib_h.m4 (gl_STDLIB_MODULE_INDICATOR): Invoke
33720         gl_MODULE_INDICATOR.
33721
33722         Tests of module 'stdio' in C++ mode.
33723         * tests/test-stdio-c++.cc: New file.
33724         * modules/stdio-tests (Files): Add it and tests/signature.h.
33725         (Depends-on): Add ansi-c++-opt.
33726         (Makefile.am): Arrange to compile and run test-stdio-c++.
33727         * m4/stdio_h.m4 (gl_STDIO_MODULE_INDICATOR): Invoke
33728         gl_MODULE_INDICATOR.
33729
33730         Tests of module 'spawn' in C++ mode.
33731         * tests/test-spawn-c++.cc: New file.
33732         * modules/spawn-tests (Files): Add it and tests/signature.h.
33733         (Depends-on): Add ansi-c++-opt.
33734         (Makefile.am): Arrange to compile and run test-spawn-c++.
33735         * m4/spawn_h.m4 (gl_SPAWN_MODULE_INDICATOR): Invoke
33736         gl_MODULE_INDICATOR.
33737
33738         Tests of module 'signal' in C++ mode.
33739         * tests/test-signal-c++.cc: New file.
33740         * modules/signal-tests (Files): Add it and tests/signature.h.
33741         (Depends-on): Add ansi-c++-opt.
33742         (Makefile.am): Arrange to compile and run test-signal-c++.
33743         * m4/signal_h.m4 (gl_SIGNAL_MODULE_INDICATOR): Invoke
33744         gl_MODULE_INDICATOR.
33745
33746         Tests of module 'search' in C++ mode.
33747         * tests/test-search-c++.cc: New file.
33748         * modules/search-tests (Files): Add it and tests/signature.h.
33749         (Depends-on): Add ansi-c++-opt.
33750         (Makefile.am): Arrange to compile and run test-search-c++.
33751         * m4/search_h.m4 (gl_SEARCH_MODULE_INDICATOR): Invoke
33752         gl_MODULE_INDICATOR.
33753
33754         Tests of module 'math' in C++ mode.
33755         * tests/test-math-c++.cc: New file.
33756         * modules/math-tests (Files): Add it and tests/signature.h.
33757         (Depends-on): Add ansi-c++-opt.
33758         (Makefile.am): Arrange to compile and run test-math-c++.
33759         * m4/math_h.m4 (gl_MATH_MODULE_INDICATOR): Invoke gl_MODULE_INDICATOR.
33760
33761         Tests of module 'locale' in C++ mode.
33762         * tests/test-locale-c++.cc: New file.
33763         * modules/locale-tests (Files): Add it and tests/signature.h.
33764         (Depends-on): Add ansi-c++-opt.
33765         (Makefile.am): Arrange to compile and run test-locale-c++.
33766         * m4/locale_h.m4 (gl_LOCALE_MODULE_INDICATOR): Invoke
33767         gl_MODULE_INDICATOR.
33768
33769         Tests of module 'langinfo' in C++ mode.
33770         * tests/test-langinfo-c++.cc: New file.
33771         * modules/langinfo-tests (Files): Add it and tests/signature.h.
33772         (Depends-on): Add ansi-c++-opt.
33773         (Makefile.am): Arrange to compile and run test-langinfo-c++.
33774         * m4/langinfo_h.m4 (gl_LANGINFO_MODULE_INDICATOR): Invoke
33775         gl_MODULE_INDICATOR.
33776
33777         Tests of module 'iconv-h' in C++ mode.
33778         * tests/test-iconv-h-c++.cc: New file.
33779         * modules/iconv-h-tests (Files): Add it and tests/signature.h.
33780         (Depends-on): Add ansi-c++-opt.
33781         (Makefile.am): Arrange to compile and run test-iconv-h-c++.
33782
33783         Tests of module 'glob' in C++ mode.
33784         * tests/test-glob-c++.cc: New file.
33785         * modules/glob-tests (Files): Add it.
33786         (Depends-on): Add ansi-c++-opt.
33787         (Makefile.am): Arrange to compile and run test-glob-c++.
33788
33789         Tests of module 'fcntl-h' in C++ mode.
33790         * tests/test-fcntl-h-c++.cc: New file.
33791         * modules/fcntl-h-tests (Files): Add it and tests/signature.h.
33792         (Depends-on): Add ansi-c++-opt.
33793         (Makefile.am): Arrange to compile and run test-fcntl-h-c++.
33794         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR): Invoke
33795         gl_MODULE_INDICATOR.
33796
33797         Tests of module 'dirent' in C++ mode.
33798         * tests/test-dirent-c++.cc: New file.
33799         * modules/dirent-tests (Files): Add it and tests/signature.h.
33800         (Depends-on): Add ansi-c++-opt.
33801         (Makefile.am): Arrange to compile and run test-dirent-c++.
33802         * m4/dirent_h.m4 (gl_DIRENT_MODULE_INDICATOR): Invoke
33803         gl_MODULE_INDICATOR.
33804
33805         New module 'ansi-c++-opt'.
33806         * modules/ansi-c++-opt: New file.
33807         * m4/ansi-c++.m4: New file, from GNU gettext with modifications.
33808
33809         Document C++ namespace mode.
33810         * doc/gnulib.texi (A C++ namespace for gnulib): New section.
33811
33812         wctype: Avoid #define replacements in C++ mode.
33813         * lib/wctype.in.h: Include c++defs.h, warn-on-use.h.
33814         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower,
33815         iswprint, iswpunct, iswspace, iswupper, iswxdigit, towlower, towupper):
33816         In C++, define a namespaced alias symbol.
33817         * m4/wctype_h.m4 (gl_WCTYPE_H): Don't set WCTYPE_H.
33818         * modules/wctype (Depends-on): Add c++defs, warn-on-use.
33819         (Makefile.am): Provide a wctype.h replacement always. Update wctype.h
33820         rule.
33821
33822         wchar: Avoid #define replacements in C++ mode.
33823         * lib/wchar.in.h: Include c++defs.h.
33824         (btowc, wctob, mbsinit, mbrtowc, mbrlen, mbsrtowcs, mbsnrtowcs,
33825         wcrtomb, wcsrtombs, wcsnrtombs): In C++, define a namespaced alias
33826         symbol.
33827         (wcwidth): Likewise. Fix prototype to be POSIX compliant.
33828         * modules/wchar (Depends-on): Add c++defs.
33829         (Makefile.am): Update wchar.h rule.
33830
33831         unistd: Avoid #define replacements in C++ mode.
33832         * lib/unistd.in.h: Include c++defs.h.
33833         (chown, close, dup, dup2, dup3, euidaccess, faccessat, fchdir,
33834         fchownat, fsync, ftruncate, getcwd, getdomainname, getdtablesize,
33835         getgroups, gethostname, getlogin, getlogin_r, getpagesize,
33836         getusershell, setusershell, endusershell, lchown, link, linkat, lseek,
33837         pipe2, pread, readlink, readlinkat, rmdir, sleep, symlink, symlinkat,
33838         unlink, unlinkat, usleep, write): In C++, define a namespaced alias
33839         symbol.
33840         (environ): Update.
33841         * modules/unistd (Depends-on): Add c++defs.
33842         (Makefile.am): Update unistd.h rule.
33843
33844         time: Avoid #define replacements in C++ mode.
33845         * lib/time.in.h: Include c++defs.h, warn-on-use.h.
33846         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): In C++,
33847         define a namespaced alias symbol.
33848         * m4/time_h.m4 (gl_TIME_MODULE_INDICATOR): New macro.
33849         (gl_HEADER_TIME_H_DEFAULTS): Initialize also GNULIB_MKTIME,
33850         GNULIB_NANOSLEEP, GNULIB_STRPTIME, GNULIB_TIMEGM.
33851         * modules/time (Depends-on): Add c++defs, warn-on-use.
33852         (Makefile.am): Update time.h rule.
33853         * modules/mktime (configure.ac): Invoke gl_TIME_MODULE_INDICATOR.
33854         * modules/nanosleep (configure.ac): Likewise.
33855         * modules/strptime (configure.ac): Likewise.
33856         * modules/timegm (configure.ac): Likewise.
33857
33858         sys_time: Avoid #define replacements in C++ mode.
33859         * lib/sys_time.in.h: Include c++defs.h.
33860         (gettimeofday): In C++, define a namespaced alias symbol.
33861         * modules/sys_time (Depends-on): Add c++defs.
33862         (Makefile.am): Update sys/time.h rule.
33863
33864         sys_stat: Avoid #define replacements in C++ mode.
33865         * lib/sys_stat.in.h: Include c++defs.h.
33866         (fchmodat, fstat, fstatat, futimens, lchmod, lstat, mkdir, mkdirat,
33867         mkfifo, mkfifoat, mknod, mknodat, utimensat): In C++, define a
33868         namespaced alias symbol.
33869         In C++, define a namespaced alias symbol.
33870         * modules/sys_stat (Depends-on): Add c++defs.
33871         (Makefile.am): Update sys/stat.h rule.
33872
33873         sys_socket: Avoid #define replacements in C++ mode.
33874         * lib/sys_socket.in.h: Handle the case of recursive include on Cygwin.
33875         Include c++defs.h. Include warn-on-use.h earlier. Enable the function
33876         definitions also when the system has a <sys/socket.h>.
33877         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
33878         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, accept4):
33879         In C++, define a namespaced alias symbol.
33880         * modules/sys_socket (Depends-on): Add c++defs.
33881         (Makefile.am): Update sys/socket.h rule.
33882
33883         sys_select: Avoid #define replacements in C++ mode.
33884         * lib/sys_select.in.h: Include c++defs.h. Enable the function
33885         definitions also when the system has a <sys/select.h>.
33886         (select): In C++, define a namespaced alias symbol.
33887         * modules/sys_select (Depends-on): Add c++defs.
33888         (Makefile.am): Update sys/select.h rule.
33889
33890         sys_ioctl: Avoid #define replacements in C++ mode.
33891         * lib/sys_ioctl.in.h: Include c++defs.h.
33892         (ioctl): In C++, define a namespaced alias symbol.
33893         * modules/sys_ioctl (Depends-on): Add c++defs.
33894         (Makefile.am): Update sys/ioctl.h rule.
33895
33896         string: Avoid #define replacements in C++ mode.
33897         * lib/string.in.h: Include c++defs.h.
33898         (stpncpy): Define to rpl_stpncpy, not gnu_stpncpy.
33899         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
33900         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
33901         strcasestr, strtok_r, mbslen, mbschr, mbsrchr, mbspbrk, strerror,
33902         strsignal, strverscmp): In C++, define a namespaced alias symbol.
33903         * modules/string (Depends-on): Add c++defs.
33904         (Makefile.am): Update string.h rule.
33905
33906         stdlib: Avoid #define replacements in C++ mode.
33907         * lib/stdlib.in.h: Include c++defs.h.
33908         (atoll, calloc, canonicalize_file_name, getloadavg, getsubopt, malloc,
33909         mkdtemp, mkostemp, mkostemps, mkstemp, mkstemps, putenv, random_r,
33910         srandom_r, initstate_r, setstate_r, realloc, realpath, rpmatch, setenv,
33911         strtod, strtoll, strtoull, unsetenv): In C++, define a namespaced alias
33912         symbol.
33913         * modules/stdlib (Depends-on): Add c++defs.
33914         (Makefile.am): Update stdlib.h rule.
33915
33916         stdio: Avoid #define replacements in C++ mode.
33917         * lib/stdio.in.h: Include c++defs.h.
33918         (dprintf, fclose, fflush, fopen, fprintf, fpurge, fputc, fputs,
33919         freopen, fseek, fseeko, ftell, ftello, fwrite, getdelim, getline,
33920         obstack_printf, obstack_vprintf, perror, popen, printf, fputc, putchar,
33921         puts, remove, rename, renameat, snprintf, sprintf, asprintf, vasprintf,
33922         vdprintf, vfprintf, vprintf, vsnprintf, vsprintf): In C++, define a
33923         namespaced alias symbol.
33924         * modules/stdio (Depends-on): Add c++defs.
33925         (Makefile.am): Update stdio.h rule.
33926
33927         spawn: Avoid #define replacements in C++ mode.
33928         * lib/spawn.in.h: Include c++defs.h.
33929         (posix_spawn, posix_spawnp, posix_spawnattr_init,
33930         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
33931         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
33932         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
33933         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
33934         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
33935         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
33936         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
33937         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
33938         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
33939         In C++, define a namespaced alias symbol.
33940         * modules/spawn (Depends-on): Add c++defs.
33941         (Makefile.am): Update spawn.h rule.
33942
33943         signal: Avoid #define replacements in C++ mode.
33944         * lib/signal.in.h: Include c++defs.h.
33945         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
33946         sigpending, sigprocmask, signal, raise, sigaction): In C++, define a
33947         namespaced alias symbol.
33948         * modules/signal (Depends-on): Add c++defs.
33949         (Makefile.am): Update signal.h rule.
33950
33951         search: Avoid #define replacements in C++ mode.
33952         * lib/search.in.h: Include c++defs.h.
33953         (_gl_search_compar_fn, _gl_search_action_fn): New types.
33954         (tsearch, tfind, tdelete, twalk): In C++, define a namespaced alias
33955         symbol.
33956         * modules/search (Depends-on): Add c++defs.
33957         (Makefile.am): Update search.h rule.
33958
33959         math: Avoid #define replacements in C++ mode.
33960         * lib/math.in.h: Include c++defs.h.
33961         (frexp, acosl, asinl, atanl, ceilf, ceill, cosl, expl, floorf, floorl,
33962         frexpl, ldexpl, logl, roundf, round, roundl, sinl, sqrtl, tanl, truncf,
33963         trunc, truncl): In C++, define a namespaced alias symbol.
33964         * modules/math (Depends-on): Add c++defs.
33965         (Makefile.am): Update math.h rule.
33966
33967         locale: Avoid #define replacements in C++ mode.
33968         * lib/locale.in.h: Include c++defs.h.
33969         (duplocale): In C++, define a namespaced alias symbol.
33970         * m4/locale_h.m4 (gl_LOCALE_H_DEFAULTS): Initialize HAVE_DUPLOCALE.
33971         * m4/duplocale.m4 (gl_FUNC_DUPLOCALE): Set HAVE_DUPLOCALE.
33972         * modules/locale (Depends-on): Add c++defs.
33973         (Makefile.am): Update locale.h rule. Substitute HAVE_DUPLOCALE.
33974
33975         langinfo: Avoid #define replacements in C++ mode.
33976         * lib/langinfo.in.h: Include c++defs.h.
33977         (nl_langinfo): In C++, define a namespaced alias symbol.
33978         * modules/langinfo (Depends-on): Add c++defs.
33979         (Makefile.am): Update langinfo.h rule.
33980
33981         iconv-h: Avoid #define replacements in C++ mode.
33982         * lib/iconv.in.h: Include c++defs.h, warn-on-use.h.
33983         (iconv_open, iconv, iconv_close): In C++, define a namespaced alias
33984         symbol.
33985         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
33986         whenever iconv is present.
33987         * modules/iconv-h (Depends-on): Add c++defs, warn-on-use.
33988         (Makefile.am): Update iconv.h rule.
33989
33990         glob: Avoid #define replacements in C++ mode.
33991         * lib/glob.in.h: Include c++defs.h, warn-on-use.h.
33992         (_gl_glob_errfunc_fn): New type.
33993         (glob, globfree, glob_pattern_p): In C++, define a namespaced alias
33994         symbol.
33995         * modules/glob (Depends-on): Add c++defs, warn-on-use.
33996         (Makefile.am): Update glob.h rule.
33997
33998         fcntl-h: Avoid #define replacements in C++ mode.
33999         * lib/fcntl.in.h: Include c++defs.h.
34000         (fcntl, open, openat): In C++, define a namespaced alias symbol.
34001         * modules/fcntl-h (Depends-on): Add c++defs.
34002         (Makefile.am): Update fcntl.h rule.
34003
34004         dirent: Avoid #define replacements in C++ mode.
34005         * lib/dirent.in.h: Include c++defs.h.
34006         (closedir, fdopendir, opendir, scandir, alphasort): In C++, define a
34007         namespaced alias symbol.
34008         (dirfd): Update declaration.
34009         * modules/dirent (Depends-on): Add c++defs.
34010         (Makefile.am): Update dirent.h rule.
34011
34012         ctype: Make it usable in C++ code.
34013         * lib/ctype.in.h: Include c++defs.h.
34014         (isblank): Declare as extern "C".
34015         * modules/ctype (Depends-on): Add c++defs.
34016         (Makefile.am): Update ctype.h rule.
34017
34018         New module 'c++defs'.
34019         * modules/c++defs: New file.
34020         * build-aux/c++defs.h: New file.
34021         Reported by John W. Eaton <jwe@gnu.org>.
34022
34023 2010-03-07  Bruno Haible  <bruno@clisp.org>
34024
34025         logb: Provide missing declaration for Cygwin.
34026         * lib/math.in.h (logb): New declaration.
34027         * m4/logb.m4: New file.
34028         * modules/logb (Files): Add m4/logb.m4.
34029         (Depends-on): Add math.
34030         (configure.ac): Invoke gl_FUNC_LOGB, gl_MATH_MODULE_INDICATOR.
34031         * m4/math_h.m4 (gl_MATH_H): Check also for logb declaration.
34032         (gl_MATH_H_DEFAULTS): Initialize GNULIB_LOGB, HAVE_DECL_LOGB.
34033         * modules/math (Makefile.am): Substitute GNULIB_LOGB, HAVE_DECL_LOGB.
34034         * doc/posix-functions/logb.texi: Mention the Cygwin bug.
34035
34036 2010-03-07  Bruno Haible  <bruno@clisp.org>
34037
34038         Fix test-cond link error.
34039         * tests/test-cond.c: Include <stdio.h>.
34040
34041 2010-03-07  Bruno Haible  <bruno@clisp.org>
34042
34043         Fix test-dirent-safer link error.
34044         * modules/dirent-safer-tests (Makefile.am): Define
34045         test_dirent_safer_LDADD.
34046
34047 2010-03-07  Bruno Haible  <bruno@clisp.org>
34048
34049         * gnulib-tool (func_create_testdir): Don't use 'lib-ignore' module
34050         among default module list.
34051
34052 2010-03-07  Bruno Haible  <bruno@clisp.org>
34053
34054         Fix link error on platforms with GNU libiconv.
34055         * modules/unistr/u8-strcoll-tests (Makefile): Define
34056         test_u8_strcoll_LDADD.
34057         * modules/unistr/u16-strcoll-tests (Makefile): Define
34058         test_u16_strcoll_LDADD.
34059         * modules/unistr/u32-strcoll-tests (Makefile): Define
34060         test_u32_strcoll_LDADD.
34061
34062 2010-03-07  Bruno Haible  <bruno@clisp.org>
34063
34064         Use POSIX declarations for socket functions.
34065         * lib/sys_socket.in.h (rpl_connect, rpl_accept, rpl_bind,
34066         rpl_getpeername, rpl_getsockname, rpl_recv, rpl_send, rpl_recvfrom,
34067         rpl_sendto): Change declaration to match POSIX.
34068         * lib/connect.c (rpl_connect): Likewise.
34069         * lib/accept.c (rpl_accept): Likewise.
34070         * lib/bind.c (rpl_bind): Likewise.
34071         * lib/getpeername.c (rpl_getpeername): Likewise.
34072         * lib/getsockname.c (rpl_getsockname): Likewise.
34073         * lib/recv.c (rpl_recv): Likewise.
34074         * lib/send.c (rpl_send): Likewise.
34075         * lib/recvfrom.c (rpl_recvfrom): Likewise.
34076         * lib/sendto.c (rpl_sendto): Likewise.
34077
34078 2010-03-06  Bruno Haible  <bruno@clisp.org>
34079
34080         Clarify access, euidaccess, faccessat.
34081         * doc/posix-functions/faccessat.texi: Mention security problem under
34082         "Other problems", not "Portability problems".
34083         * doc/posix-functions/access.texi: Likewise. Mention a related security
34084         problem.
34085         * doc/glibc-functions/euidaccess.texi: Mention security problems.
34086         * lib/euidaccess.c: Add comments about platforms.
34087         * lib/unistd.in.h (access, euidaccess): Add warnings.
34088
34089 2010-03-07  Bruno Haible  <bruno@clisp.org>
34090
34091         Ensure posix_spawnattr_{get,set}sched{policy,param} are defined.
34092         * lib/spawn.in.h (POSIX_SPAWN_SETSCHEDPARAM): Define fallback.
34093         (POSIX_SPAWN_SETSCHEDULER): Likewise.
34094         (POSIX_SPAWN_USEVFORK): Define in a way that works when
34095         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34096         (posix_spawnattr_getschedpolicy, posix_spawnattr_setschedpolicy): Also
34097         declare when POSIX_SPAWN_SETSCHEDULER is zero.
34098         (posix_spawnattr_getschedparam, posix_spawnattr_setschedparam): Also
34099         declare when POSIX_SPAWN_SETSCHEDPARAM is zero.
34100         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_BODY): Test whether
34101         POSIX_SPAWN_SETSCHEDULER or POSIX_SPAWN_SETSCHEDPARAM are zero.
34102         * modules/posix_spawnattr_getschedparam (configure.ac): Enable the
34103         replacement also when POSIX_SPAWN_SETSCHEDPARAM is zero.
34104         * modules/posix_spawnattr_setschedparam (configure.ac): Likewise.
34105         * modules/posix_spawnattr_getschedpolicy (configure.ac): Enable the
34106         replacement also when POSIX_SPAWN_SETSCHEDULER is zero.
34107         * modules/posix_spawnattr_setschedpolicy (configure.ac): Likewise.
34108         * lib/spawnattr_getschedparam.c (posix_spawnattr_getschedparam): Do
34109         nothing if POSIX_SPAWN_SETSCHEDPARAM is zero.
34110         * lib/spawnattr_setschedparam.c (posix_spawnattr_setschedparam):
34111         Likewise.
34112         * lib/spawnattr_getschedpolicy.c (posix_spawnattr_getschedpolicy): Do
34113         nothing if POSIX_SPAWN_SETSCHEDULER is zero.
34114         * lib/spawnattr_setschedpolicy.c (posix_spawnattr_setschedpolicy):
34115         Likewise.
34116         * tests/test-spawn.c (main): Make it work when
34117         POSIX_SPAWN_SETSCHEDPARAM and POSIX_SPAWN_SETSCHEDULER are zero.
34118
34119 2010-03-07  Bruno Haible  <bruno@clisp.org>
34120
34121         Fix incorrect Makefile.am generation in German locale.
34122         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
34123         Execute sed command with character range in C locale.
34124
34125 2010-03-06  Bruno Haible  <bruno@clisp.org>
34126
34127         Tests for module 'iconv-h'.
34128         * modules/iconv-h-tests: New file.
34129         * tests/test-iconv-h.c: New file.
34130
34131         New module 'iconv-h'.
34132         * modules/iconv-h: New file.
34133         * modules/iconv_open (Files): Remove lib/iconv.in.h, m4/iconv_h.m4.
34134         (Depends-on): Add iconv-h. Remove include_next, arg-nonnull.
34135         (configure.ac): Remove gl_ICONV_H.
34136         (Makefile.am): Remove rule for iconv.h.
34137
34138 2010-03-06  Bruno Haible  <bruno@clisp.org>
34139
34140         More consistent naming of *.m4 files.
34141         * m4/wctype_h.m4: Renamed from m4/wctype.m4.
34142         * modules/wctype (Files): Update.
34143
34144         More consistent naming of *.m4 files.
34145         * m4/wchar_h.m4: Renamed from m4/wchar.m4.
34146         * modules/wchar (Files): Update.
34147
34148 2010-03-06  Jim Meyering  <meyering@redhat.com>
34149
34150         euidaccess: relax license to LGPLv2+
34151         * modules/euidaccess (License): Relax to LGPLv2+.
34152
34153 2010-03-06  Bruno Haible  <bruno@clisp.org>
34154
34155         Prefer lib_SOURCES over unconditional AC_LIBOBJ.
34156         * modules/exitfail (configure.ac): Remove AC_LIBOBJ invocation.
34157         (Makefile.am): Augment lib_SOURCES instead.
34158
34159 2010-03-04  Jim Meyering  <meyering@redhat.com>
34160
34161         utime: remove obsolete module
34162         This module, like autoconf's AC_FUNC_UTIME_NULL macro, has been
34163         unnecessary for years, and has been marked as obsolete for 10 months.
34164         * modules/utime: Remove file.
34165         * lib/utime.c: Remove file.
34166         * m4/utime.m4: Remove file.
34167         * m4/utimes-null.m4: Remove file.
34168         * doc/posix-functions/utime.texi (utime): Remove reference to
34169         the module.  Move the sole "fixed by gnulib" item into the
34170         "problems not fixed by Gnulib" list.
34171         * MODULES.html.sh (func_all_modules): Remove reference to "utime".
34172
34173 2010-03-05  Simon Josefsson  <simon@josefsson.org>
34174
34175         * modules/exit (License): Relax license to LGPLv2+.
34176         (Status): Mark as obsolete.
34177         * NEWS: Mention deprecated 'exit' module.
34178         * doc/posix-functions/exit.texi: Recommend 'stdlib' module instead
34179         of now obsolete 'exit'.
34180
34181 2010-03-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34182
34183         fts-lgpl: remove unused module
34184         * modules/fts-lgpl: Remove.
34185         * MODULES.html.sh (func_all_modules): Adjust.
34186         * check-module (find_included_lib_files): Adjust.
34187         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove.
34188
34189 2010-03-02  Ben Walton  <bwalton@artsci.utoronto.ca>  (tiny change)
34190
34191         copy-acl: enhance Solaris ACL error handling
34192         * lib/copy-acl.c (qcopy_acl): Also ignore EOPNOTSUPP.
34193         * lib/set-mode-acl.c (qset_acl): Likewise.
34194
34195 2010-03-02  Bruno Haible  <bruno@clisp.org>
34196
34197         spawn: Don't override the system defined values on FreeBSD 8.
34198         * lib/spawn.in.h (POSIX_SPAWN_RESETIDS, POSIX_SPAWN_SETPGROUP,
34199         POSIX_SPAWN_SETSIGDEF, POSIX_SPAWN_SETSIGMASK,
34200         POSIX_SPAWN_SETSCHEDPARAM, POSIX_SPAWN_SETSCHEDULER): Don't redefine
34201         if HAVE_POSIX_SPAWN is 1.
34202         Reported by Johan van Selst <johans@stack.nl> via Eric Blake.
34203
34204 2010-03-01  Bruno Haible  <bruno@clisp.org>
34205
34206         * doc/gnulib-tool.texi (Initial import): Clarify the requirements
34207         regarding Automake.
34208
34209 2010-02-25  Bruno Haible  <bruno@clisp.org>
34210
34211         Fix breakage of gnulib-tool with ksh, introduced on 2010-02-21.
34212         * gnulib-tool: Define 'echo' as a function only before the ksh alias
34213         setting, not afterwards.
34214         Reported by Ben Walton <bwalton@artsci.utoronto.ca>.
34215
34216 2010-02-24  Eric Blake  <eblake@redhat.com>
34217
34218         bootstrap, git-version-gen: use timestamp
34219         * build-aux/git-version-gen (scriptversion): Force UTC.
34220         * build-aux/bootstrap (scriptversion): New variable.
34221
34222         bootstrap: allow older git
34223         * build-aux/bootstrap (GNULIB_SRCDIR): Add fallback if git is
34224         older than 1.6.4.  Requested by the libvirt project.
34225
34226 2010-02-23  Eric Blake  <eblake@redhat.com>
34227
34228         warn-on-use: work with old autoconf
34229         * m4/warn-on-use.m4 (gl_WARN_ON_USE_PREPARE): Accomodate older
34230         AS_VAR semantics of autoconf 2.60.
34231         Reported by Bruno Haible.
34232
34233         bootstrap: improve some comments
34234         * build-aux/bootstrap: Drop unneeded emacs hint.  Add some
34235         clarification comments.
34236
34237         gettimeofday: provide correct function
34238         * lib/gettimeofday.c (gettimeofday): Provide rpl_gettimeofday only
34239         when replacement is declared, otherwise provide gettimeofday.
34240         Reported by Michael Goffioul.
34241
34242 2010-02-23  Jim Meyering  <meyering@redhat.com>
34243
34244         lib-ignore: relax license to "unlimited", not LGPLv2+
34245         * modules/lib-ignore (License): Relax to "unlimited".
34246
34247 2010-02-23  Jim Meyering  <meyering@redhat.com>
34248
34249         lib-ignore: relax license to LGPLv2+
34250         * modules/lib-ignore (License): Relax to LGPLv2+.
34251
34252 2010-02-22  Eric Blake  <eblake@redhat.com>
34253
34254         lseek: avoid bash 3.2 broken pipe bug
34255         * m4/lseek.m4 (gl_FUNC_LSEEK): Drain pipe, to avoid spurious
34256         warning from bash 3.2.
34257         Reported by Ben Pfaff, with analysis from Bruno Haible.
34258
34259         bootstrap: support non-FSF copyright holder
34260         * build-aux/bootstrap (COPYRIGHT_HOLDER, with_gettext): Allow
34261         bootstrap.conf override of COPYRIGHT_HOLDER.
34262         (MSGID_BUGS_ADDRESS): Allow URL rather than email.
34263
34264         bootstrap: interoperate with gettext 0.14.1
34265         * build-aux/bootstrap (slurp): Fix typo when using older gettext.
34266
34267         bootstrap: allow for alternate submodule location
34268         * build-aux/bootstrap (gnulib_path): New variable; use instead of
34269         hardcoding submodule location.
34270         (gnulib_mk): Allow direct use of Makefile.am.
34271
34272         bootstrap: use GNULIB_SRCDIR to reduce disk usage
34273         * build-aux/bootstrap (GNULIB_SRCDIR): If set, use as a reference,
34274         rather than reconfiguring where the submodule points.
34275
34276         gettimeofday: restore support for platforms that lack function
34277         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Also compile
34278         replacement if function is missing.
34279         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_DEFAULTS): New witness.
34280         * modules/sys_time (Makefile.am): Substitute it.
34281         * lib/sys_time.in.h (gettimeofday): Check it.
34282         Reported by Michael Goffioul.
34283
34284 2010-02-21  Bruno Haible  <bruno@clisp.org>
34285
34286         * lib/stdio.in.h (obstack_printf): Fix typo.
34287
34288 2010-02-21  Jose E. Marchesi  <jemarch@gnu.org>
34289
34290         vc-list-files: use bzr ls's -R option
34291         * build-aux/vc-list-files: Invoke bazaar to generate a recursive
34292         list of versioned files based on 'dir' (usage of -R in 'bzr ls').
34293
34294 2010-02-21  Jim Meyering  <meyering@redhat.com>
34295
34296         init.sh: fix EXEEXT shims to work also for names like test-prog
34297         * tests/init.sh: Re-exec a better shell, when needed.
34298         If the current shell lacks support for posix $(...), an init.sh-using
34299         test will now try to find a shell that supports that.  If EXEEXT is
34300         nonempty, we also require support for hyphen-in-alias-name and shell
34301         substitutions like ${var#glob}.  Failure to find such a shell results
34302         in a skipped test.
34303
34304 2010-02-21  Bruno Haible  <bruno@clisp.org>
34305
34306         Really work around around "broken pipe" error message from bash 3.2.
34307         * gnulib-tool (func_reset_sigpipe): Remove function.
34308         (echo): In bash 3.2, define to a function that uses printf.
34309         Analyzed by Ralf Wildenhues, Chet Ramey, Ben Pfaff.
34310
34311 2010-02-20  Bruno Haible  <bruno@clisp.org>
34312
34313         Restore support for automake 1.9.6 with autoconf 2.61.
34314         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Ensure MKDIR_P is AC_SUBSTed.
34315         Reported by James Youngman <jay@gnu.org>.
34316
34317 2010-02-20  Bruno Haible  <bruno@clisp.org>
34318
34319         Improve *printf warning condition.
34320         * lib/stdio.in.h (fprintf, printf, vfprintf, vprintf): Emit warning
34321         also if GNULIB_POSIXCHECK is defined, the *-posix module is not used,
34322         and the function is overridden due to SIGPIPE emulation.
34323
34324 2010-02-20  Bruno Haible  <bruno@clisp.org>
34325
34326         * lib/stdio.in.h: Tweak comments.
34327
34328 2010-02-19  Bruno Haible  <bruno@clisp.org>
34329
34330         Make it easier to find modules. New gnulib-tool option '--find'.
34331         * gnulib-tool: New option --find.
34332         (func_usage): Document it.
34333         (func_sanitize_modulelist): New function, extracted from
34334         func_all_modules.
34335         (func_all_modules): Invoke it.
34336         * doc/gnulib-tool.texi (Which modules?): New node.
34337
34338 2010-02-18  Markus Duft <mduft@gentoo.org>  (tiny change)
34339
34340         * lib/sys_select.in.h: Provide select replacement even if
34341         sys/select.h exists on a system, for Interix.
34342
34343 2010-02-18  Jim Meyering  <meyering@redhat.com>
34344
34345         init.sh: don't use $(...) just yet
34346         * tests/init.sh (create_exe_shim_functions_): Use `...`, not $(...),
34347         to accommodate e.g., Solaris' /bin/sh.
34348
34349 2010-02-17  Bruno Haible  <bruno@clisp.org>
34350
34351         * doc/posix-headers/netdb.texi: Mention NetBSD 5.0 problem.
34352         Reported by Ludovic Courtès <ludo@gnu.org>.
34353
34354 2010-02-16  Simon Josefsson  <simon@josefsson.org>
34355
34356         * modules/userspec-tests (test_userspec_LDADD): Add variable, for
34357         linking with -lintl.
34358
34359 2010-02-17  Simon Josefsson  <simon@josefsson.org>
34360
34361         * lib/netdb.in.h (AI_V4MAPPED, AI_ALL, AI_ADDRCONFIG): Define to 0
34362         if not provided by the system's netdb.h.  Reported by
34363         ludo@gnu.org (Ludovic Courtès).
34364
34365 2010-02-15  Jim Meyering  <meyering@redhat.com>
34366
34367         init.sh: improve portability and efficiency
34368         * tests/init.sh (find_exe_basenames_): Remove unnecessary use of
34369         "dummy" in a for loop.
34370         Use '!', not '^' to select the complement of a character set used
34371         in a "case" statement.
34372         Use shell variable manipulation, a la ${...%.exe}, rather than sed.
34373         Suggestions from Eric Blake.
34374
34375         init.sh: automatically accommodate programs with the .exe suffix
34376         Automatically arrange for an invocation of "prog" to execute the
34377         program named "prog$EXEEXT" (usually prog.exe).  Thus, all invocations
34378         may use the simpler "prog", yet still work when built on a system
34379         that requires specifying the added suffix.
34380         Do this by constructing a function named "prog" that invokes
34381         "prog.exe" for each .exe file in selected directories.
34382         * tests/init.sh (find_exe_basenames_): New function.
34383         (create_exe_shim_functions_): New function.
34384         (path_prepend_): Use it.
34385
34386         maint.mk: mark syntax-check sc_*.m rules as .PHONY
34387         * top/maint.mk ($(syntax-check-rules)): Add .PHONY, so that
34388         "make -t syntax-check" doesn't create a ton of sc_*.m files.
34389
34390 2010-02-14  Jim Meyering  <meyering@redhat.com>
34391
34392         maint.mk: prohibit inclusion of "hash-pjw.h" without_use
34393         * top/maint.mk (sc_prohibit_hash_without_use): Re-add "@".
34394         (sc_prohibit_hash_pjw_without_use): New rule.
34395
34396         maint.mk: allow the default upload destination dir to be overridden
34397         * top/maint.mk (upload_dest_dir_): Define with a default that
34398         preserves the status quo.
34399         (emit_upload_commands): Use it, rather than hard-coding $(PACKAGE).
34400         Reported by Peter Simons.
34401
34402         maint.mk: prohibit inclusion of "hash.h" without_use
34403         * top/maint.mk (sc_prohibit_hash_without_use): New rule.
34404
34405 2010-02-10  Jim Meyering  <meyering@redhat.com>
34406
34407         maint.mk: prohibit inclusion of "ignore-value.h" without_use
34408         * top/maint.mk (sc_prohibit_ignore_value_without_use): New rule.
34409
34410 2010-02-09  Eric Blake  <ebb9@byu.net>
34411         and Bruno Haible  <bruno@clisp.org>
34412
34413         obstack-printf-posix: ensure declaration
34414         * m4/obstack-printf.m4 (gl_DECL_OBSTACK_PRINTF): New macro,
34415         extracted from gl_FUNC_OBSTACK_PRINTF.
34416         (gl_FUNC_OBSTACK_PRINTF): Invoke it.
34417         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
34418         Likewise.
34419         * lib/stdio.in.h (obstack_printf, obstack_vprintf): Declare also
34420         if GNULIB_OBSTACK_PRINTF_POSIX is 1 and GNULIB_OBSTACK_PRINTF is
34421         0.
34422
34423 2010-02-08  Bruno Haible  <bruno@clisp.org>
34424
34425         gnulib-tool: Fix typo in 2010-02-07 commit.
34426         * gnulib-tool (func_get_dependencies): Fix typo in last commit.
34427         Reported by Eric Blake.
34428
34429 2010-02-07  Bruno Haible  <bruno@clisp.org>
34430
34431         gnulib-tool: Fix up caching patches.
34432         * gnulib-tool: New options --cache-modules, --no-cache-modules. Remove
34433         option --no-cache. Use associative arrays when supported by the shell.
34434         (sed_comments): New variable.
34435         (modcache): Renamed from do_cache.
34436         (sed_extract_field_header): Renamed from sed_extract_cache_prog. Don't
34437         abbreviate unnecessarily.
34438         (have_associative): New variable.
34439         (func_cache_var): Define correctly for bash 1.x. Define in an optimized
34440         way also for ksh and zsh.
34441         (func_init_sed_convert_to_cache_statements): New function, extracted
34442         from func_cache_lookup_module. Add support for associative arrays.
34443         Don't set the c_MODULE_cached variable here. Ignore all lines before
34444         the first field header. Remove only the final newline, not all trailing
34445         newlines. Support empty fields correctly. Limit the use of 'eval' to
34446         assignments.
34447         (func_get_description, func_get_status, func_get_notice,
34448         func_get_applicability, func_get_filelist, func_get_dependencies,
34449         func_get_autoconf_early_snippet, func_get_autoconf_snippet,
34450         func_get_automake_snippet, func_get_include_directive,
34451         func_get_link_directive, func_get_license, func_get_maintainer):
34452         Update documentation. List the unoptimized code first. Add support for
34453         associative arrays. Limit the use of 'eval' to assignments.
34454         (func_get_applicability): Undo stylistic pessimisations.
34455         (func_get_automake_snippet, func_get_include_directive): Reduce code
34456         duplication.
34457         (func_modules_transitive_closure, func_modules_add_dummy,
34458         func_modules_notice, func_modules_to_filelist, func_add_file,
34459         func_update_file, func_emit_lib_Makefile_am, func_emit_po_Makevars,
34460         func_emit_po_POTFILES_in, func_emit_tests_Makefile_am, func_import,
34461         func_create_testdir, func_create_megatestdir): Update documentation.
34462
34463 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34464
34465         * gnulib-tool (func_cache_lookup_module): Store the module name
34466         belonging to the cache variable; error out if two different
34467         module names map to the same cache variable name.
34468
34469 2010-01-18  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34470
34471         gnulib-tool: Make caching optional.
34472         * gnulib-tool: Accept option --no-cache, turning off $do_cache.
34473         Update matching short versions of --no-changelog.
34474         (func_usage): Update.
34475         (sed_extract_cache_prog): Renamed from ...
34476         (sed_extract_prog): ... this; revert to old extraction script.
34477         (func_get_description, func_get_status)
34478         (func_get_notice, func_get_applicability, func_get_filelist)
34479         (func_get_dependencies, func_get_autoconf_early_snippet)
34480         (func_get_autoconf_snippet, func_get_automake_snippet)
34481         (func_get_include_directive, func_get_link_directive)
34482         (func_get_license, func_get_maintainer): If $do_cache is false,
34483         use old, non-caching extraction scripts.
34484         Suggestion by Bruno Haible.
34485
34486 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
34487
34488         gnulib-tool: cache module metainformation.
34489         * gnulib-tool (sed_extract_prog): Match newline before each
34490         header, and rewrite header to a shell variable suffix.
34491         (func_cache_var, func_cache_lookup_module): New functions,
34492         to turn a module name into a cache variable prefix, and to
34493         look up and cache module metainformation.
34494         (func_get_description, func_get_status)
34495         (func_get_notice, func_get_applicability, func_get_filelist)
34496         (func_get_dependencies, func_get_autoconf_early_snippet)
34497         (func_get_autoconf_snippet, func_get_automake_snippet)
34498         (func_get_include_directive, func_get_link_directive)
34499         (func_get_license, func_get_maintainer): Use
34500         func_cache_lookup_module.
34501
34502 2010-02-07  Bruno Haible  <bruno@clisp.org>
34503
34504         fnctl: Fix missing dependency.
34505         * modules/fcntl (Depends-on): Add getdtablesize.
34506         Reported by John W. Eaton <jwe@gnu.org>.
34507
34508 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34509
34510         Argp: fix recognition of short alias options.
34511
34512         * lib/argp-parse.c (convert_options): Fix improper use of
34513         `|' between character values.
34514         * tests/test-argp.c (group1_option): New alias option
34515         --read (-r).
34516         (group1_parser): Special handling for 'r'.
34517         (test15): New test case.
34518         (test_fun): Add test15.
34519         * tests/test-argp-2.sh: Update expected --help and --usage
34520         outputs.
34521
34522 2010-02-05  Sergey Poznyakoff  <gray@gnu.org.ua>
34523
34524         * tests/test-argp.c: Fix indentation.
34525
34526 2010-02-04  Eric Blake  <ebb9@byu.net>
34527
34528         gettimeofday: expose type of second argument
34529         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Do better detection
34530         of glibc extension signature, and define GETTIMEOFDAY_TIMEZONE.
34531         * tests/test-gettimeofday.c: Use it to silence warning.
34532         * doc/posix-functions/gettimeofday.texi (gettimeofday): Document
34533         the issue.
34534
34535 2010-02-03  Jim Meyering  <meyering@redhat.com>
34536
34537         regcomp.c: avoid the sole warning from gcc's -Wtype-limits
34538         * lib/regcomp.c (TYPE_SIGNED): Define.
34539         (parse_dup_op): Use it to avoid the sole warning from -Wtype-limits.
34540
34541         regcomp.c: avoid a new -Wshadow warning
34542         * lib/regcomp.c (create_initial_state): Do not shadow local "err".
34543
34544 2010-02-01  Jim Meyering  <meyering@redhat.com>
34545
34546         removing useless parentheses in cpp #define directives
34547         For motivation, see commit c0221df4, "define STREQ(a,b)
34548         consistently, removing useless parentheses"
34549         * lib/memcmp.c (CMP_LT_OR_GT): Remove useless parentheses.
34550         * lib/mountlist.c (MNT_IGNORE): Likewise.
34551         * lib/trim.h (trim, trim_trailing, trim_leading): Likewise.
34552
34553 2010-02-01  Eric Blake  <ebb9@byu.net>
34554
34555         sys_time: use link-warning
34556         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Split defaults...
34557         (gl_HEADER_SYS_TIME_H_DEFAULTS): ...into new macro.
34558         (gl_SYS_TIME_MODULE_INDICATOR): New macro.
34559         * modules/sys_time (Depends-on): Add warn-on-use.
34560         (Makefile.am): Always build replacement.
34561         (configure.ac): Update substitutions.
34562         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY)
34563         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Include defaults, and no longer
34564         bother with SYS_TIME_H.
34565         * modules/gettimeofday (configure.ac): Declare indicator.
34566         * lib/sys_time.in.h (gettimeofday): Warn if gnulib module is not
34567         in use.
34568
34569         closein-tests: silence compiler warning
34570         * tests/test-closein.c (main): Ignore fread result.
34571         * modules/closein-tests (Depends-on): Add ignore-value.
34572
34573         tests: silence warning about system return
34574         * tests/test-areadlink-with-size.c (main): Ignore system result.
34575         * tests/test-areadlink.c (main): Likewise.
34576         * tests/test-areadlinkat-with-size.c (main): Likewise.
34577         * tests/test-areadlinkat.c (main): Likewise.
34578         * tests/test-canonicalize-lgpl.c (main): Likewise.
34579         * tests/test-canonicalize.c (main): Likewise.
34580         * tests/test-chown.c (main): Likewise.
34581         * tests/test-fchownat.c (main): Likewise.
34582         * tests/test-fdutimensat.c (main): Likewise.
34583         * tests/test-fstatat.c (main): Likewise.
34584         * tests/test-futimens.c (main): Likewise.
34585         * tests/test-lchown.c (main): Likewise.
34586         * tests/test-link.c (main): Likewise.
34587         * tests/test-linkat.c (main): Likewise.
34588         * tests/test-lstat.c (main): Likewise.
34589         * tests/test-mkdir.c (main): Likewise.
34590         * tests/test-mkdirat.c (main): Likewise.
34591         * tests/test-mkfifo.c (main): Likewise.
34592         * tests/test-mkfifoat.c (main): Likewise.
34593         * tests/test-mknod.c (main): Likewise.
34594         * tests/test-readlink.c (main): Likewise.
34595         * tests/test-remove.c (main): Likewise.
34596         * tests/test-rename.c (main): Likewise.
34597         * tests/test-renameat.c (main): Likewise.
34598         * tests/test-rmdir.c (main): Likewise.
34599         * tests/test-symlink.c (main): Likewise.
34600         * tests/test-symlinkat.c (main): Likewise.
34601         * tests/test-unlink.c (main): Likewise.
34602         * tests/test-unlinkat.c (main): Likewise.
34603         * tests/test-utimens.c (main): Likewise.
34604         * tests/test-utimensat.c (main): Likewise.
34605         * modules/areadlink-tests (Depends-on): Add ignore-value.
34606         * modules/areadlink-with-size-tests (Depends-on): Likewise.
34607         * modules/areadlinkat-tests (Depends-on): Likewise.
34608         * modules/areadlinkat-with-size-tests (Depends-on): Likewise.
34609         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
34610         * modules/canonicalize-tests (Depends-on): Likewise.
34611         * modules/chown-tests (Depends-on): Likewise.
34612         * modules/fdutimensat-tests (Depends-on): Likewise.
34613         * modules/futimens-tests (Depends-on): Likewise.
34614         * modules/lchown-tests (Depends-on): Likewise.
34615         * modules/link-tests (Depends-on): Likewise.
34616         * modules/linkat-tests (Depends-on): Likewise.
34617         * modules/lstat-tests (Depends-on): Likewise.
34618         * modules/mkdir-tests (Depends-on): Likewise.
34619         * modules/mkfifo-tests (Depends-on): Likewise.
34620         * modules/mkfifoat-tests (Depends-on): Likewise.
34621         * modules/mknod-tests (Depends-on): Likewise.
34622         * modules/openat-tests (Depends-on): Likewise.
34623         * modules/readlink-tests (Depends-on): Likewise.
34624         * modules/remove-tests (Depends-on): Likewise.
34625         * modules/rename-tests (Depends-on): Likewise.
34626         * modules/renameat-tests (Depends-on): Likewise.
34627         * modules/rmdir-tests (Depends-on): Likewise.
34628         * modules/symlink-tests (Depends-on): Likewise.
34629         * modules/symlinkat-tests (Depends-on): Likewise.
34630         * modules/unlink-tests (Depends-on): Likewise.
34631         * modules/utimens-tests (Depends-on): Likewise.
34632         * modules/utimensat-tests (Depends-on): Likewise.
34633
34634 2010-01-31  Bruno Haible  <bruno@clisp.org>
34635
34636         Perform the same test for many <math.h> functions.
34637         * m4/mathfunc.m4 (gl_COMMON_DOUBLE_MATHFUNC,
34638         gl_COMMON_DOUBLE_MATHFUNC_TEST): New macros.
34639         * m4/sqrt.m4 (gl_FUNC_SQRT): Invoke gl_COMMON_DOUBLE_MATHFUNC instead
34640         of gl_MATHFUNC.
34641         * modules/acos (configure.ac): Likewise.
34642         * modules/asin (configure.ac): Likewise.
34643         * modules/atan (configure.ac): Likewise.
34644         * modules/atan2 (configure.ac): Likewise.
34645         * modules/cbrt (configure.ac): Likewise.
34646         * modules/copysign (configure.ac): Likewise.
34647         * modules/cos (configure.ac): Likewise.
34648         * modules/cosh (configure.ac): Likewise.
34649         * modules/erf (configure.ac): Likewise.
34650         * modules/erfc (configure.ac): Likewise.
34651         * modules/exp (configure.ac): Likewise.
34652         * modules/fmod (configure.ac): Likewise.
34653         * modules/hypot (configure.ac): Likewise.
34654         * modules/j0 (configure.ac): Likewise.
34655         * modules/j1 (configure.ac): Likewise.
34656         * modules/jn (configure.ac): Likewise.
34657         * modules/lgamma (configure.ac): Likewise.
34658         * modules/log (configure.ac): Likewise.
34659         * modules/log10 (configure.ac): Likewise.
34660         * modules/log1p (configure.ac): Likewise.
34661         * modules/pow (configure.ac): Likewise.
34662         * modules/remainder (configure.ac): Likewise.
34663         * modules/sin (configure.ac): Likewise.
34664         * modules/sinh (configure.ac): Likewise.
34665         * modules/tan (configure.ac): Likewise.
34666         * modules/tanh (configure.ac): Likewise.
34667         * modules/y0 (configure.ac): Likewise.
34668         * modules/y1 (configure.ac): Likewise.
34669         * modules/yn (configure.ac): Likewise.
34670         Suggested by Paolo Bonzini.
34671
34672 2010-01-31  Bruno Haible  <bruno@clisp.org>
34673
34674         * m4/getline.m4 (gl_FUNC_GETLINE): Add comment about REPLACE_GETLINE.
34675
34676 2010-01-31  Bruno Haible  <bruno@clisp.org>
34677
34678         Work around getdelim() bug on FreeBSD 8.0.
34679         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Test whether getdelim supports an
34680         initially NULL line. Set REPLACE_GETDELIM if getdelim exists but does
34681         not work.
34682         * lib/stdio.in.h (getdelim): Define as an alias if REPLACE_GETDELIM
34683         is 1.
34684         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize REPLACE_GETDELIM.
34685         * modules/stdio (Makefile.am): Also substitute REPLACE_GETDELIM.
34686         * tests/test-getdelim.c (main): Also test result for a NULL buffer and
34687         a non-zero size.
34688         * doc/posix-functions/getdelim.texi: Mention the FreeBSD bug.
34689
34690 2010-01-31  Bruno Haible  <bruno@clisp.org>
34691
34692         Work around getline() bug on FreeBSD 8.0.
34693         * m4/getline.m4 (gl_FUNC_GETLINE): Also test result for a NULL buffer
34694         and a non-zero size.
34695         * tests/test-getline.c (main): Likewise.
34696         * doc/posix-functions/getline.texi: Mention the FreeBSD bug.
34697         Reported by Dennis <noordsij@cs.helsinki.fi> via Eric Blake.
34698
34699 2010-01-28  Eric Blake  <ebb9@byu.net>
34700
34701         regex: fix build failure
34702         * lib/regex_internal.h (__GNUC_PREREQ): Define for non-glibc
34703         platforms.
34704
34705 2010-01-28  Jim Meyering  <meyering@redhat.com>
34706
34707         regex: do not ignore memory allocation failure
34708         * lib/regex_internal.c (create_cd_newstate): Detect
34709         re_node_set_init_copy failure.   Extracted from glibc commit
34710         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34711
34712         regex: sync more white-space changes from libc
34713         * lib/regex_internal.c: White-space only changes.
34714         * lib/regexec.c: Likewise.
34715
34716         regex: add many uses of __attribute_warn_unused_result__
34717         * lib/regex_internal.c: Use __attribute_warn_unused_result__.
34718         * lib/regexec.c: Likewise.
34719         Extracted from a messy glibc commit.
34720
34721         regcomp.c: spelling and merge-artifact from glibc
34722         * lib/regcomp.c: Merge remainder of glibc's
34723         2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34724
34725         regcomp.c: sync white-space changes from glibc
34726         * lib/regcomp.c: Merge to accommodate white space
34727         changes from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c.
34728
34729         regcomp.c: do not ignore internal return values
34730         * lib/regcomp.c: Do not ignore internal return values.
34731         This is from glibc's 2da42bc06566bc89785e580fa1ac89b4c9f2a63c,
34732         but without its white-space changes and spelling fixes.
34733
34734         regex_internal.h: define __attribute_warn_unused_result__
34735         * lib/regex_internal.h (__attribute_warn_unused_result__): Define.
34736
34737         maint: add a syntax-check rule to check for vulnerable Makefile.in
34738         * top/maint.mk (sc_vulnerable_makefile_CVE-2009-4029): New rule.
34739
34740 2010-01-27  Jim Meyering  <meyering@redhat.com>
34741
34742         ncftpput-ftp: clean up spaces
34743         * build-aux/ncftpput-ftp: Make Copyright line consistent.
34744         Remove trailing blanks.
34745
34746 2010-01-27  Simon Josefsson  <simon@josefsson.org>
34747
34748         * build-aux/git-version-gen: Fix copyright statement.
34749         * build-aux/gnupload: Likewise.
34750         * tests/test-arcfour.c: Likewise.
34751         * tests/test-arctwo.c: Likewise.
34752         * tests/test-count-one-bits.c: Likewise.
34753         * tests/test-crc.c: Likewise.
34754         * tests/test-des.c: Likewise.
34755         * tests/test-gc-arcfour.c: Likewise.
34756         * tests/test-gc-arctwo.c: Likewise.
34757         * tests/test-gc-des.c: Likewise.
34758         * tests/test-gc-hmac-md5.c: Likewise.
34759         * tests/test-gc-hmac-sha1.c: Likewise.
34760         * tests/test-gc-md2.c: Likewise.
34761         * tests/test-gc-md4.c: Likewise.
34762         * tests/test-gc-md5.c: Likewise.
34763         * tests/test-gc-pbkdf2-sha1.c: Likewise.
34764         * tests/test-gc-rijndael.c: Likewise.
34765         * tests/test-gc-sha1.c: Likewise.
34766         * tests/test-gc.c: Likewise.
34767         * tests/test-gethostname.c: Likewise.
34768         * tests/test-gettimeofday.c: Likewise.
34769         * tests/test-hash.c: Likewise.
34770         * tests/test-hmac-md5.c: Likewise.
34771         * tests/test-hmac-sha1.c: Likewise.
34772         * tests/test-md2.c: Likewise.
34773         * tests/test-md4.c: Likewise.
34774         * tests/test-md5.c: Likewise.
34775         * tests/test-memchr.c: Likewise.
34776         * tests/test-memchr2.c: Likewise.
34777         * tests/test-memcmp.c: Likewise.
34778         * tests/test-memmem.c: Likewise.
34779         * tests/test-memrchr.c: Likewise.
34780         * tests/test-rawmemchr.c: Likewise.
34781         * tests/test-read-file.c: Likewise.
34782         * tests/test-rijndael.c: Likewise.
34783         * tests/test-sockets.c: Likewise.
34784         * tests/test-strchrnul.c: Likewise.
34785         * tests/test-strstr.c: Likewise.
34786         * tests/test-strtod.c: Likewise.
34787         * build-aux/ncftpput-ftp: Likewise.
34788
34789 2010-01-26  Eric Blake  <ebb9@byu.net>
34790
34791         ignore-value: update recommended header name
34792         * modules/ignore-value (Include): Only use <> for headers that
34793         exist in glibc.
34794
34795 2010-01-26  Jim Meyering  <meyering@redhat.com>
34796
34797         test-userspec.c: avoid compiler warnings
34798         * tests/test-userspec.c (main): Avoid shadowing ("uid"),
34799         and "initialization discards qualifiers..." warnings.
34800         Put the first "uid" in its own scope, and make char* members "const".
34801
34802 2010-01-25  Bruno Haible  <bruno@clisp.org>
34803
34804         gnulib-tool: Make warning diagnostics consistent.
34805         * gnulib-tool (func_warning): New function.
34806         Use it everywhere where gnulib-tool produces output to stderr and it is
34807         not a fatal error.
34808
34809 2010-01-25  Bruno Haible  <bruno@clisp.org>
34810
34811         Fix test dependencies.
34812         * modules/xstrtol-tests (Depends-on): Add inttypes.
34813         * modules/xstrtoll-tests (Depends-on): Likewise. Remove xstrtoll.
34814
34815 2010-01-25 Pádraig Brady <P@draigBrady.com>
34816
34817         syntax-check: detect incorrect boolean macro values in config.h
34818         * modules/maintainer-makefile (configure.ac): Parameterize the location
34819         of config.h which will be available to makefiles as $(CONFIG_INCLUDE).
34820         The logic is from Eric Blake and the location indicated by Jim Meyering.
34821         Note the more natural CONFIG_HEADER name is prohibited by automake
34822         for backwards compatibility reasons.
34823         * top/maint.mk (sc_Wundef_boolean): New rule.
34824
34825 2010-01-25  Jim Meyering  <meyering@redhat.com>
34826
34827         bootstrap: detect MacOS 10.6's shasum, too
34828         * build-aux/bootstrap: Also recognize MacOS 10.6's shasum.
34829         Suggested by Thomas Treichl <Thomas.Treichl@gmx.net>.
34830
34831 2010-01-23  Jim Meyering  <meyering@redhat.com>
34832
34833         xstrtoll: new module
34834         * modules/xstrtoll: New file.
34835         * MODULES.html.sh (Numeric conversion functions): Add xstrtoll.
34836         * lib/xstrtol.h [HAVE_LONG_LONG_INT]: Declare xstrtoll and xstrtoull.
34837         * lib/xstrtoll.c, lib/xstrtoull.c: New files.
34838         ./configure fails if you use this module and lack "long long".
34839         * modules/xstrtoll-tests: New module.
34840         * tests/test-xstrtoll.c, tests/test-xstrtoull.c: New files.
34841         * tests/test-xstrtoll.sh: Like test-xstrtol.c, but use the
34842         new init.sh-based test framework.
34843
34844 2010-01-24  Bruno Haible  <bruno@clisp.org>
34845
34846         Tests for module 'yn'.
34847         * modules/yn-tests: New file.
34848         * tests/test-yn.c: New file.
34849
34850         Tests for module 'y1'.
34851         * modules/y1-tests: New file.
34852         * tests/test-y1.c: New file.
34853
34854         Tests for module 'y0'.
34855         * modules/y0-tests: New file.
34856         * tests/test-y0.c: New file.
34857
34858         Tests for module 'tanh'.
34859         * modules/tanh-tests: New file.
34860         * tests/test-tanh.c: New file.
34861
34862         Tests for module 'tan'.
34863         * modules/tan-tests: New file.
34864         * tests/test-tan.c: New file.
34865
34866         Tests for module 'sqrt'.
34867         * modules/sqrt-tests: New file.
34868         * tests/test-sqrt.c: New file.
34869
34870         Tests for module 'sinh'.
34871         * modules/sinh-tests: New file.
34872         * tests/test-sinh.c: New file.
34873
34874         Tests for module 'sin'.
34875         * modules/sin-tests: New file.
34876         * tests/test-sin.c: New file.
34877
34878         Tests for module 'rint'.
34879         * modules/rint-tests: New file.
34880         * tests/test-rint.c: New file.
34881
34882         Tests for module 'remainder'.
34883         * modules/remainder-tests: New file.
34884         * tests/test-remainder.c: New file.
34885
34886         Tests for module 'pow'.
34887         * modules/pow-tests: New file.
34888         * tests/test-pow.c: New file.
34889
34890         Tests for module 'nextafter'.
34891         * modules/nextafter-tests: New file.
34892         * tests/test-nextafter.c: New file.
34893
34894         Tests for module 'modf'.
34895         * modules/modf-tests: New file.
34896         * tests/test-modf.c: New file.
34897
34898         Tests for module 'logb'.
34899         * modules/logb-tests: New file.
34900         * tests/test-logb.c: New file.
34901
34902         Tests for module 'log1p'.
34903         * modules/log1p-tests: New file.
34904         * tests/test-log1p.c: New file.
34905
34906         Tests for module 'log10'.
34907         * modules/log10-tests: New file.
34908         * tests/test-log10.c: New file.
34909
34910         Tests for module 'log'.
34911         * modules/log-tests: New file.
34912         * tests/test-log.c: New file.
34913
34914         Tests for module 'lgamma'.
34915         * modules/lgamma-tests: New file.
34916         * tests/test-lgamma.c: New file.
34917
34918         Tests for module 'ldexp'.
34919         * modules/ldexp-tests: New file.
34920         * tests/test-ldexp.c: New file.
34921
34922         Tests for module 'jn'.
34923         * modules/jn-tests: New file.
34924         * tests/test-jn.c: New file.
34925
34926         Tests for module 'j1'.
34927         * modules/j1-tests: New file.
34928         * tests/test-j1.c: New file.
34929
34930         Tests for module 'j0'.
34931         * modules/j0-tests: New file.
34932         * tests/test-j0.c: New file.
34933
34934         Tests for module 'hypot'.
34935         * modules/hypot-tests: New file.
34936         * tests/test-hypot.c: New file.
34937
34938         Tests for module 'fmod'.
34939         * modules/fmod-tests: New file.
34940         * tests/test-fmod.c: New file.
34941
34942         Tests for module 'fabs'.
34943         * modules/fabs-tests: New file.
34944         * tests/test-fabs.c: New file.
34945
34946         Tests for module 'exp'.
34947         * modules/exp-tests: New file.
34948         * tests/test-exp.c: New file.
34949
34950         Tests for module 'erfc'.
34951         * modules/erfc-tests: New file.
34952         * tests/test-erfc.c: New file.
34953
34954         Tests for module 'erf'.
34955         * modules/erf-tests: New file.
34956         * tests/test-erf.c: New file.
34957
34958         Tests for module 'cosh'.
34959         * modules/cosh-tests: New file.
34960         * tests/test-cosh.c: New file.
34961
34962         Tests for module 'cos'.
34963         * modules/cos-tests: New file.
34964         * tests/test-cos.c: New file.
34965
34966         Tests for module 'copysign'.
34967         * modules/copysign-tests: New file.
34968         * tests/test-copysign.c: New file.
34969
34970         Tests for module 'cbrt'.
34971         * modules/cbrt-tests: New file.
34972         * tests/test-cbrt.c: New file.
34973
34974         Tests for module 'atan2'.
34975         * modules/atan2-tests: New file.
34976         * tests/test-atan2.c: New file.
34977
34978         Tests for module 'atan'.
34979         * modules/atan-tests: New file.
34980         * tests/test-atan.c: New file.
34981
34982         Tests for module 'asin'.
34983         * modules/asin-tests: New file.
34984         * tests/test-asin.c: New file.
34985
34986         Tests for module 'acos'.
34987         * modules/acos-tests: New file.
34988         * tests/test-acos.c: New file.
34989
34990 2010-01-24  Bruno Haible  <bruno@clisp.org>
34991
34992         Fix tests for common <math.h> functions.
34993         * m4/mathfunc.m4 (gl_MATHFUNC): Take two additional parameters. Use a
34994         code snippet that references the function pointer, rather than merely
34995         calling the function. Substitute the FUNC_LIBM variable.
34996         * m4/sqrt.m4 (gl_FUNC_SQRT): Update gl_MATHFUNC invocation.
34997         * modules/acos (configure.ac): Likewise.
34998         * modules/asin (configure.ac): Likewise.
34999         * modules/atan (configure.ac): Likewise.
35000         * modules/atan2 (configure.ac): Likewise.
35001         * modules/cbrt (configure.ac): Likewise.
35002         * modules/copysign (configure.ac): Likewise.
35003         * modules/cos (configure.ac): Likewise.
35004         * modules/cosh (configure.ac): Likewise.
35005         * modules/erf (configure.ac): Likewise.
35006         * modules/erfc (configure.ac): Likewise.
35007         * modules/exp (configure.ac): Likewise.
35008         * modules/fabs (configure.ac): Likewise.
35009         * modules/fmod (configure.ac): Likewise.
35010         * modules/hypot (configure.ac): Likewise.
35011         * modules/j0 (configure.ac): Likewise.
35012         * modules/j1 (configure.ac): Likewise.
35013         * modules/jn (configure.ac): Likewise.
35014         * modules/ldexp (configure.ac): Likewise.
35015         * modules/lgamma (configure.ac): Likewise.
35016         * modules/log (configure.ac): Likewise.
35017         * modules/log10 (configure.ac): Likewise.
35018         * modules/log1p (configure.ac): Likewise.
35019         * modules/logb (configure.ac): Likewise.
35020         * modules/modf (configure.ac): Likewise.
35021         * modules/nextafter (configure.ac): Likewise.
35022         * modules/pow (configure.ac): Likewise.
35023         * modules/remainder (configure.ac): Likewise.
35024         * modules/rint (configure.ac): Likewise.
35025         * modules/sin (configure.ac): Likewise.
35026         * modules/sinh (configure.ac): Likewise.
35027         * modules/tan (configure.ac): Likewise.
35028         * modules/tanh (configure.ac): Likewise.
35029         * modules/y0 (configure.ac): Likewise.
35030         * modules/y1 (configure.ac): Likewise.
35031         * modules/yn (configure.ac): Likewise.
35032
35033 2010-01-24  Bruno Haible  <bruno@clisp.org>
35034
35035         Tests: Defeat inlining of math functions by GCC >= 4.3.0.
35036         * tests/test-acosl.c (x): New variable.
35037         (main): Store argument in x and fetch it from x.
35038         * tests/test-asinl.c (x): New variable.
35039         (main): Store argument in x and fetch it from x.
35040         * tests/test-atanl.c (x): New variable.
35041         (main): Store argument in x and fetch it from x.
35042         * tests/test-cosl.c (x): New variable.
35043         (main): Store argument in x and fetch it from x.
35044         * tests/test-expl.c (x): New variable.
35045         (main): Store argument in x and fetch it from x.
35046         * tests/test-logl.c (x): New variable.
35047         (main): Store argument in x and fetch it from x.
35048         * tests/test-sinl.c (x): New variable.
35049         (main): Store argument in x and fetch it from x.
35050         * tests/test-sqrtl.c (x): New variable.
35051         (main): Store argument in x and fetch it from x.
35052         * tests/test-tanl.c (x): New variable.
35053         (main): Store argument in x and fetch it from x.
35054
35055 2010-01-24  Bruno Haible  <bruno@clisp.org>
35056
35057         Provide EXEEXT and srcdir in TESTS_ENVIRONMENT by default.
35058         * gnulib-tool (func_emit_tests_Makefile_am): Add EXEEXT and srcdir
35059         assignments to the initial TESTS_ENVIRONMENT.
35060         * doc/gnulib.texi (Unit test modules): Document it.
35061         * modules/acl-tests (Makefile.am): Drop EXEEXT assignment from
35062         TESTS_ENVIRONMENT.
35063         * modules/btowc-tests (Makefile.am): Likewise.
35064         * modules/c-stack-tests (Makefile.am): Likewise.
35065         * modules/c-strcase-tests (Makefile.am): Likewise.
35066         * modules/copy-file-tests (Makefile.am): Likewise.
35067         * modules/mbmemcasecmp-tests (Makefile.am): Likewise.
35068         * modules/mbmemcasecoll-tests (Makefile.am): Likewise.
35069         * modules/mbrtowc-tests (Makefile.am): Likewise.
35070         * modules/mbscasecmp-tests (Makefile.am): Likewise.
35071         * modules/mbscasestr-tests (Makefile.am): Likewise.
35072         * modules/mbschr-tests (Makefile.am): Likewise.
35073         * modules/mbscspn-tests (Makefile.am): Likewise.
35074         * modules/mbsinit-tests (Makefile.am): Likewise.
35075         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
35076         * modules/mbsnrtowcs-tests (Makefile.am): Likewise.
35077         * modules/mbspbrk-tests (Makefile.am): Likewise.
35078         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
35079         * modules/mbsrchr-tests (Makefile.am): Likewise.
35080         * modules/mbsrtowcs-tests (Makefile.am): Likewise.
35081         * modules/mbsspn-tests (Makefile.am): Likewise.
35082         * modules/mbsstr-tests (Makefile.am): Likewise.
35083         * modules/nl_langinfo-tests (Makefile.am): Likewise.
35084         * modules/unicase/locale-language-tests (Makefile.am): Likewise.
35085         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
35086         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
35087         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
35088         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
35089         * modules/uniwbrk/ulc-wordbreaks-tests (Makefile.am): Likewise.
35090         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
35091         * modules/wcrtomb-tests (Makefile.am): Likewise.
35092         * modules/wcsnrtombs-tests (Makefile.am): Likewise.
35093         * modules/wcsrtombs-tests (Makefile.am): Likewise.
35094         * modules/quotearg-tests (Makefile.am): Drop EXEEXT and srcdir
35095         assignments from TESTS_ENVIRONMENT.
35096         * modules/argp-tests (Makefile.am): Drop TESTS_ENVIRONMENT
35097         augmentation.
35098         * modules/argp-version-etc-tests (Makefile.am): Likewise.
35099         * modules/atexit-tests (Makefile.am): Likewise.
35100         * modules/binary-io-tests (Makefile.am): Likewise.
35101         * modules/closein-tests (Makefile.am): Likewise.
35102         * modules/dprintf-posix-tests (Makefile.am): Likewise.
35103         * modules/exclude-tests (Makefile.am): Likewise.
35104         * modules/fflush-tests (Makefile.am): Likewise.
35105         * modules/fpending-tests (Makefile.am): Likewise.
35106         * modules/fprintf-posix-tests (Makefile.am): Likewise.
35107         * modules/freadahead-tests (Makefile.am): Likewise.
35108         * modules/freadptr-tests (Makefile.am): Likewise.
35109         * modules/freadseek-tests (Makefile.am): Likewise.
35110         * modules/fseek-tests (Makefile.am): Likewise.
35111         * modules/fseeko-tests (Makefile.am): Likewise.
35112         * modules/ftell-tests (Makefile.am): Likewise.
35113         * modules/ftello-tests (Makefile.am): Likewise.
35114         * modules/idpriv-drop-tests (Makefile.am): Likewise.
35115         * modules/idpriv-droptemp-tests (Makefile.am): Likewise.
35116         * modules/lseek-tests (Makefile.am): Likewise.
35117         * modules/parse-duration-tests (Makefile.am): Likewise.
35118         * modules/perror-tests (Makefile.am): Likewise.
35119         * modules/pipe-filter-gi-tests (Makefile.am): Likewise.
35120         * modules/pipe-filter-ii-tests (Makefile.am): Likewise.
35121         * modules/pipe-tests (Makefile.am): Likewise.
35122         * modules/pread-tests (Makefile.am): Likewise.
35123         * modules/printf-posix-tests (Makefile.am): Likewise.
35124         * modules/select-tests (Makefile.am): Likewise.
35125         * modules/sigpipe-tests (Makefile.am): Likewise.
35126         * modules/tsearch-tests (Makefile.am): Likewise.
35127         * modules/unicase/ulc-casecmp-tests (Makefile.am): Likewise.
35128         * modules/unicase/ulc-casecoll-tests (Makefile.am): Likewise.
35129         * modules/uniname/uniname-tests (Makefile.am): Likewise.
35130         * modules/uniwidth/width-tests (Makefile.am): Likewise.
35131         * modules/vdprintf-posix-tests (Makefile.am): Likewise.
35132         * modules/version-etc-tests (Makefile.am): Likewise.
35133         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
35134         * modules/vprintf-posix-tests (Makefile.am): Likewise.
35135         * modules/xalloc-die-tests (Makefile.am): Likewise.
35136         * modules/xprintf-posix-tests (Makefile.am): Likewise.
35137         * modules/xstrtoimax-tests (Makefile.am): Likewise.
35138         * modules/xstrtol-tests (Makefile.am): Likewise.
35139         * modules/xstrtoumax-tests (Makefile.am): Likewise.
35140         * modules/yesno-tests (Makefile.am): Likewise.
35141         Suggested by Jim Meyering.
35142
35143 2010-01-24  Bruno Haible  <bruno@clisp.org>
35144
35145         More documentation.
35146         * doc/gnulib.texi (Writing modules): New chapter.
35147         (Miscellaneous Notes): Move sections "Comments" and "Header files" to
35148         the new chapter.
35149
35150 2010-01-24  Jim Meyering  <meyering@redhat.com>
35151
35152         maint.mk: do not prepend "./" after filtering
35153         * top/maint.mk (_prepend_srcdir_prefix): New variable
35154         (VC_LIST_EXCEPT): Use it to avoid prepending (post-filter)
35155         "./" when $(srcdir) is ".".
35156
35157         define STREQ(a,b) consistently, removing useless parentheses
35158         #define STREQ(a, b) (strcmp ((a), (b)) == 0) is over-parenthesized,
35159         since the only risk is that "a" or "b" contains an unparenthesized
35160         comma, but if either did that, STREQ would have 3 or more arguments.
35161         Hence, #define STREQ(a, b) (strcmp (a, b) == 0) is better.
35162         * lib/fts.c (STREQ): Remove unnecessary parentheses.
35163         * lib/hash-triple.c (STREQ): Likewise.
35164         * tests/test-argv-iter.c (STREQ): Use a and b, not s1 and s2.
35165         * lib/getugroups.c (STREQ): Likewise.
35166
35167 2010-01-23  Jim Meyering  <meyering@redhat.com>
35168
35169         maint.mk: fix syntax-check in a non-srcdir build directory
35170         * top/maint.mk (_dot_escaped_srcdir): Remove erroneous backslash,
35171         introduced in my 2010-01-21 commit, a6da6c45.  Reported by Eric Blake.
35172
35173 2010-01-22  Jim Meyering  <meyering@redhat.com>
35174
35175         userspec: add unit tests
35176         * tests/test-userspec.c: New file.
35177         * modules/userspec-tests: Likewise.
35178
35179 2010-01-21  Jim Meyering  <meyering@redhat.com>
35180
35181         maint.mk: handle source file names containing "." robustly
35182         * top/maint.mk (_dot_escaped_srcdir): Define.
35183         (VC_LIST): Use it in LHS of sed substitution.
35184
35185 2010-01-21  Jiri Denemark  <jdenemar@redhat.com>
35186
35187         maint.mk: fix VC_LIST_EXCEPT for srcdir != builddir
35188         * top/maint.mk (VC_LIST_EXCEPT): Preprocess the output of
35189         $(VC_LIST) to remove a prefix of '$(srcdir)/', so that it works
35190         from a non-srcdir build.
35191
35192 2010-01-20  Eric Blake  <ebb9@byu.net>
35193
35194         warn-on-use: use instead of link-warning
35195         * modules/stdio (Depends-on, Makefile.am): Drop link-warning.
35196         * modules/unistd (Depends-on, Makefile.am): Likewise.
35197         * modules/arpa_inet (Depends-on): Replace link-warning with
35198         warn-on-use.
35199         (Makefile.am): Update rules accordingly.
35200         * modules/ctype (Depends-on, Makefile.am): Likewise.
35201         * modules/dirent (Depends-on, Makefile.am): Likewise.
35202         * modules/fcntl-h (Depends-on, Makefile.am): Likewise.
35203         * modules/inttypes (Depends-on, Makefile.am): Likewise.
35204         * modules/langinfo (Depends-on, Makefile.am): Likewise.
35205         * modules/locale (Depends-on, Makefile.am): Likewise.
35206         * modules/math (Depends-on, Makefile.am): Likewise.
35207         * modules/search (Depends-on, Makefile.am): Likewise.
35208         * modules/signal (Depends-on, Makefile.am): Likewise.
35209         * modules/spawn (Depends-on, Makefile.am): Likewise.
35210         * modules/stdlib (Depends-on, Makefile.am): Likewise.
35211         * modules/string (Depends-on, Makefile.am): Likewise.
35212         * modules/strings (Depends-on, Makefile.am): Likewise.
35213         * modules/sys_file (Depends-on, Makefile.am): Likewise.
35214         * modules/sys_ioctl (Depends-on, Makefile.am): Likewise.
35215         * modules/sys_select (Depends-on, Makefile.am): Likewise.
35216         * modules/sys_socket (Depends-on, Makefile.am): Likewise.
35217         * modules/sys_stat (Depends-on, Makefile.am): Likewise.
35218         * modules/sys_times (Depends-on, Makefile.am): Likewise.
35219         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
35220         * modules/wchar (Depends-on, Makefile.am): Likewise.
35221         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Check which functions
35222         should be poisoned.
35223         * m4/ctype.m4 (gl_CTYPE_H): Likewise.
35224         * m4/dirent_h.m4 (gl_DIRENT_H): Likewise.
35225         * m4/fcntl_h.m4 (gl_FCNTL_H): Likewise.
35226         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
35227         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
35228         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
35229         * m4/math_h.m4 (gl_MATH_H): Likewise.
35230         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
35231         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
35232         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
35233         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
35234         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
35235         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
35236         * m4/strings_h.m4 (gl_HEADER_STRINGS_H_BODY): Likewise.
35237         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H_DEFAULTS): Likewise.
35238         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Likewise.
35239         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
35240         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
35241         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
35242         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
35243         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H): Likewise.
35244         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
35245         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
35246         * lib/arpa_inet.in.h: Use _GL_WARN_ON_USE instead of
35247         GL_LINK_WARNING.
35248         * lib/ctype.in.h: Likewise.
35249         * lib/dirent.in.h: Likewise.
35250         * lib/fcntl.in.h: Likewise.
35251         * lib/inttypes.in.h: Likewise.
35252         * lib/langinfo.in.h: Likewise.
35253         * lib/locale.in.h: Likewise.
35254         * lib/math.in.h: Likewise.
35255         * lib/search.in.h: Likewise.
35256         * lib/signal.in.h: Likewise.
35257         * lib/spawn.in.h: Likewise.
35258         * lib/stdio.in.h: Likewise.
35259         * lib/stdlib.in.h: Likewise.
35260         * lib/string.in.h: Likewise.
35261         * lib/strings.in.h: Likewise.
35262         * lib/sys_file.in.h: Likewise.
35263         * lib/sys_ioctl.in.h: Likewise.
35264         * lib/sys_select.in.h: Likewise.
35265         * lib/sys_socket.in.h: Likewise.
35266         * lib/sys_stat.in.h: Likewise.
35267         * lib/sys_times.in.h: Likewise.
35268         * lib/sys_utsname.in.h: Likewise.
35269         * lib/unistd.in.h: Likewise.
35270         * lib/wchar.in.h: Likewise.
35271
35272 2010-01-20  Bruno Haible  <bruno@clisp.org>
35273
35274         Avoid duplicate -lm.
35275         * m4/isnan.m4 (gl_ISNAN): Avoid duplicate -lm in $ISNAN_LIBM.
35276         * m4/round.m4 (gl_FUNC_ROUND): Avoid duplicate -lm in $ROUND_LIBM.
35277         * m4/roundf.m4 (gl_FUNC_ROUNDF): Avoid duplicate -lm in $ROUNDF_LIBM.
35278         * m4/roundl.m4 (gl_FUNC_ROUNDL): Avoid duplicate -lm in $ROUNDL_LIBM.
35279         * m4/acosl.m4 (gl_FUNC_ACOSL): Avoid duplicate -lm in $ACOSL_LIBM.
35280         * m4/cosl.m4 (gl_FUNC_COSL): Avoid duplicate -lm in $COSL_LIBM.
35281         * m4/logl.m4 (gl_FUNC_LOGL): Avoid duplicate -lm in $LOGL_LIBM.
35282         * m4/sinl.m4 (gl_FUNC_SINL): Avoid duplicate -lm in $SINL_LIBM.
35283         * m4/sqrtl.m4 (gl_FUNC_SQRTL): Avoid duplicate -lm in $SQRTL_LIBM.
35284         * m4/tanl.m4 (gl_FUNC_TANL): Avoid duplicate -lm in $TANL_LIBM.
35285         * m4/asinl.m4 (gl_FUNC_ASINL): Same change, for consistency.
35286         * m4/atanl.m4 (gl_FUNC_ATANL): Likewise.
35287         Reported by Paolo Bonzini.
35288
35289 2010-01-19  Bruno Haible  <bruno@clisp.org>
35290
35291         langinfo, nl_langinfo: Relicense under LGPLv2+.
35292         * modules/langinfo (License): Change to LGPLv2+.
35293         * modules/nl_langinfo (License): Likewise.
35294         Patch by David Lutterkort <lutter@redhat.com>.
35295
35296 2010-01-19  Bruno Haible  <bruno@clisp.org>
35297
35298         Avoid compilation error with cc on OSF/1 5.1.
35299         * lib/fcntl.in.h: Include <unistd.h> after the #include_next <fcntl.h>
35300         statement, not before.
35301         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35302
35303 2010-01-18  Bruno Haible  <bruno@clisp.org>
35304
35305         Avoid a link error due to the __printf__ symbol.
35306         * lib/stdio.in.h (__attribute__): Define to empty also for gcc 2.5.x
35307         and 2.6.x.
35308         (__format__, __printf__): Remove definitions.
35309         * lib/argp-fmtstream.h: Likewise.
35310         * lib/argp.h: Likewise.
35311         * lib/error.h: Likewise.
35312         * lib/vasnprintf.h: Likewise.
35313         * lib/xprintf.h: Likewise.
35314         * lib/xvasprintf.h: Likewise.
35315         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35316
35317 2010-01-18  Bruno Haible  <bruno@clisp.org>
35318
35319         Tests for module 'tanl'.
35320         * modules/tanl-tests: New file.
35321         * tests/test-tanl.c: New file.
35322
35323         Tests for module 'sqrtl'.
35324         * modules/sqrtl-tests: New file.
35325         * tests/test-sqrtl.c: New file.
35326
35327         Tests for module 'sinl'.
35328         * modules/sinl-tests: New file.
35329         * tests/test-sinl.c: New file.
35330
35331         Tests for module 'logl'.
35332         * modules/logl-tests: New file.
35333         * tests/test-logl.c: New file.
35334
35335         Tests for module 'expl'.
35336         * modules/expl-tests: New file.
35337         * tests/test-expl.c: New file.
35338
35339         Tests for module 'cosl'.
35340         * modules/cosl-tests: New file.
35341         * tests/test-cosl.c: New file.
35342
35343         Tests for module 'atanl'.
35344         * modules/atanl-tests: New file.
35345         * tests/test-atanl.c: New file.
35346
35347         Tests for module 'asinl'.
35348         * modules/asinl-tests: New file.
35349         * tests/test-asinl.c: New file.
35350
35351         Tests for module 'acosl'.
35352         * modules/acosl-tests: New file.
35353         * tests/test-acosl.c: New file.
35354
35355         New modules acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35356         * lib/math.in.h (acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl,
35357         tanl): Use the standard gnulib idiom.
35358         * lib/cosl.c: Don't include trigl.c and sincosl.c.
35359         * lib/sinl.c: Likewise.
35360         * lib/tanl.c: Don't include trigl.c.
35361         (kernel_tanl): Make static.
35362         * lib/sincosl.c: Include trigl.h first.
35363         * lib/trigl.c: Likewise.
35364         * m4/acosl.m4: New file.
35365         * m4/asinl.m4: New file.
35366         * m4/atanl.m4: New file.
35367         * m4/cosl.m4: New file.
35368         * m4/expl.m4: New file.
35369         * m4/logl.m4: New file.
35370         * m4/sinl.m4: New file.
35371         * m4/sqrtl.m4: New file.
35372         * m4/tanl.m4: New file.
35373         * m4/mathl.m4: Remove file.
35374         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_* and HAVE_*
35375         variables for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl.
35376         Don't initialize GNULIB_MATHL.
35377         * modules/acosl: New file.
35378         * modules/asinl: New file.
35379         * modules/atanl: New file.
35380         * modules/cosl: New file.
35381         * modules/expl: New file.
35382         * modules/logl: New file.
35383         * modules/sinl: New file.
35384         * modules/sqrtl: New file.
35385         * modules/tanl: New file.
35386         * modules/math (Makefile.am): Substitute GNULIB_* and HAVE_* variables
35387         for acosl, asinl, atanl, cosl, expl, logl, sinl, sqrtl, tanl. Don't
35388         substitute GNULIB_MATHL.
35389         * modules/mathl: Rewritten.
35390         * doc/posix-functions/acosl.texi: Mention the 'acosl' module.
35391         * doc/posix-functions/asinl.texi: Mention the 'asinl' module.
35392         * doc/posix-functions/atanl.texi: Mention the 'atanl' module.
35393         * doc/posix-functions/cosl.texi: Mention the 'cosl' module.
35394         * doc/posix-functions/expl.texi: Mention the 'expl' module.
35395         * doc/posix-functions/logl.texi: Mention the 'logl' module.
35396         * doc/posix-functions/sinl.texi: Mention the 'sinl' module.
35397         * doc/posix-functions/sqrtl.texi: Mention the 'sqrtl' module.
35398         * doc/posix-functions/tanl.texi: Mention the 'tanl' module.
35399
35400 2010-01-18  Bruno Haible  <bruno@clisp.org>
35401
35402         sqrt: Make gl_FUNC_SQRT requirable.
35403         * m4/sqrt.m4: New file.
35404         * modules/sqrt (Files): Add it.
35405         (configure.ac): Invoke gl_FUNC_SQRT.
35406
35407 2010-01-18  Bruno Haible  <bruno@clisp.org>
35408
35409         New modules for common <math.h> functions.
35410         * m4/mathfunc.m4: New file.
35411         * modules/acos: New file.
35412         * modules/asin: New file.
35413         * modules/atan: New file.
35414         * modules/atan2: New file.
35415         * modules/cbrt: New file.
35416         * modules/copysign: New file.
35417         * modules/cos: New file.
35418         * modules/cosh: New file.
35419         * modules/erf: New file.
35420         * modules/erfc: New file.
35421         * modules/exp: New file.
35422         * modules/fabs: New file.
35423         * modules/fmod: New file.
35424         * modules/hypot: New file.
35425         * modules/j0: New file.
35426         * modules/j1: New file.
35427         * modules/jn: New file.
35428         * modules/ldexp: New file.
35429         * modules/lgamma: New file.
35430         * modules/log: New file.
35431         * modules/log10: New file.
35432         * modules/log1p: New file.
35433         * modules/logb: New file.
35434         * modules/modf: New file.
35435         * modules/nextafter: New file.
35436         * modules/pow: New file.
35437         * modules/remainder: New file.
35438         * modules/rint: New file.
35439         * modules/sin: New file.
35440         * modules/sinh: New file.
35441         * modules/sqrt: New file.
35442         * modules/tan: New file.
35443         * modules/tanh: New file.
35444         * modules/y0: New file.
35445         * modules/y1: New file.
35446         * modules/yn: New file.
35447         * doc/posix-functions/acos.texi: Mention the 'acos' module.
35448         * doc/posix-functions/asin.texi: Mention the 'asin' module.
35449         * doc/posix-functions/atan.texi: Mention the 'atan' module.
35450         * doc/posix-functions/atan2.texi: Mention the 'atan2' module.
35451         * doc/posix-functions/cbrt.texi: Mention the 'cbrt' module.
35452         * doc/posix-functions/copysign.texi: Mention the 'copysign' module.
35453         * doc/posix-functions/cos.texi: Mention the 'cos' module.
35454         * doc/posix-functions/cosh.texi: Mention the 'cosh' module.
35455         * doc/posix-functions/erf.texi: Mention the 'erf' module.
35456         * doc/posix-functions/erfc.texi: Mention the 'erfc' module.
35457         * doc/posix-functions/exp.texi: Mention the 'exp' module.
35458         * doc/posix-functions/fabs.texi: Mention the 'fabs' module.
35459         * doc/posix-functions/fmod.texi: Mention the 'fmod' module.
35460         * doc/posix-functions/hypot.texi: Mention the 'hypot' module.
35461         * doc/posix-functions/j0.texi: Mention the 'j0' module.
35462         * doc/posix-functions/j1.texi: Mention the 'j1' module.
35463         * doc/posix-functions/jn.texi: Mention the 'jn' module.
35464         * doc/posix-functions/ldexp.texi: Mention the 'ldexp' module.
35465         * doc/posix-functions/lgamma.texi: Mention the 'lgamma' module.
35466         * doc/posix-functions/log.texi: Mention the 'log' module.
35467         * doc/posix-functions/log10.texi: Mention the 'log10' module.
35468         * doc/posix-functions/log1p.texi: Mention the 'log1p' module.
35469         * doc/posix-functions/logb.texi: Mention the 'logb' module.
35470         * doc/posix-functions/modf.texi: Mention the 'modf' module.
35471         * doc/posix-functions/nextafter.texi: Mention the 'nextafter' module.
35472         * doc/posix-functions/pow.texi: Mention the 'pow' module.
35473         * doc/posix-functions/remainder.texi: Mention the 'remainder' module.
35474         * doc/posix-functions/rint.texi: Mention the 'rint' module.
35475         * doc/posix-functions/sin.texi: Mention the 'sin' module.
35476         * doc/posix-functions/sinh.texi: Mention the 'sinh' module.
35477         * doc/posix-functions/sqrt.texi: Mention the 'sqrt' module.
35478         * doc/posix-functions/tan.texi: Mention the 'tan' module.
35479         * doc/posix-functions/tanh.texi: Mention the 'tanh' module.
35480         * doc/posix-functions/y0.texi: Mention the 'y0' module.
35481         * doc/posix-functions/y1.texi: Mention the 'y1' module.
35482         * doc/posix-functions/yn.texi: Mention the 'yn' module.
35483
35484 2010-01-18  Jim Meyering  <meyering@redhat.com>
35485
35486         ignore-value: relax license to LGPLv2+
35487         * modules/ignore-value (License): Relax to LGPLv2+.
35488
35489         getdate: don't leak when TZ contains two or more '"'s
35490         * lib/getdate.y (get_date): Don't leak a copy of TZ for each
35491         double quote in TZ after the first one.
35492
35493         readtokens: do not leak internal token_lengths buffer
35494         * lib/readtokens.c (readtokens): Free the local, lengths,
35495         when the supplied "token_lengths" parameter is NULL.
35496
35497 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35498
35499         Fix a couple of missing LIBTHREAD link failures on AIX.
35500         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add
35501         $(LIBTHREAD).
35502         * modules/strsignal-tests (test_strsignal_LDADD): Likewise.
35503
35504         Link test-poll against INET_PTON_LIB.
35505         * modules/poll-tests (test_poll_LDADD): Add $(INET_PTON_LIB),
35506         for inet_pton on Solaris 10.
35507
35508 2010-01-17  Bruno Haible  <bruno@clisp.org>
35509
35510         unistdio/*-sprintf: Fix typo in module description.
35511         * modules/unistdio/u8-sprintf (Depends-on): Fix typo.
35512         * modules/unistdio/u8-u8-sprintf (Depends-on): Likewise.
35513         * modules/unistdio/u16-sprintf (Depends-on): Likewise.
35514         * modules/unistdio/u16-u16-sprintf (Depends-on): Likewise.
35515         * modules/unistdio/u32-sprintf (Depends-on): Likewise.
35516         * modules/unistdio/u32-u32-sprintf (Depends-on): Likewise.
35517         * modules/unistdio/ulc-sprintf (Depends-on): Likewise.
35518         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
35519
35520 2010-01-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
35521
35522         gnulib-tool: fix filelist for AIX, HP-UX ksh.
35523         * gnulib-tool (func_filter_filelist): Do not quote possibly-empty
35524         variables in shell case patterns, for AIX and HP-UX ksh.
35525
35526         Split large sed scripts, for HP-UX sed.
35527         * modules/stdio: Split sed scripts around 50 sed commands,
35528         to avoid HP-UX limit of 99 commands, in the near future.
35529         * modules/string: Likewise.
35530         * modules/unistd: Likewise.
35531
35532         gnulib-tool: avoid writing in the current directory.
35533         * gnulib-tool (func_emit_lib_Makefile_am)
35534         (func_emit_tests_Makefile_am): Put temporary files in $tmp,
35535         not in the current directory, so concurrent gnulib-tool
35536         instances do not interfere.
35537
35538 2010-01-16  Jim Meyering  <meyering@redhat.com>
35539
35540         doc: update users.txt
35541         * users.txt: Add grep.
35542         (diffutils, gzip): Update URLs.
35543
35544 2010-01-12  Bruno Haible  <bruno@clisp.org>
35545
35546         posix_spawn: Avoid test failure on Cygwin.
35547         * tests/test-posix_spawn3.c (DATA_FILENAME) [CYGWIN]: Use less risky
35548         characters.
35549         Reported by Simon Josefsson.
35550
35551 2010-01-12  Bruno Haible  <bruno@clisp.org>
35552
35553         * tests/test-cond.c (main): When skipping the test, show the reason.
35554
35555 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35556
35557         * lib/striconv.c (str_cd_iconv): Avoid if before free.
35558
35559 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35560
35561         * top/maint.mk (VC_LIST_EXCEPT): Filter list through
35562         VC_LIST_ALWAYS_EXCLUDE_REGEX.
35563
35564 2010-01-12  Eric Blake  <ebb9@byu.net>
35565
35566         build: guarantee AS_VAR_IF
35567         * m4/warnings.m4 (gl_WARN_ADD): Use autoconf name.
35568         (gl_AS_VAR_IF): Move...
35569         * m4/gnulib-common.m4 (AS_VAR_IF): ...here.
35570         Reported by Simon Josefsson.
35571
35572 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35573
35574         * lib/stdio.in.h: Fix typo.
35575
35576 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35577
35578         * m4/gc.m4: Check if linking to libgcrypt also needs linking to
35579         libgpg-error.
35580
35581 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35582
35583         * tests/test-xalloc-die.sh: Use $EXEEXT.
35584
35585 2010-01-12  Simon Josefsson  <simon@josefsson.org>
35586             Bruno Haible  <bruno@clisp.org>
35587
35588         getlogin, getlogin_r: Avoid test failure.
35589         * tests/test-getlogin.c: Include <stdio.h>.
35590         (main): Skip the test when the function fails because stdin is not a
35591         tty.
35592         * tests/test-getlogin_r.c: Include <stdio.h>.
35593         (main): Skip the test when the function fails because stdin is not a
35594         tty.
35595
35596 2010-01-11  Eric Blake  <ebb9@byu.net>
35597
35598         tests: avoid more large file warnings
35599         * tests/test-fflush.c: Avoid warning about ftell use.
35600         * tests/test-fseek.c: Avoid warning about fseek use.
35601
35602 2010-01-10  Bruno Haible  <bruno@clisp.org>
35603
35604         nproc: Work better on Linux when /proc and /sys are not mounted.
35605         * lib/nproc.c (num_processors): Use num_processors_via_affinity_mask ()
35606         as lower bound when, on glibc/Linux systems,
35607         sysconf (_SC_NPROCESSORS_CONF) returns 1.
35608         Suggested by Pádraig Brady <P@draigbrady.com>.
35609         Reported by Dmitry V. Levin <ldv@altlinux.org>.
35610
35611         nproc: Refactor.
35612         * lib/nproc.c (num_processors_via_affinity_mask): New function,
35613         extracted from num_processors.
35614         (num_processors): Call it.
35615
35616 2010-01-11  Jim Meyering  <meyering@redhat.com>
35617
35618         utimecmp: avoid new warning from upcoming gcc-4.5.0
35619         * lib/utimecmp.c (BILLION): Define using #define rather than an
35620         anonymous enum, to placate upcoming gcc-4.5.0's -Wenum-compare.
35621
35622 2010-01-11  Eric Blake  <ebb9@byu.net>
35623
35624         math: add portability warnings for classification macros
35625         * modules/math (Depends-on): Add warn-on-use.
35626         (Makefile.am): Provide new substitutions.
35627         * m4/math_h.m4 (gl_MATH_H): Require inline.
35628         * lib/math.in.h (_GL_WARN_REAL_FLOATING_DECL)
35629         (_GL_WARN_REAL_FLOATING_IMPL): New helper macros.
35630         (isfinite, isinf, isnan, signbit) [GNULIB_POSIXCHECK]: Use them to
35631         implement warnings.
35632
35633         unistd: warn on use of environ without module
35634         * modules/unistd (Depends-on): Add warn-on-use.
35635         (Makefile.am): Provide new substitutions.
35636         * m4/unistd_h.m4 (gl_UNISTD_H): Check for inline and environ.
35637         * lib/unistd.in.h (environ): Wrap with a warning helper function.
35638
35639         stdio: warn on suspicious uses
35640         * modules/stdio (Depends-on): Add warn-on-use.
35641         (Makefile.am): Provide new substitutions.
35642         * m4/stdio_h.m4 (gl_STDIO_H): Check for inline, ftello, and
35643         fseeko.
35644         * lib/stdio.in.h (gets): Always warn on use.
35645         (fseek, ftell): Adjust when warnings are issued, and honor
35646         _GL_NO_LARGE_FILES as a way to silence the warning.
35647         * tests/test-fpurge.c [!GNULIB_FSEEK]: Use new means to squelch
35648         any warning about large file offsets.
35649         * tests/test-freadable.c [!GNULIB_FSEEK]: Likewise.
35650         * tests/test-freading.c [!GNULIB_FSEEK]: Likewise.
35651         * tests/test-fseeko.c [!GNULIB_FSEEK]: Likewise.
35652         * tests/test-ftell.c [!GNULIB_FSEEK]: Likewise.
35653         * tests/test-ftello.c [!GNULIB_FSEEK]: Likewise.
35654         * tests/test-fwritable.c [!GNULIB_FSEEK]: Likewise.
35655         * tests/test-fwriting.c [!GNULIB_FSEEK]: Likewise.
35656         * tests/test-getopt.c [!GNULIB_FTELL]: Likewise.
35657
35658         warn-on-use: new module
35659         * modules/warn-on-use: New file.
35660         * build-aux/warn-on-use.h: Likewise.
35661         * m4/warn-on-use.m4: Likewise.
35662         * MODULES.html.sh (Support for building): Mention it.
35663
35664 2010-01-10  Bruno Haible  <bruno@clisp.org>
35665
35666         Tests for module 'unistr/u32-strdup'.
35667         * modules/unistr/u32-strdup-tests: New file.
35668         * tests/unistr/test-u32-strdup.c: New file.
35669
35670         Tests for module 'unistr/u16-strdup'.
35671         * modules/unistr/u16-strdup-tests: New file.
35672         * tests/unistr/test-u16-strdup.c: New file.
35673
35674         Tests for module 'unistr/u8-strdup'.
35675         * modules/unistr/u8-strdup-tests: New file.
35676         * tests/unistr/test-u8-strdup.c: New file.
35677         * tests/unistr/test-strdup.h: New file.
35678
35679         Tests for module 'unistr/u32-strncmp'.
35680         * modules/unistr/u32-strncmp-tests: New file.
35681         * tests/unistr/test-u32-strncmp.c: New file.
35682
35683         Tests for module 'unistr/u16-strncmp'.
35684         * modules/unistr/u16-strncmp-tests: New file.
35685         * tests/unistr/test-u16-strncmp.c: New file.
35686
35687         Tests for module 'unistr/u8-strncmp'.
35688         * modules/unistr/u8-strncmp-tests: New file.
35689         * tests/unistr/test-u8-strncmp.c: New file.
35690         * tests/unistr/test-strncmp.h: New file.
35691
35692         Tests for module 'unistr/u32-strcoll'.
35693         * modules/unistr/u32-strcoll-tests: New file.
35694         * tests/unistr/test-u32-strcoll.c: New file.
35695
35696         Tests for module 'unistr/u16-strcoll'.
35697         * modules/unistr/u16-strcoll-tests: New file.
35698         * tests/unistr/test-u16-strcoll.c: New file.
35699
35700         Tests for module 'unistr/u8-strcoll'.
35701         * modules/unistr/u8-strcoll-tests: New file.
35702         * tests/unistr/test-u8-strcoll.c: New file.
35703
35704         Tests for module 'unistr/u32-strcmp'.
35705         * modules/unistr/u32-strcmp-tests: New file.
35706         * tests/unistr/test-u32-strcmp.c: New file.
35707         * tests/unistr/test-u32-strcmp.h: New file.
35708
35709         Tests for module 'unistr/u16-strcmp'.
35710         * modules/unistr/u16-strcmp-tests: New file.
35711         * tests/unistr/test-u16-strcmp.c: New file.
35712         * tests/unistr/test-u16-strcmp.h: New file.
35713
35714         Tests for module 'unistr/u8-strcmp'.
35715         * modules/unistr/u8-strcmp-tests: New file.
35716         * tests/unistr/test-u8-strcmp.c: New file.
35717         * tests/unistr/test-u8-strcmp.h: New file.
35718         * tests/unistr/test-strcmp.h: New file.
35719
35720         Tests for module 'unistr/u32-strncat'.
35721         * modules/unistr/u32-strncat-tests: New file.
35722         * tests/unistr/test-u32-strncat.c: New file.
35723
35724         Tests for module 'unistr/u16-strncat'.
35725         * modules/unistr/u16-strncat-tests: New file.
35726         * tests/unistr/test-u16-strncat.c: New file.
35727
35728         Tests for module 'unistr/u8-strncat'.
35729         * modules/unistr/u8-strncat-tests: New file.
35730         * tests/unistr/test-u8-strncat.c: New file.
35731         * tests/unistr/test-strncat.h: New file.
35732
35733         Tests for module 'unistr/u32-strcat'.
35734         * modules/unistr/u32-strcat-tests: New file.
35735         * tests/unistr/test-u32-strcat.c: New file.
35736
35737         Tests for module 'unistr/u16-strcat'.
35738         * modules/unistr/u16-strcat-tests: New file.
35739         * tests/unistr/test-u16-strcat.c: New file.
35740
35741         Tests for module 'unistr/u8-strcat'.
35742         * modules/unistr/u8-strcat-tests: New file.
35743         * tests/unistr/test-u8-strcat.c: New file.
35744         * tests/unistr/test-strcat.h: New file.
35745
35746         Tests for module 'unistr/u32-stpncpy'.
35747         * modules/unistr/u32-stpncpy-tests: New file.
35748         * tests/unistr/test-u32-stpncpy.c: New file.
35749
35750         Tests for module 'unistr/u16-stpncpy'.
35751         * modules/unistr/u16-stpncpy-tests: New file.
35752         * tests/unistr/test-u16-stpncpy.c: New file.
35753
35754         Tests for module 'unistr/u8-stpncpy'.
35755         * modules/unistr/u8-stpncpy-tests: New file.
35756         * tests/unistr/test-u8-stpncpy.c: New file.
35757         * tests/unistr/test-stpncpy.h: New file.
35758
35759         Tests for module 'unistr/u32-strncpy'.
35760         * modules/unistr/u32-strncpy-tests: New file.
35761         * tests/unistr/test-u32-strncpy.c: New file.
35762
35763         Tests for module 'unistr/u16-strncpy'.
35764         * modules/unistr/u16-strncpy-tests: New file.
35765         * tests/unistr/test-u16-strncpy.c: New file.
35766
35767         Tests for module 'unistr/u8-strncpy'.
35768         * modules/unistr/u8-strncpy-tests: New file.
35769         * tests/unistr/test-u8-strncpy.c: New file.
35770         * tests/unistr/test-strncpy.h: New file.
35771
35772         Tests for module 'unistr/u32-stpcpy'.
35773         * modules/unistr/u32-stpcpy-tests: New file.
35774         * tests/unistr/test-u32-stpcpy.c: New file.
35775
35776         Tests for module 'unistr/u16-stpcpy'.
35777         * modules/unistr/u16-stpcpy-tests: New file.
35778         * tests/unistr/test-u16-stpcpy.c: New file.
35779
35780         Tests for module 'unistr/u8-stpcpy'.
35781         * modules/unistr/u8-stpcpy-tests: New file.
35782         * tests/unistr/test-u8-stpcpy.c: New file.
35783         * tests/unistr/test-stpcpy.h: New file.
35784
35785         Tests for module 'unistr/u32-strcpy'.
35786         * modules/unistr/u32-strcpy-tests: New file.
35787         * tests/unistr/test-u32-strcpy.c: New file.
35788
35789         Tests for module 'unistr/u16-strcpy'.
35790         * modules/unistr/u16-strcpy-tests: New file.
35791         * tests/unistr/test-u16-strcpy.c: New file.
35792
35793         Tests for module 'unistr/u8-strcpy'.
35794         * modules/unistr/u8-strcpy-tests: New file.
35795         * tests/unistr/test-u8-strcpy.c: New file.
35796         * tests/unistr/test-strcpy.h: New file.
35797
35798         Tests for module 'unistr/u32-strnlen'.
35799         * modules/unistr/u32-strnlen-tests: New file.
35800         * tests/unistr/test-u32-strnlen.c: New file.
35801
35802         Tests for module 'unistr/u16-strnlen'.
35803         * modules/unistr/u16-strnlen-tests: New file.
35804         * tests/unistr/test-u16-strnlen.c: New file.
35805
35806         Tests for module 'unistr/u8-strnlen'.
35807         * modules/unistr/u8-strnlen-tests: New file.
35808         * tests/unistr/test-u8-strnlen.c: New file.
35809         * tests/unistr/test-strnlen.h: New file.
35810
35811         Tests for module 'unistr/u32-strlen'.
35812         * modules/unistr/u32-strlen-tests: New file.
35813         * tests/unistr/test-u32-strlen.c: New file.
35814
35815         Tests for module 'unistr/u16-strlen'.
35816         * modules/unistr/u16-strlen-tests: New file.
35817         * tests/unistr/test-u16-strlen.c: New file.
35818
35819         Tests for module 'unistr/u8-strlen'.
35820         * modules/unistr/u8-strlen-tests: New file.
35821         * tests/unistr/test-u8-strlen.c: New file.
35822
35823         Tests for module 'unistr/u32-prev'.
35824         * modules/unistr/u32-prev-tests: New file.
35825         * tests/unistr/test-u32-prev.c: New file.
35826
35827         Tests for module 'unistr/u16-prev'.
35828         * modules/unistr/u16-prev-tests: New file.
35829         * tests/unistr/test-u16-prev.c: New file.
35830
35831         Tests for module 'unistr/u8-prev'.
35832         * modules/unistr/u8-prev-tests: New file.
35833         * tests/unistr/test-u8-prev.c: New file.
35834
35835         Tests for module 'unistr/u32-next'.
35836         * modules/unistr/u32-next-tests: New file.
35837         * tests/unistr/test-u32-next.c: New file.
35838
35839         Tests for module 'unistr/u16-next'.
35840         * modules/unistr/u16-next-tests: New file.
35841         * tests/unistr/test-u16-next.c: New file.
35842
35843         Tests for module 'unistr/u8-next'.
35844         * modules/unistr/u8-next-tests: New file.
35845         * tests/unistr/test-u8-next.c: New file.
35846
35847         Tests for module 'unistr/u32-strmbtouc'.
35848         * modules/unistr/u32-strmbtouc-tests: New file.
35849         * tests/unistr/test-u32-strmbtouc.c: New file.
35850
35851         Tests for module 'unistr/u16-strmbtouc'.
35852         * modules/unistr/u16-strmbtouc-tests: New file.
35853         * tests/unistr/test-u16-strmbtouc.c: New file.
35854
35855         Tests for module 'unistr/u8-strmbtouc'.
35856         * modules/unistr/u8-strmbtouc-tests: New file.
35857         * tests/unistr/test-u8-strmbtouc.c: New file.
35858
35859         Tests for module 'unistr/u32-strmblen'.
35860         * modules/unistr/u32-strmblen-tests: New file.
35861         * tests/unistr/test-u32-strmblen.c: New file.
35862
35863         Tests for module 'unistr/u16-strmblen'.
35864         * modules/unistr/u16-strmblen-tests: New file.
35865         * tests/unistr/test-u16-strmblen.c: New file.
35866
35867         Tests for module 'unistr/u8-strmblen'.
35868         * modules/unistr/u8-strmblen-tests: New file.
35869         * tests/unistr/test-u8-strmblen.c: New file.
35870
35871         Tests for module 'unistr/u32-cpy-alloc'.
35872         * modules/unistr/u32-cpy-alloc-tests: New file.
35873         * tests/unistr/test-u32-cpy-alloc.c: New file.
35874
35875         Tests for module 'unistr/u16-cpy-alloc'.
35876         * modules/unistr/u16-cpy-alloc-tests: New file.
35877         * tests/unistr/test-u16-cpy-alloc.c: New file.
35878
35879         Tests for module 'unistr/u8-cpy-alloc'.
35880         * modules/unistr/u8-cpy-alloc-tests: New file.
35881         * tests/unistr/test-u8-cpy-alloc.c: New file.
35882         * tests/unistr/test-cpy-alloc.h: New file.
35883
35884         Tests for module 'unistr/u32-mbsnlen'.
35885         * modules/unistr/u32-mbsnlen-tests: New file.
35886         * tests/unistr/test-u32-mbsnlen.c: New file.
35887
35888         Tests for module 'unistr/u16-mbsnlen'.
35889         * modules/unistr/u16-mbsnlen-tests: New file.
35890         * tests/unistr/test-u16-mbsnlen.c: New file.
35891
35892         Tests for module 'unistr/u8-mbsnlen'.
35893         * modules/unistr/u8-mbsnlen-tests: New file.
35894         * tests/unistr/test-u8-mbsnlen.c: New file.
35895
35896         Tests for module 'unistr/u32-chr'.
35897         * modules/unistr/u32-chr-tests: New file.
35898         * tests/unistr/test-u32-chr.c: New file.
35899
35900         Tests for module 'unistr/u16-chr'.
35901         * modules/unistr/u16-chr-tests: New file.
35902         * tests/unistr/test-u16-chr.c: New file.
35903
35904         Tests for module 'unistr/u8-chr'.
35905         * modules/unistr/u8-chr-tests: New file.
35906         * tests/unistr/test-u8-chr.c: New file.
35907         * tests/unistr/test-chr.h: New file, based on tests/test-memchr.c.
35908
35909         Tests for module 'unistr/u32-cmp2'.
35910         * modules/unistr/u32-cmp2-tests: New file.
35911         * tests/unistr/test-u32-cmp2.c: New file.
35912
35913         Tests for module 'unistr/u16-cmp2'.
35914         * modules/unistr/u16-cmp2-tests: New file.
35915         * tests/unistr/test-u16-cmp2.c: New file.
35916
35917         Tests for module 'unistr/u8-cmp2'.
35918         * modules/unistr/u8-cmp2-tests: New file.
35919         * tests/unistr/test-u8-cmp2.c: New file.
35920         * tests/unistr/test-cmp2.h: New file, based on tests/unistr/test-cmp.h.
35921
35922         Tests for module 'unistr/u32-cmp'.
35923         * modules/unistr/u32-cmp-tests: New file.
35924         * tests/unistr/test-u32-cmp.c: New file.
35925
35926         Tests for module 'unistr/u16-cmp'.
35927         * modules/unistr/u16-cmp-tests: New file.
35928         * tests/unistr/test-u16-cmp.c: New file.
35929
35930         Tests for module 'unistr/u8-cmp'.
35931         * modules/unistr/u8-cmp-tests: New file.
35932         * tests/unistr/test-u8-cmp.c: New file.
35933         * tests/unistr/test-cmp.h: New file, based on tests/test-memcmp.c.
35934
35935         Tests for module 'unistr/u32-set'.
35936         * modules/unistr/u32-set-tests: New file.
35937         * tests/unistr/test-u32-set.c: New file.
35938
35939         Tests for module 'unistr/u16-set'.
35940         * modules/unistr/u16-set-tests: New file.
35941         * tests/unistr/test-u16-set.c: New file.
35942
35943         Tests for module 'unistr/u8-set'.
35944         * modules/unistr/u8-set-tests: New file.
35945         * tests/unistr/test-u8-set.c: New file.
35946         * tests/unistr/test-set.h: New file.
35947
35948         Tests for module 'unistr/u32-move'.
35949         * modules/unistr/u32-move-tests: New file.
35950         * tests/unistr/test-u32-move.c: New file.
35951
35952         Tests for module 'unistr/u16-move'.
35953         * modules/unistr/u16-move-tests: New file.
35954         * tests/unistr/test-u16-move.c: New file.
35955
35956         Tests for module 'unistr/u8-move'.
35957         * modules/unistr/u8-move-tests: New file.
35958         * tests/unistr/test-u8-move.c: New file.
35959         * tests/unistr/test-move.h: New file.
35960
35961         Tests for module 'unistr/u32-cpy'.
35962         * modules/unistr/u32-cpy-tests: New file.
35963         * tests/unistr/test-u32-cpy.c: New file.
35964
35965         Tests for module 'unistr/u16-cpy'.
35966         * modules/unistr/u16-cpy-tests: New file.
35967         * tests/unistr/test-u16-cpy.c: New file.
35968
35969         Tests for module 'unistr/u8-cpy'.
35970         * modules/unistr/u8-cpy-tests: New file.
35971         * tests/unistr/test-u8-cpy.c: New file.
35972         * tests/unistr/test-cpy.h: New file.
35973
35974 2010-01-09  Bruno Haible  <bruno@clisp.org>
35975
35976         Tests for module 'unistr/u32-uctomb'.
35977         * modules/unistr/u32-uctomb-tests: New file.
35978         * tests/unistr/test-u32-uctomb.c: New file.
35979
35980         Tests for module 'unistr/u16-uctomb'.
35981         * modules/unistr/u16-uctomb-tests: New file.
35982         * tests/unistr/test-u16-uctomb.c: New file.
35983
35984         Tests for module 'unistr/u8-uctomb'.
35985         * modules/unistr/u8-uctomb-tests: New file.
35986         * tests/unistr/test-u8-uctomb.c: New file.
35987
35988         Tests for module 'unistr/u32-mbtoucr'.
35989         * modules/unistr/u32-mbtoucr-tests: New file.
35990         * tests/unistr/test-u32-mbtoucr.c: New file.
35991
35992         Tests for module 'unistr/u16-mbtoucr'.
35993         * modules/unistr/u16-mbtoucr-tests: New file.
35994         * tests/unistr/test-u16-mbtoucr.c: New file.
35995
35996         Tests for module 'unistr/u8-mbtoucr'.
35997         * modules/unistr/u8-mbtoucr-tests: New file.
35998         * tests/unistr/test-u8-mbtoucr.c: New file.
35999
36000         Tests for module 'unistr/u32-mbtouc'.
36001         * modules/unistr/u32-mbtouc-tests: New file.
36002         * tests/unistr/test-u32-mbtouc.c: New file.
36003
36004         Tests for module 'unistr/u16-mbtouc'.
36005         * modules/unistr/u16-mbtouc-tests: New file.
36006         * tests/unistr/test-u16-mbtouc.c: New file.
36007
36008         Tests for module 'unistr/u8-mbtouc'.
36009         * modules/unistr/u8-mbtouc-tests: New file.
36010         * tests/unistr/test-u8-mbtouc.c: New file.
36011
36012         Tests for module 'unistr/u32-mbtouc-unsafe'.
36013         * modules/unistr/u32-mbtouc-unsafe-tests: New file.
36014         * tests/unistr/test-u32-mbtouc-unsafe.c: New file.
36015         * tests/unistr/test-u32-mbtouc.h: New file.
36016
36017         Tests for module 'unistr/u16-mbtouc-unsafe'.
36018         * modules/unistr/u16-mbtouc-unsafe-tests: New file.
36019         * tests/unistr/test-u16-mbtouc-unsafe.c: New file.
36020         * tests/unistr/test-u16-mbtouc.h: New file.
36021
36022         Tests for module 'unistr/u8-mbtouc-unsafe'.
36023         * modules/unistr/u8-mbtouc-unsafe-tests: New file.
36024         * tests/unistr/test-u8-mbtouc-unsafe.c: New file.
36025         * tests/unistr/test-u8-mbtouc.h: New file.
36026
36027         Tests for module 'unistr/u32-mblen'.
36028         * modules/unistr/u32-mblen-tests: New file.
36029         * tests/unistr/test-u32-mblen.c: New file.
36030
36031         Tests for module 'unistr/u16-mblen'.
36032         * modules/unistr/u16-mblen-tests: New file.
36033         * tests/unistr/test-u16-mblen.c: New file.
36034
36035         Tests for module 'unistr/u8-mblen'.
36036         * modules/unistr/u8-mblen-tests: New file.
36037         * tests/unistr/test-u8-mblen.c: New file.
36038
36039         Tests for module 'unistr/u32-to-u16'.
36040         * modules/unistr/u32-to-u16-tests: New file.
36041         * tests/unistr/test-u32-to-u16.c: New file.
36042
36043         Tests for module 'unistr/u32-to-u8'.
36044         * modules/unistr/u32-to-u8-tests: New file.
36045         * tests/unistr/test-u32-to-u8.c: New file.
36046
36047         Tests for module 'unistr/u16-to-u32'.
36048         * modules/unistr/u16-to-u32-tests: New file.
36049         * tests/unistr/test-u16-to-u32.c: New file.
36050
36051         Tests for module 'unistr/u16-to-u8'.
36052         * modules/unistr/u16-to-u8-tests: New file.
36053         * tests/unistr/test-u16-to-u8.c: New file.
36054
36055         Tests for module 'unistr/u8-to-u32'.
36056         * modules/unistr/u8-to-u32-tests: New file.
36057         * tests/unistr/test-u8-to-u32.c: New file.
36058
36059         Tests for module 'unistr/u8-to-u16'.
36060         * modules/unistr/u8-to-u16-tests: New file.
36061         * tests/unistr/test-u8-to-u16.c: New file.
36062
36063         Tests for module 'unistr/u32-check'.
36064         * modules/unistr/u32-check-tests: New file.
36065         * tests/unistr/test-u32-check.c: New file.
36066
36067         Tests for module 'unistr/u16-check'.
36068         * modules/unistr/u16-check-tests: New file.
36069         * tests/unistr/test-u16-check.c: New file.
36070
36071         Tests for module 'unistr/u8-check'.
36072         * modules/unistr/u8-check-tests: New file.
36073         * tests/unistr/test-u8-check.c: New file.
36074
36075         * tests/unictype/test-categ_byname.c: Include <stdbool.h>.
36076         (category_equals): New function.
36077         (main): Add more tests.
36078         * modules/unictype/category-byname-tests (Depends-on): Add stdbool.
36079
36080         * tests/unictype/test-bidi_byname.c (main): Add more tests.
36081
36082 2010-01-10  Bruno Haible  <bruno@clisp.org>
36083
36084         unistr/u*-strcoll: Try harder to distinguish different strings.
36085         * lib/unistr/u-strcoll.h (FUNC): When sl1 and sl2 are the same,
36086         compare s1 and s2 to see if they are different.
36087
36088 2010-01-10  Bruno Haible  <bruno@clisp.org>
36089
36090         unistr/u*-stpncpy: Fix the return value.
36091         * lib/unistr.h (u8_stpncpy, u16_stpncpy, u32_stpncpy): Make the
36092         description of the return value consistent with stpncpy in glibc.
36093         * lib/unistr/u-stpncpy.h (FUNC): Return the pointer past the last
36094         written non-NUL unit.
36095
36096 2010-01-10  Bruno Haible  <bruno@clisp.org>
36097
36098         unistr/u*-next: Add missing dependencies.
36099         * modules/unistr/u8-next (Depends-on): Add unistr/u8-strmbtouc.
36100         * modules/unistr/u16-next (Depends-on): Add unistr/u16-strmbtouc.
36101         * modules/unistr/u32-next (Depends-on): Add unistr/u32-strmbtouc.
36102
36103 2010-01-10  Bruno Haible  <bruno@clisp.org>
36104
36105         unistr/u8-mbsnlen: Fix return value for incomplete character.
36106         * lib/unistr/u8-mbsnlen.c (u8_mbsnlen): Use u8_mbtoucr instead of
36107         u8_mblen.
36108         * modules/unistr/u8-mbsnlen (Depends-on): Add unistr/u8-mbtoucr.
36109         Remove unistr/u8-mblen.
36110         * lib/unistr/u16-mbsnlen.c (u16_mbsnlen): Use u16_mbtoucr instead of
36111         u16_mblen.
36112         * modules/unistr/u16-mbsnlen (Depends-on): Add unistr/u16-mbtoucr.
36113         Remove unistr/u16-mblen.
36114
36115 2010-01-10  Bruno Haible  <bruno@clisp.org>
36116
36117         wchar: Fix compilation error when <wchar.h> is used from coreutils.
36118         * lib/wchar.in.h: Treat __need_wint_t like __need_mbstate_t.
36119         Reported by Brian Gough <bjg@gnu.org> and
36120         Chris Clayton <chris2553@googlemail.com> via
36121         Mike Frysinger <vapier@gentoo.org> and Jim Meyering <jim@meyering.net>.
36122
36123 2010-01-09  Bruno Haible  <bruno@clisp.org>
36124
36125         unistr/u16-to-u32: Reject invalid input.
36126         * lib/unistr/u16-to-u32.c (u16_to_u32): Call u16_mbtoucr instead of
36127         u16_mbtouc.
36128         * modules/unistr/u16-to-u32 (Depends-on): Add unistr/u16-mbtoucr.
36129         Remove unistr/u16-mbtouc.
36130
36131         unistr/u16-to-u8: Reject invalid input.
36132         * lib/unistr/u16-to-u8.c (u16_to_u8): Call u16_mbtoucr instead of
36133         u16_mbtouc.
36134         * modules/unistr/u16-to-u8 (Depends-on): Add unistr/u16-mbtoucr.
36135         Remove unistr/u16-mbtouc.
36136
36137         unistr/u8-to-u32: Reject invalid input.
36138         * lib/unistr/u8-to-u32.c (u8_to_u32): Call u8_mbtoucr instead of
36139         u8_mbtouc.
36140         * modules/unistr/u8-to-u32 (Depends-on): Add unistr/u8-mbtoucr.
36141         Remove unistr/u8-mbtouc.
36142
36143         unistr/u8-to-u16: Reject invalid input.
36144         * lib/unistr/u8-to-u16.c (u8_to_u16): Call u8_mbtoucr instead of
36145         u8_mbtouc.
36146         * modules/unistr/u8-to-u16 (Depends-on): Add unistr/u8-mbtoucr.
36147         Remove unistr/u8-mbtouc.
36148
36149 2010-01-09  Bruno Haible  <bruno@clisp.org>
36150
36151         Tests for module 'getlogin'.
36152         * modules/getlogin-tests: New file.
36153         * tests/test-getlogin.c: New file.
36154
36155         New module 'getlogin'.
36156         * lib/unistd.in.h (getlogin): New declaration.
36157         * lib/getlogin.c: New file.
36158         * m4/getlogin.m4: New file.
36159         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETLOGIN,
36160         HAVE_GETLOGIN.
36161         * modules/unistd (Makefile.am): Substitute GNULIB_GETLOGIN,
36162         HAVE_GETLOGIN.
36163         * modules/getlogin: New file.
36164         * doc/posix-functions/getlogin.texi: Mention the new module.
36165         Reported by John W. Eaton <jwe@gnu.org>.
36166
36167 2010-01-09  Bruno Haible  <bruno@clisp.org>
36168
36169         getlogin_r: Support for native Windows.
36170         * lib/getlogin_r.c: Include <windows.h>
36171         (getlogin_r): Implement for native Windows.
36172         * tests/test-getlogin_r.c (main): Also test with a huge buffer.
36173         Reported by Tatsuro MATSUOKA <tmacchant5@yahoo.co.jp>
36174         via John W. Eaton <jwe@gnu.org>.
36175
36176 2010-01-09  Bruno Haible  <bruno@clisp.org>
36177
36178         getlogin_r: Small fixes.
36179         * lib/getlogin_r.c (getlogin_r): Don't set errno if the function
36180         succeeds.
36181         * m4/getlogin_r.m4 (gl_GETLOGIN_R): Require gl_USE_SYSTEM_EXTENSIONS
36182         before testing whether getlogin_r is declared. No need to set
36183         HAVE_DECL_GETLOGIN_R to 1.
36184         (gl_PREREQ_GETLOGIN_R): Don't check for the getlogin_r declaration.
36185
36186 2010-01-09  Bruno Haible  <bruno@clisp.org>
36187
36188         * lib/unistd.in.h (getlogin_r): Add comment.
36189
36190 2010-01-09  Bruno Haible  <bruno@clisp.org>
36191
36192         Tests for module 'getlogin_r'.
36193         * modules/getlogin_r-tests: New file.
36194         * tests/test-getlogin_r.c: New file.
36195
36196 2010-01-09  Jim Meyering  <meyering@redhat.com>
36197
36198         maint.mk: extend proper_name_utf8-vs-LIBICONV-checking rule
36199         * top/maint.mk (sc_proper_name_utf8_requires_ICONV): Adapt to work
36200         also when $(LIBICONV) is part of LDADD, rather than ${prog}_LDADD.
36201
36202 2010-01-08  Simon Josefsson  <simon@josefsson.org>
36203
36204         * lib/dup2.c (rpl_dup2): Improve comment.
36205
36206 2010-01-08  Eric Blake  <ebb9@byu.net>
36207
36208         maint.mk: allow packages to add makefile @@ exceptions
36209         * top/maint.mk (_makefile_at_at_check_exceptions): New hook.
36210         (sc_makefile_check): Rename...
36211         (sc_makefile_at_at_check): ...to this, and use hook.
36212
36213         dup2: work around mingw bug
36214         * lib/dup2.c (rpl_dup2): Sanitize return value on mingw.
36215         Reported by Simon Josefsson.
36216
36217 2010-01-07  John W. Eaton  <jwe@octave.org>  (tiny change)
36218
36219         glob: Fix C++ compilation.
36220         * lib/glob.in.h [__cplusplus]: Define __BEGIN_DECLS and __END_DECLS for
36221         C++.
36222
36223 2010-01-07  Bruno Haible  <bruno@clisp.org>
36224
36225         Fix indentation of wctype.in.h, broken since 2007-01-06.
36226         * lib/wctype.in.h: Fix indentation of preprocessor directives.
36227
36228 2010-01-07  Bruno Haible  <bruno@clisp.org>
36229
36230         mbslen: Avoid collision with system function.
36231         * lib/string.in.h [MirBSD]: Include <wchar.h>.
36232         (mbslen): Undefine first. Alias mbslen to rpl_mbslen.
36233         * m4/mbslen.m4: New file.
36234         * modules/mbslen (Files): Add it.
36235         (configure.ac): Invoke gl_MBSLEN.
36236         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize HAVE_MBSLEN.
36237         * modules/string (Makefile.am): Substitute HAVE_MBSLEN.
36238         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>
36239         via Ian Beckwith <ianb@erislabs.net>.
36240
36241 2010-01-07  Bruno Haible  <bruno@clisp.org>
36242
36243         dirent: Document the last fix.
36244         * doc/posix-headers/dirent.texi: Document the bug of missing 'ino_t'.
36245
36246 2010-01-07  Bruno Haible  <bruno@clisp.org>
36247
36248         stdio: Ensure <stdio.h> defines off_t, ssize_t, va_list.
36249         * lib/stdio.in.h: Include <sys/types.h> unconditionally.
36250         * tests/test-stdio.c: Verify that fpos_t, off_t, size_t, ssize_t,
36251         va_list are defined.
36252         * doc/posix-headers/stdio.texi: Document the bug of missing types.
36253         Reported by Eric Blake.
36254
36255 2010-01-07  Bruno Haible  <bruno@clisp.org>
36256
36257         xlist, xoset: Fix missing dependency bug, introduced on 2009-12-13.
36258         * modules/xlist (Depends-on): Add 'list',
36259         * modules/xoset (Depends-on): Add 'oset'.
36260         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
36261
36262 2010-01-07  Bruno Haible  <bruno@clisp.org>
36263
36264         * doc/posix-functions/strcasecmp.texi: Clarify the platforms.
36265         * doc/posix-functions/strncasecmp.texi: Likewise.
36266
36267 2010-01-07  Bruno Haible  <bruno@clisp.org>
36268
36269         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Simplify logic.
36270
36271 2010-01-07  John W. Eaton  <jwe@octave.org>
36272
36273         wctype: allow C++ use
36274         * lib/wctype.in.h: Add extern "C" block for C++.
36275
36276 2010-01-06  Eric Blake  <ebb9@byu.net>
36277
36278         maint.mk: detect incorrect GFDL usage
36279         * top/maint.mk (_GFDL_regexp, sc_GFDL_version): New rule.
36280
36281 2010-01-06  Jim Meyering  <meyering@redhat.com>
36282         and Eric Blake  <ebb9@byu.net>
36283
36284         maint.mk: ignore multi-line copyright in NEWS
36285         * top/maint.mk (NEWS_hash): Add immunity to multi-line copyright.
36286
36287 2010-01-06  Eric Blake  <ebb9@byu.net>
36288
36289         select: add missing dependency
36290         * modules/select-tests (Depends-on): Move sockets dependency...
36291         * modules/select (Depends-on): ...here.
36292         Reported by Ian Beckwith.
36293
36294         doc: regenerate INSTALL
36295         * doc/INSTALL: Reflect recent autoconf update.
36296         * doc/INSTALL.ISO: Likewise.
36297         * doc/INSTALL.UTF-8: Likewise.
36298
36299         pread: fix compilation on glibc
36300         * m4/pread.m4 (gl_FUNC_PREAD): Request all interfaces.
36301         Reported by Ralf Wildenhues.
36302
36303         dirent: fix test failure
36304         * lib/dirent.in.h (includes): Guarantee ino_t.
36305         Reported by Ralf Wildenhues.
36306
36307 2010-01-06  Petr Salinger  <Petr.Salinger@seznam.cz>  (tiny change)
36308
36309         linkat, renameat: avoid bad free
36310         * lib/at-func2.c (at_func2): Fix typo.
36311         Reported via Ian Beckwith, from http://bugs.debian.org/561117.
36312
36313 2010-01-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
36314
36315         cleanup after gl_FUNC_READLINK, for gl_FUNC_SYMLINK test
36316         * m4/readlink.m4 (gl_FUNC_READLINK): Remove conftest.lnk2,
36317         to avoid failure of symlink test later.
36318
36319 2010-01-06  Eric Blake  <ebb9@byu.net>
36320
36321         stdio, unistd: guarantee ssize_t
36322         * lib/unistd.in.h (includes): Ensure that types required by POSIX
36323         2008 are exposed when needed.
36324         * lib/stdio.in.h (includes): Likewise.
36325         Reported by Ralf Wildenhues.
36326
36327 2010-01-06  Paolo Bonzini  <bonzini@gnu.org>
36328
36329         nl_langinfo: do not call AC_CHECK_FUNC_ONCE inside if.
36330         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): Do not call
36331         AC_CHECK_FUNC_ONCE inside if, do not adjust ac_cv_func_nl_langinfo.
36332
36333 2010-01-06  Jim Meyering  <meyering@redhat.com>
36334
36335         readtokens: this module *does* require xalloc.h
36336         It uses only functions that were omitted by the old syntax-check rule.
36337         * lib/readtokens.c: Include "xalloc.h" once again.
36338         * modules/readtokens (Depends-on): Add xalloc.
36339         This reverts part of 0e0f8f12ec241c0f1c1f21f960bb5cf908a0fa3c.
36340
36341 2010-01-05  Eric Blake  <ebb9@byu.net>
36342
36343         maint: support 'make announcement' from a VPATH build
36344         * top/maint.mk (announcement): Look for correct NEWS file.
36345
36346 2010-01-05  Aurelien Jarno  <aurelien@aurel32.net>  (tiny change)
36347
36348         utimens (fdutimens): ignore a negative FD, per contract
36349         * lib/utimens.c (fdutimens) [HAVE_FUTIMENS]: Call futimens only
36350         when we have a valid file descriptor.  Otherwise, using a brand
36351         new glibc (with just-patched futimens that now fails with EBADF)
36352         would cause this function to fail with ENOSYS.
36353         Reported by Guillaume Ayoub in http://bugs.debian.org/563726.
36354         See also http://bugzilla.redhat.com/552320.
36355
36356 2010-01-05  Eric Blake  <ebb9@byu.net>
36357
36358         strcase: document what it provides
36359         * doc/posix-functions/strcasecmp.texi (strcasecmp): Mention the
36360         gnulib module.
36361         * doc/posix-functions/strncasecmp.texi (strncasecmp): Likewise.
36362         Reported by Dilyan Palauzov <Dilyan.Palauzov@aegee.org>.
36363
36364 2010-01-05  Jim Meyering  <meyering@redhat.com>
36365
36366         maint: remove useless inclusions of "xalloc.h"
36367         * lib/getloadavg.c: Remove useless inclusion of "xalloc.h".
36368         * lib/readtokens.c: Likewise.
36369         * lib/same.c: Likewise.
36370         * modules/getloadavg (Depends-on): Remove xalloc.
36371         * modules/readtokens: Likewise.
36372         * modules/same: Likewise.
36373
36374         maint.mk: include 4 more function names in alloca.h-checking regexp
36375         * top/maint.mk (sc_prohibit_xalloc_without_use): Use more complete
36376         regexp.  Before, we would give a false-positive (saying alloca.h
36377         is included unnecessarily) when the only uses involved omitted symbols.
36378
36379         xalloc.h: use consistent formatting
36380         * lib/xalloc.h: Move declarations to start in the first column.
36381
36382 2010-01-05  Eric Blake  <ebb9@byu.net>
36383
36384         mkdir: avoid xalloc
36385         * lib/mkdir.c (includes): Drop unused header.
36386         Reported by John W. Eaton.
36387
36388 2010-01-04  Jim Meyering  <meyering@redhat.com>
36389
36390         nl_langinfo: avoid configure-time syntax error
36391         * m4/nl_langinfo.m4 (gl_FUNC_NL_LANGINFO): When we've already tested
36392         for nl_langinfo.h, AC_CHECK_FUNCS_ONCE([nl_langinfo]) expands to
36393         the empty string.  Don't let that provoke a shell syntax error.
36394
36395         regcomp, regexec, fnmatch: avoid array bounds read error
36396         * lib/regcomp.c (build_equiv_class): From glibc:
36397         Use only the low 24 bits of a findidx return value as an index
36398         into the weights array.  Patch by Ulrich Drepper:
36399         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commit;h=b7d1c5fa30
36400         * lib/regexec.c (check_node_accept_bytes): Likewise.
36401         * lib/fnmatch_loop.c (FCT): Likewise.
36402
36403         regcomp: skip collseq lookup when there are no rules
36404         * lib/regcomp.c (lookup_collation_sequence_value): From glibc:
36405         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a532a41df58
36406
36407         regcomp: recognize ill-formed { } expressions
36408         * lib/regcomp.c (parse_dup_op): From glibc:
36409         http://sourceware.org/git/gitweb.cgi?p=glibc.git;a=commitdiff;h=a87cd2894cb
36410
36411         regcomp: fix typo in comment
36412         * lib/regcomp.c (duplicate_node_closure): Sync from glibc.
36413         s/satisfy/satisfies/.
36414
36415         regcomp: sync from glibc: remove dead store
36416         * lib/regcomp.c (duplicate_node_closure): Remove useless
36417         search_duplicated_node call and dead store.
36418
36419         regcomp: sync from glibc; always use nl_langinfo
36420         * lib/regcomp.c (init_dfa) [!LIBC]: Always use nl_langinfo (CODESET),
36421         now that gnulib provides it.  Recognize UTF8 as well as UTF-8.
36422         * modules/regex (Depends-on): Add nl_langinfo.
36423
36424 2010-01-04  Eric Blake  <ebb9@byu.net>
36425
36426         fdopendir: fix configure test
36427         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for existing file.
36428
36429 2010-01-01  Bruno Haible  <bruno@clisp.org>
36430
36431         wchar: Remove unused configure check.
36432         * m4/wchar.m4 (gl_WCHAR_H): Don't test whether <wchar.h> is standalone.
36433
36434 2010-01-01  Eric Blake  <ebb9@byu.net>
36435
36436         headers: make check of system header explicit
36437         * m4/netdb_h.m4 (gl_HEADER_NETDB): Don't exploit knowledge of
36438         gl_CHECK_NEXT_HEADER internals, but call AC_CHECK_HEADERS_ONCE
36439         ourselves.
36440         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
36441         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36442         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
36443         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise, for gt_INTTYPES_PRI
36444         internals.
36445         * m4/wchar.m4 (gl_WCHAR_H): Skip followup test if header is
36446         missing.
36447         Suggested by Bruno Haible.
36448
36449 2010-01-01  Jim Meyering  <meyering@redhat.com>
36450
36451         ChangeLog: tweak to eliminate unnecessary copyright line
36452         * ChangeLog: Remove a copyright line that was mistakenly updated
36453         by today's update-copyright run.  Reported by Eric Blake.
36454
36455         test-update-copyright: don't let envvar setting cause test failure
36456         * tests/test-update-copyright.sh: Set UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
36457
36458 2010-01-01  Bruno Haible  <bruno@clisp.org>
36459
36460         localename: Avoid gcc warning.
36461         * lib/localename.c (gl_locale_name_thread_unsafe): Don't define this
36462         function if it is not used.
36463
36464 2010-01-01  Jim Meyering  <meyering@redhat.com>
36465
36466         update nearly all FSF copyright year lists to include 2010
36467         Use the same procedure as for 2009, outlined in
36468         http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/20081
36469
36470         version-etc: set COPYRIGHT_YEAR to 2010
36471         * lib/version-etc.c (COPYRIGHT_YEAR): Manually update the enum.
36472
36473 2009-12-31  Eric Blake  <ebb9@byu.net>
36474
36475         doc: correct availability of cygwin 1.5.x getopt
36476         * doc/posix-functions/optarg.texi (optarg): Cygwin supplies getopt
36477         variables.
36478         * doc/posix-functions/opterr.texi (opterr): Likewise.
36479         * doc/posix-functions/optind.texi (optind): Likewise.
36480         * doc/posix-functions/optopt.texi (optopt): Likewise.
36481         * doc/posix-functions/tzname.texi (tzname): Likewise.
36482
36483         openat: update maintainer
36484         * modules/openat (Maintainer): Add myself.
36485
36486         utimens: avoid shadowing warning
36487         * lib/utimens.c (fdutimens, lutimens): Consolidate separate stat
36488         buffers into one, to avoid shadowing, as well as avoiding a
36489         redundant stat.
36490         Reported by Jim Meyering.
36491
36492         test-dup2: avoid compiler warning
36493         * tests/test-dup2.c (is_inheritable): Only define if used.
36494
36495 2010-01-01  Bruno Haible  <bruno@clisp.org>
36496
36497         vasnprintf: Avoid passing an 'rpl_mbstate_t *' to the system's wcrtomb.
36498         * lib/vasnprintf.c (VASNPRINTF): If GNULIB_defined_mbstate_t is
36499         defined, use wctomb instead of wcrtomb.
36500
36501 2010-01-01  Bruno Haible  <bruno@clisp.org>
36502
36503         iconv: Reject native Solaris iconv.
36504         * m4/iconv.m4 (AM_ICONV_LINK): Recognize native Solaris iconv() bug.
36505         * doc/posix-functions/iconv.texi: Document native Solaris iconv() bug.
36506
36507 2009-12-31  Bruno Haible  <bruno@clisp.org>
36508
36509         * tests/test-signal.c (main): Remove test of 'SIG'.
36510
36511 2009-12-31  Bruno Haible  <bruno@clisp.org>
36512
36513         spawn: Fix incomplete fix.
36514         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36515         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36516         warnings for GNULIB_POSIXCHECK again.
36517         Reported by Eric Blake.
36518
36519 2009-12-31  Bruno Haible  <bruno@clisp.org>
36520
36521         Avoid namespace pollution on glibc systems.
36522         * lib/spawn.in.h: Don't include <sched.h>, <signal.h> on glibc systems.
36523         * lib/sys_times.in.h: Don't include <time.h> on glibc systems.
36524         * lib/wchar.in.h: Don't include <stddef.h>, <stdio.h>, <time.h> on
36525         glibc systems.
36526
36527 2009-12-31  Bruno Haible  <bruno@clisp.org>
36528
36529         * m4/wchar.m4 (gl_WCHAR_H): Remove gl_STDDEF_H invocation.
36530         (gl_REPLACE_WCHAR_H): Turn into a no-op.
36531         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Likewise.
36532         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H): Likewise.
36533         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H): Likewise.
36534         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H): Likewise.
36535         * m4/sys_ioctl_h.m4 (gl_REPLACE_SYS_IOCTL_H): Likewise.
36536
36537 2009-12-31  Bruno Haible  <bruno@clisp.org>
36538
36539         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Invoke
36540         gl_CHECK_NEXT_HEADERS before testing ac_cv_header_sys_select_h, not
36541         afterwards.
36542
36543 2009-12-31  Bruno Haible  <bruno@clisp.org>
36544
36545         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H_DEFAULTS): Don't set
36546         SYS_UTSNAME_H.
36547
36548 2009-12-31  Bruno Haible  <bruno@clisp.org>
36549
36550         spawn: Fix misapplied patch.
36551         * lib/spawn.in.h (posix_spawnattr_getflags, posix_spawnattr_setflags,
36552         posix_spawnattr_getpgroup, posix_spawnattr_setpgroup): Correct the link
36553         warnings for GNULIB_POSIXCHECK.
36554
36555 2009-12-31  Bruno Haible  <bruno@clisp.org>
36556
36557         times: Update after sys_times changed.
36558         * m4/times.m4: New file, extracted from modules/times. Set HAVE_TIMES.
36559         * modules/times (Files): Add it.
36560         (configure.ac): Invoke gl_FUNC_TIMES.
36561
36562 2009-12-31  Bruno Haible  <bruno@clisp.org>
36563
36564         Use AC_C_INLINE where necessary.
36565         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Require AC_C_INLINE.
36566         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
36567         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
36568         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
36569         * m4/mbfile.m4 (gl_MBFILE): Likewise.
36570         * m4/mbiter.m4 (gl_MBITER): Likewise.
36571         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
36572         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
36573         * m4/wait-process.m4 (gl_WAIT_PROCESS): Likewise.
36574         * modules/u64 (configure.ac): Likewise.
36575
36576 2009-12-31  Bruno Haible  <bruno@clisp.org>
36577
36578         Use AC_C_INLINE instead of module 'inline' where possible.
36579         * modules/inline (Description): Clarify purpose.
36580         * m4/count-one-bits.m4 (gl_COUNT_ONE_BITS): Require AC_C_INLINE.
36581         * modules/count-one-bits (Depends-on): Remove inline.
36582         * m4/openat.m4 (gl_PREREQ_OPENAT): Require AC_C_INLINE.
36583         * modules/openat (Depends-on): Remove inline.
36584         * modules/fdutimensat (Depends-on, configure.ac): Require AC_C_INLINE
36585         instead of depending on module 'inline'.
36586         * modules/filevercmp (Depends-on, configure.ac): Likewise.
36587         * modules/unicase/cased (Depends-on, configure.ac): Likewise.
36588         * modules/unicase/ignorable (Depends-on, configure.ac): Likewise.
36589         * modules/unictype/category-of (Depends-on, configure.ac): Likewise.
36590         * modules/unictype/category-test (Depends-on, configure.ac): Likewise.
36591         * modules/unictype/ctype-alnum (Depends-on, configure.ac): Likewise.
36592         * modules/unictype/ctype-alpha (Depends-on, configure.ac): Likewise.
36593         * modules/unictype/ctype-blank (Depends-on, configure.ac): Likewise.
36594         * modules/unictype/ctype-cntrl (Depends-on, configure.ac): Likewise.
36595         * modules/unictype/ctype-digit (Depends-on, configure.ac): Likewise.
36596         * modules/unictype/ctype-graph (Depends-on, configure.ac): Likewise.
36597         * modules/unictype/ctype-lower (Depends-on, configure.ac): Likewise.
36598         * modules/unictype/ctype-print (Depends-on, configure.ac): Likewise.
36599         * modules/unictype/ctype-punct (Depends-on, configure.ac): Likewise.
36600         * modules/unictype/ctype-space (Depends-on, configure.ac): Likewise.
36601         * modules/unictype/ctype-upper (Depends-on, configure.ac): Likewise.
36602         * modules/unictype/ctype-xdigit (Depends-on, configure.ac): Likewise.
36603         * modules/unictype/property-alphabetic (Depends-on, configure.ac):
36604         Likewise.
36605         * modules/unictype/property-ascii-hex-digit (Depends-on,
36606         configure.ac): Likewise.
36607         * modules/unictype/property-bidi-arabic-digit (Depends-on,
36608         configure.ac): Likewise.
36609         * modules/unictype/property-bidi-arabic-right-to-left (Depends-on,
36610         configure.ac): Likewise.
36611         * modules/unictype/property-bidi-block-separator (Depends-on,
36612         configure.ac): Likewise.
36613         * modules/unictype/property-bidi-boundary-neutral (Depends-on,
36614         configure.ac): Likewise.
36615         * modules/unictype/property-bidi-common-separator (Depends-on,
36616         configure.ac): Likewise.
36617         * modules/unictype/property-bidi-control (Depends-on, configure.ac):
36618         Likewise.
36619         * modules/unictype/property-bidi-embedding-or-override (Depends-on,
36620         configure.ac): Likewise.
36621         * modules/unictype/property-bidi-eur-num-separator (Depends-on,
36622         configure.ac): Likewise.
36623         * modules/unictype/property-bidi-eur-num-terminator (Depends-on,
36624         configure.ac): Likewise.
36625         * modules/unictype/property-bidi-european-digit (Depends-on,
36626         configure.ac): Likewise.
36627         * modules/unictype/property-bidi-hebrew-right-to-left (Depends-on,
36628         configure.ac): Likewise.
36629         * modules/unictype/property-bidi-left-to-right (Depends-on,
36630         configure.ac): Likewise.
36631         * modules/unictype/property-bidi-non-spacing-mark (Depends-on,
36632         configure.ac): Likewise.
36633         * modules/unictype/property-bidi-other-neutral (Depends-on,
36634         configure.ac): Likewise.
36635         * modules/unictype/property-bidi-pdf (Depends-on, configure.ac):
36636         Likewise.
36637         * modules/unictype/property-bidi-segment-separator (Depends-on,
36638         configure.ac): Likewise.
36639         * modules/unictype/property-bidi-whitespace (Depends-on,
36640         configure.ac): Likewise.
36641         * modules/unictype/property-combining (Depends-on, configure.ac):
36642         Likewise.
36643         * modules/unictype/property-composite (Depends-on, configure.ac):
36644         Likewise.
36645         * modules/unictype/property-currency-symbol (Depends-on,
36646         configure.ac): Likewise.
36647         * modules/unictype/property-dash (Depends-on, configure.ac): Likewise.
36648         * modules/unictype/property-decimal-digit (Depends-on, configure.ac):
36649         Likewise.
36650         * modules/unictype/property-default-ignorable-code-point (Depends-on,
36651         configure.ac): Likewise.
36652         * modules/unictype/property-deprecated (Depends-on, configure.ac):
36653         Likewise.
36654         * modules/unictype/property-diacritic (Depends-on, configure.ac):
36655         Likewise.
36656         * modules/unictype/property-extender (Depends-on, configure.ac):
36657         Likewise.
36658         * modules/unictype/property-format-control (Depends-on, configure.ac):
36659         Likewise.
36660         * modules/unictype/property-grapheme-base (Depends-on, configure.ac):
36661         Likewise.
36662         * modules/unictype/property-grapheme-extend (Depends-on, configure.ac):
36663         Likewise.
36664         * modules/unictype/property-grapheme-link (Depends-on, configure.ac):
36665         Likewise.
36666         * modules/unictype/property-hex-digit (Depends-on, configure.ac):
36667         Likewise.
36668         * modules/unictype/property-hyphen (Depends-on, configure.ac):
36669         Likewise.
36670         * modules/unictype/property-id-continue (Depends-on, configure.ac):
36671         Likewise.
36672         * modules/unictype/property-id-start (Depends-on, configure.ac):
36673         Likewise.
36674         * modules/unictype/property-ideographic (Depends-on, configure.ac):
36675         Likewise.
36676         * modules/unictype/property-ids-binary-operator (Depends-on,
36677         configure.ac): Likewise.
36678         * modules/unictype/property-ids-trinary-operator (Depends-on,
36679         configure.ac): Likewise.
36680         * modules/unictype/property-ignorable-control (Depends-on,
36681         configure.ac): Likewise.
36682         * modules/unictype/property-iso-control (Depends-on, configure.ac):
36683         Likewise.
36684         * modules/unictype/property-join-control (Depends-on, configure.ac):
36685         Likewise.
36686         * modules/unictype/property-left-of-pair (Depends-on, configure.ac):
36687         Likewise.
36688         * modules/unictype/property-line-separator (Depends-on, configure.ac):
36689         Likewise.
36690         * modules/unictype/property-logical-order-exception (Depends-on,
36691         configure.ac): Likewise.
36692         * modules/unictype/property-lowercase (Depends-on, configure.ac):
36693         Likewise.
36694         * modules/unictype/property-math (Depends-on, configure.ac): Likewise.
36695         * modules/unictype/property-non-break (Depends-on, configure.ac):
36696         Likewise.
36697         * modules/unictype/property-not-a-character (Depends-on, configure.ac):
36698         Likewise.
36699         * modules/unictype/property-numeric (Depends-on, configure.ac):
36700         Likewise.
36701         * modules/unictype/property-other-alphabetic (Depends-on,
36702         configure.ac): Likewise.
36703         * modules/unictype/property-other-default-ignorable-code-point
36704         (Depends-on, configure.ac): Likewise.
36705         * modules/unictype/property-other-grapheme-extend (Depends-on,
36706         configure.ac): Likewise.
36707         * modules/unictype/property-other-id-continue (Depends-on,
36708         configure.ac): Likewise.
36709         * modules/unictype/property-other-id-start (Depends-on, configure.ac):
36710         Likewise.
36711         * modules/unictype/property-other-lowercase (Depends-on, configure.ac):
36712         Likewise.
36713         * modules/unictype/property-other-math (Depends-on, configure.ac):
36714         Likewise.
36715         * modules/unictype/property-other-uppercase (Depends-on, configure.ac):
36716         Likewise.
36717         * modules/unictype/property-paired-punctuation (Depends-on,
36718         configure.ac): Likewise.
36719         * modules/unictype/property-paragraph-separator (Depends-on,
36720         configure.ac): Likewise.
36721         * modules/unictype/property-pattern-syntax (Depends-on, configure.ac):
36722         Likewise.
36723         * modules/unictype/property-pattern-white-space (Depends-on,
36724         configure.ac): Likewise.
36725         * modules/unictype/property-private-use (Depends-on, configure.ac):
36726         Likewise.
36727         * modules/unictype/property-punctuation (Depends-on, configure.ac):
36728         Likewise.
36729         * modules/unictype/property-quotation-mark (Depends-on, configure.ac):
36730         Likewise.
36731         * modules/unictype/property-radical (Depends-on, configure.ac):
36732         Likewise.
36733         * modules/unictype/property-sentence-terminal (Depends-on,
36734         configure.ac): Likewise.
36735         * modules/unictype/property-soft-dotted (Depends-on, configure.ac):
36736         Likewise.
36737         * modules/unictype/property-space (Depends-on, configure.ac): Likewise.
36738         * modules/unictype/property-terminal-punctuation (Depends-on,
36739         configure.ac): Likewise.
36740         * modules/unictype/property-titlecase (Depends-on, configure.ac):
36741         Likewise.
36742         * modules/unictype/property-unassigned-code-value (Depends-on,
36743         configure.ac): Likewise.
36744         * modules/unictype/property-unified-ideograph (Depends-on,
36745         configure.ac): Likewise.
36746         * modules/unictype/property-uppercase (Depends-on, configure.ac):
36747         Likewise.
36748         * modules/unictype/property-variation-selector (Depends-on,
36749         configure.ac): Likewise.
36750         * modules/unictype/property-white-space (Depends-on, configure.ac):
36751         Likewise.
36752         * modules/unictype/property-xid-continue (Depends-on, configure.ac):
36753         Likewise.
36754         * modules/unictype/property-xid-start (Depends-on, configure.ac):
36755         Likewise.
36756         * modules/unictype/property-zero-width (Depends-on, configure.ac):
36757         Likewise.
36758         * modules/unictype/syntax-c-ident (Depends-on, configure.ac): Likewise.
36759         * modules/unictype/syntax-java-ident (Depends-on, configure.ac):
36760         Likewise.
36761
36762 2009-12-31  Bruno Haible  <bruno@clisp.org>
36763
36764         Remove unnecessary AC_C_INLINE invocation.
36765         * m4/popen.m4 (gl_PREREQ_POPEN): Don't invoke AC_C_INLINE. Not needed
36766         since 2009-08-21.
36767
36768 2009-12-31  Jim Meyering  <meyering@redhat.com>
36769
36770         maint.mk: don't require explicit gpg_key_ID in cfg.mk
36771         * top/maint.mk (gpg_key_ID): Derive key ID from signed release tag.
36772         With this change, we can all remove the gpg_key_ID = ... definition
36773         from our respective cfg.mk files.
36774
36775         maint.mk: create announcement template in ~/, not in /tmp
36776         * top/maint.mk (emit_upload_commands): Adjust.
36777         (release-prep): Emit into ~/announce-..., not /tmp/announce-...
36778         Remove temporary file, .ci-msg.
36779
36780 2009-12-31  Eric Blake  <ebb9@byu.net>
36781
36782         link-warning: always build headers with link warnings
36783         * modules/arpa_inet (Makefile.am): Always build replacement
36784         header.
36785         * modules/ctype (Makefile.am): Likewise.
36786         * modules/dirent (Makefile.am): Likewise.
36787         * modules/inttypes (Makefile.am): Likewise.
36788         * modules/langinfo (Makefile.am): Likewise.
36789         * modules/locale (Makefile.am): Likewise.
36790         * modules/spawn (Makefile.am): Likewise.
36791         * modules/sys_file (Makefile.am): Likewise.
36792         * modules/sys_ioctl (Makefile.am): Likewise.
36793         * modules/sys_select (Makefile.am): Likewise.
36794         * modules/sys_socket (Makefile.am): Likewise.
36795         * modules/sys_times (Makefile.am): Likewise.
36796         * modules/sys_utsname (Makefile.am): Likewise.
36797         * modules/sys_wait (Makefile.am): Likewise.
36798         * modules/wchar (Makefile.am): Likewise.
36799         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET)
36800         (gl_ARPA_INET_H_DEFAULTS): Drop unneeded variable.
36801         * m4/ctype.m4 (gl_CTYPE_H_DEFAULTS): Likewise.
36802         * m4/isblank.m4 (gl_FUNC_ISBLANK): Likewise.
36803         * m4/dirent_h.m4 (gl_REPLACE_DIRENT_H, gl_DIRENT_H_DEFAULTS):
36804         Likewise.
36805         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
36806         * m4/langinfo_h.m4 (gl_LANGINFO_H): Likewise.
36807         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_H_DEFAULTS):
36808         Likewise.
36809         * m4/spawn_h.m4 (gl_REPLACE_SPAWN_H, gl_SPAWN_H_DEFAULTS):
36810         Likewise.
36811         * m4/sys_file_h.m4 (gl_HEADER_SYS_FILE_H): Likewise.
36812         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H, gl_REPLACE_SYS_IOCTL_H)
36813         (gl_SYS_IOCTL_H_DEFAULTS): Likewise.
36814         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
36815         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Likewise.
36816         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36817         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36818         * m4/wchar.m4 (gl_WCHAR_H, gl_REPLACE_WCHAR_H)
36819         (gl_WCHAR_H_DEFAULTS): Likewise.
36820
36821 2009-12-31  Eric Blake  <ebb9@byu.net>
36822
36823         signal, spawn: use link warnings
36824         * lib/signal.in.h (sigset_t): Make unconditional.
36825         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset)
36826         (sigpending, sigprocmask, sigaction): Add link warnings.
36827         * lib/spawn.in.h (posix_spawn, posix_spawnp, posix_spawnattr_init)
36828         (posix_spawnattr_destroy, posix_spawnattr_getsigdefault)
36829         (posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask)
36830         (posix_spawnattr_setsigmask, posix_spawnattr_getflags)
36831         (posix_spawnattr_setflags, posix_spawnattr_getpgroup)
36832         (posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy)
36833         (posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam)
36834         (posix_spawnattr_setschedparam, posix_spawn_file_actions_init)
36835         (posix_spawn_file_actions_destroy)
36836         (posix_spawn_file_actions_addopen)
36837         (posix_spawn_file_actions_addclose)
36838         (posix_spawn_file_actions_adddup2): Likewise.
36839         * m4/signal_h.m4 (gl_SIGNAL_H): Guarantee uid_t.
36840         * tests/test-signal.c (main): Enhance test.
36841
36842         spawn: improve wrapper support
36843         * m4/spawn_h.m4 (gl_SPAWN_H): Check for type existence.
36844         (gl_SPAWN_H_DEFAULTS): New defaults.
36845         * modules/spawn (Makefile.am): Substitute them.
36846         * lib/spawn.in.h: (posix_spawnattr_t, posix_spawn_file_actions_t):
36847         Only declare if missing or broken.
36848
36849         sys_times, sys_utsname: use include_next
36850         * m4/sys_times_h.m4 (gl_SYS_TIMES_H): Support wrapping an existing
36851         header.
36852         (gl_SYS_TIMES_H_DEFAULTS): Add another variable.
36853         * m4/sys_utsname_h.m4 (gl_SYS_UTSNAME_H)
36854         (gl_SYS_UTSNAME_H_DEFAULTS): Likewise.
36855         * modules/sys_times (Depends-on): Add include_next.
36856         (Makefile.am): Substitute additional values.
36857         * modules/sys_utsname (Depends-on, Makefile.am): Likewise.
36858         * lib/sys_times.in.h (includes): Include native header, if
36859         available.
36860         * lib/sys_utsname.in.h (includes): Likewise.
36861         * tests/test-sys_times.c (main): Enhance test.
36862
36863         fdutimensat: revert prior patch
36864         * modules/fdutimensat (Depends-on): Re-add inline; it is needed by
36865         utimens.h.
36866         Reported by Bruno Haible.
36867
36868 2009-12-30  Eric Blake  <ebb9@byu.net>
36869
36870         sys_wait: drop link-warning dependency
36871         * modules/sys_wait (Depends-on, Makefile.am): Drop unneeded
36872         link-warning efforts.
36873         * lib/sys_wait.in.h: Likewise.
36874
36875         fdutimensat: remove bogus dependency
36876         * modules/fdutimensat (Depends-on): Drop inline.
36877
36878         unistd: fix typo
36879         * lib/unistd.in.h (linkat) [GNULIB_POSIXCHECK]: Fix typo.
36880
36881 2009-12-30  Bruno Haible  <bruno@clisp.org>
36882
36883         Fix compilation error with Solaris cc.
36884         * lib/unicase/u8-is-invariant.c: Include <stdbool.h>.
36885         * lib/unicase/u16-is-invariant.c: Likewise.
36886         * lib/unicase/u32-is-invariant.c: Likewise.
36887         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
36888
36889 2009-12-30  Bruno Haible  <bruno@clisp.org>
36890
36891         Fix test crash.
36892         * tests/test-localename.c (test_locale_name_thread): Skip unavailable
36893         locales.
36894         Reported by Simon Josefsson <simon@josefsson.org>.
36895
36896 2009-12-30  Bruno Haible  <bruno@clisp.org>
36897
36898         Fix compilation error on most platforms.
36899         * tests/test-localename.c (categories): Define only if HAVE_NEWLOCALE.
36900         Reported by Simon Josefsson <simon@josefsson.org>
36901         and Nelson H. F. Beebe <beebe@math.utah.edu>.
36902
36903 2009-12-30  Eric Blake  <ebb9@byu.net>
36904
36905         futimens, utimensat: work around ntfs-3g bug
36906         * lib/utimensat.c (rpl_utimensat): Drop attempts to cache whether
36907         a ctime bug is present, and expand workaround to cover ntfs-3g.
36908         * lib/utimens.c (fdutimens, lutimens): Likewise.
36909         (utimensat_ctime_really, detect_ctime_bug): Drop cache mechanism.
36910         (validate_timespec): Adjust return value.
36911         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Update comment.
36912         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
36913         Reported by ctrn3e8 <ctrn3e8@gmail.com>.
36914
36915 2009-12-29  Eric Blake  <ebb9@byu.net>
36916
36917         link-warning: make usage consistent
36918         * modules/ctype (Depends-on): Add link-warning.
36919         (Makefile.am): Update rules accordingly.
36920         * modules/langinfo (Depends-on, Makefile.am): Likewise.
36921         * modules/locale (Depends-on, Makefile.am): Likewise.
36922         * modules/sys_file (Makefile.am): Likewise.
36923         * modules/getopt-posix (Makefile.am): Delete unused link warning
36924         efforts.
36925         * lib/ctype.in.h (GL_LINK_WARNING): Ensure definition before use.
36926         * lib/langinfo.in.h (GL_LINK_WARNING): Likewise.
36927         * lib/locale.in.h (GL_LINK_WARNING): Likewise.
36928         * lib/sys_file.in.h (GL_LINK_WARNING): Likewise.
36929
36930         stdio: remove unused variables
36931         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Remove unused variables.
36932         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Likewise.
36933         * m4/ftello.m4 (gl_FUNC_FTELLO): Likewise.
36934
36935         tests: test more substitute headers
36936         * modules/ctype-tests: New file.
36937         * modules/dirent-tests: Likewise.
36938         * modules/spawn-tests: Likewise.
36939         * modules/sys_file-tests: Likewise.
36940         * modules/sys_ioctl-tests: Likewise.
36941         * modules/sys_wait-tests: Likewise.
36942         * tests/test-ctype.c: Likewise.
36943         * tests/test-dirent.c: Likewise.
36944         * tests/test-spawn.c: Likewise.
36945         * tests/test-sys_file.c: Likewise.
36946         * tests/test-sys_ioctl.c: Likewise.
36947         * tests/test-sys_wait.c: Likewise.
36948         * m4/spawn_h.m4 (gl_SPAWN_H): Replace header if it is missing.
36949         * lib/sys_file.in.h (LOCK_SH, LOCK_EX, LOCK_UN, LOCK_NB): Provide
36950         whether or not flock is in use.
36951
36952         tests: remove License section from module
36953         * modules/arpa_inet-tests: Remove unneeded section.
36954         * modules/byteswap-tests: Likewise.
36955         * modules/ceilf-tests: Likewise.
36956         * modules/ceill-tests: Likewise.
36957         * modules/crypto/des-tests: Likewise.
36958         * modules/crypto/gc-arcfour-tests: Likewise.
36959         * modules/crypto/gc-arctwo-tests: Likewise.
36960         * modules/crypto/gc-des-tests: Likewise.
36961         * modules/crypto/gc-hmac-md5-tests: Likewise.
36962         * modules/crypto/gc-hmac-sha1-tests: Likewise.
36963         * modules/crypto/gc-md2-tests: Likewise.
36964         * modules/crypto/gc-md4-tests: Likewise.
36965         * modules/crypto/gc-md5-tests: Likewise.
36966         * modules/crypto/gc-pbkdf2-sha1-tests: Likewise.
36967         * modules/crypto/gc-rijndael-tests: Likewise.
36968         * modules/crypto/gc-sha1-tests: Likewise.
36969         * modules/crypto/gc-tests: Likewise.
36970         * modules/crypto/md2-tests: Likewise.
36971         * modules/crypto/md4-tests: Likewise.
36972         * modules/fcntl-h-tests: Likewise.
36973         * modules/floorf-tests: Likewise.
36974         * modules/floorl-tests: Likewise.
36975         * modules/frexp-nolibm-tests: Likewise.
36976         * modules/frexp-tests: Likewise.
36977         * modules/frexpl-nolibm-tests: Likewise.
36978         * modules/frexpl-tests: Likewise.
36979         * modules/getaddrinfo-tests: Likewise.
36980         * modules/inttypes-tests: Likewise.
36981         * modules/isfinite-tests: Likewise.
36982         * modules/isinf-tests: Likewise.
36983         * modules/ldexpl-tests: Likewise.
36984         * modules/locale-tests: Likewise.
36985         * modules/math-tests: Likewise.
36986         * modules/netdb-tests: Likewise.
36987         * modules/netinet_in-tests: Likewise.
36988         * modules/printf-frexp-tests: Likewise.
36989         * modules/printf-frexpl-tests: Likewise.
36990         * modules/priv-set-tests: Likewise.
36991         * modules/random_r-tests: Likewise.
36992         * modules/round-tests: Likewise.
36993         * modules/roundf-tests: Likewise.
36994         * modules/roundl-tests: Likewise.
36995         * modules/search-tests: Likewise.
36996         * modules/select-tests: Likewise.
36997         * modules/signal-tests: Likewise.
36998         * modules/stdbool-tests: Likewise.
36999         * modules/stddef-tests: Likewise.
37000         * modules/stdint-tests: Likewise.
37001         * modules/stdio-tests: Likewise.
37002         * modules/stdlib-tests: Likewise.
37003         * modules/string-tests: Likewise.
37004         * modules/strings-tests: Likewise.
37005         * modules/sys_select-tests: Likewise.
37006         * modules/sys_socket-tests: Likewise.
37007         * modules/sys_stat-tests: Likewise.
37008         * modules/sys_time-tests: Likewise.
37009         * modules/sys_utsname-tests: Likewise.
37010         * modules/sysexits-tests: Likewise.
37011         * modules/time-tests: Likewise.
37012         * modules/trunc-tests: Likewise.
37013         * modules/truncf-tests: Likewise.
37014         * modules/truncl-tests: Likewise.
37015         * modules/tsearch-tests: Likewise.
37016         * modules/unistd-tests: Likewise.
37017         * modules/wchar-tests: Likewise.
37018         * modules/wctype-tests: Likewise.
37019
37020         tests: fix license on several tests
37021         * tests/test-des.c: Update to GPLv3+.
37022         * tests/test-flock.c: Likewise.
37023         * tests/test-fsync.c: Likewise.
37024         * tests/test-futimens.h: Likewise.
37025         * tests/test-gc-arcfour.c: Likewise.
37026         * tests/test-gc-arctwo.c: Likewise.
37027         * tests/test-gc-des.c: Likewise.
37028         * tests/test-gc-hmac-md5.c: Likewise.
37029         * tests/test-gc-hmac-sha1.c: Likewise.
37030         * tests/test-gc-md2.c: Likewise.
37031         * tests/test-gc-md4.c: Likewise.
37032         * tests/test-gc-md5.c: Likewise.
37033         * tests/test-gc-pbkdf2-sha1.c: Likewise.
37034         * tests/test-gc-rijndael.c: Likewise.
37035         * tests/test-gc-sha1.c: Likewise.
37036         * tests/test-gc.c: Likewise.
37037         * tests/test-getcwd.c: Likewise.
37038         * tests/test-link.c: Likewise.
37039         * tests/test-link.h: Likewise.
37040         * tests/test-lutimens.h: Likewise.
37041         * tests/test-md2.c: Likewise.
37042         * tests/test-md4.c: Likewise.
37043         * tests/test-mkdir.h: Likewise.
37044         * tests/test-rename.c: Likewise.
37045         * tests/test-rename.h: Likewise.
37046         * tests/test-safe-alloc.c: Likewise.
37047         * tests/test-utimens-common.h: Likewise.
37048         * tests/test-utimens.h: Likewise.
37049
37050         maint: sync license texts
37051         * config/srclist.txt: Add gpl-1.3.texi, lgpl-1.3.texi.
37052         * doc/gpl-3.0.texi: Revert copyright year update.
37053         * doc/lgpl-3.0.texi: Likewise.
37054
37055 2009-12-29  Jim Meyering  <meyering@redhat.com>
37056
37057         update nearly all FSF copyright year lists to include 2009
37058         The files named by the following are exempted:
37059             grep -v '^#' config/srclist.txt|grep -v '^$' | while read src dst; do
37060               test -f "$dst" && { echo "$dst"; continue; }
37061               test -d "$dst" || continue
37062               echo "$dst"/$(basename "$src")
37063             done > exempt
37064             git ls-files tests/unictype >> exempt
37065         In the remaining files, convert to all-interval notation if
37066         - there is already at least one year interval like 2000-2003
37067         - the file is maintained by me
37068         - the file is in lib/uni*/, where that style already prevails
37069         Otherwise, use update-copyright's default.
37070
37071 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37072         and Eric Blake  <ebb9@byu.net>
37073
37074         tests: don't require debug system() to pass
37075         * tests/test-lstat.h (test_lstat_func): Move debug cleanup...
37076         * tests/test-rmdir.h (test_rmdir_func): Likewise.
37077         * tests/test-unlink.h (test_unlink_func): Likewise.
37078         * tests/test-fstatat.c (main): ...into callers.
37079         * tests/test-lstat.c (main): Likewise.
37080         * tests/test-rmdir.c (main): Likewise.
37081         * tests/test-unlink.c (main): Likewise.
37082         * tests/test-unlinkat.c (main): Likewise.
37083         * tests/test-areadlink-with-size.c (main): Don't require a
37084         debug-only system call to pass, aiding cross-testing to mingw.
37085         * tests/test-areadlink.c (main): Likewise.
37086         * tests/test-areadlinkat-with-size.c (main): Likewise.
37087         * tests/test-areadlinkat.c (main): Likewise.
37088         * tests/test-canonicalize-lgpl.c (main): Likewise.
37089         * tests/test-canonicalize.c (main): Likewise.
37090         * tests/test-chown.c (main): Likewise.
37091         * tests/test-fchownat.c (main): Likewise.
37092         * tests/test-lchown.c (main): Likewise.
37093         * tests/test-fdutimensat.c (main): Likewise.
37094         * tests/test-futimens.c (main): Likewise.
37095         * tests/test-link.c (main): Likewise.
37096         * tests/test-linkat.c (main): Likewise.
37097         * tests/test-mkdir.c (main): Likewise.
37098         * tests/test-mkdirat.c (main): Likewise.
37099         * tests/test-mkfifo.c (main): Likewise.
37100         * tests/test-mkfifoat.c (main): Likewise.
37101         * tests/test-mknod.c (main): Likewise.
37102         * tests/test-readlink.c (main): Likewise.
37103         * tests/test-remove.c (main): Likewise.
37104         * tests/test-rename.c (main): Likewise.
37105         * tests/test-renameat.c (main): Likewise.
37106         * tests/test-symlink.c (main): Likewise.
37107         * tests/test-symlinkat.c (main): Likewise.
37108         * tests/test-utimens.c (main): Likewise.
37109         * tests/test-utimensat.c (main): Likewise.
37110
37111 2009-12-29  Simon Josefsson  <simon@josefsson.org>
37112
37113         * modules/selinux-h (selinux/selinux.h, selinux/context.h): Depend
37114         on $(UNUSED_PARAMETER_H) to avoid build failure.
37115
37116 2009-12-28  Jim Meyering  <meyering@redhat.com>
37117
37118         update-copyright: you may specify a max. line length other than 72
37119         * build-aux/update-copyright: Honor $UPDATE_COPYRIGHT_MAX_LINE_LENGTH.
37120
37121         maint: use consistent FSF copyright line syntax
37122         * lib/posixtm.c: Add missing comma in FSF copyright line.
37123         * lib/posixtm.h: Likewise.
37124         * lib/getugroups.c: Add missing ", Inc.".
37125
37126         pmccabe2html: emit consistent FSF copyright; remove trailing blanks
37127         * build-aux/pmccabe2html: Insert comma before "Inc." in emitted
37128         FSF copyright line.  Remove trailing blanks.
37129
37130 2009-12-28  Eric Blake  <ebb9@byu.net>
37131
37132         test-dup2: reduce dependencies
37133         * modules/cloexec (Configure.ac): Set witness.
37134         * modules/dup2-tests (Depends-on): Drop cloexec.
37135         * tests/test-dup2.c (main): Skip portion of test if cloexec module
37136         not present.
37137         Suggested by Bruno Haible.
37138
37139 2009-12-26  Bruno Haible  <bruno@clisp.org>
37140
37141         Remove an unneeded dependency.
37142         * modules/fseterr (Depends-on): Remove dup2.
37143
37144 2009-12-26  Eric Blake  <ebb9@byu.net>
37145
37146         tests: use macros.h in more places
37147         * tests/macros.h (ASSERT): Depend on ASSERT_STREAM.
37148         (ASSERT_STREAM): Provide default of stderr.
37149         * tests/test-dirent-safer.c: Include macros.h, using alternate
37150         stream for assertions.
37151         * tests/test-dup-safer.c: Likewise.
37152         * tests/test-freopen-safer.c: Likewise.
37153         * tests/test-getopt.c: Likewise.
37154         * tests/test-openat-safer.c: Likewise.
37155         * tests/test-pipe.c: Likewise.
37156         * tests/test-popen-safer.c: Likewise.
37157         * modules/dirent-safer-tests (Files): Include macros.h.
37158         * modules/unistd-safer-tests (Files): Likewise.
37159         * modules/freopen-safer-tests (Files): Likewise.
37160         * modules/getopt-posix-tests (Files): Likewise.
37161         * modules/openat-safer-tests (Files): Likewise.
37162         * modules/pipe-tests (Files): Likewise.
37163
37164 2009-12-26  Bruno Haible  <bruno@clisp.org>
37165
37166         javacomp: Portability fix.
37167         * m4/javacomp.m4 (gt_JAVACOMP): Fix creation of conftestver.class so
37168         that it also works on Solaris.
37169
37170 2009-12-26  Bruno Haible  <bruno@clisp.org>
37171
37172         localename: Fix storage allocation of gl_locale_name_thread's result.
37173         * lib/localename.c (SIZE_BITS, string_hash, struct hash_node,
37174         HASH_TABLE_SIZE, struniq_hash_table, struniq_lock, struniq): Define on
37175         all platforms that have 'uselocale'.
37176         (gl_locale_name_thread_unsafe): New function, extracted from
37177         gl_locale_name_thread.
37178         (gl_locale_name_thread): Call struniq on all platforms that have
37179         'uselocale'.
37180         * tests/test-localename.c (test_locale_name_thread): Check that the
37181         resulting strings are permanently allocated.
37182         * modules/localename-tests (Depends-on): Add strdup.
37183
37184 2009-12-26  Bruno Haible  <bruno@clisp.org>
37185
37186         * tests/test-localename.c (categories): Fill in the strings.
37187
37188 2009-12-26  Jim Meyering  <meyering@redhat.com>
37189
37190         isdir: complete the removal of m4/isdir.m4
37191         * modules/isdir (configure.ac): Remove reference to gl_ISDIR.
37192
37193         isdir: clean up, since at least grep still uses it
37194         * lib/isdir.c: Include "isdir.h".
37195         (S_ISDIR): Remove now-unneeded definition.
37196         * modules/isdir (Files): Add lib/isdir.h.
37197         * lib/isdir.h: New file, with declaration.
37198         * m4/isdir.m4: Remove file -- unneeded.
37199
37200 2009-12-25  Bruno Haible  <bruno@clisp.org>
37201
37202         selinux-h: Make generated .h files standalone.
37203         * lib/se-context.in.h: Arrange to include _GL_UNUSED_PARAMETER
37204         definition. Use _GL_UNUSED_PARAMETER instead of _GL_UNUSED.
37205         * lib/se-selinux.in.h: Likewise.
37206         * modules/selinux-h (Depends-on): Add unused-parameter.
37207         (Makefile.am): Insert definition of _GL_UNUSED_PARAMETER into
37208         selinux/selinux.h and selinux/context.h.
37209         Suggested by Eric Blake.
37210
37211 2009-12-25  Bruno Haible  <bruno@clisp.org>
37212
37213         Move gl_FCNTL_O_FLAGS to a separate .m4 file.
37214         * m4/fcntl-o.m4: New file, extracted from m4/fcntl_h.m4.
37215         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): Remove macro.
37216         * modules/fcntl-h (Files): Add m4/fcntl-o.m4.
37217         * modules/localcharset (Files): Likewise. Remove m4/fcntl_h.m4.
37218
37219 2009-12-24  Bruno Haible  <bruno@clisp.org>
37220
37221         openat: Fix warning.
37222         * lib/openat-proc.c: Include <unistd.h>.
37223
37224 2009-12-24  Bruno Haible  <bruno@clisp.org>
37225
37226         New module 'unused-parameter'.
37227         * build-aux/unused-parameter.h: New file, extracted from earlier
37228         gnulib-common.m4.
37229         * modules/unused-parameter: New file.
37230         * lib/unistr.h: Include unused-parameter.h.
37231         (u32_mbtouc_unsafe, u32_mbtouc): Use _GL_UNUSED_PARAMETER instead of
37232         _GL_UNUSED.
37233         * modules/unistr/base (Depends-on): Add unused-parameter.
37234
37235 2009-12-24  Bruno Haible  <bruno@clisp.org>
37236
37237         Add missing dependencies to 'extensions' module.
37238         * m4/extensions.m4: Add comment.
37239         * modules/accept4 (Depends-on): Add extensions.
37240         * modules/dup3 (Depends-on): Likewise.
37241         * modules/fcntl (Depends-on): Likewise.
37242         * modules/futimens (Depends-on): Likewise.
37243         * modules/mknod (Depends-on): Likewise.
37244         * modules/pipe2 (Depends-on): Likewise.
37245         * modules/stat-time (Depends-on): Likewise.
37246         * modules/strcasestr-simple (Depends-on): Likewise.
37247         * modules/strsignal (Depends-on): Likewise.
37248         * modules/utimensat (Depends-on): Likewise.
37249         * modules/localcharset (Depends-on): Likewise. Needed because of
37250         gl_FCNTL_O_FLAGS.
37251         * modules/wcrtomb (Depends-on): Likewise. Needed because of
37252         AC_TYPE_MBSTATE_T.
37253         * modules/wcsnrtombs (Depends-on): Likewise.
37254         * modules/wcsrtombs (Depends-on): Likewise.
37255
37256 2009-12-24  Bruno Haible  <bruno@clisp.org>
37257
37258         binary-io: Avoid gcc warning due to SET_BINARY.
37259         * lib/binary-io.h (SET_BINARY): Cast the result to void.
37260         Reported by Jim Meyering <jim@meyering.net>. Suggestion by Eric Blake.
37261
37262 2009-12-24  Bruno Haible  <bruno@clisp.org>
37263
37264         Avoid future namespace pollution on glibc systems.
37265         * lib/arpa_inet.in.h: Don't include <sys/socket.h> on glibc systems.
37266         * lib/sys_ioctl.in.h: Don't include <unistd.h> on glibc systems.
37267         * lib/sys_select.in.h: Don't include <sys/time.h> and <string.h> on
37268         glibc systems.
37269
37270 2009-12-24  Bruno Haible  <bruno@clisp.org>
37271
37272         Refactor common macros used in tests.
37273         * tests/macros.h: New file.
37274         * tests/test-areadlink.c: Include macros.h. Don't include <stdio.h>
37275         and/or <stdlib.h>, if appropriate.
37276         (ASSERT, SIZEOF): Remove macros.
37277         * tests/test-areadlink-with-size.c: Likewise.
37278         * tests/test-areadlinkat.c: Likewise.
37279         * tests/test-areadlinkat-with-size.c: Likewise.
37280         * tests/test-argmatch.c: Likewise.
37281         * tests/test-argv-iter.c: Likewise.
37282         * tests/test-array-mergesort.c: Likewise.
37283         * tests/test-array_list.c: Likewise.
37284         * tests/test-array_oset.c: Likewise.
37285         * tests/test-avltree_list.c: Likewise.
37286         * tests/test-avltree_oset.c: Likewise.
37287         * tests/test-avltreehash_list.c: Likewise.
37288         * tests/test-base64.c: Likewise.
37289         * tests/test-binary-io.c: Likewise.
37290         * tests/test-bitrotate.c: Likewise.
37291         * tests/test-btowc.c: Likewise.
37292         * tests/test-byteswap.c: Likewise.
37293         * tests/test-c-ctype.c: Likewise.
37294         * tests/test-c-stack.c: Likewise.
37295         * tests/test-c-strcasecmp.c: Likewise.
37296         * tests/test-c-strcasestr.c: Likewise.
37297         * tests/test-c-strncasecmp.c: Likewise.
37298         * tests/test-c-strstr.c: Likewise.
37299         * tests/test-canonicalize-lgpl.c: Likewise.
37300         * tests/test-canonicalize.c: Likewise.
37301         * tests/test-carray_list.c: Likewise.
37302         * tests/test-ceilf1.c: Likewise.
37303         * tests/test-ceilf2.c: Likewise.
37304         * tests/test-ceill.c: Likewise.
37305         * tests/test-chown.c: Likewise.
37306         * tests/test-cloexec.c: Likewise.
37307         * tests/test-copy-acl.c: Likewise.
37308         * tests/test-copy-file.c: Likewise.
37309         * tests/test-count-one-bits.c: Likewise.
37310         * tests/test-dprintf-posix.c: Likewise.
37311         * tests/test-dup2.c: Likewise.
37312         * tests/test-dup3.c: Likewise.
37313         * tests/test-duplocale.c: Likewise.
37314         * tests/test-fbufmode.c: Likewise.
37315         * tests/test-fchdir.c: Likewise.
37316         * tests/test-fchownat.c: Likewise.
37317         * tests/test-fcntl-safer.c: Likewise.
37318         * tests/test-fcntl.c: Likewise.
37319         * tests/test-fdopendir.c: Likewise.
37320         * tests/test-fdutimensat.c: Likewise.
37321         * tests/test-fflush2.c: Likewise.
37322         * tests/test-file-has-acl.c: Likewise.
37323         * tests/test-filevercmp.c: Likewise.
37324         * tests/test-flock.c: Likewise.
37325         * tests/test-floorf1.c: Likewise.
37326         * tests/test-floorf2.c: Likewise.
37327         * tests/test-floorl.c: Likewise.
37328         * tests/test-fnmatch.c: Likewise.
37329         * tests/test-fopen.h: Likewise.
37330         * tests/test-fpending.c: Likewise.
37331         * tests/test-fprintf-posix.c: Likewise.
37332         * tests/test-fpurge.c: Likewise.
37333         * tests/test-freadable.c: Likewise.
37334         * tests/test-freadahead.c: Likewise.
37335         * tests/test-freading.c: Likewise.
37336         * tests/test-freadptr.c: Likewise.
37337         * tests/test-freadptr2.c: Likewise.
37338         * tests/test-freadseek.c: Likewise.
37339         * tests/test-freopen.c: Likewise.
37340         * tests/test-frexp.c: Likewise.
37341         * tests/test-frexpl.c: Likewise.
37342         * tests/test-fseek.c: Likewise.
37343         * tests/test-fseeko.c: Likewise.
37344         * tests/test-fstatat.c: Likewise.
37345         * tests/test-fstrcmp.c: Likewise.
37346         * tests/test-fsync.c: Likewise.
37347         * tests/test-ftell.c: Likewise.
37348         * tests/test-ftello.c: Likewise.
37349         * tests/test-func.c: Likewise.
37350         * tests/test-futimens.c: Likewise.
37351         * tests/test-fwritable.c: Likewise.
37352         * tests/test-fwriting.c: Likewise.
37353         * tests/test-getcwd.c: Likewise.
37354         * tests/test-getdate.c: Likewise.
37355         * tests/test-getdelim.c: Likewise.
37356         * tests/test-getdtablesize.c: Likewise.
37357         * tests/test-getgroups.c: Likewise.
37358         * tests/test-getline.c: Likewise.
37359         * tests/test-getndelim2.c: Likewise.
37360         * tests/test-glob.c: Likewise.
37361         * tests/test-hash.c: Likewise.
37362         * tests/test-i-ring.c: Likewise.
37363         * tests/test-iconv-utf.c: Likewise.
37364         * tests/test-iconv.c: Likewise.
37365         * tests/test-idpriv-drop.c: Likewise.
37366         * tests/test-idpriv-droptemp.c: Likewise.
37367         * tests/test-inet_ntop.c: Likewise.
37368         * tests/test-inet_pton.c: Likewise.
37369         * tests/test-isblank.c: Likewise.
37370         * tests/test-isfinite.c: Likewise.
37371         * tests/test-isinf.c: Likewise.
37372         * tests/test-isnan.c: Likewise.
37373         * tests/test-isnand.h: Likewise.
37374         * tests/test-isnanf.h: Likewise.
37375         * tests/test-isnanl.h: Likewise.
37376         * tests/test-lchown.c: Likewise.
37377         * tests/test-ldexpl.c: Likewise.
37378         * tests/test-link.c: Likewise.
37379         * tests/test-linkat.c: Likewise.
37380         * tests/test-linked_list.c: Likewise.
37381         * tests/test-linkedhash_list.c: Likewise.
37382         * tests/test-localename.c: Likewise.
37383         * tests/test-lseek.c: Likewise.
37384         * tests/test-lstat.c: Likewise.
37385         * tests/test-mbmemcasecmp.c: Likewise.
37386         * tests/test-mbmemcasecoll.c: Likewise.
37387         * tests/test-mbrtowc.c: Likewise.
37388         * tests/test-mbscasecmp.c: Likewise.
37389         * tests/test-mbscasestr1.c: Likewise.
37390         * tests/test-mbscasestr2.c: Likewise.
37391         * tests/test-mbscasestr3.c: Likewise.
37392         * tests/test-mbscasestr4.c: Likewise.
37393         * tests/test-mbschr.c: Likewise.
37394         * tests/test-mbscspn.c: Likewise.
37395         * tests/test-mbsinit.c: Likewise.
37396         * tests/test-mbsncasecmp.c: Likewise.
37397         * tests/test-mbsnrtowcs.c: Likewise.
37398         * tests/test-mbspbrk.c: Likewise.
37399         * tests/test-mbspcasecmp.c: Likewise.
37400         * tests/test-mbsrchr.c: Likewise.
37401         * tests/test-mbsrtowcs.c: Likewise.
37402         * tests/test-mbsspn.c: Likewise.
37403         * tests/test-mbsstr1.c: Likewise.
37404         * tests/test-mbsstr2.c: Likewise.
37405         * tests/test-mbsstr3.c: Likewise.
37406         * tests/test-memchr.c: Likewise.
37407         * tests/test-memchr2.c: Likewise.
37408         * tests/test-memcmp.c: Likewise.
37409         * tests/test-memmem.c: Likewise.
37410         * tests/test-memrchr.c: Likewise.
37411         * tests/test-mkdir.c: Likewise.
37412         * tests/test-mkdirat.c: Likewise.
37413         * tests/test-mkfifo.c: Likewise.
37414         * tests/test-mkfifoat.c: Likewise.
37415         * tests/test-mknod.c: Likewise.
37416         * tests/test-nanosleep.c: Likewise.
37417         * tests/test-nl_langinfo.c: Likewise.
37418         * tests/test-obstack-printf.c: Likewise.
37419         * tests/test-open.c: Likewise.
37420         * tests/test-openat.c: Likewise.
37421         * tests/test-pipe-filter-gi1.c: Likewise.
37422         * tests/test-pipe-filter-gi2-main.c: Likewise.
37423         * tests/test-pipe-filter-ii1.c: Likewise.
37424         * tests/test-pipe-filter-ii2-main.c: Likewise.
37425         * tests/test-pipe2.c: Likewise.
37426         * tests/test-popen.h: Likewise.
37427         * tests/test-posixtm.c: Likewise.
37428         * tests/test-pread.c: Likewise.
37429         * tests/test-printf-frexp.c: Likewise.
37430         * tests/test-printf-frexpl.c: Likewise.
37431         * tests/test-printf-posix.c: Likewise.
37432         * tests/test-priv-set.c: Likewise.
37433         * tests/test-quotearg.c: Likewise.
37434         * tests/test-random_r.c: Likewise.
37435         * tests/test-rawmemchr.c: Likewise.
37436         * tests/test-rbtree_list.c: Likewise.
37437         * tests/test-rbtree_oset.c: Likewise.
37438         * tests/test-rbtreehash_list.c: Likewise.
37439         * tests/test-readlink.c: Likewise.
37440         * tests/test-remove.c: Likewise.
37441         * tests/test-rename.c: Likewise.
37442         * tests/test-renameat.c: Likewise.
37443         * tests/test-rmdir.c: Likewise.
37444         * tests/test-round1.c: Likewise.
37445         * tests/test-roundf1.c: Likewise.
37446         * tests/test-roundl.c: Likewise.
37447         * tests/test-safe-alloc.c: Likewise.
37448         * tests/test-sameacls.c: Likewise.
37449         * tests/test-set-mode-acl.c: Likewise.
37450         * tests/test-setenv.c: Likewise.
37451         * tests/test-sigaction.c: Likewise.
37452         * tests/test-signbit.c: Likewise.
37453         * tests/test-sleep.c: Likewise.
37454         * tests/test-snprintf-posix.c: Likewise.
37455         * tests/test-snprintf.c: Likewise.
37456         * tests/test-sprintf-posix.c: Likewise.
37457         * tests/test-stat-time.c: Likewise.
37458         * tests/test-stat.c: Likewise.
37459         * tests/test-strcasestr.c: Likewise.
37460         * tests/test-strchrnul.c: Likewise.
37461         * tests/test-strerror.c: Likewise.
37462         * tests/test-striconv.c: Likewise.
37463         * tests/test-striconveh.c: Likewise.
37464         * tests/test-striconveha.c: Likewise.
37465         * tests/test-strsignal.c: Likewise.
37466         * tests/test-strstr.c: Likewise.
37467         * tests/test-strtod.c: Likewise.
37468         * tests/test-strverscmp.c: Likewise.
37469         * tests/test-symlink.c: Likewise.
37470         * tests/test-symlinkat.c: Likewise.
37471         * tests/test-trunc1.c: Likewise.
37472         * tests/test-trunc2.c: Likewise.
37473         * tests/test-truncf1.c: Likewise.
37474         * tests/test-truncf2.c: Likewise.
37475         * tests/test-truncl.c: Likewise.
37476         * tests/test-uname.c: Likewise.
37477         * tests/test-unlink.c: Likewise.
37478         * tests/test-unlinkat.c: Likewise.
37479         * tests/test-unsetenv.c: Likewise.
37480         * tests/test-usleep.c: Likewise.
37481         * tests/test-utimens.c: Likewise.
37482         * tests/test-utimensat.c: Likewise.
37483         * tests/test-vasnprintf-posix.c: Likewise.
37484         * tests/test-vasnprintf-posix2.c: Likewise.
37485         * tests/test-vasnprintf.c: Likewise.
37486         * tests/test-vasprintf-posix.c: Likewise.
37487         * tests/test-vasprintf.c: Likewise.
37488         * tests/test-vdprintf-posix.c: Likewise.
37489         * tests/test-vfprintf-posix.c: Likewise.
37490         * tests/test-vprintf-posix.c: Likewise.
37491         * tests/test-vsnprintf-posix.c: Likewise.
37492         * tests/test-vsnprintf.c: Likewise.
37493         * tests/test-vsprintf-posix.c: Likewise.
37494         * tests/test-wcrtomb.c: Likewise.
37495         * tests/test-wcsnrtombs.c: Likewise.
37496         * tests/test-wcsrtombs.c: Likewise.
37497         * tests/test-wctype.c: Likewise.
37498         * tests/test-wcwidth.c: Likewise.
37499         * tests/test-xfprintf-posix.c: Likewise.
37500         * tests/test-xmemdup0.c: Likewise.
37501         * tests/test-xprintf-posix.c: Likewise.
37502         * tests/test-xvasprintf.c: Likewise.
37503         * tests/unicase/test-locale-language.c: Likewise.
37504         * tests/unicase/test-mapping-part1.h: Likewise.
37505         * tests/unicase/test-predicate-part1.h: Likewise.
37506         * tests/unicase/test-u8-casecmp.c: Likewise.
37507         * tests/unicase/test-u8-casecoll.c: Likewise.
37508         * tests/unicase/test-u8-casefold.c: Likewise.
37509         * tests/unicase/test-u8-is-cased.c: Likewise.
37510         * tests/unicase/test-u8-is-casefolded.c: Likewise.
37511         * tests/unicase/test-u8-is-lowercase.c: Likewise.
37512         * tests/unicase/test-u8-is-titlecase.c: Likewise.
37513         * tests/unicase/test-u8-is-uppercase.c: Likewise.
37514         * tests/unicase/test-u8-tolower.c: Likewise.
37515         * tests/unicase/test-u8-totitle.c: Likewise.
37516         * tests/unicase/test-u8-toupper.c: Likewise.
37517         * tests/unicase/test-u16-casecmp.c: Likewise.
37518         * tests/unicase/test-u16-casecoll.c: Likewise.
37519         * tests/unicase/test-u16-casefold.c: Likewise.
37520         * tests/unicase/test-u16-is-cased.c: Likewise.
37521         * tests/unicase/test-u16-is-casefolded.c: Likewise.
37522         * tests/unicase/test-u16-is-lowercase.c: Likewise.
37523         * tests/unicase/test-u16-is-titlecase.c: Likewise.
37524         * tests/unicase/test-u16-is-uppercase.c: Likewise.
37525         * tests/unicase/test-u16-tolower.c: Likewise.
37526         * tests/unicase/test-u16-totitle.c: Likewise.
37527         * tests/unicase/test-u16-toupper.c: Likewise.
37528         * tests/unicase/test-u32-casecmp.c: Likewise.
37529         * tests/unicase/test-u32-casecoll.c: Likewise.
37530         * tests/unicase/test-u32-casefold.c: Likewise.
37531         * tests/unicase/test-u32-is-cased.c: Likewise.
37532         * tests/unicase/test-u32-is-casefolded.c: Likewise.
37533         * tests/unicase/test-u32-is-lowercase.c: Likewise.
37534         * tests/unicase/test-u32-is-titlecase.c: Likewise.
37535         * tests/unicase/test-u32-is-uppercase.c: Likewise.
37536         * tests/unicase/test-u32-tolower.c: Likewise.
37537         * tests/unicase/test-u32-totitle.c: Likewise.
37538         * tests/unicase/test-u32-toupper.c: Likewise.
37539         * tests/unicase/test-ulc-casecmp.c: Likewise.
37540         * tests/unicase/test-ulc-casecoll.c: Likewise.
37541         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
37542         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
37543         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
37544         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
37545         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
37546         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
37547         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
37548         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
37549         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
37550         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
37551         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
37552         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
37553         * tests/unictype/test-bidi_byname.c: Likewise.
37554         * tests/unictype/test-bidi_name.c: Likewise.
37555         * tests/unictype/test-bidi_of.c: Likewise.
37556         * tests/unictype/test-bidi_test.c: Likewise.
37557         * tests/unictype/test-block_list.c: Likewise.
37558         * tests/unictype/test-block_of.c: Likewise.
37559         * tests/unictype/test-block_test.c: Likewise.
37560         * tests/unictype/test-categ_and.c: Likewise.
37561         * tests/unictype/test-categ_and_not.c: Likewise.
37562         * tests/unictype/test-categ_byname.c: Likewise.
37563         * tests/unictype/test-categ_name.c: Likewise.
37564         * tests/unictype/test-categ_none.c: Likewise.
37565         * tests/unictype/test-categ_of.c: Likewise.
37566         * tests/unictype/test-categ_or.c: Likewise.
37567         * tests/unictype/test-categ_test_withtable.c: Likewise.
37568         * tests/unictype/test-combining.c: Likewise.
37569         * tests/unictype/test-decdigit.c: Likewise.
37570         * tests/unictype/test-digit.c: Likewise.
37571         * tests/unictype/test-mirror.c: Likewise.
37572         * tests/unictype/test-numeric.c: Likewise.
37573         * tests/unictype/test-pr_byname.c: Likewise.
37574         * tests/unictype/test-pr_test.c: Likewise.
37575         * tests/unictype/test-predicate-part1.h: Likewise.
37576         * tests/unictype/test-scripts.c: Likewise.
37577         * tests/unictype/test-sy_c_ident.c: Likewise.
37578         * tests/unictype/test-sy_java_ident.c: Likewise.
37579         * tests/unilbrk/test-u8-possible-linebreaks.c: Likewise.
37580         * tests/unilbrk/test-u8-width-linebreaks.c: Likewise.
37581         * tests/unilbrk/test-u16-possible-linebreaks.c: Likewise.
37582         * tests/unilbrk/test-u16-width-linebreaks.c: Likewise.
37583         * tests/unilbrk/test-u32-possible-linebreaks.c: Likewise.
37584         * tests/unilbrk/test-u32-width-linebreaks.c: Likewise.
37585         * tests/unilbrk/test-ulc-possible-linebreaks.c: Likewise.
37586         * tests/unilbrk/test-ulc-width-linebreaks.c: Likewise.
37587         * tests/uninorm/test-canonical-decomposition.c: Likewise.
37588         * tests/uninorm/test-compat-decomposition.c: Likewise.
37589         * tests/uninorm/test-composition.c: Likewise.
37590         * tests/uninorm/test-decomposing-form.c: Likewise.
37591         * tests/uninorm/test-decomposition.c: Likewise.
37592         * tests/uninorm/test-u8-nfc.c: Likewise.
37593         * tests/uninorm/test-u8-nfd.c: Likewise.
37594         * tests/uninorm/test-u8-nfkc.c: Likewise.
37595         * tests/uninorm/test-u8-nfkd.c: Likewise.
37596         * tests/uninorm/test-u8-normcmp.c: Likewise.
37597         * tests/uninorm/test-u8-normcoll.c: Likewise.
37598         * tests/uninorm/test-u16-nfc.c: Likewise.
37599         * tests/uninorm/test-u16-nfd.c: Likewise.
37600         * tests/uninorm/test-u16-nfkc.c: Likewise.
37601         * tests/uninorm/test-u16-nfkd.c: Likewise.
37602         * tests/uninorm/test-u16-normcmp.c: Likewise.
37603         * tests/uninorm/test-u16-normcoll.c: Likewise.
37604         * tests/uninorm/test-u32-nfc.c: Likewise.
37605         * tests/uninorm/test-u32-nfd.c: Likewise.
37606         * tests/uninorm/test-u32-nfkc.c: Likewise.
37607         * tests/uninorm/test-u32-nfkd.c: Likewise.
37608         * tests/uninorm/test-u32-normalize-big.c: Likewise.
37609         * tests/uninorm/test-u32-normcmp.c: Likewise.
37610         * tests/uninorm/test-u32-normcoll.c: Likewise.
37611         * tests/uninorm/test-uninorm-filter-nfc.c: Likewise.
37612         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
37613         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
37614         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
37615         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
37616         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
37617         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
37618         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
37619         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
37620         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
37621         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
37622         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
37623         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
37624         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
37625         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
37626         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
37627         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
37628         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
37629         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
37630         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
37631         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
37632         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
37633         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
37634         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
37635         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
37636         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
37637         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
37638         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
37639         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
37640         * tests/uniwbrk/test-u8-wordbreaks.c: Likewise.
37641         * tests/uniwbrk/test-u16-wordbreaks.c: Likewise.
37642         * tests/uniwbrk/test-u32-wordbreaks.c: Likewise.
37643         * tests/uniwbrk/test-ulc-wordbreaks.c: Likewise.
37644         * tests/uniwidth/test-u8-strwidth.c: Likewise.
37645         * tests/uniwidth/test-u8-width.c: Likewise.
37646         * tests/uniwidth/test-u16-strwidth.c: Likewise.
37647         * tests/uniwidth/test-u16-width.c: Likewise.
37648         * tests/uniwidth/test-u32-strwidth.c: Likewise.
37649         * tests/uniwidth/test-u32-width.c: Likewise.
37650         * tests/uniwidth/test-uc_width.c: Likewise.
37651         * tests/uniwidth/test-uc_width2.c: Likewise.
37652         * modules/acl-tests (Files): Add tests/macros.h.
37653         * modules/areadlink-tests (Files): Likewise.
37654         * modules/areadlink-with-size-tests (Files): Likewise.
37655         * modules/areadlinkat-tests (Files): Likewise.
37656         * modules/areadlinkat-with-size-tests (Files): Likewise.
37657         * modules/argmatch-tests (Files): Likewise.
37658         * modules/argv-iter-tests (Files): Likewise.
37659         * modules/array-list-tests (Files): Likewise.
37660         * modules/array-mergesort-tests (Files): Likewise.
37661         * modules/array-oset-tests (Files): Likewise.
37662         * modules/avltree-list-tests (Files): Likewise.
37663         * modules/avltree-oset-tests (Files): Likewise.
37664         * modules/avltreehash-list-tests (Files): Likewise.
37665         * modules/base64-tests (Files): Likewise.
37666         * modules/binary-io-tests (Files): Likewise.
37667         * modules/bitrotate-tests (Files): Likewise.
37668         * modules/btowc-tests (Files): Likewise.
37669         * modules/byteswap-tests (Files): Likewise.
37670         * modules/c-ctype-tests (Files): Likewise.
37671         * modules/c-stack-tests (Files): Likewise.
37672         * modules/c-strcase-tests (Files): Likewise.
37673         * modules/c-strcasestr-tests (Files): Likewise.
37674         * modules/c-strstr-tests (Files): Likewise.
37675         * modules/canonicalize-lgpl-tests (Files): Likewise.
37676         * modules/canonicalize-tests (Files): Likewise.
37677         * modules/carray-list-tests (Files): Likewise.
37678         * modules/ceilf-tests (Files): Likewise.
37679         * modules/ceill-tests (Files): Likewise.
37680         * modules/chown-tests (Files): Likewise.
37681         * modules/cloexec-tests (Files): Likewise.
37682         * modules/copy-file-tests (Files): Likewise.
37683         * modules/count-one-bits-tests (Files): Likewise.
37684         * modules/dprintf-posix-tests (Files): Likewise.
37685         * modules/dup2-tests (Files): Likewise.
37686         * modules/dup3-tests (Files): Likewise.
37687         * modules/duplocale-tests (Files): Likewise.
37688         * modules/fbufmode-tests (Files): Likewise.
37689         * modules/fchdir-tests (Files): Likewise.
37690         * modules/fcntl-safer-tests (Files): Likewise.
37691         * modules/fcntl-tests (Files): Likewise.
37692         * modules/fdopendir-tests (Files): Likewise.
37693         * modules/fdutimensat-tests (Files): Likewise.
37694         * modules/fflush-tests (Files): Likewise.
37695         * modules/filevercmp-tests (Files): Likewise.
37696         * modules/flock-tests (Files): Likewise.
37697         * modules/floorf-tests (Files): Likewise.
37698         * modules/floorl-tests (Files): Likewise.
37699         * modules/fnmatch-tests (Files): Likewise.
37700         * modules/fopen-safer-tests (Files): Likewise.
37701         * modules/fopen-tests (Files): Likewise.
37702         * modules/fpending-tests (Files): Likewise.
37703         * modules/fprintf-posix-tests (Files): Likewise.
37704         * modules/fpurge-tests (Files): Likewise.
37705         * modules/freadable-tests (Files): Likewise.
37706         * modules/freadahead-tests (Files): Likewise.
37707         * modules/freading-tests (Files): Likewise.
37708         * modules/freadptr-tests (Files): Likewise.
37709         * modules/freadseek-tests (Files): Likewise.
37710         * modules/freopen-tests (Files): Likewise.
37711         * modules/frexp-nolibm-tests (Files): Likewise.
37712         * modules/frexp-tests (Files): Likewise.
37713         * modules/frexpl-nolibm-tests (Files): Likewise.
37714         * modules/frexpl-tests (Files): Likewise.
37715         * modules/fseek-tests (Files): Likewise.
37716         * modules/fseeko-tests (Files): Likewise.
37717         * modules/fstrcmp-tests (Files): Likewise.
37718         * modules/fsync-tests (Files): Likewise.
37719         * modules/ftell-tests (Files): Likewise.
37720         * modules/ftello-tests (Files): Likewise.
37721         * modules/func-tests (Files): Likewise.
37722         * modules/futimens-tests (Files): Likewise.
37723         * modules/fwritable-tests (Files): Likewise.
37724         * modules/fwriting-tests (Files): Likewise.
37725         * modules/getcwd-tests (Files): Likewise.
37726         * modules/getdate-tests (Files): Likewise.
37727         * modules/getdelim-tests (Files): Likewise.
37728         * modules/getdtablesize-tests (Files): Likewise.
37729         * modules/getgroups-tests (Files): Likewise.
37730         * modules/getline-tests (Files): Likewise.
37731         * modules/getndelim2-tests (Files): Likewise.
37732         * modules/glob-tests (Files): Likewise.
37733         * modules/hash-tests (Files): Likewise.
37734         * modules/i-ring-tests (Files): Likewise.
37735         * modules/iconv-tests (Files): Likewise.
37736         * modules/iconv_open-utf-tests (Files): Likewise.
37737         * modules/idpriv-drop-tests (Files): Likewise.
37738         * modules/idpriv-droptemp-tests (Files): Likewise.
37739         * modules/inet_ntop-tests (Files): Likewise.
37740         * modules/inet_pton-tests (Files): Likewise.
37741         * modules/isblank-tests (Files): Likewise.
37742         * modules/isfinite-tests (Files): Likewise.
37743         * modules/isinf-tests (Files): Likewise.
37744         * modules/isnan-tests (Files): Likewise.
37745         * modules/isnand-nolibm-tests (Files): Likewise.
37746         * modules/isnand-tests (Files): Likewise.
37747         * modules/isnanf-nolibm-tests (Files): Likewise.
37748         * modules/isnanf-tests (Files): Likewise.
37749         * modules/isnanl-nolibm-tests (Files): Likewise.
37750         * modules/isnanl-tests (Files): Likewise.
37751         * modules/lchown-tests (Files): Likewise.
37752         * modules/ldexpl-tests (Files): Likewise.
37753         * modules/link-tests (Files): Likewise.
37754         * modules/linkat-tests (Files): Likewise.
37755         * modules/linked-list-tests (Files): Likewise.
37756         * modules/linkedhash-list-tests (Files): Likewise.
37757         * modules/localename-tests (Files): Likewise.
37758         * modules/lseek-tests (Files): Likewise.
37759         * modules/lstat-tests (Files): Likewise.
37760         * modules/mbmemcasecmp-tests (Files): Likewise.
37761         * modules/mbmemcasecoll-tests (Files): Likewise.
37762         * modules/mbrtowc-tests (Files): Likewise.
37763         * modules/mbscasecmp-tests (Files): Likewise.
37764         * modules/mbscasestr-tests (Files): Likewise.
37765         * modules/mbschr-tests (Files): Likewise.
37766         * modules/mbscspn-tests (Files): Likewise.
37767         * modules/mbsinit-tests (Files): Likewise.
37768         * modules/mbsncasecmp-tests (Files): Likewise.
37769         * modules/mbsnrtowcs-tests (Files): Likewise.
37770         * modules/mbspbrk-tests (Files): Likewise.
37771         * modules/mbspcasecmp-tests (Files): Likewise.
37772         * modules/mbsrchr-tests (Files): Likewise.
37773         * modules/mbsrtowcs-tests (Files): Likewise.
37774         * modules/mbsspn-tests (Files): Likewise.
37775         * modules/mbsstr-tests (Files): Likewise.
37776         * modules/memchr-tests (Files): Likewise.
37777         * modules/memchr2-tests (Files): Likewise.
37778         * modules/memcmp-tests (Files): Likewise.
37779         * modules/memmem-tests (Files): Likewise.
37780         * modules/memrchr-tests (Files): Likewise.
37781         * modules/mkdir-tests (Files): Likewise.
37782         * modules/mkfifo-tests (Files): Likewise.
37783         * modules/mkfifoat-tests (Files): Likewise.
37784         * modules/mknod-tests (Files): Likewise.
37785         * modules/nanosleep-tests (Files): Likewise.
37786         * modules/nl_langinfo-tests (Files): Likewise.
37787         * modules/obstack-printf-tests (Files): Likewise.
37788         * modules/open-tests (Files): Likewise.
37789         * modules/openat-tests (Files): Likewise.
37790         * modules/pipe-filter-gi-tests (Files): Likewise.
37791         * modules/pipe-filter-ii-tests (Files): Likewise.
37792         * modules/pipe2-tests (Files): Likewise.
37793         * modules/popen-safer-tests (Files): Likewise.
37794         * modules/popen-tests (Files): Likewise.
37795         * modules/posixtm-tests (Files): Likewise.
37796         * modules/pread-tests (Files): Likewise.
37797         * modules/printf-frexp-tests (Files): Likewise.
37798         * modules/printf-frexpl-tests (Files): Likewise.
37799         * modules/printf-posix-tests (Files): Likewise.
37800         * modules/priv-set-tests (Files): Likewise.
37801         * modules/quotearg-tests (Files): Likewise.
37802         * modules/random_r-tests (Files): Likewise.
37803         * modules/rawmemchr-tests (Files): Likewise.
37804         * modules/rbtree-list-tests (Files): Likewise.
37805         * modules/rbtree-oset-tests (Files): Likewise.
37806         * modules/rbtreehash-list-tests (Files): Likewise.
37807         * modules/readlink-tests (Files): Likewise.
37808         * modules/remove-tests (Files): Likewise.
37809         * modules/rename-tests (Files): Likewise.
37810         * modules/renameat-tests (Files): Likewise.
37811         * modules/rmdir-tests (Files): Likewise.
37812         * modules/round-tests (Files): Likewise.
37813         * modules/roundf-tests (Files): Likewise.
37814         * modules/roundl-tests (Files): Likewise.
37815         * modules/safe-alloc-tests (Files): Likewise.
37816         * modules/setenv-tests (Files): Likewise.
37817         * modules/sigaction-tests (Files): Likewise.
37818         * modules/signbit-tests (Files): Likewise.
37819         * modules/sleep-tests (Files): Likewise.
37820         * modules/snprintf-posix-tests (Files): Likewise.
37821         * modules/snprintf-tests (Files): Likewise.
37822         * modules/sprintf-posix-tests (Files): Likewise.
37823         * modules/stat-tests (Files): Likewise.
37824         * modules/stat-time-tests (Files): Likewise.
37825         * modules/strcasestr-tests (Files): Likewise.
37826         * modules/strchrnul-tests (Files): Likewise.
37827         * modules/strerror-tests (Files): Likewise.
37828         * modules/striconv-tests (Files): Likewise.
37829         * modules/striconveh-tests (Files): Likewise.
37830         * modules/striconveha-tests (Files): Likewise.
37831         * modules/strsignal-tests (Files): Likewise.
37832         * modules/strstr-tests (Files): Likewise.
37833         * modules/strtod-tests (Files): Likewise.
37834         * modules/strverscmp-tests (Files): Likewise.
37835         * modules/symlink-tests (Files): Likewise.
37836         * modules/symlinkat-tests (Files): Likewise.
37837         * modules/trunc-tests (Files): Likewise.
37838         * modules/truncf-tests (Files): Likewise.
37839         * modules/truncl-tests (Files): Likewise.
37840         * modules/uname-tests (Files): Likewise.
37841         * modules/unicase/cased-tests (Files): Likewise.
37842         * modules/unicase/ignorable-tests (Files): Likewise.
37843         * modules/unicase/locale-language-tests (Files): Likewise.
37844         * modules/unicase/tolower-tests (Files): Likewise.
37845         * modules/unicase/totitle-tests (Files): Likewise.
37846         * modules/unicase/toupper-tests (Files): Likewise.
37847         * modules/unicase/u8-casecmp-tests (Files): Likewise.
37848         * modules/unicase/u8-casecoll-tests (Files): Likewise.
37849         * modules/unicase/u8-casefold-tests (Files): Likewise.
37850         * modules/unicase/u8-is-cased-tests (Files): Likewise.
37851         * modules/unicase/u8-is-casefolded-tests (Files): Likewise.
37852         * modules/unicase/u8-is-lowercase-tests (Files): Likewise.
37853         * modules/unicase/u8-is-titlecase-tests (Files): Likewise.
37854         * modules/unicase/u8-is-uppercase-tests (Files): Likewise.
37855         * modules/unicase/u8-tolower-tests (Files): Likewise.
37856         * modules/unicase/u8-totitle-tests (Files): Likewise.
37857         * modules/unicase/u8-toupper-tests (Files): Likewise.
37858         * modules/unicase/u16-casecmp-tests (Files): Likewise.
37859         * modules/unicase/u16-casecoll-tests (Files): Likewise.
37860         * modules/unicase/u16-casefold-tests (Files): Likewise.
37861         * modules/unicase/u16-is-cased-tests (Files): Likewise.
37862         * modules/unicase/u16-is-casefolded-tests (Files): Likewise.
37863         * modules/unicase/u16-is-lowercase-tests (Files): Likewise.
37864         * modules/unicase/u16-is-titlecase-tests (Files): Likewise.
37865         * modules/unicase/u16-is-uppercase-tests (Files): Likewise.
37866         * modules/unicase/u16-tolower-tests (Files): Likewise.
37867         * modules/unicase/u16-totitle-tests (Files): Likewise.
37868         * modules/unicase/u16-toupper-tests (Files): Likewise.
37869         * modules/unicase/u32-casecmp-tests (Files): Likewise.
37870         * modules/unicase/u32-casecoll-tests (Files): Likewise.
37871         * modules/unicase/u32-casefold-tests (Files): Likewise.
37872         * modules/unicase/u32-is-cased-tests (Files): Likewise.
37873         * modules/unicase/u32-is-casefolded-tests (Files): Likewise.
37874         * modules/unicase/u32-is-lowercase-tests (Files): Likewise.
37875         * modules/unicase/u32-is-titlecase-tests (Files): Likewise.
37876         * modules/unicase/u32-is-uppercase-tests (Files): Likewise.
37877         * modules/unicase/u32-tolower-tests (Files): Likewise.
37878         * modules/unicase/u32-totitle-tests (Files): Likewise.
37879         * modules/unicase/u32-toupper-tests (Files): Likewise.
37880         * modules/unicase/ulc-casecmp-tests (Files): Likewise.
37881         * modules/unicase/ulc-casecoll-tests (Files): Likewise.
37882         * modules/uniconv/u8-conv-from-enc-tests (Files): Likewise.
37883         * modules/uniconv/u8-conv-to-enc-tests (Files): Likewise.
37884         * modules/uniconv/u8-strconv-from-enc-tests (Files): Likewise.
37885         * modules/uniconv/u8-strconv-to-enc-tests (Files): Likewise.
37886         * modules/uniconv/u16-conv-from-enc-tests (Files): Likewise.
37887         * modules/uniconv/u16-conv-to-enc-tests (Files): Likewise.
37888         * modules/uniconv/u16-strconv-from-enc-tests (Files): Likewise.
37889         * modules/uniconv/u16-strconv-to-enc-tests (Files): Likewise.
37890         * modules/uniconv/u32-conv-from-enc-tests (Files): Likewise.
37891         * modules/uniconv/u32-conv-to-enc-tests (Files): Likewise.
37892         * modules/uniconv/u32-strconv-from-enc-tests (Files): Likewise.
37893         * modules/uniconv/u32-strconv-to-enc-tests (Files): Likewise.
37894         * modules/unictype/bidicategory-byname-tests (Files): Likewise.
37895         * modules/unictype/bidicategory-name-tests (Files): Likewise.
37896         * modules/unictype/bidicategory-of-tests (Files): Likewise.
37897         * modules/unictype/bidicategory-test-tests (Files): Likewise.
37898         * modules/unictype/block-list-tests (Files): Likewise.
37899         * modules/unictype/block-of-tests (Files): Likewise.
37900         * modules/unictype/block-test-tests (Files): Likewise.
37901         * modules/unictype/category-C-tests (Files): Likewise.
37902         * modules/unictype/category-Cc-tests (Files): Likewise.
37903         * modules/unictype/category-Cf-tests (Files): Likewise.
37904         * modules/unictype/category-Cn-tests (Files): Likewise.
37905         * modules/unictype/category-Co-tests (Files): Likewise.
37906         * modules/unictype/category-Cs-tests (Files): Likewise.
37907         * modules/unictype/category-L-tests (Files): Likewise.
37908         * modules/unictype/category-Ll-tests (Files): Likewise.
37909         * modules/unictype/category-Lm-tests (Files): Likewise.
37910         * modules/unictype/category-Lo-tests (Files): Likewise.
37911         * modules/unictype/category-Lt-tests (Files): Likewise.
37912         * modules/unictype/category-Lu-tests (Files): Likewise.
37913         * modules/unictype/category-M-tests (Files): Likewise.
37914         * modules/unictype/category-Mc-tests (Files): Likewise.
37915         * modules/unictype/category-Me-tests (Files): Likewise.
37916         * modules/unictype/category-Mn-tests (Files): Likewise.
37917         * modules/unictype/category-N-tests (Files): Likewise.
37918         * modules/unictype/category-Nd-tests (Files): Likewise.
37919         * modules/unictype/category-Nl-tests (Files): Likewise.
37920         * modules/unictype/category-No-tests (Files): Likewise.
37921         * modules/unictype/category-P-tests (Files): Likewise.
37922         * modules/unictype/category-Pc-tests (Files): Likewise.
37923         * modules/unictype/category-Pd-tests (Files): Likewise.
37924         * modules/unictype/category-Pe-tests (Files): Likewise.
37925         * modules/unictype/category-Pf-tests (Files): Likewise.
37926         * modules/unictype/category-Pi-tests (Files): Likewise.
37927         * modules/unictype/category-Po-tests (Files): Likewise.
37928         * modules/unictype/category-Ps-tests (Files): Likewise.
37929         * modules/unictype/category-S-tests (Files): Likewise.
37930         * modules/unictype/category-Sc-tests (Files): Likewise.
37931         * modules/unictype/category-Sk-tests (Files): Likewise.
37932         * modules/unictype/category-Sm-tests (Files): Likewise.
37933         * modules/unictype/category-So-tests (Files): Likewise.
37934         * modules/unictype/category-Z-tests (Files): Likewise.
37935         * modules/unictype/category-Zl-tests (Files): Likewise.
37936         * modules/unictype/category-Zp-tests (Files): Likewise.
37937         * modules/unictype/category-Zs-tests (Files): Likewise.
37938         * modules/unictype/category-and-not-tests (Files): Likewise.
37939         * modules/unictype/category-and-tests (Files): Likewise.
37940         * modules/unictype/category-byname-tests (Files): Likewise.
37941         * modules/unictype/category-name-tests (Files): Likewise.
37942         * modules/unictype/category-none-tests (Files): Likewise.
37943         * modules/unictype/category-of-tests (Files): Likewise.
37944         * modules/unictype/category-or-tests (Files): Likewise.
37945         * modules/unictype/category-test-withtable-tests (Files): Likewise.
37946         * modules/unictype/combining-class-tests (Files): Likewise.
37947         * modules/unictype/ctype-alnum-tests (Files): Likewise.
37948         * modules/unictype/ctype-alpha-tests (Files): Likewise.
37949         * modules/unictype/ctype-blank-tests (Files): Likewise.
37950         * modules/unictype/ctype-cntrl-tests (Files): Likewise.
37951         * modules/unictype/ctype-digit-tests (Files): Likewise.
37952         * modules/unictype/ctype-graph-tests (Files): Likewise.
37953         * modules/unictype/ctype-lower-tests (Files): Likewise.
37954         * modules/unictype/ctype-print-tests (Files): Likewise.
37955         * modules/unictype/ctype-punct-tests (Files): Likewise.
37956         * modules/unictype/ctype-space-tests (Files): Likewise.
37957         * modules/unictype/ctype-upper-tests (Files): Likewise.
37958         * modules/unictype/ctype-xdigit-tests (Files): Likewise.
37959         * modules/unictype/decimal-digit-tests (Files): Likewise.
37960         * modules/unictype/digit-tests (Files): Likewise.
37961         * modules/unictype/mirror-tests (Files): Likewise.
37962         * modules/unictype/numeric-tests (Files): Likewise.
37963         * modules/unictype/property-alphabetic-tests (Files): Likewise.
37964         * modules/unictype/property-ascii-hex-digit-tests (Files): Likewise.
37965         * modules/unictype/property-bidi-arabic-digit-tests (Files): Likewise.
37966         * modules/unictype/property-bidi-arabic-right-to-left-tests (Files):
37967         Likewise.
37968         * modules/unictype/property-bidi-block-separator-tests (Files):
37969         Likewise.
37970         * modules/unictype/property-bidi-boundary-neutral-tests (Files):
37971         Likewise.
37972         * modules/unictype/property-bidi-common-separator-tests (Files):
37973         Likewise.
37974         * modules/unictype/property-bidi-control-tests (Files): Likewise.
37975         * modules/unictype/property-bidi-embedding-or-override-tests (Files):
37976         Likewise.
37977         * modules/unictype/property-bidi-eur-num-separator-tests (Files):
37978         Likewise.
37979         * modules/unictype/property-bidi-eur-num-terminator-tests (Files):
37980         Likewise.
37981         * modules/unictype/property-bidi-european-digit-tests (Files): Likewise.
37982         * modules/unictype/property-bidi-hebrew-right-to-left-tests (Files):
37983         Likewise.
37984         * modules/unictype/property-bidi-left-to-right-tests (Files): Likewise.
37985         * modules/unictype/property-bidi-non-spacing-mark-tests (Files):
37986         Likewise.
37987         * modules/unictype/property-bidi-other-neutral-tests (Files): Likewise.
37988         * modules/unictype/property-bidi-pdf-tests (Files): Likewise.
37989         * modules/unictype/property-bidi-segment-separator-tests (Files):
37990         Likewise.
37991         * modules/unictype/property-bidi-whitespace-tests (Files): Likewise.
37992         * modules/unictype/property-byname-tests (Files): Likewise.
37993         * modules/unictype/property-combining-tests (Files): Likewise.
37994         * modules/unictype/property-composite-tests (Files): Likewise.
37995         * modules/unictype/property-currency-symbol-tests (Files): Likewise.
37996         * modules/unictype/property-dash-tests (Files): Likewise.
37997         * modules/unictype/property-decimal-digit-tests (Files): Likewise.
37998         * modules/unictype/property-default-ignorable-code-point-tests (Files):
37999         Likewise.
38000         * modules/unictype/property-deprecated-tests (Files): Likewise.
38001         * modules/unictype/property-diacritic-tests (Files): Likewise.
38002         * modules/unictype/property-extender-tests (Files): Likewise.
38003         * modules/unictype/property-format-control-tests (Files): Likewise.
38004         * modules/unictype/property-grapheme-base-tests (Files): Likewise.
38005         * modules/unictype/property-grapheme-extend-tests (Files): Likewise.
38006         * modules/unictype/property-grapheme-link-tests (Files): Likewise.
38007         * modules/unictype/property-hex-digit-tests (Files): Likewise.
38008         * modules/unictype/property-hyphen-tests (Files): Likewise.
38009         * modules/unictype/property-id-continue-tests (Files): Likewise.
38010         * modules/unictype/property-id-start-tests (Files): Likewise.
38011         * modules/unictype/property-ideographic-tests (Files): Likewise.
38012         * modules/unictype/property-ids-binary-operator-tests (Files): Likewise.
38013         * modules/unictype/property-ids-trinary-operator-tests (Files):
38014         Likewise.
38015         * modules/unictype/property-ignorable-control-tests (Files): Likewise.
38016         * modules/unictype/property-iso-control-tests (Files): Likewise.
38017         * modules/unictype/property-join-control-tests (Files): Likewise.
38018         * modules/unictype/property-left-of-pair-tests (Files): Likewise.
38019         * modules/unictype/property-line-separator-tests (Files): Likewise.
38020         * modules/unictype/property-logical-order-exception-tests (Files):
38021         Likewise.
38022         * modules/unictype/property-lowercase-tests (Files): Likewise.
38023         * modules/unictype/property-math-tests (Files): Likewise.
38024         * modules/unictype/property-non-break-tests (Files): Likewise.
38025         * modules/unictype/property-not-a-character-tests (Files): Likewise.
38026         * modules/unictype/property-numeric-tests (Files): Likewise.
38027         * modules/unictype/property-other-alphabetic-tests (Files): Likewise.
38028         * modules/unictype/property-other-default-ignorable-code-point-tests
38029         (Files): Likewise.
38030         * modules/unictype/property-other-grapheme-extend-tests (Files):
38031         Likewise.
38032         * modules/unictype/property-other-id-continue-tests (Files): Likewise.
38033         * modules/unictype/property-other-id-start-tests (Files): Likewise.
38034         * modules/unictype/property-other-lowercase-tests (Files): Likewise.
38035         * modules/unictype/property-other-math-tests (Files): Likewise.
38036         * modules/unictype/property-other-uppercase-tests (Files): Likewise.
38037         * modules/unictype/property-paired-punctuation-tests (Files): Likewise.
38038         * modules/unictype/property-paragraph-separator-tests (Files): Likewise.
38039         * modules/unictype/property-pattern-syntax-tests (Files): Likewise.
38040         * modules/unictype/property-pattern-white-space-tests (Files): Likewise.
38041         * modules/unictype/property-private-use-tests (Files): Likewise.
38042         * modules/unictype/property-punctuation-tests (Files): Likewise.
38043         * modules/unictype/property-quotation-mark-tests (Files): Likewise.
38044         * modules/unictype/property-radical-tests (Files): Likewise.
38045         * modules/unictype/property-sentence-terminal-tests (Files): Likewise.
38046         * modules/unictype/property-soft-dotted-tests (Files): Likewise.
38047         * modules/unictype/property-space-tests (Files): Likewise.
38048         * modules/unictype/property-terminal-punctuation-tests (Files):
38049         Likewise.
38050         * modules/unictype/property-test-tests (Files): Likewise.
38051         * modules/unictype/property-titlecase-tests (Files): Likewise.
38052         * modules/unictype/property-unassigned-code-value-tests (Files):
38053         Likewise.
38054         * modules/unictype/property-unified-ideograph-tests (Files): Likewise.
38055         * modules/unictype/property-uppercase-tests (Files): Likewise.
38056         * modules/unictype/property-variation-selector-tests (Files): Likewise.
38057         * modules/unictype/property-white-space-tests (Files): Likewise.
38058         * modules/unictype/property-xid-continue-tests (Files): Likewise.
38059         * modules/unictype/property-xid-start-tests (Files): Likewise.
38060         * modules/unictype/property-zero-width-tests (Files): Likewise.
38061         * modules/unictype/scripts-tests (Files): Likewise.
38062         * modules/unictype/syntax-c-ident-tests (Files): Likewise.
38063         * modules/unictype/syntax-c-whitespace-tests (Files): Likewise.
38064         * modules/unictype/syntax-java-ident-tests (Files): Likewise.
38065         * modules/unictype/syntax-java-whitespace-tests (Files): Likewise.
38066         * modules/unilbrk/u8-possible-linebreaks-tests (Files): Likewise.
38067         * modules/unilbrk/u8-width-linebreaks-tests (Files): Likewise.
38068         * modules/unilbrk/u16-possible-linebreaks-tests (Files): Likewise.
38069         * modules/unilbrk/u16-width-linebreaks-tests (Files): Likewise.
38070         * modules/unilbrk/u32-possible-linebreaks-tests (Files): Likewise.
38071         * modules/unilbrk/u32-width-linebreaks-tests (Files): Likewise.
38072         * modules/unilbrk/ulc-possible-linebreaks-tests (Files): Likewise.
38073         * modules/unilbrk/ulc-width-linebreaks-tests (Files): Likewise.
38074         * modules/uninorm/canonical-decomposition-tests (Files): Likewise.
38075         * modules/uninorm/compat-decomposition-tests (Files): Likewise.
38076         * modules/uninorm/composition-tests (Files): Likewise.
38077         * modules/uninorm/decomposing-form-tests (Files): Likewise.
38078         * modules/uninorm/decomposition-tests (Files): Likewise.
38079         * modules/uninorm/filter-tests (Files): Likewise.
38080         * modules/uninorm/nfc-tests (Files): Likewise.
38081         * modules/uninorm/nfd-tests (Files): Likewise.
38082         * modules/uninorm/nfkc-tests (Files): Likewise.
38083         * modules/uninorm/nfkd-tests (Files): Likewise.
38084         * modules/uninorm/u8-normcmp-tests (Files): Likewise.
38085         * modules/uninorm/u8-normcoll-tests (Files): Likewise.
38086         * modules/uninorm/u16-normcmp-tests (Files): Likewise.
38087         * modules/uninorm/u16-normcoll-tests (Files): Likewise.
38088         * modules/uninorm/u32-normcmp-tests (Files): Likewise.
38089         * modules/uninorm/u32-normcoll-tests (Files): Likewise.
38090         * modules/unistdio/u8-asnprintf-tests (Files): Likewise.
38091         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
38092         * modules/unistdio/u8-vasprintf-tests (Files): Likewise.
38093         * modules/unistdio/u8-vsnprintf-tests (Files): Likewise.
38094         * modules/unistdio/u8-vsprintf-tests (Files): Likewise.
38095         * modules/unistdio/u16-asnprintf-tests (Files): Likewise.
38096         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
38097         * modules/unistdio/u16-vasprintf-tests (Files): Likewise.
38098         * modules/unistdio/u16-vsnprintf-tests (Files): Likewise.
38099         * modules/unistdio/u16-vsprintf-tests (Files): Likewise.
38100         * modules/unistdio/u32-asnprintf-tests (Files): Likewise.
38101         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
38102         * modules/unistdio/u32-vasprintf-tests (Files): Likewise.
38103         * modules/unistdio/u32-vsnprintf-tests (Files): Likewise.
38104         * modules/unistdio/u32-vsprintf-tests (Files): Likewise.
38105         * modules/unistdio/ulc-asnprintf-tests (Files): Likewise.
38106         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
38107         * modules/unistdio/ulc-vasprintf-tests (Files): Likewise.
38108         * modules/unistdio/ulc-vsnprintf-tests (Files): Likewise.
38109         * modules/unistdio/ulc-vsprintf-tests (Files): Likewise.
38110         * modules/uniwbrk/u8-wordbreaks-tests (Files): Likewise.
38111         * modules/uniwbrk/u16-wordbreaks-tests (Files): Likewise.
38112         * modules/uniwbrk/u32-wordbreaks-tests (Files): Likewise.
38113         * modules/uniwbrk/ulc-wordbreaks-tests (Files): Likewise.
38114         * modules/uniwidth/u8-strwidth-tests (Files): Likewise.
38115         * modules/uniwidth/u8-width-tests (Files): Likewise.
38116         * modules/uniwidth/u16-strwidth-tests (Files): Likewise.
38117         * modules/uniwidth/u16-width-tests (Files): Likewise.
38118         * modules/uniwidth/u32-strwidth-tests (Files): Likewise.
38119         * modules/uniwidth/u32-width-tests (Files): Likewise.
38120         * modules/uniwidth/width-tests (Files): Likewise.
38121         * modules/unlink-tests (Files): Likewise.
38122         * modules/unsetenv-tests (Files): Likewise.
38123         * modules/usleep-tests (Files): Likewise.
38124         * modules/utimens-tests (Files): Likewise.
38125         * modules/utimensat-tests (Files): Likewise.
38126         * modules/vasnprintf-posix-tests (Files): Likewise.
38127         * modules/vasnprintf-tests (Files): Likewise.
38128         * modules/vasprintf-posix-tests (Files): Likewise.
38129         * modules/vasprintf-tests (Files): Likewise.
38130         * modules/vdprintf-posix-tests (Files): Likewise.
38131         * modules/vfprintf-posix-tests (Files): Likewise.
38132         * modules/vprintf-posix-tests (Files): Likewise.
38133         * modules/vsnprintf-posix-tests (Files): Likewise.
38134         * modules/vsnprintf-tests (Files): Likewise.
38135         * modules/vsprintf-posix-tests (Files): Likewise.
38136         * modules/wcrtomb-tests (Files): Likewise.
38137         * modules/wcsnrtombs-tests (Files): Likewise.
38138         * modules/wcsrtombs-tests (Files): Likewise.
38139         * modules/wctype-tests (Files): Likewise.
38140         * modules/wcwidth-tests (Files): Likewise.
38141         * modules/xmemdup0-tests (Files): Likewise.
38142         * modules/xprintf-posix-tests (Files): Likewise.
38143         * modules/xvasprintf-tests (Files): Likewise.
38144
38145 2009-12-24  Eric Blake  <ebb9@byu.net>
38146
38147         test-nanosleep: fix typo
38148         * tests/test-nanosleep.c (SIGNATURE_CHECK): Fix typo in previous
38149         patch.
38150         Reported by Bruno Haible.
38151
38152 2009-12-24  Bruno Haible  <bruno@clisp.org>
38153
38154         Reduce namespace pollution on glibc systems.
38155         * lib/inttypes.in.h: Don't include <stdint.h> on glibc systems.
38156         * lib/stdlib.in.h: Don't include <stdint.h>, <unistd.h> on glibc
38157         systems.
38158         * lib/unistd.in.h: Don't include <stdio.h>, <fcntl.h>, <stdlib.h>,
38159         <getopt.h> on glibc systems.
38160         * lib/fcntl.in.h: Don't include <sys/stat.h>, <unistd.h> on glibc
38161         systems.
38162         * lib/fcntl.c: Include <unistd.h> here instead.
38163
38164 2009-12-24  Bruno Haible  <bruno@clisp.org>
38165
38166         * lib/stdlib.in.h (includes): Fix typo in today's commit.
38167
38168 2009-12-24  Eric Blake  <ebb9@byu.net>
38169
38170         tests: add signature checks
38171         * tests/signature.h (SIGNATURE_CHECK): New file.
38172         * modules/atexit-tests (Files): Use it.
38173         * modules/btowc-tests (Files): Likewise.
38174         * modules/canonicalize-lgpl-tests (Files): Likewise.
38175         * modules/ceilf-tests (Files): Likewise.
38176         * modules/ceill-tests (Files): Likewise.
38177         * modules/chown-tests (Files): Likewise.
38178         * modules/dprintf-posix-tests (Files): Likewise.
38179         * modules/dup2-tests (Files): Likewise.
38180         * modules/dup3-tests (Files): Likewise.
38181         * modules/duplocale-tests (Files): Likewise.
38182         * modules/fchdir-tests (Files): Likewise.
38183         * modules/fcntl-tests (Files): Likewise.
38184         * modules/fdopendir-tests (Files): Likewise.
38185         * modules/fflush-tests (Files): Likewise.
38186         * modules/flock-tests (Files): Likewise.
38187         * modules/floorf-tests (Files): Likewise.
38188         * modules/floorl-tests (Files): Likewise.
38189         * modules/fnmatch-tests (Files): Likewise.
38190         * modules/fopen-tests (Files): Likewise.
38191         * modules/fprintf-posix-tests (Files): Likewise.
38192         * modules/freopen-tests (Files): Likewise.
38193         * modules/frexp-nolibm-tests (Files): Likewise.
38194         * modules/frexp-tests (Files): Likewise.
38195         * modules/frexpl-nolibm-tests (Files): Likewise.
38196         * modules/frexpl-tests (Files): Likewise.
38197         * modules/fseek-tests (Files): Likewise.
38198         * modules/fseeko-tests (Files): Likewise.
38199         * modules/fsync-tests (Files): Likewise.
38200         * modules/ftell-tests (Files): Likewise.
38201         * modules/ftello-tests (Files): Likewise.
38202         * modules/futimens-tests (Files): Likewise.
38203         * modules/getaddrinfo-tests (Files): Likewise.
38204         * modules/getcwd-tests (Files): Likewise.
38205         * modules/getdelim-tests (Files): Likewise.
38206         * modules/getdtablesize-tests (Files): Likewise.
38207         * modules/getgroups-tests (Files): Likewise.
38208         * modules/gethostname-tests (Files): Likewise.
38209         * modules/getline-tests (Files): Likewise.
38210         * modules/getopt-posix-tests (Files): Likewise.
38211         * modules/gettimeofday-tests (Files): Likewise.
38212         * modules/glob-tests (Files): Likewise.
38213         * modules/iconv-tests (Files): Likewise.
38214         * modules/inet_ntop-tests (Files): Likewise.
38215         * modules/inet_pton-tests (Files): Likewise.
38216         * modules/isblank-tests (Files): Likewise.
38217         * modules/lchown-tests (Files): Likewise.
38218         * modules/ldexpl-tests (Files): Likewise.
38219         * modules/link-tests (Files): Likewise.
38220         * modules/linkat-tests (Files): Likewise.
38221         * modules/lseek-tests (Files): Likewise.
38222         * modules/lstat-tests (Files): Likewise.
38223         * modules/mbrtowc-tests (Files): Likewise.
38224         * modules/mbsinit-tests (Files): Likewise.
38225         * modules/mbsnrtowcs-tests (Files): Likewise.
38226         * modules/mbsrtowcs-tests (Files): Likewise.
38227         * modules/memchr-tests (Files): Likewise.
38228         * modules/memcmp-tests (Files): Likewise.
38229         * modules/memmem-tests (Files): Likewise.
38230         * modules/memrchr-tests (Files): Likewise.
38231         * modules/mkdir-tests (Files): Likewise.
38232         * modules/mkfifo-tests (Files): Likewise.
38233         * modules/mkfifoat-tests (Files): Likewise.
38234         * modules/mknod-tests (Files): Likewise.
38235         * modules/nanosleep-tests (Files): Likewise.
38236         * modules/nl_langinfo-tests (Files): Likewise.
38237         * modules/obstack-printf-tests (Files): Likewise.
38238         * modules/open-tests (Files): Likewise.
38239         * modules/openat-tests (Files): Likewise.
38240         * modules/perror-tests (Files): Likewise.
38241         * modules/pipe2-tests (Files): Likewise.
38242         * modules/poll-tests (Files): Likewise.
38243         * modules/popen-tests (Files): Likewise.
38244         * modules/posix_spawn-tests (Files): Likewise.
38245         * modules/posix_spawnp-tests (Files): Likewise.
38246         * modules/pread-tests (Files): Likewise.
38247         * modules/printf-posix-tests (Files): Likewise.
38248         * modules/pty-tests (Files): Likewise.
38249         * modules/random_r-tests (Files): Likewise.
38250         * modules/rawmemchr-tests (Files): Likewise.
38251         * modules/readlink-tests (Files): Likewise.
38252         * modules/remove-tests (Files): Likewise.
38253         * modules/rename-tests (Files): Likewise.
38254         * modules/renameat-tests (Files): Likewise.
38255         * modules/rmdir-tests (Files): Likewise.
38256         * modules/round-tests (Files): Likewise.
38257         * modules/roundf-tests (Files): Likewise.
38258         * modules/roundl-tests (Files): Likewise.
38259         * modules/select-tests (Files): Likewise.
38260         * modules/setenv-tests (Files): Likewise.
38261         * modules/sigaction-tests (Files): Likewise.
38262         * modules/sleep-tests (Files): Likewise.
38263         * modules/snprintf-posix-tests (Files): Likewise.
38264         * modules/snprintf-tests (Files): Likewise.
38265         * modules/sprintf-posix-tests (Files): Likewise.
38266         * modules/stat-tests (Files): Likewise.
38267         * modules/strcasestr-tests (Files): Likewise.
38268         * modules/strchrnul-tests (Files): Likewise.
38269         * modules/strerror-tests (Files): Likewise.
38270         * modules/strsignal-tests (Files): Likewise.
38271         * modules/strstr-tests (Files): Likewise.
38272         * modules/strtod-tests (Files): Likewise.
38273         * modules/strverscmp-tests (Files): Likewise.
38274         * modules/symlink-tests (Files): Likewise.
38275         * modules/symlinkat-tests (Files): Likewise.
38276         * modules/times-tests (Files): Likewise.
38277         * modules/trunc-tests (Files): Likewise.
38278         * modules/truncf-tests (Files): Likewise.
38279         * modules/truncl-tests (Files): Likewise.
38280         * modules/tsearch-tests (Files): Likewise.
38281         * modules/uname-tests (Files): Likewise.
38282         * modules/unlink-tests (Files): Likewise.
38283         * modules/unsetenv-tests (Files): Likewise.
38284         * modules/usleep-tests (Files): Likewise.
38285         * modules/utimensat-tests (Files): Likewise.
38286         * modules/vasprintf-tests (Files): Likewise.
38287         * modules/vdprintf-posix-tests (Files): Likewise.
38288         * modules/vfprintf-posix-tests (Files): Likewise.
38289         * modules/vprintf-posix-tests (Files): Likewise.
38290         * modules/vsnprintf-posix-tests (Files): Likewise.
38291         * modules/vsnprintf-tests (Files): Likewise.
38292         * modules/vsprintf-posix-tests (Files): Likewise.
38293         * modules/wcrtomb-tests (Files): Likewise.
38294         * modules/wcsnrtombs-tests (Files): Likewise.
38295         * modules/wcsrtombs-tests (Files): Likewise.
38296         * modules/wcwidth-tests (Files): Likewise.
38297         * tests/test-isfinite.c (isfinite): Ensure macro declaration.
38298         * tests/test-isinf.c (isinf): Likewise.
38299         * tests/test-isnan.c (isnan): Likewise.
38300         * tests/test-signbit.c (signbit): Likewise.
38301         * tests/test-select.c (FD_CLR, FD_ISSET, FD_SET, FD_ZERO): Ensure
38302         declaration, either as macro or with correct signature.
38303         (select): Ensure function under test is declared with correct
38304         signature in correct header.
38305         * tests/test-atexit.c (atexit): Likewise.
38306         * tests/test-btowc.c (btowc): Likewise.
38307         * tests/test-canonicalize-lgpl.c (realpath)
38308         (canonicalize_file_name): Likewise.
38309         * tests/test-ceilf1.c (ceilf): Likewise.
38310         * tests/test-ceill.c (ceill): Likewise.
38311         * tests/test-chown.c (chown): Likewise.
38312         * tests/test-dprintf-posix.c (dprintf): Likewise.
38313         * tests/test-dup2.c (dup2): Likewise.
38314         * tests/test-dup3.c (dup3): Likewise.
38315         * tests/test-duplocale.c (duplocale): Likewise.
38316         * tests/test-fchdir.c (fchdir): Likewise.
38317         * tests/test-fchownat.c (fchownat): Likewise.
38318         * tests/test-fcntl.c (fcntl): Likewise.
38319         * tests/test-fdopendir.c (fdopendir): Likewise.
38320         * tests/test-fflush.c (fflush): Likewise.
38321         * tests/test-flock.c (flock): Likewise.
38322         * tests/test-floorf1.c (floorf): Likewise.
38323         * tests/test-floorl.c (floorl): Likewise.
38324         * tests/test-fnmatch.c (fnmatch): Likewise.
38325         * tests/test-fopen.c (fopen): Likewise.
38326         * tests/test-fprintf-posix.c (fprintf): Likewise.
38327         * tests/test-freopen.c (freopen): Likewise.
38328         * tests/test-frexp.c (frexp): Likewise.
38329         * tests/test-frexpl.c (frexpl): Likewise.
38330         * tests/test-fseek.c (fseek): Likewise.
38331         * tests/test-fseeko.c (fseeko): Likewise.
38332         * tests/test-fstatat.c (fstatat): Likewise.
38333         * tests/test-fsync.c (fsync): Likewise.
38334         * tests/test-ftell.c (ftell): Likewise.
38335         * tests/test-ftello.c (ftello): Likewise.
38336         * tests/test-futimens.c (futimens): Likewise.
38337         * tests/test-getaddrinfo.c (getaddrinfo, freeaddrinfo)
38338         (gai_strerror): Likewise.
38339         * tests/test-getcwd.c (getcwd): Likewise.
38340         * tests/test-getdelim.c (getdelim): Likewise.
38341         * tests/test-getdtablesize.c (getdtablesize): Likewise.
38342         * tests/test-getgroups.c (getgroups): Likewise.
38343         * tests/test-gethostname.c (gethostname): Likewise.
38344         * tests/test-getline.c (getline): Likewise.
38345         * tests/test-getopt.c (getopt, getopt_long, getopt_long_only):
38346         Likewise.
38347         * tests/test-gettimeofday.c (gettimeofday): Likewise.
38348         * tests/test-glob.c (glob, globfree): Likewise.
38349         * tests/test-iconv.c (iconv, iconv_open, iconv_close): Likewise.
38350         * tests/test-inet_ntop.c (inet_ntop): Likewise.
38351         * tests/test-inet_pton.c (inet_pton): Likewise.
38352         * tests/test-isblank.c (isblank): Likewise.
38353         * tests/test-lchown.c (lchown): Likewise.
38354         * tests/test-ldexpl.c (ldexpl): Likewise.
38355         * tests/test-link.c (link): Likewise.
38356         * tests/test-linkat.c (linkat): Likewise.
38357         * tests/test-lseek.c (lseek): Likewise.
38358         * tests/test-lstat.c (lstat): Likewise.
38359         * tests/test-mbrtowc.c (mbrtowc): Likewise.
38360         * tests/test-mbsinit.c (mbsinit): Likewise.
38361         * tests/test-mbsnrtowcs.c (mbsnrtowcs): Likewise.
38362         * tests/test-mbsrtowcs.c (mbsrtowcs): Likewise.
38363         * tests/test-memchr.c (memchr): Likewise.
38364         * tests/test-memcmp.c (memcmp): Likewise.
38365         * tests/test-memmem.c (memmem): Likewise.
38366         * tests/test-memrchr.c (memrchr): Likewise.
38367         * tests/test-mkdir.c (mkdir): Likewise.
38368         * tests/test-mkdirat.c (mkdirat): Likewise.
38369         * tests/test-mkfifo.c (mkfifo): Likewise.
38370         * tests/test-mkfifoat.c (mkfifoat, mknodat): Likewise.
38371         * tests/test-mknod.c (mknod): Likewise.
38372         * tests/test-nanosleep.c (nanosleep): Likewise.
38373         * tests/test-nl_langinfo.c (nl_langinfo): Likewise.
38374         * tests/test-obstack-printf.c (obstack_printf, obstack_vprintf):
38375         Likewise.
38376         * tests/test-open.c (open): Likewise.
38377         * tests/test-openat.c (openat): Likewise.
38378         * tests/test-perror.c (perror): Likewise.
38379         * tests/test-pipe2.c (pipe2): Likewise.
38380         * tests/test-poll.c (poll): Likewise.
38381         * tests/test-popen.c (popen, pclose): Likewise.
38382         * tests/test-posix_spawn1.c (posix_spawnp, posix_spawnattr_init)
38383         (posix_spawnattr_destroy, posix_spawnattr_setsigmask)
38384         (posix_spawnattr_setflags, posix_spawn_file_actions_init)
38385         (posix_spawn_file_actions_destroy)
38386         (posix_spawn_file_actions_addclose)
38387         (posix_spawn_file_actions_addopen)
38388         (posix_spawn_file_actions_adddup2): Likewise.
38389         * tests/test-posix_spawn3.c (posix_spawn): Likewise.
38390         * tests/test-pread.c (pread): Likewise.
38391         * tests/test-printf-posix.c (printf): Likewise.
38392         * tests/test-pty.c (openpty, forkpty): Likewise.
38393         * tests/test-random_r.c (srandom_r, initstate_r, setstate_r)
38394         (random_r): Likewise.
38395         * tests/test-rawmemchr.c (rawmemchr): Likewise.
38396         * tests/test-readlink.c (readlink): Likewise.
38397         * tests/test-remove.c (remove): Likewise.
38398         * tests/test-rename.c (rename): Likewise.
38399         * tests/test-renameat.c (renameat): Likewise.
38400         * tests/test-rmdir.c (rmdir): Likewise.
38401         * tests/test-round1.c (round): Likewise.
38402         * tests/test-roundf1.c (roundf): Likewise.
38403         * tests/test-roundl.c (roundl): Likewise.
38404         * tests/test-setenv.c (setenv): Likewise.
38405         * tests/test-sigaction.c (sigaction): Likewise.
38406         * tests/test-sleep.c (sleep): Likewise.
38407         * tests/test-snprintf.c (snprintf): Likewise.
38408         * tests/test-sprintf-posix.c (sprintf): Likewise.
38409         * tests/test-stat.c (stat): Likewise.
38410         * tests/test-stpncpy.c (stpncpy): Likewise.
38411         * tests/test-strcasestr.c (strcasestr): Likewise.
38412         * tests/test-strchrnul.c (strchrnul): Likewise.
38413         * tests/test-strerror.c (strerror): Likewise.
38414         * tests/test-strsignal.c (strsignal): Likewise.
38415         * tests/test-strstr.c (strstr): Likewise.
38416         * tests/test-strtod.c (strtod): Likewise.
38417         * tests/test-strverscmp.c (strverscmp): Likewise.
38418         * tests/test-symlink.c (symlink): Likewise.
38419         * tests/test-symlinkat.c (symlinkat, readlinkat): Likewise.
38420         * tests/test-times.c (times): Likewise.
38421         * tests/test-trunc1.c (trunc): Likewise.
38422         * tests/test-truncf1.c (truncf): Likewise.
38423         * tests/test-truncl.c (truncl): Likewise.
38424         * tests/test-tsearch.c (tdelete, tfind, tsearch, twalk):
38425         Likewise.
38426         * tests/test-uname.c (uname): Likewise.
38427         * tests/test-unlink.c (unlink): Likewise.
38428         * tests/test-unlinkat.c (unlinkat): Likewise.
38429         * tests/test-unsetenv.c (unsetenv): Likewise.
38430         * tests/test-usleep.c (usleep): Likewise.
38431         * tests/test-utimensat.c (utimensat): Likewise.
38432         * tests/test-vasprintf.c (asprintf, vasprintf): Likewise.
38433         * tests/test-vdprintf-posix.c (vdprintf): Likewise.
38434         * tests/test-vfprintf-posix.c (vfprintf): Likewise.
38435         * tests/test-vprintf-posix.c (vprintf): Likewise.
38436         * tests/test-vsnprintf.c (vsnprintf): Likewise.
38437         * tests/test-vsprintf-posix.c (vsprintf): Likewise.
38438         * tests/test-wcrtomb.c (wcrtomb): Likewise.
38439         * tests/test-wcsnrtombs.c (wcsnrtombs): Likewise.
38440         * tests/test-wcsrtombs.c (wcsrtombs): Likewise.
38441         * tests/test-wcwidth.c (wcwidth): Likewise.
38442
38443         build: pull in conditional headers during GNULIB_POSIXCHECK
38444         * lib/stdio.in.h (includes): Using GNULIB_POSIXCHECK also requires
38445         definitions from any conditionally-included headers.
38446         * lib/stdlib.in.h (includes): Likewise.
38447         * lib/unistd.in.h (includes): Likewise.
38448
38449 2009-12-24  Bruno Haible  <bruno@clisp.org>
38450
38451         * tests/test-argv-iter.c: Include header file being tested immediately
38452         after config.h.
38453         * tests/test-base64.c: Likewise.
38454         * tests/test-flock.c: Likewise.
38455         * tests/test-fsync.c: Likewise.
38456         * tests/test-getdate.c: Likewise.
38457         * tests/test-getndelim2.c: Likewise.
38458         * tests/test-isfinite.c: Likewise.
38459         * tests/test-isinf.c: Likewise.
38460         * tests/test-strerror.c: Likewise.
38461         * tests/test-strsignal.c: Likewise.
38462
38463 2009-12-23  Eric Blake  <ebb9@byu.net>
38464
38465         unistd: work around cygwin bug
38466         * lib/unistd.in.h (includes): Pick up headers needed for cygwin.
38467         * doc/posix-functions/unlinkat.texi (unlinkat): Document the bug.
38468         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
38469
38470 2009-12-23  Bruno Haible  <bruno@clisp.org>
38471
38472         localename: More tests.
38473         * tests/test-localename.c (SIZEOF): New macro.
38474         (categories): New variable.
38475         (test_locale_name, test_locale_name_posix, test_locale_name_environ,
38476         test_locale_name_default): Add test w.r.t. thread locale.
38477         (test_locale_name_thread): New function.
38478         (main): Invoke it.
38479
38480         localename: Make aware of thread locale.
38481         * lib/localename.h (gl_locale_name_thread): New declaration.
38482         (gl_locale_name, gl_locale_name_posix, gl_locale_name_default): Clarify
38483         behaviour with respect to thread locale.
38484         * lib/localename.c: Include <limits.h>, <stddef.h>, <xlocale.h>,
38485         <langinfo.h>, glthread/lock.h.
38486         (SIZE_BITS): New macro.
38487         (string_hash): New function.
38488         (struct hash_node): New type.
38489         (HASH_TABLE_SIZE): New macro.
38490         (struniq_hash_table, struniq_lock): New variables.
38491         (struniq): New function.
38492         (gl_locale_name_thread): New function.
38493         (gl_locale_name): Invoke it.
38494         * m4/localename.m4 (gl_LOCALENAME): Test for uselocale function.
38495         * modules/localename (Depends-on): Add lock.
38496         Reported by Mike Gran <spk121@yahoo.com>.
38497
38498 2009-12-23  Eric Blake  <ebb9@byu.net>
38499
38500         va-args: new module
38501         * modules/va-args: New file.
38502         * m4/va-args.m4 (gl_VA_ARGS): Likewise.
38503         * MODULES.html.sh (Core language properties): Mention it.
38504
38505         gnulib-common: prefer _GL_UNUSED over _UNUSED_PARAMETER_
38506         * m4/gnulib-common.m4 (gl_COMMON): Create a more-appropriately
38507         named alias for __attribute__((__unused__)).
38508         * lib/chown.c: Update client.
38509         * lib/fchmodat.c: Likewise.
38510         * lib/fts.c: Likewise.
38511         * lib/getdate.y: Likewise.
38512         * lib/getgroups.c: Likewise.
38513         * lib/getopt.c: Likewise.
38514         * lib/getugroups.c: Likewise.
38515         * lib/mkdir.c: Likewise.
38516         * lib/mkfifo.c: Likewise.
38517         * lib/mkfifoat.c: Likewise.
38518         * lib/mknod.c: Likewise.
38519         * lib/mknodat.c: Likewise.
38520         * lib/readlink.c: Likewise.
38521         * lib/se-context.in.h: Likewise.
38522         * lib/se-selinux.in.h: Likewise.
38523         * lib/sockets.c: Likewise.
38524         * lib/symlink.c: Likewise.
38525         * lib/symlinkat.c: Likewise.
38526         * lib/unicodeio.c: Likewise.
38527         * lib/unistr.h: Likewise.
38528         * tests/test-areadlink.c: Likewise.
38529         * tests/test-areadlinkat.c: Likewise.
38530         * tests/test-filenamecat.c: Likewise.
38531         * tests/test-fseeko.c: Likewise.
38532         * tests/test-ftello.c: Likewise.
38533         * tests/test-getdate.c: Likewise.
38534         * tests/test-getgroups.c: Likewise.
38535         * tests/test-gethostname.c: Likewise.
38536         * tests/test-quotearg.c: Likewise.
38537         * tests/test-version-etc.c: Likewise.
38538         * tests/test-xalloc-die.c: Likewise.
38539         * tests/test-xfprintf-posix.c: Likewise.
38540         * tests/test-xprintf-posix.c: Likewise.
38541         * tests/test-xvasprintf.c: Likewise.
38542
38543         tests: avoid compiler warnings
38544         * tests/test-fcntl.c (main): Delete unused parameters.
38545         * tests/test-freopen-safer.c (main): Likewise.
38546         * tests/test-xalloc-die.c (main): Mark unused parameters.
38547         * tests/test-fseeko.c (main): Likewise.
38548         * tests/test-ftello.c (main): Likewise.
38549         * tests/test-nanosleep.c (main): Avoid declaration warning.
38550         * tests/test-sleep.c (main): Likewise.
38551         * tests/test-unsetenv.c (main): Silence warning about string
38552         literal.
38553         * m4/setenv.m4 (gl_FUNC_UNSETENV): Likewise.
38554
38555 2009-12-23  Bruno Haible  <bruno@clisp.org>
38556
38557         * tests/test-localename.c (test_locale_name): New function, extracted
38558         from main. Also test mixed situations.
38559         (test_locale_name_posix, test_locale_name_environ,
38560         test_locale_name_default): New functions.
38561         (main): Invoke them all.
38562         * modules/localename-tests (configure.ac): Test for newlocale.
38563
38564 2009-12-23  Bruno Haible  <bruno@clisp.org>
38565
38566         unistd: Ensure getcwd gets declared before being overridden.
38567         * lib/unistd.in.h: Conditionally include <io.h>.
38568
38569 2009-12-22  Bruno Haible  <bruno@clisp.org>
38570
38571         wchar: Diagnose broken combination of glibc and gcc versions and flags.
38572         * m4/wchar.m4 (gl_WCHAR_H_INLINE_OK): New macro.
38573         (gl_WCHAR_H): Invoke it.
38574         * m4/btowc.m4 (gl_FUNC_BTOWC): Require it.
38575         * doc/posix-headers/wchar.texi: Mention the interoperability problem.
38576         Reported by Karl Berry <karl@freefriends.org>.
38577
38578 2009-12-22  Eric Blake  <ebb9@byu.net>
38579
38580         math, unistd: avoid redundant includes
38581         * lib/math.in.h (isnan): No need to re-include <math.h>.
38582         * lib/unistd.in.h (getcwd): Likewise, for <stdlib.h>.
38583
38584         getsubopt: work around cygwin bug
38585         * lib/stdlib.in.h (includes): Move unistd inclusion sooner, to
38586         avoid conflicting with system getsubopt.
38587         * doc/posix-functions/getsubopt.texi (getsubopt): Document the
38588         bug.
38589
38590         getopt: synchronize from glibc
38591         * lib/getopt.c (_getopt_initialize, _getopt_internal_r): Swap
38592         parameter order.  Adjust all callers.
38593         (_getopt_internal_r, main): Adjust quoting in error messages.
38594         Drop considerations for outdated POSIX 1003.2 error message.
38595         * lib/getopt1.c (_getopt_long_r, _getopt_long_only_r): Adjust
38596         callers.
38597         * lib/getopt_int.h (_getopt_internal_r): Adjust prototype.
38598
38599         test-getopt: test stderr behavior
38600         * modules/getopt-posix-tests (Depends-on): Add dup2.
38601         * tests/test-getopt.c (ASSERT): Avoid stderr.
38602         (main): Move stderr to a temporary file.
38603         * tests/test-getopt.h (getopt_loop): No longer manipulate opterr.
38604         Instead, add parameter to inform caller if output occurred.
38605         (test_getopt): Adjust all existing tests to expect silence, and
38606         add new tests of leading ":".
38607         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38608         glibc shortcomings with leading "-:" or "+:" in optstring.
38609         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38610         Likewise.
38611         * doc/posix-functions/getopt.texi (getopt): Likewise.
38612
38613         test-getopt: enhance test
38614         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require that getopt_long
38615         supports optind=0.
38616         * tests/test-getopt.c (OPTIND_MIN): Move...
38617         * tests/test-getopt.h (OPTIND_MIN): ...here.
38618         * tests/test-getopt_long.h (test_getopt_long): Add more coverage.
38619         Require that optind=0 works, since modern BSD supports it in
38620         addition to optreset, and since coreutils expects it.
38621         (test_getopt_long_only): New test.
38622         * doc/glibc-functions/getopt_long.texi (getopt_long): Document
38623         glibc shortcomings with 'W;', and enforcement of optind=0.
38624         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
38625         Likewise.
38626
38627 2009-12-21  Bruno Haible  <bruno@clisp.org>
38628
38629         localename: Improvements for MacOS X and Cygwin.
38630         * lib/localename.h (gl_locale_name_environ): New declaration.
38631         * lib/localename.c (gl_locale_name_environ): New function, extracted from
38632         gl_locale_name_posix. Ignore dummy LANG values on MacOS X and Cygwin.
38633         (gl_locale_name_posix): Invoke it.
38634         (gl_locale_name_default): Add comments. Use Windows native API also on
38635         Cygwin.
38636
38637 2009-12-21  Bruno Haible  <bruno@clisp.org>
38638
38639         Update list of Win32 locale ids.
38640         * lib/localename.c (LANG_ROMANSH): Renamed from LANG_RHAETO_ROMANCE.
38641         (LANG_SAMI): Renamed from LANG_SAAMI.
38642         (LANG_BASHKIR, LANG_LUXEMBOURGISH, LANG_GREENLANDIC,
38643         LANG_MAPUDUNGUN, LANG_MOHAWK, LANG_BRETON, LANG_OCCITAN, LANG_CORSICAN,
38644         LANG_ALSATIAN, LANG_YAKUT, LANG_KICHE, LANG_KINYARWANDA, LANG_WOLOF,
38645         LANG_DARI, LANG_SCOTTISH_GAELIC): New macros.
38646         (SUBLANG_AFRIKAANS_SOUTH_AFRICA, SUBLANG_ALBANIAN_ALBANIA,
38647         SUBLANG_ALSATIAN_FRANCE, SUBLANG_AMHARIC_ETHIOPIA,
38648         SUBLANG_ARMENIAN_ARMENIA, SUBLANG_ASSAMESE_INDIA,
38649         SUBLANG_BASHKIR_RUSSIA, SUBLANG_BASQUE_BASQUE,
38650         SUBLANG_BELARUSIAN_BELARUS, SUBLANG_BRETON_FRANCE,
38651         SUBLANG_BULGARIAN_BULGARIA, SUBLANG_CAMBODIAN_CAMBODIA,
38652         SUBLANG_CATALAN_SPAIN, SUBLANG_CORSICAN_FRANCE,
38653         SUBLANG_CZECH_CZECH_REPUBLIC, SUBLANG_DANISH_DENMARK,
38654         SUBLANG_DARI_AFGHANISTAN, SUBLANG_DIVEHI_MALDIVES,
38655         SUBLANG_DUTCH_SURINAM, SUBLANG_ESTONIAN_ESTONIA,
38656         SUBLANG_FAEROESE_FAROE_ISLANDS, SUBLANG_FARSI_IRAN,
38657         SUBLANG_FINNISH_FINLAND, SUBLANG_FRISIAN_NETHERLANDS,
38658         SUBLANG_GALICIAN_SPAIN, SUBLANG_GEORGIAN_GEORGIA,
38659         SUBLANG_GREEK_GREECE, SUBLANG_GREENLANDIC_GREENLAND,
38660         SUBLANG_GUJARATI_INDIA, SUBLANG_HAUSA_NIGERIA_LATIN,
38661         SUBLANG_HEBREW_ISRAEL, SUBLANG_HINDI_INDIA, SUBLANG_HUNGARIAN_HUNGARY,
38662         SUBLANG_ICELANDIC_ICELAND, SUBLANG_IGBO_NIGERIA,
38663         SUBLANG_INDONESIAN_INDONESIA, SUBLANG_INUKTITUT_CANADA,
38664         SUBLANG_INUKTITUT_CANADA_LATIN, SUBLANG_IRISH_IRELAND,
38665         SUBLANG_JAPANESE_JAPAN, SUBLANG_KANNADA_INDIA,
38666         SUBLANG_KAZAK_KAZAKHSTAN, SUBLANG_KICHE_GUATEMALA,
38667         SUBLANG_KINYARWANDA_RWANDA, SUBLANG_KONKANI_INDIA,
38668         SUBLANG_KYRGYZ_KYRGYZSTAN, SUBLANG_LAO_LAOS, SUBLANG_LATVIAN_LATVIA,
38669         SUBLANG_LITHUANIAN_LITHUANIA, SUBLANG_LOWER_SORBIAN_GERMANY,
38670         SUBLANG_LUXEMBOURGISH_LUXEMBOURG, SUBLANG_MACEDONIAN_MACEDONIA,
38671         SUBLANG_MALAYALAM_INDIA, SUBLANG_MALTESE_MALTA,
38672         SUBLANG_MAORI_NEW_ZEALAND, SUBLANG_MAPUDUNGUN_CHILE,
38673         SUBLANG_MARATHI_INDIA, SUBLANG_MOHAWK_CANADA, SUBLANG_NEPALI_NEPAL,
38674         SUBLANG_OCCITAN_FRANCE, SUBLANG_ORIYA_INDIA,
38675         SUBLANG_PASHTO_AFGHANISTAN, SUBLANG_POLISH_POLAND,
38676         SUBLANG_ROMANSH_SWITZERLAND, SUBLANG_SAMI_NORTHERN_NORWAY,
38677         SUBLANG_SAMI_NORTHERN_SWEDEN, SUBLANG_SAMI_NORTHERN_FINLAND,
38678         SUBLANG_SAMI_LULE_NORWAY, SUBLANG_SAMI_LULE_SWEDEN,
38679         SUBLANG_SAMI_SOUTHERN_NORWAY, SUBLANG_SAMI_SOUTHERN_SWEDEN,
38680         SUBLANG_SAMI_SKOLT_FINLAND, SUBLANG_SAMI_INARI_FINLAND,
38681         SUBLANG_SANSKRIT_INDIA, SUBLANG_SINHALESE_SRI_LANKA,
38682         SUBLANG_SLOVAK_SLOVAKIA, SUBLANG_SLOVENIAN_SLOVENIA,
38683         SUBLANG_SOTHO_SOUTH_AFRICA, SUBLANG_SWAHILI_KENYA,
38684         SUBLANG_SWEDISH_SWEDEN, SUBLANG_SYRIAC_SYRIA,
38685         SUBLANG_TAGALOG_PHILIPPINES, SUBLANG_TAJIK_TAJIKISTAN,
38686         SUBLANG_TAMIL_INDIA, SUBLANG_TATAR_RUSSIA, SUBLANG_TELUGU_INDIA,
38687         SUBLANG_THAI_THAILAND, SUBLANG_TSWANA_SOUTH_AFRICA,
38688         SUBLANG_TURKISH_TURKEY, SUBLANG_TURKMEN_TURKMENISTAN,
38689         SUBLANG_UKRAINIAN_UKRAINE, SUBLANG_UPPER_SORBIAN_GERMANY,
38690         SUBLANG_VIETNAMESE_VIETNAM, SUBLANG_WELSH_UNITED_KINGDOM,
38691         SUBLANG_WOLOF_SENEGAL, SUBLANG_XHOSA_SOUTH_AFRICA,
38692         SUBLANG_YAKUT_RUSSIA, SUBLANG_YI_PRC, SUBLANG_YORUBA_NIGERIA,
38693         SUBLANG_ZULU_SOUTH_AFRICA): New macros.
38694         (gl_locale_name_from_win32_LANGID): Handle also the territory neutral
38695         locale ids. Add support for Alsatian, Bashkir, Breton, Corsican, Dari,
38696         Greenlandic, K'iche', Kinyarwanda, Luxembourgish, Mapudungun, Mohawk,
38697         Occitan, Scottish Gaelic, Wolof, Yakut. Change language code for Yi.
38698         Add more languages and countries for Sami, Sorbian. Add more countries
38699         for Serbian, Dutch. Add more scripts for Inuktitut. Be more precise
38700         for Pashto. Change country for Syriac, Tswana.
38701
38702 2009-12-21  Eric Blake  <ebb9@byu.net>
38703
38704         test-utimens: avoid spurious failure
38705         * tests/test-chown.h (nap): Factor...
38706         * tests/nap.h: ...into new file.
38707         * tests/test-lchown.h (nap): Avoid duplication.
38708         * tests/test-utimens-common.h (nap): Use shared implementation,
38709         necessary on file systems with 1-second resolution.
38710         * modules/chown-tests (Files): Include new file.
38711         * modules/fdutimensat-tests (Files): Likewise.
38712         * modules/futimens-tests (Files): Likewise.
38713         * modules/lchown-tests (Files): Likewise.
38714         * modules/openat-tests (Files): Likewise.
38715         * modules/utimens-tests (Files): Likewise.
38716         * modules/utimensat-tests (Files): Likewise.
38717
38718 2009-12-19  Eric Blake  <ebb9@byu.net>
38719
38720         futimens, utimensat: work around Linux bug
38721         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Detect ctime bug.
38722         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
38723         * lib/utimensat.c (rpl_utimensat): Work around it.
38724         * lib/futimens.c (rpl_futimens): Adjust comment.
38725
38726         utimens: work around Linux ctime bug
38727         * lib/utimens.c (detect_ctime_bug): New helper function.
38728         (update_timespec): Differentiate between workaround needed for
38729         this bug vs. what is needed for systems that lack utimensat.
38730         (fdutimens, lutimens): Work around bug.
38731
38732         utimens: check for ctime update
38733         * tests/test-utimens-common.h (check_ctime): Define.
38734         * tests/test-utimens.h (test_utimens): Expose the Linux bug.
38735         * tests/test-futimens.h (test_futimens): Likewise.
38736         * tests/test-lutimens.h (test_lutimens): Likewise.
38737         * doc/posix-functions/futimens.texi (futimens): Document the bug.
38738         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
38739
38740 2009-12-19  Bruno Haible  <bruno@clisp.org>
38741
38742         dprintf-posix: Check against memory leak fixed on 2009-12-15.
38743         * tests/test-dprintf-posix2.sh: New file.
38744         * tests/test-dprintf-posix2.c: New file.
38745         * modules/dprintf-posix-tests (Files): Add them.
38746         (configure.ac): Check for getrlimit and setrlimit.
38747         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38748
38749 2009-12-19  Bruno Haible  <bruno@clisp.org>
38750
38751         fprintf-posix: Check against memory leak fixed on 2009-12-15.
38752         * tests/test-fprintf-posix3.sh: New file.
38753         * tests/test-fprintf-posix3.c: New file.
38754         * modules/fprintf-posix-tests (Files): Add them.
38755         (Makefile.am): Augment TESTS and CHECK_PROGRAMS.
38756
38757 2009-12-19  Eric Blake  <ebb9@byu.net>
38758
38759         dirfd: fix prototype
38760         * lib/dirent.in.h (dirfd): Argument is not const, per POSIX.
38761         * lib/dirfd.c (dirfd): Likewise.
38762
38763         canonicalize: reduce memory usage
38764         * lib/canonicalize.c (canonicalize_filename_mode): Trim the
38765         allocation to size.
38766         Reported by Solar Designer <solar@openwall.com>.
38767
38768 2009-12-19  Bruno Haible  <bruno@clisp.org>
38769
38770         New module attribute 'Applicability'.
38771         * modules/TEMPLATE-EXTENDED: New field 'Applicability'.
38772         * gnulib-tool: New option --extract-applicability.
38773         (func_usage): Document it.
38774         (sed_extract_prog): Recognize it.
38775         (func_get_applicability): New function.
38776         (func_import): Generalize handling of 'link-warning' module.
38777         * modules/link-warning (Applicability): New section.
38778         * modules/arg-nonnull (Applicability): New section.
38779         Repoted by Simon Josefsson <simon@josefsson.org>.
38780
38781 2009-12-19  Bruno Haible  <bruno@clisp.org>
38782
38783         fflush: tweak
38784         * lib/fflush.c (update_fpos_cache): Don't use fpos_t on Cygwin.
38785         * lib/fseeko.c (rpl_fseeko): Likewise.
38786
38787 2009-12-16  José E. Marchesi  <jemarch@gnu.org>  (tiny change)
38788
38789         * lib/gl_list.h: Fix typo in comment.
38790
38791 2009-12-16  Eric Blake  <ebb9@byu.net>
38792
38793         fcntl: use to simplify other modules
38794         * modules/cloexec (Depends-on): Add fcntl.
38795         * modules/fchdir (Depends-on): Likewise.
38796         * modules/fd-safer-flag (Depends-on): Likewise.
38797         * modules/unistd-safer (Depends-on): Likewise.
38798         * modules/dup3 (configure.ac): Set module indicator.
38799         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Replace fcntl if fchdir is
38800         missing.
38801         * lib/fchdir.c (_gl_register_dup): Fix comment.
38802         * lib/cloexec.c (dup_cloexec): Simplify, by relying on fcntl.
38803         * lib/dup-safer.c (dup_safer): Likewise.
38804         * lib/dup-safer-flag.c (dup_safer_flag): Likewise.
38805         * lib/dup3.c (dup3): Likewise.
38806         * tests/test-fchdir.c (main): Enhance test.
38807         Fixes a dup_cloexec bug reported by OndÅ™ej Vašík.
38808
38809         fcntl: port portions of fcntl to mingw
38810         * m4/fcntl.m4 (gl_FUNC_FCNTL): Also build fcntl.c on mingw.
38811         * lib/fcntl.c (fcntl) <F_DUPFD, F_DUPFD_CLOEXEC, F_GETFD>: Provide
38812         replacement for mingw.
38813         * modules/fcntl (Description): Update.
38814         (Depends-on): Add dup2.
38815         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness.
38816         * modules/fcntl-h (Makefile.am): Substitute it.
38817         * lib/fcntl.in.h (fcntl): Update declaration.
38818         (F_DUPFD, F_GETFD): New macros, when needed.
38819         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
38820         * doc/posix-functions/fcntl.texi (fcntl): Likewise.
38821         * tests/test-fcntl.c (check_flags, main): Enhance test for items
38822         we now guarantee.
38823
38824         fcntl: work around cygwin bug in F_DUPFD
38825         * m4/fcntl.m4 (gl_REPLACE_FCNTL): New macro.
38826         (gl_FUNC_FCNTL): Use it.  Test for F_DUPFD bug.
38827         * lib/fcntl.c (rpl_fcntl) <F_DUPFD>: Work around it.
38828         <F_DUPFD_CLOEXEC>: Reduce calls to _gl_register_dup.
38829         * doc/posix-functions/fcntl.texi (fcntl): Document it.
38830
38831         fcntl: support F_DUPFD_CLOEXEC on systems with fcntl
38832         * modules/fcntl (Files): List new files.
38833         (configure.ac): Run a test.
38834         * m4/fcntl.m4 (gl_FUNC_FCNTL): New file.
38835         * lib/fcntl.c (rpl_fcntl): Likewise.
38836         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Add witness defaults.
38837         (gl_FCNTL_H): Always replace fcntl.h.
38838         * modules/fcntl-h (Makefile.am): Substitute witnesses.
38839         * lib/fcntl.in.h (fcntl): Declare replacement.
38840         (F_DUPFD_CLOEXEC, GNULIB_defined_F_DUPFD_CLOEXEC): New macro when
38841         needed, plus a witness.
38842         * doc/posix-functions/fcntl.texi (fcntl): Document this.
38843         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
38844         * tests/test-fcntl.c: New file.
38845         * modules/fcntl-tests: Likewise.
38846
38847         binary-io: avoid potential compilation warning
38848         * lib/binary-io.h [__DJGPP__]: Avoid null preprocessor
38849         directives.
38850
38851         fflush: avoid compilation error on NetBSD
38852         * lib/fflush.c (update_fpos_cache): Use a union to safely convert
38853         between off_t and fpos_t, since the latter is sometimes a struct.
38854         * lib/fseeko.c (rpl_fseeko): Likewise.
38855         Reported by Alexander Nasonov <alnsn@yandex.ru>.
38856
38857 2009-12-15  Eric Blake  <ebb9@byu.net>
38858
38859         fcntl-h, stdio, sys_ioctl: fix declarations
38860         * lib/stdio.in.h (dprintf): Use of link warning on a variadic
38861         function must not take arguments.
38862         * lib/sys_ioctl.in.h (ioctl): Likewise.
38863         * lib/fcntl.in.h (openat): Likewise.  Declare extern.
38864         (open): Add a link warning.
38865
38866 2009-12-15  Jim Meyering  <meyering@redhat.com>
38867
38868         areadlink, areadlink-with-size: relax license to LGPLv2+
38869         * modules/areadlink (License): Relax to LGPLv2+.
38870         * modules/areadlink-with-size (License): Likewise.
38871
38872 2009-12-15  Joel E. Denny  <jdenny@clemson.edu>
38873             Bruno Haible  <bruno@clisp.org>
38874
38875         *printf: Fix memory leak.
38876         * lib/fprintf.c (fprintf): Free memory allocated by vasnprintf.
38877         * lib/vfprintf.c (vfprintf): Likewise.
38878         * lib/dprintf.c (dprintf): Likewise.
38879         * lib/vdprintf.c (vdprintf): Likewise.
38880
38881 2009-12-14  Eric Blake  <ebb9@byu.net>
38882
38883         accept4: adjust module dependencies
38884         * modules/accept4 (Depends-on): Use fcntl-h, not fcntl.
38885
38886         utimens: one more try at avoiding compiler warning
38887         * lib/utimens.c (lutimens): Lower scope of result.
38888
38889 2009-12-13  Bruno Haible  <bruno@clisp.org>
38890
38891         Move the malloc checking from module 'list' to new module 'xlist'.
38892         * modules/xlist: New file.
38893         * lib/gl_xlist.h: New file.
38894         * lib/gl_xlist.c: New file.
38895         * lib/gl_list.h (gl_list_create_empty, gl_list_create,
38896         gl_list_node_set_value, gl_list_set_at, gl_list_add_first,
38897         gl_list_add_last, gl_list_add_before, gl_list_add_after,
38898         gl_list_nx_add_at, gl_sortedlist_add): Disable declarations.
38899         (gl_list_nx_create_empty, gl_list_nx_create, gl_list_node_nx_set_value,
38900         gl_list_nx_set_at, gl_list_nx_add_first, gl_list_nx_add_last,
38901         gl_list_nx_add_before, gl_list_nx_add_after, gl_list_nx_add_at,
38902         gl_sortedlist_nx_add): New declarations.
38903         (struct gl_list_implementation): Rename and change methods accordingly.
38904         (gl_list_nx_create_empty): Renamed from gl_list_create_empty.
38905         (gl_list_nx_create): Renamed from gl_list_create.
38906         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38907         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38908         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38909         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38910         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38911         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38912         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38913         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38914         * lib/gl_list.c (gl_list_nx_create_empty): Renamed from
38915         gl_list_create_empty.
38916         (gl_list_nx_create): Renamed from gl_list_create.
38917         (gl_list_node_nx_set_value): Renamed from gl_list_node_set_value.
38918         (gl_list_nx_set_at): Renamed from gl_list_set_at.
38919         (gl_list_nx_add_first): Renamed from gl_list_add_first.
38920         (gl_list_nx_add_last): Renamed from gl_list_add_last.
38921         (gl_list_nx_add_before): Renamed from gl_list_add_before.
38922         (gl_list_nx_add_after): Renamed from gl_list_add_after.
38923         (gl_list_nx_add_at): Renamed from gl_list_add_at.
38924         (gl_sortedlist_nx_add): Renamed from gl_sortedlist_add.
38925         * lib/gl_array_list.c: Don't include xalloc.h.
38926         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Return
38927         NULL upon out-of-memory.
38928         (gl_array_nx_create): Renamed from gl_array_create. Return NULL upon
38929         out-of-memory.
38930         (gl_array_node_nx_set_value): Renamed from gl_array_node_set_value.
38931         Change return type to 'int'.
38932         (gl_array_nx_set_at): Renamed from gl_array_set_at.
38933         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38934         (gl_array_nx_add_first): Renamed from gl_array_add_first. Return NULL
38935         upon out-of-memory.
38936         (gl_array_nx_add_last): Renamed from gl_array_add_last. Return NULL
38937         upon out-of-memory.
38938         (gl_array_nx_add_before): Renamed from gl_array_add_before. Return NULL
38939         upon out-of-memory.
38940         (gl_array_nx_add_after): Renamed from gl_array_add_after. Return NULL
38941         upon out-of-memory.
38942         (gl_array_nx_add_at): Renamed from gl_array_add_at. Return NULL upon
38943         out-of-memory.
38944         (gl_array_sortedlist_nx_add): Renamed from gl_array_sortedlist_add.
38945         Update.
38946         (gl_array_list_implementation): Update.
38947         * lib/gl_carray_list.c: Don't include xalloc.h.
38948         (gl_carray_nx_create_empty): Renamed from gl_carray_create_empty.
38949         Return NULL upon out-of-memory.
38950         (gl_carray_nx_create): Renamed from gl_carray_create. Return NULL upon
38951         out-of-memory.
38952         (gl_carray_node_nx_set_value): Renamed from gl_carray_node_set_value.
38953         Change return type to 'int'.
38954         (gl_carray_nx_set_at): Renamed from gl_carray_set_at.
38955         (grow): Change return type to 'int'. Return -1 upon out-of-memory.
38956         (gl_carray_nx_add_first): Renamed from gl_carray_add_first. Return NULL
38957         upon out-of-memory.
38958         (gl_carray_nx_add_last): Renamed from gl_carray_add_last. Return NULL
38959         upon out-of-memory.
38960         (gl_carray_nx_add_at): Renamed from gl_carray_add_at. Return NULL upon
38961         out-of-memory.
38962         (gl_carray_nx_add_before): Renamed from gl_carray_add_before. Update.
38963         (gl_carray_nx_add_after): Renamed from gl_carray_add_after. Update.
38964         (gl_carray_sortedlist_nx_add): Renamed from gl_carray_sortedlist_add.
38965         Update.
38966         (gl_carray_list_implementation): Update.
38967         * lib/gl_anyhash_list2.h (hash_resize): Do nothing upon out-of-memory.
38968         * lib/gl_anylinked_list2.h (gl_linked_nx_create_empty): Renamed from
38969         gl_linked_create_empty. Return NULL upon out-of-memory.
38970         (gl_linked_nx_create): Renamed from gl_linked_create. Return NULL upon
38971         out-of-memory.
38972         (gl_linked_node_nx_set_value): Renamed from gl_linked_node_set_value.
38973         Change return type to 'int'. Return -1 upon out-of-memory.
38974         (gl_linked_nx_set_at): Renamed from gl_linked_set_at. Return NULL upon
38975         out-of-memory.
38976         (gl_linked_nx_add_first): Renamed from gl_linked_add_first. Return NULL
38977         upon out-of-memory.
38978         (gl_linked_nx_add_last): Renamed from gl_linked_add_last. Return NULL
38979         upon out-of-memory.
38980         (gl_linked_nx_add_before): Renamed from gl_linked_add_before. Return
38981         NULL upon out-of-memory.
38982         (gl_linked_nx_add_after): Renamed from gl_linked_add_after. Return NULL
38983         upon out-of-memory.
38984         (gl_linked_nx_add_at): Renamed from gl_linked_add_at. Return NULL upon
38985         out-of-memory.
38986         (gl_linked_sortedlist_nx_add): Renamed from gl_linked_sortedlist_add.
38987         Update.
38988         * lib/gl_linked_list.c: Don't include xalloc.h.
38989         (gl_linked_list_implementation): Update.
38990         * lib/gl_linkedhash_list.c: Don't include xalloc.h.
38991         (add_to_bucket): Change return type to 'int'.
38992         (gl_linkedhash_list_implementation): Update.
38993         * lib/gl_anytree_list1.h (free_subtree): New function.
38994         * lib/gl_anytree_list2.h (gl_tree_nx_create_empty): Renamed from
38995         gl_tree_create_empty. Return NULL upon out-of-memory.
38996         (gl_tree_node_nx_set_value): Renamed from gl_tree_node_set_value.
38997         Change return type to 'int'. Return -1 upon out-of-memory.
38998         (gl_tree_nx_set_at): Renamed from gl_tree_set_at. Return NULL upon
38999         out-of-memory.
39000         (gl_tree_nx_add_at): Renamed from gl_tree_add_at. Update.
39001         (gl_tree_remove_node): New function, moved here from
39002         lib/gl_anyavltree_list2.h and lib/gl_anyrbtree_list2.h.
39003         (gl_tree_sortedlist_nx_add): Renamed from gl_tree_sortedlist_add.
39004         Update.
39005         * lib/gl_anyavltree_list2.h (create_subtree_with_contents): Use
39006         malloc, not xmalloc. Return NULL upon out-of-memory.
39007         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
39008         out-of-memory.
39009         (gl_tree_remove_node_from_tree): New function, extracted from
39010         gl_tree_remove_node.
39011         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
39012         upon out-of-memory.
39013         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
39014         out-of-memory.
39015         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
39016         upon out-of-memory.
39017         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
39018         upon out-of-memory.
39019         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
39020         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents): Use malloc,
39021         not xmalloc. Return NULL upon out-of-memory.
39022         (gl_tree_nx_create): Renamed from gl_tree_create. Return NULL upon
39023         out-of-memory.
39024         (gl_tree_remove_node_from_tree): New function, extracted from
39025         gl_tree_remove_node.
39026         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Return NULL
39027         upon out-of-memory.
39028         (gl_tree_nx_add_last): Renamed from gl_tree_add_last. Return NULL upon
39029         out-of-memory.
39030         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Return NULL
39031         upon out-of-memory.
39032         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Return NULL
39033         upon out-of-memory.
39034         (gl_tree_remove_node): Remove function. Moved to gl_anytree_list2.h.
39035         * lib/gl_avltree_list.c: Don't include xalloc.h. Include
39036         gl_anytree_list1.h before gl_anyavltree_list2.h.
39037         (gl_avltree_list_implementation): Update.
39038         * lib/gl_rbtree_list.c: Don't include xalloc.h. Include
39039         gl_anytree_list1.h before gl_anyavltree_list2.h.
39040         (gl_rbtree_list_implementation): Update.
39041         * lib/gl_anytreehash_list1.h (add_to_bucket, add_nodes_to_buckets):
39042         Change return type to 'int'. Return -1 upon out-of-memory. Use
39043         __builtin_expect.
39044         * lib/gl_avltreehash_list.c: Don't include xalloc.h.
39045         (gl_avltreehash_list_implementation): Update.
39046         * lib/gl_rbtreehash_list.c: Don't include xalloc.h.
39047         (gl_rbtreehash_list_implementation): Update.
39048         * modules/array-list (Depends-on): Remove xalloc.
39049         * modules/carray-list (Depends-on): Likewise.
39050         * modules/linked-list (Depends-on): Likewise.
39051         * modules/linkedhash-list (Depends-on): Likewise.
39052         * modules/avltree-list (Depends-on): Likewise.
39053         * modules/rbtree-list (Depends-on): Likewise.
39054         * modules/avltreehash-list (Depends-on): Likewise.
39055         * modules/rbtreehash-list (Depends-on): Likewise.
39056
39057         * modules/xsublist: New file.
39058         * lib/gl_xsublist.h: New file.
39059         * lib/gl_xsublist.c: New file.
39060         * lib/gl_sublist.h (gl_sublist_create): Disable declaration.
39061         (gl_sublist_nx_create): New declaration.
39062         * lib/gl_sublist.c: Don't include xalloc.h.
39063         (gl_sublist_nx_create_empty): Renamed from gl_sublist_create_empty.
39064         (gl_sublist_nx_create_fill): Renamed from gl_sublist_create_fill.
39065         (gl_sublist_node_nx_set_value): Renamed from gl_sublist_node_set_value.
39066         Change return type to 'int'. Return -1 upon out-of-memory.
39067         (gl_sublist_nx_set_at): Renamed from gl_sublist_set_at. Return NULL
39068         upon out-of-memory.
39069         (gl_sublist_nx_add_first): Renamed from gl_sublist_add_first. Return
39070         NULL upon out-of-memory.
39071         (gl_sublist_nx_add_last): Renamed from gl_sublist_add_last. Return NULL
39072         upon out-of-memory.
39073         (gl_sublist_nx_add_before): Renamed from gl_sublist_add_before. Return
39074         NULL upon out-of-memory.
39075         (gl_sublist_nx_add_after): Renamed from gl_sublist_add_after. Return
39076         NULL upon out-of-memory.
39077         (gl_sublist_nx_add_at): Renamed from gl_sublist_add_at. Return NULL
39078         upon out-of-memory.
39079         (gl_sublist_sortedlist_nx_add): Renamed from gl_sublist_sortedlist_add.
39080         (gl_sublist_list_implementation): Update.
39081         (gl_sublist_nx_create): Renamed from gl_sublist_create. Return NULL
39082         upon out-of-memory.
39083         * modules/sublist (Depends-on): Remove xalloc.
39084
39085         * tests/test-array_list.c: Use gl_list_nx_* functions where possible.
39086         * tests/test-carray_list.c: Likewise.
39087         * tests/test-linked_list.c: Likewise.
39088         * tests/test-linkedhash_list.c: Likewise.
39089         * tests/test-avltree_list.c: Likewise.
39090         * tests/test-rbtree_list.c: Likewise.
39091         * tests/test-avltreehash_list.c: Likewise.
39092         * tests/test-rbtreehash_list.c: Likewise.
39093         * modules/array-list-tests (Makefile.am): Don't link with @LIBINTL@.
39094         * modules/carray-list-tests (Makefile.am): Likewise.
39095         * modules/linked-list-tests (Makefile.am): Likewise.
39096         * modules/linkedhash-list-tests (Makefile.am): Likewise.
39097         * modules/avltree-list-tests (Makefile.am): Likewise.
39098         * modules/rbtree-list-tests (Makefile.am): Likewise.
39099         * modules/avltreehash-list-tests (Makefile.am): Likewise.
39100         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
39101
39102         * NEWS: Mention the changes.
39103
39104         * lib/clean-temp.c: Include gl_xlist.h.
39105         * modules/clean-temp (Depends-on): Add xlist.
39106
39107         * lib/git-merge-changelog.c: Include gl_xlist.h instead of gl_list.h.
39108         * modules/git-merge-changelog (Depends-on): Add xlist. Remove list.
39109
39110         * tests/test-array_oset.c: Include gl_xlist.h.
39111         * modules/array-oset-tests (Depends-on): Add xlist.
39112
39113         Reported by José E. Marchesi <jemarch@gnu.org>.
39114
39115 2009-12-13  Bruno Haible  <bruno@clisp.org>
39116
39117         Move the malloc checking from module 'oset' to new module 'xoset'.
39118         * modules/xoset: New file.
39119         * lib/gl_xoset.h: New file.
39120         * lib/gl_xoset.c: New file.
39121         * lib/gl_oset.h (gl_oset_create_empty, gl_oset_add): Disable
39122         declarations.
39123         (gl_oset_nx_create_empty, gl_oset_nx_add): New declarations.
39124         (struct gl_oset_implementation): Rename and change methods accordingly.
39125         (gl_oset_nx_create_empty): Renamed from gl_oset_create_empty.
39126         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39127         'int'. Mark as __warn_unused_result__.
39128         * lib/gl_oset.c (gl_oset_nx_create_empty): Renamed from
39129         gl_oset_create_empty.
39130         (gl_oset_nx_add): Renamed from gl_oset_add. Change return type to
39131         'int'.
39132         * lib/gl_array_oset.c: Don't include xalloc.h.
39133         (gl_array_nx_create_empty): Renamed from gl_array_create_empty. Use
39134         malloc, not xmalloc.
39135         (grow): Change return type to 'int'. Don't call xalloc_die.
39136         (gl_array_nx_add_at): Renamed from gl_array_add_at. Change return type
39137         to 'int'.
39138         (gl_array_nx_add): Renamed from gl_array_add. Change return type to
39139         'int'.
39140         (gl_array_oset_implementation): Update.
39141         * lib/gl_anytree_oset.h (gl_tree_nx_create_empty): Renamed from
39142         gl_tree_create_empty.
39143         (gl_tree_nx_add): Renamed from gl_tree_add. Change return type to
39144         'int'.
39145         * lib/gl_avltree_oset.c: Don't include xalloc.h.
39146         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39147         xmalloc.
39148         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39149         not xmalloc.
39150         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39151         xmalloc.
39152         (gl_avltree_oset_implementation): Update.
39153         * lib/gl_rbtree_oset.c: Don't include xalloc.h.
39154         (gl_tree_nx_add_first): Renamed from gl_tree_add_first. Use malloc, not
39155         xmalloc.
39156         (gl_tree_nx_add_before): Renamed from gl_tree_add_before. Use malloc,
39157         not xmalloc.
39158         (gl_tree_nx_add_after): Renamed from gl_tree_add_after. Use malloc, not
39159         xmalloc.
39160         (gl_rbtree_oset_implementation): Update.
39161         * modules/array-oset (Depends-on): Remove xalloc.
39162         * modules/avltree-oset (Depends-on): Likewise.
39163         * modules/rbtree-oset (Depends-on): Likewise.
39164         * tests/test-array_oset.c: Use gl_oset_nx_* functions where possible.
39165         * tests/test-avltree_oset.c: Likewise.
39166         * tests/test-rbtree_oset.c: Likewise.
39167         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
39168         * modules/avltree-oset-tests (Makefile.am): Don't link with @LIBINTL@.
39169         * modules/rbtree-oset-tests (Makefile.am): Likewise.
39170         * NEWS: Mention the change.
39171
39172 2009-12-05  Alfred M. Szmidt  <ams@gnu.org>
39173
39174         maint.mk: allow a project to override release-prep commands
39175         * top/maint.mk (alpha, beta, stable): Move release-preparatory
39176         commands into a new rule.
39177         (release-prep): New rule.
39178         (release-prep-hook): New overridable variable.
39179
39180 2009-12-13  Bruno Haible  <bruno@clisp.org>
39181
39182         * lib/localcharset.c (locale_charset): Fix comment about use of GetACP.
39183
39184 2009-12-13  Jim Meyering  <meyering@redhat.com>
39185
39186         maint.mk (null_AM_MAKEFLAGS, built_programs): remove unused definitions
39187         * top/maint.mk (null_AM_MAKEFLAGS, built_programs): Remove definitions.
39188
39189 2009-12-12  Bruno Haible  <bruno@clisp.org>
39190
39191         duplocale: Tweak.
39192         * lib/duplocale.c (rpl_duplocale): Mark categories array as 'const'.
39193
39194 2009-12-12  Karl Berry  <karl@gnu.org>
39195
39196         * config/srclist.txt (strtoll.c): tab changes, no more sync.
39197
39198 2009-12-12  Bruno Haible  <bruno@clisp.org>
39199
39200         * m4/po.m4: Undo incorrect untabification.
39201
39202 2009-12-12  Bruno Haible  <bruno@clisp.org>
39203
39204         c-strtod, c-strtold: Use multithread-safe implementation on MacOS X.
39205         * modules/c-strtod (Depends-on): Add locale.
39206         * modules/c-strtold (Depends-on): Likewise.
39207
39208 2009-12-12  Bruno Haible  <bruno@clisp.org>
39209
39210         * lib/localcharset.c (locale_charset): Add comment about use of GetACP.
39211
39212 2009-12-11  Eric Blake  <ebb9@byu.net>
39213
39214         setenv: relax requirement in light of POSIX ruling
39215         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): Test handling of "" but
39216         not NULL.
39217         * tests/test-setenv.c (main): Relax test.
39218         * tests/test-unsetenv.c (main): Likewise.
39219         * doc/posix-functions/setenv.texi (setenv): Document this.
39220         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
39221
39222 2009-12-11  Bruno Haible  <bruno@clisp.org>
39223
39224         New module 'fd-safer-flag'.
39225         * lib/dup-safer-flag.c: New file, extracted from lib/dup-safer.c.
39226         * lib/dup-safer.c (dup_safer_flag): Remove function.
39227         * lib/fd-safer-flag.c: New file, extracted from lib/fd-safer.c.
39228         * lib/fd-safer.c (fd_safer_flag): Remove function.
39229         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): Update condition.
39230         * modules/cloexec (configure.ac): Drop indicator macro.
39231         * modules/fd-safer-flag: New file.
39232         * modules/pipe2-safer (Depends-on): Add fd-safer-flag. Remove cloexec.
39233         * modules/stdlib-safer (Depends-on): Add fd-safer-flag.
39234         * modules/unistd-safer-tests (Depends-on): Add fd-safer-flag.
39235
39236 2009-12-11  Bruno Haible  <bruno@clisp.org>
39237
39238         Tests for module 'nl_langinfo'.
39239         * modules/nl_langinfo-tests: New file.
39240         * tests/test-nl_langinfo.sh: New file.
39241         * tests/test-nl_langinfo.c: New file.
39242
39243         New module 'nl_langinfo'.
39244         * lib/nl_langinfo.c: New file.
39245         * m4/nl_langinfo.m4: New file.
39246         * modules/nl_langinfo: New file.
39247         * doc/posix-functions/nl_langinfo.texi: Mention the new module.
39248
39249 2009-12-11  Bruno Haible  <bruno@clisp.org>
39250
39251         Tests for module 'langinfo'.
39252         * modules/langinfo-tests: New file.
39253         * tests/test-langinfo.c: New file.
39254
39255         New module 'langinfo'.
39256         * lib/langinfo.in.h: New file.
39257         * m4/langinfo_h.m4: New file.
39258         * modules/langinfo: New file.
39259         * doc/posix-headers/langinfo.texi: Mention the new module.
39260
39261 2009-12-11  Bruno Haible  <bruno@clisp.org>
39262
39263         * lib/config.charset: Untabify.
39264
39265 2009-12-11  Bruno Haible  <bruno@clisp.org>
39266
39267         * modules/unistd-safer (configure.ac): Drop indicator macro.
39268
39269 2009-12-11  Bruno Haible  <bruno@clisp.org>
39270
39271         Move pipe2-safer code to its own file.
39272         * lib/pipe2-safer.c: New file, extracted from lib/pipe-safer.c.
39273         * lib/pipe-safer.c (pipe2_safer): Remove function.
39274         * modules/pipe2-safer (Files): Add lib/pipe2-safer.c.
39275         (Makefile.am): Add it to lib_SOURCES.
39276
39277 2009-12-10  Bruno Haible  <bruno@clisp.org>
39278
39279         * lib/recvfrom.c (rpl_recvfrom): Allow the from argument to be NULL.
39280
39281 2009-12-10  Bruno Haible  <bruno@clisp.org>
39282
39283         Declare which arguments expect non-NULL values, for GCC and clang.
39284         * build-aux/arg-nonnull.h: New file.
39285         * modules/arg-nonnull: New file.
39286         * lib/arpa_inet.in.h (_GL_ARG_NONNULL): New placeholder.
39287         (inet_ntop, inet_pton): Use it.
39288         * lib/dirent.in.h (_GL_ARG_NONNULL): New placeholder.
39289         (closedir, dirfd, opendir, scandir, alphasort): Use it.
39290         * lib/fcntl.in.h (_GL_ARG_NONNULL): New placeholder.
39291         (open, openat): Use it.
39292         * lib/fnmatch.in.h (_GL_ARG_NONNULL): New placeholder.
39293         (fnmatch): Use it.
39294         * lib/getopt.in.h (_GL_ARG_NONNULL): New placeholder.
39295         (getopt, getopt_long, getopt_long_only): Use it.
39296         * lib/glob.in.h (_GL_ARG_NONNULL): New placeholder.
39297         * lib/glob-libc.h (glob, globfree, glob64, globfree64, glob_pattern_p):
39298         Use it.
39299         * lib/iconv.in.h (_GL_ARG_NONNULL): New placeholder.
39300         (iconv_open): Use it.
39301         * lib/inttypes.in.h (_GL_ARG_NONNULL): New placeholder.
39302         (strtoimax, strtoumax): Use it.
39303         * lib/locale.in.h (_GL_ARG_NONNULL): New placeholder.
39304         (duplocale): Use it.
39305         * lib/math.in.h (_GL_ARG_NONNULL): New placeholder.
39306         (frexp, frexpl): Use it.
39307         * lib/netdb.in.h (_GL_ARG_NONNULL): New placeholder.
39308         (getaddrinfo, freeaddrinfo, getnameinfo): Use it.
39309         * lib/search.in.h (_GL_ARG_NONNULL): New placeholder.
39310         (tsearch, tfind, tdelete, twalk): Use it.
39311         * lib/signal.in.h (_GL_ARG_NONNULL): New placeholder.
39312         (sigismember, sigemptyset, sigaddset, sigdelset, sigfillset,
39313         sigpending): Use it.
39314         * lib/spawn.in.h (_GL_ARG_NONNULL): New placeholder.
39315         (posix_spawn, posix_spawnp, posix_spawnattr_init,
39316         posix_spawnattr_destroy, posix_spawnattr_getsigdefault,
39317         posix_spawnattr_setsigdefault, posix_spawnattr_getsigmask,
39318         posix_spawnattr_setsigmask, posix_spawnattr_getflags,
39319         posix_spawnattr_setflags, posix_spawnattr_getpgroup,
39320         posix_spawnattr_setpgroup, posix_spawnattr_getschedpolicy,
39321         posix_spawnattr_setschedpolicy, posix_spawnattr_getschedparam,
39322         posix_spawnattr_setschedparam, posix_spawn_file_actions_init,
39323         posix_spawn_file_actions_destroy, posix_spawn_file_actions_addopen,
39324         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2):
39325         Use it.
39326         * lib/stdio.in.h (_GL_ARG_NONNULL): New placeholder.
39327         (dprintf, fclose, fopen, fprintf, fpurge, fputc, fputs, freopen,
39328         rpl_fseek, fseeko, rpl_ftell, ftello, fwrite, getdelim, getline,
39329         obstack_printf, obstack_vprintf, popen, printf, putc, puts, remove,
39330         rename, renameat, snprintf, sprintf, asprintf, vasprintf, vdprintf,
39331         vfprintf, vprintf, vsnprintf, vsprintf): Use it.
39332         * lib/stdlib.in.h (_GL_ARG_NONNULL): New placeholder.
39333         (atoll, canonicalize_file_name, getloadavg, getsubopt, mkdtemp,
39334         mkostemp, mkostemps, mkstemp, mkstemps, putenv, srandom_r, initstate_r,
39335         setstate_r, random_r, realpath, rpmatch, setenv, strtod, strtoll,
39336         strtoull, unsetenv): Use it.
39337         * lib/string.in.h (_GL_ARG_NONNULL): New placeholder.
39338         (memchr, memmem, mempcpy, memrchr, rawmemchr, stpcpy, stpncpy,
39339         strchrnul, strdup, strndup, strnlen, strpbrk, strsep, strstr,
39340         strcasestr, strtok_r, mbslen, mbsnlen, mbschr, mbsrchr, mbsstr,
39341         mbscasecmp, mbsncasecmp, mbspcasecmp, mbscasestr, mbscspn, mbspbrk,
39342         mbsspn, mbssep, mbstok_r, strverscmp): Use it.
39343         * lib/strings.in.h (_GL_ARG_NONNULL): New placeholder.
39344         (strcasecmp, strncasecmp): Use it.
39345         * lib/sys_socket.in.h (_GL_ARG_NONNULL): New placeholder.
39346         (rpl_connect, rpl_bind, rpl_getpeername, rpl_getsockname,
39347         rpl_getsockopt, rpl_recv, rpl_send, rpl_recvfrom, rpl_sendto,
39348         rpl_setsockopt): Use it.
39349         * lib/sys_stat.in.h (_GL_ARG_NONNULL): New placeholder.
39350         (fchmodat, fstat, fstatat, lchmod, rpl_lstat, mkdir, mkdirat, mkfifo,
39351         mkfifoat, mknod, mknodat, stat, utimensat): Use it.
39352         * lib/sys_time.in.h (_GL_ARG_NONNULL): New placeholder.
39353         (gettimeofday): Use it.
39354         * lib/sys_times.in.h (_GL_ARG_NONNULL): New placeholder.
39355         (times): Use it.
39356         * lib/sys_utsname.in.h (_GL_ARG_NONNULL): New placeholder.
39357         (uname): Use it.
39358         * lib/time.in.h (_GL_ARG_NONNULL): New placeholder.
39359         (nanosleep, mktime, localtime_r, gmtime_r, strptime, timegm): Use it.
39360         * lib/unistd.in.h (_GL_ARG_NONNULL): New placeholder.
39361         (chown, euidaccess, faccessat, _gl_register_fd, fchownat,
39362         getdomainname, gethostname, getlogin_r, lchown, link, linkat, pipe2,
39363         pread, readlink, readlinkat, rmdir, symlink, symlinkat, unlink,
39364         unlinkat, write): Use it.
39365         * lib/wchar.in.h (_GL_ARG_NONNULL): New placeholder.
39366         (mbsrtowcs, mbsnrtowcs, wcsrtombs, wcsnrtombs): Use it.
39367         * lib/argv-iter.h: Include arg-nonnull.h.
39368         (_ATTRIBUTE_NONNULL_): Remove macro.
39369         (argv_iter_init_argv, argv_iter_init_stream, argv_iter,
39370         argv_iter_n_args, argv_iter_free): Use _GL_ARG_NONNULL.
39371         * lib/canonicalize-lgpl.c (_GL_ARG_NONNULL): Define, to defeat gcc
39372         optimization.
39373         * lib/getaddrinfo.c (_GL_ARG_NONNULL): Likewise.
39374         * lib/getdelim.c (_GL_ARG_NONNULL): Likewise.
39375         * lib/glob.c (_GL_ARG_NONNULL): Likewise.
39376         * lib/random_r.c (_GL_ARG_NONNULL): Likewise.
39377         * lib/setenv.c (_GL_ARG_NONNULL): Likewise.
39378         * lib/strtod.c (_GL_ARG_NONNULL): Likewise.
39379         * lib/tsearch.c (_GL_ARG_NONNULL): Likewise.
39380         * lib/unsetenv.c (_GL_ARG_NONNULL): Likewise.
39381         * modules/arpa_inet (Depends-on): Add arg-nonnull.
39382         (Makefile.am): Insert arg-nonnull.h into arpa/inet.h.
39383         * modules/dirent (Depends-on): Add arg-nonnull.
39384         (Makefile.am): Insert arg-nonnull.h into dirent.h.
39385         * modules/fcntl-h (Depends-on): Add arg-nonnull.
39386         (Makefile.am): Insert arg-nonnull.h into fcntl.h.
39387         * modules/fnmatch (Depends-on): Add arg-nonnull.
39388         (Makefile.am): Insert arg-nonnull.h into fnmatch.h.
39389         * modules/getopt-posix (Depends-on): Add arg-nonnull.
39390         (Makefile.am): Insert arg-nonnull.h into getopt.h.
39391         * modules/glob (Depends-on): Add arg-nonnull.
39392         (Makefile.am): Insert arg-nonnull.h into glob.h.
39393         * modules/iconv_open (Depends-on): Add arg-nonnull.
39394         (Makefile.am): Insert arg-nonnull.h into iconv.h.
39395         * modules/inttypes (Depends-on): Add arg-nonnull.
39396         (Makefile.am): Insert arg-nonnull.h into inttypes.h.
39397         * modules/locale (Depends-on): Add arg-nonnull.
39398         (Makefile.am): Insert arg-nonnull.h into locale.h.
39399         * modules/math (Depends-on): Add arg-nonnull.
39400         (Makefile.am): Insert arg-nonnull.h into math.h.
39401         * modules/netdb (Depends-on): Add arg-nonnull.
39402         (Makefile.am): Insert arg-nonnull.h into netdb.h.
39403         * modules/search (Depends-on): Add arg-nonnull.
39404         (Makefile.am): Insert arg-nonnull.h into search.h.
39405         * modules/signal (Depends-on): Add arg-nonnull.
39406         (Makefile.am): Insert arg-nonnull.h into signal.h.
39407         * modules/spawn (Depends-on): Add arg-nonnull.
39408         (Makefile.am): Insert arg-nonnull.h into spawn.h.
39409         * modules/stdio (Depends-on): Add arg-nonnull.
39410         (Makefile.am): Insert arg-nonnull.h into stdio.h.
39411         * modules/stdlib (Depends-on): Add arg-nonnull.
39412         (Makefile.am): Insert arg-nonnull.h into stdlib.h.
39413         * modules/string (Depends-on): Add arg-nonnull.
39414         (Makefile.am): Insert arg-nonnull.h into string.h.
39415         * modules/strings (Depends-on): Add arg-nonnull.
39416         (Makefile.am): Insert arg-nonnull.h into strings.h.
39417         * modules/sys_socket (Depends-on): Add arg-nonnull.
39418         (Makefile.am): Insert arg-nonnull.h into sys/socket.h.
39419         * modules/sys_stat (Depends-on): Add arg-nonnull.
39420         (Makefile.am): Insert arg-nonnull.h into sys/stat.h.
39421         * modules/sys_time (Depends-on): Add arg-nonnull.
39422         (Makefile.am): Insert arg-nonnull.h into sys/time.h.
39423         * modules/sys_times (Depends-on): Add arg-nonnull.
39424         (Makefile.am): Insert arg-nonnull.h into sys/times.h.
39425         * modules/sys_utsname (Depends-on): Add arg-nonnull.
39426         (Makefile.am): Insert arg-nonnull.h into sys/utsname.h.
39427         * modules/time (Depends-on): Add arg-nonnull.
39428         (Makefile.am): Insert arg-nonnull.h into time.h.
39429         * modules/unistd (Depends-on): Add arg-nonnull.
39430         (Makefile.am): Insert arg-nonnull.h into unistd.h.
39431         * modules/wchar (Depends-on): Add arg-nonnull.
39432         (Makefile.am): Insert arg-nonnull.h into wchar.h.
39433         * modules/argv-iter (Depends-on): Add arg-nonnull.
39434         * tests/test-canonicalize.c (null_ptr): New function.
39435         (main): Use it.
39436         * tests/test-canonicalize-lgpl.c (null_ptr): New function.
39437         (main): Use it.
39438         * tests/test-memmem.c (null_ptr): New function.
39439         (main): Use it.
39440         Reported by Jim Meyering.
39441
39442 2009-12-10  Bruno Haible  <bruno@clisp.org>
39443
39444         Use spaces for indentation, not tabs.
39445         * lib/**/*.[hcy] except lib/reg*.[hc]: Untabify.
39446         * m4/*.m4: Untabify.
39447         * build-aux/*.h: Untabify.
39448         * tests/**/*.[hc]: Untabify.
39449         * README: New section "Indent with spaces, not TABs", based on
39450         coreutils/HACKING and comments by Pádraig Brady and Paolo Bonzini.
39451         * NEWS: Mention the change.
39452
39453 2009-12-10  Bruno Haible  <bruno@clisp.org>
39454
39455         pty test: Fix link error.
39456         * modules/pty-tests (Makefile.am): Add the default LDADD value to
39457         test_pty_LDADD.
39458
39459 2009-12-07  Simon Josefsson  <simon@josefsson.org>
39460
39461         * modules/pty: New file.
39462         * modules/pty-tests: New file.
39463         * m4/pty.m4: New file.
39464         * tests/test-pty.c: New file.
39465         * doc/glibc-headers/pty.texi: Modified.
39466         * doc/glibc-functions/forkpty.texi: Modified.
39467         * doc/glibc-functions/openpty.texi: Modified.
39468
39469 2009-12-10  Bruno Haible  <bruno@clisp.org>
39470
39471         Avoid syntax error in C++ mode.
39472         * lib/stdio.in.h (rename): Don't use parameter name 'new'.
39473
39474 2009-12-10  Bruno Haible  <bruno@clisp.org>
39475
39476         Use sed with option -e.
39477         * gnulib-tool (func_version, func_emit_copyright_notice,
39478         func_emit_initmacro_end, func_import, func_create_testdir): Pass
39479         option -e to sed.
39480         * modules/link-warning (Makefile.am): Likewise.
39481
39482 2009-12-10  Jim Meyering  <meyering@redhat.com>
39483
39484         mgetgroups: do not write bytes beyond end of malloc'd buffer
39485         * lib/mgetgroups.c: Fix an off-by-one error.  When we have no
39486         username, we call getgroups with a one-element-shorter buffer,
39487         but still told it the length was original, max_n_groups.
39488
39489 2009-12-09  Eric Blake  <ebb9@byu.net>
39490
39491         cloexec: relax license
39492         * modules/cloexec (Maintainer): Add myself.
39493         (License): Use LGPL, not GPL.
39494
39495         link-warning: optimize generation
39496         * modules/link-warning (Makefile.am): Reduce process usage.
39497
39498 2009-12-09  Bruno Haible  <bruno@clisp.org>
39499
39500         * doc/posix-functions/unsetenv.texi: Mention Solaris 10 bug for which a
39501         workaround was added on 2009-11-17.
39502
39503 2009-12-09  Jim Meyering  <meyering@redhat.com>
39504             Bruno Haible  <bruno@clisp.org>
39505
39506         link-warning: Allow extra lines at the top of build-aux/link-warning.h.
39507         * modules/link-warning (Makefile.am): Make the comment-removing sed
39508         command more robust in the face of bootstrap-prepended comment lines.
39509
39510 2009-12-09  Bruno Haible  <bruno@clisp.org>
39511
39512         * lib/mgetgroups.c (mgetgroups): Don't remove duplicates if there is at
39513         most one group.
39514
39515 2009-12-09  Simon Josefsson <simon@josefsson.org>
39516             Bruno Haible  <bruno@clisp.org>
39517
39518         * build-aux/link-warning.h: Add copyright notice.
39519         * modules/link-warning (Makefile.am): Generate link-warning.h from
39520         build-aux/link-warning.h. Update LINK_WARNING_H accordingly.
39521         * NEWS: Mention change in link-warning module.
39522         * modules/arpa_inet (Makefile.am): Add dependency to arpa/inet.h.
39523         * modules/dirent (Makefile.am): Add dependency to dirent.h.
39524         * modules/fcntl-h (Makefile.am): Add dependency to fcntl.h.
39525         * modules/getopt-posix (Makefile.am): Add dependency to getopt.h.
39526         * modules/inttypes (Makefile.am): Add dependency to inttypes.h.
39527         * modules/math (Makefile.am): Add dependency to math.h.
39528         * modules/search (Makefile.am): Add dependency to search.h.
39529         * modules/signal (Makefile.am): Add dependency to signal.h.
39530         * modules/spawn (Makefile.am): Add dependency to spawn.h.
39531         * modules/stdio (Makefile.am): Add dependency to stdio.h.
39532         * modules/stdlib (Makefile.am): Add dependency to stdlib.h.
39533         * modules/string (Makefile.am): Add dependency to string.h.
39534         * modules/strings (Makefile.am): Add dependency to strings.h.
39535         * modules/sys_ioctl (Makefile.am): Add dependency to sys/ioctl.h.
39536         * modules/sys_select (Makefile.am): Add dependency to sys/select.h.
39537         * modules/sys_socket (Makefile.am): Add dependency to sys/socket.h.
39538         * modules/sys_stat (Makefile.am): Add dependency to sys/stat.h.
39539         * modules/sys_times (Makefile.am): Add dependency to sys/times.h.
39540         * modules/sys_utsname (Makefile.am): Add dependency to sys/utsname.h.
39541         * modules/sys_wait (Makefile.am): Add dependency to sys/wait.h.
39542         * modules/unistd (Makefile.am): Add dependency to unistd.h.
39543         * modules/wchar (Makefile.am): Add dependency to wchar.h.
39544
39545 2009-12-09  Bruno Haible  <bruno@clisp.org>
39546
39547         fchdir: Optimize away rpl_fstat when possible.
39548         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set REPLACE_FSTAT only together with
39549         REPLACE_OPEN_DIRECTORY.
39550         * lib/fchdir.c (rpl_fstat): Define only when REPLACE_OPEN_DIRECTORY.
39551
39552 2009-12-09  Bruno Haible  <bruno@clisp.org>
39553
39554         * lib/fchdir.c: Update comment.
39555
39556 2009-12-09  Bruno Haible  <bruno@clisp.org>
39557
39558         * lib/cloexec.c (set_cloexec_flag): Clarify intent of dup2 call.
39559
39560 2009-12-08  Eric Blake  <ebb9@byu.net>
39561
39562         fchdir: avoid memory leak on re-registration.
39563         * lib/fchdir.c (ensure_dirs_slot): Avoid memory leak.
39564
39565 2009-12-08  Jim Meyering  <meyering@redhat.com>
39566
39567         init.sh: avoid Solaris 10 /bin/sh portability problem
39568         Solaris 10's /bin/sh does not pass '.' arguments 2.. to the
39569         sourced script:
39570           $ printf 'echo "$@"\n' > f; /bin/sh -c '. ./f bar'
39571           $ printf 'echo "$@"\n' > f; /bin/bash -c '. ./f bar'
39572           bar
39573         tests/init.sh relied on that, accepting a --set-path=DIR argument,
39574         and two tests used that idiom.
39575         * tests/init.sh: Update suggested usage comments.
39576         (path_prepend_): New function, to be used in place
39577         of the --src-path=DIR option.
39578         (setup_): Move PATH-prepending code into path_prepend_.
39579         * tests/test-pread.sh: Adapt to new usage.
39580         * tests/test-xalloc-die.sh: Likewise.
39581
39582 2009-12-08  Simon Josefsson  <simon@josefsson.org>
39583
39584         * doc/gnulib.texi (Glibc pty.h): Add.
39585         * doc/glibc-functions/forkpty.texi: Add.
39586         * doc/glibc-functions/openpty.texi: Add.
39587         Suggested by Bruno Haible.
39588
39589 2009-12-08  Eric Blake  <ebb9@byu.net>
39590
39591         fchdir: fix logic bugs
39592         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Fix logic bug.
39593         * tests/test-fchdir.c (main): Enhance test.
39594         * lib/fchdir.c (rpl_fstat): Always provide if fchdir replacement
39595         is in use.
39596
39597         dup2: fix logic bugs
39598         * lib/dup2.c (dup2): Fix logic bugs.  Use HAVE_DUP2 rather than
39599         REPLACE_DUP2 to decide when rpl_dup2 is needed.
39600         * m4/dup2.m4 (gl_REPLACE_DUP2): Only define REPLACE_DUP2 when dup2
39601         exists.
39602         (gl_FUNC_DUP2): Drop unneeded AC_DEFINE.
39603
39604 2009-12-07  Eric Blake  <ebb9@byu.net>
39605
39606         unlink: fix m4 detection
39607         * m4/unlink.m4 (gl_FUNC_UNLINK): Include correct header.
39608
39609         unistd-safer: add unit test
39610         * modules/unistd-safer-tests: New file.
39611         * tests/test-dup-safer.c: Likewise.
39612         * tests/test-cloexec.c (setmode): Avoid compiler warning.
39613         * tests/test-dup2.c (setmode): Likewise.
39614         * lib/cloexec.c (dup_cloexec): Fix mingw compile error.
39615
39616         cloexec: preserve text vs. binary across dup_cloexec
39617         * lib/cloexec.c (dup_cloexec) [W32]: Query and use translation
39618         mode.
39619         * modules/dup2-tests (Depends-on): Add binary-io.
39620         * modules/cloexec-tests (Depends-on): Likewise.
39621         * tests/test-dup2.c (setmode, is_mode): New helpers.
39622         (main): Add tests that translation mode is preserved.
39623         * tests/test-cloexec.c (setmode, is_mode, main): Likewise.
39624         Reported by Bruno Haible.
39625
39626         mgetgroups: reduce duplicate listings
39627         * lib/mgetgroups.c (mgetgroups): Reduce duplicates from the
39628         resulting array.
39629         * tests/test-chown.h (test_chown): Simplify client.
39630         * tests/test-lchown.h (test_lchown): Likewise.
39631
39632 2009-12-06  Bruno Haible  <bruno@clisp.org>
39633
39634         * lib/cloexec.c (dup_cloexec): Fix handling of _gl_register_dup return
39635         value.
39636
39637 2009-12-06  Bruno Haible  <bruno@clisp.org>
39638
39639         * lib/progname.c: Include stdio.h, stdlib.h.
39640         (set_program_name): Reject a NULL argument.
39641
39642 2009-12-05  Eric Blake  <ebb9@byu.net>
39643
39644         pipe2-safer: new module
39645         * modules/pipe2-safer: New file.
39646         * lib/unistd-safer.h (pipe2_safer): New prototype.
39647         * lib/unistd--.h (pipe2): New wrapper.
39648         * lib/pipe-safer.c (pipe2_safer): New function.
39649         * modules/pipe (Depends-on): Add pipe2-safer.
39650         * lib/pipe.c (create_pipe) [WIN32]: Let pipe2_safer do the work.
39651
39652         stdlib-safer: preserve cloexec flag for mkostemp[s]
39653         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer): Use new
39654         fd_safer_flag.
39655
39656         unistd-safer: allow preservation of cloexec status via flag
39657         * lib/unistd-safer.h (dup_safer_flag, fd_safer_flag): New
39658         prototypes.
39659         * lib/dup-safer.c (dup_safer_flag): New function.
39660         * lib/fd-safer.c (fd_safer_flag): Likewise.
39661         * modules/cloexec (configure.ac): Set witness.
39662
39663         test-dup2: enhance test
39664         * modules/dup2-tests (Depends-on): Add cloexec.
39665         * tests/test-dup2.c (main): Enhance test.
39666
39667         cloexec: add dup_cloexec
39668         * lib/cloexec.h (dup_cloexec): New prototype.  Add copyright
39669         header and comments.
39670         * lib/cloexec.c (set_cloexec_flag): Add comments.
39671         (dup_cloexec): New function, with mingw implementation borrowed
39672         from...
39673         * lib/w32spawn.h (dup_noinherit): ...here.
39674         * modules/execute (Depends-on): Add cloexec.
39675         * modules/pipe (Depends-on): Likewise.
39676         * modules/cloexec (Depends-on): Add dup2.
39677         * modules/cloexec-tests (Files): New file.
39678         * tests/test-cloexec.c: Likewise.
39679
39680         test-xalloc-die: fix test for mingw
39681         * modules/xalloc-die-tests (Files): Add tests/init.sh.
39682         * tests/test-xalloc-die.sh: Rewrite to use init.sh.  Strip
39683         directory and .exe suffix off argv[0] output.
39684
39685         test-fseeko: fix test for mingw
39686         * tests/test-fseeko.c (fseek): Redefine GL_LINK_WARNING, rather
39687         than undefining fseek, so test will pass on mingw.
39688
39689 2009-12-05  Bruno Haible  <bruno@clisp.org>
39690
39691         * lib/progname.h (set_program_name): Clarify specification.
39692         * lib/progname.c (set_program_name): Likewise.
39693         Reported by Jim Meyering.
39694
39695 2009-12-05  Jim Meyering  <meyering@redhat.com>
39696
39697         maint.mk: backslash-escape parens in default regexp
39698         * top/maint.mk (news-check-regexp): Now that we're using grep -E,
39699         backslash-escape the literal parentheses.
39700
39701         maint.mk: news-date-check: use grep -E
39702         * top/maint.mk (today): Define a Make variable, not a...
39703         (news-date-check): ...shell variable.
39704         (news-date-regexp): Use the Make variable.
39705         Use grep's -E option.  Change the failing diagnostic to mention
39706         the variable, $(news-date-regexp).
39707
39708 2009-12-04  Alfred M. Szmidt  <ams@gnu.org>
39709
39710         maintainer-makefile: allow customization of NEWS entry format
39711         * top/maint.mk (news-date-regexp): New overridable variable.
39712         (news-date-check): Use it.
39713
39714 2009-12-04  Eric Blake  <ebb9@byu.net>
39715
39716         mgetgroups: add xgetgroups, and avoid ENOSYS failures
39717         * lib/mgetgroups.h (xgetgroups): New prototype.
39718         * lib/mgetgroups.c (xgetgroups): New wrapper.
39719         (mgetgroups): Handle ENOSYS.
39720         * modules/mgetgroups (Depends-on): Add realloc.
39721         Reported by Scott Harrison <scott.gnu.2009@scottrix.co.uk>.
39722
39723         mgetgroups: avoid argument promotion issues with -1
39724         * lib/mgetgroups.c (mgetgroups): A cast is required when checking
39725         for invalid gid_t.
39726         * tests/test-chown.h (getegid, test_chown): Likewise.
39727         * tests/test-lchown.h (getegid, test_lchown): Likewise.
39728
39729 2009-12-03  Paolo Bonzini  <bonzini@gnu.org>
39730
39731         exclude: Fix header file problems.
39732         * lib/exclude.h: Add multiple inclusion guards and include stdbool.h.
39733
39734 2009-12-01  Jim Meyering  <meyering@redhat.com>
39735
39736         fts: fts_open: do not let an empty string cause immediate failure
39737         This is required in support of GNU rm, for which the command
39738         "rm A '' B" must process and remove both A and B, in spite of
39739         the empty string argument.
39740         * lib/fts.c (fts_open): Do not let the presence of an empty string
39741         cause fts_open to fail immediately.  Most fts-using tools must be
39742         able to process all arguments, in order, and can be expected to
39743         diagnose such arguments themselves.
39744
39745 2009-11-30  Eric Blake  <ebb9@byu.net>
39746
39747         utimens: fix compilation error
39748         * lib/utimens.c (lutimens) [!HAVE_UTIMENSAT && HAVE_LUTIMES]:
39749         Declare variable at right scope.
39750
39751 2009-11-29  Jim Meyering  <meyering@redhat.com>
39752
39753         bootstrap: handle perl-5.11's changed --version output
39754         * build-aux/bootstrap (get_version): Handle perl separately,
39755         since perl-5.11's --version output is different.
39756
39757 2009-11-28  Jim Meyering  <meyering@redhat.com>
39758
39759         userspec: depend on the inttostr module, too
39760         * modules/userspec (Depends-on): Add inttostr.
39761
39762         userspec: disallow an ID that maps to (uid_t)-1 or (gid_t)-1
39763         * lib/userspec.c (parse_with_separator): Do not accept a user ID
39764         number of MAXUID when it evaluates to (uid_t) -1.
39765         Likewise for group ID.  Reported by Matt McCutchen in
39766         <http://savannah.gnu.org/bugs/?28113>
39767
39768         userspec: reformat to use spaces, not TABs
39769         * lib/userspec.c: Expand TABs to spaces.
39770         Add Emacs' "indent-tabs-mode: nil" hint.
39771
39772 2009-11-27  Eric Blake  <ebb9@byu.net>
39773
39774         getopt-gnu: flush out another BSD bug
39775         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Test for the bug.
39776         * tests/test-getopt.c (main): Check POSIXLY_CORRECT first, to
39777         flush out BSD bug.
39778         * tests/test-getopt.h (test_getopt): End lists with NULL.
39779         * tests/test-getopt_long.h (test_getopt_long): Likewise.
39780         (test_getopt_long_posix): Enhance test.
39781         * modules/getopt-posix-tests (Depends-on): Add stdbool.
39782         * doc/glibc-functions/getopt_long.texi (getopt_long): Mention
39783         getopt-gnu.
39784         * doc/glibc-functions/getopt_long_only.texi (getopt_long_only):
39785         Likewise.
39786
39787 2009-11-27  Simon Josefsson  <simon@josefsson.org>
39788
39789         * modules/idpriv-droptemp-tests (Notice): Fix text.
39790
39791 2009-11-27  Jim Meyering  <meyering@redhat.com>
39792
39793         test-xalloc-die: avoid spurious failure due to libtool argv difference
39794         In a libtool-enabled project, this test would fail due to a difference
39795         in the emitted program name, e.g.,
39796         -test-xalloc-die: memory exhausted
39797         +/tmp/.../tests/.libs/lt-test-xalloc-die: memory exhausted
39798         Use program to avoid that.
39799         * modules/xalloc-die-tests (Depends-on): Add progname.
39800         * tests/test-xalloc-die.c: Include progname.h".
39801         (program_name): Remove decl.
39802         (main): Call set_program_name.
39803         * tests/test-xalloc-die.sh (compare): Remove unnecessary ${EXE}.
39804
39805 2009-11-26  Richard Jones  <rjones@redhat.com>
39806
39807         w32sock: leave win32 error in place.
39808         * lib/w32sock.h (set_winsock_errno): Do not call WSASetLastError.
39809
39810 2009-11-26  Eric Blake  <ebb9@byu.net>
39811
39812         init.sh: suggest to use skip_ and fail_ functions in comments
39813         * tests/init.sh: Add a sentence.
39814
39815 2009-11-25  Bruno Haible  <bruno@clisp.org>
39816
39817         init.sh: add documentation in comments
39818         * tests/init.sh: Add some developer and user documentation.
39819
39820 2009-11-26  Jim Meyering  <meyering@redhat.com>
39821
39822         init.sh: accommodate even those who specify bogus srcdir manually
39823         * tests/init.sh: Normally, srcdir is guaranteed by automake and
39824         configure-time tests to be sanitized, so that there is no need to
39825         use "$srcdir" in Makefile rules and shell scripts.  Using $srcdir
39826         (with no double quotes) suffices.  However, since tests may be
39827         invoked manually, and since you may explicitly set srcdir to the
39828         name of a directory containing spaces, do quote its uses here.
39829         * tests/test-pread.sh: Likewise.
39830         Suggested by Bruno Haible.
39831
39832         test-pread.sh: avoid diagnostics for those who ignore SIGPIPE
39833         * tests/test-pread.sh: Write no data into the pipe, because
39834         test-pread actually reads none.  This avoids a diagnostic,
39835         "bash: echo: write error: Broken pipe", that arises in the unusual
39836         event something is ignoring SIGPIPE, and might be interpreted
39837         as some sort of failure.  Reported by Bruno Haible.
39838
39839 2009-11-25  Jim Meyering  <meyering@redhat.com>
39840
39841         test-pread: cover failure with ESPIPE and EINVAL
39842         * tests/test-pread.c (main): Test for failure, too.
39843         * tests/test-pread.sh: Invoke with stdin on a pipe.
39844         Suggested by Eric Blake.
39845
39846         pread: improvement and fix
39847         * modules/pread (Depends-on): Depend on lseek, for portability to
39848         e.g., mingw.  Suggested by Eric Blake.
39849         * lib/pread.c (__libc_read): Define.  Reported by Richard W.M. Jones.
39850
39851         unistd.in.h: correct declaration of pread
39852         * lib/unistd.in.h: Correct type of "buf" parameter: void*, not char*
39853         Reported by Richard W.M. Jones.
39854
39855         test-pread.sh: distribute the test script
39856         * modules/pread-tests (Files): Include test-pread.sh.
39857
39858         test-pread.sh: clean up
39859         * tests/test-pread.sh: Don't refer to $builddir. Just use equivalent ".".
39860         * modules/pread-tests (TESTS_ENVIRONMENT): Don't export builddir.
39861         That is unnecessary, since it's always ".".
39862         Suggestion from Eric Blake.
39863
39864         test-pread.sh: make executable
39865         * tests/test-pread.sh: Set executable bit.
39866         Reported by Eric Blake.
39867
39868         correct typo in test-pread.sh
39869         * tests/test-pread.sh: Add #! line.
39870
39871         test pread
39872         * tests/test-pread.c: New file.
39873         * tests/test-pread.sh: Likewise.
39874         * modules/pread-tests: Likewise.
39875
39876         pread: new module
39877         * modules/pread: New file.
39878         * lib/unistd.in.h (pread): Define/declare.
39879         * lib/pread.c (pread): New file.
39880         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define defaults.
39881         * modules/unistd (Makefile.am): Substitute witnesses.
39882         * doc/posix-functions/pread.texi (pread): Update.
39883         * MODULES.html.sh: Add pread.
39884
39885 2009-11-25  Jim Meyering  <meyering@redhat.com>
39886
39887         tests/init.sh: new file to be used via most *.sh tests
39888         * tests/init.sh: New file.
39889
39890 2009-11-25  Eric Blake  <ebb9@byu.net>
39891
39892         utimens: work around older Linux failure with symlinks
39893         * lib/utimens.c (lutimensat_works_really): New variable.
39894         (fdutimens, lutimens): Use it to manage kernels that support
39895         nanosecond times on files, but not on symlinks.
39896         Reported by OndÅ™ej Vašík.
39897
39898         utimes: fix configure grammar
39899         * m4/utimes.m4 (gl_FUNC_UTIMES): Delete spurious word.
39900
39901 2009-11-25  Paolo Bonzini  <bonzini@gnu.org>
39902
39903         regex: Fix fastmap for multibyte character ranges.
39904         * lib/regcomp.c (re_compute_fastmap_iter): Add all multibyte lead
39905         characters when a multibyte character range is included.
39906
39907 2009-11-22  Andy Wingo  <wingo@pobox.com>
39908
39909         version-etc: work also with AM_INIT_AUTOMAKE's no-define option
39910         * lib/version-etc.c [!defined PACKAGE]: Define to PACKAGE_TARNAME.
39911
39912 2009-11-24  Bruno Haible  <bruno@clisp.org>
39913
39914         doc: Most *_l functions exist in MacOS X 10.5.
39915         * doc/posix-functions/duplocale.texi: Update platforms list.
39916         * doc/posix-functions/freelocale.texi: Likewise.
39917         * doc/posix-functions/newlocale.texi: Likewise.
39918         * doc/posix-functions/uselocale.texi: Likewise.
39919         * doc/posix-functions/isalnum_l.texi: Likewise.
39920         * doc/posix-functions/isalpha_l.texi: Likewise.
39921         * doc/posix-functions/isblank_l.texi: Likewise.
39922         * doc/posix-functions/iscntrl_l.texi: Likewise.
39923         * doc/posix-functions/isdigit_l.texi: Likewise.
39924         * doc/posix-functions/isgraph_l.texi: Likewise.
39925         * doc/posix-functions/islower_l.texi: Likewise.
39926         * doc/posix-functions/isprint_l.texi: Likewise.
39927         * doc/posix-functions/ispunct_l.texi: Likewise.
39928         * doc/posix-functions/isspace_l.texi: Likewise.
39929         * doc/posix-functions/isupper_l.texi: Likewise.
39930         * doc/posix-functions/iswalnum_l.texi: Likewise.
39931         * doc/posix-functions/iswalpha_l.texi: Likewise.
39932         * doc/posix-functions/iswblank_l.texi: Likewise.
39933         * doc/posix-functions/iswcntrl_l.texi: Likewise.
39934         * doc/posix-functions/iswctype_l.texi: Likewise.
39935         * doc/posix-functions/iswdigit_l.texi: Likewise.
39936         * doc/posix-functions/iswgraph_l.texi: Likewise.
39937         * doc/posix-functions/iswlower_l.texi: Likewise.
39938         * doc/posix-functions/iswprint_l.texi: Likewise.
39939         * doc/posix-functions/iswpunct_l.texi: Likewise.
39940         * doc/posix-functions/iswspace_l.texi: Likewise.
39941         * doc/posix-functions/iswupper_l.texi: Likewise.
39942         * doc/posix-functions/iswxdigit_l.texi: Likewise.
39943         * doc/posix-functions/isxdigit_l.texi: Likewise.
39944         * doc/posix-functions/nl_langinfo_l.texi: Likewise.
39945         * doc/posix-functions/strcasecmp_l.texi: Likewise.
39946         * doc/posix-functions/strcoll_l.texi: Likewise.
39947         * doc/posix-functions/strfmon_l.texi: Likewise.
39948         * doc/posix-functions/strftime_l.texi: Likewise.
39949         * doc/posix-functions/strncasecmp_l.texi: Likewise.
39950         * doc/posix-functions/strxfrm_l.texi: Likewise.
39951         * doc/posix-functions/tolower_l.texi: Likewise.
39952         * doc/posix-functions/toupper_l.texi: Likewise.
39953         * doc/posix-functions/towctrans_l.texi: Likewise.
39954         * doc/posix-functions/towlower_l.texi: Likewise.
39955         * doc/posix-functions/towupper_l.texi: Likewise.
39956         * doc/posix-functions/wcscoll_l.texi: Likewise.
39957         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
39958         * doc/posix-functions/wctrans_l.texi: Likewise.
39959         * doc/posix-functions/wctype_l.texi: Likewise.
39960         * doc/glibc-functions/strptime_l.texi: Likewise.
39961         * doc/glibc-functions/strtod_l.texi: Likewise.
39962         * doc/glibc-functions/strtof_l.texi: Likewise.
39963         * doc/glibc-functions/strtol_l.texi: Likewise.
39964         * doc/glibc-functions/strtold_l.texi: Likewise.
39965         * doc/glibc-functions/strtoll_l.texi: Likewise.
39966         * doc/glibc-functions/strtoul_l.texi: Likewise.
39967         * doc/glibc-functions/strtoull_l.texi: Likewise.
39968         * doc/glibc-functions/wcsftime_l.texi: Likewise.
39969         * doc/glibc-functions/wcstod_l.texi: Likewise.
39970         * doc/glibc-functions/wcstof_l.texi: Likewise.
39971         * doc/glibc-functions/wcstol_l.texi: Likewise.
39972         * doc/glibc-functions/wcstold_l.texi: Likewise.
39973         * doc/glibc-functions/wcstoll_l.texi: Likewise.
39974         * doc/glibc-functions/wcstoul_l.texi: Likewise.
39975         * doc/glibc-functions/wcstoull_l.texi: Likewise.
39976
39977 2009-11-24  Bruno Haible  <bruno@clisp.org>
39978
39979         duplocale: Fix logic bug.
39980         * lib/duplocale.c: Don't include <langinfo.h>.
39981         (_NL_LOCALE_NAME): Remove macro.
39982         (rpl_duplocale): Use setlocale instead of nl_langinfo.
39983         * tests/test-duplocale.c (main): Also test duplocale after uselocale.
39984
39985 2009-11-23  Jim Meyering  <meyering@redhat.com>
39986
39987         test-update-copyright: don't hard-code /usr/bin/perl
39988         * tests/test-update-copyright.sh (YEAR): Use date +%Y, rather than
39989         perl to print the current year.  Gilles Espinasse reported that
39990         the replaced use of perl was hard-coded as /usr/bin/perl.
39991
39992 2009-11-23  Bruno Haible  <bruno@clisp.org>
39993
39994         duplocale: Add support for glibc 2.3.x.
39995         * lib/duplocale.c (rpl_duplocale): Add fallback code for glibc 2.3.x.
39996
39997 2009-11-22  Bruno Haible  <bruno@clisp.org>
39998
39999         vasnprintf: Tiny optimization.
40000         * lib/vasnprintf.c (decimal_point_char): Choose the fast path also on
40001         MacOS X.
40002
40003 2009-11-22  Bruno Haible  <bruno@clisp.org>
40004
40005         Tests for module 'duplocale'.
40006         * modules/duplocale-tests: New file.
40007         * tests/test-duplocale.c: New file.
40008
40009         New module 'duplocale'.
40010         * m4/duplocale.m4: New file.
40011         * lib/locale.in.h (duplocale): New declaration.
40012         * lib/duplocale.c: New file.
40013         * m4/locale_h.m4 (gl_REPLACE_LOCALE_H, gl_LOCALE_MODULE_INDICATOR,
40014         gl_LOCALE_H_DEFAULTS): New macros.
40015         (gl_LOCALE_H): Require gl_LOCALE_H_DEFAULTS. Invoke
40016         gl_CHECK_NEXT_HEADERS unconditionally. Invoke gl_REPLACE_LOCALE_H.
40017         * modules/locale (Makefile.am): Substitute also GNULIB_DUPLOCALE,
40018         REPLACE_DUPLOCALE.
40019         * modules/duplocale: New file.
40020         * doc/posix-functions/duplocale.texi: Mention the glibc bug.
40021
40022 2009-11-22  Bruno Haible  <bruno@clisp.org>
40023
40024         * modules/locale-tests (configure.ac): Test for newlocale function.
40025         * tests/test-locale.c: When the system has extended locale functions,
40026         verify that <locale.h> defines locale_t and LC_GLOBAL_LOCALE.
40027
40028         locale: Make locale_t available when possible.
40029         * lib/locale.in.h: Include <xlocale.h> when it exists.
40030         * m4/locale_h.m4 (gl_LOCALE_H): Check for <xlocale.h> and arrange to
40031         replace <locale.h> if it does not define locale_t but <xlocale.h> does.
40032         * modules/locale (Depends-on): Add extensions.
40033         (Makefile.am): Also substitute HAVE_XLOCALE_H.
40034         * doc/posix-headers/locale.texi: Document the problem with locale_t.
40035
40036 2009-11-22  Bruno Haible  <bruno@clisp.org>
40037
40038         Add comments.
40039         * m4/dirent_h.m4 (gl_DIRENT_H): Add comment about gl_CHECK_NEXT_HEADERS
40040         invocation.
40041         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
40042         * m4/spawn_h.m4 (gl_SPAWN_H): Likewise.
40043         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
40044
40045 2009-11-22  Bruno Haible  <bruno@clisp.org>
40046
40047         error: account for the possibility of freopen (stdout).
40048         * lib/error.c: Include <unistd.h>.
40049         (flush_stdout): New function, extracted from error and error_at_line.
40050         Determine stdout's fd dynamically.
40051         (error, error_at_line): Invoke flush_stdout.
40052         * m4/error.m4 (gl_PREREQ_ERROR): Require AC_C_INLINE.
40053         * modules/error (Depends-on): Add unistd.
40054
40055 2009-11-22  Bruno Haible  <bruno@clisp.org>
40056
40057         diffseq: Add comment.
40058         * lib/diffseq.h (IF_LINT): Add comment about pitfall.
40059
40060 2009-11-22  Jim Meyering  <meyering@redhat.com>
40061
40062         c-stack: avoid defining an unused static function
40063         * lib/c-stack.c (find_stack_direction): Do not define this function
40064         when it will not be used.
40065
40066         diffseq: avoid spurious gcc warnings
40067         * lib/diffseq.h (IF_LINT2): Define.
40068         (compareseq): Use it to initialize two members of "part".
40069         This avoids two used-uninitialized warnings.
40070
40071 2009-11-21  Jim Meyering  <meyering@redhat.com>
40072
40073         c-stack: avoid "ignoring return value of `write'" warning
40074         * lib/c-stack.c: Include "ignore-value.h".
40075         (die): Explicitly ignore each write return value.
40076         * modules/c-stack (Depends-on): Add ignore-value.
40077
40078 2009-11-21  Bruno Haible  <bruno@clisp.org>
40079
40080         diffseq: reduce scope of variable 'best'.
40081         * lib/diffseq.h (diag) [USE_HEURISTIC]: Reduce scope of 'best'
40082         variable, earlier used for two different purposes.
40083
40084 2009-11-21  Jim Meyering  <meyering@redhat.com>
40085
40086         diffseq: remove useless assignment to "best"
40087         * lib/diffseq.h (diag) [USE_HEURISTIC]: Remove useless "best = 0"
40088         assignment.  At that point "best" is already guaranteed to be zero.
40089
40090 2009-11-20  Eric Blake  <ebb9@byu.net>
40091
40092         build: mention ftp redirector in release announcements
40093         * top/maint.mk (gnu_rel_host, url_dir_list): Provide defaults for
40094         values that used to come from cfg.mk; mention FTP redirect URL.
40095         * build-aux/announce-gen: Mention the mirror list.
40096         Suggested by Karl Berry.
40097
40098         nanosleep: improve port to mingw
40099         * lib/nanosleep.c (rpl_nanosleep): Reject invalid arguments.
40100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Incorporate LIBSOCKET into
40101         LIB_NANOSLEEP, but only when needed.
40102         * modules/select (Link): Document LIBSOCKET.
40103         * m4/select.m4 (gl_FUNC_SELECT): Ensure LIBSOCKET is defined early
40104         enough.
40105
40106         nanosleep: work around cygwin bug
40107         * lib/nanosleep.c (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]:
40108         Fix logic bug when nanosleep fails.  Work around cygwin 1.5.x
40109         bug.
40110         (getnow): Delete, not needed.
40111         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): No longer require
40112         LIB_CLOCK_GETTIME.
40113         * modules/nanosleep (Depends-on): Add intprops and verify.  Drop
40114         clock-time, gettime.
40115         * doc/posix-functions/nanosleep.texi (nanosleep): Document the
40116         bug.
40117         * modules/nanosleep-tests: New test.
40118         * tests/test-nanosleep.c: New file.
40119
40120         sleep: work around cygwin bug
40121         * lib/sleep.c (rpl_sleep): Work around the bug.
40122         * m4/sleep.m4 (gl_FUNC_SLEEP): Detect the bug.
40123         (gl_PREREQ_SLEEP): Delete unused macro.
40124         * modules/sleep (Depends-on): Add verify.
40125         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40126         * modules/unistd (Makefile.am): Substitute witness.
40127         * lib/unistd.in.h (sleep): Update prototype.
40128         * doc/posix-functions/sleep.texi (sleep): Document the bug.
40129         * tests/test-sleep.c (main) [HAVE_DECL_ALARM]: Test it.
40130         * modules/sleep-tests (Depends-on): Check for alarm.
40131
40132 2009-11-20  Jim Meyering  <meyering@redhat.com>
40133
40134         maint.mk: improve sc_prohibit_magic_number_exit
40135         * top/maint.mk (sc_prohibit_magic_number_exit): Tighten regexp
40136         so it does not match uses like System.exit(1).
40137         Add comments showing how to correct all offenders.
40138
40139 2009-11-19  Eric Blake  <ebb9@byu.net>
40140
40141         xalloc-die-tests: add missing library
40142         * modules/xalloc-die-tests (Makefile.am): Add LDADD line.
40143
40144         test-xvasprintf: silence compiler warnings
40145         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Mask
40146         empty string from gcc.
40147
40148 2009-11-19  Jim Meyering  <meyering@redhat.com>
40149
40150         xfreopen: new module, from coreutils
40151         * modules/xfreopen: New module.
40152         * lib/xfreopen.c: New file.
40153         * lib/xfreopen.h: New file.
40154         * MODULES.html.sh (File stream based Input/Output"): Add it.
40155
40156 2009-11-19  Eric Blake  <ebb9@byu.net>
40157
40158         manywarnings: depend on warnings
40159         * modules/manywarnings (Depends-on): Add warnings.
40160
40161         build: avoid compiler warnings
40162         * lib/select.c (rpl_select): Delete unused variable.
40163         * lib/setsockopt.c (rpl_setsockopt): Avoid incompatible pointer.
40164
40165 2009-11-18  Eric Blake  <ebb9@byu.net>
40166
40167         tests: avoid false negative with --with-packager
40168         * tests/test-version-etc.sh: Discard packager information.
40169         * tests/test-argp-version-etc-1.sh: Likewise.
40170         Reported by Mike Frysinger.
40171
40172         utimens: fix regression on Solaris
40173         * m4/utimens.m4 (gl_UTIMENS): Check for BSD bug.
40174         * lib/utimens.c (fdutimens): Revert 2009-11-08 change; Solaris 10
40175         can only change fd timestamps via futimesat.  Instead, use an
40176         additional witness macro to avoid BSD bug.
40177         Reported by Jim Meyering.
40178
40179 2009-11-17  Eric Blake  <ebb9@byu.net>
40180
40181         usleep: use it to simplify tests
40182         * modules/stat-time-tests (Depends-on): Add usleep.
40183         (configure.ac): Drop usleep check.
40184         * modules/chown-tests (Depends-on, configure.ac): Likewise.
40185         * modules/lchown-tests (Depends-on, configure.ac): Likewise.
40186         * modules/fdutimensat-tests (Depends-on, configure.ac): Likewise.
40187         * modules/futimens-tests (Depends-on, configure.ac): Likewise.
40188         * modules/openat-tests (Depends-on, configure.ac): Likewise.
40189         * modules/utimens-tests (Depends-on, configure.ac): Likewise.
40190         * modules/utimensat-tests (Depends-on, configure.ac): Likewise.
40191         * modules/pipe-filter-gi-tests (Depends-on, configure.ac):
40192         Likewise.
40193         * tests/test-chown.h (nap): Rely on nicer usleep semantics.
40194         * tests/test-lchown.h (nap): Likewise.
40195         * tests/test-pipe-filter-gi2-main.c (small_nap): Likewise.
40196         * tests/test-stat-time.c (nap): Likewise.
40197         * tests/test-utimens-common.h (nap): Update comments.
40198
40199         usleep: new module
40200         * modules/usleep: New file.
40201         * m4/usleep.m4 (gl_FUNC_USLEEP): Likewise.
40202         * lib/usleep.c (usleep): Likewise.
40203         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
40204         * modules/unistd (Makefile.am): Substitute witnesses.
40205         * lib/unistd.in.h (usleep): Add declaration.
40206         * doc/pastposix-functions/usleep.texi (usleep): Document this.
40207         * MODULES.html.sh (Date and time): Likewise.
40208         * modules/usleep-tests (Depends-on): New test.
40209         * tests/test-usleep.c: New file.
40210
40211         chown: work around OpenBSD bug
40212         * lib/chown.c (rpl_chown): Work around the bug.
40213         * lib/lchown.c (rpl_lchown): Attempt to do likewise.
40214         * m4/chown.m4 (gl_FUNC_CHOWN): Test for ctime bug.
40215         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for lchmod.
40216         * modules/chown (Depends-on): Add stdbool.
40217         * modules/lchown (Depends-on): Likewise.
40218         * doc/posix-functions/chown.texi (chown): Document the bug.
40219         * doc/posix-functions/lchown.texi (lchown): Likewise.
40220         * tests/test-lchown.h (test_chown): Relax test.
40221
40222         mkstemp: avoid conflict with C++ keyword template
40223         * lib/mkdtemp.c (mkdtemp): Change spelling of template.
40224         * lib/mkostemp.c (mkostemp): Likewise.
40225         * lib/mkostemps.c (mkostemps): Likewise.
40226         * lib/mkstemp.c (mkstemp): Likewise.
40227         * lib/mkstemps.c (mkstemps): Likewise.
40228
40229         xalloc-die-tests: optimize
40230         * tests/test-xalloc-die.sh: Reduce number of processes.
40231
40232 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40233
40234         * gnulib-tool: Support LGPLv3+ licenses in module files.  Tiny
40235         patch from ludo@gnu.org (Ludovic Courtès).
40236
40237 2009-11-17  Jim Meyering  <meyering@redhat.com>
40238
40239         version-etc: use proper license string
40240         * modules/version-etc (License): Use LGPL, not LGPLv3+.
40241         * modules/version-etc-fsf: Likewise.
40242
40243 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40244
40245         * tests/test-xalloc-die.sh: Add license.  Check that nothing is
40246         printed to stdout.  Deal with EOL differences.
40247
40248 2009-11-17  Eric Blake  <ebb9@byu.net>
40249
40250         unsetenv: work around Solaris bug
40251         * m4/setenv.m4 (gl_FUNC_UNSETENV): Check for bug.
40252         * lib/unsetenv.c (rpl_unsetenv): Work around it.
40253         Reported by Jim Meyering.
40254
40255         vasnprintf: avoid compiler warnings
40256         * lib/vasnprintf.c (VASNPRINTF): Avoid shadowing our own local
40257         variables.
40258         * lib/printf-args.c (PRINTF_FETCHARGS): Avoid type mismatch.
40259
40260 2009-11-17  Simon Josefsson  <simon@josefsson.org>
40261
40262         * modules/xalloc-die-tests (Makefile.am): Drop XFAIL_TESTS
40263         settings since xalloc-die is no longer the self test,
40264         xalloc-die.sh is.
40265
40266 2009-11-17  Jim Meyering  <meyering@redhat.com>
40267
40268         test-xalloc-die.sh: make the code agree with the commit log
40269         * tests/test-xalloc-die.sh: Put "." at the front of $PATH, not
40270         at the end, just in case you happen to have a test-xalloc-die
40271         program in some other PATH directory.
40272
40273         test-xalloc-die.sh: fix a portability bug
40274         * tests/test-xalloc-die.sh: Do not invoke via ./test-xalloc-die.
40275         Instead, set PATH to start with "." and invoke via "test-xalloc-die".
40276         Otherwise, argv[0] (as often seen in diagnostics) would be too
40277         system-dependent, sometimes with, and sometimes without the leading "./".
40278
40279         version-etc-fsf: relax license to LGPLv3+
40280         * modules/version-etc-fsf (License): Relax license.
40281
40282 2009-11-16  Eric Blake  <ebb9@byu.net>
40283
40284         xalloc-die-tests: avoid printing null pointer
40285         * modules/xalloc-die-tests (Files, Makefile.am): Wrap execution in
40286         shell script.
40287         * tests/test-xalloc-die.c (program_name): Declare.
40288         * tests/test-xalloc-die.sh (tmpfiles): New file.
40289
40290         setenv, unsetenv: work around various bugs
40291         * lib/setenv.c (setenv) [!HAVE_SETENV]: Resync from glibc.
40292         (setenv) [HAVE_SETENV]: Work around bugs.
40293         * lib/unsetenv.c (unsetenv) [HAVE_UNSETENV]: Work around bugs.
40294         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE, gl_FUNC_UNSETENV): Check
40295         for bugs.
40296         (gl_FUNC_SETENV): Write in terms of gl_FUNC_SETENV_SEPARATE.
40297         * m4/environ.m4 (gl_ENVIRON): Avoid expand-before-require.
40298         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Update defaults.
40299         * modules/stdlib (Makefile.am): Update substitutions.
40300         * lib/stdlib.in.h (setenv, unsetenv): Update prototypes.
40301         * doc/posix-functions/setenv.texi (setenv): Document the bugs.
40302         * doc/posix-functions/unsetenv.texi (unsetenv): Likewise.
40303         * modules/setenv-tests: New test.
40304         * modules/unsetenv-tests: Likewise.
40305         * tests/test-setenv.c: New file.
40306         * tests/test-unsetenv.c: Likewise.
40307
40308 2009-11-16  Jim Meyering  <meyering@redhat.com>
40309
40310         version-etc: relax license to LGPLv3+
40311         * modules/version-etc (License): Relax license.
40312
40313         better AC_REQUIRE expanded-before-required-warning avoidance
40314         * m4/chown.m4 (gl_FUNC_CHOWN, gl_FUNC_CHOWN_FOLLOWS_SYMLINK): Define
40315         with AC_DEFUN_ONCE, rather than AC_DEFUN, to avoid AC_REQUIRE warnings.
40316         Suggested by Eric Blake.  This change also reverts commit 1b712ba8,
40317         which is no longer needed.
40318
40319 2009-11-16  Eric Blake  <ebb9@byu.net>
40320
40321         test-freading: clean up temporary file
40322         * tests/test-freading.c (main): Remove file on success, and use
40323         ASSERT more liberally.
40324         Reported by Jim Meyering.
40325
40326 2009-11-16  Jim Meyering  <meyering@redhat.com>
40327
40328         avoid new AC_REQUIRE expanded-before-required warnings
40329         * modules/chown (configure.ac): Require gl_FUNC_CHOWN, rather than
40330         merely using it.
40331         * modules/euidaccess (configure.ac): Likewise for gl_FUNC_EUIDACCESS.
40332         * modules/faccessat (configure.ac): Likewise for gl_FUNC_FACCESSAT.
40333
40334 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40335
40336         * tests/test-xalloc-die.c: New file.
40337         * modules/xalloc-die-tests: New file.
40338         * gnulib-tool (func_emit_tests_Makefile_am): Also initialize
40339         XFAIL_TESTS so it can be appended by modules.
40340
40341 2009-11-15  Simon Josefsson  <simon@josefsson.org>
40342
40343         * lib/gc-pbkdf2-sha1.c: Remove comments from RFC 2898.  Reported
40344         by Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>.
40345
40346 2009-11-14  Eric Blake  <ebb9@byu.net>
40347
40348         fnmatch: avoid compiler warning
40349         * lib/fnmatch_loop.c (NEW_PATTERN): Coerce addition to unsigned,
40350         to silence compiler warning about mismatch signedness in ?:.
40351         Reported by Robert Millan.
40352
40353         intprops: add double-inclusion guard
40354         * lib/intprops.h: Allow idempotent includes.
40355         Suggested by Bruce Korb.
40356
40357         openat: detect Solaris fchownat bug
40358         * lib/fchownat.c (rpl_fchownat): Work around Solaris bug.  Avoid
40359         penalizing glibc chownat when only lchownat is broken.
40360         * m4/openat.m4 (gl_FUNC_FCHOWNAT): Replace fchownat if there are
40361         trailing slash bugs.
40362         * doc/posix-functions/fchownat.texi (fchownat): Document the bug.
40363         * modules/openat-tests (Files): Include more files.
40364         (Depends-on): Add mgetgroups, sleep, stat-time.
40365         (configure.ac): Add additional checks.
40366         (Makefile.am): Build new test.
40367         * tests/test-fchownat.c: New file.
40368
40369         lchown: detect Solaris and FreeBSD bug
40370         * lib/lchown.c (rpl_lchown): Work around bug.
40371         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check for trailing slash bugs.
40372         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40373         * modules/unistd (Makefile.am): Populate it.
40374         * lib/unistd.in.h (lchown): Update declaration.
40375         * doc/posix-functions/lchown.texi (lchown): Document the bug.
40376         * modules/lchown-tests: New file.
40377         * tests/test-lchown.h (test_lchown): Likewise.
40378         * tests/test-lchown.c (main): Likewise.
40379
40380         chown: detect Solaris and FreeBSD bug
40381         * lib/chown.c (rpl_chown): Work around bug.
40382         * m4/chown.m4 (gl_FUNC_CHOWN): Check for trailing slash bugs.
40383         (gl_PREREQ_CHOWN): Delete.
40384         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
40385         * modules/unistd (Makefile.am): Populate it.
40386         * lib/unistd.in.h (chown): Update declaration.
40387         * lib/lchown.c (chown): Update client.
40388         * modules/lchown (Depends-on): Add lstat.
40389         * doc/posix-functions/chown.texi (chown): Document the bug.
40390         * doc/posix-functions/getgroups.texi (getgroups): Document
40391         getgroups pitfall.
40392         * modules/chown-tests: New file.
40393         * tests/test-chown.h (test_chown): Likewise.
40394         * tests/test-chown.c (main): Likewise.
40395
40396 2009-11-14  Robert Millan  <rmh.grub@aybabtu.com>  (tiny change)
40397
40398         gnulib-tool: correctly detect absence of m4 directories
40399         * gnulib-tool: Avoid extra newline on data passed to wc -l.
40400
40401 2009-11-14  Jim Meyering  <meyering@redhat.com>
40402
40403         maint.mk: Prohibit inclusion of "xalloc.h" without use.
40404         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40405
40406 2009-11-14  John W. Eaton  <jwe@gnu.org>
40407
40408         strftime.h: wrap function declaration in extern "C" block
40409         * lib/strftime.h (nstrftime) [__cplusplus]: Wrap declaration.
40410
40411 2009-11-13  Eric Blake  <ebb9@byu.net>
40412
40413         getgroups: avoid compiler warning
40414         * lib/getgroups.c (rpl_getgroups): Delete shadowed variable.
40415
40416         getgroups: work around FreeBSD bug
40417         * lib/getgroups.c (rpl_getgroups): Work around the bug.
40418         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Detect the bug.
40419         * doc/posix-functions/getgroups.texi (getgroups): Document it.
40420         * tests/test-getgroups.c (main): Fix buffer overrun.
40421
40422         getgroups: avoid compilation failure
40423         * lib/getgroups.c (includes): Include <stdint.h> for SIZE_MAX.
40424         * modules/getgroups (Depends-on): Add stdint.
40425
40426 2009-11-13  Jim Meyering  <meyering@redhat.com>
40427
40428         test-getgroups: avoid compilation failure
40429         * tests/test-getgroups.c: Include <stdint.h> for use of SIZE_MAX.
40430
40431 2009-11-13  Eric Blake  <ebb9@byu.net>
40432
40433         mgetgroups: new module, taken from coreutils
40434         * modules/mgetgroups: New file.
40435         * lib/mgetgroups.h: Likewise.
40436         * lib/mgetgroups.c (mgetgroups): Likewise.
40437         * m4/mgetgroups.m4 (gl_MGETGROUPS): Likewise.
40438         * MODULES.html.sh (Users and groups): Mention it.
40439
40440         getgroups: don't expose GETGROUPS_T to user
40441         * lib/getgroups.c (rpl_getgroups): Change signature.  Copy array
40442         an element at a time if GETGROUPS_T is wrong size.
40443         * lib/getugroups.h (getugroups): Change signature.
40444         * lib/unistd.in.h (getgroups): Likewise.
40445         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Use replacement if
40446         signature needs fixing.
40447         * m4/getugroups.m4 (gl_GETUGROUPS): No longer need
40448         AC_TYPE_GETGROUPS.
40449         * modules/group-member (Depends-on): Add getgroups.
40450         * lib/group-member.c (group_info, get_group_info): Use gid_t.
40451         (group_member): Rely on getgroups replacement.
40452         * lib/getugroups.c (getugroups): Use gid_t.
40453         * tests/test-getgroups.c (main): Likewise.
40454         * NEWS: Mention the signature change.
40455         * doc/posix-functions/getgroups.texi (getgroups): Mention the
40456         problem with signature.
40457         * doc/glibc-functions/setgroups.texi (setgroups): Mention that
40458         GETGROUPS_T is still useful for setgroups.
40459
40460         getgroups, getugroups: provide stubs for mingw
40461         * lib/getgroups.c (getgroups): Provide ENOSYS stub for mingw.
40462         * lib/getugroups.c (getugroups): Likewise.
40463         * m4/getgroups.m4 (gl_FUNC_GETGROUPS): Check for missing
40464         function.  Modernize replacement scheme.
40465         (gl_PREREQ_GETGROUPS): Delete.
40466         * m4/getugroups.m4 (gl_GETUGROUPS): Check for <grp.h>.
40467         * modules/getgroups (configure.ac): Declare witness.
40468         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add default.
40469         * modules/unistd (Depends-on): Substitute witness.
40470         * lib/unistd.in.h (getgroups): Declare replacement.
40471
40472         getgroups: avoid calling exit
40473         * modules/getgroups (Depends-on): Add malloc-posix and unistd,
40474         drop xalloc.
40475         * modules/getgroups-tests (Depends-on, Makefile.am): Drop unneeded
40476         dependencies.
40477         * lib/getgroups.c (rpl_getgroups): Fail with ENOMEM rather than
40478         exiting, in the rare case of malloc failure.
40479
40480         getgroups: fix logic error
40481         * lib/getgroups.c (rpl_getgroups): Don't fail if current process
40482         has more than 20 groups.
40483         * modules/getgroups-tests: New test.
40484         * tests/test-getgroups.c: New file.
40485
40486 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40487
40488         * tests/test-base64.c: Improve.
40489
40490 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40491
40492         * tests/test-xvasprintf.c: Fix memory leak, suggested by Eric
40493         Blake <ebb9@byu.net>.
40494
40495 2009-11-13  Simon Josefsson  <simon@josefsson.org>
40496
40497         * tests/test-xvasprintf.c: Add %s%s related checks.
40498
40499 2009-11-12  Eric Blake  <ebb9@byu.net>
40500
40501         version-etc: match standards.texi style
40502         * lib/version-etc.c (emit_bug_reporting_address): Drop periods,
40503         and use <> only for URLs.
40504
40505 2009-11-10  Kamil Dudka  <kdudka@redhat.com>
40506
40507         fts: do not fail on a submount during traversal
40508         * lib/fts.c (fts_build): Read the stat info again after opening
40509         a directory if the FTS_TIGHT_CYCLE_CHECK flag is set.
40510         Original report at http://bugzilla.redhat.com/501848.
40511
40512 2009-11-12  Jim Meyering  <meyering@redhat.com>
40513
40514         bootstrap: sync from coreutils
40515         * build-aux/bootstrap (bootstrap_epilogue): New function.
40516         Use git_modules_config in one more place.  This make bootstrap's
40517         --gnulib-srcdir option more useful for testing.
40518
40519         bootstrap: generalize autoheader check
40520         * build-aux/bootstrap: Look for AC_CONFIG_HEADER as well as
40521         AC_CONFIG_HEADERS.
40522
40523 2009-11-11  Eric Blake  <ebb9@byu.net>
40524
40525         mkfifoat: use new modules for Solaris and BSD bugs
40526         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Simplify.
40527         * lib/mkfifoat.c (mknodat): Split...
40528         * lib/mknodat.c (mknodat): ...into new file.
40529         * modules/mkfifoat (Files): Ship new file.
40530         (Depends-on): Add mkfifo, mknod.
40531         * modules/mkfifoat-tests (Files): Reuse mkfifo tests.
40532         (Depends-on): Add symlink.
40533         * tests/test-mkfifoat.c (main): Enhance test.  Drop portions now
40534         redundant with test_mkfifo.h.
40535         (do_mkfifoat, do_mknodat): New helpers.
40536
40537         mknod: new module
40538         * modules/mknod: New file.
40539         * m4/mknod.m4 (gl_FUNC_MKNOD): Likewise.
40540         * lib/mknod.c (mknod): Likewise.
40541         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40542         defaults.
40543         * modules/sys_stat (Makefile.am): Substitute them.
40544         * lib/sys_stat.in.h (mknod): Declare replacement.
40545         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40546         Document it.
40547         * doc/posix-functions/mknod.texi (mknod): Likewise.
40548         * modules/mknod-tests: New test.
40549         * tests/test-mknod.c: Likewise.
40550
40551         mkfifo: new module
40552         * modules/mkfifo: New file.
40553         * m4/mkfifo.m4 (gl_FUNC_MKFIFO): Likewise.
40554         * lib/mkfifo.c (mkfifo): Likewise.
40555         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Set witness
40556         defaults.
40557         * modules/sys_stat (Makefile.am): Substitute them.
40558         * lib/sys_stat.in.h (mkfifo): Declare replacement.
40559         * MODULES.html.sh (Support for systems lacking POSIX:2008):
40560         Document it.
40561         * doc/posix-functions/mkfifo.texi (mkfifo): Likewise.
40562         * modules/mkfifo-tests: New test.
40563         * tests/test-mkfifo.h (test_mkfifo): New file, borrowed in part
40564         from test-mkfifoat.c.
40565         * tests/test-mkfifo.c: New file.
40566
40567         readlink: detect FreeBSD bug
40568         * m4/readlink.m4 (gl_FUNC_READLINK): Also detect FreeBSD bug with
40569         slash on symlink.
40570         * doc/posix-functions/readlink.texi (readlink): Document the bug.
40571         * tests/test-readlink.h (test_readlink): Enhance test.
40572
40573         symlink: detect FreeBSD bug
40574         * m4/symlink.m4 (gl_FUNC_SYMLINK): Also detect FreeBSD bug with
40575         slash on symlink.
40576         * doc/posix-functions/symlink.texi (symlink): Document the bug.
40577         * tests/test-symlink.h (test_symlink): Enhance test.
40578
40579 2009-11-10  Eric Blake  <ebb9@byu.net>
40580
40581         link: detect FreeBSD bug
40582         * m4/link.m4 (gl_FUNC_LINK): Also detect FreeBSD bug with slash on
40583         symlink.
40584         * doc/posix-functions/link.texi (link): Document the bug.
40585         * tests/test-link.h (test_link): Enhance test.
40586         * tests/test-linkat.c (main): Update caller.
40587
40588         unlink, remove: detect FreeBSD bug
40589         * m4/unlink.m4 (gl_FUNC_UNLINK): Also detect FreeBSD bug with
40590         slash on symlink.
40591         * doc/posix-functions/unlink.texi (unlink): Document the bug.
40592         * doc/posix-functions/remove.texi (remove): Likewise.
40593         * tests/test-unlink.h (test_unlink): Enhance test.
40594         * tests/test-remove.c (main): Likewise.
40595
40596 2009-11-09  Eric Blake  <ebb9@byu.net>
40597
40598         rename: detect FreeBSD bug
40599         * m4/rename.m4 (gl_FUNC_RENAME): Also detect FreeBSD bug with
40600         slash on symlink.
40601         * modules/renameat-tests (Depends-on): Add filenamecat.
40602         * tests/test-rename.h (test_rename): Allow one more errno.
40603         * tests/test-renameat.c (main): Likewise.
40604         * doc/posix-functions/rename.texi (rename): Document the bug.
40605
40606         open: detect FreeBSD bug
40607         * m4/open.m4 (gl_FUNC_OPEN): Also detect FreeBSD bug with slash on
40608         symlink.
40609         * doc/posix-functions/open.texi (open): Document the bug.
40610         * doc/posix-functions/utimes.texi (utimes): Likewise.
40611         * tests/test-open.h (test_open): Add parameters, and test symlink
40612         handling.
40613         * tests/test-open.c (main): Adjust caller.
40614         * tests/test-fcntl-safer.c (main): Likewise.
40615         * modules/open-tests (Depends-on): Add stdbool, symlink.
40616         * modules/fcntl-safer-tests (Depends-on): Likewise.
40617         * tests/test-openat.c (main): Add test-open tests.
40618
40619         stat: detect FreeBSD bug
40620         * m4/stat.m4 (gl_FUNC_STAT): Also detect FreeBSD bug with slash on
40621         symlink.
40622         * doc/posix-functions/stat.texi (stat): Document the bug.
40623         * tests/test-stat.h (test_stat_func): Add argument.
40624         * tests/test-stat.c (main): Adjust caller.
40625         * tests/test-fstatat.c (main): Likewise.
40626         * modules/stat-tests (Depends-on): Add stdbool, symlink.
40627         Reported by Jim Meyering.
40628
40629 2009-11-09  James Youngman  <jay@gnu.org>
40630
40631         strftime.c: include ignore-value.h only when FPRINTFTIME is defined
40632         * lib/strftime.c: Correct placement of #include "ignore-value.h".
40633
40634 2009-11-08  Jim Meyering  <meyering@redhat.com>
40635
40636         utimens: remove invalid futimesat call
40637         * lib/utimens.c (fdutimens): Remove invalid futimesat call.
40638         It used the file descriptor of the target file as the DIR_FD
40639         parameter and NULL as the file name.  That caused failure with
40640         errno == EFAULT on FreeBSD-8.0-rc2
40641
40642 2009-11-07  Eric Blake  <ebb9@byu.net>
40643
40644         fflush, freadseek: use fseeko, not fseek
40645         * lib/fflush.c (clear_ungetc_buffer_preserving_position)
40646         (clear_ungetc_buffer): Avoid potential problems on large files.
40647         * lib/freadseek.c (freadseek): Likewise.
40648         * modules/freadseek (Depends-on): Add fseeko.
40649         * modules/fseek (configure.ac): Set a witness.
40650         * tests/test-fflush.c (main): Use fseeko.
40651         * tests/test-fpurge.c (fseek): Disable link warning.
40652         * tests/test-freadable.c (fseek): Likewise.
40653         * tests/test-freading.c (fseek): Likewise.
40654         * tests/test-fseeko.c (fseek): Likewise.
40655         * tests/test-ftell.c (fseek): Likewise.
40656         * tests/test-ftello.c (fseek): Likewise.
40657         * tests/test-fwritable.c (fseek): Likewise.
40658         * tests/test-fwriting.c (fseek): Likewise.
40659
40660 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40661
40662         * modules/memchr (Depends-on): Drop getpagesize dependency.
40663
40664 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40665
40666         * build-aux/pmccabe2html: Disable execute bit.  Suggested by
40667         Reported by Ludovic Courtès.
40668         * build-aux/pmccabe2html: Improve example usage.
40669         * build-aux/pmccabe2html: Drop #! header.  Doc fix.
40670
40671 2009-11-06  Jim Meyering  <meyering@redhat.com>
40672
40673         do-release-commit-and-tag: New module.
40674         Automate the release-commit and tag process.
40675         * build-aux/do-release-commit-and-tag: New script, from coreutils.
40676         * modules/do-release-commit-and-tag: New file.
40677         * MODULES.html.sh (Support for maintaining and releasing): Add it.
40678
40679 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40680
40681         * modules/select-tests (test_select_LDADD): Add $(INET_PTON_LIB)
40682         because test-select.c uses inet_pton.
40683
40684 2009-11-06  Simon Josefsson  <simon@josefsson.org>
40685
40686         * m4/getaddrinfo.m4: Add content of INET_NTOP_LIB to
40687         GETADDRINFO_LIB.  Bump serial number.
40688         * modules/getaddrinfo (Link): Only mention GETADDRINFO_LIB again.
40689         Suggested by Eric Blake <ebb9@byu.net>.
40690
40691 2009-11-05  Eric Blake  <ebb9@byu.net>
40692
40693         strtod: detect darwin bug
40694         * m4/strtod.m4 (gl_FUNC_STRTOD): Filter out darwin bug on "nan(".
40695         Reported by Leo Davis.
40696
40697         freopen-safer: new module
40698         * modules/freopen-safer: New module.
40699         * m4/stdio-safer.m4 (gl_FREOPEN_SAFER): New macro.
40700         * lib/freopen-safer.c (freopen_safer): New file.
40701         * lib/stdio-safer.h (freopen_safer): New declaration.
40702         * lib/stdio--.h (freopen): New override.
40703         * MODULES.html.sh (File stream based Input/Output): Mention it.
40704         * doc/posix-functions/freopen.texi (freopen): Mention pitfalls and
40705         freopen-safer module.
40706         * doc/posix-functions/stderr.texi (stderr): Likewise.
40707         * doc/posix-functions/stdin.texi (stdin): Likewise.
40708         * doc/posix-functions/stdout.texi (stdout): Likewise.
40709         * modules/freopen-safer-tests: New test.
40710         * tests/test-reopen-safer.c: New file.
40711
40712 2009-11-05  Jim Meyering  <meyering@redhat.com>
40713
40714         maint.mk: Prohibit inclusion of "close-stream.h" without use.
40715         * top/maint.mk (sc_prohibit_close_stream_without_use): New rule.
40716
40717 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40718
40719         * modules/pmccabe2html (configure.ac): Check for pmccabe tool.
40720
40721 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40722
40723         * modules/getaddrinfo (Link): Add $(INET_NTOP_LIB).
40724
40725 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40726
40727         Fix link error.
40728         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40729         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40730
40731 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40732
40733         * tests/test-func.c: Also test value of __func__.
40734
40735 2009-11-05  Simon Josefsson  <simon@josefsson.org>
40736
40737         * tests/test-sys_socket.c: Use smaller constant value, sa_family_t
40738         may be an 8-bit type.  Reported by Bruno Haible <bruno@clisp.org>.
40739
40740 2009-11-05  Bruno Haible  <bruno@clisp.org>
40741
40742         Fix link error.
40743         * m4/inet_ntop.m4 (gl_INET_NTOP): Fix test of AC_SEARCH_LIBS result.
40744         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
40745         Reported by Brad Hards <bradh@frogmouth.net> via Simon Josefsson.
40746
40747 2009-11-05  Bruno Haible  <bruno@clisp.org>
40748
40749         Tests for module 'inet_pton'.
40750         * modules/inet_pton-tests: New file.
40751         * tests/test-inet_pton.c: New file.
40752
40753 2009-11-05  Bruno Haible  <bruno@clisp.org>
40754
40755         Tests for module 'inet_ntop'.
40756         * modules/inet_ntop-tests: New file.
40757         * tests/test-inet_ntop.c: New file.
40758
40759 2009-11-04  Eric Blake  <ebb9@byu.net>
40760
40761         stdlib-safer: wrap all mkstemp variants
40762         * modules/mkostemp (configure.ac): Set witness.
40763         * modules/mkostemps (configure.ac): Likewise.
40764         * modules/mkstemps (configure.ac): Likewise.
40765         * lib/stdlib-safer.h (mkostemp_safer, mkostemps_safer)
40766         (mkstemps_safer): Wrap more functions.
40767         * lib/stdlib--.h (mkostemp, mkostemps, mkstemps): Default the
40768         wrapping.
40769         * lib/mkstemp-safer.c (mkostemp_safer, mkostemps_safer)
40770         (mkstemps_safer): Implement the wrappers.
40771
40772         mkstemps, mkostemps: new modules
40773         * modules/mkostemps: New module.
40774         * modules/mkstemps: Likewise.
40775         * lib/mkostemps.c (mkostemps): New file.
40776         * lib/mkstemps.c (mkstemps): Likewise.
40777         * m4/mkostemps.m4 (gl_FUNC_MKOSTEMPS): Likewise.
40778         * m4/mkstemps.m4 (gl_FUNC_MKSTEMPS): Likewise.
40779         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Add witnesses.
40780         * modules/stdlib (Makefile.am): Substitute them.
40781         * lib/stdlib.in.h (mkostemps, mkstemps): Declare them.
40782         * doc/glibc-functions/mkstemps.texi (mkstemps): New file.
40783         * doc/glibc-functions/mkostemps.texi (mkostemps): Likewise.
40784         * doc/gnulib.texi (Glibc stdlib.h): Include them.
40785         * MODULES.html.sh (File system functions): Mention them.
40786
40787         tempname: resync from glibc
40788         * lib/tempname.c (__gen_tempname): Add suffixlen argument.  Use
40789         same values for __GT_FILE as glibc.  Abort even when assertions
40790         are disabled.
40791         * lib/tempname.h (GT_FILE): Use glibc __GT_FILE, if available, and
40792         match its value otherwise.  Allow idempotent inclusion.
40793         * lib/mkdtemp.c (mkdtemp): Adjust caller.
40794         * lib/mkostemp.c (mkostemp): Likewise.
40795         * lib/mkstemp.c (mkstemp): Likewise.
40796         * lib/tmpfile.c (tmpfile): Likewise.
40797         * NEWS: Document this.
40798
40799         utimens: fix use of futimens on older Linux
40800         * lib/utimens.c (fdutimens): Use updated, rather than original,
40801         timespec to avoid bug in older Linux kernel.
40802         Reported by Simon Josefsson.
40803
40804 2009-11-04  Bruno Haible  <bruno@clisp.org>
40805
40806         Make num_processors more flexible and consistent.
40807         * lib/nproc.h (enum nproc_query): New type.
40808         (num_processors): Add a 'query' argument.
40809         * lib/nproc.c: Include <stdlib.h>, <sched.h>, c-ctype.h.
40810         (num_processors): Add a 'query' argument. Test the value of the
40811         OMP_NUM_THREADS environment variable if requested. On Linux, NetBSD,
40812         mingw, count the number of CPUs available for the current process.
40813         * m4/nproc.m4 (gl_PREREQ_NPROC): Require AC_USE_SYSTEM_EXTENSIONS.
40814         Check for sched_getaffinity and sched_getaffinity_np.
40815         * modules/nproc (Depends-on): Add c-ctype, extensions.
40816         * NEWS: Mention the change.
40817
40818 2009-11-03  Bruno Haible  <bruno@clisp.org>
40819
40820         * NEWS: Document the new library dependencies of inet_ntop, inet_pton.
40821
40822 2009-11-03  Jim Meyering  <meyering@redhat.com>
40823
40824         test-getaddrinfo: avoid compilation failure on FreeBSD 7.2
40825         * tests/test-getaddrinfo.c (simple): Test for EAI_NODATA only
40826         if it is defined.
40827
40828 2009-11-02  Eric Blake  <ebb9@byu.net>
40829
40830         mktime, timegm: share common declaration
40831         * lib/mktime-internal.h: New file.
40832         * lib/mktime.c: Use it rather than open-coding a declaration.
40833         * lib/timegm.c: Likewise.
40834         * modules/mktime (Files): Ship it.
40835         * modules/timegm (Files): Likewise.
40836         Suggested by Bruno Haible.
40837
40838         test-update-copyright: update test to match script changes
40839         * tests/test-update-copyright.sh: Avoid hard-coding perl
40840         location.  Don't update *.bak created by earlier runs.
40841
40842 2009-11-02  Paul Eggert  <eggert@cs.ucla.edu>
40843             Simon Josefsson  <simon@josefsson.org>
40844             Bruno Haible  <bruno@clisp.org>
40845
40846         Fix link error on Solaris 8.
40847         * m4/inet_pton.m4 (gl_INET_PTON): Search for the function inet_pton
40848         also in libnsl. Define also INET_PTON_LIB.
40849         * modules/inet_pton (Link): New section.
40850
40851 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40852             Bruno Haible  <bruno@clisp.org>
40853
40854         * m4/inet_ntop.m4 (gl_INET_NTOP): Define also INET_NTOP_LIB.
40855         * modules/inet_ntop (Link): New section.
40856         Reported by Boyan Kasarov <bkasarov@gmail.com>.
40857
40858 2009-11-02  Eric Blake  <ebb9@byu.net>
40859
40860         maint: avoid compiler warnings in m4 macros
40861         * m4/ungetc.m4 (gl_FUNC_UNGETC_WORKS): Avoid unused variable.
40862         * m4/rmdir.m4 (gl_FUNC_RMDIR): Include correct header.
40863
40864 2009-11-02  Simon Josefsson  <simon@josefsson.org>
40865
40866         * m4/pmccabe2html.m4: Remove file.
40867         * modules/pmccabe2html: Drop pmccabe2html.m4.  Don't call m4
40868         function.  Change maintainer.
40869         * build-aux/pmccabe2html: Use /bin/sh with magic instead of
40870         hard-coding path to awk.  Tiny patch from ludo@gnu.org (Ludovic
40871         Courtès).
40872
40873 2009-10-31  Eric Blake  <ebb9@byu.net>
40874
40875         fseeko: fix m4 regression
40876         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Use modern macro.  Fixes
40877         regression from 2009-10-27.
40878         Reported by Ralf Wildenhues.
40879
40880 2009-10-31  Jim Meyering  <meyering@redhat.com>
40881
40882         inttostr: aesthetics and improved (compile-time) safety
40883         Define inttype_is_signed rather than inttype_is_unsigned,
40884         since the sole use is via "#if inttype_is_signed".
40885         * lib/imaxtostr.c (inttype_is_signed): Define this, rather than
40886         inttype_is_unsigned.
40887         * lib/offtostr.c (inttype_is_signed): Likewise.
40888         * lib/uinttostr.c (inttype_is_signed): Likewise.
40889         * lib/umaxtostr.c (inttype_is_signed): Likewise.
40890         * lib/inttostr.c (inttostr): Use verify to cross-check the
40891         inttype_is_signed value and the signedness of the actual type.
40892         * modules/inttostr (Depends-on): Add verify.
40893
40894 2009-10-30  Eric Blake  <ebb9@byu.net>
40895
40896         build: avoid compiler warnings
40897         * lib/fchmodat.c (lchmod): Mark unused variables.
40898         * lib/getopt.c (_getopt_initialize): Likewise.
40899         * lib/mktime.c (__mktime_internal): Provide prototype.
40900         * lib/inttostr.c (inttostr): Avoid compiler warning even with
40901         older gcc that do not understand #pragma GCC diagnostic.
40902         * lib/uinttostr.c (inttype_is_unsigned): Define.
40903         * lib/umaxtostr.c (inttype_is_unsigned): Likewise.
40904
40905 2009-10-30  Michael Haubenwallner  <michael.haubenwallner@salomon.at>
40906
40907         stat: fix compilation on AIX
40908         * lib/sys_stat.in.h (stat): Work with fact that large files on AIX
40909         only see struct stat64.
40910
40911 2009-10-30  Eric Blake  <ebb9@byu.net>
40912
40913         exclude: make more robust
40914         * lib/exclude.c (excluded_file_name): Abort on unexpected value,
40915         rather than masking a coding bug.
40916         Suggested by Bruno Haible.
40917
40918 2009-10-30  Jim Meyering  <meyering@redhat.com>
40919
40920         perl scripts: remove #!/usr/bin/perl in favor of more portable...
40921         Rather than putting #!/usr/bin/perl on the first line,
40922         start with a variant of what's recommended by "man perlrun" that
40923         invokes the first "perl" program from your shell's search path.
40924         * build-aux/gitlog-to-changelog: Replace #!... as above.
40925         Add a "Local Variables" perl mode setting.
40926         Prompted by a patch from Ludovic Courtès.
40927         Improved by Eric Blake.
40928         * build-aux/useless-if-before-free: Likewise.
40929         * build-aux/announce-gen: Likewise.
40930         * build-aux/update-copyright: Likewise.
40931
40932 2009-10-29  Eric Blake  <ebb9@byu.net>
40933
40934         filenamecat-lgpl: adjust clients
40935         * modules/linkat (Depends-on): Use filenamecat-lgpl, not
40936         filenamecat.
40937         * modules/renameat (Depends-on): Likewise.
40938
40939         filenamecat: split into filenamecat-lgpl
40940         * modules/filenamecat-lgpl: New module.
40941         * modules/filenamecat (Files): Move library-safe files into
40942         filenamecat-lgpl.
40943         (Depends-on): Add filenamecat-lgpl.
40944         (configure.ac): Declare witness.
40945         * lib/filenamecat.h (file_name_concat): Only declare when using
40946         GPL module.
40947         * lib/filenamecat.c (longest_relative_suffix, mfile_name_concat):
40948         Move...
40949         * lib/filenamecat-lgpl.c: ...into new file.
40950         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT_LGPL): New macro.
40951         (gl_FILE_NAME_CONCAT): Use it.
40952         * MODULES.html.sh (File system functions): Mention new module.
40953
40954         argp: avoid memory leak
40955         * modules/argp (Depends-on): Use dirname-lgpl, not dirname.
40956         * lib/argp-namefrob.h (__argp_base_name): Use last_component, not
40957         base_name, since the latter malloc()s and can call exit().
40958         Leak introduced 2006-07-03.
40959
40960         dirname-lgpl: adjust clients that don't need full dirname
40961         * modules/backupfile (Depends-on): Use dirname-lgpl, not dirname.
40962         * modules/filenamecat (Depends-on): Likewise.
40963         * modules/linkat (Depends-on): Likewise.
40964         * modules/mkancesdirs (Depends-on): Likewise.
40965         * modules/mkdir (Depends-on): Likewise.
40966         * modules/openat (Depends-on): Likewise.
40967         * modules/savewd (Depends-on): Likewise.
40968         * modules/rename (Depends-on): Likewise.
40969         (License): Relax license.
40970         * modules/mkdir-tests (Depends-on): Drop progname.
40971         (Makefile.am): Delete unneeded LDADD.
40972         * modules/rename-tests (Depends-on, Makefile.am): Likewise.
40973
40974         dirname: split into dirname-lgpl
40975         * modules/dirname-lgpl: New module.
40976         * modules/dirname (Files): Move library-safe files into
40977         dirname-lgpl.
40978         (Depends-on): Add dirname-lgpl.
40979         (configure.ac): Declare witness.
40980         * modules/double-slash-root (License): Relax license.
40981         * lib/dirname.h (base_name, dir_name): Only declare when using GPL
40982         module.
40983         * lib/dirname.c (dir_len, mdir_name): Move...
40984         * lib/dirname-lgpl.c: ...into new file.
40985         * lib/basename.c (last_component, base_len): Move...
40986         * lib/basename-lgpl.c: ...into new file.
40987         * m4/dirname.m4 (gl_DIRNAME_LGPL): New macro.
40988         (gl_DIRNAME): Use it.
40989         * MODULES.html.sh (Enhancements for POSIX:2008 functions):
40990         Mention new module.
40991         * modules/dirname-tests (Depends-on): Add progname.
40992         * tests/test-dirname.c (program_name): Delete.
40993
40994         mkdir: make safe for libraries
40995         * modules/mkdir (Depends-on): Drop xalloc.
40996         * lib/mkdir.c (rpl_mkdir): Fail with ENOMEM rather than calling
40997         exit.
40998
40999         tests: avoid some compiler warnings
41000         * tests/test-getaddrinfo.c (simple): Mark static, and allow string
41001         literals.
41002         * tests/test-memchr.c (main): Avoid type mismatch.
41003         * tests/test-arpa_inet.c (main): Avoid unused parameters.
41004         * tests/test-base64.c (main): Likewise.
41005         * tests/test-getdelim.c (main): Likewise.
41006         * tests/test-gethostname.c (main): Likewise.
41007         * tests/test-getline.c (main): Likewise.
41008         * tests/test-netinet_in.c (main): Likewise.
41009         * tests/test-select.c (open_server_socket, main): Likewise.
41010         * tests/test-select-stdin.c (main): Likewise.
41011         * tests/test-sockets.c (main): Likewise.
41012         * tests/test-strsignal.c (main): Likewise.
41013         * tests/test-sys_select.c (main): Likewise.
41014         * tests/test-sys_socket.c (main): Likewise.
41015         * tests/test-u64.c (main): Likewise.
41016         * tests/test-xfprintf-posix.c (main): Likewise.
41017         * tests/test-xvasprintf.c (test_xvasprintf, main): Likewise.
41018
41019         sockets: avoid compiler warning
41020         * lib/sockets.c (gl_sockets_startup): Mark unused parameter.
41021
41022         maint: detect usage(1) and other suspicious exits
41023         * top/maint.mk (sc_prohibit_magic_number_exit): New rule.
41024
41025 2009-10-29  Jim Meyering  <meyering@redhat.com>
41026
41027         timespec: long-to-int truncation could make timespec_cmp malfunction
41028         * lib/timespec.h (timespec_cmp): Do not interpret a difference of
41029         a multiple of 2^32 nanoseconds as no difference.
41030
41031 2009-10-28  Jim Meyering  <meyering@redhat.com>
41032
41033         fprintftime: wrap macro code argument in "do {...} while(0)"
41034         * lib/strftime.c (cpy) [FPRINTFTIME]: The second argument to the
41035         cpy macro must be a statement that can be followed by a semicolon.
41036         Now that the else clause contains a comment and is hence longer
41037         than one line, I require curly braces.  That in turn requires
41038         that we wrap this code block in the standard do...while(0).
41039
41040         fprintftime: remove stray semicolon from previous change
41041         * lib/strftime.c (cpy) [FPRINTFTIME]: Remove trailing semicolon.
41042
41043         fprintftime: avoid a warning about ignored fwrite return value
41044         * lib/strftime.c [FPRINTFTIME]: Include "ignore-value.h".
41045         (cpy) [FPRINTFTIME]: Ignore fwrite failure, even though technically,
41046         that is unsafe.
41047         * modules/fprintftime (Depends-on): Add ignore-value.
41048
41049         exclude: avoid an unwarranted warning
41050         * lib/exclude.c (excluded_file_name): Initialize "rc" before switch.
41051
41052 2009-10-27  Eric Blake  <ebb9@byu.net>
41053
41054         fseek: avoid compilation failure when fflush is replaced
41055         * m4/fseek.m4 (gl_REPLACE_FSEEK): New macro.
41056         * m4/fseeko.m4 (gl_REPLACE_FSEEKO): Also replace fseek, if fseek
41057         module is in use.
41058         * lib/stdio.in.h (GNULIB_FSEEKO): Only poison fseek if fseek
41059         module is not in use; since REPLACE_FSEEK worked otherwise.
41060         (GNULIB_FTELLO): Likewise for ftell.
41061         Reported by Ian Beckwith and others.
41062
41063 2009-10-27  Bruno Haible  <bruno@clisp.org>
41064
41065         * lib/isnan.c (rpl_isnan[fdl]): Repeat the specification declaration.
41066         Reported by Jim Meyering.
41067
41068 2009-10-27  Jim Meyering  <jim@meyering.net>
41069             Bruno Haible  <bruno@clisp.org>
41070
41071         Avoid warning despite dropping the return value of fwrite.
41072         * lib/unicodeio.c: Include ignore-value.h.
41073         (fwrite_success_callback): Explicitly ignore fwrite's return value.
41074         * modules/unicodeio (Depends-on): Add ignore-value.
41075
41076 2009-10-26  Eric Blake  <ebb9@byu.net>
41077
41078         areadlinkat: fix fallback path
41079         * lib/at-func.c (AT_FUNC_NAME): Avoid signed comparison between
41080         pointer and zero.
41081
41082 2009-10-22  Pádraig Brady  <P@draigBrady.com>
41083
41084         Use a better IO block size for modern systems
41085         * lib/copy-file.c (copy_file_preserving): Used a 32KiB malloced buffer.
41086         * lib/md2.c: Likewise.
41087         * lib/md4.c: Likewise.
41088         * lib/md5.c: Likewise.
41089         * lib/sha1.c: Likewise.
41090         * lib/sha256.c: Likewise.
41091         * lib/sha512.c: Likewise.
41092
41093 2009-10-22  Eric Blake  <ebb9@byu.net>
41094
41095         tests: avoid several compiler warnings
41096         * tests/test-getcwd.c (main): Avoid buffer underflow.
41097         * tests/test-getdate.c (main): String literals are not safe with
41098         putenv, so use setenv.  Declare unused argument.
41099         * modules/getdate-tests (Depends-on): Add setenv.
41100         * tests/test-argv-iter.c (main): Declare unused argument.  Avoid
41101         problems with string literals in char *.
41102         * tests/test-hash.c (main): Avoid shadowing declaration.
41103         (insert_new): Treat string literals as char const *.
41104         * tests/test-getopt.h (test_getopt): Likewise.
41105         (getopt_loop): Alter types to minimize casting elsewhere.
41106         * tests/test-getopt_long.h (test_getopt_long, getopt_long_loop)
41107         (test_getopt_long_posix): Likewise.
41108         (do_getopt_long): Add wrapper to minimize casting.
41109         * tests/test-atexit.c (clear_temp_file): Use void.
41110         * tests/test-areadlink-with-size.c (main): Declare unused
41111         arguments.
41112         * tests/test-areadlink.c (main): Likewise.
41113         * tests/test-areadlinkat-with-size.c (main): Likewise.
41114         * tests/test-areadlinkat.c (main): Likewise.
41115         * tests/test-canonicalize-lgpl.c (main): Likewise.
41116         * tests/test-canonicalize.c (main): Likewise.
41117         * tests/test-dirent-safer.c (main): Likewise.
41118         * tests/test-dirname.c (main): Likewise.
41119         * tests/test-dup2.c (main): Likewise.
41120         * tests/test-fchdir.c (main): Likewise.
41121         * tests/test-fcntl-h.c (main): Likewise.
41122         * tests/test-fcntl-safer.c (main): Likewise.
41123         * tests/test-fdopendir.c (main): Likewise.
41124         * tests/test-fdutimensat.c (main): Likewise.
41125         * tests/test-fflush.c (main): Likewise.
41126         * tests/test-filenamecat.c (main): Likewise.
41127         * tests/test-filevercmp.c (main): Likewise.
41128         * tests/test-fopen-safer.c (main): Likewise.
41129         * tests/test-fopen.c (main): Likewise.
41130         * tests/test-fpending.c (main): Likewise.
41131         * tests/test-fpurge.c (main): Likewise.
41132         * tests/test-freading.c (main): Likewise.
41133         * tests/test-fstatat.c (main): Likewise.
41134         * tests/test-fsync.c (main): Likewise.
41135         * tests/test-futimens.c (main): Likewise.
41136         * tests/test-getndelim2.c (main): Likewise.
41137         * tests/test-gettimeofday.c (main): Likewise.
41138         * tests/test-getopt.c (main): Likewise.
41139         * tests/test-i-ring.c (main): Likewise.
41140         * tests/test-inttypes.c (main): Likewise.
41141         * tests/test-link.c (main): Likewise.
41142         * tests/test-lstat.c (main): Likewise.
41143         * tests/test-math.c (main): Likewise.
41144         * tests/test-md5.c (main): Likewise.
41145         * tests/test-memchr2.c (main): Likewise.
41146         * tests/test-memrchr.c (main): Likewise.
41147         * tests/test-mkdir.c (main): Likewise.
41148         * tests/test-mkdirat.c (main): Likewise.
41149         * tests/test-mkfifoat.c (main): Likewise.
41150         * tests/test-open.c (main): Likewise.
41151         * tests/test-openat-safer.c (main): Likewise.
41152         * tests/test-openat.c (main): Likewise.
41153         * tests/test-quotearg.c (main): Likewise.
41154         * tests/test-rawmemchr.c (main): Likewise.
41155         * tests/test-readlink.c (main): Likewise.
41156         * tests/test-remove.c (main): Likewise.
41157         * tests/test-rename.c (main): Likewise.
41158         * tests/test-renameat.c (main): Likewise.
41159         * tests/test-rmdir.c (main): Likewise.
41160         * tests/test-sha1.c (main): Likewise.
41161         * tests/test-signal.c (main): Likewise.
41162         * tests/test-sigaction.c (main): Likewise.
41163         * tests/test-stat.c (main): Likewise.
41164         * tests/test-stat-time.c (main): Likewise.
41165         * tests/test-stddef.c (main): Likewise.
41166         * tests/test-stdint.c (main): Likewise.
41167         * tests/test-stdio.c (main): Likewise.
41168         * tests/test-stdlib.c (main): Likewise.
41169         * tests/test-strchrnul.c (main): Likewise.
41170         * tests/test-strerror.c (main): Likewise.
41171         * tests/test-string.c (main): Likewise.
41172         * tests/test-strtod.c (main): Likewise.
41173         * tests/test-strverscmp.c (main): Likewise.
41174         * tests/test-symlink.c (main): Likewise.
41175         * tests/test-symlinkat.c (main): Likewise.
41176         * tests/test-sys_stat.c (main): Likewise.
41177         * tests/test-sys_time.c (main): Likewise.
41178         * tests/test-time.c (main): Likewise.
41179         * tests/test-unistd.c (main): Likewise.
41180         * tests/test-unlink.c (main): Likewise.
41181         * tests/test-unlinkat.c (main): Likewise.
41182         * tests/test-utimens.c (main): Likewise.
41183         * tests/test-utimensat.c (main): Likewise.
41184         * tests/test-version-etc.c (main): Likewise.
41185         * tests/test-wchar.c (main): Likewise.
41186         * tests/test-wctype.c (main): Likewise.
41187         * tests/test-xprintf-posix.c (main): Likewise.
41188         * tests/test-posixtm.c (main): Likewise.
41189         (STREQ): Delete unused macro.
41190         * tests/test-linkat.c (main): Declare unused arguments.  Avoid
41191         shadowed variables.
41192         * tests/test-memchr.c (main): Likewise.
41193
41194 2009-10-21  Eric Blake  <ebb9@byu.net>
41195
41196         areadlinkat: avoid failure on older glibc
41197         * lib/at-func.c (AT_FUNC_NAME): Check for explicit FUNC_FAIL,
41198         rather than mis-comparing 0 against FUNC_RESULT of char*.
41199
41200 2009-10-21  Bruno Haible  <bruno@clisp.org>
41201
41202         * modules/stpncpy (License): Relicense under LGPLv2+.
41203         Reported by David Lutterkort <lutter@redhat.com>.
41204
41205 2009-10-20  Eric Blake  <ebb9@byu.net>
41206
41207         utimensat: work around Solaris 9 bug
41208         * lib/utimens.c (fdutimens, lutimens): Force a stat if platform
41209         has trailing slash bugs.
41210         * tests/test-lutimens.h (test_lutimens): Enhance test.
41211         * tests/test-utimens.h (test_utimens): Likewise.
41212         * doc/posix-functions/utime.texi (utime): Enhance documentation.
41213         * doc/posix-functions/utimes.texi (utimes): Likewise.
41214         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41215         * doc/glibc-functions/futimesat.texi (futimesat): Likewise.
41216         * doc/glibc-functions/lutimes.texi (lutimes): Likewise.
41217         * doc/posix-functions/futimens.texi (futimens): Likewise.
41218
41219         fdutimensat: new module
41220         * modules/fdutimensat: New file.
41221         * lib/fdutimensat.c (fdutimensat): Likewise.
41222         * lib/utimens.h (fdutimensat, lutimensat): Declare new functions.
41223         * MODULES.html.sh (File system functions): Mention module.
41224         * modules/fdutimensat-tests: New test.
41225         * tests/test-fdutimensat.c: Likewise.
41226
41227         doc: regenerate INSTALL
41228         * doc/INSTALL: Reflect recent autoconf update.
41229         * doc/INSTALL.ISO: Likewise.
41230         * doc/INSTALL.UTF-8: Likewise.
41231
41232 2009-10-20  Pádraig Brady  <P@draigBrady.com>
41233
41234         acl: warn if ACL support is not detected
41235         * m4/acl.m4 (gl_FUNC_ACL): Output a warning if ACL support is not found.
41236
41237 2009-10-19  Giuseppe Scrivano  <gscrivano@gnu.org>
41238
41239         * lib/nproc.h: Add extern "C" block for C++.
41240
41241 2009-10-18  Reuben Thomas  <rrt@sc3d.org>
41242             Bruno Haible  <bruno@clisp.org>
41243
41244         * doc/posix-functions/isascii.texi: Document the 2 alternative APIs.
41245         * doc/posix-functions/isalnum.texi: Document the 4 alternative APIs.
41246         * doc/posix-functions/isalpha.texi: Likewise.
41247         * doc/posix-functions/isblank.texi: Likewise.
41248         * doc/posix-functions/iscntrl.texi: Likewise.
41249         * doc/posix-functions/isdigit.texi: Likewise.
41250         * doc/posix-functions/isgraph.texi: Likewise.
41251         * doc/posix-functions/islower.texi: Likewise.
41252         * doc/posix-functions/isprint.texi: Likewise.
41253         * doc/posix-functions/ispunct.texi: Likewise.
41254         * doc/posix-functions/isspace.texi: Likewise.
41255         * doc/posix-functions/isupper.texi: Likewise.
41256         * doc/posix-functions/isxdigit.texi: Likewise.
41257
41258 2009-10-18  Bruno Haible  <bruno@clisp.org>
41259
41260         Tests for module 'isblank'.
41261         * modules/isblank-tests: New file.
41262         * tests/test-isblank.c: New file.
41263
41264         New module 'isblank'.
41265         * lib/isblank.c: New file.
41266         * m4/isblank.m4: New file.
41267         * modules/isblank: New file.
41268         * doc/posix-functions/isblank.texi: Mention the new module.
41269
41270 2009-10-18  Bruno Haible  <bruno@clisp.org>
41271
41272         New module 'ctype'.
41273         * lib/ctype.in.h: New file.
41274         * m4/ctype.m4: New file.
41275         * modules/ctype: New file.
41276         * doc/posix-headers/ctype.texi: Mention the new module.
41277
41278 2009-10-18  Jim Meyering  <meyering@redhat.com>
41279
41280         m4: stylistic-only: hoist AC_SUBST to be adjacent to initialization
41281         Declare a variable like LIB_CLOCK_GETTIME to be AC_SUBSTituted
41282         right after its initialization, rather than farther down.
41283         Keeping these in close proximity makes it easier to ensure
41284         that each such variable is initialized.  E.g.,
41285
41286             LIB_CLOCK_GETTIME=
41287             AC_SUBST([LIB_CLOCK_GETTIME])
41288
41289         This change also increments these serial numbers.
41290         * m4/clock_time.m4 (gl_CLOCK_TIME): Hoist AC_SUBST use.
41291         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41292         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41293
41294 2009-10-18  Bruno Haible  <bruno@clisp.org>
41295
41296         Don't let environment variables perturb build.
41297         * m4/gethrxtime.m4 (gl_GETHRXTIME): Initialize LIB_GETHRXTIME here...
41298         (gl_PREREQ_GETHRXTIME): ... not here.
41299
41300 2009-10-18  Bruno Haible  <bruno@clisp.org>
41301
41302         Avoid symlink attack in localcharset module.
41303         * lib/localcharset.c: Include <fcntl.h>, <unistd.h>.
41304         (O_NOFOLLOW): Define fallback.
41305         (get_charset_aliases): Don't open the file if it is a symbolic link.
41306         * m4/fcntl_h.m4 (gl_FCNTL_O_FLAGS): New macro, extracted from
41307         gl_FCNTL_H.
41308         (gl_FCNTL_H): Require it.
41309         * m4/localcharset.m4 (gl_LOCALCHARSET): Likewise.
41310         * modules/localcharset (Files): Add m4/fcntl_h.m4.
41311         Reported by Fergal Glynn <fglynn@veracode.com>.
41312
41313 2009-10-18  Bruno Haible  <bruno@clisp.org>
41314
41315         Implement nproc for mingw.
41316         * lib/nproc.c: Include <windows.h>
41317         (num_processors): On native Windows platforms, try GetSystemInfo.
41318
41319 2009-10-18  Bruno Haible  <bruno@clisp.org>
41320
41321         Implement nproc for IRIX.
41322         * lib/nproc.c: Include <sys/sysmp.h>.
41323         (num_processors): On IRIX systems, try sysmp.
41324         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/sysmp.h and sysmp.
41325
41326 2009-10-18  Bruno Haible  <bruno@clisp.org>
41327
41328         Implement nproc for HP-UX.
41329         * lib/nproc.c: Include <sys/pstat.h>
41330         (num_processors): On HP-UX systems, try pstat_getdynamic.
41331         * m4/nproc.m4 (gl_PREREQ_NPROC): Check for sys/pstat.h and
41332         pstat_getdynamic.
41333
41334 2009-10-18  Giuseppe Scrivano  <gscrivano@gnu.org>
41335             Bruno Haible  <bruno@clisp.org>
41336
41337         Implement nproc for NetBSD, OpenBSD.
41338         * lib/nproc.c: Include <sys/types.h>, <sys/param.h>, <sys/sysctl.h>.
41339         (ARRAY_SIZE): New macro.
41340         (num_processors): On BSD systems, try sysctl of HW_NCPU.
41341         * m4/nproc.m4: New file.
41342         * modules/nproc (Files): Add m4/nproc.m4.
41343         (configure.ac): Invoke gl_NPROC. Remove AC_LIBOBJ invocation.
41344         (Makefile.am): Instead, augment lib_SOURCES.
41345
41346 2009-10-18  Bruno Haible  <bruno@clisp.org>
41347
41348         Fix recognition of sys/sysctl.h on OpenBSD 4.0.
41349         * m4/physmem.m4 (gl_PHYSMEM): Before including sys/sysctl.h, include
41350         sys/param.h.
41351
41352 2009-10-16  Eric Blake  <ebb9@byu.net>
41353
41354         utimensat: new module
41355         * modules/utimensat: New file.
41356         * lib/utimensat.c (utimensat): Likewise.
41357         * m4/utimensat.m4 (gl_FUNC_UTIMENSAT): Likewise.
41358         * lib/utimens.c (utimensat): Avoid recursion into rpl_utimensat,
41359         so we can work around Linux bugs.
41360         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41361         * modules/sys_stat (Makefile.am): Substitute them.
41362         * lib/sys_stat.in.h (utimensat): Declare it.
41363         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41364         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41365         * modules/utimensat-tests: New test.
41366         * tests/test-utimensat.c: Likewise.
41367
41368         utimens: let lutimens work on non-symlinks
41369         * lib/utimens.c (lutimens): Fall back to utimens rather than
41370         failing with ENOSYS, when file is not a symlink.
41371         (utimens): Reduce redirection.
41372         * tests/test-lutimens.h (test_lutimens): Update test to cover
41373         non-symlinks.
41374         * tests/test-utimens.h (test_utimens): Update test to cover
41375         symlinks.
41376         * tests/test-utimens.c (main): Update caller.
41377
41378         utimens: cache whether utimensat syscall works
41379         * lib/utimens.c (utimensat_works_really): New cache variable.
41380         (fdutimens, lutimens): Use it to avoid failing syscall.
41381
41382         test-stat-time, test-utimens: improve portability
41383         * tests/test-stat-time.c (nap): Lengthen delay to 20ms, for
41384         ext4 on alpha, and for cygwin.
41385         * tests/test-utimens-common.h: New file.
41386         (nap): Factor delays into single function.
41387         * tests/test-lutimens.h (test_lutimens): Use new header.
41388         * tests/test-futimens.h (test_futimens): Likewise.
41389         * tests/test-utimens.h (test_utimens): Likewise.  Also, force NFS
41390         timestamps to occur from same machine, as was done previously for
41391         test_utimens.
41392         * modules/utimens-tests (Files): Ship new file.
41393         * modules/futimens-tests (Files): Likewise.
41394         Reported in part by Jim Meyering.
41395
41396         sys_stat: sort replacement declarations
41397         * lib/sys_stat.in.h: Sort declarations.
41398         * lib/futimens.c (futimens): Fix typo.
41399
41400 2009-10-15  Jim Meyering  <meyering@redhat.com>
41401
41402         don't let environment settings perturb build
41403         Setting the envvars, LIB_CLOCK_GETTIME, LIB_EACCESS or LIB_NANOSLEEP
41404         could cause a configure-time and/or build-time malfunction.
41405         Typically, a configure-time function-in-library test is performed
41406         via code like this:
41407
41408           LIB_VAR=
41409           AC_SUBST([LIB_VAR])
41410           prefix_saved_LIBS=$LIBS
41411             AC_SEARCH_LIBS([FUNC], [LIB_NAME],
41412                        [test "$ac_cv_search_FUNC" = "none required" ||
41413                         LIB_VAR=$ac_cv_search_FUNC])
41414           LIBS=$prefix_saved_LIBS
41415
41416         However, in each of the files affected by this change, the LIB_VAR=
41417         initialization was omitted.  Thus, when set in the environment, its
41418         value would propagate into generated Makefiles when FUNC is not found
41419         in LIB_NAME.
41420         * m4/clock_time.m4 (gl_CLOCK_TIME): Initialize AC_SUBST'd var.
41421         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
41422         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
41423
41424 2009-10-14  Eric Blake  <ebb9@byu.net>
41425
41426         fchdir: avoid infinite recursion in mingw
41427         * lib/fchdir.c (rpl_fstat): Call system fstat, rather than
41428         recursing.
41429
41430         test-stat-time: port to mingw
41431         * tests/test-stat-time.c (force_unlink): Return a value.
41432         (test_ctime) [W32]: Fix compilation error.
41433         (nap): Don't call usleep with too large an argument.  Use
41434         force_unlink.
41435         * doc/pastposix-functions/usleep.texi (usleep): Document the
41436         portability issue.
41437
41438 2009-10-13  Jim Meyering  <meyering@redhat.com>
41439
41440         use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS in modules/*
41441         * modules/pipe-filter-gi: Use AC_CHECK_FUNCS_ONCE, not AC_CHECK_FUNCS.
41442         * modules/pipe-filter-ii: Likewise.
41443         * modules/sys_socket-tests: Likewise.
41444         * modules/tsearch-tests: Likewise.
41445         * Makefile (sc_prefer_ac_check_funcs_once): New rule.
41446         (check): Depend on it.
41447
41448 2009-10-12  Eric Blake  <ebb9@byu.net>
41449
41450         utimens-tests: port to NFS file systems
41451         * tests/test-utimens.h (test_utimens): Refactor utimecmp
41452         comparisons to avoid spurious failures from timestamp drift
41453         between NFS machines.
41454
41455 2009-10-12  Eric Blake  <ebb9@byu.net>
41456
41457         stat-time-tests: minor cleanups
41458         * modules/stat-time-tests (configure.ac): Use AC_CHECK_FUNCS_ONCE.
41459         * tests/test-stat-time.c (nap): Separate assignment from call.
41460         Suggested by Paolo Bonzini and Bruno Haible.
41461
41462         sys_stat: guarantee struct timespec
41463         * lib/sys_stat.in.h (includes): Always include <time.h>
41464         * modules/sys_stat (Depends-on): Add time.
41465         * tests/test-sys_stat.c: Guarantee struct timespec, as well as
41466         mode_t permission values.
41467         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document how to
41468         get at subsecond timestamps.
41469
41470 2009-10-10  Eric Blake  <ebb9@byu.net>
41471
41472         futimens: new module
41473         * modules/futimens: New file.
41474         * lib/futimens.c (futimens): Likewise.
41475         * m4/futimens.m4 (gl_FUNC_FUTIMENS): Likewise.
41476         * lib/utimens.c (futimens): Avoid recursion into rpl_futimens, so
41477         we can work around Linux bugs.
41478         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
41479         * modules/sys_stat (Makefile.am): Substitute them.
41480         * lib/sys_stat.in.h (futimens): Declare it.
41481         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41482         * doc/posix-functions/futimens.texi (futimens): Likewise.
41483         * modules/futimens-tests: New test.
41484         * tests/test-futimens.c: Likewise.
41485
41486         utimens: introduce fdutimens
41487         * lib/utimens.h (fdutimens): New prototype.
41488         * lib/utimens.c (gl_futimens): Move guts...
41489         (fdutimens): ...to new interface.
41490         * tests/test-utimens.c (do_fdutimens): Use it.
41491
41492         utimens: add UTIME_NOW and UTIME_OMIT support
41493         * lib/utimens.c (validate_timespec, update_timespec): New helper
41494         functions.
41495         (gl_futimens, lutimens): Use them.
41496         * modules/utimens (Depends-on): Add gettime, lstat, stat-time,
41497         stdbool, sys_stat.
41498         (Link): Mention resulting library dependency.
41499         * modules/utimecmp (Link): Likewise.
41500         * modules/utimens-tests (Depends-on): Drop stat-time, stdbool.
41501         (Makefile.am): Pick up library dependency.
41502         * lib/sys_stat.in.h (UTIME_NOW, UTIME_OMIT): Guarantee a
41503         definition.
41504         * tests/test-sys_stat.c: Test the definitions.
41505         * doc/posix-headers/sys_stat.texi (sys/stat.h): Document this.
41506         * NEWS: Document library dependency.
41507
41508         utimecmp: support symlink timestamps
41509         * lib/utimecmp.c (utimecmp): Use new interface.  Skip effort of
41510         hashing when possible.  Use pathconf when available.
41511         (SYSCALL_RESOLUTION): Recognize tighter resolution.
41512         * modules/utimecmp (Depends-on): Add lstat.
41513
41514         utimens: add lutimens interface
41515         * lib/utimens.c (lutimens): New function.
41516         * m4/utimens.m4 (gl_UTIMENS): Check for lutimes.
41517         * lib/utimens.h (lutimens): Declare new interface.
41518         * tests/test-utimens.c (main): Enhance test.
41519         * tests/test-lutimens.h (test_lutimens): New file.
41520         * modules/utimens-tests (Files): Distribute it.
41521         (Depends-on): Add symlink.
41522         (configure.ac): Check for usleep.
41523
41524         utimens: validate futimens usage
41525         * lib/utimens.c (gl_futimens): Require valid fd up front, using
41526         fewer syscalls on failure later on.  Avoid compiler warning on
41527         mingw.
41528         * modules/utimens (Depends-on): Add dup2.
41529
41530         utimens: add test
41531         * modules/utimens-tests: New test.
41532         * tests/test-utimens.h: New file.
41533         * tests/test-futimens.h: Likewise.
41534         * tests/test-utimens.c: Likewise.
41535
41536         doc: mention timestamp portability issues
41537         * doc/glibc-functions/lutimes.texi (lutimes): Refer to utimensat
41538         instead.
41539         * doc/posix-functions/utime.texi (utime): Likewise.
41540         * doc/posix-functions/utimes.texi (utimes): Likewise.
41541         * doc/glibc-functions/futimes.texi (futimes): Refer to futimens
41542         instead.
41543         * doc/posix-functions/futimens.texi (futimens): Mention utimens
41544         module.
41545         * doc/posix-functions/utimensat.texi (utimensat): Likewise.
41546         Mention weakness with symlink timestamps.
41547         * doc/glibc-functions/futimesat.texi (futimesat): New file; refer
41548         to utimensat/futimens instead.
41549         * doc/gnulib.texi (Glibc sys/time.h): Include new file.
41550
41551         test-dup2: enhance test
41552         * tests/test-dup2.c (main): Also check AT_FDCWD.
41553
41554         test-stat-time: avoid more spurious failures
41555         * tests/test-stat-time.c (nap): Wait for 15ms rather than 2ms, for
41556         xfs; and avoid race if the two timestamps cross quantization edge.
41557
41558         relocatable: prefer 'file system' over 'filesystem'
41559         * m4/relocatable-lib.m4 (gl_RELOCATABLE_NOP): Use AS_HELP_STRING.
41560         (gl_RELOCATABLE_LIBRARY_BODY): Fix spelling.
41561         * doc/relocatable-maint.texi (Supporting Relocation): Likewise.
41562         * doc/relocatable.texi (Enabling Relocatability): Likewise.
41563         * lib/relocatable.c (compute_curr_prefix): Likewise.
41564
41565 2009-10-10  Jim Meyering  <meyering@redhat.com>
41566
41567         stat-time-tests: check for the usleep function
41568         * modules/stat-time-tests (configure.ac): Now that we test HAVE_USLEEP.
41569
41570 2009-10-10  Bruno Haible  <bruno@clisp.org>
41571
41572         * modules/xnanosleep: Put the Link section after the Include section.
41573
41574 2009-10-09  Eric Blake  <ebb9@byu.net>
41575
41576         dup2: work around FreeBSD 6.1 bug
41577         * m4/dup2.m4 (gl_FUNC_DUP2): Detect bug.
41578         * doc/posix-functions/dup2.texi (dup2): Document it.
41579         Reported by Nelson H. F. Beebe and Jim Meyering.
41580
41581         test-stat-time: port to buggy NFS clients
41582         * tests/test-stat-time.c (main) [W32]: Reduce ifdefs.
41583         (test_ctime): Also skip test if mtime and ctime are skewed.
41584
41585         maint: prefer 'file system' over 'filesystem'
41586         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
41587         * doc/posix-functions/lstat.texi (lstat): Likewise.
41588         * lib/file-has-acl.c (file_has_acl): Likewise.
41589         * lib/fwriteerror.c [TEST]: Likewise.
41590         * tests/test-areadlink.h (test_areadlink): Likewise.
41591         * tests/test-areadlinkat-with-size.c (main): Likewise.
41592         * tests/test-areadlinkat.c (main): Likewise.
41593         * tests/test-canonicalize-lgpl.c (main): Likewise.
41594         * tests/test-canonicalize.c (main): Likewise.
41595         * tests/test-fstatat.c (main): Likewise.
41596         * tests/test-linkat.c (main): Likewise.
41597         * tests/test-lstat.h (test_lstat_func): Likewise.
41598         * tests/test-mkdir.h (test_mkdir): Likewise.
41599         * tests/test-readlink.h (test_readlink): Likewise.
41600         * tests/test-remove.c (main): Likewise.
41601         * tests/test-rename.h (test_rename): Likewise.
41602         * tests/test-renameat.c (main): Likewise.
41603         * tests/test-rmdir.h (test_rmdir_func): Likewise.
41604         * tests/test-symlink.h (test_symlink): Likewise.
41605         * tests/test-symlinkat.c (main): Likewise.
41606         * tests/test-unlink.h (test_unlink_func): Likewise.
41607         * tests/test-unlinkat.c (main): Likewise.
41608
41609         maint: make realtime library usage explicit
41610         * modules/gethrxtime (Link): Mention LIB_GETHRXTIME.
41611         * modules/gettime (Link): Mention LIB_CLOCK_GETTIME.
41612         * modules/settime (Link): Likewise.
41613         * modules/xnanosleep (Link): Mention LIB_NANOSLEEP.
41614
41615         test-stat-time: speed up execution
41616         * tests/test-stat-time.c (test_ctime) [!W32]: Avoid compiler
41617         warning on mingw.
41618         (nap): New helper function.
41619         (prepare_test): Use it to reduce sleep time.
41620         (test_mtime, test_ctime, test_birthtime): Allow for subsecond
41621         execution.
41622         * modules/stat-time-tests (configure.ac): Check for usleep.
41623
41624 2009-10-09  Jim Meyering  <meyering@redhat.com>
41625
41626         selinux-h: always use getfilecon wrappers
41627         * lib/getfilecon.c: New file.
41628         * lib/se-selinux.in.h: Use a better inclusion guard symbol name.
41629         [HAVE_SELINUX_SELINUX_H]: Include-next <selinux/selinux.h>.
41630         [!HAVE_SELINUX_SELINUX_H]: Use better parameter names.
41631         (fgetfilecon): Provide a stub.
41632         * m4/selinux-selinux-h.m4 (gl_HEADERS_SELINUX_SELINUX_H): Don't
41633         AC_SUBST SELINUX_SELINUX_H, since now we're generating that
41634         file unconditionally.
41635         When <selinux/selinux.h> is found, arrange to use wrappers.
41636         * modules/selinux-h (Files): Add getfilecon.c.
41637         (Makefile.am): Substitute include-next-related bits
41638         into the now-always-generated selinux/selinux.h file.
41639         * doc/glibc-functions/lgetfilecon.texi: New file.
41640         * doc/glibc-functions/fgetfilecon.texi: New file.
41641         * doc/glibc-functions/getfilecon.texi: New file.
41642         * doc/glibc-functions/getfilecon-desc.texi: New file.
41643         * doc/gnulib.texi (Glibc selinux/selinux.h): New section, by
41644         which to pull in the new files.
41645         * MODULES.html.sh (Misc): Add selinux-h.
41646
41647 2009-10-08  Jim Meyering  <meyering@redhat.com>
41648
41649         unistd: fix comment typo
41650         * lib/unistd.in.h (euidaccess): Fix a comment typo.
41651
41652 2009-10-08  Eric Blake  <ebb9@byu.net>
41653
41654         areadlink: use SIZE_MAX consistently
41655         * modules/areadlink (Depends-on): Add stdint.
41656         * modules/areadlink-with-size (Depends-on): Likewise.
41657         * lib/areadlink-with-size.c (includes): Drop stdio, since stdlib
41658         gives NULL; drop sys/types, since unistd gives size_t; and add
41659         stdint for SIZE_MAX.
41660         (SIZE_MAX): Rely on headers.
41661         * lib/areadlinkat-with-size.c (includes): Drop stdio, sys/types,
41662         and add stdint.
41663         * lib/areadlink.c (includes): Drop sys/types, and add stdint.
41664         (SIZE_MAX): Likewise.
41665         (INITIAL_BUF_SIZE): Turn into enum.
41666         * lib/areadlinkat.c (INITIAL_BUF_SIZE): Likewise.
41667
41668 2009-10-08  Jim Meyering  <meyering@redhat.com>
41669
41670         areadlinkat: avoid compilation failure
41671         * lib/areadlinkat.c: Include <stdint.h> for use of SIZE_MAX.
41672         Fix typo in comment.
41673
41674 2009-10-07  Eric Blake  <ebb9@byu.net>
41675
41676         areadlinkat-with-size: new module
41677         * modules/areadlinkat-with-size: New module.
41678         * lib/areadlinkat-with-size.c (areadlinkat_with_size): New file.
41679         * lib/areadlink.h (areadlinkat): Declare it.
41680         * MODULES.html.sh (File system functions): Mention it.
41681         * modules/areadlinkat-with-size-tests: New test.
41682         * tests/test-areadlinkat-with-size.c: New file.
41683
41684         xreadlinkat: new module
41685         * modules/xreadlinkat: New module.
41686         * lib/xreadlinkat.c (xreadlinkat): New file.
41687         * lib/xreadlink.h (xreadlinkat): Declare it.
41688         * MODULES.html.sh (File system functions): Mention it.
41689
41690         areadlinkat: new module
41691         * lib/at-func.c (FUNC_FAIL): New define.
41692         (AT_FUNC_NAME, VALIDATE_FLAG): Use it rather than raw -1.
41693         * modules/areadlinkat: New module.
41694         * lib/linkat.c (areadlinkat): Move...
41695         * lib/areadlinkat.c (areadlinkat): ...to new file.
41696         * lib/areadlink.h (areadlinkat): Declare it.
41697         * modules/linkat (Depends-on): Add areadlinkat.
41698         * MODULES.html.sh (File system functions): Mention it.
41699         * modules/areadlinkat-tests: New test.
41700         * tests/test-areadlinkat.c: New file.
41701
41702         areadlink, areadlink-with-size: add tests
41703         * modules/areadlink-tests: New test.
41704         * modules/areadlink-with-size-tests: Likewise.
41705         * tests/test-areadlink.h: New file.
41706         * tests/test-areadlink.c: Likewise.
41707         * tests/test-areadlink-with-size.c: Likewise.
41708
41709         maint: minor cleanups
41710         * lib/fts.c (ATTRIBUTE_UNUSED): Delete; use gnulib-guaranteed
41711         _UNUSED_PARAMETER_ instead.
41712         * lib/getdate.y (ATTRIBUTE_UNUSED): Likewise.
41713         * lib/utimens.c (ATTRIBUTE_UNUSED): Likewise.
41714         * modules/linkat-tests (Files): Distribute test-link.h.
41715
41716         openat, utimens: whitespace cleanup
41717         * lib/openat.c: Prefer space throughout, rather than mix of 8
41718         spaces vs. tabs.
41719         * lib/at-func.c: Likewise.
41720         * lib/utimens.c: Likewise.
41721
41722         openat: avoid using wrong fd
41723         * lib/openat.c (openat_permissive): Reject user's fd if saving the
41724         working directory chooses same fd.
41725         * lib/at-func.c (AT_FUNC_NAME): Likewise.
41726
41727         mkdir, mkdirat: fix cygwin 1.5.x bug
41728         * lib/mkdir.c (rpl_mkdir) [FUNC_MKDIR_DOT_BUG]: Work around bug.
41729         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Move...
41730         * m4/mkdir.m4 (gl_FUNC_MKDIR): ...here, and add check for cygwin
41731         bug.
41732         (gl_PREREQ_MKDIR): Delete unused macro.
41733         * modules/mkdir (Files): Track file rename.
41734         (configure.ac): Update macro name.
41735         * modules/openat (Depends-on): Add mkdir.
41736         * doc/posix-functions/mkdir.texi (mkdir): Document the bug.
41737
41738         mkdir, mkdirat: add tests
41739         * modules/mkdir-tests: New test.
41740         * tests/test-mkdir.h: New file.
41741         * tests/test-mkdir.c: Likewise.
41742         * tests/test-mkdirat.c: Likewise.
41743         * modules/openat-tests (Files): Add new files.
41744         (Makefile.am): Run new test.
41745
41746 2009-10-06  Eric Blake  <ebb9@byu.net>
41747
41748         doc: tweak *at function documentation
41749         * doc/posix-functions/faccessat.texi (faccessat): Mention
41750         known issue with replacement.
41751         * doc/posix-functions/fchdir.texi (fchdir): Likewise.
41752         * doc/posix-functions/linkat.texi (linkat): Likewise.
41753         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
41754         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
41755         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
41756         * doc/posix-functions/renameat.texi (renameat): Likewise.
41757         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
41758
41759         openat: fix GNU/Hurd bug in unlinkat
41760         * m4/openat.m4 (gl_FUNC_OPENAT): Replace unlinkat if unlink is
41761         broken.
41762         * doc/posix-functions/unlink.texi (unlink): Document this.
41763         * doc/posix-functions/unlinkat.texi (unlinkat): Likewise.
41764
41765         fdopendir: fix GNU/Hurd bug
41766         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): Check for Hurd bug in
41767         allowing non-directory fds.
41768         * lib/fdopendir.c (rpl_fdopendir): Work around it.
41769         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): New witness.
41770         * modules/dirent (Makefile.am): Substitute it.
41771         * lib/dirent.in.h (fdopendir): Declare replacement.
41772         * doc/posix-functions/fdopendir.texi (fdopendir): Document this.
41773         * tests/test-fdopendir.c (main): Test something other than
41774         /dev/null, since on Hurd that behaves like a directory.
41775
41776         test-symlink: port to GNU/Hurd
41777         * tests/test-symlink.h (test_symlink): Relax expected errno.
41778
41779         doc: tweak more cygwin information
41780         * doc/glibc-headers/getopt.texi (getopt.h): Cygwin 1.7 getopt is
41781         now compatible with glibc.
41782         * doc/posix-functions/getopt.texi (getopt): Likewise.
41783
41784         getopt-gnu: add another test
41785         * tests/test-getopt_long.h (test_getopt_long_posix): New test, to
41786         guarantee behavior relied on by m4.
41787         * tests/test-getopt.c (main): Use it.
41788         * modules/getopt-posix-tests (Depends-on): Add setenv.
41789         See http://lists.gnu.org/archive/html/bug-m4/2006-09/msg00028.html.
41790
41791         getopt: fix compilation on darwin
41792         * lib/getopt.in.h (includes): Leave breadcrumbs during system
41793         include.
41794         * lib/unistd.in.h (getopt): Use them to avoid recursive include.
41795         Reported by Ludovic Courtès.
41796
41797 2009-10-06  Bruno Haible  <bruno@clisp.org>
41798
41799         * modules/size_max (Description): Discourage its use.
41800         Reported by Simon Josefsson.
41801
41802 2009-10-06  Jim Meyering  <meyering@redhat.com>
41803
41804         linkat: avoid compilation failure
41805         * lib/linkat.c: Include <stdint.h> for use of SIZE_MAX.
41806
41807 2009-10-05  Eric Blake  <ebb9@byu.net>
41808
41809         linkat: support Linux 2.6.17
41810         * m4/linkat.m4 (gl_FUNC_LINKAT): Default to always replacing
41811         linkat on Linux, but allow cache variable override.
41812         * lib/linkat.c (rpl_linkat): Define override.
41813         * modules/linkat (Depends-on): Add symlinkat.
41814         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add new default.
41815         * modules/unistd (Makefile.am): Substitute it.
41816         * lib/unistd.in.h (linkat): Declare replacement.
41817         Reported by Pádraig Brady.
41818
41819         quotearg: port test to systems with C.UTF-8 locale
41820         * tests/test-quotearg.c (struct result_strings): Add another
41821         member, differentiating between C.ASCII and C.UTF-8 handling.
41822         (compare_strings): Add parameter.
41823         (main): Adjust all callers.
41824
41825         getopt: avoid clash with FreeBSD _getopt_internal
41826         * lib/getopt.in.h (_getopt_internal): Override the name.
41827         * lib/getopt_int.h (includes): Pick up any overrides.
41828         Reported by Reuben Thomas.
41829
41830         hash: allow C89 compilation
41831         * lib/hash.c (check_tuning): Move declaration before statement.
41832         Reported by Reuben Thomas.
41833
41834 2009-10-05  Karl Berry  <karl@gnu.org>
41835
41836         * doc/gnulib.texi: @include execvpe.texi, missing for several days.
41837
41838 2009-10-04  Paolo Bonzini  <bonzini@gnu.org>
41839             Bruno Haible  <bruno@clisp.org>
41840
41841         * lib/uname.c (uname): Use a table-driven algorithm to compute
41842         Windows NT versions.
41843
41844 2009-10-04  Bruno Haible  <bruno@clisp.org>
41845
41846         * lib/progname.c (set_program_name): Also remove the "lt-" prefix from
41847         program_invocation_short_name.
41848         * modules/progname (configure.ac): Test for presence of
41849         program_invocation_short_name.
41850         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
41851
41852 2009-10-04  Bruno Haible  <bruno@clisp.org>
41853
41854         * lib/progname.c (set_program_name): Fix comment.
41855         Reported by Jim Meyering.
41856
41857 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41858             Bruno Haible  <bruno@clisp.org>
41859
41860         * lib/uname.c: Include <string.h>.
41861         (uname): Do only one call to GetVersionEx in the common case.
41862
41863 2009-10-03  Paolo Bonzini  <bonzini@gnu.org>
41864             Bruno Haible  <bruno@clisp.org>
41865
41866         * lib/uname.c (VER_PLATFORM_WIN32_CE, PROCESSOR_ARCHITECTURE_AMD64,
41867         PROCESSOR_ARCHITECTURE_IA32_ON_WIN64): Define fallbacks.
41868         (uname): Add support for Windows CE and various non-x86 CPU types.
41869
41870 2009-10-03  Bruno Haible  <bruno@clisp.org>
41871
41872         * gnulib-tool (func_create_testdir): Conditionally emit AM_PROG_CC_C_O
41873         invocation to tests/configure.ac.
41874         Reported by Ian Beckwith <ianb@erislabs.net>.
41875
41876 2009-10-02  Eric Blake  <ebb9@byu.net>
41877
41878         fchdir: avoid compiler warning
41879         * lib/fchdir.c (canonicalize_file_name)
41880         [!HAVE_CANONICALIZE_FILE_NAME]: Avoid compiler warning on mingw.
41881
41882         test-open: support mingw errno values
41883         * tests/test-open.h (test_open): Relax test.
41884         * tests/test-fopen.h (test_fopen): Likewise.
41885         * tests/test-openat-safer.c (main): Likewise.
41886
41887         open: fix opening directory on mingw
41888         * lib/open.c (open) [REPLACE_OPEN_DIRECTORY]: Correct typo.
41889
41890         test-open: on GNU/Hurd, /dev/null is a directory
41891         * tests/test-fopen.h (main): Rename...
41892         (test_fopen): ...to this.  Use a guaranteed non-directory when
41893         confirming open behavior on trailing slash.
41894         * tests/test-openat-safer.c (main): Likewise.
41895         * tests/test-open.h (main): Likewise....
41896         (test_open): ...to this.
41897         * tests/test-fopen.c (main): Adjust caller.
41898         * tests/test-fopen-safer.c (main): Likewise.
41899         * tests/test-open.c (main): Likewise.
41900         * tests/test-fcntl-safer.c (main): Likewise.
41901         Reported by Samuel Thibault.
41902
41903         rename, fchdir: don't ignore chdir failure
41904         * lib/fchdir.c (get_name): Abort on unexpected chdir failure.
41905         * lib/rename.c (rpl_rename) [W32]: Likewise.
41906         (rpl_rename) [RENAME_DEST_EXISTS_BUG]: Avoid one case of losing
41907         an empty destination directory if source cannot be renamed,
41908         although there is still possibility for failure.
41909         * doc/posix-functions/rename.texi (rename): Document the race.
41910         Reported by Jim Meyering.
41911
41912         maint: cleanup whitespace in recent commits
41913         * lib/rename.c (rpl_rename): Remove tabs.
41914         * tests/test-link.h (test_link): Likewise.
41915         * lib/fchdir.c (get_name): Likewise.
41916         Reported by Jim Meyering.
41917
41918 2009-10-02  Ben Pfaff  <blp@gnu.org>
41919
41920         relocatable-prog-wrapper: Add missing dependency on
41921         double-slash-root.
41922         * modules/relocatable-prog-wrapper: Add dependency.
41923         Reported by Ian Beckwith <ianb@erislabs.net>.
41924
41925 2009-10-02  Eric Blake  <ebb9@byu.net>
41926
41927         renameat: fix Solaris bugs
41928         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Replace renameat if rename
41929         needed fixing.
41930         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): New witness.
41931         * modules/stdio (Makefile.am): Substitute it.
41932         * lib/stdio.in.h (renameat): Declare replacement.
41933         * lib/renameat.c (rpl_renameat): Implement fix.
41934
41935         renameat: new module
41936         * modules/renameat: New file.
41937         * lib/renameat.c (renameat): Likewise.
41938         * m4/renameat.m4 (gl_FUNC_RENAMEAT): Likewise.
41939         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
41940         * modules/stdio (Makefile.am): Substitute them.
41941         * lib/stdio.in.h (renameat): Declare it.
41942         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
41943         * doc/posix-functions/renameat.texi (renameat): Likewise.
41944         * modules/renameat-tests: New test.
41945         * tests/test-renameat.c: Likewise.
41946
41947         rename: fix mingw bugs
41948         * lib/rename.c (rpl_rename) [W32]: Fix trailing slash and
41949         directory overwrite bugs.
41950
41951         rename: fix another cygwin 1.5 bug
41952         * m4/rename.m4 (gl_FUNC_RENAME): Split cygwin bugs into two
41953         checks.
41954         * lib/rename.c (rpl_rename): Don't penalize NetBSD with
41955         unnecessary cygwin workarounds.  Also work around bug with moving
41956         full directory onto an empty one.
41957         * modules/rename (Depends-on): Add canonicalize-lgpl, rmdir.
41958
41959         rename-dest-slash: merge into rename module
41960         * modules/rename-dest-slash (Status): Mark obsolete.
41961         (Depends-on): Add rename.
41962         (Files): Let rename do it all.
41963         * m4/rename.m4 (gl_FUNC_RENAME): Also test for NetBSD bugs,
41964         subsuming the test from gl_FUNC_RENAME_TRAILING_DEST_SLASH...
41965         * m4/rename-dest-slash.m4: ...so this file can be deleted.
41966         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Delete.
41967         * lib/rename.c (rpl_rename): Update comments.
41968
41969         rename: fix cygwin 1.5.x bugs
41970         * m4/rename.m4 (gl_FUNC_RENAME): Detect cygwin bugs.
41971         * lib/rename.c (rpl_rename): Work around them.
41972         * modules/rename (Depends-on): Add same-inode.
41973
41974         rename: fix Solaris 10 bug
41975         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41976         * lib/rename.c (rpl_rename): Don't cripple POSIX behavior if this
41977         was the only bug.
41978
41979         rename: fix Solaris 9 bug
41980         * lib/rename.c (rpl_rename): Rewrite to recognize trailing slash
41981         on non-directory.  Avoid calling exit.
41982         * modules/rename (Depends-on): Drop xalloc; add lstat, stdbool,
41983         strdup.
41984         * modules/rename-tests (Depends-on): Drop lstat.
41985         * m4/rename.m4 (gl_FUNC_RENAME): Detect Solaris bug.
41986         (gl_PREREQ_RENAME): Delete unused macro.
41987
41988         rename-dest-slash: fix NetBSD bug
41989         * lib/rename-dest-slash.c (rpl_rename_dest_slash): Detect hard
41990         links.
41991         * modules/rename-dest-slash (Depends-on): Add same-inode.
41992
41993         rename-tests: new test, exposes several platform bugs
41994         * modules/rename-tests: New file.
41995         * tests/test-rename.h: Likewise.
41996         * tests/test-rename.c: Likewise.
41997         * doc/posix-functions/rename.texi (rename): Improve documentation,
41998         including bugs that will eventually be fixed in gnulib.
41999
42000 2009-10-02  Paolo Bonzini  <bonzini@gnu.org>
42001
42002         * lib/uname.c: Include <stdlib.h>
42003         (uname): Assume version info is available.
42004
42005 2009-10-02  Jim Meyering  <meyering@redhat.com>
42006
42007         gnu-web-doc-update: correct --help output
42008         * build-aux/gnu-web-doc-update: Make --help output relevant.
42009
42010         gnu-web-doc-update: add standard options
42011         * build-aux/gnu-web-doc-update: Add --help, --version, etc.
42012
42013         gnu-web-doc-update: New module.
42014         Use this script to automatically update the on-line web documentation
42015         for your GNU project at http://www.gnu.org/software/$pkg/manual/
42016         * modules/gnu-web-doc-update: New file, from coreutils.
42017         * build-aux/gnu-web-doc-update: New script.
42018
42019 2009-10-01  Paolo Bonzini  <bonzini@gnu.org>
42020
42021         link: LoadLibrary is not needed.
42022         * lib/link.c: Use GetModuleHandle.
42023
42024 2009-10-01  Eric Blake  <ebb9@byu.net>
42025
42026         getopt: bump serial number
42027         * m4/getopt.m4: Increment serial number, to account for 2009-09-24
42028         change.
42029
42030         tests: tighten link, rmdir, and remove tests
42031         * tests/test-link.h (includes): No need to use <config.h> here.
42032         Clean up if directory hard link was created, otherwise test for
42033         trailing '.'.
42034         * tests/test-linkat.c (main): Simplify.
42035         * tests/test-remove.c (main): Enhance test for trailing '.'.
42036         * tests/test-rmdir.h (test_rmdir_func): Likewise.
42037
42038 2009-10-01  Jim Meyering  <meyering@redhat.com>
42039
42040         maint.mk: requiring "make major" was annoying, for a "minor" release.
42041         What is intended is "stable", to contrast with alpha and beta,
42042         so require "make stable", not "make major".
42043         * build-aux/announce-gen (%valid_release_types): s/major/stable/.
42044         (get_tool_versions): Likewise.
42045         * top/maint.mk (ALL_RECURSIVE_TARGETS): s/major/stable/
42046
42047 2009-09-30  Ben Pfaff  <blp@gnu.org>
42048
42049         Fix broken build of replacement for Windows tmpfile().
42050         * lib/tmpfile.c (tmpfile): Fix call to gen_tempname() to provide
42051         flags argument added along with the 'mkostemp' module.
42052
42053 2009-09-28  Bruno Haible  <bruno@clisp.org>
42054
42055         Avoid identifier clash with POSIX function 'remove' defined as a macro.
42056         * lib/gl_list.h (struct gl_list_implementation): Rename field 'remove'
42057         to 'remove_elt'.
42058         (gl_list_remove): Update.
42059         * lib/gl_list.c (gl_list_remove): Update.
42060         * lib/gl_oset.h (struct gl_oset_implementation): Rename field 'remove'
42061         to 'remove_elt'.
42062         (gl_oset_remove): Update.
42063         * lib/gl_list.c (gl_oset_remove): Update.
42064         Reported by Eric Blake.
42065
42066 2009-09-28  Eric Blake  <ebb9@byu.net>
42067
42068         doc: mention yet more cygwin 1.7 status
42069         * doc/posix-functions/fexecve.texi (fexecve): Now implemented in
42070         cygwin.
42071         * doc/glibc-functions/execvpe.texi (execvpe): New file.
42072         * doc/gnulib.texi (Glibc unistd.h): Mention it.
42073
42074         argp: fix test failure
42075         * lib/argp-help.c (hol_entry_cmp): Don't use _tolower on values
42076         that are not upper-case.  Pass correct range to tolower.
42077
42078 2009-09-27  Jim Meyering  <meyering@redhat.com>
42079
42080         test-yesno: work around sparc-dash here-document infelicity
42081         Without this change, the literal \177 byte in a here document
42082         would make dash 0.5.5.1-3 access uninitialized memory.
42083         * tests/test-yesno.sh: Don't put the \177 byte in the here document.
42084         Instead, use a marker, "@", and filter through tr to create the desired
42085         contents.  Reported as <http://bugs.debian.org/548493> by Kurt Roeckx.
42086
42087 2009-09-27  Bruno Haible  <bruno@clisp.org>
42088
42089         Disable untested support for new flavours of ACLs on AIX.
42090         * lib/file-has-acl.c (file_has_acl): Mark newer AIX code as work in
42091         progress.
42092         * lib/set-mode-acl.c (qset_acl): Likewise.
42093
42094 2008-12-07  Bruno Haible  <bruno@clisp.org>
42095
42096         Add support for new flavours of ACLs on AIX. (Untested.)
42097         * lib/file-has-acl.c [AIX] (acl_nfs4_nontrivial): New function.
42098         (file_has_acl): Add support for newer AIX.
42099         * lib/set-mode-acl.c (qset_acl): Likewise.
42100         * tests/test-sameacls.c (main): Fix use of aclx_get function. Hint by
42101         Rainer Tammer <tammer@tammer.net>.
42102
42103 2009-09-26  Eric Blake  <ebb9@byu.net>
42104
42105         argp: fix compilation of getopt
42106         * lib/getopt.in.h (includes): Use different guard than glibc.
42107         Reported by Sergey Poznyakoff.
42108
42109         doc: mention more cygwin 1.7 status
42110         * doc/posix-functions/access.texi (access): Mention cygwin 1.5
42111         bug.
42112         * doc/posix-functions/execl.texi (execl): Likewise.
42113         * doc/posix-functions/execle.texi (execle): Likewise.
42114         * doc/posix-functions/execlp.texi (execlp): Likewise.
42115         * doc/posix-functions/execv.texi (execv): Likewise.
42116         * doc/posix-functions/execve.texi (execve): Likewise.
42117         * doc/posix-functions/execvp.texi (execvp): Likewise.
42118         * doc/glibc-functions/canonicalize_file_name.texi
42119         (canonicalize_file_name): Cygwin 1.7 now provides this.
42120         * doc/glibc-functions/euidaccess.texi (euidaccess): Likewise.
42121         * doc/posix-functions/fchmodat.texi (fchmodat): Mention limitation
42122         on AT_SYMLINK_NOFOLLOW.
42123
42124 2009-09-24  Eric Blake  <ebb9@byu.net>
42125
42126         test-linkat: make test more robust
42127         * tests/test-linkat.c (main): Avoid collision with EEXIST.
42128
42129         getopt: fix inclusion guards for cygwin
42130         * modules/getopt-posix (Depends-on): Add include-next.
42131         (Makefile.am): Substitute more items in replacement header.
42132         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Also check for native
42133         <getopt.h>.
42134         * lib/getopt.in.h (includes): Use split inclusion guard, and
42135         prefer <getopt.h> over include <unistd.h> when one is present.
42136         (option): Also override name of 'struct option'.
42137
42138         same-inode: revert prior change; it is not yet ready
42139         * NEWS: Undo mention of this change.
42140         * lib/same-inode.h (same-inode.h): Undo tri-state change.
42141         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42142         * lib/cycle-check.c (cycle_check): Likewise.
42143         * lib/same.c (same_name): Likewise.
42144         * lib/at-func2.c (at_func2): Likewise.
42145
42146 2009-09-23  Eric Blake  <ebb9@byu.net>
42147
42148         linkat: new module
42149         * modules/linkat: New file.
42150         * lib/at-func2.c (at_func2): Likewise.
42151         * lib/linkat.c (linkat): Likewise.
42152         * m4/linkat.m4 (gl_FUNC_LINKAT): Likewise.
42153         * lib/openat-priv.h (at_func2): Add declaration.
42154         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42155         * modules/unistd (Makefile.am): Substitute them.
42156         * lib/unistd.in.h (linkat): Declare it.
42157         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42158         * doc/posix-functions/linkat.texi (linkat): Likewise.
42159         * doc/posix-functions/link.texi (link): Tweak wording.
42160         * tests/test-link.c (main): Move guts...
42161         * tests/test-link.h (test_link): ...into new file.
42162         * modules/linkat-tests: New test.
42163         * tests/test-linkat.c: Likewise.
42164         * modules/link-tests (Files): Ship new file.
42165         (Depends-on): Add stdbool.
42166
42167         dirname: add library-safe mdir_name
42168         * lib/dirname.h (mdir_name): New prototype.
42169         * lib/dirname.c (dir_name): Move guts...
42170         (mdir_name): ...to new function that avoids xalloc_die.
42171
42172         fchdir: another mingw fix
42173         * modules/fchdir (Depends-on): Drop canonicalize-lgpl.
42174         * lib/fchdir.c (get_name): New helper method; skips canonicalize
42175         on mingw (where it has not yet been ported), and make it optional
42176         elsewhere.
42177         (_gl_register_fd): Use it.
42178
42179         same-inode: make SAME_INODE tri-state, to port to mingw
42180         * NEWS: Mention this change.
42181         * lib/same-inode.h (same-inode.h): Recognize mingw limitation of
42182         st_ino always being 0.
42183         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Update caller.
42184         * lib/cycle-check.c (cycle_check): Likewise.
42185         * lib/same.c (same_name): Likewise.
42186
42187         lstat: avoid mingw compilation error
42188         * m4/lstat.m4 (gl_FUNC_LSTAT): Avoid duplicate calls to
42189         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK, and deal with missing
42190         lstat ourselves.
42191         * lib/lstat.c [!HAVE_LSTAT]: Do nothing if <sys/stat.h> override
42192         was adequate.
42193         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Let lstat module handle
42194         the checks for lstat.
42195         (gl_SYS_STAT_H_DEFAULTS): Set default for HAVE_LSTAT.
42196
42197         link: fix test failure on Solaris 9
42198         * lib/link.c (rpl_link): Don't assume link will catch bogus
42199         trailing slash on source.
42200
42201         test-symlinkat: enhance test
42202         * tests/test-readlink.c (main): Move guts...
42203         * tests/test-readlink.h (test_readlink): ...into new file.
42204         * tests/test-symlink.c (main): Move guts...
42205         * tests/test-symlink.h (test_symlink): ...into new file.
42206         * tests/test-symlinkat.c (main): Use new files for further
42207         coverage.
42208         (do_symlink, do_readlink): New helper functions.
42209         * modules/symlink-tests (Files): Ship new file.
42210         (Depends-on): Add stdbool.
42211         * modules/readlink-tests (Files): Ship new file.
42212         (Depends-on): Add stdbool.
42213         * modules/symlinkat-tests (Files): Use new files.
42214
42215 2009-09-23  Eric Blake  <ebb9@byu.net>
42216
42217         readlink: document portability issue with symlink length
42218         * doc/posix-functions/lstat.texi (lstat): Mention that some file
42219         systems have bogus st_size on symlinks, and mention the
42220         areadlink-with-size module.
42221         * doc/posix-functions/fstatat.texi (fstatat): Likewise.
42222         * doc/posix-functions/readlink.texi (readlink): Mention the
42223         areadlink module, and ERANGE failure.
42224         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
42225         * tests/test-readlink.c (main): Relax test for AIX, HP-UX.
42226
42227         readlink: fix Solaris 9 bug with trailing slash
42228         * lib/readlink.c (rpl_readlink): Work around trailing slash bug.
42229         * m4/readlink.m4 (gl_FUNC_READLINK): Detect the bug.
42230         * doc/posix-functions/readlink.texi (readlink): Document this.
42231         * modules/readlink-tests: New test.
42232         * tests/test-readlink.c: Likewise.
42233
42234         readlink: fix cygwin 1.5.x bug with return type
42235         * m4/readlink.m4 (gl_FUNC_READLINK): Require correct signature.
42236         * lib/unistd.in.h (readlink): Use ssize_t.
42237         * lib/readlink.c (readlink): Likewise.
42238         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42239         * modules/unistd (Makefile.am): Substitute it.
42240         * lib/unistd.in.h (readlink): Declare replacement.
42241         * doc/posix-functions/readlink.texi (readlink): Document this.
42242
42243         symlink: use throughout gnulib
42244         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Omit symlink check.
42245         * lib/symlinkat.c (symlinkat) [!HAVE_SYMLINK]: Document why
42246         symlink is not used.
42247         * modules/symlinkat (Depends-on): Add symlink.
42248         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42249         * modules/canonicalize-tests (Depends-on): Likewise.
42250         * modules/lstat-tests (Depends-on): Likewise.
42251         * modules/openat-tests (Depends-on): Likewise.
42252         * modules/remove-tests (Depends-on): Likewise.
42253         * modules/rmdir-tests (Depends-on): Likewise.
42254         * modules/unlink-tests (Depends-on): Likewise.
42255         * tests/test-canonicalize-lgpl.c (symlink): Delete stub.
42256         * tests/test-canonicalize.c (symlink): Likewise.
42257         * tests/test-fstatat.c (symlink): Likewise.
42258         * tests/test-lstat.c (symlink): Likewise.
42259         * tests/test-remove.c (symlink): Likewise.
42260         * tests/test-rmdir.c (symlink): Likewise.
42261         * tests/test-unlink.c (symlink): Likewise.
42262         * tests/test-unlinkat.c (symlink): Likewise.
42263
42264         symlink: new module, for Solaris 9 bug
42265         * modules/symlink: New file.
42266         * m4/symlink.m4 (gl_FUNC_SYMLINK): Likewise.
42267         * lib/symlink.c: Likewise.
42268         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add defaults.
42269         * modules/unistd (Makefile.am): Substitute them.
42270         * lib/unistd.in.h (symlink): Declare replacement.
42271         * MODULES.html.sh (File system functions): Mention it.
42272         * doc/posix-functions/symlink.texi (symlink): Likewise.
42273         * modules/symlink-tests: New test.
42274         * tests/test-symlink.c: Likewise.
42275
42276 2009-09-23  Bruno Haible  <bruno@clisp.org>
42277
42278         * gnulib-tool (func_import): Add 'link-warning' to testsrelated_modules
42279         when needed.
42280         Test case: gnulib-tool --import --with-tests atexit inttypes.
42281         Reported by Pauli Miettinen <pauli.miettinen@cs.helsinki.fi>.
42282
42283 2009-09-23  Bruno Haible  <bruno@clisp.org>
42284
42285         * gnulib-tool (func_emit_tests_Makefile_am): Set uses_subdirs in a
42286         subcommand, not in a subshell.
42287
42288 2009-09-22  Eric Blake  <ebb9@byu.net>
42289
42290         unistd: sort replacement declarations
42291         * lib/unistd.in.h: Sort declarations.
42292
42293         open, openat: minor optimization
42294         * lib/open.c (open): If open succeeded, len is non-zero.
42295         * lib/openat.c (rpl_openat): Likewise.
42296
42297         link-follow: ensure correct result
42298         * m4/fcntl_h.m4 (gl_FCNTL_H): Clean up temporary file.
42299         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Likewise, and
42300         distinguish between possible failures.
42301
42302 2009-09-21  Eric Blake  <ebb9@byu.net>
42303
42304         fts: avoid compiler warning
42305         * lib/fts.c (dirent_inode_sort_may_be_useful)
42306         (leaf_optimization_applies) [!__linux__]: Mark unused parameters.
42307
42308 2009-09-19  Bruno Haible  <bruno@clisp.org>
42309
42310         * lib/progreloc.c (canonicalize_file_name): New declaration.
42311
42312 2009-09-19  Eric Blake  <ebb9@byu.net>
42313
42314         link: fix quoting
42315         * m4/link.m4 (gl_FUNC_LINK): Fix shell quoting.
42316
42317         openat: fix openat bugs on Solaris 9
42318         * lib/openat.c (rpl_openat): Work around Solaris 9 bug.
42319         * m4/openat.m4 (gl_FUNC_OPENAT): Also replace openat on Solaris.
42320         * modules/openat (Depends-on): Add open.
42321         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Provide new default.
42322         * modules/fcntl-h (Makefile.am): Substitute it.
42323         * lib/fcntl.in.h (openat): Declare replacement.
42324         * doc/posix-functions/openat.texi (openat): Document this.
42325
42326         openat: move fstatat and unlinkat into correct files
42327         * m4/openat.m4 (gl_FUNC_OPENAT): Adjust which files will be
42328         compiled.
42329         * lib/openat.c (fstatat, unlinkat): Move...
42330         * lib/fstatat.c (fstatat): ...into correct files.
42331         * lib/unlinkat.c (unlinkat): Likewise.
42332
42333         openat: fix unlinkat bugs on Solaris 9
42334         * lib/unlinkat.c (unlinkat): New file.
42335         * modules/openat (Depends-on): Add unlink.
42336         (Files): Distribute it.
42337         * m4/openat.m4 (gl_FUNC_OPENAT): Mark unlinkat for replacement if
42338         trailing slash behavior is broken.
42339         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
42340         * modules/unistd (Makefile.am): Substitute it.
42341         * lib/unistd.in.h (unlinkat): Declare replacement.
42342         * doc/posix-functions/unlinkat.texi (unlinkat): Document this.
42343
42344         openat: fix fstatat bugs on Solaris 9
42345         * lib/fstatat.c (rpl_fstatat): Copy recent fixes from lstat and
42346         stat.
42347         * doc/posix-functions/fstatat.texi (fstatat): Document this.
42348
42349         test-unlinkat: enhance test, to expose Solaris 9 bug
42350         * tests/test-unlink.c (main): Factor guts...
42351         * tests/test-unlink.h (test_rmdir_func): ...into new file.
42352         * tests/test-rmdir.h (test_rmdir_func): Add parameter.
42353         * tests/test-rmdir.c (main): Adjust caller.
42354         * tests/test-unlinkat.c (main): Likewise.  Add unlink tests.
42355         (unlinker): New helper function.
42356         (rmdirat): Enhance check.
42357         * modules/rmdir-tests (Depends-on): Add stdbool.
42358         * modules/unlink-tests (Depends-on): Likewise.
42359         (Files): Add test-unlink.h.
42360         * modules/openat-tests (Files): Likewise.
42361         (Depends-on): Add unlinkdir.
42362
42363         test-fstatat: new test, to expose Solaris 9 bugs
42364         * tests/test-stat.c (main): Factor guts...
42365         * tests/test-stat.h (test_stat_func): ...into new file.
42366         * tests/test-lstat.c (main): Factor guts...
42367         * tests/test-lstat.h (test_lstat_func): ...into new file.
42368         * tests/test-fstatat.c: New file.
42369         * modules/stat-tests (Files): Add test-stat.h.
42370         * modules/lstat-tests (Files): Add test-lstat.h.
42371         (Depends-on): Add stdbool.
42372         * modules/openat-tests (Depends-on): Add pathmax.
42373         (Files): Add test-lstat.h, test-stat.h, test-fstatat.c.
42374         (Makefile.am): Run new test.
42375
42376         remove: new module, for mingw and Solaris 9 bugs
42377         * modules/remove: New file.
42378         * lib/remove.c: Likewise.
42379         * m4/remove.m4 (gl_FUNC_REMOVE): Likewise.
42380         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add witnesses.
42381         * modules/stdio (Makefile.am): Use them.
42382         * lib/stdio.in.h (remove): Declare replacement.
42383         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42384         * doc/posix-functions/remove.texi (remove): Likewise.
42385         * modules/remove-tests: New test.
42386         * tests/test-remove.c: Likewise.
42387
42388         unlink: new module, for Solaris 9 bug
42389         * modules/unlink: New file.
42390         * lib/unlink.c: Likewise.
42391         * m4/unlink.m4 (gl_FUNC_UNLINK): Likewise.
42392         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
42393         * modules/unistd (Makefile.am): Use them.
42394         * lib/unistd.in.h (stat): Declare replacement.
42395         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42396         * doc/posix-functions/unlink.texi (unlink): Likewise.
42397         * modules/unlink-tests: New test.
42398         * tests/test-unlink.c: Likewise.
42399
42400         lstat: fix Solaris 9 bug
42401         * lib/lstat.c (lstat): Also check for trailing slash on
42402         non-symlink, non-directories.  Use stat module to simplify logic.
42403         * doc/posix-functions/lstat.texi (lstat): Document it.
42404         * modules/lstat-tests (Depends-on): Add errno, same-inode.
42405         (configure.ac): Check for symlink.
42406         * tests/test-lstat.c (main): Add more tests.
42407
42408         stat: add as dependency to other modules
42409         * modules/chown (Depends-on): Add stat.
42410         * modules/euidaccess (Depends-on): Likewise.
42411         * modules/fchdir (Depends-on): Likewise.
42412         * modules/isdir (Depends-on): Likewise.
42413         * modules/link (Depends-on): Likewise.
42414         * modules/lstat (Depends-on): Likewise.
42415         * modules/mkdir-p (Depends-on): Likewise.
42416         * modules/modechange (Depends-on): Likewise.
42417         * modules/open (Depends-on): Likewise.
42418         * modules/readlink (Depends-on): Likewise.
42419         * modules/same (Depends-on): Likewise.
42420
42421         stat: fix Solaris 9 bug
42422         * m4/stat.m4 (gl_FUNC_STAT): Detect Solaris 9 bug with trailing
42423         slash.
42424         * lib/stat.c (rpl_stat): Work around it.
42425         * doc/posix-functions/stat.texi (stat): Update documentation.
42426
42427         stat: new module, for mingw bug
42428         * modules/stat: New file.
42429         * lib/stat.c: Likewise.
42430         * m4/stat.m4 (gl_FUNC_STAT): Likewise.
42431         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42432         * modules/sys_stat (Makefile.am): Use them.
42433         * lib/sys_stat.in.h (stat): Declare replacement.
42434         * lib/openat.c (fstatat): Deal with lstat and stat being function
42435         macros.
42436         * modules/openat (Depends-on): Add inline.
42437         * MODULES.html.sh (systems lacking POSIX:2008): Mention module.
42438         * doc/posix-functions/stat.texi (stat): Likewise.
42439         * modules/stat-tests: New test.
42440         * tests/test-stat.c: Likewise.
42441
42442 2009-09-19  Jim Meyering  <meyering@redhat.com>
42443
42444         syntax-check: detect unnecessary inclusion of canonicalize.h
42445         * top/maint.mk (sc_prohibit_canonicalize_without_use): New rule.
42446
42447 2009-09-19  Eric Blake  <ebb9@byu.net>
42448
42449         canonicalize-lgpl: adjust clients to use correct header
42450         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42451         (gl_CANONICALIZE_LGPL): Use correct shell quoting.
42452         * modules/relocatable-prog-wrapper (Files): Drop canonicalize.h.
42453         * lib/fchdir.c (includes): Use <stdlib.h>, not "canonicalize.h".
42454         * lib/progreloc.c (includes): Likewise.
42455
42456 2009-09-19  Jim Meyering  <meyering@redhat.com>
42457
42458         test-posixtm.c: correct a comment
42459         * tests/test-posixtm.c: Correct first-line comment.
42460         Spotted by Eric Blake.
42461
42462 2009-09-16  Jim Meyering  <meyering@redhat.com>
42463
42464         posixtm-tests: make T const-correct; add a test case
42465         * tests/test-posixtm.c (T): Declare const.
42466         Add a test for -(2^31+1).
42467         Remove useless can-succeed-only-in-2002 test.
42468
42469         posixtm-tests: adjust the sole failing test
42470         * tests/test-posixtm.c: Correct 0000-01-01 00:00:00 test so that
42471         expected output matches what mktime now produces.  Cross-checked via
42472         erlang's calendar:datetime_to_gregorian_seconds({{1970,1,1},{0,0,0}})
42473
42474         posixtm: move #ifdef'd tests into a new module
42475         * lib/posixtm.c (posixtime): Remove #ifdef'd tests.  Move to...
42476         * tests/test-posixtm.c: ... this new file.
42477         * modules/posixtm-tests: New module.
42478
42479 2009-09-19  Eric Blake  <ebb9@byu.net>
42480
42481         openat: simplify use of at-func.c
42482         * lib/at-func.c (includes): Include prerequisites here, to
42483         simplify requirements on client files.
42484         * lib/openat-priv.h: Add double-inclusion guard.
42485         * lib/faccessat.c (includes): Simplify.
42486         * lib/fchmodat.c (includes): Likewise.
42487         * lib/fchownat.c (includes): Likewise.
42488         * lib/mkdirat.c (includes): Likewise.
42489         * lib/mkfifoat.c (includes): Likewise.
42490         * lib/symlinkat.c (includes): Likewise.
42491
42492         openat: allow return of fd 0
42493         * modules/chdir-long (Depends-on): Relax openat-safer to openat.
42494         * modules/save-cwd (Depends-on): Replace fcntl-safer with
42495         unistd-safer.
42496         * lib/chdir-long.c (includes): Replace "fcntl--.h" with
42497         <fcntl.h>; this module does not leak fds.
42498         * lib/openat.c (includes): Do not use "fcntl_safer"; plain openat
42499         must be allowed to return 0, leaving openat_safer to add the
42500         safety.
42501         (openat_permissive): Avoid writing to just-opened fd 2 if
42502         restoring the current directory fails.
42503         * lib/openat-die.c (openat_restore_fail): Add comment.
42504         * lib/save-cwd.c (includes): Make "fcntl--.h" conditional.
42505         (save_cwd): Guarantee safe fd, but without use of open_safer.
42506         * tests/test-openat.c: New test.
42507         * modules/openat-tests (Files, Makefile.am): Distribute and build
42508         new file.
42509
42510         relocatable-prog-wrapper: fix build
42511         * modules/relocatable-prog-wrapper (Files): Update name of
42512         canonicalize m4 file, broken on 2009-09-17.
42513         Reported by emad hajjar <aleppos@hotmail.com>.
42514
42515 2009-09-19  Bruno Haible  <bruno@clisp.org>
42516
42517         * lib/safe-alloc.h: Use the standard header with GPL copyright.
42518         * lib/safe-alloc.c: Likewise.
42519         Reported by Ian Beckwith <ianb@erislabs.net>.
42520
42521 2009-09-18  Bruno Haible  <bruno@clisp.org>
42522
42523         * gnulib-tool: Add advice to "cannot find configure.ac" error message.
42524         Reported by <erobles@sensacd.com.mx>.
42525
42526 2009-09-17  Eric Blake  <ebb9@byu.net>
42527
42528         canonicalize: in CAN_ALL_BUT_LAST, allow trailing slash
42529         * lib/canonicalize.c (canonicalize_filename_mode): Skip trailing
42530         slashes when checking if last component is missing.
42531         * tests/test-canonicalize.c (main): Test this.
42532
42533         canonicalize, canonicalize-lgpl: honor // if distinct from /
42534         * modules/canonicalize (Files): Add double-slash-root.m4.
42535         * modules/canonicalize-lgpl (Files): Likewise.
42536         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE)
42537         (gl_CANONICALIZE_LGPL_SEPARATE): Add dependency.
42538         * lib/canonicalize.c (DOUBLE_SLASH_IS_DISTINCT_ROOT): Provide
42539         fallback definition.
42540         (canonicalize_filename_mode): Use it to protect //.
42541         * lib/canonicalize-lgpl.c (DOUBLE_SLASH_IS_DISTINCT_ROOT)
42542         (__realpath): Likewise.
42543         * tests/test-canonicalize.c (main): Test this.
42544         * tests/test-canonicalize-lgpl.c (main): Likewise.
42545         * modules/canonicalize-tests (Depends-on): Add same-inode.
42546         * modules/canonicalize-lgpl-tests (Depends-on): Likewise.
42547
42548         canonicalize-lgpl: fix glibc bug with trailing slash
42549         * m4/canonicalize-lgpl.m4: Move contents...
42550         * m4/canonicalize.m4: ...here.
42551         (gl_CANONICALIZE_LGPL): Factor realpath check...
42552         (gl_FUNC_REALPATH_WORKS): ...into new macro.  Enhance to catch
42553         glibc 2.3.5 bug, fixed 2005-04-27.
42554         (gl_FUNC_CANONICALIZE_FILENAME_MODE): Use it.
42555         (gl_PREREQ_CANONICALIZE_LGPL): Inline...
42556         (gl_CANONICALIZE_LGPL_SEPARATE): ...into this macro.
42557         * modules/canonicalize-lgpl (Files): Manage file rename.
42558         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42559         * modules/stdlib (Makefile.am): Substitute witness.
42560         * lib/stdlib.in.h (canonicalize_file_name): Declare if replacement
42561         is needed.
42562         * lib/canonicalize-lgpl.c: Also compile if canonicalize_file_name
42563         replacement is required.
42564         * lib/canonicalize.c (canonicalize_file_name): Likewise.
42565         * doc/glibc-functions/canonicalize_file_name.texi
42566         (canonicalize_file_name): Document this.
42567         * doc/posix-functions/realpath.texi (realpath): Likewise.
42568
42569         canonicalize-lgpl: reject non-directory with trailing slash
42570         * lib/canonicalize-lgpl.c (__realpath): Synchronize with glibc.
42571         * tests/test-canonicalize-lgpl.c (main): Enhance test.  This
42572         catches failures in glibc 2.3.5.
42573         * tests/test-canonicalize.c (main): Likewise.
42574
42575         canonicalize-lgpl: use native realpath if it works
42576         * lib/canonicalize-lgpl.c (realpath): Guard with
42577         FUNC_REALPATH_WORKS.
42578         * lib/stdlib.in.h (realpath): Make declaration optional based on
42579         HAVE_REALPATH.
42580         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Check whether
42581         native realpath works.
42582         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide default.
42583         * modules/stdlib (Makefile.am): Substitute witness.
42584
42585         canonicalize, canonicalize-lgpl: use <stdlib.h>
42586         * modules/canonicalize-lgpl (Files): Drop canonicalize.h.
42587         (Include): Mention <stdlib.h>.
42588         (configure.ac): Mention functions we provide.
42589         * modules/canonicalize (configure.ac): Likewise.
42590         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL): Always replace
42591         realpath if canonicalize_file_name is missing.
42592         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Provide defaults.
42593         * modules/stdlib (Makefile.am): Substitute witnesses.
42594         * lib/stdlib.in.h (canonicalize_file_name, realpath): Declare.
42595         * lib/canonicalize-lgpl.c (includes): Adjust accordingly.
42596         * lib/canonicalize.h (canonicalize_file_name): Drop declaration.
42597         * NEWS: Document this.
42598         * doc/glibc-functions/canonicalize_file_name.texi
42599         (canonicalize_file_name): Likewise.
42600         * doc/posix-functions/realpath.texi (realpath): Likewise.
42601         * tests/test-canonicalize-lgpl.c (includes): Use <stdlib.h>.
42602
42603         test-canonicalize: consolidate into single C program
42604         * tests/test-canonicalize.sh: Delete; move setup into...
42605         * tests/test-canonicalize.c (main): ...the program, making it
42606         easier to run in debugger.  Add some tests.
42607         * modules/canonicalize-tests (Files): Remove unused file.
42608         (Depends-on): Add progname.
42609         (configure.ac, Makefile.am): Simplify.
42610
42611         test-canonicalize-lgpl: consolidate into single C program
42612         * tests/test-canonicalize-lgpl.sh: Delete; move setup into...
42613         * tests/test-canonicalize-lgpl.c (main): ...the program, making it
42614         easier to run in debugger.  Add some tests.
42615         * modules/canonicalize-lgpl-tests (Files): Remove unused file.
42616         (configure.ac, Makefile.am): Simplify.
42617
42618         canonicalize: avoid resolvepath
42619         * m4/canonicalize.m4 (gl_FUNC_CANONICALIZE_FILENAME_MODE): Delete
42620         unnecessary checks.
42621         * lib/canonicalize.c (includes): Simplify.
42622         (canonicalize_file_name): Drop resolvepath implementation.
42623         * modules/canonicalize (Depends-on): Drop filenamecat.
42624
42625         canonicalize: don't lose errno
42626         * lib/canonicalize.c (canonicalize_filename_mode): Protect errno
42627         over calls to free.
42628
42629         canonicalize: simplify errno handling
42630         * lib/canonicalize.c (__set_errno): Delete macro, and use direct
42631         assignment.
42632
42633         canonicalize, canonicalize-lgpl: update module dependencies
42634         * modules/canonicalize (Depends-on): Add extensions, lstat,
42635         pathmax, stdlib.
42636         (Files): Drop pathmax.h.
42637         (configure.ac): Adjust macro name.
42638         * modules/canonicalize-lgpl (Depends-on): Add errno, extensions,
42639         lstat, stdlib, sys_stat.
42640         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Rename...
42641         (gl_FUNC_CANONICALIZE_FILENAME_MODE): ...to this, and require
42642         extensions.
42643         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL)
42644         (gl_CANONICALIZE_LGPL_SEPARATE): Require extensions.
42645         (gl_PREREQ_CANONICALIZE_LGPL): Assume unistd.h.
42646         * lib/canonicalize.h (canonicalize_file_name): Use <stdlib.h>
42647         declaration, if available.
42648         * lib/canonicalize-lgpl.c [HAVE_READLINK]: Delete this condition;
42649         we can rely on the readlink module.
42650         (MAXSYMLINKS): Also consult SYMLOOP_MAX.
42651         (includes): Use <unistd.h> unconditionally.
42652
42653 2009-09-17  Eric Blake  <ebb9@byu.net>
42654
42655         maint: make Include sections of modules consistent
42656         * modules/alloca: Use only header name; no need to list #include.
42657         * modules/alloca-opt: Likewise.
42658         * modules/arpa_inet: Likewise.
42659         * modules/canon-host: Likewise.
42660         * modules/configmake: Likewise.
42661         * modules/dirent: Likewise.
42662         * modules/eealloc: Likewise.
42663         * modules/environ: Likewise.
42664         * modules/fchdir: Likewise.
42665         * modules/fcntl: Likewise.
42666         * modules/fcntl-h: Likewise.
42667         * modules/gethrxtime: Likewise.
42668         * modules/gettime: Likewise.
42669         * modules/ignore-value: Likewise.
42670         * modules/inet_ntop: Likewise.
42671         * modules/inet_pton: Likewise.
42672         * modules/inttypes: Likewise.
42673         * modules/isnand-nolibm: Likewise.
42674         * modules/isnanf-nolibm: Likewise.
42675         * modules/mbchar: Likewise.
42676         * modules/mbfile: Likewise.
42677         * modules/mbiter: Likewise.
42678         * modules/mbuiter: Likewise.
42679         * modules/netdb: Likewise.
42680         * modules/netinet_in: Likewise.
42681         * modules/nproc: Likewise.
42682         * modules/pagealign_alloc: Likewise.
42683         * modules/poll: Likewise.
42684         * modules/printf-frexp: Likewise.
42685         * modules/pthread: Likewise.
42686         * modules/putenv: Likewise.
42687         * modules/random_r: Likewise.
42688         * modules/relocatable-prog: Likewise.
42689         * modules/search: Likewise.
42690         * modules/select: Likewise.
42691         * modules/selinux-h: Likewise.
42692         * modules/settime: Likewise.
42693         * modules/signal: Likewise.
42694         * modules/size_max: Likewise.
42695         * modules/socklen: Likewise.
42696         * modules/ssize_t: Likewise.
42697         * modules/stdarg: Likewise.
42698         * modules/stdbool: Likewise.
42699         * modules/stddef: Likewise.
42700         * modules/stdint: Likewise.
42701         * modules/stdio: Likewise.
42702         * modules/stdlib: Likewise.
42703         * modules/string: Likewise.
42704         * modules/strings: Likewise.
42705         * modules/sys_file: Likewise.
42706         * modules/sys_ioctl: Likewise.
42707         * modules/sys_select: Likewise.
42708         * modules/sys_socket: Likewise.
42709         * modules/sys_stat: Likewise.
42710         * modules/sys_time: Likewise.
42711         * modules/sys_times: Likewise.
42712         * modules/sys_utsname: Likewise.
42713         * modules/sys_wait: Likewise.
42714         * modules/sysexits: Likewise.
42715         * modules/time: Likewise.
42716         * modules/times: Likewise.
42717         * modules/tmpfile: Likewise.
42718         * modules/trim: Likewise.
42719         * modules/unistd: Likewise.
42720         * modules/wchar: Likewise.
42721         * modules/wctype: Likewise.
42722
42723 2009-09-17  Bruno Haible  <bruno@clisp.org>
42724
42725         Make getdate.y compile on QNX and NetBSD 5 / i386.
42726         * m4/getdate.m4 (gl_GETDATE): Conditionally define
42727         TIME_T_FITS_IN_LONG_INT.
42728         * lib/getdate.y (long_time_t): New type.
42729         (relative_time): Change type of 'seconds' field to long_time_t.
42730         (get_date): Update types of local variables. Check against overflow
42731         during conversion from long_time_t to time_t.
42732         Reported by Matt Kraai <kraai@ftbfs.org>
42733         and Hasso Tepper <hasso@netbsd.org>.
42734
42735 2009-09-17  Bruno Haible  <bruno@clisp.org>
42736
42737         * modules/COPYING: Update copyright years.
42738         * modules/README: Likeiwse.
42739         * doc/gnulib-intro.texi (Copyright): Use a wildcard year.
42740         Reported by Ian Beckwith <ianb@erislabs.net>.
42741
42742 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42743
42744         * users.txt: Update references for gnuit package.
42745
42746 2009-09-17  Ian Beckwith  <ianb@erislabs.net>  (tiny change)
42747
42748         * m4/getdelim.m4: Fix typo in copyright line.
42749
42750 2009-09-17  Bruno Haible  <bruno@clisp.org>
42751
42752         * lib/atoll.c: Use the standard header with GPL copyright.
42753         * lib/argz.in.h: Likewise.
42754         * lib/glob.c: Likewise.
42755         * lib/glob-libc.h: Likewise.
42756         * lib/random_r.c: Likewise.
42757         * lib/siglist.h: Likewise.
42758         * lib/strsignal.c: Likewise.
42759         Reported by Ian Beckwith <ianb@erislabs.net>.
42760
42761 2009-09-17  Eric Blake  <ebb9@byu.net>
42762
42763         rmdir: ensure correct dependency order
42764         * m4/rmdir.m4 (gl_FUNC_RMDIR): Require unistd defaults.
42765
42766 2009-09-17  Bruno Haible  <bruno@clisp.org>
42767
42768         Disable assertion that fails on NetBSD 5 / i386.
42769         * lib/mktime.c (ydhms_diff): Disable assertion about time_t size.
42770         Reported by Sam Steingold <sds@gnu.org>
42771         and Hasso Tepper <hasso@netbsd.org>.
42772
42773 2009-09-16  Eric Blake  <ebb9@byu.net>
42774
42775         unlinkdir: port to mingw
42776         * m4/unlinkdir.m4 (gl_UNLINKDIR): Add mingw to list of platforms
42777         on which no one can unlink a directory.
42778
42779         stdlib: sort witness names
42780         * modules/stdlib (Makefile.am): Sort replacements.
42781         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
42782         * lib/stdlib.in.h: Likewise.
42783
42784         parse-duration-tests: avoid link failure
42785         * modules/parse-duration-tests (test_parse_duration_LDADD): Add
42786         LIBINTL.
42787         Reported by Tom G. Christensen.
42788
42789         openat-tests: ensure unlinkat behaves like rmdir
42790         * tests/test-rmdir.c (main): Factor guts...
42791         * tests/test-rmdir.h (test_rmdir_func): ...into new file.
42792         * modules/rmdir-tests (Files): Ship new file.
42793         * modules/openat-tests: New test.
42794         * tests/test-unlinkat.c: Likewise.
42795
42796         rmdir-errno: mark obsolete, it is unsafe for cross-compilation
42797         * modules/rmdir-errno (Status, Notice): Now obsolete.
42798
42799         rmdir: work around cygwin 1.5.x and mingw bugs
42800         * m4/rmdir.m4 (gl_FUNC_RMDIR): Detect the bugs.
42801         * lib/rmdir.c (rmdir): Work around it.
42802         * modules/rmdir (Status, Notice): No longer obsolete.
42803         (Files): Add dos.m4.
42804         (Depends-on): Add unistd.
42805         (configure.ac): Set witnesses.
42806         (License): Relax to LGPLv2+.
42807         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set defaults.
42808         * modules/unistd (Makefile.am): Substitute witnesses.
42809         * lib/unistd.in.h (rmdir): Declare replacement.
42810         * doc/posix-functions/rmdir.texi (rmdir): Document this.
42811         * modules/rmdir-tests: New tests.
42812         * tests/test-rmdir.c: Likewise.
42813
42814 2009-09-15  Eric Blake  <ebb9@byu.net>
42815
42816         fchdir: improve use of replacement functions
42817         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Set appropriate witnesses.
42818         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add REPLACE_FSTAT.
42819         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add REPLACE_OPENDIR,
42820         REPLACE_CLOSEDIR.
42821         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_DUP.
42822         * modules/sys_stat (Makefile.am): Substitute correct witness.
42823         * modules/dirent (Makefile.am): Likewise.
42824         * modules/unistd (Makefile.am): Likewise.
42825         * lib/dirent.in.h (opendir, closedir): Use better witnesses.
42826         * lib/unistd.in.h (dup): Likewise.
42827         * lib/sys_stat.in.h (fstat): Likewise.
42828
42829         maint: ignore gnulib-tool temp files
42830         * .gitignore: Ignore files created during gnulib-tool --test.
42831
42832 2009-09-13  Jim Meyering  <meyering@redhat.com>
42833
42834         posixtm: don't reject a time that specify "60" as the number of seconds
42835         * lib/posixtm.c (posixtime): The code to reject invalid dates
42836         would also reject a time specified with the .60 suffix.
42837         But POSIX allows that, in order to accommodate leap seconds.
42838         So don't reject it.
42839         (main): Adjust tests accordingly.
42840         * modules/posixtm (Depends-on): Add stpcpy.
42841
42842 2009-09-11  Jim Meyering  <meyering@redhat.com>
42843
42844         announce-gen: include [$release_type] in emitted Subject:
42845         * build-aux/announce-gen (get_tool_versions): Include [$release_type],
42846         e.g., [stable] in the emitted Subject: line.
42847
42848 2009-09-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
42849
42850         Remove obsolete macros from several modules.
42851         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Replace
42852         obsolete Autoconf macros with their modern counterparts.
42853         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): Likewise.
42854         * m4/gc-camellia.m4 (gl_GC_CAMELLIA): Likewise.
42855         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Likewise.
42856         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
42857         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Likewise.
42858         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
42859         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
42860         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
42861         * m4/poll.m4 (gl_FUNC_POLL): Likewise.
42862         * m4/readline.m4 (gl_FUNC_READLINE): Likewise.
42863         * m4/round.m4 (gl_FUNC_ROUND): Likewise.
42864         * m4/roundf.m4 (gl_FUNC_ROUNDF): Likewise.
42865         * m4/select.m4 (gl_FUNC_SELECT): Likewise.
42866         * m4/sockets.m4 (gl_SOCKETS): Likewise.
42867         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Likewise.
42868         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Likewise.
42869         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
42870         * m4/time_r.m4 (gl_TIME_R): Likewise.
42871         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Likewise.
42872         * m4/vararrays.m4 (AC_C_VARARRAYS): Likewise.
42873         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
42874
42875         Fix copyright header in build-aux scripts.
42876         * build-aux/git-version-gen: Fix copyright header to match GPLv3
42877         recommendation.
42878         * build-aux/ncftpput-ftp: Likewise.
42879         * build-aux/update-copyright: Likewise.
42880
42881 2009-09-09  Eric Blake  <ebb9@byu.net>
42882
42883         test-link: allow Linux choice of errno
42884         * tests/test-link.c (main): Relax test for alternate error.
42885
42886         strndup: fix improper m4 caching
42887         * m4/strndup.m4 (gl_FUNC_STRNDUP): Rework to avoid side effects
42888         inside AC_CACHE_CHECK.  Use REPLACE_STRNDUP, not HAVE_STRNDUP.
42889         (gl_PREREQ_STRNDUP): Delete.
42890         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Update default.
42891         * modules/string (Makefile.am): Substitute it.
42892         * lib/string.in.h (strndup): Modernize prototype.
42893
42894         getcwd: port to mingw
42895         * m4/getcwd.m4 (gl_FUNC_GETCWD): Mingw directories are very
42896         different from the POSIX assumptions made throughout the getcwd
42897         module; fortunately, the mingw getcwd does not need replacement.
42898         (gl_FUNC_GETCWD_NULL): Skip test on mingw.
42899         * modules/getcwd-tests: New test.
42900         * tests/test-getcwd.c: Likewise.
42901
42902         link: fix platform bugs
42903         * m4/link.m4 (gl_FUNC_LINK): Detect Solaris and Cygwin bugs.
42904         * lib/link.c (link): Work around them.  Fix related mingw bug.
42905         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add REPLACE_LINK.
42906         * modules/unistd (Makefile.am): Substitute it.
42907         * lib/unistd.in.h (link): Declare replacement.
42908         * doc/posix-functions/link.texi (link): Document this.
42909         * modules/link (Depends-on): Add strdup-posix, sys_stat.
42910
42911         test-link: consolidate into single C program, test more cases
42912         * tests/test-link.sh: Delete.
42913         * tests/test-link.c: Test more error conditions.  Exposes bugs on
42914         at least Cygwin and Solaris.
42915         * modules/link-tests (Files): Remove unused file.
42916         (Depends-on): Add errno, sys_stat.
42917         (Makefile.am): Simplify.
42918
42919 2009-09-08  Bruno Haible  <bruno@clisp.org>
42920
42921         Work around towlower, towupper bug on mingw.
42922         * lib/wctype.in.h (towlower, towupper) [__MINGW32__]: New replacements.
42923         * m4/wctype.m4 (gl_WCTYPE_H): Replace <wctype.h> also on mingw.
42924         * doc/posix-functions/towlower.texi: Mention the mingw bug.
42925         * doc/posix-functions/towupper.texi: Likewise.
42926         Reported by Eric Blake.
42927
42928 2009-09-08  Jim Meyering  <meyering@redhat.com>
42929
42930         build: don't try to run autoheader if we don't use it
42931         * build-aux/bootstrap: Define AUTOHEADER=true when AC_CONFIG_HEADERS
42932         is not used in configure.ac.
42933
42934 2009-09-08  Eric Blake  <ebb9@byu.net>
42935
42936         euidaccess: fix compilation error
42937         * lib/euidaccess.c (includes): Add <fcntl.h>, for AT_EACCESS.
42938
42939         rawmemchr: relax license
42940         * modules/rawmemchr (License): Derived from glibc, so LGPLv2+ is
42941         okay.
42942         Reported by Jim Meyering.
42943
42944         mkfifoat: new module
42945         * modules/mkfifoat: New file.
42946         * lib/mkfifoat.c: Likewise.
42947         * m4/mkfifoat.m4 (gl_FUNC_MKFIFOAT): Likewise.
42948         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Add witnesses.
42949         * modules/sys_stat (Makefile.am): Use them.
42950         * lib/sys_stat.in.h (mkfifoat, mknodat): Declare them.
42951         * MODULES.html.sh (File system functions): Mention module.
42952         * doc/posix-functions/mkfifoat.texi (mkfifoat): Likewise.
42953         * doc/posix-functions/mknodat.texi (mknodat): Likewise.
42954         * modules/mkfifoat-tests: New test.
42955         * tests/test-mkfifoat.c: Likewise.
42956
42957         strchrnul: relax license
42958         * modules/strchrnul (License): Derived from glibc, so LGPLv2+ is
42959         okay.
42960         Reported by Jim Meyering.
42961
42962 2009-09-08  Eric Blake  <ebb9@byu.net>
42963
42964         fstatat: fix compilation on Solaris
42965         * lib/fstatat.c (includes): Add fcntl.h.
42966         Reported by Pádraig Brady.
42967
42968 2009-09-07  Eric Blake  <ebb9@byu.net>
42969
42970         rename: modernize replacement
42971         * modules/rename (Depends-on): Add stdio.
42972         (configure.ac): Declare witness.
42973         * m4/rename.m4 (gl_FUNC_RENAME): Ensure dependency order, and let
42974         stdio take care of replacement.
42975         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
42976         * modules/stdio (Makefile.am): Substitute them.
42977         * lib/stdio.in.h (rename): Declare replacement.
42978         * lib/rename.c (includes): Allow cross-compilation to non-windows
42979         machines.
42980         * doc/posix-functions/rename.texi (rename): Improve
42981         documentation.
42982
42983         stdio: sort witness names
42984         * modules/stdio (Makefile.am): Sort replacements.
42985         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
42986         * lib/stdio.in.h: Likewise.
42987
42988         getcwd: minor cleanups
42989         * lib/getcwd.c (AT_FDCWD): Delete; rely on <fcntl.h> instead.
42990         (is_ENAMETOOLONG): Delete; ENAMETOOLONG is portable.
42991
42992         openat: provide more convenience names
42993         * modules/faccessat (configure.ac): Add C witness.
42994         * lib/unistd.in.h (readlinkat): Fix typo.
42995         * lib/openat.h (statat, lstatat, accessat, euidaccessat): New
42996         convenience wrappers.
42997         * top/maint.mk (sc_prohibit_openat_without_use): Allow these
42998         wrappers in syntax checks.
42999
43000 2009-09-06  Eric Blake  <ebb9@byu.net>
43001
43002         doc: fix comments in recent patches
43003         * lib/faccessat.c: Mention correct function.
43004         * lib/fchmodat.c: Likewise.
43005         * lib/fchownat.c: Likewise.
43006         * lib/symlinkat.c: Likewise.
43007         * doc/posix-headers/fcntl.texi (fcntl.h): Cygwin 1.7 has AT_*
43008         constants.
43009
43010         faccessat, symlinkat: continue cleanup of previous patch
43011         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Ensure dependency order.
43012         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43013         * modules/unistd (Makefile.am): Substitute GNULIB_READLINKAT.
43014         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Offer GNULIB_READLINKAT.
43015         * modules/symlinkat (configure.ac): Set GNULIB_READLINKAT.
43016         * lib/unistd.in.h (readlinkat): Declare if GNULIB_READLINKAT is
43017         set.
43018
43019 2009-09-06  Bruno Haible  <bruno@clisp.org>
43020
43021         * lib/sys_stat.in.h (fchmodat): Declare if GNULIB_FCHMODAT is set.
43022         (fstatat): Declare if GNULIB_FSTATAT is set.
43023         (mkdirat): Declare if GNULIB_MKDIRAT is set.
43024         * lib/unistd.in.h (fchownat): Declare if GNULIB_FCHOWNAT is set.
43025         (unlinkat): Declare if GNULIB_UNLINKAT is set.
43026         * modules/fcntl-h (Files): Remove m4/openat.m4.
43027         * modules/sys_stat (Files): Remove m4/openat.m4.
43028         (Makefile.am): Substitute GNULIB_FCHMODAT, GNULIB_FSTATAT,
43029         GNULIB_MKDIRAT instead of GNULIB_OPENAT.
43030         * modules/unistd (Files): Remove m4/openat.m4.
43031         (Makefile.am): Substitute GNULIB_FCHOWNAT, GNULIB_UNLINKAT instead of
43032         GNULIB_OPENAT.
43033         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Initialize GNULIB_OPENAT,
43034         HAVE_OPENAT here. Don't require gl_OPENAT_DEFAULTS.
43035         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize
43036         GNULIB_FCHMODAT, GNULIB_FSTATAT, GNULIB_MKDIRAT, HAVE_FCHMODAT,
43037         HAVE_FSTATAT, HAVE_MKDIRAT, REPLACE_FSTATAT here. Don't require
43038         gl_OPENAT_DEFAULTS.
43039         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_FCHOWNAT,
43040         GNULIB_UNLINKAT, HAVE_FCHOWNAT, HAVE_UNLINKAT, REPLACE_FCHOWNAT here.
43041         Don't require gl_OPENAT_DEFAULTS.
43042         * m4/openat.m4 (gl_FUNC_OPENAT): Require gl_FCNTL_H_DEFAULTS,
43043         gl_SYS_STAT_H_DEFAULTS, gl_UNISTD_H_DEFAULTS. Set GNULIB_FCHMODAT,
43044         GNULIB_FSTATAT, GNULIB_MKDIRAT, GNULIB_FCHOWNAT, GNULIB_UNLINKAT.
43045         (gl_OPENAT_DEFAULTS): Remove macro.
43046
43047 2009-09-06  Bruno Haible  <bruno@clisp.org>
43048
43049         * modules/openat (configure.ac): Remove unneeded witness.
43050
43051 2009-09-06  Bruno Haible  <bruno@clisp.org>
43052
43053         Set errno to ENOSYS when a function is entirely unsupported.
43054         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Set errno to ENOSYS instead of
43055         EOPNOTSUPP.
43056         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43057         * modules/chown (Depends-on): Remove errno.
43058
43059 2009-09-06  Bruno Haible  <bruno@clisp.org>
43060
43061         * doc/posix-headers/fcntl.texi (AT_*): Mention affected platforms.
43062
43063 2009-09-06  Bruno Haible  <bruno@clisp.org>
43064
43065         * lib/sys_stat.in.h: Fix preprocessor command indentation.
43066
43067 2009-09-06  Ben Pfaff  <blp@gnu.org>
43068             Bruno Haible  <bruno@clisp.org>
43069
43070         Work around a glibc bug in strtok_r.
43071         * lib/string.in.h (strtok_r): Replace if REPLACE_STRTOK_R is set.
43072         Undefine if UNDEFINE_STRTOK_R is set.
43073         * lib/strtok_r.c (strtok_r, __strtok_r) [!_LIBC]: Don't undefine.
43074         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
43075         REPLACE_STRTOK_R and UNDEFINE_STRTOK_R.
43076         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Check against the glibc bug.
43077         * modules/string (Makefile.am): Substitute REPLACE_STRTOK_R,
43078         UNDEFINE_STRTOK_R.
43079         * doc/posix-functions/strtok_r.texi: Mention the glibc 2.7 bug.
43080
43081 2009-09-06  Sergey Poznyakoff  <gray@gnu.org.ua>
43082
43083         exclude: minor fix
43084         * lib/exclude.c: Include wctype.h
43085
43086 2009-09-06  Akim Demaille  <demaille@gostai.com>
43087
43088         bootstrap: improve error message
43089         * build-aux/bootstrap (find_tool): Upon failure, report the list
43090         of candidates.
43091         Honor the initial value of the envvar.
43092
43093 2009-09-05  Eric Blake  <ebb9@byu.net>
43094
43095         symlinkat: new module
43096         * modules/symlinkat: New file.
43097         * lib/symlinkat.c: Likewise.
43098         * m4/symlinkat.m4 (gl_FUNC_SYMLINKAT): Likewise.
43099         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witnesses.
43100         * modules/unistd (Makefile.am): Use them.
43101         * lib/unistd.in.h (symlinkat, readlinkat): Declare them.
43102         (faccessat) [GNULIB_POSIXCHECK]: Fix typo.
43103         * lib/at-func.c (FUNC_RESULT): New macro, defaulting to int.
43104         * MODULES.html.sh (File system functions): Mention module.
43105         * doc/posix-functions/symlinkat.texi (symlinkat): Likewise.
43106         * doc/posix-functions/readlinkat.texi (readlinkat): Likewise.
43107         * modules/symlinkat-tests: New test.
43108         * tests/test-symlinkat.c: Likewise.
43109
43110         test-openat-safer: add more checks
43111         * tests/test-openat-safer.c (main): Check more code paths.
43112
43113 2009-09-05  Jim Meyering  <meyering@redhat.com>
43114
43115         syntax-check: detect unnecessary inclusion of openat.h
43116         * top/maint.mk (sc_prohibit_openat_without_use): New rule.
43117
43118 2009-09-05  Bruno Haible  <bruno@clisp.org>
43119
43120         Support towlower, towupper.
43121         * doc/posix-functions/towlower.texi: Mention module wctype.
43122         * doc/posix-functions/towupper.texi: Likewise.
43123         * lib/wctype.in.h (towlower, towupper): New functions.
43124         * tests/test-wctype.c: Include stdio.h, stdlib.h.
43125         (ASSERT): New macro.
43126         (e): New variable.
43127         (main): Test also towlower, towupper. Test WEOF argument.
43128         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
43129
43130 2009-09-05  Bruno Haible  <bruno@clisp.org>
43131
43132         Fix conversion behaviour when the input is invalid.
43133         * lib/striconveh.c (mem_cd_iconveh_internal): Fix storing of question
43134         mark occurring in first pass of indirect conversion.
43135         * tests/test-striconveh.c (main): Test conversion of invalid ASCII
43136         input.
43137         Found by clang's static analyzer.
43138
43139 2009-09-05  Bruno Haible  <bruno@clisp.org>
43140
43141         * tests/test-striconveh.c (main): Test indirect conversion on platforms
43142         where direct conversion is possible.
43143
43144 2009-09-04  Eric Blake  <ebb9@byu.net>
43145
43146         openat: fail with ENOENT on empty name
43147         * lib/openat-proc.c (openat_proc_name): Special-case the empty
43148         buffer.
43149
43150         link-follow: fix logic bug in prior patch
43151         * m4/link-follow.m4 (gl_FUNC_LINK_FOLLOWS_SYMLINK): Fix bug that
43152         reversed sense of yes and no in prior patch.  Avoid confusing
43153         compilation failure with desired semantics.
43154
43155         link-follow: accommodate mingw and cross-compilation
43156         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Rename...
43157         (gl_FUNC_LINK_FOLLOWS_SYMLINK): ...to this.  Change
43158         cross-compilation results to -1, to make linkat easier to
43159         implement when cross-compiling.  Trivially support mingw.
43160         * modules/link-follow (configure.ac): Call new name.
43161         * NEWS: Mention this.
43162
43163 2009-09-03  Eric Blake  <ebb9@byu.net>
43164
43165         faccessat: compile replacement
43166         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Build replacement when
43167         needed.
43168
43169         fts: fix compilation error
43170         * lib/fts.c (includes): Re-add "openat.h", for
43171         openat_needs_fchdir.
43172
43173         faccessat: new module
43174         * modules/faccessat: New file.
43175         * lib/faccessat.c: Likewise.
43176         * m4/faccessat.m4 (gl_FUNC_FACCESSAT): Likewise.
43177         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
43178         * modules/unistd (Makefile.am): Use it.
43179         * lib/unistd.in.h (faccessat): Declare it.
43180         (F_OK, X_OK, W_OK, R_OK): Provide definitions.
43181         * lib/fcntl.in.h (AT_SYMLINK_FOLLOW, AT_EACCESS): Likewise.
43182         * MODULES.html.sh (File system functions): Mention it.
43183         * doc/posix-functions/faccessat.texi (faccessat): Likewise.
43184         * doc/posix-headers/fcntl.texi (fcntl.h): Likewise.
43185
43186         euidaccess: prefer POSIX over non-standard implementation
43187         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Check for faccessat.
43188         * lib/euidaccess.c (euidaccess): Use it if available.
43189
43190         openat: make template easier to use
43191         * lib/at-func.c (CALL_FUNC): Allow AT_FUNC_USE_F1_COND and
43192         AT_FUNC_F2 to be undefined.
43193         (VALIDATE_FLAG): New macro; use it to reject bad flags.
43194         (AT_FUNC_USE_F1_COND): Change sense to just flag bit.
43195         * lib/fchmodat.c (AT_FUNC_USE_F1_COND): Adjust.
43196         * lib/fchownat.c (AT_FUNC_USE_F1_COND): Likewise.
43197         * lib/openat.c (AT_FUNC_USE_F1_COND) [fstatat, unlinkat]:
43198         Likewise.
43199         * lib/mkdirat.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND): Delete.
43200         * lib/selinux-at.c (AT_FUNC_F2, AT_FUNC_USE_F1_COND)
43201         [getfileconat, lgetfileconat, setfileconat, lsetfileconat]:
43202         Likewise.
43203
43204         openat: declare in POSIX headers
43205         * NEWS: Mention this.
43206         * modules/openat (configure.ac): Declare witnesses.
43207         (Depends-on): Add fcntl-h, sys_stat, unistd.
43208         (Include): Mention correct headers.
43209         * modules/fcntl-h (Depends-on): Add link-warning.
43210         (Files): Add openat.m4.
43211         (Makefile.am): Substitute witnesses.
43212         * modules/sys_stat (Files, Makefile.am): Likewise.
43213         * modules/unistd (Files, Makefile.am): Likewise.
43214         * m4/openat.m4 (gl_FUNC_OPENAT, gl_FUNC_FCHOWNAT): Set witnesses.
43215         (gl_OPENAT_DEFAULTS): New macro.
43216         * m4/fcntl_h.m4 (gl_FCNTL_H_DEFAULTS): Use it.
43217         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Likewise.
43218         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Likewise.
43219         (SYS_STAT_H): Remove unused variable.
43220         * doc/posix-headers/fcntl.texi (fcntl.h): Update content.
43221         * lib/fcntl--.h (includes): Remove unneeded header.
43222         * lib/openat-safer.c (includes): Likewise.
43223         * lib/openat.h (AT_FDCWD, AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR)
43224         (openat, fstatat, unlinkat, mkdirat, fchmodat, fchownat): Move to
43225         appropriate headers.
43226         (__OPENAT_PREFIX): Delete.
43227         * lib/fcntl.in.h (openat): Provide declaration.
43228         (AT_FDCWD): Fix Solaris bug.
43229         (AT_SYMLINK_NOFOLLOW, AT_REMOVEDIR): Provide macros.
43230         * lib/sys_stat.in.h (fstatat, mkdirat): Provide declaration.
43231         * lib/fchmodat.c (includes):  Adjust to find declaration.
43232         * lib/fchownat.c (includes): Likewise.
43233         * lib/mkdirat.c (includes): Likewise.
43234         * lib/fstatat.c (includes): Likewise.  Ensure original fstatat is
43235         still visible.
43236
43237 2009-09-02  Eric Blake  <ebb9@byu.net>
43238
43239         errno: use consistently
43240         * lib/c-stack.c (ENOTSUP): <errno.h> guarantees a definition.
43241         * lib/canonicalize-lgpl.c (ENAMETOOLONG): Likewise.
43242         * lib/canonicalize.c (ELOOP): Likewise.
43243         * lib/inet_ntop.c (EAFNOSUPPORT): Likewise.
43244         * lib/inet_pton.c (EAFNOSUPPORT): Likewise.
43245         * lib/lchown.c (EOPNOTSUPP): Likewise.
43246         * lib/openat-priv.h (ENOSYS, EOPNOTSUPP): Likewise.
43247         * lib/savewd.c (ESTALE): Likewise.
43248         * lib/settime.c (ENOSYS): Likewise.
43249         * lib/utimens.c (ENOSYS): Likewise.
43250         * lib/xgethostname.c (ENAMETOOLONG): Likewise.
43251         * lib/chdir-safer.c (ELOOP): Likewise.
43252         (chdir_no_follow): Use HAVE_READLINK, not ELOOP, as witness.
43253         * modules/c-stack (Depends-on): Add errno.
43254         * modules/canonicalize (Depends-on): Likewise.
43255         * modules/chdir-safer (Depends-on): Likewise.
43256         * modules/fdopendir (Depends-on): Likewise.
43257         * modules/inet_ntop (Depends-on): Likewise.
43258         * modules/inet_pton (Depends-on): Likewise.
43259         * modules/lchown (Depends-on): Likewise.
43260         * modules/openat (Depends-on): Likewise.
43261         * modules/savewd (Depends-on): Likewise.
43262         * modules/settime (Depends-on): Likewise.
43263         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Check for readlink.
43264
43265         fts: avoid leaking fds
43266         * modules/fts (Depends-on): Add cloexec.
43267         * lib/fts.c (opendirat, diropen, fts_build): Set close-on-exec
43268         flag.
43269
43270         fts: make directory fds more robust
43271         * lib/fts.c (O_DIRECTORY): Let <fcntl.h> take care of this.
43272         (opendirat): Specify O_DIRECTORY, and add fallbacks for safety.
43273
43274         backupfile, chdir-long, fts, savedir: make safer
43275         * lib/backupfile.c (includes): Use "dirent--.h", since
43276         numbered_backup can write to stderr during readdir.
43277         * lib/savedir.c (includes): Likewise.
43278         * lib/chdir-long.c (includes): Use "fcntl--.h", since openat
43279         emulation can write to stderr on failure.
43280         * lib/fts.c (includes) [!_LIBC]: Likewise for opendir and openat.
43281         * lib/getcwd.c: Document why opendir_safer is unused.
43282         * lib/glob.c: Likewise.
43283         * lib/scandir.c: Likewise.
43284         * lib/openat-proc.c: Likewise, for open_safer.
43285         * modules/backupfile (Depends-on): Add dirent-safer.
43286         * modules/savedir (Depends-on): Likewise.
43287         * modules/fts (Depends-on): Add dirent-safer and openat-safer.
43288         * modules/chdir-long (Depends-on): Add openat-safer.
43289
43290         openat-safer: new module
43291         * modules/openat-safer: New file.
43292         * lib/openat-safer.c: Likewise.
43293         * m4/fcntl-safer.m4 (gl_OPENAT_SAFER): New macro.
43294         * lib/fcntl-safer.h (openat_safer): Declare.
43295         * lib/fcntl--.h (openat): Override.
43296         * MODULES.html.sh (File descriptor based I/O): Mention it.
43297         * lib/openat.h: Add double-inclusion guards.
43298         * lib/openat.c (includes): Only include "fcntl-safer.h", not
43299         "fcntl--.h", so we can implement openat.
43300         * modules/openat-safer-tests: New test.
43301         * tests/test-openat-safer.c: New file.
43302
43303         dirent-safer: new module
43304         * modules/dirent-safer: New file.
43305         * lib/dirent--.h: Likewise.
43306         * lib/dirent-safer.h: Likewise.
43307         * lib/opendir-safer.c: Likewise.
43308         * m4/dirent-safer.m4: Likewise.
43309         * MODULES.html.sh (Enhancements for POSIX:2008): Mention it.
43310         * modules/dirent-safer-tests: New test.
43311         * tests/test-dirent-safer.c: New file.
43312         * lib/fdopendir.c (includes): Ensure fdopendir is also safe.
43313
43314         fdopendir: optimize on mingw
43315         * lib/unistd.in.h (_gl_directory_name): New prototype.
43316         * lib/fchdir.c (_gl_directory_name): Implement it.
43317         (fchdir): Use it to simplify implementation.
43318         * lib/fdopendir.c (fdopendir) [REPLACE_FCHDIR]: Use metadata from
43319         fchdir, when available, to avoid calling [f]chdir().
43320
43321         fdopendir: split into its own module
43322         * lib/openat.c (fdopendir): Move...
43323         * lib/fdopendir.c: ...into new file.
43324         * modules/fdopendir: New module.
43325         * m4/fdopendir.m4 (gl_FUNC_FDOPENDIR): New file.
43326         * modules/openat (Depends-on): Add fdopendir.
43327         * m4/openat.m4 (gl_FUNC_OPENAT): No longer need to check for
43328         fdopendir here.
43329         * modules/savedir (Depends-on): Only need fdopendir, not full
43330         openat.
43331         * lib/savedir.c (include): Use <dirent.h>, not "openat.h".
43332         * lib/openat.h (fdopendir): Drop prototype.
43333         * lib/dirent.in.h (fdopendir): Provide prototype.
43334         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Add replacements.
43335         * modules/dirent (Makefile.am): Substitute them.
43336         * MODULES.html.sh (File system functions): Mention it.
43337         * doc/posix-functions/fdopendir.texi (fdopendir): Likewise.
43338         * modules/fdopendir-tests: New file.
43339         * tests/test-fdopendir.c: Likewise.
43340
43341         fchdir: use more consistent macro convention
43342         * lib/fcntl.in.h (_gl_register_fd): Move declaration to unistd.
43343         * lib/sys_stat.in.h (rpl_fstat): Declare via make-time
43344         REPLACE_FCHDIR, rather than relying on config.h macros.
43345         * lib/unistd.in.h (fchdir): Move all fchdir internal declarations
43346         inside a single make-time REPLACE_FCHDIR block, rather than using
43347         the config.h FCHDIR_REPLACEMENT.
43348         * m4/fchdir.m4 (gl_FUNC_FCHDIR): REPLACE_FCHDIR was already
43349         AC_SUBST'd, also AC_DEFINE it.  Don't define FCHDIR_REPLACEMENT.
43350         Manage fstat replacement.
43351         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Pick up
43352         REPLACE_FCHDIR.
43353         * modules/sys_stat (Files): Add m4/unistd_h.m4.
43354         (Makefile.am): Substitute REPLACE_FCHDIR.
43355         * lib/close.c (rpl_close): Use REPLACE_FCHDIR, not
43356         FCHDIR_REPLACEMENT.
43357         * lib/dup-safer.c (dup_safer): Likewise.
43358         * lib/dup2.c (rpl_dup2): Likewise.
43359         * lib/dup3.c (rpl_dup3): Likewise.
43360         * lib/open.c (rpl_open): Likewise.
43361
43362         fchdir: simplify error handling, and support dup3
43363         * modules/fchdir (Depends-on): Use strdup-posix, not strdup.  Add
43364         stdbool, malloc-posix, realloc-posix.
43365         * lib/fchdir.c (struct dir_info_t): Delete saved_errno.
43366         (ensure_dirs_slot): Return false on allocation failure.
43367         (rpl_dup2): Delete.
43368         (_gl_register_dup): New function.
43369         (_gl_unregister_fd, rpl_opendir, rpl_dup): Update callers.
43370         (_gl_register_fd): Close fd on allocation failure.
43371         * lib/fcntl.in.h (_gl_register_fd): Update signature.
43372         * lib/unistd.in.h (_gl_register_dup) [FCHDIR_REPLACEMENT]: New
43373         prototype.
43374         (rpl_dup2_fchdir): Delete prototype.
43375         * lib/open.c (open): Update caller.
43376         * lib/dup2.c (dup2): Track fchdir metadata.
43377         * lib/dup3.c (dup3): Likewise.
43378         * m4/dup2.m4 (gl_REPLACE_DUP2): New macro.
43379         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Use it.
43380
43381 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43382
43383         * gnulib-tool (func_create_testdir, func_create_megatestdir): Use
43384         AC_CONFIG_HEADERS instead of AM_CONFIG_HEADER. Use AC_CONFIG_FILES and
43385         don't pass arguments to AC_OUTPUT.
43386
43387 2009-09-02  Bruno Haible  <bruno@clisp.org>
43388
43389         * modules/mkdtemp (License): Relicense under LGPLv2+.
43390         Reported by Paolo Bonzini.
43391
43392 2009-09-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
43393
43394         Replace uses of obsolete autoconf macros in Jim's modules.
43395         The Autoconf macros AC_TRY_CPP, AC_TRY_COMPILE, AC_TRY_LINK and
43396         AC_TRY_RUN have been obsolete since Autoconf 2.55, and each use
43397         can evoke a warning from autoconf when run with -Wobsolete
43398         enabled.  They were declared obsolete for good reasons (see
43399         the `AC_FOO_IFELSE vs AC_TRY_FOO' node in the Autoconf manual,
43400         recently renamed to `AC_ACT_IFELSE vs AC_TRY_ACT'), and we
43401         should not continue using the deprecated macros.
43402         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Replace
43403         obsolete Autoconf macros with modern counterparts.
43404         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
43405         * m4/dos.m4 (gl_AC_DOS): Likewise.
43406         * m4/fpending.m4 (gl_FUNC_FPENDING): Likewise.
43407         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Likewise.
43408         * m4/getloadavg.m4 (gl_PREREQ_GETLOADAVG): Likewise.
43409         * m4/jm-winsz1.m4 (gl_WINSIZE_IN_PTEM): Likewise.
43410         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Likewise.
43411         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Likewise.
43412         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Likewise.
43413         * m4/mode_t.m4 (gl_PROMOTED_TYPE_MODE_T): Likewise.
43414         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
43415         Likewise.
43416         * m4/rename.m4 (gl_FUNC_RENAME): Likewise.
43417         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
43418         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Likewise.
43419         * m4/st_dm_mode.m4 (AC_STRUCT_ST_DM_MODE): Likewise.
43420         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
43421         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
43422
43423 2009-09-01  Eric Blake  <ebb9@byu.net>
43424
43425         fchdir: fix off-by-one bug in previous patch
43426         * lib/fchdir.c (rpl_fstat): Use correct bounds.
43427         (_gl_unregister_fd): Delete useless if.
43428
43429 2009-09-01  Daniel P. Berrange  <berrange@redhat.com>
43430
43431         maint.mk: sort the list of syntax-check rules
43432         * top/maint.mk (syntax-check-rules): Sort syntax-check rules, so it's
43433         easier to get a sense of progress when the rules are run sequentially
43434         and take a long time.
43435
43436 2009-09-01  Simon Josefsson  <simon@josefsson.org>
43437
43438         * modules/arpa_inet: Use $(MKDIR_P) instead of @MKDIR_P@.
43439         * modules/netinet_in: Likewise.
43440         * modules/sys_file: Likewise.
43441         * modules/sys_ioctl: Likewise.
43442         * modules/sys_select: Likewise.
43443         * modules/sys_socket: Likewise.
43444         * modules/sys_stat: Likewise.
43445         * modules/sys_time: Likewise.
43446         * modules/sys_times: Likewise.
43447         * modules/sys_utsname: Likewise.
43448         * modules/sys_wait: Likewise.
43449
43450 2009-09-01  Jim Meyering  <meyering@redhat.com>
43451
43452         fts: help ensure that return values are not ignored
43453         * lib/fts_.h (__GNUC_PREREQ): Define.
43454         (__attribute_warn_unused_result__): Define.
43455         (fts_children, fts_close, fts_open, fts_read): Declare with
43456         __attribute_warn_unused_result__.
43457
43458         fts: fts_close now fails also when closing a dir file descriptor fails
43459         * lib/fts.c (fts_close): Detect close failure, not just fchdir failure,
43460         and propagate to caller, along with errno.
43461
43462         announce-gen: correct formatting in --help output
43463         * build-aux/announce-gen (usage): Move the one-line description in
43464         --help output "up", to where it belongs, just after Usage:.
43465
43466 2009-08-31  Eric Blake  <ebb9@byu.net>
43467
43468         fchdir: port to mingw
43469         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Check for mingw bug.
43470         * lib/open.c (open) [FCHDIR_REPLACEMENT]: If directories can't be
43471         opened, then use a substitute.
43472         * lib/sys_stat.in.h (fstat) [REPLACE_OPEN_DIRECTORY]: Declare
43473         replacement.
43474         * lib/fchdir.c (fstat) [REPLACE_OPEN_DIRECTORY]: Implement it.
43475         (_gl_register_fd): No need to check stat if open already filters
43476         all directories.
43477         (fchdir): Fix error condition to match POSIX.
43478         * modules/fchdir (Depends-on): Add sys_stat.
43479         * doc/posix-functions/open.texi (open): Document the limitation.
43480         * modules/fchdir-tests: New file.
43481         * tests/test-fchdir.c: Likewise.
43482
43483         canonicalize: allow cross-testing from cygwin to mingw
43484         * modules/canonicalize-tests (configure.ac): Define HAVE_SYMLINK.
43485         (Makefile.am): Pass it through TESTS_ENVIRONMENT.
43486         * modules/canonicalize-lgpl-tests (configure.ac, Makefile.am):
43487         Likewise.
43488         * tests/test-canonicalize.sh: Also skip test if 'ln -s' works, but
43489         target does not support symlinks.
43490         * tests/test-canonicalize-lgpl.sh: Likewise.
43491
43492         chown: avoid compilation warning on mingw
43493         * m4/chown.m4 (gl_FUNC_CHOWN): Recognize missing chown.
43494         * lib/chown.c (rpl_chown) [!HAVE_CHOWN]: Always return failure on
43495         mingw.
43496         * lib/lchown.c (lchown) [!HAVE_CHOWN]: Likewise.
43497         * modules/chown (Depends-on): Add errno.
43498
43499 2009-08-31  Stefano Lattarini  <stefano.lattarini@gmail.com>  (tiny change)
43500
43501         * gnulib-tool: Fix test whether $CONFIG_SHELL has a working 'echo'
43502         command.
43503
43504 2009-08-31  Jim Meyering  <meyering@redhat.com>
43505
43506         canonicalize: remove useless initialization
43507         * lib/canonicalize.c (canonicalize_filename_mode): Remove useless
43508         initialization of local, "end".
43509
43510 2009-08-30  Bruno Haible  <bruno@clisp.org>
43511
43512         Fix an unnecessary error on Solaris 10 on NFSv3 file systems.
43513         * lib/set-mode-acl.c (qset_acl) [Solaris 10 new]: Treat EOPNOTSUPP like
43514         ENOSYS.
43515
43516 2009-08-30  Bruno Haible  <bruno@clisp.org>
43517
43518         * tests/test-pipe-filter-ii1.sh: Prefer /usr/xpg6/bin/tr over
43519         /usr/xpg4/bin/tr when it exists.
43520         * tests/test-pipe-filter-gi1.sh: Likewise.
43521
43522 2009-08-30  Bruno Haible  <bruno@clisp.org>
43523
43524         Work around deficient /usr/bin/id program on Solaris.
43525         * tests/test-file-has-acl.sh (ID): New variable.
43526         * tests/test-set-mode-acl.sh (ID): Likewise.
43527         * tests/test-copy-acl.sh (ID): Likewise.
43528         * tests/test-copy-file.sh (ID): Likewise.
43529
43530 2009-08-30  Bruno Haible  <bruno@clisp.org>
43531
43532         New module 'xstriconveh'.
43533         * lib/xstriconveh.h: New file.
43534         * lib/xstriconveh.c: New file.
43535         * modules/xstriconveh: New file.
43536
43537 2009-08-30  Bruno Haible  <bruno@clisp.org>
43538
43539         Make it easier to use mem_cd_iconveh.
43540         * lib/striconveh.h (iconveh_t): New type.
43541         (iconveh_open, iconveh_close): New declarations.
43542         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43543         with a single 'const iconveh_t *' argument.
43544         * lib/striconveh.c (iconveh_open, iconveh_close): New functions.
43545         (mem_cd_iconveh, str_cd_iconveh): Replace the three iconv_t arguments
43546         with a single 'const iconveh_t *' argument.
43547         (mem_iconveh, str_iconveh): Use iconveh_open, iconveh_close.
43548         * tests/test-striconveh.c (main): Update.
43549         * NEWS: Mention the change.
43550
43551 2009-08-30  Bruno Haible  <bruno@clisp.org>
43552
43553         * doc/posix-functions/iconv_open.texi: Mention indirect conversion
43554         problem.
43555
43556 2009-08-30  Bruno Haible  <bruno@clisp.org>
43557
43558         Work around iconv_open problem on Solaris.
43559         * lib/iconv_open-solaris.gperf: New file.
43560         * lib/iconv_open.c (ICONV_FLAVOR_SOLARIS): New macro.
43561         * m4/iconv_open.m4 (gl_FUNC_ICONV_OPEN): Also handle Solaris.
43562         * modules/iconv_open (Files): Add lib/iconv_open-solaris.gperf.
43563         (Makefile.am): Add rule for iconv_open-solaris.h. Augment
43564         BUILT_SOURCES, MOSTLYCLEANFILES, MAINTAINERCLEANFILES, EXTRA_DIST.
43565         * doc/posix-functions/iconv_open.texi: Mention the Solaris problem.
43566
43567 2009-08-29  Jim Meyering  <meyering@redhat.com>
43568
43569         maint.mk: remove more coreutils-specific targets; XZ_OPT=-9ev
43570         * top/maint.mk (cvs-check): Remove target; it was just an alias
43571         to the better-named vc-diff-check.
43572         (maintainer-distcheck): Remove rule.  It was used only from
43573         the (alpha/beta/major) target, and all of its commands but one
43574         were coreutils-specific.
43575         (vc-dist): Remove rule.
43576         (alpha beta major): Run "$(MAKE) distcheck" explicitly.
43577         Run vc-diff-check, not vc-dist.
43578         Run $(MAKE) dist with XZ_OPT=-9ev.  Note spelling, with "-".
43579
43580 2009-08-27  Bruno Haible  <bruno@clisp.org>
43581
43582         * tests/test-bitrotate.c (main): Remove test that uses a shift count
43583         of 0.
43584
43585 2009-08-27  Bruno Haible  <bruno@clisp.org>
43586
43587         * tests/test-func.c (main): Don't verify sizeof __func__ on SunPRO C
43588         compilers.
43589         * doc/func.texi: Document the SunPRO C bug.
43590
43591 2009-08-27  Bruno Haible  <bruno@clisp.org>
43592
43593         Fix link error on Solaris.
43594         * tests/test-parse-duration.c (xstrdup): Remove function.
43595
43596 2009-08-26  Pádraig Brady  <P@draigbrady.com>
43597
43598         ignore-value: handle pointer types, too
43599         * lib/ignore-value.h (__attribute__): Remove definition.
43600         (ignore_value): Remove use of "__attribute__ ((unused))" in favor
43601         of a more concise and more-often effective "(void) i" statement.
43602         (ignore_ptr): New function to suppress warnings from functions that
43603         return pointers, and to make it explicit that one function doesn't
43604         handle all cases.
43605
43606 2009-08-25  Bruno Haible  <bruno@clisp.org>
43607
43608         dup2: work around a Linux bug.
43609         * m4/dup2.m4 (gl_FUNC_DUP2): Test for the Linux bug.
43610         * lib/dup2.c (rpl_dup2): Correct the return value if it is -EBADF.
43611         * doc/posix-functions/dup2.texi: Mention the Linux bug.
43612         Reported by Simon Josefsson.
43613
43614 2009-08-25  Jim Meyering  <meyering@redhat.com>
43615
43616         libguestfs uses gnulib
43617         * users.txt: Add libguestfs.
43618
43619 2009-08-24  Eric Blake  <ebb9@byu.net>
43620
43621         dup2, pipe2: fix some recent test failures on cygwin 1.5.x
43622         * lib/pipe2.c (includes): Add binary-io.h.
43623         * lib/dup2.c (rpl_dup2): Correct buggy errno value.
43624
43625 2009-08-24  Bruno Haible  <bruno@clisp.org>
43626
43627         Tolerate declared but missing accept4 syscall.
43628         * lib/accept4.c (accept4): Invoke original accept4 function first, if
43629         available.
43630         * lib/sys_socket.in.h (accept4): If the function is already present,
43631         override it.
43632         * m4/accept4.m4 (gl_FUNC_ACCEPT4): Remove AC_LIBOBJ invocation.
43633         * modules/accept4 (Makefile.am): Compile accept4.c always.
43634         Reported by Paolo Bonzini and Eric Blake.
43635
43636 2009-08-23  Bruno Haible  <bruno@clisp.org>
43637
43638         New module 'accept4'.
43639         * lib/sys_socket.in.h (accept4): New declaration.
43640         * lib/accept4.c: New file.
43641         * m4/accept4.m4: New file.
43642         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
43643         GNULIB_ACCEPT4, HAVE_ACCEPT4.
43644         * modules/sys_socket (Makefile.am): Substitute GNULIB_ACCEPT4,
43645         HAVE_ACCEPT4.
43646         * modules/accept4: New file.
43647         * doc/glibc-functions/accept4.texi: Mention the new module.
43648
43649 2009-08-24  Jim Meyering  <meyering@redhat.com>
43650
43651         progname: also set global program_invocation_name, when possible
43652         Before this change, a libtool-enabled program that calls glibc's
43653         error function would report the program name as
43654         "/abs/dir/.libs/lt-program_name" rather than the desired program_name.
43655         * modules/progname (configure.ac): Check for a declaration of
43656         program_invocation_name.
43657         * lib/progname.c:  Include <errno.h>.
43658         (set_program_name) [HAVE_DECL_PROGRAM_INVOCATION_NAME]:
43659         Set program_invocation_name.
43660
43661 2009-08-23  Bruno Haible  <bruno@clisp.org>
43662
43663         * lib/dup3.c: Include <string.h>.
43664
43665 2009-08-23  Bruno Haible  <bruno@clisp.org>
43666
43667         * lib/dup3.c (dup3): Test only once whether the system actually exists.
43668         * lib/pipe2.c (pipe2): Likewise.
43669         Suggested by Eric Blake.
43670
43671 2009-08-23  Bruno Haible  <bruno@clisp.org>
43672
43673         Tolerate declared but missing dup3 syscall.
43674         * lib/dup3.c (dup3): Invoke original dup3 function first, if available.
43675         * lib/unistd.in.h (dup3): If the function is already present,
43676         override it.
43677         * m4/dup3.m4 (gl_FUNC_DUP3): Remove AC_LIBOBJ invocation.
43678         * modules/dup3 (Makefile.am): Compile dup3.c always.
43679         Reported by Paolo Bonzini.
43680
43681 2009-08-23  Bruno Haible  <bruno@clisp.org>
43682
43683         Tolerate declared but missing pipe2 syscall.
43684         * lib/pipe2.c (pipe2): Invoke original pipe2 function first, if
43685         available.
43686         * lib/unistd.in.h (pipe2): If the function is already present,
43687         override it.
43688         * m4/pipe2.m4 (gl_FUNC_PIPE2): Remove AC_LIBOBJ invocation.
43689         * modules/pipe2 (Makefile.am): Compile pipe2.c always.
43690         Reported by Paolo Bonzini.
43691
43692 2009-08-23  Bruno Haible  <bruno@clisp.org>
43693
43694         * lib/pipe2.c (pipe2): Move #ifs inside function.
43695
43696 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43697
43698         quotearg: document limitations of quote_these_too
43699         * lib/quotearg.c (quotearg_buffer_restyled): Add comments where
43700         those limitations are created.
43701         * lib/quotearg.h (set_char_quoting): Document that digits and
43702         letters that are special after backslash are not permitted.
43703         (quotearg_char): Cross-reference set_char_quoting documentation.
43704
43705 2009-08-23  Joel E. Denny  <jdenny@clemson.edu>
43706
43707         quotearg: implement custom_quoting_style
43708         * lib/quotearg.c: (struct quoting_options): Add left_quote and
43709         right_quote fields.
43710         (set_custom_quoting): New public function.
43711         (quotearg_buffer_restyled): Add left_quote and right_quote
43712         arguments, handle them very much like locale quoting, and update
43713         all uses.
43714         (quotearg_n_custom): New public function.
43715         (quotearg_n_custom_mem): New public function.
43716         (quotearg_custom): New public function.
43717         (quotearg_custom_mem): New public function.
43718         * lib/quotearg.h: Prototype and document new public functions.
43719         (enum quoting_style): For escape_quoting_style and
43720         clocale_quoting_style, comment that QA_SPLIT_TRIGRAPHS is
43721         ignored even though they're otherwise like c_quoting_style.
43722         Add custom_quoting_style member and document with comparison to
43723         clocale_quoting_style.
43724         * tests/test-quotearg.c (custom_quotes): New array.
43725         (custom_results): New array.
43726         (main): Extend to test custom quoting.
43727
43728 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43729
43730         quotearg: fix right quote escaping when it's in quote_these_too
43731         * lib/quotearg.c (quotearg_buffer_restyled): Upon seeing a right
43732         quote, be sure to prepend only one backslash.
43733         * tests/test-quotearg.c (use_quote_double_quotes): New function.
43734         (main): Test it.
43735
43736 2009-08-22  Joel E. Denny  <jdenny@clemson.edu>
43737
43738         quotearg-tests: test escaping of embedded locale quotes
43739         * tests/test-quotearg.c (struct result_strings): Add member for
43740         new input.
43741         (LQ_ENC, RQ_ENC, RQ_ESC): New macros.
43742         (inputs): Add new input.
43743         (results_g): Add expected results.
43744         (flag_results): Likewise.
43745         (locale_results): Likewise.
43746         (compare_strings): Check those.
43747
43748 2009-08-23  Bruno Haible  <bruno@clisp.org>
43749
43750         Tests for module 'dup3'.
43751         * modules/dup3-tests: New file.
43752         * tests/test-dup3.c: New file.
43753
43754         New module 'dup3'.
43755         * lib/unistd.in.h (dup3): New declaration.
43756         * lib/dup3.c: New file.
43757         * m4/dup3.m4: New file.
43758         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_DUP3 and
43759         HAVE_DUP3.
43760         * modules/unistd (Makefile.am): Substitute GNULIB_DUP3 and HAVE_DUP3.
43761         * modules/dup3: New file.
43762         * doc/glibc-functions/dup3.texi: Mention the new module.
43763
43764 2009-08-23  Bruno Haible  <bruno@clisp.org>
43765
43766         Tweak the dup2 test.
43767         * tests/test-dup2.c (main): Create the test file empty. Verify that an
43768         out-of-range fd yields EBADF. Verify that after writing to /dev/null,
43769         the test file is still empty. Fix argument order of lseek.
43770
43771 2009-08-23  Bruno Haible  <bruno@clisp.org>
43772
43773         Avoid test link errors when the modules getopt-gnu, gettext are used.
43774         * modules/getopt-posix-tests (Makefile.am): Define test_getopt_LDADD.
43775         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
43776
43777 2009-08-23  Bruno Haible  <bruno@clisp.org>
43778
43779         Fix getdtablesize() on mingw.
43780         * lib/getdtablesize.c (getdtablesize): Implement differently.
43781         * lib/unistd.in.h (getdtablesize): Improve comment.
43782
43783 2009-08-23  Bruno Haible  <bruno@clisp.org>
43784
43785         New module 'mkostemp'.
43786         Based on Ulrich Drepper's 2007-08-10 change in glibc.
43787         * lib/stdlib.in.h (mksotemp): New declaration.
43788         * lib/mkostemp.c: New file, from glibc with modifications.
43789         * lib/tempname.h (GT_FILE): Remove outdated comment.
43790         (gen_tempname): Add flags argument.
43791         * lib/tempname.c (__GT_BIGFILE): Remove macro.
43792         (__GT_FILE): Map to 1.
43793         (small_open, large_open): Remove macros.
43794         (__gen_tempname): Add flags argument. Remove code for __GT_BIGFILE.
43795         * lib/mkstemp.c (mkstemp): Update.
43796         * lib/mkdtemp.c (mkdtemp): Likewise.
43797         * m4/mkostemp.m4: New file.
43798         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_MKOSTEMP,
43799         HAVE_MKOSTEMP.
43800         * modules/stdlib (Makefile.am): Substitute GNULIB_MKOSTEMP,
43801         HAVE_MKOSTEMP.
43802         * modules/mkostemp: New file, based on modules/mkstemp.
43803         * doc/glibc-functions/mkostemp.texi: Mention the new module.
43804         * NEWS: Mention the change.
43805
43806 2009-08-23  Bruno Haible  <bruno@clisp.org>
43807
43808         * lib/pipe2.c (pipe2): Support O_TEXT, O_BINARY on all platforms.
43809         Reported by Eric Blake.
43810
43811 2009-08-23  Bruno Haible  <bruno@clisp.org>
43812
43813         * lib/pipe2.c (pipe2): Fix test of fcntl's return value.
43814         Reported by Eric Blake.
43815
43816 2009-08-23  Bruno Haible  <bruno@clisp.org>
43817
43818         * modules/fchdir (Depends-on): Use fcntl-h instead of fcntl.
43819         * modules/pipe2 (Depends-on): Likewise.
43820
43821 2009-08-23  Eric Blake  <ebb9@byu.net>
43822
43823         fcntl-h: add O_TTY_INIT support
43824         * lib/fcntl.in.h (O_TTY_INIT): Support another POSIX macro.
43825         * tests/test-fcntl-h.c (o): Test it.
43826         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43827
43828         fcntl-h: rename from fcntl, in preparation for fcntl(2)
43829         * modules/fcntl: Move <fcntl.h> header replacement...
43830         * modules/fcntl-h: ...to new name, so as not to collide with
43831         like-named function.
43832         * tests/test-fcntl.c: Rename...
43833         * tests/test-fcntl-h.c: ...to this.  Test FD_CLOEXEC.
43834         * modules/fcntl-tests: Rename...
43835         * modules/fcntl-h-tests: ...to this.  Update test file name.
43836         * modules/chdir-long (Depends-on): Update clients.
43837         * modules/chdir-safer (Depends-on): Likewise.
43838         * modules/fcntl-safer (Depends-on): Likewise.
43839         * modules/fts (Depends-on): Likewise.
43840         * modules/mkancesdirs (Depends-on): Likewise.
43841         * modules/mkdir-p (Depends-on): Likewise.
43842         * modules/open (Depends-on): Likewise.
43843         * modules/savewd (Depends-on): Likewise.
43844         * MODULES.html.sh (systems lacking POSIX:2008): Update name.
43845         * doc/posix-headers/fcntl.texi (fcntl.h): Update documentation.
43846
43847 2009-08-22  Bruno Haible  <bruno@clisp.org>
43848
43849         * modules/binary-io (License): Relicense under LGPL.
43850         * modules/pipe2 (License): Likewise.
43851
43852 2009-08-22  Bruno Haible  <bruno@clisp.org>
43853
43854         * lib/pipe-filter-ii.c (pipe_filter_ii_execute): Fix test of fcntl's
43855         return value.
43856         * lib/pipe-filter-gi.c (filter_init): Likewise.
43857         Reported by Eric Blake.
43858
43859 2009-08-22  Bruno Haible  <bruno@clisp.org>
43860
43861         * lib/pipe.c (create_pipe): Use pipe2 instead of _pipe.
43862         * modules/pipe (Depends-on): Add pipe2.
43863
43864 2009-08-22  Bruno Haible  <bruno@clisp.org>
43865
43866         Tests for module 'pipe2'.
43867         * modules/pipe2-tests: New file.
43868         * tests/test-pipe2.c: New file.
43869
43870         New module 'pipe2'.
43871         * lib/unistd.in.h (pipe2): New declaration.
43872         * lib/pipe2.c: New file.
43873         * m4/pipe2.m4: New file.
43874         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_PIPE2 and
43875         HAVE_PIPE2.
43876         * modules/unistd (Makefile.am): Substitute GNULIB_PIPE2 and HAVE_PIPE2.
43877         * modules/pipe2: New file.
43878         * doc/glibc-functions/pipe2.texi: Mention the new module.
43879
43880 2009-08-22  Bruno Haible  <bruno@clisp.org>
43881
43882         Reference some new glibc functions.
43883         * doc/glibc-functions/accept4.texi: New file.
43884         * doc/glibc-functions/dup3.texi: New file.
43885         * doc/glibc-functions/mkostemp.texi: New file.
43886         * doc/glibc-functions/pipe2.texi: New file.
43887         * doc/gnulib.texi (Glibc stdlib.h): Refer to mkostemp.
43888         (Glibc sys/socket.h): Refer to accept4.
43889         (Glibc unistd.h): Refer to dup3, pipe2.
43890         Reported by Eric Blake.
43891
43892 2009-08-22  Jim Meyering  <meyering@redhat.com>
43893             Bruno Haible  <bruno@clisp.org>
43894
43895         annotate automake snippets with $(AM_V_GEN) and $(AM_V_at)
43896         This makes it so packages using automake-1.11's silent-rules option
43897         can print e.g., a single "GEN    configmake.h" line, rather than
43898         the 30+ statements that perform the job.  If you want to see the
43899         actual commands, you can still run "make V=1".
43900         * modules/alloca-opt: Add $(AM_V_GEN) and $(AM_V_at) prefixes
43901         so that make output is abbreviated when those variables are defined
43902         appropriately.
43903         * modules/argz: Likewise.
43904         * modules/arpa_inet: Likewise.
43905         * modules/byteswap: Likewise.
43906         * modules/configmake: Likewise.
43907         * modules/dirent: Likewise.
43908         * modules/errno: Likewise.
43909         * modules/fcntl: Likewise.
43910         * modules/float: Likewise.
43911         * modules/fnmatch: Likewise.
43912         * modules/getopt-posix: Likewise.
43913         * modules/glob: Likewise.
43914         * modules/iconv_open: Likewise.
43915         * modules/inttypes: Likewise.
43916         * modules/localcharset: Likewise.
43917         * modules/locale: Likewise.
43918         * modules/math: Likewise.
43919         * modules/netdb: Likewise.
43920         * modules/netinet_in: Likewise.
43921         * modules/poll: Likewise.
43922         * modules/posix_spawnp-tests: Likewise.
43923         * modules/sched: Likewise.
43924         * modules/search: Likewise.
43925         * modules/selinux-h: Likewise.
43926         * modules/signal: Likewise.
43927         * modules/spawn: Likewise.
43928         * modules/stdarg: Likewise.
43929         * modules/stdbool: Likewise.
43930         * modules/stddef: Likewise.
43931         * modules/stdint: Likewise.
43932         * modules/stdio: Likewise.
43933         * modules/stdlib: Likewise.
43934         * modules/string: Likewise.
43935         * modules/strings: Likewise.
43936         * modules/sys_file: Likewise.
43937         * modules/sys_ioctl: Likewise.
43938         * modules/sys_select: Likewise.
43939         * modules/sys_socket: Likewise.
43940         * modules/sys_stat: Likewise.
43941         * modules/sys_time: Likewise.
43942         * modules/sys_times: Likewise.
43943         * modules/sys_utsname: Likewise.
43944         * modules/sys_wait: Likewise.
43945         * modules/sysexits: Likewise.
43946         * modules/time: Likewise.
43947         * modules/unistd: Likewise.
43948         * modules/wchar: Likewise.
43949         * modules/wctype: Likewise.
43950
43951 2009-08-22  Jim Meyering  <meyering@redhat.com>
43952
43953         announce-gen: detect write failure
43954         * build-aux/announce-gen: Add Coda at end.
43955         Remove equivalent-but-more-verbose block at top.
43956
43957 2009-08-19  Akim Demaille  <demaille@gostai.com>
43958
43959         bootstrap: --help to stdout.
43960         * bootstrap (usage): Don't send --help to stderr.
43961         Use a here doc instead of a long string.
43962
43963 2009-08-21  Eric Blake  <ebb9@byu.net>
43964
43965         test-popen-safer: split from test-popen
43966         * tests/test-popen.c (main): Move...
43967         * tests/test-popen.h: ...into new file.
43968         * tests/test-popen-safer2.c: New file.
43969         * modules/popen-tests (Files): Add test-popen.h.
43970         * modules/popen-safer-tests (Files): Add test-popen-safer2.c.
43971         Suggested by Bruno Haible.
43972
43973         test-fcntl-safer: split from test-open
43974         * tests/test-open.c (main): Move...
43975         * tests/test-open.h: ...into new file.
43976         * tests/test-fcntl-safer.c: New file.
43977         * modules/open-tests (Files): Add test-open.h.
43978         * modules/fcntl-safer-tests: New file.
43979         Suggested by Bruno Haible.
43980
43981         test-fopen-safer: split from test-fopen
43982         * tests/test-fopen.c (main): Move...
43983         * tests/test-fopen.h: ...into new file.
43984         * tests/test-fopen-safer.c: New file.
43985         * modules/fopen-tests (Files): Add test-fopen.h.
43986         * modules/fopen-safer-tests: New file.
43987         Suggested by Bruno Haible.
43988
43989 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43990
43991         popen-safer: test O_CLOEXEC at run-time.
43992         * lib/popen-safer.c: Test O_CLOEXEC at run-time.
43993
43994 2009-08-21  Paolo Bonzini  <bonzini@gnu.org>
43995
43996         fcntl: move more flags to the header
43997         * lib/cloexec.c: Do not define FD_CLOEXEC here.
43998         * lib/popen-safer.c: Do not alias O_NOINHERIT to O_CLOEXEC here.
43999         * lib/fcntl.in.h: Do both things here.
44000
44001 2009-08-21  Jim Meyering  <meyering@redhat.com>
44002
44003         consistently remove $@-t before redirecting to it
44004         * modules/argz: Remove $@-t and $@ before redirecting to the former.
44005         * modules/alloca-opt: Likewise.
44006         * modules/byteswap: Likewise.
44007         * modules/fnmatch: Likewise.
44008         * modules/getopt-posix: Likewise.
44009         * modules/glob: Likewise.
44010         * modules/poll: Likewise.
44011         * modules/posix_spawnp-tests: Likewise.
44012         * modules/sys_socket: Likewise.
44013         * modules/sysexits: Likewise.
44014
44015 2009-08-21  Eric Blake  <ebb9@byu.net>
44016
44017         popen: simplify access to original popen
44018         * lib/popen.c (rpl_popen): No need to worry about popen being a
44019         macro.
44020         Reported by Bruno Haible.
44021
44022 2009-08-20  Eric Blake  <ebb9@byu.net>
44023
44024         build: avoid some compiler warnings
44025         * lib/selinux-at.h: Use dir_fd, not dirfd, to avoid shadowing.
44026         * lib/exclude.c (fnmatch_pattern_has_wildcards): Use correct
44027         type.
44028         (new_exclude_segment, excluded_file_pattern_p)
44029         (excluded_file_name_p): Reduce scope.
44030         * lib/vasnprintf.c (decimal_point_char): Avoid warning on
44031         old-style declaration.
44032
44033 2009-08-20  Simon Josefsson  <simon@josefsson.org>
44034
44035         * tests/test-exclude1.sh: Handle Windows EOL.
44036         * tests/test-exclude2.sh: Likewise.
44037         * tests/test-exclude3.sh: Likewise.
44038         * tests/test-exclude4.sh: Likewise.
44039         * tests/test-exclude5.sh: Likewise.
44040         * tests/test-exclude6.sh: Likewise.
44041         * tests/test-exclude7.sh: Likewise.
44042
44043 2009-08-19  Akim Demaille  <demaille@gostai.com>
44044
44045         bootstrap: find sha1sum when named gsha1sum.
44046         * bootstrap (find_tool): New.
44047         ($SHA1SUM): New.
44048         Use it.
44049
44050 2009-08-20  Jim Meyering  <meyering@redhat.com>
44051
44052         maint.mk: _header_without_use: fix a quoting bug and remove a bash'ism
44053         * top/maint.mk (_header_without_use): Use "\\\\", not "\\" in the sed
44054         expression that converts "." in a file name to "\." in the resulting
44055         regexp.  Start with a dummy statement, so that prior shell variable
44056         definitions are expanded portably.  Reported by Simon Josefsson.
44057
44058 2009-08-20  Paolo Bonzini  <bonzini@gnu.org>
44059
44060         Fix polling for writeability of a screen buffer.
44061         * lib/poll.c: Distinguish input and screen buffers for the
44062         Win32 implementation.
44063         * lib/select.c: Likewise.
44064
44065 2009-08-19  Eric Blake  <ebb9@byu.net>
44066
44067         popen-safer: prevent popen from clobbering std descriptors
44068         * modules/popen-safer: New file.
44069         * lib/popen-safer.c: Likewise.
44070         * m4/stdio-safer.m4 (gl_POPEN_SAFER): New macro.
44071         * lib/stdio--.h (popen): Provide override.
44072         * lib/stdio-safer.h (popen_safer): Provide declaration.
44073         * tests/test-popen.c (includes): Partially test this.
44074         * modules/popen-safer-tests: New file, for more tests.
44075         * tests/test-popen-safer.c: Likewise.
44076         * MODULES.html.sh (file stream based Input/Output): Mention it.
44077
44078         tests: test some of the *-safer modules
44079         * modules/fopen-safer (Depends-on): Add fopen.
44080         * modules/fcntl-safer (Depends-on): Add fcntl.
44081         * modules/stdlib-safer (Depends-on): Add stdlib.
44082         (configure.ac): Set indicator.
44083         * modules/unistd-safer (configure.ac): Likewise.
44084         * modules/tmpfile-safer (configure.ac): Likewise.
44085         (Depends-on): Add tmpfile.
44086         * lib/stdio--.h (fopen, tmpfile): Don't override unless module is
44087         active.
44088         * tests/test-fopen.c (includes): Test safer versions when they are
44089         in use.
44090         * tests/test-open.c (includes): Likewise.
44091
44092         popen: fix cygwin 1.5 bug when stdin closed
44093         * doc/posix-functions/popen.texi (popen): Document cygwin bugs.
44094         * modules/popen: New file.
44095         * modules/popen-tests: Likewise.
44096         * tests/test-popen.c: Likewise.
44097         * m4/popen.m4: Likewise.
44098         * lib/popen.c: Likewise.
44099         * lib/stdio.in.h (popen): New declaration.
44100         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add popen.
44101         * modules/stdio (Makefile.am): Likewise.
44102         * MODULES.html.sh (systems lacking POSIX:2008): Mention it.
44103
44104 2009-08-17  Joel E. Denny  <jdenny@clemson.edu>
44105
44106         maint.mk: give full control over update-copyright exclusions
44107         * top/maint.mk (VC_LIST_EXCEPT): Instead of ChangeLog, use
44108         ${VC_LIST_EXCEPT_DEFAULT-ChangeLog} as the default exclusion.
44109         (update-copyright): Don't force inclusion of top-level
44110         ChangeLog.  Don't force exclusion of all COPYING files, but make
44111         them the default exclusion instead.
44112
44113 2009-08-16  Bruno Haible  <bruno@clisp.org>
44114
44115         Fix test failures on Solaris 10.
44116         * tests/uniconv/test-u8-conv-from-enc.c (main): Disable autodetect_jp
44117         tests when Solaris iconv() is used.
44118         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
44119         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
44120         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
44121         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
44122         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
44123
44124 2009-08-16  Bruno Haible  <bruno@clisp.org>
44125
44126         Fix test failures on Solaris 10.
44127         * tests/test-pipe-filter-ii1.sh: Determine the filename of a working
44128         'tr' program and pass it as first argument.
44129         * tests/test-pipe-filter-gi1.sh: Likewise.
44130         * tests/test-pipe-filter-ii1.c (main): Except the filename of a 'tr'
44131         program as first argument.
44132         * tests/test-pipe-filter-gi1.c (main): Likewise.
44133
44134 2009-08-16  Eric Blake  <ebb9@byu.net>
44135
44136         fpurge: fix previous commits
44137         * modules/fpurge (Makefile.am): Make replacement conditional,
44138         partially reverting 2007-04-29 change; missed in previous
44139         attempt.
44140         * m4/fpurge.m4 (gl_FUNC_FPURGE): Also compile fpurge.c when fpurge
44141         is missing.
44142
44143 2009-08-16  Bruno Haible  <bruno@clisp.org>
44144
44145         Clarify fpurge's effect on the file position.
44146         * lib/stdio.in.h (fpurge): Specify the file position after fpurge.
44147         * tests/test-fpurge.c (main): Make a second pass for checking the file
44148         position.
44149
44150 2009-08-16  Bruno Haible  <bruno@clisp.org>
44151
44152         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't compile fpurge.c if only the
44153         declaration of fpurge is missing.
44154         * tests/test-fpurge.c (main): Check that the file has not more contents
44155         than expected. Close the file before removing it.
44156
44157 2009-08-15  Eric Blake  <ebb9@byu.net>
44158
44159         fpurge: don't wrap working cygwin implementation
44160         * lib/fpurge.c (fpurge): Fix comment typo.
44161         * m4/fpurge.m4 (gl_FUNC_FPURGE): Detect BSD bug, allowing cygwin
44162         1.7 to avoid replacement.
44163         * tests/test-fpurge.c (main): Enhance test.
44164
44165 2009-08-15  Eric Blake  <ebb9@byu.net>
44166         and Jim Meyering  <meyering@redhat.com>
44167
44168         test-update-copyright: skip if perl is insufficient
44169         * tests/test-update-copyright.sh: Failure to run maintainer tool
44170         should not cause testsuite failure on cygwin 1.5.
44171
44172 2009-08-14  Eric Blake  <ebb9@byu.net>
44173
44174         doc: mention more functions added in cygwin 1.7.0
44175         * doc/posix-headers/limits.texi (limits.h): Update for recent
44176         cygwin additions.
44177         * doc/posix-headers/wordexp.texi (wordexp.h): Likewise.
44178         * doc/posix-functions/wordexp.texi (wordexp): Likewise.
44179         * doc/posix-functions/wordfree.texi (wordfree): Likewise.
44180         * doc/posix-functions/setlocale.texi (setlocale): Likewise.
44181         * doc/posix-functions/nl_langinfo.texi (nl_langinfo): Likewise.
44182
44183 2009-08-14  Eric Blake  <ebb9@byu.net>
44184
44185         maint.mk: simplify update-copyright rule
44186         * top/maint.mk (update-copyright-local): Delete, and document how
44187         to do it in cfg.mk instead.
44188         (update-copyright-exclude-regexp): Delete, and document how to do
44189         it in .x-update-copyright instead.
44190         (update-copyright): Simplify, thanks to VC_LIST_EXCEPT.  Don't
44191         exclude ChangeLog.
44192
44193 2009-08-14  Bruno Haible  <bruno@clisp.org>
44194
44195         * m4/wchar.m4 (gl_WCHAR_H): Undo invalid optimization in last commit.
44196
44197 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44198
44199         maint.mk: support update-copyright-env
44200         * top/maint.mk (update-copyright-env): Define place-holder.
44201         (update-copyright): Expand $(update-copyright-env) before
44202         invoking update-copyright.
44203
44204 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44205
44206         update-copyright: implement forced reformatting
44207         * build-aux/update-copyright: Implement and document
44208         UPDATE_COPYRIGHT_FORCE.
44209         * tests/test-update-copyright.sh: Test it.
44210
44211 2009-08-14  Eric Blake  <ebb9@byu.net>
44212         and Bruno Haible  <bruno@clisp.org>
44213
44214         stddef: fix NetBSD 5.0 NULL bug, rather than working around it
44215         * tests/test-locale.c: Revert previous patch related to NULL.
44216         * tests/test-stdio.c: Likewise.
44217         * tests/test-stdlib.c: Likewise.
44218         * tests/test-string.c: Likewise.
44219         * tests/test-unistd.c: Likewise.
44220         * modules/time-tests (Depends-on): Add verify.
44221         * modules/wchar-tests (Depends-on): Likewise.
44222         * tests/test-time.c: Test for NULL compliance.
44223         * tests/test-wchar.c: Likewise.
44224         * modules/locale (Depends-on): Add stddef.
44225         * modules/stdio (Depends-on): Likewise.
44226         * modules/stdlib (Depends-on): Likewise.
44227         * modules/string (Depends-on): Likewise.
44228         * modules/time (Depends-on): Likewise.
44229         * modules/unistd (Depends-on): Likewise.
44230         * modules/wchar (Depends-on): Likewise.
44231         * lib/locale.in.h (includes): Use <stddef.h> to fix NULL.
44232         * lib/stdlib.in.h (includes): Likewise.
44233         * lib/string.in.h (includes): Likewise.
44234         * lib/time.in.h (includes): Likewise.
44235         * lib/unistd.in.h (includes): Likewise.
44236         * m4/locale_h.m4 (gl_LOCALE_H): Replace locale.h if stddef.h was
44237         replaced.
44238         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
44239         * m4/stddef_h.m4: New file.
44240         * modules/stddef: Likewise.
44241         * lib/stddef.in.h: Likewise.
44242         * modules/stddef-tests: Likewise.
44243         * tests/test-stddef.c: Likewise.
44244         * MODULES.html.sh (Basic types <stddef.h>): Mention new module.
44245         * doc/posix-headers/stddef.texi (stddef.h): Document the bug.
44246         * doc/posix-headers/locale.texi (locale.h): Likewise.
44247         * doc/posix-headers/stdio.texi (stdio.h): Likewise.
44248         * doc/posix-headers/stdlib.texi (stdlib.h): Likewise.
44249         * doc/posix-headers/string.texi (string.h): Likewise.
44250         * doc/posix-headers/time.texi (time.h): Likewise.
44251         * doc/posix-headers/unistd.texi (unistd.h): Likewise.
44252         * doc/posix-headers/wchar.texi (wchar.h): Likewise.
44253
44254 2009-08-14  Eric Blake  <ebb9@byu.net>
44255
44256         doc: improve git diff of texinfo files
44257         * .gitattributes: Add rule for *.texi files, with hint on how to
44258         use it.
44259         Copied from m4, and based on a report by Bruno Haible.
44260
44261 2009-08-14  Bruno Haible  <bruno@clisp.org>
44262
44263         Disable multithread support by default on Cygwin 1.5.x for real.
44264         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): Fix last commit.
44265
44266 2009-08-14  Joel E. Denny  <jdenny@clemson.edu>
44267
44268         update-copyright: much ado about intervals
44269         * build-aux/update-copyright: Implement and document
44270         UPDATE_COPYRIGHT_USE_INTERVALS to control expansion and collapse
44271         of copyright year intervals.
44272         Also, document UPDATE_COPYRIGHT_YEAR.
44273         * tests/test-update-copyright.sh: Test it.
44274
44275         update-copyright: convert 2-digit to 4-digit years
44276         * build-aux/update-copyright: Implement and document.
44277         * tests/test-update-copyright.sh: Update.
44278
44279 2009-08-14  Jim Meyering  <meyering@redhat.com>
44280
44281         test-exclude: avoid coreutils "make check" failure
44282         * tests/test-exclude.c (ARGMATCH_DIE_DECL) [ARGMATCH_DIE_DECL]: Define,
44283         just as in test-argmatch.c.
44284
44285 2009-08-13  Eric Blake  <ebb9@byu.net>
44286
44287         test-dup2: fix bad assumption
44288         * tests/test-dup2.c (main): Tolerate leaked fds from environment.
44289         Reported by Peter Breitenlohner <peb@mppmu.mpg.de>.
44290
44291         test-version-etc: fix CRLF portability issue
44292         * tests/test-version-etc.sh: Use tr, not sed, as not all sed
44293         recognize \r.
44294         * tests/test-argp-version-etc-1.sh: Likewise.
44295
44296         getopt: update client modules
44297         * modules/argp (Depends-on): Use getopt-gnu.
44298         * modules/git-merge-changelog (Depends-on): Likewise.
44299         * modules/long-options (Depends-on): Likewise.
44300         * modules/xstrtol (Depends-on): Likewise.
44301
44302 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44303
44304         * tests/test-version-etc.sh: Don't fail on different
44305         project/version.  Don't fail on CRLF differences.  Rewrite to use
44306         multiple -e instead of multiple sed forks, suggested by Eric Blake
44307         <ebb9@byu.net>.
44308         * tests/test-argp-version-etc-1.sh: Likewise.
44309
44310 2009-08-13  Simon Josefsson  <simon@josefsson.org>
44311
44312         * tests/test-version-etc.sh: Don't fail on different
44313         project/version.
44314
44315 2009-08-12  Bruno Haible  <bruno@clisp.org>
44316
44317         Tests for modules 'getopt-posix', 'getopt-gnu'.
44318         * modules/getopt-posix-tests: New file.
44319         * tests/test-getopt.c: New file.
44320         * tests/test-getopt.h: New file.
44321         * tests/test-getopt_long.h: New file.
44322
44323         New modules 'getopt-posix', 'getopt-gnu'.
44324         * modules/getopt-gnu: New file, renamed from modules/getopt.
44325         * modules/getopt-posix: New file.
44326         * modules/getopt: Turn into an obsolete alias for getopt-gnu.
44327         * m4/getopt.m4 (gl_FUNC_GETOPT_POSIX, gl_FUNC_GETOPT_GNU): New macros.
44328         (gl_GETOPT): Remove macro.
44329         (gl_GETOPT_CHECK_HEADERS): Do some checks only for gl_FUNC_GETOPT_GNU.
44330         Disable the test against BSD systems that declare optreset. Test
44331         against mingw bug. Test against lack of support of optional arguments
44332         on many platforms.
44333         * doc/glibc-headers/getopt.texi: Update module name and list of
44334         relevant platforms.
44335         * doc/posix-functions/getopt.texi: Mention modules 'getopt-posix' and
44336         'getopt-gnu' and more portability problems.
44337         * NEWS: Mention the changes.
44338
44339 2009-08-12  Bruno Haible  <bruno@clisp.org>
44340
44341         Ensure that optarg etc. get declared by <unistd.h>.
44342         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Require
44343         AC_USE_SYSTEM_EXTENSIONS.
44344         * modules/getopt (Depends-on): Add 'extensions'.
44345
44346 2009-08-12  Bruno Haible  <bruno@clisp.org>
44347
44348         Avoid test link errors.
44349         * modules/pipe-filter-ii-tests (Makefile.am): Define
44350         test_pipe_filter_ii1_LDADD and test_pipe_filter_ii2_main_LDADD.
44351         * modules/pipe-filter-gi-tests (Makefile.am): Define
44352         test_pipe_filter_gi1_LDADD and test_pipe_filter_gi2_main_LDADD.
44353         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44354
44355 2009-08-12  Bruno Haible  <bruno@clisp.org>
44356
44357         * m4/getopt.m4 (gl_REPLACE_GETOPT): New macro, was called
44358         gl_GETOPT_SUBSTITUTE before.
44359         (gl_GETOPT): Use it.
44360         * m4/argp.m4 (gl_ARGP): Update.
44361         Reported by Sergey Poznyakoff.
44362
44363         * m4/getopt.m4: Reorder macros.
44364         (gl_GETOPT): Inline gl_GETOPT_SUBSTITUTE.
44365         (gl_GETOPT_SUBSTITUTE): Remove macro.
44366
44367 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44368
44369         Minor improvement in gitlog-to-changelog
44370
44371         * build-aux/gitlog-to-changelog: New option `--format' makes
44372         output format string configurable.
44373
44374 2009-08-12  Sergey Poznyakoff  <gray@gnu.org.ua>
44375
44376         Optimize exclude: use hash tables for non-wildcard patterns.
44377
44378         * lib/exclude.c: Include hash.h and mbuiter.h
44379         (struct exclude_pattern, exclude_segment): New data types.
44380         (struct exclude): Rewrite.
44381         (fnmatch_pattern_has_wildcards): New function.
44382         (new_exclude_segment, free_exclude_segment): New functions.
44383         (excluded_file_pattern_p, excluded_file_name_p): New functions.
44384         (excluded_file_name, add_exclude): Rewrite using new struct exclude.
44385         * lib/exclude.h (is_fnmatch_pattern): New prototype.
44386         * modules/exclude: Depend on hash and mbuiter.
44387
44388         * modules/exclude-tests: New file.
44389         * tests/test-exclude.c: New file.
44390         * tests/test-exclude1.sh: New file.
44391         * tests/test-exclude2.sh: New file.
44392         * tests/test-exclude3.sh: New file.
44393         * tests/test-exclude4.sh: New file.
44394         * tests/test-exclude5.sh: New file.
44395         * tests/test-exclude6.sh: New file.
44396         * tests/test-exclude7.sh: New file.
44397
44398 2009-08-12  Bruno Haible  <bruno@clisp.org>
44399
44400         Ensure that getopt() gets declared by <unistd.h>.
44401         * lib/unistd.in.h: Conditionally include getopt.h.
44402         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Require gl_UNISTD_H_DEFAULTS.
44403         Set GNULIB_UNISTD_H_GETOPT.
44404         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44405         GNULIB_UNISTD_H_GETOPT.
44406         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_GETOPT.
44407
44408 2009-08-12  Bruno Haible  <bruno@clisp.org>
44409
44410         Clarify logic.
44411         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS, gl_GETOPT_IFELSE): Use
44412         gl_replace_getopt instead of GETOPT_H.
44413
44414 2009-08-12  Bruno Haible  <bruno@clisp.org>
44415
44416         * m4/getopt.m4: Add comments.
44417
44418 2009-08-12  Bruno Haible  <bruno@clisp.org>
44419
44420         Disable multithread support by default on Cygwin 1.5.x.
44421         * m4/threadlib.m4 (gl_THREADLIB_EARLY_BODY): On Cygwin 1.5.x and older,
44422         set gl_use_threads=no if not specified otherwise.
44423
44424 2009-08-11  Bruno Haible  <bruno@clisp.org>
44425
44426         Avoid compilation error on NetBSD 5.0.
44427         * tests/test-locale.c: Write sizeof (NULL) instead of sizeof NULL.
44428         * tests/test-stdio.c: Likewise.
44429         * tests/test-stdlib.c: Likewise.
44430         * tests/test-string.c: Likewise.
44431         * tests/test-unistd.c: Likewise.
44432         Reported by Greg Troxel <gdt@ir.bbn.com>
44433         at <https://savannah.gnu.org/support/?106973>.
44434
44435 2009-08-11  Bruno Haible  <bruno@clisp.org>
44436
44437         * modules/dup2-tests (Depends-on): Remove close.
44438
44439         Undo 2009-07-19 commit.
44440         * modules/acl-tests (Depends-on): Remove close.
44441         * modules/binary-io-tests (Depends-on): Likewise.
44442         * modules/closein-tests (Depends-on): Likewise.
44443         * modules/flock-tests (Depends-on): Likewise.
44444         * modules/fsync-tests (Depends-on): Likewise.
44445         * modules/lseek-tests (Depends-on): Likewise.
44446         * modules/pipe-tests (Depends-on): Likewise.
44447         * modules/posix_spawn-tests (Depends-on): Likewise.
44448         * modules/posix_spawnp-tests (Depends-on): Likewise.
44449         * modules/stat-time-tests (Depends-on): Likewise.
44450         * modules/yesno-tests (Depends-on): Likewise.
44451
44452 2009-08-10  Bruno Haible  <bruno@clisp.org>
44453
44454         * lib/vasnprintf.c (DCHAR_SET): Undefine at the end.
44455
44456 2009-08-10  Bruno Haible  <bruno@clisp.org>
44457
44458         Fix a gcc warning.
44459         * lib/write.c (rpl_write): Cast result of _get_osfhandle.
44460
44461 2009-08-10  Bruno Haible  <bruno@clisp.org>
44462
44463         Don't optimize AC_LIBOBJs, as they may appear in different contexts.
44464         * m4/close.m4 (gl_REPLACE_CLOSE): Execute AC_LIBOBJ unconditionally,
44465         not only the first time.
44466         * m4/fclose.m4 (gl_REPLACE_FCLOSE): Likewise.
44467         * m4/open.m4 (gl_REPLACE_OPEN): Likewise.
44468         * m4/strstr.m4 (gl_FUNC_STRSTR): Execute AC_LIBOBJ when REPLACE_STRSTR
44469         is 1, not only the the first time.
44470
44471 2009-08-10  Bruno Haible  <bruno@clisp.org>
44472
44473         Make it possible to use module 'gethostname' without module 'close'.
44474         * lib/unistd.in.h (close): Evoke a link error only if
44475         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44476         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
44477         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44478         * modules/unistd (Makefile.am): Substitute
44479         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44480         * lib/sys_ioctl.in.h (ioctl): Evoke a link error only if
44481         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS is set.
44482         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H_DEFAULTS): Initialize
44483         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44484         * modules/sys_ioctl (Makefile.am): Substitute
44485         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44486         * modules/socket (configure.ac): On native Windows, set
44487         UNISTD_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS and
44488         SYS_IOCTL_H_HAVE_WINSOCK2_H_AND_USE_SOCKETS.
44489         Reported by Sam Steingold <sds@gnu.org>.
44490
44491 2009-08-10  Bruno Haible  <bruno@clisp.org>
44492
44493         * m4/close.m4 (gl_FUNC_CLOSE): Add comment.
44494         * modules/ioctl (configure.ac): Likewise.
44495
44496 2009-08-10  Bruno Haible  <bruno@clisp.org>
44497
44498         Avoid collision between gnulib wrapper and libintl wrapper.
44499         * lib/stdio-write.c (printf): Don't define if a printf wrapper is
44500         already defined in intl/printf.c.
44501         (vprintf): Test REPLACE_VPRINTF_POSIX, not REPLACE_VFPRINTF_POSIX.
44502         (vfprintf): Test REPLACE_VFPRINTF_POSIX, not REPLACE_VPRINTF_POSIX.
44503
44504 2009-08-09  Bruno Haible  <bruno@clisp.org>
44505
44506         Make <sys/select.h> really self-contained, also on Solaris 10.
44507         * lib/sys_select.in.h: Include <string.h>.
44508         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Test also against
44509         Solaris 10 problem.
44510         * tests/test-sys_select.c (main): Add check that FD_ZERO can be used.
44511         * doc/posix-headers/sys_select.texi: Mention the Solaris 10 problem.
44512         Reported by Jim Meyering.
44513
44514 2009-08-09  Bruno Haible  <bruno@clisp.org>
44515
44516         Avoid warnings from 'aclocal' that are due to a use of macro name
44517         AM_XGETTEXT_OPTION that is not defined in automake.
44518         * modules/argp (configure.ac): Hide use of AM_XGETTEXT_OPTION from
44519         automake.
44520         * modules/error (configure.ac): Likewise.
44521         * modules/propername (configure.ac): Likewise.
44522         * modules/vasprintf (configure.ac): Likewise.
44523         * modules/verror (configure.ac): Likewise.
44524         * modules/xprintf (configure.ac): Likewise.
44525         * modules/xvasprintf (configure.ac): Likewise.
44526
44527 2009-08-08  Bruno Haible  <bruno@clisp.org>
44528
44529         Avoid compilation error in C++ mode.
44530         * lib/gettimeofday.c (rpl_gettimeofday): Cast timezone argument.
44531         Reported by Sam Steingold <sds@gnu.org>.
44532
44533 2009-08-08  Bruno Haible  <bruno@clisp.org>
44534
44535         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Define HOST_NAME_MAX also
44536         for the various Unix platforms.
44537         * doc/posix-headers/limits.texi: Update platforms list regarding
44538         HOST_NAME_MAX.
44539         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
44540
44541 2009-08-07  Jim Meyering  <meyering@redhat.com>
44542
44543         selinux-at: fix typo in a comment
44544         * lib/selinux-at.h: s/getfileconat/getfilecon/ in a comment.
44545         Spotted by Paolo Bonzini.
44546
44547         selinux-at: remove redundant m4 code, add documentation
44548         * modules/selinux-at (configure.ac): Remove redundant code.
44549         LIB_SELINUX is already set via the dependent module, selinux-h.
44550         (Include): Add quotes around selinux-at.h.
44551         * lib/selinux-at.h: Add documentation.
44552         Reported by Bruno Haible in
44553         http://marc.info/?l=gnulib-bug&m=124958988300749
44554
44555 2009-08-07  Bruno Haible  <bruno@clisp.org>
44556
44557         Avoid link error on MacOS X 10.3 and 10.4.
44558         * lib/argp-ba.c (argp_program_bug_address): Explicitly zero-initialize
44559         on non-ELF systems.
44560         * lib/argp-pv.c (argp_program_version): Likewise.
44561         Reported by Simon Josefsson.
44562
44563 2009-08-07  Simon Josefsson  <simon@josefsson.org>
44564
44565         * tests/test-version-etc.sh: Use $EXEEXT.
44566
44567 2009-08-06  Joel E. Denny  <jdenny@clemson.edu>
44568
44569         update-copyright: update documentation to point to maint.mk
44570         * build-aux/update-copyright: Here.
44571
44572 2009-08-06  Jim Meyering  <meyering@redhat.com>
44573
44574         maint.mk: support update-copyright-local
44575         * top/maint.mk (update-copyright-local): Define place-holder.
44576         (update-copyright): Depend on $(update-copyright-local).
44577
44578 2009-08-06  Jim Meyering  <meyering@redhat.com>
44579
44580         selinux-at: new module
44581         Initially written for coreutils, this module will soon be
44582         used by findutils, too.
44583         * MODULES.html.sh [Misc]: Add selinux-at.
44584         * lib/selinux-at.h: New file, from coreutils.
44585         * lib/selinux-at.c: Likewise.
44586         * modules/selinux-at: Likewise.
44587         (License): Change from LGPL to GPL, since it depends
44588         on the GPL'd openat module.
44589
44590         doc: update README
44591         * README: Remove references to cogito.
44592         Remove cvs-repo-updating instructions from 2007.
44593         Don't imply that CVS is better if you have limited disk space.
44594
44595 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44596
44597         update-copyright: support C-style comments
44598         * build-aux/update-copyright: Implement and document.
44599         * tests/test-update-copyright.sh: Test.
44600
44601 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44602
44603         update-copyright: support omitted "(C)"
44604         * build-aux/update-copyright: Implement and document.  Also,
44605         allow variable whitespace before "(C)".
44606         * tests/test-update-copyright.sh: Test.
44607
44608 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44609
44610         update-copyright: don't trip on non-FSF copyright statements
44611         * build-aux/update-copyright: Fix so that the first correctly
44612         formatted FSF copyright statement is recognized no matter what
44613         appears before it.  Update documentation.
44614         * tests/test-update-copyright.sh: Test that.
44615
44616 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44617
44618         update-copyright: clean up code a little
44619         * build-aux/update-copyright: Append "_re" to the name of any
44620         variable holding a regular expression.
44621         Replace "old" and "new" with "stmt" in variable names.
44622         Do not accept 2-digit UPDATE_COPYRIGHT_YEAR, which was not
44623         handled correctly.
44624         Format code more consistently.
44625
44626 2009-08-05  Joel E. Denny  <jdenny@clemson.edu>
44627
44628         update-copyright-tests: improve portability
44629         * tests/test-update-copyright.sh: Use cmp if diff cannot handle
44630         -u or /dev/null.  Suggested by Jim Meyering and Eric Blake.
44631
44632 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44633
44634         update-copyright: support @copyright{} and &copy;
44635         * build-aux/update-copyright: Implement and document.
44636         * tests/test-update-copyright.sh: Test.
44637
44638 2009-08-04  Jim Meyering  <meyering@redhat.com>
44639
44640         update-copyright-tests: correctly test EOL=\r\n handling
44641         * tests/test-update-copyright.sh: Put \r at the end of some lines
44642         for the dos-eol tests.  Based on a patch by Joel E. Denny.
44643
44644         maint.mk: make update-copyright exclusion list more configurable
44645         * top/maint.mk (update-copyright): Default to excluding COPYING,
44646         but allow an override, in case someone does want to update that file.
44647
44648         maint.mk: don't update copyright date in COPYING
44649         * top/maint.mk (update-copyright): Exclude COPYING.
44650
44651         maint.mk: add a copyright-updating rule
44652         * top/maint.mk (update-copyright): New rule.
44653         Derived from coreutils/Makefile.am.
44654
44655         update-copyright: rename some variables
44656         * build-aux/update-copyright: Rename a few variables for clarity.
44657         Tweak syntax.  List Joel E. Denny as coauthor.
44658
44659 2009-08-03  Joel E. Denny  <jdenny@clemson.edu>
44660
44661         update-copyright: fix bug for 2-digit last year and add tests
44662         * build-aux/update-copyright: Fix bug.
44663         Use UPDATE_COPYRIGHT_YEAR from environment as current year if
44664         specified.
44665         * modules/update-copyright-tests: New
44666         * tests/test-update-copyright.sh: New.
44667
44668 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44669
44670         update-copyright: handle leading tabs in line prefix
44671         * build-aux/update-copyright: Count leading tabs as 8 spaces
44672         when computing margin.  This helps with the formatting of
44673         ChangeLogs, for example.
44674         Fix documentation a little.
44675
44676 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44677
44678         update-copyright: support EOL=\r\n
44679         * build-aux/update-copyright: Implement that.
44680
44681 2009-07-31  Joel E. Denny  <jdenny@clemson.edu>
44682
44683         update-copyright: automatically format copyright statements
44684         * build-aux/update-copyright: Implement that.
44685         Also, be a little more predictable and safer by always failing
44686         when the full copyright format is not perfectly recognized as an
44687         unbroken whole.  Discussed at
44688         <http://lists.gnu.org/archive/html/bug-gnulib/2009-07/msg00131.html>.
44689         Rewrite documentation.
44690
44691 2009-08-03  Bruno Haible  <bruno@clisp.org>
44692
44693         * m4/iconv.m4 (AM_ICONV): Fix displayed message with autoconf-2.64.
44694
44695 2009-08-02  Bruno Haible  <bruno@clisp.org>
44696
44697         Tests for module 'uname'.
44698         * modules/uname-tests: New file.
44699         * tests/test-uname.c: New file.
44700
44701         New module 'uname'.
44702         * lib/uname.c: New file.
44703         * m4/uname.m4: New file.
44704         * modules/uname: New file.
44705         * doc/posix-functions/uname.texi: Mention the new module.
44706
44707 2009-08-02  Bruno Haible  <bruno@clisp.org>
44708
44709         Tests for module 'sys_utsname'.
44710         * modules/sys_utsname-tests: New file.
44711         * tests/test-sys_utsname.c: New file.
44712
44713         New module 'sys_utsname'.
44714         * lib/sys_utsname.in.h: New file, based on glibc's <sys/utsname.h>.
44715         * m4/sys_utsname_h.m4: New file.
44716         * modules/sys_utsname: New file.
44717         * doc/posix-headers/sys_utsname.texi: Mention the new module.
44718
44719 2009-08-02  Bruno Haible  <bruno@clisp.org>
44720
44721         Implicitly initialize the sockets library.
44722         * lib/gethostname.c: Include sockets.h.
44723         (rpl_gethostname): Invoke gl_sockets_startup.
44724         * lib/socket.c: Include sockets.h.
44725         (rpl_socket): Invoke gl_sockets_startup.
44726         * modules/gethostname (Depends-on): Add sockets.
44727         * modules/socket (Depends-on): Likewise.
44728         * tests/test-poll.c: Don't include sockets.h.
44729         (main): Don't invoke gl_sockets_startup.
44730         * tests/test-select.c: Don't include sockets.h.
44731         (main): Don't invoke gl_sockets_startup.
44732
44733 2009-08-02  Bruno Haible  <bruno@clisp.org>
44734
44735         Allow multiple calls to gl_sockets_startup.
44736         * lib/sockets.c (initialized_sockets_version): New variable.
44737         (gl_sockets_startup): Do nothing if already called for this or a higher
44738         version.
44739         (gl_sockets_cleanup): Reset initialized_sockets_version.
44740
44741 2009-08-03  Simon Josefsson  <simon@josefsson.org>
44742
44743         * tests/test-argp-version-etc-1.sh: Use EXEEXT.  Don't fail on
44744         different project/version.
44745
44746 2009-08-02  Paolo Bonzini  <bonzini@gnu.org>
44747             Bruno Haible  <bruno@clisp.org>
44748
44749         Tests for module 'pipe-filter-gi'.
44750         * modules/pipe-filter-gi-tests: New file.
44751         * tests/test-pipe-filter-gi1.sh: New file.
44752         * tests/test-pipe-filter-gi1.c: New file.
44753         * tests/test-pipe-filter-gi2.sh: New file.
44754         * tests/test-pipe-filter-gi2-main.c: New file.
44755         * tests/test-pipe-filter-gi2-child.c: New file.
44756
44757         New module 'pipe-filter-gi'.
44758         * lib/pipe-filter-gi.c: New file.
44759         * modules/pipe-filter-gi: New file.
44760
44761 2009-08-02  Bruno Haible  <bruno@clisp.org>
44762             Paolo Bonzini  <bonzini@gnu.org>
44763
44764         Tests for module 'pipe-filter-ii'.
44765         * modules/pipe-filter-ii-tests: New file.
44766         * tests/test-pipe-filter-ii1.sh: New file.
44767         * tests/test-pipe-filter-ii1.c: New file.
44768         * tests/test-pipe-filter-ii2.sh: New file.
44769         * tests/test-pipe-filter-ii2-main.c: New file.
44770         * tests/test-pipe-filter-ii2-child.c: New file.
44771
44772         New module 'pipe-filter-ii'.
44773         * lib/pipe-filter.h: New file.
44774         * lib/pipe-filter-ii.c: New file.
44775         * lib/pipe-filter-aux.h: New file.
44776         * modules/pipe-filter-ii: New file.
44777
44778 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44779
44780         * lib/gc-libgcrypt.c: Change copyright to FSF.
44781         * lib/gc-gnulib.c: Likewise.
44782
44783 2009-08-02  Martin Lambers  <marlam@marlam.de>  (tiny change)
44784
44785         * lib/gethostname.c: Include limits.h.
44786
44787 2009-08-02  Simon Josefsson  <simon@josefsson.org>
44788             Bruno Haible  <bruno@clisp.org>
44789
44790         Ensure HOST_NAME_MAX as part of the gethostname module.
44791         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): On native Windows platforms,
44792         define also HOST_NAME_MAX.
44793         * tests/test-gethostname.c: Include <limits.h>.
44794         (main): Check also HOST_NAME_MAX.
44795         * doc/posix-headers/limits.texi: Document the mingw problem.
44796
44797 2009-08-02  Bruno Haible  <bruno@clisp.org>
44798
44799         * lib/gethostname.c (gethostname): Fix handling of large len argument.
44800         Add comments.
44801
44802 2009-03-31  Simon Josefsson  <simon@josefsson.org>
44803
44804         * lib/gethostname.c: Add Windows wrapper.
44805         * m4/gethostname.m4: Look for gethostname in -lws2_32.
44806         * modules/gethostname: Depend on sys_socket & errno, for also
44807         added lib/w32sock.h.  Add GETHOSTNAME_LIB link directive.
44808         * modules/gethostname-tests: Link to @GETHOSTNAME_LIB@.
44809
44810 2009-07-31  Jim Meyering  <meyering@redhat.com>
44811
44812         getloadavg: fix symbol name in comment
44813         * lib/getloadavg.c: Correct a typo I introduced when adding
44814         comments to Matt's change: s/NLIST_POINTER/N_NAME_POINTER/.
44815         Matt Kraai spotted the problem.
44816
44817 2009-07-29  Matt Kraai  <mkraai@beckman.com>
44818
44819         getloadavg: check whether n_name is a pointer, for QNX 6.4.1
44820         * lib/getloadavg.c (getloadavg): Use the strcpy-into-nlist.n_name
44821         code also if ! defined N_NAME_POINTER.
44822         * m4/getloadavg.m4 (gl_GETLOADAVG): Add a link-test for N_NAME_POINTER.
44823         This is required on QNX 6.4.1, where /usr/include/nlist.h exists,
44824         but the n_name member is a 12-byte array.
44825
44826 2009-07-29  Joel E. Denny  <jdenny@clemson.edu>
44827
44828         update-copyright: generalize comment handling
44829         * build-aux/update-copyright: Handle copyright statements
44830         within more comment styles.
44831         Document usage.
44832         Report any file with an external copyright holder or parse failure.
44833
44834 2009-07-29  Jim Meyering  <meyering@redhat.com>
44835
44836         mktime: correct setting of REPLACE_MKTIME
44837         * m4/mktime.m4 (gl_FUNC_MKTIME): Set REPLACE_MKTIME=0, when required.
44838
44839         update-copyright: new module
44840         * modules/update-copyright: New file.
44841         * build-aux/update-copyright: New file.
44842         * MODULES.html.sh (maint+release support): Add update-copyright.
44843
44844 2009-07-27  Bruno Haible  <bruno@clisp.org>
44845
44846         Fix compilation error when <ctime> is used and mktime is replaced.
44847         * lib/time.in.h (mktime): New declaration.
44848         * m4/mktime.m4 (gl_FUNC_MKTIME): Require gl_HEADER_TIME_H_DEFAULTS. Set
44849         REPLACE_MKTIME instead of defining mktime in config.h.
44850         * m4/time_h.m4 (gl_HEADER_TIME_H_DEFAULTS): Initialize REPLACE_MKTIME.
44851         * modules/time (Makefile.am): Substitute REPLACE_MKTIME.
44852         Reported by Ross McFarland <rwmcfa1@neces.com>.
44853
44854 2009-07-27  Bruno Haible  <bruno@clisp.org>
44855
44856         * lib/math.in.h (cosl, logl, sinl): Undefine before declaring it.
44857         Reported by Matt Kraai <mkraai@beckman.com>.
44858
44859 2009-07-25  Jim Meyering  <meyering@redhat.com>
44860
44861         maint.mk: avoid warnings about missing files
44862         * top/maint.mk (PREV_VERSION): Suppress stderr, to hide a
44863         diagnostic when .prev-version does not exist.
44864         (_cfg_mk): Define, so it can be empty when cfg.mk does not exist.
44865         (syntax-check-rules): Use $(_cfg_mk) to avoid a diagnostic about
44866         nonexistent cfg.mk.
44867         Suggestions from Simon Josefsson.
44868
44869 2009-07-25  Bruno Haible  <bruno@clisp.org>
44870
44871         * lib/math.in.h (cosl, logl, sinl): Don't declare if they are already
44872         defined as macros. Needed on QNX 6.4.1.
44873         Reported by Matt Kraai <mkraai@beckman.com>.
44874
44875 2009-07-23  Jim Meyering  <meyering@redhat.com>
44876
44877         maint.mk: invoke "make dist" with a working value of XZ_OPT
44878         * top/maint.mk (vc-dist): Use no "-" in the value of XZ_OPT.
44879
44880 2009-07-22  Matt Kraai  <mkraai@beckman.com>  (tiny change)
44881
44882         Make fseeko.c compile on QNX.
44883         * lib/fseeko.c (rpl_fseeko): Use the numerical value of _MWRITE.
44884
44885 2009-07-22  Peter Simons  <simons@cryp.to>
44886
44887         C++: wrap md2,md5,sha1,etc. function declarations in extern "C" scope
44888         * lib/md2.h [__cplusplus]: Wrap declarations in extern "C" scope.
44889         * lib/md4.h: Likewise.
44890         * lib/md5.h: Likewise.
44891         * lib/sha1.h: Likewise.
44892         * lib/sha256.h: Likewise.
44893         * lib/sha512.h: Likewise.
44894
44895         tests-sha1: don't assign literal string to 'char *' variable
44896         * tests/test-sha1.c (main): Declare locals with "const" to match
44897         attributes of the right hand side.
44898
44899 2009-07-21  Eric Blake  <ebb9@byu.net>
44900
44901         dup2: fix more mingw problems
44902         * lib/dup2.c (rpl_dup2) [_WIN32]: Avoid hanging when duplicating
44903         fd to itself.
44904         * doc/posix-functions/dup2.texi (dup2): Document the bug.
44905         * lib/unistd.in.h (dup2) [REPLACE_FCHDIR]: Avoid name collision.
44906         * lib/fchdir.c (dup2): Manage preprocessor macros correctly.
44907         (rpl_dup2_fchdir): Rename from rpl_dup2, and let dup2 module take
44908         care of mingw bugs.
44909
44910 2009-07-21  Jim Meyering  <meyering@redhat.com>
44911
44912         vc-list-files: avoid failure when /bin/sh is dash
44913         * build-aux/vc-list-files: Avoid a shell portability problem with dash.
44914         On some Debian based systems, /bin/sh is a symlink to dash, and running
44915         this command would omit the "/" following each 'tests' prefix:
44916           dash -x build-aux/vc-list-files -C . tests
44917         That is because bash and dash work differently:
44918           $ for i in bash dash; do $i -c 'a=odd; a=ok b=$a; echo '$i' $b'; done
44919           bash ok
44920           dash odd
44921
44922 2009-07-21  Eric Blake  <ebb9@byu.net>
44923
44924         dup2-tests: test previous patch
44925         * modules/dup2-tests: New file.
44926         * tests/test-dup2.c: Likewise.
44927         * tests/test-open.c (main): Avoid unspecified behavior.
44928         * tests/test-pipe.c (child_main): Use dup2 semantics to simplify
44929         test.
44930
44931         dup2: work around mingw and cygwin 1.5 bug
44932         * m4/dup2.m4 (gl_FUNC_DUP2): Detect mingw bug.
44933         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add witness.
44934         * modules/unistd (Makefile.am): Substitute it.
44935         * lib/unistd.in.h (dup2): Declare the replacement.
44936         * lib/dup2.c (dup2) [REPLACE_DUP2]: Implement it.
44937         * doc/posix-functions/dup2.texi (dup2): Document the bugs.
44938         * lib/fchdir.c (rpl_dup2): Don't collide with mingw replacement.
44939         * modules/execute (Depends-on): Add dup2.
44940         * modules/fseterr (Depends-on): Likewise.
44941         * modules/pipe (Depends-on): Likewise.
44942         * modules/posix_spawn-internal (Depends-on): Likewise.
44943
44944 2009-07-21  Bruno Haible  <bruno@clisp.org>
44945
44946         * modules/.gitattributes: New file.
44947
44948 2009-07-20  Bruno Haible  <bruno@clisp.org>
44949
44950         * tests/test-pipe.c (BACKUP_STDERR_FILENO): New macro.
44951         (main): Use it.
44952
44953 2009-07-20  Eric Blake  <ebb9@byu.net>
44954
44955         test-pipe: make a bit more robust.
44956         * tests/test-pipe.c (myerr): Allow error messages regardless of
44957         what we do to stderr.
44958         (test_pipe): Rearrange to avoid deadlock.
44959         (child_main): Try a larger read, to ensure we avoided deadlock.
44960         * lib/pipe.c (create_pipe) [_WIN32]: Fix comment.
44961         * lib/pipe.h (create_pipe_bidi): Document potential for deadlock
44962         if misused.
44963
44964 2009-07-19  Jim Meyering  <meyering@redhat.com>
44965
44966         fts: avoid false-positive cycle-detection
44967         * lib/fts.c (fts_read): Reinitialize cycle-detection data structures
44968         for each new command line argument.
44969
44970 2009-07-19  Bruno Haible  <bruno@clisp.org>
44971
44972         Fix build error on mingw with the modules sys_select and unistd.
44973         * modules/acl-tests (Depends-on): Add close.
44974         * modules/binary-io-tests (Depends-on): Likewise.
44975         * modules/closein-tests (Depends-on): Likewise.
44976         * modules/flock-tests (Depends-on): Likewise.
44977         * modules/fsync-tests (Depends-on): Likewise.
44978         * modules/lseek-tests (Depends-on): Likewise.
44979         * modules/pipe-tests (Depends-on): Likewise.
44980         * modules/posix_spawn-tests (Depends-on): Likewise.
44981         * modules/posix_spawnp-tests (Depends-on): Likewise.
44982         * modules/stat-time-tests (Depends-on): Likewise.
44983         * modules/yesno-tests (Depends-on): Likewise.
44984
44985 2009-07-19  Bruno Haible  <bruno@clisp.org>
44986
44987         Unify conditionals.
44988         * lib/pipe.h: Detect native Win32 by looking at _WIN32 and __WIN32__
44989         macros, not at the compiler macros.
44990         * lib/pipe.c: Likewise.
44991         * lib/execute.c: Likewise.
44992         * lib/spawni.c: Likewise.
44993
44994 2009-07-19  Bruno Haible  <bruno@clisp.org>
44995
44996         Fix handling of closed stdin/stdout/stderr on mingw.
44997         * lib/w32spawn.h: Include unistd.h.
44998         (dup_noinherit): Return -1 if the old handle is invalid. Allocate new
44999         file descriptor with O_NOINHERIT flag.
45000         (fd_safer_noinherit): New function, based on fd-safer.c.
45001         (dup_safer_noinherit): New function, based on dup-safer.c.
45002         (undup_safer_noinherit): New function.
45003         * lib/execute.c (execute) [WIN32]: Use dup_safer_noinherit instead of
45004         dup_noinherit. Use undup_safer_noinherit instead of dup2 and close.
45005         * lib/pipe.c (create_pipe) [WIN32]: Likewise. Use fd_safer_noinherit
45006         instead of fd_safer.
45007         * tests/test-pipe.c: Include <windows.h>.
45008         (child_main) [WIN32]: Test the handle of STDERR_FILENO, not its close()
45009         result.
45010
45011         * tests/test-pipe.c (child_main, parent_main): New functions, extracted
45012         from main.
45013         (test_pipe): Pass an extra argument for disambiguation.
45014         (main): Invoke parent_main or child_main.
45015
45016         * tests/test-pipe.c (test_pipe): Pass slave_process = true argument
45017         consistently.
45018
45019 2009-07-18  Eric Blake  <ebb9@byu.net>
45020
45021         test-pipe: fix mingw build
45022         * tests/test-pipe.c (main): Avoid fcntl on mingw.
45023
45024 2009-07-18  Bruno Haible  <bruno@clisp.org>
45025
45026         * modules/pipe-tests (Makefile.am): Fix typo.
45027
45028 2009-07-18  Eric Blake  <ebb9@byu.net>
45029
45030         error: fix mingw build
45031         * lib/error.c (error, error_at_line): Avoid fcntl on mingw.
45032         Reported by Bruno Haible.
45033
45034         error: avoid undefined use of stdout
45035         * lib/error.c (error, error_at_line): Check that fd 1 is open
45036         before flushing stdout.  Avoids a crash on cygwin when libsigsegv
45037         is handling faults and the close_stdout module wants to report the
45038         detection of closed stdout as an error.
45039
45040 2009-07-17  Eric Blake  <ebb9@byu.net>
45041
45042         pipe: be robust in face of closed fds
45043         * lib/pipe.c (create_pipe): Closed standard descriptors in parent
45044         should cause child to misbehave.
45045         * modules/pipe-tests: New module.
45046         * tests/test-pipe.c: New file.
45047         * tests/test-pipe.sh: New file.
45048         Reported by Akim Demaille.
45049
45050 2009-07-14  Bruno Haible  <bruno@clisp.org>
45051
45052         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Guess it works on glibc systems.
45053         Reported by anonymous kc.
45054
45055 2009-07-07  Jim Meyering  <meyering@redhat.com>
45056
45057         maint.mk: don't look for translatable strings in *.m4 or *.mk
45058         * top/maint.mk (sc_po_check): Skip *.m4 and *.mk files,
45059         when searching for translatable strings.
45060
45061 2009-07-05  Jim Meyering  <meyering@redhat.com>
45062
45063         remove superfluous parentheses in STREQ definition
45064         * tests/test-argv-iter.c (STREQ): Remove redundant parentheses.
45065         * lib/getugroups.c (STREQ): Likewise.
45066         * lib/fnmatch.c (STREQ): Likewise.
45067         Spotted by Bruno Haible.
45068
45069 2009-07-04  Jim Meyering  <meyering@redhat.com>
45070
45071         argv-iter: new module
45072         * MODULES.html.sh: Add argv-iter.
45073         * lib/argv-iter.c, lib/argv-iter.h: New files.
45074         * modules/argv-iter: New file.
45075         * modules/argv-iter-tests: New file.
45076         * tests/test-argv-iter.c: Test it.
45077
45078 2009-07-04  Bruno Haible  <bruno@clisp.org>
45079
45080         Fix assertion.
45081         * lib/git-merge-changelog.c (compute_mapping): In the case where file1
45082         contains more exact copies of a given entry than file2, leave the extra
45083         copies unpaired rather than aborting.
45084         Reported by Eric Blake.
45085
45086 2009-07-02  Bruno Haible  <bruno@clisp.org>
45087
45088         Speedup git-merge-changelog for git cherry-pick.
45089         * lib/git-merge-changelog.c (struct entries_mapping): New type.
45090         (entries_mapping_get): New function, extracted from compute_mapping.
45091         (entries_mapping_reverse_get): New function.
45092         (compute_mapping): Add a 'full' argument. Return the result in a
45093         'struct entries_mapping'.
45094         (main): Update. Access the mappings through entries_mapping_get.
45095         Reported by Eric Blake.
45096
45097 2009-07-02  Bruno Haible  <bruno@clisp.org>
45098
45099         * lib/git-merge-changelog.c (compute_mapping): Fix determination of
45100         best_i.
45101
45102 2009-07-02  Bruno Haible  <bruno@clisp.org>
45103
45104         Speed up approximate search for matching ChangeLog entries.
45105         * lib/git-merge-changelog.c (entry_fstrcmp): Add a lower_bound
45106         argument. Call fstrcmp_bounded instead of fstrcmp.
45107         (compute_mapping, try_split_merged_entry, main): Update callers.
45108
45109 2009-07-02  Bruno Haible  <bruno@clisp.org>
45110
45111         * lib/git-merge-changelog.c (main): Add comment about git cherry-pick.
45112
45113 2009-06-30  Bruno Haible  <bruno@clisp.org>
45114
45115         Reduce the number of uc_is_cased calls.
45116         * lib/unicase.h (casing_suffix_context_t): Add
45117         'first_char_except_ignorable' field.
45118         * lib/unicase/context.h (SCC_FINAL_SIGMA_MASK): Remove macro.
45119         (SCC_MORE_ABOVE_MASK, SCC_BEFORE_DOT_MASK): Update.
45120         * lib/unicase/empty-suffix-context.c (unicase_empty_suffix_context):
45121         Update initializer.
45122         * lib/unicase/u-casemap.h (FUNC): Don't invoke uc_is_cased on
45123         case-ignorable characters.
45124         * lib/unicase/u-ct-totitle.h (FUNC): Likewise.
45125         * lib/unicase/u-suffix-context.h (FUNC2): Don't call uc_is_cased here.
45126         * modules/unicase/u8-suffix-context (Depends-on): Remove unicase/cased.
45127         * modules/unicase/u16-suffix-context (Depends-on): Likewise.
45128         * modules/unicase/u32-suffix-context (Depends-on): Likewise.
45129
45130 2009-06-30  Bruno Haible  <bruno@clisp.org>
45131
45132         Tests for module 'unicase/ignorable'.
45133         * modules/unicase/ignorable-tests: New file.
45134         * tests/unicase/test-ignorable.c: New file, generated by
45135         gen-uni-tables.
45136
45137         Tests for module 'unicase/cased'.
45138         * modules/unicase/cased-tests: New file.
45139         * tests/unicase/test-cased.c: New file, generated by gen-uni-tables.
45140         * tests/unicase/test-predicate-part1.h: New file, derived from
45141         tests/unictype/test-predicate-part1.h.
45142         * tests/unicase/test-predicate-part2.h: New file, same as
45143         tests/unictype/test-predicate-part2.h.
45144
45145         Fix evaluation of "Before C" condition of FINAL_SIGMA.
45146         * lib/gen-uni-tables.c (is_cased, is_case_ignorable): New functions.
45147         (output_casing_properties): New function.
45148         (main): Call it.
45149         * lib/unicase/cased.h: New file, generated by gen-uni-tables.
45150         * lib/unicase/cased.c: Include unictype/bitmap.h.
45151         (uc_is_cased): Define through a bitmap lookup.
45152         * lib/unicase/ignorable.h: New file, generated by gen-uni-tables.
45153         * lib/unicase/ignorable.c: Include unictype/bitmap.h.
45154         (uc_is_case_ignorable): Define through a bitmap lookup.
45155         * modules/unicase/cased (Files): Add lib/unicase/cased.h,
45156         lib/unictype/bitmap.h.
45157         (Depends-on): Add inline. Clean up.
45158         * modules/unicase/ignorable (Files): Add lib/unicase/ignorable.h,
45159         lib/unictype/bitmap.h.
45160         (Depends-on): Add inline. Clean up.
45161         * tests/unicase/test-u8-tolower.c (main): Add more tests of FINAL_SIGMA
45162         recognition.
45163         * tests/unicase/test-u16-tolower.c (main): Likewise.
45164         * tests/unicase/test-u32-tolower.c (main): Likewise.
45165
45166 2009-06-30  Bruno Haible  <bruno@clisp.org>
45167
45168         * lib/unicase/u8-casemap.c: Don't include uniwbrk.h.
45169         * lib/unicase/u16-casemap.c: Likewise.
45170         * lib/unicase/u32-casemap.c: Likewise.
45171
45172 2009-06-29  Bruno Haible  <bruno@clisp.org>
45173
45174         Define u32_casefold as a wrapper around u32_ct_casefold.
45175         * lib/unicase/u32-casefold.c: Update.
45176         * modules/unicase/u32-casefold (Depends-on): Add
45177         unicase/u32-ct-casefold, unicase/empty-prefix-context,
45178         unicase/empty-suffix-context. Clean up.
45179
45180         Define u16_casefold as a wrapper around u16_ct_casefold.
45181         * lib/unicase/u16-casefold.c: Update.
45182         * modules/unicase/u16-casefold (Depends-on): Add
45183         unicase/u16-ct-casefold, unicase/empty-prefix-context,
45184         unicase/empty-suffix-context. Clean up.
45185
45186         Define u8_casefold as a wrapper around u8_ct_casefold.
45187         * lib/unicase/u-casefold.h (FUNC): Delegate to U_CT_CASEFOLD.
45188         * lib/unicase/u8-casefold.c: Update.
45189         * modules/unicase/u8-casefold (Depends-on): Add unicase/u8-ct-casefold,
45190         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45191
45192         Define u32_totitle as a wrapper around u32_ct_totitle.
45193         * lib/unicase/u32-totitle.c: Update.
45194         * modules/unicase/u32-totitle (Depends-on): Add unicase/u32-ct-totitle,
45195         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45196
45197         Define u16_totitle as a wrapper around u16_ct_totitle.
45198         * lib/unicase/u16-totitle.c: Update.
45199         * modules/unicase/u16-totitle (Depends-on): Add unicase/u16-ct-totitle,
45200         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45201
45202         Define u8_totitle as a wrapper around u8_ct_totitle.
45203         * lib/unicase/u-totitle.h (is_cased, is_case_ignorable): Remove
45204         functions.
45205         (FUNC): Delegate to U_CT_TOTITLE.
45206         * lib/unicase/u8-totitle.c: Update.
45207         * modules/unicase/u8-totitle (Depends-on): Add unicase/u8-ct-totitle,
45208         unicase/empty-prefix-context, unicase/empty-suffix-context. Clean up.
45209
45210         * lib/unicase/u32-tolower.c (u32_tolower): Update u32_casemap
45211         invocation.
45212         * modules/unicase/u32-tolower (Depends-on): Add
45213         unicase/empty-prefix-context, unicase/empty-suffix-context.
45214
45215         * lib/unicase/u16-tolower.c (u16_tolower): Update u16_casemap
45216         invocation.
45217         * modules/unicase/u16-tolower (Depends-on): Add
45218         unicase/empty-prefix-context, unicase/empty-suffix-context.
45219
45220         * lib/unicase/u8-tolower.c (u8_tolower): Update u8_casemap invocation.
45221         * modules/unicase/u8-tolower (Depends-on): Add
45222         unicase/empty-prefix-context, unicase/empty-suffix-context.
45223
45224         * lib/unicase/u32-toupper.c (u32_toupper): Update u32_casemap
45225         invocation.
45226         * modules/unicase/u32-toupper (Depends-on): Add
45227         unicase/empty-prefix-context, unicase/empty-suffix-context.
45228
45229         * lib/unicase/u16-toupper.c (u16_toupper): Update u16_casemap
45230         invocation.
45231         * modules/unicase/u16-toupper (Depends-on): Add
45232         unicase/empty-prefix-context, unicase/empty-suffix-context.
45233
45234         * lib/unicase/u8-toupper.c (u8_toupper): Update u8_casemap invocation.
45235         * modules/unicase/u8-toupper (Depends-on): Add
45236         unicase/empty-prefix-context, unicase/empty-suffix-context.
45237
45238         New module 'unicase/u32-ct-casefold'.
45239         * lib/unicase/u32-ct-casefold.c: New file.
45240         * modules/unicase/u32-ct-casefold: New file.
45241
45242         New module 'unicase/u16-ct-casefold'.
45243         * lib/unicase/u16-ct-casefold.c: New file.
45244         * modules/unicase/u16-ct-casefold: New file.
45245
45246         New module 'unicase/u8-ct-casefold'.
45247         * lib/unicase/u8-ct-casefold.c: New file.
45248         * lib/unicase/u-ct-casefold.h: New file, derived from
45249         lib/unicase/u-casefold.h.
45250         * modules/unicase/u8-ct-casefold: New file.
45251
45252         New module 'unicase/u32-ct-totitle'.
45253         * lib/unicase/u32-ct-totitle.c: New file.
45254         * modules/unicase/u32-ct-totitle: New file.
45255
45256         New module 'unicase/u16-ct-totitle'.
45257         * lib/unicase/u16-ct-totitle.c: New file.
45258         * modules/unicase/u16-ct-totitle: New file.
45259
45260         New module 'unicase/u8-ct-totitle'.
45261         * lib/unicase/u8-ct-totitle.c: New file.
45262         * lib/unicase/u-ct-totitle.h: New file, derived from
45263         lib/unicase/u-totitle.h.
45264         * modules/unicase/u8-ct-totitle: New file.
45265
45266         New module 'unicase/u32-ct-tolower'.
45267         * lib/unicase/u32-ct-tolower.c: New file.
45268         * modules/unicase/u32-ct-tolower: New file.
45269
45270         New module 'unicase/u16-ct-tolower'.
45271         * lib/unicase/u16-ct-tolower.c: New file.
45272         * modules/unicase/u16-ct-tolower: New file.
45273
45274         New module 'unicase/u8-ct-tolower'.
45275         * lib/unicase/u8-ct-tolower.c: New file.
45276         * modules/unicase/u8-ct-tolower: New file.
45277
45278         New module 'unicase/u32-ct-toupper'.
45279         * lib/unicase/u32-ct-toupper.c: New file.
45280         * modules/unicase/u32-ct-toupper: New file.
45281
45282         New module 'unicase/u16-ct-toupper'.
45283         * lib/unicase/u16-ct-toupper.c: New file.
45284         * modules/unicase/u16-ct-toupper: New file.
45285
45286         New module 'unicase/u8-ct-toupper'.
45287         * lib/unicase/u8-ct-toupper.c: New file.
45288         * modules/unicase/u8-ct-toupper: New file.
45289
45290         Add context arguments to u*_casemap functions.
45291         * lib/unicase/unicasemap.h: Include unicase.h.
45292         (u8_casemap, u16_casemap, u32_casemap): Add prefix_context and
45293         suffix_context arguments.
45294         * lib/unicase/u-casemap.h (is_cased, is_case_ignorable): Remove
45295         functions.
45296         (FUNC): Add prefix_context and suffix_context arguments. Use
45297         uc_is_cased and uc_is_case_ignorable.
45298         * lib/unicase/u8-casemap.c: Include caseprop.h and context.h.
45299         * lib/unicase/u16-casemap.c: Likewise.
45300         * lib/unicase/u32-casemap.c: Likewise.
45301         * modules/unicase/u8-casemap (Files): Add lib/unicase/context.h.
45302         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45303         * modules/unicase/u16-casemap (Files): Add lib/unicase/context.h.
45304         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45305         * modules/unicase/u32-casemap (Files): Add lib/unicase/context.h.
45306         (Depends-on): Add unicase/cased, unicase/ignorable. Clean up.
45307
45308         New module 'unicase/u32-suffix-context'.
45309         * lib/unicase/u32-suffix-context.c: New file.
45310         * modules/unicase/u32-suffix-context: New file.
45311
45312         New module 'unicase/u16-suffix-context'.
45313         * lib/unicase/u16-suffix-context.c: New file.
45314         * modules/unicase/u16-suffix-context: New file.
45315
45316         New module 'unicase/u8-suffix-context'.
45317         * lib/unicase/u8-suffix-context.c: New file.
45318         * lib/unicase/u-suffix-context.h: New file.
45319         * modules/unicase/u8-suffix-context: New file.
45320
45321         New module 'unicase/empty-suffix-context'.
45322         * lib/unicase/empty-suffix-context.c: New file.
45323         * modules/unicase/empty-suffix-context: New file.
45324
45325         New module 'unicase/u32-prefix-context'.
45326         * lib/unicase/u32-prefix-context.c: New file.
45327         * modules/unicase/u32-prefix-context: New file.
45328
45329         New module 'unicase/u16-prefix-context'.
45330         * lib/unicase/u16-prefix-context.c: New file.
45331         * modules/unicase/u16-prefix-context: New file.
45332
45333         New module 'unicase/u8-prefix-context'.
45334         * lib/unicase/u8-prefix-context.c: New file.
45335         * lib/unicase/u-prefix-context.h: New file.
45336         * lib/unicase/context.h: New file.
45337         * modules/unicase/u8-prefix-context: New file.
45338
45339         New module 'unicase/empty-prefix-context'.
45340         * lib/unicase/empty-prefix-context.c: New file.
45341         * modules/unicase/empty-prefix-context: New file.
45342
45343         New module 'unicase/ignorable'.
45344         * lib/unicase/ignorable.c: New file.
45345         * modules/unicase/ignorable: New file.
45346
45347         New module 'unicase/cased'.
45348         * lib/unicase/caseprop.h: New file.
45349         * lib/unicase/cased.c: New file.
45350         * modules/unicase/cased: New file.
45351
45352         New functions for case mapping of substrings.
45353         * lib/unicase.h (casing_prefix_context_t): New type.
45354         (unicase_empty_prefix_context): New variable.
45355         (u8_casing_prefix_context, u16_casing_prefix_context,
45356         u32_casing_prefix_context, u8_casing_prefixes_context,
45357         u16_casing_prefixes_context, u32_casing_prefixes_context): New
45358         declarations.
45359         (casing_suffix_context_t): New type.
45360         (unicase_empty_suffix_context): New variable.
45361         (u8_casing_suffix_context, u16_casing_suffix_context,
45362         u32_casing_suffix_context, u8_casing_suffixes_context,
45363         u16_casing_suffixes_context, u32_casing_suffixes_context,
45364         u8_ct_toupper, u16_ct_toupper, u32_ct_toupper, u8_ct_tolower,
45365         u16_ct_tolower, u32_ct_tolower, u8_ct_totitle, u16_ct_totitle,
45366         u32_ct_totitle, u8_ct_casefold, u16_ct_casefold, u32_ct_casefold): New
45367         declarations.
45368
45369 2009-06-28  Jim Meyering  <meyering@redhat.com>
45370
45371         boostrap: indent only with spaces
45372         * build-aux/bootstrap: Indent only with spaces, never TABs.
45373
45374         bootstrap: split long lines
45375         * build-aux/bootstrap: Keep line length < 80.
45376
45377         bootstrap: sync from coreutils
45378         * build-aux/bootstrap: Honor variables like $ACLOCAL, etc.,
45379         just as autoreconf does.  Verify a list of prerequisite
45380         package-name,version-number pairs if defined in bootstrap.conf.
45381         Refer to README-prereq, if prerequisites are not satisfied.
45382
45383 2009-06-27  Eric Blake  <ebb9@byu.net>
45384
45385         tests: add test for bogus NULL definition
45386         * tests/test-stdio.c: Ensure POSIX 2008 requirement on NULL.
45387         * tests/test-stdlib.c: Likewise.
45388         * tests/test-string.c: Likewise.
45389         * tests/test-locale.c: Likewise.
45390         * tests/test-unistd.c: Likewise.
45391         * modules/stdio-tests (Depends-on): Add verify.
45392         * modules/stdlib-tests (Depends-on): Likewise.
45393         * modules/string-tests (Depends-on): Likewise.
45394         * modules/locale-tests (Depends-on): Likewise.
45395         * modules/unistd-tests (Depends-on): Likewise.
45396
45397 2009-06-27  Paolo Bonzini  <bonzini@gnu.org>
45398
45399         * m4/selinux-context-h (gl_HEADERS_SELINUX_CONTEXT_H): Remove
45400         self-explaining comment.
45401         * m4/selinux-selinux-h: Update serial.
45402         (gl_LIBSELINUX): New macro, adding a warning for missing development
45403         packages to code extracted from...
45404         (gl_HEADERS_SELINUX_SELINUX_H): ... this one.  Require gl_LIBSELINUX.
45405         Add warning for missing development packages here, too.
45406
45407 2009-06-26  Paolo Bonzini  <bonzini@gnu.org>
45408
45409         * build-aux/bootstrap: Do not use GIT_CONFIG_LOCAL.
45410
45411 2009-06-25  Eric Blake  <ebb9@byu.net>
45412
45413         version-etc: fix regression
45414         * lib/version-etc.h (ATTRIBUTE_SENTINEL): Define for new enough
45415         gcc.
45416         (version_etc): Use it, to catch bugs with trailing NULL.
45417         * lib/version-etc.c (version_etc_arn): Delete unused argument.
45418         (version_etc_va): Fix logic bug.
45419         * modules/version-etc-tests: Add test.
45420         * tests/test-version-etc.c: New file.
45421         * tests/test-version-etc.sh: Likewise.
45422
45423 2009-06-25  Sam Steingold  <sds@gnu.org>
45424
45425         * mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): Include <stdlib.h>, for the
45426         mbtowc declaration.
45427
45428 2009-06-25  Eric Blake  <ebb9@byu.net>
45429
45430         fpurge: migrate into <stdio.h>
45431         * lib/fpurge.h: Delete...
45432         * lib/stdio.in.h (fpurge): ...and declare here, instead.
45433         * lib/fpurge.c (fpurge): Change declaring header.
45434         * modules/fpurge (Files): Drop deleted file.
45435         (Depends-on): Add stdio.
45436         (configure.ac): Set witness.
45437         * modules/stdio (Makefile.am): Support fpurge macros.
45438         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
45439         * m4/fpurge.m4 (gl_FUNC_FPURGE): Set appropriate variables.
45440         * lib/fflush.c: Update client.
45441         * tests/test-fpurge.c: Likewise.
45442         * NEWS: Mention the change.
45443
45444 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45445
45446         * lib/argp-version-etc.c (program_authors): Add const
45447         qualifier.
45448         * lib/version-etc.c: Fix typos in the comments.
45449         * modules/argp-version-etc: Depends on version-etc.
45450
45451 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45452
45453         argp-version-etc: new module.
45454
45455         * lib/argp-version-etc.c: New file.
45456         * lib/argp-version-etc.h: New file.
45457         * modules/argp-version-etc: New file.
45458         * modules/argp-version-etc-tests: New file.
45459         * tests/test-argp-version-etc.c: New test.
45460         * tests/test-argp-version-etc-1.sh: New test.
45461
45462 2009-06-25  Sergey Poznyakoff  <gray@gnu.org.ua>
45463
45464         Provide additional interfaces and documentation for version-etc
45465         module.
45466
45467         * lib/version-etc.c (version_etc_arn, version_etc_ar): New
45468         interfaces.
45469         * lib/version-etc.h (version_etc_arn, version_etc_ar): New
45470         prototypes.
45471
45472 2009-06-24  Bruno Haible  <bruno@clisp.org>
45473
45474         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Fix description of
45475         HAVE_LIB${NAME} macro.
45476         Reported by Sam Steingold <sds@gnu.org>.
45477
45478 2009-06-23  Simon Josefsson  <simon@josefsson.org>
45479
45480         * modules/hash-tests (test_hash_LDADD): Link to libintl when
45481         needed.
45482
45483 2009-06-21  Bruno Haible  <bruno@clisp.org>
45484
45485         Make two consecutive identical invocations of AC_LIB_HAVE_LINKFLAGS
45486         work.
45487         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Reset HAVE_LIB${NAME}
45488         together with LIB${NAME}, LTLIB${NAME}.
45489         Reported by Sam Steingold <sds@gnu.org>.
45490
45491 2009-06-20  Jim Meyering  <meyering@redhat.com>
45492
45493         tests: make sc_require_test_exit_idiom more generic
45494         * top/maint.mk (Exit_witness_file): New overridable variable.
45495         (sc_require_test_exit_idiom): Don't hard-code tests/test-lib.sh.
45496         Relax test for /^Exit \$fail$$/ to just /^Exit ./.
45497
45498 2009-06-19  Jim Meyering  <meyering@redhat.com>
45499
45500         hash: reverse order of src/dst parameters in an internal interface
45501         * lib/hash.c (transfer_entries): Reverse order of parameters to
45502         put DST before SRC.  Adjust callers.
45503
45504         tests: test-hash: avoid wholesale duplication
45505         * tests/test-hash.c (main): Don't copy/paste a 60-line loop.
45506         Instead, use a loop and add a single conditional.
45507
45508         tests: test-hash: allow seed selection via a command line argument
45509         * tests/test-hash.c (get_seed): New function.
45510         (main): Use it.
45511
45512 2009-06-19  Eric Blake  <ebb9@byu.net>
45513
45514         hash: avoid memory leak on allocation failure
45515         * lib/hash.c: (hash_rehash): Avoid memory leak on allocation
45516         failure.  Factor repeated algorithm...
45517         (transfer_entries): ...into new helper routine.
45518         (hash_delete): React to hash_rehash return value.
45519
45520         hash: reduce memory pressure in hash_rehash no-op case
45521         * lib/hash.c (next_prime): Avoid overflow.
45522         (hash_initialize): Factor bucket size computation...
45523         (compute_bucket_size): ...into new helper function.
45524         (hash_rehash): Use new function and open coding to reduce memory
45525         pressure, and avoid a memory leak in USE_OBSTACK code.
45526         Reported by Jim Meyering.
45527
45528 2009-06-18  Eric Blake  <ebb9@byu.net>
45529
45530         hash: make rotation more obvious
45531         * modules/hash (Depends-on): Add bitrotate and stdint.
45532         * lib/bitrotate.h (rotl_sz, rotr_sz): New functions.
45533         * lib/hash.c (headers): Drop limits.h.  Add stdint.h.
45534         (SIZE_MAX): Rely on headers for definition.
45535         (hash_string) [USE_DIFF_HASH]: Use rotl_sz.
45536         (raw_hasher): Use rotr_sz.
45537         Suggested by Jim Meyering.
45538
45539         hash: fix memory leak in last patch
45540         * lib/hash.c (hash_rehash): Avoid memory leak.
45541
45542         hash: avoid no-op rehashing
45543         * lib/hash.c (hash_rehash): Recognize useless rehash attempts.
45544
45545         hash: provide default callback functions
45546         * lib/hash.c (raw_hasher, raw_comparator): New functions.
45547         (hash_initialize): Use them as defaults.
45548         * tests/test-hash.c (main): Test this.
45549
45550         hash: minor optimization
45551         * lib/hash.c (hash_lookup, hash_find_entry): Avoid function call
45552         when possible.
45553         (hash_initialize): Document this promise.
45554         (hash_do_for_each, hash_clear, hash_free): Use C89 syntax.
45555         * tests/test-hash.c (hash_compare_strings): Test this.
45556
45557 2009-06-18  Bruno Haible  <bruno@clisp.org>
45558
45559         * m4/strstr.m4 (gl_FUNC_STRSTR): Skip linear time test if strstr is
45560         going to be replaced anyway.
45561
45562 2009-06-18  Bruno Haible  <bruno@clisp.org>
45563
45564         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Invoke AC_LIBOBJ only
45565         in one place.
45566         (gl_FUNC_STRCASESTR): Skip linear time test if strcasestr is going to
45567         be replaced anyway.
45568
45569 2009-06-18  Eric Blake  <ebb9@byu.net>
45570
45571         hash: check for resize before insertion
45572         * lib/hash.c (hash_insert): Check whether bucket usage exceeds
45573         threshold before insertion, so that a pathological hash_rehash
45574         that fills every bucket can still trigger another rehash.
45575
45576 2009-06-18  Jim Meyering  <meyering@redhat.com>
45577
45578         hash-tests: add a loop around the small tests
45579         * tests/test-hash.c (main): Repeat small tests with selected
45580         small initial table sizes.
45581
45582 2009-06-17  Eric Blake  <ebb9@byu.net>
45583
45584         hash: minor cleanups
45585         * lib/hash.h (hash_entry): Make opaque, by moving...
45586         * lib/hash.c (hash_entry): ...here.
45587         (hash_insert): Clarify restrictions on what can be inserted.
45588         (hash_get_next): Clarify when it is safe to remove an element
45589         during traversal.
45590         (check_tuning): Skip verification when tuning is known safe.
45591         (hash_initialize): Clarify restrictions on tuning.
45592
45593 2009-06-17  Jim Meyering  <jim@meyering.net>
45594         and Eric Blake  <ebb9@byu.net>
45595
45596         hash-tests: new module
45597         * modules/hash-tests: New file.
45598         * tests/test-hash.c: New file.
45599
45600 2009-06-17  Eric Blake  <ebb9@byu.net>
45601
45602         strstr-simple: document new module
45603         * MODULES.html.sh: Document new module.
45604
45605         strstr, strcasestr: replace on platforms with broken memchr
45606         * modules/strstr: Split into...
45607         * modules/strstr-simple: ...new module that does not care about
45608         performance, but does care about glibc bug.
45609         * m4/strstr.m4 (gl_FUNC_STRSTR): Split...
45610         (gl_FUNC_STRSTR_SIMPLE): ...into new macro, which replaces strstr
45611         if platform memchr is broken, per Debian bug 521737.
45612         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): React to broken
45613         memchr.
45614         * m4/memchr.m4 (gl_FUNC_MEMCHR): Only expand once.
45615         * doc/posix-functions/strstr.texi (strstr): Document the fix.
45616         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
45617         * modules/mountlist (Depends-on): Add strstr-simple.
45618         * modules/gen-uni-tables (Depends-on): Likewise.
45619         * modules/argz (Depends-on): Add strstr.
45620
45621 2009-06-17  Bruno Haible  <bruno@clisp.org>
45622
45623         * modules/posix_spawn-internal (Depends-on): Add errno.
45624
45625 2009-06-17  Bruno Haible  <bruno@clisp.org>
45626
45627         Define missing ESTALE on Interix 3.5.
45628         * lib/errno.in.h (ESTALE): Assign a value if missing.
45629         * lib/strerror.c (rpl_strerror): Handle missing ESTALE and ECANCELED.
45630         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Also test whether ESTALE is
45631         missing.
45632         * doc/posix-headers/errno.texi: Mention the Interix bug.
45633         Reported by Jay Krell <jay.krell@cornell.edu> via Eric Blake.
45634
45635 2009-06-15  Eric Blake  <ebb9@byu.net>
45636
45637         memchr, memchr2: add valgrind exception
45638         * lib/memchr.valgrind: New file.
45639         * lib/memchr2.valgrind: New file.
45640         * modules/memchr (Files): Distribute valgrind file.
45641         * modules/memchr2 (Files): Likewise.
45642
45643         docs: memchr is no longer obsolete
45644         * MODULES.html.sh: Move memchr from obsolete to string.h section.
45645         * lib/string.in.h (memchr): Simplify logic.
45646
45647 2009-06-14  Jim Meyering  <meyering@redhat.com>
45648
45649         link-follow: fix the "checking..." message to not mention trailing slash
45650         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): This test has
45651         never considered trailing slashes.
45652
45653 2009-06-14  Bruno Haible  <bruno@clisp.org>
45654
45655         * m4/memchr.m4: Mention also the bug on IA-64.
45656         * doc/posix-functions/memchr.texi: Likewise.
45657
45658 2009-06-12  Eric Blake  <ebb9@byu.net>
45659
45660         memchr: detect broken x86_64 and alpha implementations
45661         * modules/memchr-tests (Depends-on): Move mmap detection...
45662         * modules/memchr (Depends-on): ...here.
45663         (configure.ac): Set indicator.
45664         * lib/string.in.h (memchr): Declare replacement.
45665         * modules/string (Makefile.am): Trigger replacement.
45666         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
45667         * m4/memchr.m4 (gl_FUNC_MEMCHR): Use mmap to detect platform
45668         bugs.
45669         * doc/posix-functions/memchr.texi (memchr): Document the bug.
45670         * modules/getpagesize (License): Relax license.
45671
45672 2009-06-11  Bruno Haible  <bruno@clisp.org>
45673
45674         * lib/idpriv.h: Add more references.
45675
45676 2009-06-08  Bruno Haible  <bruno@clisp.org>
45677
45678         Tests for module 'idpriv-droptemp'.
45679         * modules/idpriv-droptemp-tests: New file.
45680         * tests/test-idpriv-droptemp.sh: New file.
45681         * tests/test-idpriv-droptemp.su.sh: New file.
45682         * tests/test-idpriv-droptemp.c: New file.
45683
45684         New module 'idpriv-droptemp'.
45685         * lib/idpriv-droptemp.c: New file.
45686         * modules/idpriv-droptemp: New file.
45687
45688 2009-06-08  Bruno Haible  <bruno@clisp.org>
45689
45690         Tests for module 'idpriv-drop'.
45691         * modules/idpriv-drop-tests: New file.
45692         * tests/test-idpriv-drop.sh: New file.
45693         * tests/test-idpriv-drop.su.sh: New file.
45694         * tests/test-idpriv-drop.c: New file.
45695
45696         New module 'idpriv-drop'.
45697         * lib/idpriv.h: New file.
45698         * lib-idpriv-drop.c: New file.
45699         * m4/idpriv.m4: New file.
45700         * modules/idpriv-drop: New file.
45701
45702 2009-06-08  Bruno Haible  <bruno@clisp.org>
45703
45704         * modules/unistdio/u8-vasnprintf (Depends-on): Add memchr.
45705         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
45706         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
45707         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
45708         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
45709         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
45710         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
45711
45712 2009-06-08  Eric Blake  <ebb9@byu.net>
45713
45714         test-strstr: use memory fence, when possible
45715         * tests/test-strstr.c (main): Use memory fence, in order to be
45716         more likely to trigger Debian bug 521737.
45717         * modules/strstr-tests (Files): Pull in additional files.
45718
45719         memchr: no longer obsolete, for wider field testing
45720         * modules/memchr (Status, Notice): Delete, this module is no
45721         longer obsolete.
45722         * modules/vasnprintf (Depends-on): Add memchr.
45723
45724 2009-06-07  Jim Meyering  <meyering@redhat.com>
45725
45726         hash: declare some functions with the warn_unused_result attribute
45727         * lib/hash.h (__attribute__, ATTRIBUTE_WUR): Define.
45728
45729 2009-06-07  Bruno Haible  <bruno@clisp.org>
45730
45731         * tests/test-alignof.c: Don't test int64_t if it does not exist.
45732         Reported by Eric Blake.
45733
45734 2009-06-06  Eric Blake  <ebb9@byu.net>
45735
45736         test-alignof: fix typo with long double
45737         * tests/test-alignof.c (CHECK): Use longdouble typedef to avoid
45738         compiler error.
45739
45740 2009-06-06  Neil Jerram  <neil@ossau.uklinux.net>  (tiny change)
45741
45742         Escape non-texinfo { and }s.
45743         * doc/ld-output-def.texi (Visual Studio Compatibility): Fix
45744         markup error.
45745
45746 2009-06-04  Jim Meyering  <meyering@redhat.com>
45747
45748         gitlog-to-changelog: don't infloop on an empty commit log
45749         * build-aux/gitlog-to-changelog: Warn about an empty log message.
45750         Reported by Boris Petersen <transacid@centerim.org>.
45751
45752 2009-06-03  Mike Frysinger  <vapier@gentoo.org>
45753
45754         version-etc: extend for packagers
45755         Add three new configure options, intended for packagers:
45756           --with-packager="packager name"
45757           --with-packager-version="packager-specific version"
45758           --with-packager-bug-reports="packager bug reporting"
45759         An example with coreutils:
45760           $ ./configure \
45761             --with-packager=Gentoo \
45762             --with-packager-bug-report=http://bugs.gentoo.org/ \
45763             --with-packager-version="patchset 1.6"
45764           $ ./src/ls --version | head -n2
45765           ls (GNU coreutils) 7.1-dirty
45766           Packaged by Gentoo (patchset 1.6)
45767         Note that the bug reporting info via --help doesn't show up because
45768         coreutils uses its own custom emit_bug_reporting_address() implementation
45769         in src/system.h.  If it didn't, it'd look like:
45770           $ ./src/ls --help | tail -n4
45771           Report bugs to <bug-coreutils@gnu.org>.
45772           Report Gentoo bugs to <http://bugs.gentoo.org/>.
45773           GNU coreutils home page: <http://www.gnu.org/software/coreutils/>.
45774           General help using GNU software: <http://www.gnu.org/gethelp/>.
45775         * lib/version-etc.c: Print new information, if provided.
45776         * m4/version-etc.m4: New file.
45777         * modules/version-etc (Files): Add m4/version-etc.m4.
45778         (configure.ac): Add gl_VERSION_ETC.
45779
45780 2009-05-31  Bruno Haible  <bruno@clisp.org>
45781
45782         * tests/test-alignof.c: Include <stdint.h>. Check also 'long double'
45783         and 'int64_t'.
45784         * modules/alignof-tests (Dependencies): Add stdint.
45785         Reported by Eric Blake.
45786
45787 2009-05-31  Bruno Haible  <bruno@clisp.org>
45788
45789         * lib/alignof.h (alignof_slot, alignof_type, alignof): Document
45790         restriction due to compiler bugs.
45791         Reported by Eric Blake.
45792
45793 2009-05-31  Simon Josefsson  <simon@josefsson.org>
45794             Bruno Haible  <bruno@clisp.org>
45795
45796         Fix test-alignof failure.
45797         * lib/alignof.h (alignof_slot): New macro.
45798         (alignof_type): New macro, with the same semantics as the previous
45799         'alignof'.
45800         (alignof): Alias to alignof_slot.
45801         * tests/test-alignof.c (CHECK): Check alignof_slot, not alignof. Also
45802         check that the results are usable as constant expressions.
45803
45804 2009-05-31  Bruno Haible  <bruno@clisp.org>
45805
45806         * tests/zerosize-ptr.h (zerosize_ptr): Specify more details.
45807         * tests/test-memchr.c (main): Check that memchr does not read past the
45808         first occurrence of the byte.
45809         * tests/test-strstr.c (main): Update comment.
45810         Suggested by Eric Blake.
45811
45812 2009-05-30  Bruno Haible  <bruno@clisp.org>
45813
45814         * doc/ld-output-def.texi (Visual Studio Compatibility): Explain in more
45815         detail how to use dumpbin.
45816         Reported by David Byron <dbyron@dbyron.com>.
45817
45818 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45819
45820         * tests/test-parse-duration.sh: Don't use non-portable 'read -u3'.
45821
45822 2009-06-02  Simon Josefsson  <simon@josefsson.org>
45823
45824         * m4/manywarnings.m4: Add GCC 4.4 warnings.
45825
45826 2009-05-28  Bruno Haible  <bruno@clisp.org>
45827
45828         * gnulib-tool (func_import): Don't do HAVE_CONFIG_H replacements on
45829         build-aux/ files.
45830
45831 2009-05-28  Simon Josefsson  <simon@josefsson.org>
45832
45833         * gnulib-tool (func_import): Transform license on build-aux/ files too.
45834
45835 2009-05-27  Simon Josefsson  <simon@josefsson.org>
45836
45837         * gnulib-tool (sed_transform_main_lib_file)
45838         (sed_transform_testsrelated_lib_file): : Don't use non-POSIX
45839         regexps.
45840
45841 2009-05-26  Simon Josefsson  <simon@josefsson.org>
45842
45843         * tests/test-strstr.c: Add another self-test.
45844         * tests/test-strstr.c: Rewrite to use malloc/strcpy instead of
45845         strdup.  Suggested by Eric Blake  <ebb9@byu.net>.
45846
45847 2009-05-23  Bruno Haible  <bruno@clisp.org>
45848
45849         * doc/havelib.texi (AC_LIB_HAVE_LINKFLAGS): Update for 2009-04-26
45850         change.
45851
45852 2009-05-21  Bruno Haible  <bruno@clisp.org>
45853
45854         Simplify use of mode_t varargs.
45855         * lib/open.c (open): Use PROMOTED_MODE_T instead of a conditional that
45856         uses 'mode_t' or 'int'.
45857         * lib/openat.c (openat): Likewise.
45858         * lib/open-safer.c (open_safer): Likewise.
45859         * m4/mode_t.m4: New file.
45860         * m4/open.m4 (gl_PREREQ_OPEN): Require gl_PROMOTED_TYPE_MODE_T.
45861         * m4/openat.m4 (gl_PREREQ_OPENAT): Likewise.
45862         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Likewise.
45863         * modules/open (Files): Add m4/mode_t.m4.
45864         * modules/openat (Files): Likewise.
45865         * modules/fcntl-safer (Files): Likewise.
45866         Suggested by Eric Blake.
45867
45868 2009-05-21  Pádraig Brady  <P@draigbrady.com>
45869
45870         * doc/glibc-functions/fallocate.texi: New file.
45871         * doc/gnulib.texi: Include it.
45872
45873 2009-05-21  Eric Blake  <ebb9@byu.net>
45874             Bruno Haible  <bruno@clisp.org>
45875
45876         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Remove redundant m4_quote
45877         invocations.
45878         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
45879
45880 2009-05-21  Eric Blake  <ebb9@byu.net>
45881             Bruno Haible  <bruno@clisp.org>
45882
45883         Second attempt to work around an AIX 5.3, 6.1 compiler bug with
45884         include_next. Fix of 2008-11-20 commit.
45885         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Also set
45886         NEXT_AS_FIRST_DIRECTIVE_FOO_H.
45887         * lib/math.in.h: Use NEXT_AS_FIRST_DIRECTIVE_MATH_H instead of
45888         NEXT_MATH_H.
45889         * modules/math (Makefile.am): Substitute NEXT_AS_FIRST_DIRECTIVE_MATH_H
45890         instead of NEXT_MATH_H.
45891
45892 2009-05-21  Bruno Haible  <bruno@clisp.org>
45893
45894         Avoid redefinition warnings for SIZE_MAX.
45895         * m4/size_max.m4 (gl_SIZE_MAX): Avoid redefining SIZE_MAX in config.h.
45896         Reported by Simon Josefsson.
45897
45898 2009-05-21  Bruno Haible  <bruno@clisp.org>
45899
45900         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_CACHE_CHECK instead of
45901         AC_CACHE_VAL.
45902
45903 2009-05-20  Bruno Haible  <bruno@clisp.org>
45904
45905         Make zeroptr.h work on mingw.
45906         * tests/zerosize-ptr.h: Test for the presence of <sys/mman.h> and
45907         mprotect.
45908         * modules/memchr-tests (configure.ac): Also test for sys/mman.h.
45909         * modules/memchr2-tests (configure.ac): Likewise.
45910         * modules/memcmp-tests (configure.ac): Likewise.
45911         * modules/memmem-tests (configure.ac): Likewise.
45912         * modules/memrchr-tests (configure.ac): Likewise.
45913         Reported by Simon Josefsson.
45914
45915 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45916
45917         * tests/test-glob.c: Include string.h for strcmp prototype.
45918
45919 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45920
45921         * modules/getdelim (Depends-on): Add explicit stdint, although it
45922         was implicitly already pulled in via realloc-posix.
45923         * lib/getdelim.c: Get SIZE_MAX from stdint.h.
45924
45925 2009-05-20  Simon Josefsson  <simon@josefsson.org>
45926
45927         MinGW and IRIX does not have sa_family_t type.  Reported by "Tom
45928         G. Christensen" <tgc@jupiterrise.com>.
45929         * m4/sys_socket_h.m4: Check for sa_family_t.
45930         * lib/sys_socket.in.h: Typedef sa_family_t when needed.
45931         * modules/sys_socket: Substitute HAVE_SA_FAMILY_T.
45932         * tests/test-sys_socket.c: Check that sa_family_t works.
45933
45934 2009-05-18  Eric Blake  <ebb9@byu.net>
45935
45936         maint.mk: allow gnulib_dir in VPATH build
45937         * top/maint.mk (gnulib_dir): Make relative to $(srcdir).
45938
45939 2009-05-15  Jim Meyering  <meyering@redhat.com>
45940
45941         maint.mk: Give gnulib_dir a default definition.
45942         * top/maint.mk (gnulib_dir): Define to 'gnulib', by default.
45943         Thus, most packages no longer need to specify this variable in cfg.mk
45944
45945 2009-05-14  Tom Prince  <tom.prince@ualberta.net>  (tiny change)
45946
45947         rename.m4: fix typos that would make non-mingw cross-configure fail
45948         * m4/rename.m4 (gl_FUNC_RENAME): Fix typos.
45949
45950 2009-05-13  Eric Blake  <ebb9@byu.net>
45951
45952         mmap-anon: avoid out-of-order autoconf expansion
45953         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Use correct
45954         SYSTEM_EXTENSIONS macro to silence warnings from autoconf 2.63b.
45955         * modules/memchr-tests (Depends-on): Add extensions.
45956         * modules/memchr2-tests (Depends-on): Add extensions.
45957         * modules/memcmp-tests (Depends-on): Add extensions.
45958         * modules/memmem-tests (Depends-on): Add extensions.
45959         * modules/memrchr-tests (Depends-on): Add extensions.
45960
45961 2009-05-13  Bruno Haible  <bruno@clisp.org>
45962
45963         Make some tests ISO C 99 compliant.
45964         * tests/zerosize-ptr.h: New file.
45965         * tests/test-memchr.c: Include zerosize-ptr.h.
45966         (main): Use a zero-size object pointer instead of NULL.
45967         * tests/test-memchr2.c: Include zerosize-ptr.h.
45968         (main): Use a zero-size object pointer instead of NULL.
45969         * tests/test-memcmp.c: Include zerosize-ptr.h.
45970         (main): Use a zero-size object pointer instead of NULL.
45971         * tests/test-memmem.c: Include zerosize-ptr.h.
45972         (main): Use a zero-size object pointer instead of NULL.
45973         * tests/test-memrchr.c: Include zerosize-ptr.h.
45974         (main): Use a zero-size object pointer instead of NULL.
45975         * modules/memchr-tests (Files): Add tests/zerosize-ptr.h,
45976         m4/mmap-anon.m4.
45977         (Depends-on): Add getpagesize.
45978         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45979         * modules/memchr2-tests (Files): Add tests/zerosize-ptr.h,
45980         m4/mmap-anon.m4.
45981         (Depends-on): Add getpagesize.
45982         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45983         * modules/memcmp-tests (Files): Add tests/zerosize-ptr.h,
45984         m4/mmap-anon.m4.
45985         (Depends-on): Add getpagesize.
45986         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45987         * modules/memmem-tests (Files): Add tests/zerosize-ptr.h,
45988         m4/mmap-anon.m4.
45989         (Depends-on): Add getpagesize.
45990         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45991         * modules/memrchr-tests (Files): Add tests/zerosize-ptr.h,
45992         m4/mmap-anon.m4.
45993         (Depends-on): Add getpagesize.
45994         (configure.ac): Invoke gl_FUNC_MMAP_ANON. Check for mprotect.
45995
45996 2009-05-12  Bruno Haible  <bruno@clisp.org>
45997
45998         Tests for module 'alignof'.
45999         * modules/alignof-tests: New file.
46000         * tests/test-alignof.c: New file.
46001
46002 2009-05-12  Bruno Haible  <bruno@clisp.org>
46003
46004         Fix alignof macro.
46005         * lib/alignof.h (alignof): Remove special cases for AIX and HP-UX
46006         vendor compilers that are always correct.
46007
46008 2009-05-12  Bruno Haible  <bruno@clisp.org>
46009
46010         Make the MAP_ANONYMOUS detection work on HP-UX 11.
46011         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check whether mmap exists, but
46012         not whether its fully works.
46013
46014 2009-05-12  Bruno Haible  <bruno@clisp.org>
46015
46016         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Add comments.
46017
46018 2009-05-12  Jim Meyering  <meyering@redhat.com>
46019
46020         * top/maint.mk: Adjust backslash alignment.
46021
46022 2009-05-11  Simon Josefsson  <simon@josefsson.org>
46023
46024         * top/maint.mk: Make $(srcdir)/build-aux configurable.
46025
46026 2009-05-11  Eric Blake  <ebb9@byu.net>
46027
46028         argp: avoid undefined behavior
46029         * lib/argp-fmtstream.c (weak_alias): Pass correct types to ctype
46030         macros.
46031
46032 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46033
46034         * tests/test-vc-list-files-git.sh: Do git config of user.email and
46035         user.name to prevent git commit from complaining.
46036
46037 2009-05-10  Bruno Haible  <bruno@clisp.org>
46038
46039         * gnulib-tool (func_import, func_create_testdir, copy-file): Change
46040         sed_rewrite_old_files, sed_rewrite_new_files, sed_rewrite_files so that
46041         it rewrites every file name only once.
46042         Reported by Simon Josefsson. Helped by Ralf Wildenhues.
46043
46044 2009-05-08  Bruno Haible  <bruno@clisp.org>
46045
46046         * lib/sys_socket.in.h (_SS_PADSIZE): Use a conditional expression
46047         instead of 'max'.
46048
46049 2009-05-08  Simon Josefsson  <simon@josefsson.org>
46050
46051         * m4/sys_socket_h.m4: Test for ws2tcpip.h earlier, needed for
46052         sockaddr_storage test.
46053
46054 2009-05-07  Simon Josefsson  <simon@josefsson.org>
46055
46056         * modules/sys_socket (Makefile.am): Substitute
46057         HAVE_STRUCT_SOCKADDR_STORAGE.  Depend on alignof.
46058         * m4/sys_socket_h.m4: Check for sockaddr_storage.
46059         * lib/sys_socket.in.h (sockaddr_storage): Define when needed.
46060         * tests/test-sys_socket.c: Check sockaddr_storage.
46061
46062 2009-05-08  Bruno Haible  <bruno@clisp.org>
46063
46064         New module 'alignof'.
46065         * lib/alignof.h: New file.
46066         * modules/alignof: New file.
46067
46068 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46069             Bruno Haible  <bruno@clisp.org>
46070
46071         Fix test-file-has-acl on FreeBSD.
46072         * tests/test-file-has-acl.sh: Also test a directory. On FreeBSD, the
46073         mask is implicitly added.
46074         * tests/test-file-has-acl.c: Include <signal.h>.
46075         (main): Terminate the test after 5 seconds.
46076         * modules/acl-tests (configure.ac): Check for alarm function.
46077
46078 2009-05-04  Bruno Haible  <bruno@clisp.org>
46079
46080         Exploit new semantics of AC_DEFUN_ONCE available since 2009-01-26.
46081         * m4/errno_h.m4 (gl_HEADER_ERRNO_H): Remove outdated comment.
46082         * modules/errno (configure.ac): Drop AC_REQUIRE.
46083         * m4/multiarch.m4 (gl_MULTIARCH): Remove outdated comment.
46084         * modules/multiarch (configure.ac): Drop AC_REQUIRE.
46085
46086 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46087
46088         * modules/glob-tests: New module.
46089         * tests/test-glob.c: Add.
46090
46091 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46092
46093         * modules/fnmatch-tests: New module.
46094         * tests/test-fnmatch.c: Add.
46095
46096 2009-05-04  Eric Blake  <ebb9@byu.net>
46097
46098         maint: make the new no-submodule-changes rule VPATH-safe
46099         * top/maint.mk (no-submodule-changes): Don't assume a srcdir build.
46100
46101 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46102             Bruno Haible  <bruno@clisp.org>
46103
46104         acl: Fix infinite loop on FreeBSD.
46105         * lib/acl_entries.c (acl_entries) [Linux, FreeBSD]: Fix interpretation
46106         of return value from acl_get_entry.
46107         * lib/file-has-acl.c (acl_access_nontrivial) [Linux, FreeBSD]:
46108         Likewise.
46109
46110 2009-05-03  Bruno Haible  <bruno@clisp.org>
46111
46112         * lib/acl-internal.h (acl_entries): Clarify return value.
46113         * lib/acl_entries.c (acl_entries): Likewise.
46114
46115 2009-05-04  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46116
46117         Bug fix in acl module.
46118         * lib/set-mode-acl.c: Use correct struct with ACL_SETACL.
46119
46120 2009-05-03  Bruno Haible  <bruno@clisp.org>
46121
46122         Create gperf-generated file in the source dir, not in the build dir.
46123         * modules/iconv_open (iconv_open-aix.h, iconv_open-hpux.h,
46124         iconv_open-irix.h, iconv_open-osf.h): Create file in the source tree.
46125         * modules/unicase/locale-language (unicase/locale-languages.h):
46126         Likewise.
46127         * modules/unicase/special-casing (unicase/special-casing-table.h):
46128         Likewise.
46129         * modules/unictype/property-byname (unictype/pr_byname.h): Likewise.
46130         * modules/unictype/scripts (unictype/scripts_byname.h): Likewise.
46131         * modules/uninorm/composition (uninorm/composition-table.h): Likewise.
46132         Reported by Ralf Wildenhues.
46133
46134 2009-05-03  Bruno Haible  <bruno@clisp.org>
46135
46136         * modules/fnmatch (Description, configure.ac): Taken from
46137         fnmatch-posix.
46138         * modules/fnmatch-posix: Turn into a symbolic reference to the
46139         'fnmatch' module, and deprecate.
46140         * doc/posix-functions/fnmatch.texi: Mention the fnmatch module.
46141
46142 2009-05-03  Bruno Haible  <bruno@clisp.org>
46143
46144         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF,
46145         gl_PREREQ_VASNPRINTF_LONG_DOUBLE): Define through AC_DEFUN_ONCE.
46146         Reported by Ralf Wildenhues.
46147
46148 2009-05-04  Simon Josefsson  <simon@josefsson.org>
46149
46150         * m4/fnmatch.m4: Fix fnmatch re-define.
46151
46152 2009-04-27  David Bartley  <dtbartle@csclub.uwaterloo.ca>
46153
46154         priv-set: new module and tests; adapt write-any-file
46155         * lib/priv-set.c: New file.
46156         * lib/priv-set.h: New file.
46157         * lib/unlinkdir.c: Make cannot_unlink_dir thread-safe.
46158         * lib/write-any-file.c: Simplify by using priv-set module.
46159         * m4/priv-set.m4: New file.
46160         * modules/priv-set: New file.
46161         * modules/unlinkdir: Add dependency on priv-set module.
46162         * modules/write-any-file: Likewise.
46163
46164         Tests for module 'priv-set'.
46165         * modules/priv-set-tests: New file.
46166         * tests/test-priv-set.c: New file.
46167
46168 2009-05-03  Jim Meyering  <meyering@redhat.com>
46169             Bruno Haible  <bruno@clisp.org>
46170
46171         * lib/propername.c (proper_name_utf8): Ignore no-op translations;
46172         use the converted UTF-8 variant of the name instead.
46173
46174 2009-05-03  Jim Meyering  <meyering@redhat.com>
46175
46176         tests: tighten some getdate tests
46177         * tests/test-getdate.c (main): Tighten tests: require equality,
46178         not just greater than.  Set TZ envvar to UTC0.
46179
46180 2009-05-03  Giuseppe Scrivano  <gscrivano@gnu.org>
46181
46182         getdate: correctly interpret "next monday" when run on a Monday
46183         * lib/getdate.y (get_date): Correct the calculation of tm_mday so
46184         that e.g., "next tues" (when run on a tuesday) results in a date
46185         that is one week in the future, and not today's date.
46186         I.e., add a week when the wday is the same as the current one.
46187         Reported by Tom Broadhurst in http://savannah.gnu.org/bugs/?25406,
46188         and earlier by Martin Bernreuther and Jan Minář.
46189         * tests/test-getdate.c (main): Check that "next DAY" is always in
46190         the future and that "last DAY" is always in the past.
46191
46192 2009-05-02  Jim Meyering  <meyering@redhat.com>
46193
46194         build: ensure that a release build fails when a submodule is unclean
46195         * top/maint.mk (no-submodule-changes): New rule.
46196         (alpha beta major): Depend on it.
46197
46198 2009-05-02  Bruno Haible  <bruno@clisp.org>
46199
46200         Remove incompatibility between modules fnmatch-posix and fnmatch-gnu.
46201         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Use a
46202         shell variable gl_fnmatch_required to detect which variant is
46203         requested.
46204         (_AC_FUNC_FNMATCH_IF, _AC_LIBOBJ_FNMATCH): Remove macros. Inlined into
46205         gl_FUNC_FNMATCH_POSIX.
46206         * gnulib-tool (func_create_testdir, func_create_megatestdir): Don't
46207         exclude fnmatch-posix.
46208
46209 2009-05-02  Bruno Haible  <bruno@clisp.org>
46210
46211         Relicense mbsrtowcs and strnlen1 under LGPLv2+.
46212         * modules/mbsrtowcs (License): Change to LGPLv2+.
46213         * modules/strnlen1 (License): Likewise.
46214         Reported by Simon Josefsson.
46215
46216 2009-05-02  Bruno Haible  <bruno@clisp.org>
46217
46218         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Say "guessing no" instead of
46219         "cross".
46220         (gl_FUNC_FNMATCH_POSIX, gl_FUNC_FNMATCH_GNU): Update. Don't assume that
46221         gnulib-tool was called with option --source-base=lib.
46222
46223 2009-05-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46224
46225         Use automake *-local hooks without commands, for extensibility.
46226         * modules/localcharset (Makefile.am): Rename install-exec-local
46227         rule to install-exec-localcharset, and make it a prerequisite of
46228         install-exec-local.  Likewise, rename the uninstall-local rule to
46229         uninstall-localcharset, and make it a prerequisite of the former.
46230
46231 2009-05-01  Bruno Haible  <bruno@clisp.org>
46232
46233         * lib/wchar.in.h (wcsnrtombs): Define if REPLACE_WCSNRTOMBS is 1.
46234         * m4/wcsnrtombs.m4 (gl_FUNC_WCSRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46235         set REPLACE_WCSNRTOMBS if mbstate_t must be replaced.
46236         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCSNRTOMBS.
46237         * modules/wchar (Makefile.am): Substitute REPLACE_WCSNRTOMBS.
46238         * modules/wcsnrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46239         m4/locale-zh.m4, m4/codeset.m4.
46240
46241         * m4/wcsrtombs.m4 (gl_FUNC_WCSNRTOMBS): Invoke gl_MBSTATE_T_BROKEN, and
46242         set REPLACE_WCSRTOMBS if mbstate_t must be replaced.
46243         * modules/wcsrtombs (Files): Add m4/mbrtowc.m4, m4/locale-ja.m4,
46244         m4/locale-zh.m4.
46245
46246         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Invoke gl_MBSTATE_T_BROKEN, and set
46247         REPLACE_WCRTOMB if mbstate_t must be replaced.
46248         * modules/wcrtomb (Files): Add m4/mbrtowc.m4.
46249         Reported by Jens Rehsack <rehsack@googlemail.com> via Eric Blake.
46250
46251 2009-05-01  Bruno Haible  <bruno@clisp.org>
46252
46253         Avoid compiler warnings when redefining macros defined by <libintl.h>.
46254         * lib/gettext.h [!ENABLE_NLS] (gettext, dgettext, dcgettext, ngettext,
46255         dngettext, dcngettext, textdomain, bindtextdomain,
46256         bind_textdomain_codeset): Undefine before redefining.
46257
46258 2009-04-30  Bruno Haible  <bruno@clisp.org>
46259
46260         Fix bug introduced on 2009-04-25.
46261         * lib/math.in.h (gl_signbitf_OPTIMIZED_MACRO,
46262         gl_signbitd_OPTIMIZED_MACRO, gl_signbitl_OPTIMIZED_MACRO): New macros.
46263         * lib/signbitf.c (gl_signbitd): Undefine if gl_signbitf_OPTIMIZED_MACRO
46264         is defined.
46265         * lib/signbitd.c (gl_signbitd): Undefine if gl_signbitd_OPTIMIZED_MACRO
46266         is defined.
46267         * lib/signbitl.c (gl_signbitd): Undefine if gl_signbitl_OPTIMIZED_MACRO
46268         is defined.
46269         Reported by Elbert_Pol <elbert.pol@gmail.com>.
46270
46271 2009-04-28  Bruno Haible  <bruno@clisp.org>
46272
46273         Comment tweaks.
46274         * lib/unistr.h (u*_cmp2): Clarify what memcmp2 is.
46275         * lib/uninorm.h (u*_normxfrm): Fix description of return value.
46276         * lib/unicase.h (u*_casexfrm): Likewise.
46277         Reported by Paolo Bonzini.
46278
46279 2009-04-28  Bruno Haible  <bruno@clisp.org>
46280
46281         Fix a compilation error.
46282         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Fix initializer.
46283         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
46284         Reported by Jim Meyering.
46285
46286 2009-04-27  Bruno Haible  <bruno@clisp.org>
46287
46288         New module 'libunistring'.
46289         * modules/libunistring: New file.
46290         * m4/libunistring.m4: New file.
46291         * MODULES.html.sh (Unicode string functions): Add it.
46292
46293 2009-04-27  Eric Blake  <ebb9@byu.net>
46294
46295         maint.mk: allow package-specific header to provide <config.h>
46296         * top/maint.mk (sc_require_config_h): New variable.
46297         (sc_require_config_h, sc_require_config_h_first): Use it.
46298
46299 2009-04-27  Simon Josefsson  <simon@josefsson.org>
46300
46301         * top/maint.mk (sc_avoid_if_before_free): Except
46302         useless-if-before-free script.
46303
46304 2009-04-27  Eric Blake  <ebb9@byu.net>
46305
46306         maintainer-makefile: depend on all required helper scripts
46307         * modules/maintainer-makefile (Depends-on): Add vc-list-files and
46308         useless-if-before-free.
46309         * top/maint.mk (VC_LIST, sc_avoid_if_before_free): Use local
46310         version, rather than assuming gnulib checkout is available.
46311         Reported by Simen Josefsson.
46312
46313 2009-04-26  Bruno Haible  <bruno@clisp.org>
46314
46315         Make the lib vs. lib64 recognition work on openSUSE 11 with "gcc -m32".
46316         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): Ignore paths that end in
46317         "../" or "..".
46318
46319 2009-04-26  Bruno Haible  <bruno@clisp.org>
46320
46321         * m4/lib-link.m4 (AC_LIB_HAVE_LINKFLAGS): Accept a fifth argument.
46322         * m4/libsigsegv.m4 (gl_LIBSIGSEGV): Simplify by using
46323         AC_LIB_HAVE_LINKFLAGS.
46324
46325 2009-04-26  Bruno Haible  <bruno@clisp.org>
46326
46327         Simplify calling convention of u*_conv_from_encoding.
46328         * lib/uniconv.h (u8_conv_from_encoding, u16_conv_from_encoding,
46329         u32_conv_from_encoding): Expect a resultbuf argument and return the
46330         result directly as a pointer.
46331         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Likewise.
46332         * lib/uniconv/u-conv-from-enc.h (FUNC): Likewise.
46333         * lib/uniconv/u-strconv-from-enc.h (FUNC): Update.
46334         * lib/unicase/ulc-casecmp.c (ulc_u8_casefold): Update.
46335         * lib/unicase/ulc-casexfrm.c (ulc_casexfrm): Update.
46336         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46337         Update.
46338         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Update.
46339         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Update.
46340         * lib/vasnprintf.c (VASNPRINTF): Update.
46341         * tests/uniconv/test-u8-conv-from-enc.c (main): Update.
46342         * tests/uniconv/test-u16-conv-from-enc.c (main): Update.
46343         * tests/uniconv/test-u32-conv-from-enc.c (main): Update.
46344         * NEWS: Mention the change.
46345
46346 2009-04-26  Bruno Haible  <bruno@clisp.org>
46347
46348         Simplify calling convention of u*_conv_to_encoding.
46349         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
46350         u32_conv_to_encoding): Expect a resultbuf argument and return the
46351         result directly as a pointer.
46352         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46353         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Preserve errno while
46354         freeing scaled_offsets if mem_iconveha failed.
46355         * lib/unicase/u-casexfrm.h (FUNC): Update.
46356         * lib/uninorm/u-normxfrm.h (FUNC): Update.
46357         * lib/vasnprintf.c (VASNPRINTF): Update.
46358         * tests/uniconv/test-u8-conv-to-enc.c (main): Update.
46359         * tests/uniconv/test-u16-conv-to-enc.c (main): Update.
46360         * tests/uniconv/test-u32-conv-to-enc.c (main): Update.
46361         * NEWS: Mention the change.
46362
46363 2009-04-26  Bruno Haible  <bruno@clisp.org>
46364
46365         Avoid test failures on AIX and OSF/1.
46366         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Avoid calling
46367         malloc(0).
46368         * lib/uniconv/u8-conv-to-enc.c (u8_conv_to_encoding): Likewise.
46369         * lib/unilbrk/ulc-possible-linebreaks.c (ulc_possible_linebreaks):
46370         Likewise.
46371         * lib/unilbrk/ulc-width-linebreaks.c (ulc_width_linebreaks): Likewise.
46372         * lib/uniwbrk/ulc-wordbreaks.c (ulc_wordbreaks): Likewise.
46373         * lib/uniconv/u-conv-to-enc.h (FUNC): Likewise. Fix memory leak.
46374         * lib/unistr/u-cpy-alloc.h (FUNC): Call malloc(1) instead of malloc(0).
46375         * doc/posix-functions/malloc.texi: Document the portability problem
46376         related to malloc(0).
46377
46378 2009-04-26  Bruno Haible  <bruno@clisp.org>
46379
46380         * modules/unistr/u8-cpy-alloc (Depends-on): Add malloc-posix.
46381         * modules/unistr/u16-cpy-alloc (Depends-on): Likewise.
46382         * modules/unistr/u32-cpy-alloc (Depends-on): Likewise.
46383
46384 2009-04-25  Bruno Haible  <bruno@clisp.org>
46385
46386         Avoid link error when creating a namespace clean library.
46387         * lib/math.in.h (gl_signbitf, gl_signbitd, gl_signbitl): Don't define
46388         as macro with arguments if already defined as an alias.
46389         * lib/signbitf.c (gl_signbitf): Don't undefine.
46390         * lib/signbitd.c (gl_signbitd): Don't undefine.
46391         * lib/signbitl.c (gl_signbitl): Don't undefine.
46392
46393 2009-04-25  Jim Meyering  <meyering@redhat.com>
46394
46395         vc-list-files: fix another quoting bug
46396         * build-aux/vc-list-files: Avoid sed backslash expansion
46397         of pathological directory names.
46398
46399 2009-04-25  Eric Blake  <ebb9@byu.net>
46400
46401         vc-list-files: fix shell quoting error
46402         * build-aux/vc-list-files: Protect against $ in $dir.  Normalize
46403         timestamp.
46404
46405 2009-04-25  Jim Meyering  <meyering@redhat.com>
46406
46407         vc-list-files: restore lost functionality with subdir argument
46408         * build-aux/vc-list-files: When given a non-"." sub-directory
46409         argument, substitute the $dir/ prefix back onto each resulting name.
46410         Otherwise, coreutils' root_tests check would fail.
46411
46412 2009-04-24  Eric Blake  <ebb9@byu.net>
46413
46414         vc-list-files: ignore git symlinks
46415         * build-aux/vc-list-files (.git): Use ls-tree and a filter, rather
46416         than ls-files, to ignore git symlinks.
46417
46418         maint.mk: import improvements from m4
46419         * top/maint.mk (VC-tag): Use signing key from cfg.mk.
46420         (move_if_change): Delete unused macro.
46421         (news-date-check, vc-diff-check): Support VPATH builds.
46422         (announcement): Likewise.  Split --bootstrap-tools list...
46423         (boostrap-tools): ...into separate list, which can be overridden
46424         in cfg.mk.
46425         (sc_avoid_if_before_free): Point to $(gnulib_dir), rather than
46426         requiring dependency on useless-if-before-free module.
46427         (VC_LIST, VC_LIST_EXCEPT): Likewise for vc-list-files module.
46428         Support VPATH builds.
46429
46430 2009-04-24  Jim Meyering  <meyering@redhat.com>
46431
46432         maint.mk: remove coreutils-specific rules and variables
46433         * top/maint.mk (bin, taint-distcheck, coreutils-path-check, t): Remove.
46434         (fake_home, install-transform-check, my-instcheck, pfx, TMPDIR): Remove.
46435         (t_prefix, t_taint, tp, warn_cflags, write_loser, my-distcheck): Remove.
46436
46437         maint.mk: remove obsolete rule
46438         * top/maint.mk (rel-check): Remove rule.
46439         (WGET, WGETFLAGS): Remove now-unused variables.
46440
46441 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46442
46443         * top/maint.mk (makefile-check): Renamed to sc_makefile_check for
46444         consistency.
46445
46446         * modules/vc-list-files-tests (TESTS_ENVIRONMENT): Use
46447         '$(PATH_SEPARATOR)' instead of ':'.
46448
46449 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46450
46451         * lib/getopt1.c (main): Use 'const' for static array.
46452
46453 2009-04-24  Simon Josefsson  <simon@josefsson.org>
46454
46455         * top/maint.mk: Sync with coreutils.
46456         * NEWS: Explain incompatibilities.
46457
46458 2009-04-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
46459             Bruno Haible  <bruno@clisp.org>
46460
46461         Fix cross-compilation results.
46462         * m4/btowc.m4 (gl_FUNC_BTOWC): Use no-op statement, rather than empty
46463         statement, as third argument of AC_TRY_RUN.
46464         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE, gl_MBRTOWC_SANITYCHECK,
46465         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL):
46466         Likewise.
46467         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): Likewise.
46468         * m4/wcsrtombs.m4 (gl_WCSRTOMBS_TERMINATION, gl_WCSRTOMBS_NULL):
46469         Likewise.
46470         * m4/wctob.m4 (gl_FUNC_WCTOB): Likewise.
46471         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Likewise. Update for AIX 4.3.
46472         * doc/posix-functions/wcrtomb.texi: Mention the bug on AIX 4.3.
46473
46474 2009-04-20  Bruno Haible  <bruno@clisp.org>
46475
46476         Avoid test failure on mingw.
46477         * tests/uniwidth/test-uc_width2.sh: Convert newlines in output.
46478
46479 2009-04-20  Bruno Haible  <bruno@clisp.org>
46480
46481         Avoid compilation error on mingw.
46482         * modules/localename-tests (Depends-on): Add locale.
46483
46484 2009-04-19  Bruno Haible  <bruno@clisp.org>
46485
46486         Support for building a shared library on Windows platforms.
46487         * tests/uninorm/test-nfc.c (n): Don't define if WOE32DLL.
46488         (main): Test the presence of UNINORM_NFC here.
46489         * tests/uninorm/test-nfd.c (n): Don't define if WOE32DLL.
46490         (main): Test the presence of UNINORM_NFD here.
46491         * tests/uninorm/test-nfkc.c (n): Don't define if WOE32DLL.
46492         (main): Test the presence of UNINORM_NFKC here.
46493         * tests/uninorm/test-nfkd.c (n): Don't define if WOE32DLL.
46494         (main): Test the presence of UNINORM_NFKD here.
46495
46496 2009-04-19  Bruno Haible  <bruno@clisp.org>
46497
46498         Avoid a compiler warning.
46499         * tests/uninorm/test-u32-normalize-big.c (read_normalization_test_file):
46500         Change type of variable 'sequence'.
46501
46502 2009-04-19  Bruno Haible  <bruno@clisp.org>
46503
46504         * modules/configmake (Makefile.am): When the contents of configmake.h
46505         does not change, arrange to preserve its modification time.
46506
46507 2009-04-17  Simon Josefsson  <simon@josefsson.org>
46508
46509         * top/maint.mk (PO_DOMAIN): New variable, allows overriding of
46510         gettext domain.
46511
46512 2009-04-16  Jim Meyering  <meyering@redhat.com>
46513
46514         useless-if-before-free: improve conversion code
46515         * build-aux/useless-if-before-free: Adjust code-in-comment to match
46516         "...!= 0" as well as "...!= NULL".  emacs has one of the former.
46517
46518 2009-04-14  Bruno Haible  <bruno@clisp.org>
46519
46520         * modules/fcntl (Depends-on): Add extensions.
46521         * m4/fcntl_h.m4 (gl_FCNTL_H): Add a comment.
46522
46523 2009-04-12  Ben Pfaff  <blp@gnu.org>
46524
46525         Make fcntl module detect O_NOATIME, O_NOFOLLOW on GNU/Linux.
46526         * m4/fcntl_h.m4 (gl_FCNTL_H): Require AC_USE_SYSTEM_EXTENSIONS.
46527
46528 2009-03-20  Ben Pfaff  <blp@gnu.org>
46529
46530         Make rename replace existing destinations on Windows.
46531         * m4/rename.m4: Add test for Mingw.
46532         * lib/rename.c: Add rename replacement that uses MoveFileEx with
46533         MOVEFILE_REPLACE_EXISTING to replace existing destination files.
46534         * doc/posix-functions/rename.texi: Document.
46535
46536 2009-04-10  Bruno Haible  <bruno@clisp.org>
46537
46538         New include file "iconveh.h".
46539         * lib/iconveh.h: New file, extracted from lib/striconveh.h.
46540         * lib/striconveh.h: Include it.
46541         (enum iconv_ilseq_handler): Remove definition.
46542         * lib/striconveha.h: Include <stddef.h> and iconveh.h instead of
46543         striconveh.h.
46544         * lib/striconveha.c: Include striconveh.h.
46545         * lib/uniconv.h: Include iconveh.h instead of striconveh.h.
46546         * modules/striconveh (Files): Add lib/iconveh.h.
46547         * modules/uniconv/base (Files): Add lib/iconveh.h. Remove
46548         lib/striconveh.h.
46549
46550 2009-04-10  Bruno Haible  <bruno@clisp.org>
46551
46552         * lib/uniconv.h: Update comment.
46553
46554 2009-04-10  Bruno Haible  <bruno@clisp.org>
46555
46556         * lib/unistr/u8-mbtouc-aux.c: Inside libunistring, define the function
46557         always.
46558         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
46559         * lib/unistr/u16-mbtouc-aux.c: Likewise.
46560         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
46561         * lib/unistr/u8-mbtouc.c: Inside libunistring, include
46562         "unistring-notinline.h", so that the function gets defined always.
46563         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
46564         * lib/unistr/u8-uctomb.c: Likewise.
46565         * lib/unistr/u16-mbtouc.c: Likewise.
46566         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
46567         * lib/unistr/u16-uctomb.c: Likewise.
46568         * lib/unistr/u32-mbtouc.c: Likewise.
46569         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
46570         * lib/unistr/u32-uctomb.c: Likewise.
46571
46572 2009-04-10  Bruno Haible  <bruno@clisp.org>
46573
46574         Mark 'utime' obsolete.
46575         * modules/utime (Status, Notice): New sections.
46576         Suggested by Jim Meyering.
46577
46578         Fix cross-compile guess for utime test.
46579         * m4/utime.m4 (AC_FUNC_UTIME_NULL): Add definition from newest unstable
46580         autoconf.
46581         * doc/posix-functions/utime.texi: Give more precisions.
46582         Reported by Jan <ipif@ymail.com>.
46583
46584 2009-04-09  Kamil Dudka  <kdudka@redhat.com>
46585
46586         filevercmp: correct today's change
46587         * lib/filevercmp.c: Also handle coreutils' test inputs.
46588         * tests/test-filevercmp.c: Add inputs from one of coreutils' test scripts.
46589
46590         Fix regression in 'filevercmp' module. Thanks Sven Joachim
46591         for reporting it.
46592         * lib/filevercmp.c: Special handle for "", "." and "..".
46593         * tests/test-filevercmp.c: Enlarge the set suite.
46594
46595 2009-04-07  Jim Meyering  <meyering@redhat.com>
46596
46597         useless-if-before-free: show how to remove braced useless free, too
46598         * build-aux/useless-if-before-free: still only in a comment, though.
46599
46600 2009-04-07  Reuben Thomas  <rrt@sc3d.org>
46601
46602         maint.mk: import changes to syntax-check macros from coreutils
46603         * top/maint.mk (_prohibit_regexp, _header_without_use): Define.
46604         Use them in the relevant macros.
46605
46606 2009-04-06  Bruno Haible  <bruno@clisp.org>
46607
46608         Fix unportable use of bit-fields.
46609         * lib/unicase/special-casing.h (struct special_casing_rule): Change the
46610         bit-field type from 'int' to 'signed int'. Otherwise Solaris cc,
46611         AIX xlc, and OSF/1 cc interpret it as 'unsigned int'.
46612
46613 2009-04-06  Bruno Haible  <bruno@clisp.org>
46614
46615         Avoid test failures on AIX and OSF/1.
46616         * tests/unicase/test-u8-casefold.c (check): Account for the possibility
46617         that malloc(0) = NULL.
46618         * tests/unicase/test-u8-tolower.c (check): Likewise.
46619         * tests/unicase/test-u8-totitle.c (check): Likewise.
46620         * tests/unicase/test-u8-toupper.c (check): Likewise.
46621         * tests/unicase/test-u16-casefold.c (check): Likewise.
46622         * tests/unicase/test-u16-tolower.c (check): Likewise.
46623         * tests/unicase/test-u16-totitle.c (check): Likewise.
46624         * tests/unicase/test-u16-toupper.c (check): Likewise.
46625         * tests/unicase/test-u32-casefold.c (check): Likewise.
46626         * tests/unicase/test-u32-tolower.c (check): Likewise.
46627         * tests/unicase/test-u32-totitle.c (check): Likewise.
46628         * tests/unicase/test-u32-toupper.c (check): Likewise.
46629         * tests/uninorm/test-u8-nfc.c (check): Likewise.
46630         * tests/uninorm/test-u8-nfd.c (check): Likewise.
46631         * tests/uninorm/test-u8-nfkc.c (check): Likewise.
46632         * tests/uninorm/test-u8-nfkd.c (check): Likewise.
46633         * tests/uninorm/test-u16-nfc.c (check): Likewise.
46634         * tests/uninorm/test-u16-nfd.c (check): Likewise.
46635         * tests/uninorm/test-u16-nfkc.c (check): Likewise.
46636         * tests/uninorm/test-u16-nfkd.c (check): Likewise.
46637         * tests/uninorm/test-u32-nfc.c (check): Likewise.
46638         * tests/uninorm/test-u32-nfd.c (check): Likewise.
46639         * tests/uninorm/test-u32-nfkc.c (check): Likewise.
46640         * tests/uninorm/test-u32-nfkd.c (check): Likewise.
46641
46642 2009-04-05  Bruno Haible  <bruno@clisp.org>
46643
46644         Work around an autoconf limitation.
46645         * gnulib-tool (func_emit_lib_Makefile_am): Omit the "Reproduce by"
46646         comment line if it would be longer than 3 KB.
46647
46648 2009-04-05  Bruno Haible  <bruno@clisp.org>
46649
46650         Avoid test failure with libiconv-1.13.
46651         * tests/test-striconveh.c (main): Allow result of libiconv 1.13 as one
46652         of the expected test results.
46653
46654 2009-04-05  Bruno Haible  <bruno@clisp.org>
46655
46656         * gnulib-tool (func_emit_lib_Makefile_am): Don't add the library to
46657         noinst_LTLIBRARIES if the Makefile.am in the same directory specifies
46658         that it should be installed.
46659
46660 2009-04-05  Bruno Haible  <bruno@clisp.org>
46661
46662         * gnulib-tool: New option --copy-file.
46663         (func_usage): Document it.
46664         (func_dest_tmpfilename): Moved out of func_import.
46665         (func_add_file, func_update_file): New functions, extracted from
46666         func_import.
46667         (func_import): Update.
46668
46669 2009-04-05  Karl Berry  <karl@gnu.org>
46670
46671         * README: prominently mention gnulib-tool.
46672         Rearrange sections so getting the code is near the top.
46673
46674 2009-04-05  Bruno Haible  <bruno@clisp.org>
46675
46676         * lib/unicase.h: Mention u*_cmp2.
46677         * lib/unicase/u-casecmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46678         * lib/unicase/u8-casecmp.c: Use u8_cmp2 instead of u8_cmp.
46679         * lib/unicase/ulc-casecmp.c: Likewise.
46680         * lib/unicase/u16-casecmp.c: Use u16_cmp2 instead of u16_cmp.
46681         * lib/unicase/u32-casecmp.c: Use u32_cmp2 instead of u32_cmp.
46682         * modules/unicase/u8-casecmp (Depends-on): Add unistr/u8-cmp2, remove
46683         unistr/u8-cmp.
46684         * modules/unicase/ulc-casecmp (Depends-on): Likewise.
46685         * modules/unicase/u16-casecmp (Depends-on): Add unistr/u16-cmp2, remove
46686         unistr/u16-cmp.
46687         * modules/unicase/u32-casecmp (Depends-on): Add unistr/u32-cmp2, remove
46688         unistr/u32-cmp.
46689
46690         * lib/uninorm.h: Mention u*_cmp2.
46691         * lib/uninorm/u-normcmp.h (FUNC): Invoke U_CMP2 instead of U_CMP.
46692         * lib/uninorm/u8-normcmp.c: Use u8_cmp2 instead of u8_cmp.
46693         * lib/uninorm/u16-normcmp.c: Use u16_cmp2 instead of u16_cmp.
46694         * lib/uninorm/u32-normcmp.c: Use u32_cmp2 instead of u32_cmp.
46695         * modules/uninorm/u8-normcmp (Depends-on): Add unistr/u8-cmp2, remove
46696         unistr/u8-cmp.
46697         * modules/uninorm/u16-normcmp (Depends-on): Add unistr/u16-cmp2, remove
46698         unistr/u16-cmp.
46699         * modules/uninorm/u32-normcmp (Depends-on): Add unistr/u32-cmp2, remove
46700         unistr/u32-cmp.
46701
46702         New module 'unistr/u32-cmp2'.
46703         * lib/unistr/u32-cmp2.c: New file.
46704         * modules/unistr/u32-cmp2: New file.
46705
46706         New module 'unistr/u16-cmp2'.
46707         * lib/unistr/u16-cmp2.c: New file.
46708         * modules/unistr/u16-cmp2: New file.
46709
46710         New module 'unistr/u8-cmp2'.
46711         * lib/unistr.h (u8_cmp2, u16_cmp2, u32_cmp2): New declarations.
46712         * lib/unistr/u8-cmp2.c: New file.
46713         * lib/unistr/u-cmp2.h: New file.
46714         * modules/unistr/u8-cmp2: New file.
46715
46716 2009-04-05  Bruno Haible  <bruno@clisp.org>
46717
46718         * lib/unictype.h (uc_property_is_valid): New macro.
46719         * tests/unictype/test-pr_byname.c (main): Use it.
46720
46721         * lib/unistr.h: Doc fixes.
46722         * lib/uniconv.h: Doc fixes.
46723         * lib/unictype.h: Doc fixes.
46724
46725 2009-04-03  Paul Eggert  <eggert@cs.ucla.edu>
46726
46727         Port coreutils 7.2 to Solaris 8.
46728
46729         * modules/arpa_inet (arpa/inet.h): Depend on arpa_inet.in.h.
46730         * m4/inet_ntop.m4 (gl_INET_NTOP): Search for inet_ntop in -lnsl,
46731         for Solaris 8.  This is a bit of a hack, as it means it's the
46732         caller's responsibility to add -lnsl if needed, but most likely it
46733         won't be needed since only getaddrinfo uses this and getaddrinfo
46734         isn't needed on Solaris 8.
46735
46736         * modules/fnmatch (Depends-on): Add mbsrtowcs, to fix a porting
46737         problem to Solaris 8 encountered with coreutils 7.2, which
46738         resulted in a message "fnmatch.c:292: warning: passing argument 4
46739         of 'mbsrtowcs' from incompatible pointer type".  Also, add mbsinit
46740         at the suggestion of Bruno Haible, since fnmatch uses mbsinit.
46741
46742 2009-04-03  Simon Josefsson  <simon@josefsson.org>
46743
46744         * m4/ld-version-script.m4: Add FIXME comment.
46745
46746 2009-04-02  Simon Josefsson  <simon@josefsson.org>
46747
46748         * doc/ld-output-def.texi: Use DLL_VERSION instead of confusing
46749         SOVERSION variable.
46750
46751 2009-04-02  Bruno Haible  <bruno@clisp.org>
46752
46753         * Makefile (info, html, dvi, pdf): Combine the rules.
46754         Suggested by Jim Meyering.
46755
46756 2009-04-01  Bruno Haible  <bruno@clisp.org>
46757
46758         * Makefile (info, html, dvi, pdf): New targets.
46759         Reported by Reuben Thomas <rrt@sc3d.org>.
46760
46761 2009-04-01  Bruno Haible  <bruno@clisp.org>
46762
46763         * doc/gnulib-tool.texi (Invoking gnulib-tool): Document how gnulib-tool
46764         can be put into PATH.
46765         Reported by Reuben Thomas <rrt@sc3d.org>. Suggested by Karl Berry.
46766
46767 2009-04-01  Bruno Haible  <bruno@clisp.org>
46768
46769         * doc/lib-symbol-visibility.texi: Follow texinfo style conventions.
46770
46771 2009-04-01  Bruno Haible  <bruno@clisp.org>
46772
46773         Rename module 'visibility'.
46774         * modules/lib-symbol-visibility: Renamed from modules/visibility.
46775         * doc/lib-symbol-visibility.texi: Renamed from visibility.texi.
46776         * doc/gnulib.texi: Update.
46777         * MODULES.html.sh (Misc): Update.
46778         * NEWS: Mention the change.
46779
46780 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46781
46782         * modules/lib-msvc-compat: New module.  Thanks to Bruno Haible
46783         <bruno@clisp.org>, Ralf Wildenhues <Ralf.Wildenhues@gmx.de>, and
46784         Eric Blake <ebb9@byu.net> for review.
46785         * MODULES.html.sh: Add lib-msvc-compat.
46786         * doc/gnulib.texi: Link to new section.
46787         * m4/ld-output-def.m4: New file.
46788         * doc/ld-output-def.texi: New file.
46789
46790 2009-04-01  Simon Josefsson  <simon@josefsson.org>
46791
46792         Rename ld-version-script to lib-symbol-versions.  Suggested by
46793         Bruno Haible <bruno@clisp.org>.
46794         * modules/ld-version-script: Renamed to lib-symbol-versions.
46795         * doc/ld-version-script.texi: Fix module name.
46796         * MODULES.html.sh: Add lib-symbol-versions.
46797
46798 2009-03-31  Simon Josefsson  <simon@josefsson.org>
46799
46800         * modules/u64-tests: New file.
46801         * tests/test-u64.c: New file.
46802
46803 2009-03-04  Simon Josefsson  <simon@josefsson.org>
46804
46805         * MODULES.html.sh: Mention u64.
46806         * modules/u64: New module.
46807         * modules/crypto/sha512: Depend on u64 module instead of providing
46808         u64.h.
46809
46810 2009-03-27  Eric Blake  <ebb9@byu.net>
46811
46812         test-strerror: make debugging EAI_SYSTEM easier
46813         * modules/getaddrinfo-tests (Depends-on): Add strerror.
46814         * test-getaddrinfo.c (simple) [ENABLE_DEBUGGING]: Report errno if
46815         failure was EAI_SYSTEM.
46816
46817 2009-03-25  Bruno Haible  <bruno@clisp.org>
46818
46819         Fix a problem with --enable-relocatable on Solaris 7.
46820         * modules/relocatable-prog-wrapper (Depends-on): Add environ. Needed
46821         since 2008-02-24.
46822
46823 2009-03-25  Eric Blake  <ebb9@byu.net>
46824
46825         test-sockets: avoid gcc warning
46826         * tests/test-sockets.c (main): Silence compiler warning.
46827
46828 2009-03-25  Paul Eggert  <eggert@cs.ucla.edu>
46829
46830         New modules nproc, pthread, contributed by Glen Lenker.
46831
46832         * MODULES.html.sh: Add pthread, nproc.
46833         * lib/nproc.c: New file.
46834         * lib/nproc.h: New file.
46835         * lib/pthread.in.h: New file.
46836         * m4/pthread.m4: New file.
46837         * modules/nproc: New file.
46838         * modules/pthread: New file.
46839
46840 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46841
46842         * modules/unicase/locale-language-tests (test_locale_language_LDADD):
46843         New variable.
46844
46845 2009-03-24  Kamil Dudka  <kdudka@redhat.com>
46846
46847         filevercmp: handle simple~ and numbered.~3~ backup suffixes
46848         * lib/filevercmp.c: Handle simple~ and numbered.~3~ backup suffixes.
46849         * tests/test-filevercmp.c: Add tests for backup suffixes.
46850
46851 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46852
46853         * modules/stdlib (Depends-on): Add stdint, needed when defining
46854         struct random_data on, for example, HP-UX 10.20.  Reported by
46855         Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
46856
46857 2009-03-24  Simon Josefsson  <simon@josefsson.org>
46858
46859         * lib/readline.c (readline): Call fflush on stdout after printing
46860         prompt.
46861
46862 2009-03-20  Bruno Haible  <bruno@clisp.org>
46863
46864         Remove dependency from 'close' module to -lws2_32 on native Windows.
46865         * lib/close-hook.h: New file.
46866         * lib/close-hook.c: New file.
46867         * lib/close.c: Include close-hook.h. Don't include <sys/socket.h>,
46868         w32sock.h.
46869         (_gl_close_fd_maybe_socket): Remove function.
46870         (rpl_close): Invoke execute_all_close_hooks instead of
46871         _gl_close_fd_maybe_socket.
46872         * lib/sockets.c: Include close-hook.h, w32sock.h.
46873         (close_fd_maybe_socket): New function, essentially from lib/close.c.
46874         (close_sockets_hook): New variable.
46875         (gl_sockets_startup): Register close_fd_maybe_socket as a hook.
46876         (gl_sockets_cleanup): Unregister it.
46877         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): Remove macro.
46878         * m4/close.m4 (gl_REPLACE_CLOSE): Undo 2009-02-05 change.
46879         * modules/close-hook: New file.
46880         * modules/close (Files): Remove lib/w32sock.h.
46881         (Depends-on): Add close-hook.
46882         (Link): Remove section.
46883         * modules/sockets (Files): Add lib/w32sock.h.
46884         (Depends-on): Add close-hook.
46885         * modules/sys_socket (configure.ac): Remove gl_MODULE_INDICATOR
46886         invocation.
46887         * NEWS: Mention that LIB_CLOSE is gone.
46888
46889 2009-03-23  Eric Blake  <ebb9@byu.net>
46890
46891         signal-tests: test previous patch
46892         * tests/test-signal.c: New file.
46893         * modules/signal-tests: Likewise.
46894
46895         signal.h: always support 'volatile sig_atomic_t'
46896         * m4/signal_h.m4 (gl_SIGNAL_H): Check for AIX limitation.
46897         (gl_SIGNAL_H_DEFAULTS): Add a default.
46898         * modules/signal (Makefile.am): Substitute if needed.
46899         * lib/signal.in.h (sig_atomic_t): Redefine if needed, so that
46900         users can blindly add volatile.
46901         * doc/posix-headers/signal.texi (signal.h): Document it.
46902         Reported by Matthew Woehlke.
46903
46904 2009-03-23  Jim Meyering  <meyering@redhat.com>
46905
46906         pathmax: PATH_MAX: use pathconf only when available
46907         * lib/pathmax.h (PATH_MAX): Select the pathconf-using definition
46908         only if HAVE_PATHCONF is defined.  Patch by Sylvain Beucler.
46909         * m4/pathmax.m4 (gl_PATHMAX): Check for pathconf.
46910         This avoids a link failure in a PSP cross-compilation environment
46911         described in http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/17048
46912
46913         * lib/vasnprintf.c (divide): Fix typo in comment.
46914
46915 2009-03-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46916
46917         * gnulib-tool (func_filter_filelist): Fix comment.
46918
46919 2009-03-20  Bruno Haible  <bruno@clisp.org>
46920
46921         Make sockets.h self-contained.
46922         * lib/sockets.c: Include sockets.h first.
46923         * lib/sockets.h: Include <sys/socket.h> before using the SOCKET type.
46924
46925 2009-03-19  Eric Blake  <ebb9@byu.net>
46926
46927         doc: mention more functions added in cygwin 1.7.0
46928         * doc/posix-functions/log2.texi: Mention recent cygwin 1.7.0
46929         addition.
46930         * doc/posix-functions/log2f.texi: Likewise.
46931
46932 2009-03-19  Jim Meyering  <meyering@redhat.com>
46933
46934         fsusage: avoid syntax error due to statement-before-declaration
46935         * lib/fsusage.c (get_fs_usage): Put warning-avoidance statement
46936         after all declarations.  Reported by Matthew Woehlke in
46937         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/16231
46938
46939 2009-03-18  Eric Blake  <ebb9@byu.net>
46940
46941         build-aux/compile: sync from automake
46942         * build-aux/compile: New file, from automake.
46943         * config/srclist.txt: Mention build-aux/compile.
46944
46945 2009-03-17  Bruno Haible  <bruno@clisp.org>
46946
46947         * lib/git-merge-changelog.c: Fix typo in comment.
46948         Reported by Reuben Thomas <rrt@sc3d.org>.
46949
46950 2009-03-17  Reuben Thomas  <rrt@sc3d.org>
46951
46952         * m4/regex.m4: update and improve help for
46953         --without-included-regex.
46954
46955 2009-03-17  Simon Josefsson  <simon@josefsson.org>
46956
46957         * modules/isnanl-nolibm-tests (Files): Add tests/nan.h to avoid
46958         failure on missing include files.
46959
46960 2009-03-17  Eric Blake  <ebb9@byu.net>
46961
46962         doc: mention more functions added in cygwin 1.7.0
46963         * doc/posix-functions/fwprintf.texi: Mention recent cygwin 1.7.0
46964         addition.
46965         * doc/posix-functions/fwscanf.texi: Likewise.
46966         * doc/posix-functions/swprintf.texi: Likewise.
46967         * doc/posix-functions/swscanf.texi: Likewise.
46968         * doc/posix-functions/vfwprintf.texi: Likewise.
46969         * doc/posix-functions/vfwscanf.texi: Likewise.
46970         * doc/posix-functions/vswprintf.texi: Likewise.
46971         * doc/posix-functions/vswscanf.texi: Likewise.
46972         * doc/posix-functions/vwprintf.texi: Likewise.
46973         * doc/posix-functions/vwscanf.texi: Likewise.
46974         * doc/posix-functions/wcscasecmp.texi: Likewise.
46975         * doc/posix-functions/wcsdup.texi: Likewise.
46976         * doc/posix-functions/wcsftime.texi: Likewise.
46977         * doc/posix-functions/wcsncasecmp.texi: Likewise.
46978         * doc/posix-functions/wprintf.texi: Likewise.
46979         * doc/posix-functions/wscanf.texi: Likewise.
46980         * doc/glibc-functions/gethostbyname2.texi: Likewise.
46981
46982 2009-03-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
46983
46984         maint.mk: really add $(AM_MAKEFLAGS)
46985         * top/maint.mk (init-coverage, build-coverage): `$(AM_MAKEFLAGS)'
46986         was inadvertently omitted in the last commit.
46987         Spotted by Bruno Haible.
46988
46989         maint.mk: use $(MAKE) $(AM_MAKEFLAGS) not make
46990         * top/maint.mk (init-coverage, build-coverage): Use `$(MAKE)
46991         $(AM_MAKEFLAGS)' rather than plain `make'.
46992
46993         gnulib-tool: execute $MAKE not make
46994         * gnulib-tool: Default $MAKE to 'make'.
46995         (func_create_testdir, func_create_megatestdir): Use $MAKE rather
46996         than make.  Initialize $MAKE in the do-autobuild script.
46997
46998         gnulib-tool: use $MAKE not make in generated files
46999         * gnulib-tool (func_create_megatestdir): Use $MAKE rather than
47000         make, in generated files.  Initialize $MAKE in the do-autobuild
47001         script.
47002
47003         * top/GNUmakefile (_have-git-version-gen): Fix typo.
47004
47005         GNUmakefile: disable parallelism only for multiple, recursive targets
47006         * top/GNUmakefile (ALL_RECURSIVE_TARGETS): New macro; allow user
47007         additions in the Makefile.
47008         (AM_RECURSIVE_TARGETS): New macro, override only if not provided
47009         by Automake.
47010         (.NOTPARALLEL): Only disable parallel builds if multiple targets
47011         are listed on the command line and at least one of them is
47012         listed in $(ALL_RECURSIVE_TARGETS).
47013
47014 2009-03-14  Bruno Haible  <bruno@clisp.org>
47015
47016         * modules/unilbrk/u8-possible-linebreaks (Depends-on): Replace
47017         utf8-ucs4-unsafe with unistr/u8-mbtouc-unsafe.
47018         * modules/unilbrk/u8-width-linebreaks (Depends-on): Likewise.
47019         * modules/unilbrk/u16-possible-linebreaks (Depends-on): Replace
47020         utf16-ucs4-unsafe with unistr/u16-mbtouc-unsafe.
47021         * modules/unilbrk/u16-width-linebreaks (Depends-on): Likewise.
47022         * modules/unistr/u8-chr (Depends-on): Replace ucs4-utf8 with
47023         unistr/u8-uctomb.
47024         * modules/unistr/u8-strchr (Depends-on): Likewise.
47025         * modules/unistr/u8-strrchr (Depends-on): Likewise.
47026         * modules/unistr/u16-chr (Depends-on): Replace ucs4-utf16 with
47027         unistr/u16-uctomb.
47028         * modules/unistr/u16-strchr (Depends-on): Likewise.
47029         * modules/unistr/u16-strrchr (Depends-on): Likewise.
47030
47031 2009-03-12  Bruno Haible  <bruno@clisp.org>
47032
47033         Work around select() bug on Interix 3.5.
47034         * lib/sys_select.in.h (select): Also replace if REPLACE_SELECT is 1.
47035         * lib/select.c (rpl_select): Add an implementation for Unix platforms.
47036         * m4/select.m4: New file.
47037         * m4/sys_select_h.m4 (gl_SYS_SELECT_H_DEFAULTS): Initialize REPLACE_SELECT.
47038         * modules/sys_select (Makefile.am): Substitute REPLACE_SELECT.
47039         * modules/select (Files): Add m4/select.m4.
47040         (configure.ac): Move conditional to m4/select.m4. Invoke gl_FUNC_SELECT.
47041         * modules/nanosleep (Depends-on): Add select.
47042         * modules/poll (Depends-on): Likewise.
47043         * doc/posix-functions/select.texi: Mention the Interix bug.
47044         Reported by Markus Duft <mduft@gentoo.org>.
47045
47046         * lib/select.c: Renamed from lib/winsock-select.c.
47047         * modules/select (Files): Add lib/select.c, remove
47048         lib/winsock-select.c.
47049         (configure.ac): Update.
47050
47051 2009-03-12  Jim Meyering  <meyering@redhat.com>
47052
47053         avoid gcc warnings about unused macro definitions
47054         * lib/readtokens.c (STREQ): Remove unused definition.
47055         * lib/xmalloc.c (SIZE_MAX): Likewise.
47056         * lib/openat-die.c (N_): Likewise.
47057         * lib/mountlist.c (SIZE_MAX): Remove definition.
47058         Instead, include <stdint.h>.
47059         * lib/readutmp.c: Likewise.
47060         * modules/readutmp (Depends-on): Add stdint.
47061         * modules/mountlist (Depends-on): Add stdint.
47062         * lib/userspec.c (ISDIGIT): Move definition into #if block where used.
47063
47064 2009-03-10  Bruno Haible  <bruno@clisp.org>
47065
47066         Tests for module 'mbmemcasecoll'.
47067         * modules/mbmemcasecoll-tests: New file.
47068         * tests/test-mbmemcasecoll1.sh: New file.
47069         * tests/test-mbmemcasecoll2.sh: New file.
47070         * tests/test-mbmemcasecoll3.sh: New file.
47071         * tests/test-mbmemcasecoll.c: New file.
47072
47073         New module 'mbmemcasecoll'.
47074         * lib/mbmemcasecoll.h: New file.
47075         * lib/mbmemcasecoll.c: New file.
47076         * modules/mbmemcasecoll: New file.
47077
47078         * tests/test-mbmemcasecmp.h: New file, extracted from
47079         tests/test-mbmemcasecmp.c.
47080         * tests/test-mbmemcasecmp.c: Include test-mbmemcasecmp.h.
47081         (test_ascii, test_iso_8859_1, test_utf_8): Remove functions.
47082         (main): Update.
47083         * modules/mbmemcasecmp-tests (Files): Add tests/test-mbmemcasecmp.h.
47084
47085 2009-03-09  Bruno Haible  <bruno@clisp.org>
47086
47087         Tests for module 'mbmemcasecmp'.
47088         * modules/mbmemcasecmp-tests: New file.
47089         * tests/test-mbmemcasecmp1.sh: New file.
47090         * tests/test-mbmemcasecmp2.sh: New file.
47091         * tests/test-mbmemcasecmp3.sh: New file.
47092         * tests/test-mbmemcasecmp.c: New file.
47093
47094         New module 'mbmemcasecmp'.
47095         * lib/mbmemcasecmp.h: New file.
47096         * lib/mbmemcasecmp.c: New file.
47097         * modules/mbmemcasecmp: New file.
47098
47099 2009-03-09  Bruno Haible  <bruno@clisp.org>
47100
47101         Tests for module 'unicase/ulc-casecoll'.
47102         * modules/unicase/ulc-casecoll-tests: New file.
47103         * tests/unicase/test-ulc-casecoll1.sh: New file.
47104         * tests/unicase/test-ulc-casecoll2.sh: New file.
47105         * tests/unicase/test-ulc-casecoll.c: New file.
47106
47107         New module 'unicase/ulc-casecoll'.
47108         * lib/unicase.h (ulc_casecoll): New declaration.
47109         * lib/unicase/ulc-casecoll.c: New file.
47110         * modules/unicase/ulc-casecoll: New file.
47111
47112         New module 'unicase/ulc-casexfrm'.
47113         * lib/unicase.h (ulc_casexfrm): New declaration.
47114         * lib/unicase/ulc-casexfrm.c: New file.
47115         * modules/unicase/ulc-casexfrm: New file.
47116
47117 2009-03-09  Bruno Haible  <bruno@clisp.org>
47118
47119         Followup to 2008-12-22 commit: Remove unnecessary AC_FUNC_MBRTOWC
47120         invocations.
47121
47122         * m4/mbscasecmp.m4: Remove file.
47123         * modules/mbscasecmp (Files): Remove it and m4/mbrtowc.m4
47124         (configure.ac): Remove gl_FUNC_MBSCASECMP invocation.
47125
47126         * m4/mbscasestr.m4: Remove file.
47127         * modules/mbscasestr (Files): Remove it and m4/mbrtowc.m4
47128         (configure.ac): Remove gl_FUNC_MBSCASESTR invocation.
47129
47130         * m4/mbschr.m4: Remove file.
47131         * modules/mbschr (Files): Remove it and m4/mbrtowc.m4
47132         (configure.ac): Remove gl_FUNC_MBSCHR invocation.
47133
47134         * m4/mbscspn.m4: Remove file.
47135         * modules/mbscspn (Files): Remove it and m4/mbrtowc.m4
47136         (configure.ac): Remove gl_FUNC_MBSCSPN invocation.
47137
47138         * m4/mbslen.m4: Remove file.
47139         * modules/mbslen (Files): Remove it and m4/mbrtowc.m4
47140         (configure.ac): Remove gl_FUNC_MBSLEN invocation.
47141
47142         * m4/mbsncasecmp.m4: Remove file.
47143         * modules/mbsncasecmp (Files): Remove it and m4/mbrtowc.m4
47144         (configure.ac): Remove gl_FUNC_MBSNCASECMP invocation.
47145
47146         * m4/mbsnlen.m4: Remove file.
47147         * modules/mbsnlen (Files): Remove it and m4/mbrtowc.m4
47148         (configure.ac): Remove gl_FUNC_MBSNLEN invocation.
47149
47150         * m4/mbspbrk.m4: Remove file.
47151         * modules/mbspbrk (Files): Remove it and m4/mbrtowc.m4
47152         (configure.ac): Remove gl_FUNC_MBSPBRK invocation.
47153
47154         * m4/mbspcasecmp.m4: Remove file.
47155         * modules/mbspcasecmp (Files): Remove it and m4/mbrtowc.m4
47156         (configure.ac): Remove gl_FUNC_MBSPCASECMP invocation.
47157
47158         * m4/mbsrchr.m4: Remove file.
47159         * modules/mbsrchr (Files): Remove it and m4/mbrtowc.m4
47160         (configure.ac): Remove gl_FUNC_MBSRCHR invocation.
47161
47162         * m4/mbssep.m4: Remove file.
47163         * modules/mbssep (Files): Remove it and m4/mbrtowc.m4
47164         (configure.ac): Remove gl_FUNC_MBSSEP invocation.
47165
47166         * m4/mbsspn.m4: Remove file.
47167         * modules/mbsspn (Files): Remove it and m4/mbrtowc.m4
47168         (configure.ac): Remove gl_FUNC_MBSSPN invocation.
47169
47170         * m4/mbsstr.m4: Remove file.
47171         * modules/mbsstr (Files): Remove it and m4/mbrtowc.m4
47172         (configure.ac): Remove gl_FUNC_MBSSTR invocation.
47173
47174         * m4/mbstok_r.m4: Remove file.
47175         * modules/mbstok_r (Files): Remove it and m4/mbrtowc.m4
47176         (configure.ac): Remove gl_FUNC_MBSTOK_R invocation.
47177
47178         * m4/mbswidth.m4 (gl_MBSWIDTH): Remove AC_FUNC_MBRTOWC invocation.
47179
47180         * m4/quotearg.m4 (gl_QUOTEARG): Remove mbsinit test and
47181         AC_TYPE_MBSTATE_T, AC_FUNC_MBRTOWC invocations.
47182
47183         * modules/trim (configure.ac): Remove AC_FUNC_MBRTOWC invocation.
47184
47185 2009-03-08  Bruno Haible  <bruno@clisp.org>
47186
47187         Tests for module 'unicase/ulc-casecmp'.
47188         * modules/unicase/ulc-casecmp-tests: New file.
47189         * tests/unicase/test-ulc-casecmp1.sh: New file.
47190         * tests/unicase/test-ulc-casecmp2.sh: New file.
47191         * tests/unicase/test-ulc-casecmp.c: New file.
47192
47193         New module 'unicase/ulc-casecmp'.
47194         * lib/unicase.h (ulc_casecmp): New declaration.
47195         * lib/unicase/ulc-casecmp.c: New file.
47196         * lib/unicase/u-casecmp.h (FUNC): Change argument types to
47197         'const SRC_UNIT *'.
47198         * lib/unicase/u8-casecmp.c (SRC_UNIT): Define like UNIT.
47199         * lib/unicase/u16-casecmp.c (SRC_UNIT): Likewise.
47200         * lib/unicase/u32-casecmp.c (SRC_UNIT): Likewise.
47201         * modules/unicase/ulc-casecmp: New file.
47202
47203         Tests for module 'unicase/u32-is-cased'.
47204         * modules/unicase/u32-is-cased-tests: New file.
47205         * tests/unicase/test-u32-is-cased.c: New file.
47206
47207         Tests for module 'unicase/u16-is-cased'.
47208         * modules/unicase/u16-is-cased-tests: New file.
47209         * tests/unicase/test-u16-is-cased.c: New file.
47210
47211         Tests for module 'unicase/u8-is-cased'.
47212         * modules/unicase/u8-is-cased-tests: New file.
47213         * tests/unicase/test-u8-is-cased.c: New file.
47214         * tests/unicase/test-is-cased.h: New file.
47215
47216         New module 'unicase/u32-is-cased'.
47217         * lib/unicase/u32-is-cased.c: New file.
47218         * modules/unicase/u32-is-cased: New file.
47219
47220         New module 'unicase/u16-is-cased'.
47221         * lib/unicase/u16-is-cased.c: New file.
47222         * modules/unicase/u16-is-cased: New file.
47223
47224         New module 'unicase/u8-is-cased'.
47225         * lib/unicase/u8-is-cased.c: New file.
47226         * lib/unicase/u-is-cased.h: New file.
47227         * modules/unicase/u8-is-cased: New file.
47228
47229         Tests for module 'unicase/u32-is-casefolded'.
47230         * modules/unicase/u32-is-casefolded-tests: New file.
47231         * tests/unicase/test-u32-is-casefolded.c: New file.
47232
47233         Tests for module 'unicase/u16-is-casefolded'.
47234         * modules/unicase/u16-is-casefolded-tests: New file.
47235         * tests/unicase/test-u16-is-casefolded.c: New file.
47236
47237         Tests for module 'unicase/u8-is-casefolded'.
47238         * modules/unicase/u8-is-casefolded-tests: New file.
47239         * tests/unicase/test-u8-is-casefolded.c: New file.
47240         * tests/unicase/test-is-casefolded.h: New file.
47241
47242         New module 'unicase/u32-is-casefolded'.
47243         * lib/unicase/u32-is-casefolded.c: New file.
47244         * modules/unicase/u32-is-casefolded: New file.
47245
47246         New module 'unicase/u16-is-casefolded'.
47247         * lib/unicase/u16-is-casefolded.c: New file.
47248         * modules/unicase/u16-is-casefolded: New file.
47249
47250         New module 'unicase/u8-is-casefolded'.
47251         * lib/unicase/u8-is-casefolded.c: New file.
47252         * modules/unicase/u8-is-casefolded: New file.
47253
47254         Tests for module 'unicase/u32-is-titlecase'.
47255         * modules/unicase/u32-is-titlecase-tests: New file.
47256         * tests/unicase/test-u32-is-titlecase.c: New file.
47257
47258         Tests for module 'unicase/u16-is-titlecase'.
47259         * modules/unicase/u16-is-titlecase-tests: New file.
47260         * tests/unicase/test-u16-is-titlecase.c: New file.
47261
47262         Tests for module 'unicase/u8-is-titlecase'.
47263         * modules/unicase/u8-is-titlecase-tests: New file.
47264         * tests/unicase/test-u8-is-titlecase.c: New file.
47265         * tests/unicase/test-is-titlecase.h: New file.
47266
47267         New module 'unicase/u32-is-titlecase'.
47268         * lib/unicase/u32-is-titlecase.c: New file.
47269         * modules/unicase/u32-is-titlecase: New file.
47270
47271         New module 'unicase/u16-is-titlecase'.
47272         * lib/unicase/u16-is-titlecase.c: New file.
47273         * modules/unicase/u16-is-titlecase: New file.
47274
47275         New module 'unicase/u8-is-titlecase'.
47276         * lib/unicase/u8-is-titlecase.c: New file.
47277         * modules/unicase/u8-is-titlecase: New file.
47278
47279         Tests for module 'unicase/u32-is-lowercase'.
47280         * modules/unicase/u32-is-lowercase-tests: New file.
47281         * tests/unicase/test-u32-is-lowercase.c: New file.
47282
47283         Tests for module 'unicase/u16-is-lowercase'.
47284         * modules/unicase/u16-is-lowercase-tests: New file.
47285         * tests/unicase/test-u16-is-lowercase.c: New file.
47286
47287         Tests for module 'unicase/u8-is-lowercase'.
47288         * modules/unicase/u8-is-lowercase-tests: New file.
47289         * tests/unicase/test-u8-is-lowercase.c: New file.
47290         * tests/unicase/test-is-lowercase.h: New file.
47291
47292         New module 'unicase/u32-is-lowercase'.
47293         * lib/unicase/u32-is-lowercase.c: New file.
47294         * modules/unicase/u32-is-lowercase: New file.
47295
47296         New module 'unicase/u16-is-lowercase'.
47297         * lib/unicase/u16-is-lowercase.c: New file.
47298         * modules/unicase/u16-is-lowercase: New file.
47299
47300         New module 'unicase/u8-is-lowercase'.
47301         * lib/unicase/u8-is-lowercase.c: New file.
47302         * modules/unicase/u8-is-lowercase: New file.
47303
47304         Tests for module 'unicase/u32-is-uppercase'.
47305         * modules/unicase/u32-is-uppercase-tests: New file.
47306         * tests/unicase/test-u32-is-uppercase.c: New file.
47307
47308         Tests for module 'unicase/u16-is-uppercase'.
47309         * modules/unicase/u16-is-uppercase-tests: New file.
47310         * tests/unicase/test-u16-is-uppercase.c: New file.
47311
47312         Tests for module 'unicase/u8-is-uppercase'.
47313         * modules/unicase/u8-is-uppercase-tests: New file.
47314         * tests/unicase/test-u8-is-uppercase.c: New file.
47315         * tests/unicase/test-is-uppercase.h: New file.
47316
47317         New module 'unicase/u32-is-uppercase'.
47318         * lib/unicase/u32-is-uppercase.c: New file.
47319         * modules/unicase/u32-is-uppercase: New file.
47320
47321         New module 'unicase/u16-is-uppercase'.
47322         * lib/unicase/u16-is-uppercase.c: New file.
47323         * modules/unicase/u16-is-uppercase: New file.
47324
47325         New module 'unicase/u8-is-uppercase'.
47326         * lib/unicase/u8-is-uppercase.c: New file.
47327         * modules/unicase/u8-is-uppercase: New file.
47328
47329         New module 'unicase/u32-is-invariant'.
47330         * lib/unicase/u32-is-invariant.c: New file.
47331         * modules/unicase/u32-is-invariant: New file.
47332
47333         New module 'unicase/u16-is-invariant'.
47334         * lib/unicase/u16-is-invariant.c: New file.
47335         * modules/unicase/u16-is-invariant: New file.
47336
47337         New module 'unicase/u8-is-invariant'.
47338         * lib/unicase/u8-is-invariant.c: New file.
47339         * lib/unicase/invariant.h: New file.
47340         * lib/unicase/u-is-invariant.h: New file.
47341         * modules/unicase/u8-is-invariant: New file.
47342
47343         Tests for module 'unicase/u32-casecoll'.
47344         * modules/unicase/u32-casecoll-tests: New file.
47345         * tests/unicase/test-u32-casecoll.c: New file.
47346
47347         Tests for module 'unicase/u16-casecoll'.
47348         * modules/unicase/u16-casecoll-tests: New file.
47349         * tests/unicase/test-u16-casecoll.c: New file.
47350
47351         Tests for module 'unicase/u8-casecoll'.
47352         * modules/unicase/u8-casecoll-tests: New file.
47353         * tests/unicase/test-u8-casecoll.c: New file.
47354
47355         New module 'unicase/u32-casecoll'.
47356         * lib/unicase/u32-casecoll.c: New file.
47357         * modules/unicase/u32-casecoll: New file.
47358
47359         New module 'unicase/u16-casecoll'.
47360         * lib/unicase/u16-casecoll.c: New file.
47361         * modules/unicase/u16-casecoll: New file.
47362
47363         New module 'unicase/u8-casecoll'.
47364         * lib/unicase/u8-casecoll.c: New file.
47365         * lib/unicase/u-casecoll.h: New file.
47366         * modules/unicase/u8-casecoll: New file.
47367
47368         New module 'unicase/u32-casexfrm'.
47369         * lib/unicase/u32-casexfrm.c: New file.
47370         * modules/unicase/u32-casexfrm: New file.
47371
47372         New module 'unicase/u16-casexfrm'.
47373         * lib/unicase/u16-casexfrm.c: New file.
47374         * modules/unicase/u16-casexfrm: New file.
47375
47376         New module 'unicase/u8-casexfrm'.
47377         * lib/unicase/u8-casexfrm.c: New file.
47378         * lib/unicase/u-casexfrm.h: New file.
47379         * modules/unicase/u8-casexfrm: New file.
47380
47381         Tests for module 'unicase/u32-casecmp'.
47382         * modules/unicase/u32-casecmp-tests: New file.
47383         * tests/unicase/test-u32-casecmp.c: New file.
47384
47385         Tests for module 'unicase/u16-casecmp'.
47386         * modules/unicase/u16-casecmp-tests: New file.
47387         * tests/unicase/test-u16-casecmp.c: New file.
47388
47389         Tests for module 'unicase/u8-casecmp'.
47390         * modules/unicase/u8-casecmp-tests: New file.
47391         * tests/unicase/test-u8-casecmp.c: New file.
47392         * tests/unicase/test-casecmp.h: New file.
47393
47394         New module 'unicase/u32-casecmp'.
47395         * lib/unicase/u32-casecmp.c: New file.
47396         * modules/unicase/u32-casecmp: New file.
47397
47398         New module 'unicase/u16-casecmp'.
47399         * lib/unicase/u16-casecmp.c: New file.
47400         * modules/unicase/u16-casecmp: New file.
47401
47402         New module 'unicase/u8-casecmp'.
47403         * lib/unicase/u8-casecmp.c: New file.
47404         * lib/unicase/u-casecmp.h: New file.
47405         * modules/unicase/u8-casecmp: New file.
47406
47407         Tests for module 'unicase/u32-casefold'.
47408         * modules/unicase/u32-casefold-tests: New file.
47409         * tests/unicase/test-u32-casefold.c: New file.
47410
47411         Tests for module 'unicase/u16-casefold'.
47412         * modules/unicase/u16-casefold-tests: New file.
47413         * tests/unicase/test-u16-casefold.c: New file.
47414
47415         Tests for module 'unicase/u8-casefold'.
47416         * modules/unicase/u8-casefold-tests: New file.
47417         * tests/unicase/test-u8-casefold.c: New file.
47418
47419         New module 'unicase/u32-casefold'.
47420         * lib/unicase/u32-casefold.c: New file.
47421         * modules/unicase/u32-casefold: New file.
47422
47423         New module 'unicase/u16-casefold'.
47424         * lib/unicase/u16-casefold.c: New file.
47425         * modules/unicase/u16-casefold: New file.
47426
47427         New module 'unicase/u8-casefold'.
47428         * lib/unicase/u8-casefold.c: New file.
47429         * lib/unicase/u-casefold.h: New file.
47430         * modules/unicase/u8-casefold: New file.
47431
47432         New module 'unicase/tocasefold'.
47433         * lib/unicase/casefold.h: New file.
47434         * lib/unicase/tocasefold.c: New file.
47435         * lib/unicase/tocasefold.h: New file, generated by gen-uni-tables.c.
47436         * modules/unicase/tocasefold: New file.
47437
47438         Tests for module 'unicase/u32-totitle'.
47439         * modules/unicase/u32-totitle-tests: New file.
47440         * tests/unicase/test-u32-totitle.c: New file.
47441
47442         Tests for module 'unicase/u16-totitle'.
47443         * modules/unicase/u16-totitle-tests: New file.
47444         * tests/unicase/test-u16-totitle.c: New file.
47445
47446         Tests for module 'unicase/u8-totitle'.
47447         * modules/unicase/u8-totitle-tests: New file.
47448         * tests/unicase/test-u8-totitle.c: New file.
47449
47450         New module 'unicase/u32-totitle'.
47451         * lib/unicase/u32-totitle.c: New file.
47452         * modules/unicase/u32-totitle: New file.
47453
47454         New module 'unicase/u16-totitle'.
47455         * lib/unicase/u16-totitle.c: New file.
47456         * modules/unicase/u16-totitle: New file.
47457
47458         New module 'unicase/u8-totitle'.
47459         * lib/unicase/u8-totitle.c: New file.
47460         * lib/unicase/u-totitle.h: New file.
47461         * modules/unicase/u8-totitle: New file.
47462
47463         Tests for module 'unicase/u32-tolower'.
47464         * modules/unicase/u32-tolower-tests: New file.
47465         * tests/unicase/test-u32-tolower.c: New file.
47466
47467         Tests for module 'unicase/u16-tolower'.
47468         * modules/unicase/u16-tolower-tests: New file.
47469         * tests/unicase/test-u16-tolower.c: New file.
47470
47471         Tests for module 'unicase/u8-tolower'.
47472         * modules/unicase/u8-tolower-tests: New file.
47473         * tests/unicase/test-u8-tolower.c: New file.
47474
47475         New module 'unicase/u32-tolower'.
47476         * lib/unicase/u32-tolower.c: New file.
47477         * modules/unicase/u32-tolower: New file.
47478
47479         New module 'unicase/u16-tolower'.
47480         * lib/unicase/u16-tolower.c: New file.
47481         * modules/unicase/u16-tolower: New file.
47482
47483         New module 'unicase/u8-tolower'.
47484         * lib/unicase/u8-tolower.c: New file.
47485         * modules/unicase/u8-tolower: New file.
47486
47487         Tests for module 'unicase/u32-toupper'.
47488         * modules/unicase/u32-toupper-tests: New file.
47489         * tests/unicase/test-u32-toupper.c: New file.
47490
47491         Tests for module 'unicase/u16-toupper'.
47492         * modules/unicase/u16-toupper-tests: New file.
47493         * tests/unicase/test-u16-toupper.c: New file.
47494
47495         Tests for module 'unicase/u8-toupper'.
47496         * modules/unicase/u8-toupper-tests: New file.
47497         * tests/unicase/test-u8-toupper.c: New file.
47498
47499         New module 'unicase/u32-toupper'.
47500         * lib/unicase/u32-toupper.c: New file.
47501         * modules/unicase/u32-toupper: New file.
47502
47503         New module 'unicase/u16-toupper'.
47504         * lib/unicase/u16-toupper.c: New file.
47505         * modules/unicase/u16-toupper: New file.
47506
47507         New module 'unicase/u8-toupper'.
47508         * lib/unicase/u8-toupper.c: New file.
47509         * modules/unicase/u8-toupper: New file.
47510
47511         New module 'unicase/u32-casemap'.
47512         * lib/unicase/u32-casemap.c: New file.
47513         * modules/unicase/u32-casemap: New file.
47514
47515         New module 'unicase/u16-casemap'.
47516         * lib/unicase/u16-casemap.c: New file.
47517         * modules/unicase/u16-casemap: New file.
47518
47519         New module 'unicase/u8-casemap'.
47520         * lib/unicase/unicasemap.h: New file.
47521         * lib/unicase/u8-casemap.c: New file.
47522         * lib/unicase/u-casemap.h: New file.
47523         * modules/unicase/u8-casemap: New file.
47524
47525         New module 'unicase/special-casing'.
47526         * lib/unicase/special-casing.h: New file.
47527         * lib/unicase/special-casing.c: New file.
47528         * lib/unicase/special-casing-table.gperf: New file, generated by
47529         gen-uni-tables.c.
47530         * modules/unicase/special-casing: New file.
47531
47532         Tests for module 'unicase/locale-language'.
47533         * modules/unicase/locale-language-tests: New file.
47534         * tests/unicase/test-locale-language.sh: New file.
47535         * tests/unicase/test-locale-language.c: New file.
47536
47537         New module 'unicase/locale-language'.
47538         * lib/unicase/locale-language.c: New file.
47539         * lib/unicase/locale-languages.gperf: New file.
47540         * modules/unicase/locale-language: New file.
47541
47542         Generate more tables for case conversion and case folding.
47543         * lib/gen-uni-tables.c (SCC_*): New enum items.
47544         (struct special_casing_rule): New type.
47545         (casing_rules, num_casing_rules, allocated_casing_rules): New
47546         variables.
47547         (add_casing_rule, fill_casing_rules): New functions.
47548         (struct casefold_rule): New type.
47549         (casefolding_rules, num_casefolding_rules,
47550         allocated_casefolding_rules): New variables.
47551         (fill_casefolding_rules): New function.
47552         (unicode_casefold): New variable.
47553         (to_casefold, redistribute_casefolding_rules, compare_casing_rules,
47554         sort_casing_rules, output_casing_rules): New functions.
47555         (main): Accept to more arguments: SpecialCasing.txt and
47556         CaseFolding.txt. Invoke fill_casing_rules, fill_casefolding_rules,
47557         redistribute_casefolding_rules, sort_casing_rules, output_casing_rules.
47558         Output mapping for casefolding.
47559
47560         * lib/unicase.h: Include stdbool.h, uninorm.h.
47561         (u8_toupper, u16_toupper, u32_toupper, u8_tolower, u16_tolower,
47562         u32_tolower, u8_totitle, u16_totitle, u32_totitle): Add nf argument.
47563         (u8_casefold, u16_casefold, u32_casefold): Add iso639_language and nf
47564         arguments.
47565         (u8_casecmp, u16_casecmp, u32_casecmp): Add iso639_language, nf,
47566         resultp arguments.
47567         (u8_casexfrm, u16_casexfrm, u32_casexfrm): New declarations.
47568         (u8_casecoll, u16_casecoll, u32_casecoll): Add iso639_language, nf,
47569         resultp arguments.
47570         (u8_is_uppercase, u16_is_uppercase, u32_is_uppercase, u8_is_lowercase,
47571         u16_is_lowercase, u32_is_lowercase, u8_is_titlecase, u16_is_titlecase,
47572         u32_is_titlecase, u8_is_casefolded, u16_is_casefolded,
47573         u32_is_casefolded, u8_is_cased, u16_is_cased, u32_is_cased): New
47574         declarations.
47575         * modules/unicase/base (Depends-on): Add uninorm/base, stdbool.
47576
47577 2009-03-08  Bruno Haible  <bruno@clisp.org>
47578
47579         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47580         u16_normcoll, u32_normcoll): Rename argument 'result' to 'resultp'.
47581         * lib/uninorm/u-normcmp.h (FUNC): Likewise.
47582         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47583
47584 2009-03-07  Bruno Haible  <bruno@clisp.org>
47585
47586         Adjust u*_normcmp, u*_normcoll API.
47587         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp, u8_normcoll,
47588         u16_normcoll, u32_normcoll): Change failure conventions.
47589         * lib/uninorm/u-normcmp.h (FUNC): Upon failure, store the error code in
47590         errno and return -1.
47591         * lib/uninorm/u-normcoll.h (FUNC): Likewise.
47592
47593 2009-03-07  Bruno Haible  <bruno@clisp.org>
47594
47595         Tests for module 'uninorm/u32-normcoll'.
47596         * modules/uninorm/u32-normcoll-tests: New file.
47597         * tests/uninorm/test-u32-normcoll.c: New file.
47598
47599         Tests for module 'uninorm/u16-normcoll'.
47600         * modules/uninorm/u16-normcoll-tests: New file.
47601         * tests/uninorm/test-u16-normcoll.c: New file.
47602
47603         Tests for module 'uninorm/u8-normcoll'.
47604         * modules/uninorm/u8-normcoll-tests: New file.
47605         * tests/uninorm/test-u8-normcoll.c: New file.
47606
47607 2009-03-07  Bruno Haible  <bruno@clisp.org>
47608
47609         * tests/uninorm/test-u32-normcmp.h: New file, extracted from
47610         tests/uninorm/test-u32-normcmp.c.
47611         * tests/uninorm/test-u32-normcmp.c: Include it.
47612         (test_nonascii): New function, extracted from main. Add some more
47613         tests.
47614         (main): Invoke test_ascii and test_nonascii.
47615         * modules/uninorm/u32-normcmp-tests (Files): Add
47616         tests/uninorm/test-u32-normcmp.h.
47617         (Depends-on): Remove uninorm/u32-normcmp.
47618
47619         * tests/uninorm/test-u16-normcmp.h: New file, extracted from
47620         tests/uninorm/test-u16-normcmp.c.
47621         * tests/uninorm/test-u16-normcmp.c: Include it.
47622         (test_nonascii): New function, extracted from main. Add some more
47623         tests.
47624         (main): Invoke test_ascii and test_nonascii.
47625         * modules/uninorm/u16-normcmp-tests (Files): Add
47626         tests/uninorm/test-u16-normcmp.h.
47627         (Depends-on): Remove uninorm/u16-normcmp.
47628
47629         * tests/uninorm/test-u8-normcmp.h: New file, extracted from
47630         tests/uninorm/test-u8-normcmp.c.
47631         * tests/uninorm/test-u8-normcmp.c: Include it.
47632         (test_nonascii): New function, extracted from main. Add some more
47633         tests.
47634         (main): Invoke test_ascii and test_nonascii.
47635         * modules/uninorm/u8-normcmp-tests (Files): Add
47636         tests/uninorm/test-u8-normcmp.h.
47637         (Depends-on): Remove uninorm/u8-normcmp.
47638
47639 2009-03-07  Bruno Haible  <bruno@clisp.org>
47640
47641         New module 'uninorm/u32-normcoll'.
47642         * lib/uninorm/u32-normcoll.c: New file.
47643         * modules/uninorm/u32-normcoll: New file.
47644
47645         New module 'uninorm/u16-normcoll'.
47646         * lib/uninorm/u16-normcoll.c: New file.
47647         * modules/uninorm/u16-normcoll: New file.
47648
47649         New module 'uninorm/u8-normcoll'.
47650         * lib/uninorm.h (u8_normcoll, u16_normcoll, u32_normcoll): New
47651         declarations.
47652         * lib/uninorm/u8-normcoll.c: New file.
47653         * lib/uninorm/u-normcoll.h: New file.
47654         * modules/uninorm/u8-normcoll: New file.
47655
47656         New module 'uninorm/u32-normxfrm'.
47657         * lib/uninorm/u32-normxfrm.c: New file.
47658         * modules/uninorm/u32-normxfrm: New file.
47659
47660         New module 'uninorm/u16-normxfrm'.
47661         * lib/uninorm/u16-normxfrm.c: New file.
47662         * modules/uninorm/u16-normxfrm: New file.
47663
47664         New module 'uninorm/u8-normxfrm'.
47665         * lib/uninorm.h (u8_normxfrm, u16_normxfrm, u32_normxfrm): New
47666         declarations.
47667         * lib/uninorm/u8-normxfrm.c: New file.
47668         * lib/uninorm/u-normxfrm.h: New file.
47669         * modules/uninorm/u8-normxfrm: New file.
47670
47671 2009-03-07  Bruno Haible  <bruno@clisp.org>
47672
47673         * modules/uninorm/u8-normcmp (Depends-on): Add uninorm/base.
47674         * modules/uninorm/u16-normcmp (Depends-on): Likewise.
47675         * modules/uninorm/u32-normcmp (Depends-on): Likewise.
47676
47677 2009-03-07  Bruno Haible  <bruno@clisp.org>
47678
47679         New module 'memxfrm'.
47680         * lib/memxfrm.h: New file.
47681         * lib/memxfrm.c: New file.
47682         * modules/memxfrm: New file.
47683
47684 2009-03-07  Bruno Haible  <bruno@clisp.org>
47685
47686         New module 'memcmp2'.
47687         * lib/memcmp2.h: New file.
47688         * lib/memcmp2.c: New file.
47689         * modules/memcmp2: New file.
47690
47691 2009-03-07  Bruno Haible  <bruno@clisp.org>
47692
47693         Tests for module 'uninorm/decomposing-form'.
47694         * modules/uninorm/decomposing-form-tests: New file.
47695         * tests/uninorm/test-decomposing-form.c: New file.
47696
47697         New module 'uninorm/decomposing-form'.
47698         * lib/uninorm.h (uninorm_decomposing_form): New declaration.
47699         * lib/uninorm/normalize-internal.h (struct unicode_normalization_form):
47700         Add 'decomposing_variant' field.
47701         * lib/uninorm/decomposing-form.c: New file.
47702         * lib/uninorm/nfc.c (uninorm_nfc): Update.
47703         * lib/uninorm/nfd.c (uninorm_nfd): Update.
47704         * lib/uninorm/nfkc.c (uninorm_nfkc): Update.
47705         * lib/uninorm/nfkd.c (uninorm_nfkd): Update.
47706         * modules/uninorm/decomposing-form: New file.
47707         * modules/uninorm/nfc (Depends-on): Add uninorm/nfd.
47708         * modules/uninorm/nfkc (Depends-on): Add uninorm/nfkd.
47709
47710 2009-03-07  Bruno Haible  <bruno@clisp.org>
47711
47712         * lib/uninorm/u-normcmp.h (FUNC): Use stack=allocated buffers for small
47713         strings.
47714
47715 2009-03-06  Bruno Haible  <bruno@clisp.org>
47716
47717         Tests for module 'uninorm/u32-normcmp'.
47718         * tests/uninorm/test-u32-normcmp.c: New file.
47719         * modules/uninorm/u32-normcmp-tests: New file.
47720
47721         Tests for module 'uninorm/u16-normcmp'.
47722         * tests/uninorm/test-u16-normcmp.c: New file.
47723         * modules/uninorm/u16-normcmp-tests: New file.
47724
47725         Tests for module 'uninorm/u8-normcmp'.
47726         * tests/uninorm/test-u8-normcmp.c: New file.
47727         * modules/uninorm/u8-normcmp-tests: New file.
47728
47729         New module 'uninorm/u32-normcmp'.
47730         * lib/uninorm/u32-normcmp.c: New file.
47731         * modules/uninorm/u32-normcmp: New file.
47732
47733         New module 'uninorm/u16-normcmp'.
47734         * lib/uninorm/u16-normcmp.c: New file.
47735         * modules/uninorm/u16-normcmp: New file.
47736
47737         New module 'uninorm/u8-normcmp'.
47738         * lib/uninorm.h (u8_normcmp, u16_normcmp, u32_normcmp): New
47739         declarations.
47740         * lib/uninorm/u8-normcmp.c: New file.
47741         * lib/uninorm/u-normcmp.h: New file.
47742         * modules/uninorm/u8-normcmp: New file.
47743
47744 2009-03-06  Bruno Haible  <bruno@clisp.org>
47745
47746         * lib/w32spawn.h (dup_noinherit): Add cast, to avoid gcc warning.
47747         Reported by Eric Blake.
47748
47749 2009-03-06  Eric Blake  <ebb9@byu.net>
47750             Bruno Haible  <bruno@clisp.org>
47751
47752         * lib/spawni.c (__spawni) [WIN32_NATIVE]: Define as a stub.
47753         * modules/posix_spawn-tests (configure.ac): Define POSIX_SPAWN_PORTED
47754         condition.
47755         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47756         * modules/posix_spawnp-tests (configure.ac): Define POSIX_SPAWN_PORTED
47757         condition.
47758         (Makefile.am): Do nothing if POSIX_SPAWN_PORTED is false.
47759
47760 2009-03-06  Eric Blake  <ebb9@byu.net>
47761
47762         * lib/execute.c (execute) [WIN32_NATIVE]: Cast arguments of spawnvpe,
47763         to avoid compiler warnings.
47764         * lib/pipe.c (create_pipe) [WIN32_NATIVE]: Likewise.
47765
47766 2009-03-05  Bruno Haible  <bruno@clisp.org>
47767
47768         * tests/test-ftell.c (main): Disable test beyond end of file on
47769         FreeMiNT.
47770         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47771
47772 2009-03-05  Kamil Dudka  <kdudka@redhat.com>
47773
47774         * lib/filevercmp.c: Move hidden files up in ordering.
47775         * tests/test-filevercmp.c: Add tests for hidden files.
47776
47777 2009-03-04  Bruno Haible  <bruno@clisp.org>
47778
47779         * modules/visibility (Makefile.am): Augment AM_CFLAGS.
47780         * gnulib-tool (func_emit_lib_Makefile_am): Emit initialization of
47781         AM_CFLAGS.
47782         Reported by Simon Josefsson.
47783
47784 2009-03-03  Bruno Haible  <bruno@clisp.org>
47785
47786         * doc/visibility.texi: Recommend to use HAVE_VISIBILITY as a C macro.
47787         Reported by Simon Josefsson.
47788
47789         * doc/ld-version-script.texi: Update node reference.
47790
47791 2009-03-03  Bruno Haible  <bruno@clisp.org>
47792
47793         * modules/visibility (License): Change to 'unlimited'.
47794         Suggested by Simon Josefsson.
47795
47796 2009-03-03  Jim Meyering  <meyering@redhat.com>
47797
47798         unlinkdir: cannot_unlink_dir may modify process state
47799         * lib/unlinkdir.c (cannot_unlink_dir): Add a comment warning that
47800         it's neither thread-safe nor appropriate for use in a library.
47801
47802 2009-03-03  Eric Blake  <ebb9@byu.net>
47803
47804         test-closein: silence test under Darwin
47805         * tests/test-closein.sh: Ignore stderr from cat, since we don't
47806         care if it dies from EPIPE or EBADF.
47807
47808 2009-03-03  Bruno Haible  <bruno@clisp.org>
47809
47810         * doc/gnulib.texi: Include visibility.texi and ld-version-script.texi
47811         earlier.
47812         * doc/visibility.texi: Fix @node and @section.
47813
47814 2009-03-03  Simon Josefsson  <simon@josefsson.org>
47815
47816         * doc/gnulib.texi: Link to sections for ld version script and
47817         visibility.
47818         * doc/visibility.texi: Add @node and @section.
47819         * modules/ld-version-script: New module.
47820         * m4/ld-version-script.m4: New file.
47821         * doc/ld-version-script.texi: New file.
47822
47823 2009-03-02  David Lutterkort  <lutter@redhat.com>
47824
47825         * lib/safe-alloc.h (__GNUC_PREREQ): New macro.
47826         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47827
47828 2009-03-02  Bruno Haible  <bruno@clisp.org>
47829
47830         * doc/visibility.texi: Mention libtool's -export-symbols option.
47831
47832 2009-03-02  Jim Meyering  <meyering@redhat.com>
47833
47834         announce-gen: new option: --no-print-checksums
47835         * build-aux/announce-gen (usage): Describe it.
47836         (print_checksums): Print a newline here, not in the [*] footnote.
47837         (main): Honor it.
47838
47839 2009-03-01  Bruno Haible  <bruno@clisp.org>
47840
47841         Use socklen_t in the native Windows replacements prototypes.
47842         * lib/sys_socket.in.h (rpl_getsockopt, rpl_setsockopt): Use socklen_t
47843         instead of 'int'.
47844         * lib/getsockopt.c (rpl_getsockopt): Likewise.
47845         * lib/setsockopt.c (rpl_setsockopt): Likewise.
47846         * modules/getsockopt (Depends-on): Add socklen.
47847         * modules/setsockopt (Depends-on): Add socklen.
47848
47849 2009-03-01  Bruno Haible  <bruno@clisp.org>
47850
47851         * gnulib-tool (sed): Do alias as "sed --posix" if sed's version is at
47852         least 4.2.
47853
47854 2009-03-01  Eric Blake  <ebb9@byu.net>
47855             Bruno Haible  <bruno@clisp.org>
47856
47857         * lib/wait-process.h (wait_subprocess): Describe effect of termsigp on
47858         error messages.
47859         * lib/wait-process.c (wait_subprocess): Omit error message about
47860         deadly signal sent to the child of termsigp != NULL.
47861
47862 2009-03-01  Eric Blake  <ebb9@byu.net>
47863
47864         * lib/wait-process.c (wait_subprocess): Remove unnecessary cast.
47865
47866 2009-03-01  Bruno Haible  <bruno@clisp.org>
47867
47868         Avoid a gcc warning.
47869         * tests/test-sched.c (b): Make global.
47870         Reported by Eric Blake.
47871
47872 2009-01-19  Martin Lambers  <marlam@marlam.de>
47873
47874         Provide POSIX semantics for socket timeout options on W32.
47875         * lib/setsockopt.c: Convert struct timeval to milliseconds on W32.
47876         * lib/getsockopt.c: Convert milliseconds to struct timeval on W32.
47877         * modules/setsockopt: Depend on sys_time module for struct timeval.
47878         * modules/getsockopt: Depend on sys_time module for struct timeval.
47879
47880 2009-03-01  Simon Josefsson  <simon@josefsson.org>
47881
47882         * lib/gai_strerror.c (values): Use EAI_INPROGRESS instead of
47883         __USE_GNU, for consistency with netdb.in.h.
47884         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47885
47886 2009-03-01  Bruno Haible  <bruno@clisp.org>
47887
47888         More support for FreeMiNT.
47889         * lib/fseeko.c (rpl_fseeko): Complete last commit.
47890         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47891
47892 2009-03-01  Bruno Haible  <bruno@clisp.org>
47893
47894         More support for FreeMiNT.
47895         * lib/fpurge.c (fpurge): Correct last commit.
47896         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47897
47898 2009-03-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
47899
47900         Fix unportable awk script in vc-list-files.
47901         * build-aux/vc-list-files: In the replacement awk script, use
47902         substr with a second argument of 1, not zero.
47903         Report by Simon Josefsson.
47904
47905 2009-02-28  Bruno Haible  <bruno@clisp.org>
47906
47907         More support for FreeMiNT.
47908         * lib/freading.c (freading) [__MINT__]: Use new macros that were added
47909         to FreeMiNT today.
47910         * lib/fwriting.c (fwriting): Likewise.
47911         Based on patch by Alan Hourihane <alanh@fairlite.co.uk>.
47912
47913 2009-02-28  Bruno Haible  <bruno@clisp.org>
47914
47915         * tests/test-freadseek.c (main): Disable test beyond end of file on
47916         FreeMiNT.
47917         * tests/test-ftello.c (main): Likewise.
47918         Patch by Alan Hourihane <alanh@fairlite.co.uk>.
47919
47920 2009-02-28  Bruno Haible  <bruno@clisp.org>
47921
47922         Add tentative support for FreeMiNT.
47923         * lib/fbufmode.c (fbufmode) [__MINT__]: Add conditional code.
47924         * lib/fpurge.c (fpurge): Likewise.
47925         * lib/freadable.c (freadable): Likewise.
47926         * lib/freading.c (freading): Likewise.
47927         * lib/freadptr.c (freadptr): Likewise.
47928         * lib/freadseek.c (freadptrinc): Likewise.
47929         * lib/fseeko.c (rpl_fseeko): Likewise.
47930         * lib/fseterr.c (fseterr): Likewise.
47931         * lib/fwritable.c (fwritable): Likewise.
47932         * lib/fwriting.c (fwriting): Likewise.
47933         * lib/freadahead.c (freadahead): Likewise, based on code by Alan
47934         Hourihane.
47935         Reported by Alan Hourihane <alanh@fairlite.co.uk>.
47936
47937 2009-02-28  Bruno Haible  <bruno@clisp.org>
47938
47939         * lib/wait-process.h (wait_subprocess): Clarify restriction regarding
47940         SIGCHLD.
47941         Reported by Jim Meyering.
47942
47943 2009-02-28  Bruno Haible  <bruno@clisp.org>
47944
47945         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Separate the two first tests.
47946         Mention the results of these tests on various platforms.
47947         * doc/posix-functions/fprintf.texi: Mention platforms in canonical
47948         order.
47949         * doc/posix-functions/printf.texi: Likewise.
47950         * doc/posix-functions/snprintf.texi: Likewise.
47951         * doc/posix-functions/sprintf.texi: Likewise.
47952         * doc/posix-functions/vfprintf.texi: Likewise.
47953         * doc/posix-functions/vprintf.texi: Likewise.
47954         * doc/posix-functions/vsnprintf.texi: Likewise.
47955         * doc/posix-functions/vsprintf.texi: Likewise.
47956         * doc/glibc-functions/obstack_printf.texi: Likewise.
47957         * doc/glibc-functions/obstack_vprintf.texi: Likewise.
47958
47959 2009-02-28  Bruno Haible  <bruno@clisp.org>
47960
47961         * build-aux/po/Makefile.in.in: Update from GNU gettext 0.17.
47962         Reported by Loïc Minier <lool@dooz.org>.
47963
47964 2009-02-27  Bruno Haible  <bruno@clisp.org>
47965
47966         * gnulib-tool (func_import): Make the sed expression used to create the
47967         sed script for updating the .gitignore file POSIX compliant.
47968         Reported by Eric Blake.
47969
47970 2009-02-27  Bruno Haible  <bruno@clisp.org>
47971
47972         * gnulib-tool (sed): Don't alias as "sed --posix".
47973         Reported by Eric Blake.
47974
47975 2009-02-27  Bruno Haible  <bruno@clisp.org>
47976
47977         Avoid test link errors.
47978         * modules/uninorm/nfc-tests (test_u32_nfc_big_LDADD): New variable.
47979         * modules/uninorm/nfd-tests (test_u32_nfd_big_LDADD): New variable.
47980         * modules/uninorm/nfkc-tests (test_u32_nfkc_big_LDADD): New variable.
47981         * modules/uninorm/nfkd-tests (test_u32_nfkd_big_LDADD): New variable.
47982         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
47983
47984 2009-02-27  Bruno Haible  <bruno@clisp.org>
47985
47986         Avoid spurious "(cached)" in configure output.
47987         * m4/gnulib-common.m4 (gl_CACHE_VAL_SILENT): New macro.
47988         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Use it instead of AC_CACHE_VAL.
47989         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
47990         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
47991         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
47992         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Likewise.
47993         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
47994         * m4/stdarg.m4 (gl_STDARG_H): Likewise.
47995         Reported by Eric Blake.
47996
47997 2009-02-27  Eric Blake  <ebb9@byu.net>
47998
47999         printf: fix regression in previous patch
48000         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Fix compilation error.
48001
48002 2009-02-27  Bruno Haible  <bruno@clisp.org>
48003
48004         * lib/inttypes.in.h: Test merely whether _LP64 is defined, not its
48005         value.
48006         * lib/stdint.in.h: Likewise.
48007         Suggested by Eric Blake. Reported by Peter Bray <pdb_ml@yahoo.com.au>.
48008
48009 2009-02-27  Eric Blake  <ebb9@byu.net>
48010
48011         doc: mention more functions added in cygwin 1.7.0
48012         * doc/posix-functions/mbsnrtowcs.texi: Mention recent cygwin 1.7.0
48013         addition.
48014         * doc/posix-functions/open_wmemstream.texi: Likewise.
48015         * doc/posix-functions/wcsnlen.texi: Likewise.
48016         * doc/posix-functions/wcsnrtombs.texi: Likewise.
48017         * doc/posix-functions/wcstod.texi: Likewise.
48018         * doc/posix-functions/wcstof.texi: Likewise.
48019         * doc/posix-functions/wcstoimax.texi: Likewise.
48020         * doc/posix-functions/wcstok.texi: Likewise.
48021         * doc/posix-functions/wcstoumax.texi: Likewise.
48022
48023         Detect bug in cygwin 1.5.x *printf on 1-character %ls.
48024         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Enhance filter.
48025         * doc/posix-functions/fprintf.texi: Update.
48026         * doc/posix-functions/printf.texi: Update.
48027         * doc/posix-functions/snprintf.texi: Update.
48028         * doc/posix-functions/sprintf.texi: Update.
48029         * doc/posix-functions/vfprintf.texi: Update.
48030         * doc/posix-functions/vprintf.texi: Update.
48031         * doc/posix-functions/vsnprintf.texi: Update.
48032         * doc/posix-functions/vsprintf.texi: Update.
48033         * doc/glibc-functions/obstack_printf.texi: Update.
48034         * doc/glibc-functions/obstack_vprintf.texi: Update.
48035
48036 2009-02-26  Eric Blake  <ebb9@byu.net>
48037
48038         avoid gcc 3.4.3 bug on long double NaN on Irix 6.5
48039         * tests/nan.h (NaNl): Rewrite as function on Irix, to avoid
48040         compilation bug by using runtime conversion.
48041         * m4/isfinite.m4 (gl_ISFINITE): Likewise.
48042         * m4/isnanl.m4 (gl_FUNC_ISNANL): Likewise.
48043         * modules/ceill-tests (Files): Use nan.h.
48044         * modules/floorl-tests (Files): Likewise.
48045         * modules/frexpl-tests (Files): Likewise.
48046         * modules/isnanl-tests (Files): Likewise.
48047         * modules/ldexpl-tests (Files): Likewise.
48048         * modules/roundl-tests (Files): Likewise.
48049         * modules/truncl-tests (Files): Likewise.
48050         * tests/test-ceill.c (main): Use a working NaN.
48051         * tests/test-floorl.c (main): Likewise.
48052         * tests/test-frexpl.c (main): Likewise.
48053         * tests/test-isnan.c (test_long_double): Likewise.
48054         * tests/test-isnanl.h (main): Likewise.
48055         * tests/test-ldexpl.h (main): Likewise.
48056         * tests/test-roundl.h (main): Likewise.
48057         * tests/test-truncl.h (main): Likewise.
48058         See http://lists.gnu.org/archive/html/bug-gnulib/2009-02/msg00190.html.
48059
48060 2009-02-26  Eric Blake  <ebb9@byu.net>
48061             Bruno Haible  <bruno@clisp.org>
48062
48063         Work around a *printf bug with %ls on Solaris.
48064         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): Also test whether, when a
48065         precision is specified, sprintf stops converting the wide string
48066         argument when the number of bytes that have been produced by this
48067         conversion equals or exceeds the precision.
48068         * doc/posix-functions/fprintf.texi: Update.
48069         * doc/posix-functions/printf.texi: Update.
48070         * doc/posix-functions/snprintf.texi: Update.
48071         * doc/posix-functions/sprintf.texi: Update.
48072         * doc/posix-functions/vfprintf.texi: Update.
48073         * doc/posix-functions/vprintf.texi: Update.
48074         * doc/posix-functions/vsnprintf.texi: Update.
48075         * doc/posix-functions/vsprintf.texi: Update.
48076         * doc/glibc-functions/obstack_printf.texi: Update.
48077         * doc/glibc-functions/obstack_vprintf.texi: Update.
48078
48079 2009-02-26  Eric Blake  <ebb9@byu.net>
48080
48081         stdlib: favor compiler check of random.h
48082         * m4/stdlib_h.m4 (gl_STDLIB_H): Skip preprocessor check.  Needed
48083         to avoid an ObjC random.h installed by Swarm.
48084
48085 2009-02-26  Bruno Haible  <bruno@clisp.org>
48086
48087         Work around *printf bug with %g directive and 0.0 on HP-UX 10.20.
48088         * m4/printf.m4 (gl_PRINTF_INFINITE): Also test for %g output of -0.0.
48089         Reported by Gary V. Vaughan <gary@gnu.org>.
48090
48091 2009-02-26  Bruno Haible  <bruno@clisp.org>
48092
48093         Fix *printf behaviour regarding the %ls directive.
48094         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_LS): New macro.
48095         * lib/vasnprintf.c (local_wcslen, VASNPRINTF): Handle
48096         NEED_PRINTF_DIRECTIVE_LS.
48097         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_LS): New macro.
48098         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
48099         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
48100         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS and test its result. Invoke
48101         gl_PREREQ_VASNPRINTF_DIRECTIVE_LS.
48102         * m4/dprintf-posix.m4 (gl_FUNC_DPRINTF_POSIX): Likewise.
48103         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
48104         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
48105         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
48106         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
48107         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
48108         * m4/vdprintf-posix.m4 (gl_FUNC_VDPRINTF_POSIX): Likewise.
48109         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
48110         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
48111         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
48112         * doc/posix-functions/fprintf.texi: Update.
48113         * doc/posix-functions/printf.texi: Update.
48114         * doc/posix-functions/snprintf.texi: Update.
48115         * doc/posix-functions/sprintf.texi: Update.
48116         * doc/posix-functions/vfprintf.texi: Update.
48117         * doc/posix-functions/vprintf.texi: Update.
48118         * doc/posix-functions/vsnprintf.texi: Update.
48119         * doc/posix-functions/vsprintf.texi: Update.
48120         * doc/glibc-functions/obstack_printf.texi: Update.
48121         * doc/glibc-functions/obstack_vprintf.texi: Update.
48122         Reported by Eric Blake.
48123
48124 2009-02-25  Bruno Haible  <bruno@clisp.org>
48125
48126         * m4/mbrtowc.m4 (gl_MBRTOWC_NUL_RETVAL): Update guess for Solaris 8
48127         with known value.
48128         Reported by Gary V. Vaughan <gary@gnu.org>.
48129
48130 2009-02-25  Bruno Haible  <bruno@clisp.org>
48131
48132         Work around mbrtowc bug in zh_CN.GB18030 locale on Solaris 8.
48133         * m4/mbrtowc.m4 (gl_MBRTOWC_SANITYCHECK): New macro.
48134         (gl_MBSTATE_T_BROKEN): Invoke it. Replace mbstate_t when it says "no".
48135         * doc/posix-functions/mbrtowc.texi: Document the Solaris 8 bug.
48136         Reported by Gary V. Vaughan <gary@gnu.org>.
48137
48138 2009-02-25  Bruno Haible  <bruno@clisp.org>
48139
48140         Work around broken INT8_MAX, UINT8_MAX etc. values on HP-UX 11.23.
48141         * m4/stdint.m4 (gl_STDINT_H): Also check whether the expansions of
48142         INT8_MAX, UINT8_MAX etc. contain casts to elementary types.
48143         * doc/posix-headers/stdint.texi: Mention the HP-UX bug.
48144         Reported by Gary V. Vaughan <gary@gnu.org>.
48145
48146 2009-02-25  Eric Blake  <ebb9@byu.net>
48147
48148         tests: skip fseek/ftell tests if ungetc is broken
48149         * m4/ungetc.m4: New file.
48150         * modules/fseek-tests: Split test, so ungetc dependency is
48151         separate from rest of test.
48152         * modules/fseeko-tests: Likewise.
48153         * modules/ftell-tests: Likewise.
48154         * modules/ftello-tests: Likewise.
48155         * tests/test-fseek.c (main): Isolate ungetc dependency.
48156         * tests/test-fseeko.c (main): Likewise.
48157         * tests/test-ftell.c (main): Likewise.
48158         * tests/test-ftello.c (main): Likewise.
48159         * tests/test-fseek2.sh: New file.
48160         * tests/test-fseeko2.sh: Likewise.
48161         * tests/test-ftell2.sh: Likewise.
48162         * tests/test-ftello2.sh: Likewise.
48163
48164 2009-02-25  OndÅ™ej Vašík  <ovasik@redhat.com>
48165
48166         test-getaddrinfo: fix usage of skip return code 77
48167         * tests/test-gettaddrinfo.c: Return skip code 77 only
48168         for first occurrence of skip (4x77 is not 77)
48169
48170 2009-02-25  Gary V. Vaughan  <gary@gnu.org>
48171
48172         strtod: avoid C99 decl-after-statement
48173         * m4/strtod.m4 (gl_FUNC_STRTOD): Rearrange declaration.
48174
48175 2009-02-24  Eric Blake  <ebb9@byu.net>
48176
48177         strtod: detect HP-UX 11.31 bug
48178         * m4/strtod.m4 (gl_FUNC_STRTOD): Detect errno handling bug.
48179         Reported by Gary V. Vaughan.
48180
48181 2009-02-23  Bruno Haible  <bruno@clisp.org>
48182
48183         Fix invalid read past end of memory block.
48184         * lib/vasnprintf.c (DCHAR_SET): Define.
48185         (local_wcslen): Define only when needed.
48186         (local_strnlen, local_wcsnlen): New functions.
48187         (VASNPRINTF) [!USE_SNPRINTF && HAVE_WCHAR_T]: Implement the %s and %ls
48188         directives that involve a conversion ourselves.
48189         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for strnlen,
48190         wcsnlen, mbrtowc, wcrtomb.
48191         * tests/test-vasnprintf-posix.c (test_function): Add tests for %.*s.
48192         * tests/test-vasprintf-posix.c (test_function): Likewise.
48193         * tests/test-snprintf-posix.h (test_function): Likewise.
48194         * tests/test-sprintf-posix.h (test_function): Likewise.
48195         Reported by Ben Pfaff <blp@cs.stanford.edu>.
48196
48197 2009-02-22  Bruno Haible  <bruno@clisp.org>
48198
48199         Implement new clarified decomposition of Hangul syllables.
48200         * lib/uninorm/decomposition.c (uc_decomposition): For Hangul syllables
48201         of type LTV, return only a pairwise decomposition.
48202         * lib/uninorm/canonical-decomposition.c (uc_canonical_decomposition):
48203         Likewise.
48204         * tests/uninorm/test-decomposition.c (main): Updated expected result.
48205         * tests/uninorm/test-canonical-decomposition.c (main): Likewise.
48206         * tests/uninorm/test-compat-decomposition.c (main): Likewise.
48207
48208 2009-02-22  Bruno Haible  <bruno@clisp.org>
48209
48210         * lib/uninorm/u-normalize-internal.h (FUNC): At the end, handle
48211         zero-length results and shrink excess allocated memory.
48212         * tests/uninorm/test-u8-nfc.c (test_u8_nfc): Check empty string result.
48213         * tests/uninorm/test-u8-nfd.c (test_u8_nfd): Likewise.
48214         * tests/uninorm/test-u8-nfkc.c (test_u8_nfkc): Likewise.
48215         * tests/uninorm/test-u8-nfkd.c (test_u8_nfkd): Likewise.
48216         * tests/uninorm/test-u16-nfc.c (test_u16_nfc): Likewise.
48217         * tests/uninorm/test-u16-nfd.c (test_u16_nfd): Likewise.
48218         * tests/uninorm/test-u16-nfkc.c (test_u16_nfkc): Likewise.
48219         * tests/uninorm/test-u16-nfkd.c (test_u16_nfkd): Likewise.
48220         * tests/uninorm/test-u32-nfc.c (test_u32_nfc): Likewise.
48221         * tests/uninorm/test-u32-nfd.c (test_u32_nfd): Likewise.
48222         * tests/uninorm/test-u32-nfkc.c (test_u32_nfkc): Likewise.
48223         * tests/uninorm/test-u32-nfkd.c (test_u32_nfkd): Likewise.
48224
48225 2009-02-21  Bruno Haible  <bruno@clisp.org>
48226
48227         * doc/gnulib.texi: Include safe-alloc.texi earlier.
48228         * doc/safe-alloc.texi: Terminate sentences with a period. Use two
48229         spaces after a period. Put a space between a macro name and its
48230         argument list. Trivial rewordings.
48231         * lib/safe-alloc.c: Include safe-alloc.h right after config.h.
48232         * tests/test-safe-alloc.c: Likewise. Include stdlib.h.
48233         (main): Return 0 explicitly.
48234
48235 2009-02-21  Bruno Haible  <bruno@clisp.org>
48236
48237         Tests for module 'uninorm/filter'.
48238         * tests/uninorm/test-uninorm-filter-nfc.c: New file.
48239         * modules/uninorm/filter-tests: New file.
48240
48241         New module 'uninorm/filter'.
48242         * lib/uninorm.h (uninorm_filter_create, uninorm_filter_write,
48243         uninorm_filter_flush, uninorm_filter_free): New declarations.
48244         * lib/uninorm/uninorm-filter.c: New file.
48245         * modules/uninorm/filter: New file.
48246
48247 2009-02-21  Bruno Haible  <bruno@clisp.org>
48248
48249         Tests for module 'uninorm/nfkc'.
48250         * tests/uninorm/test-nfkc.c: New file.
48251         * tests/uninorm/test-u8-nfkc.c: New file.
48252         * tests/uninorm/test-u16-nfkc.c: New file.
48253         * tests/uninorm/test-u32-nfkc.c: New file.
48254         * tests/uninorm/test-u32-nfkc-big.sh: New file.
48255         * tests/uninorm/test-u32-nfkc-big.c: New file.
48256         * modules/uninorm/nfkc-tests: New file.
48257
48258         New module 'uninorm/nfkc'.
48259         * lib/uninorm/nfkc.c: New file.
48260         * modules/uninorm/nfkc: New file.
48261
48262         Tests for module 'uninorm/nfkd'.
48263         * tests/uninorm/test-nfkd.c: New file.
48264         * tests/uninorm/test-u8-nfkd.c: New file.
48265         * tests/uninorm/test-u16-nfkd.c: New file.
48266         * tests/uninorm/test-u32-nfkd.c: New file.
48267         * tests/uninorm/test-u32-nfkd-big.sh: New file.
48268         * tests/uninorm/test-u32-nfkd-big.c: New file.
48269         * modules/uninorm/nfkd-tests: New file.
48270
48271         New module 'uninorm/nfkd'.
48272         * lib/uninorm/nfkd.c: New file.
48273         * modules/uninorm/nfkd: New file.
48274
48275         Tests for module 'uninorm/nfc'.
48276         * tests/uninorm/test-nfc.c: New file.
48277         * tests/uninorm/test-u8-nfc.c: New file.
48278         * tests/uninorm/test-u16-nfc.c: New file.
48279         * tests/uninorm/test-u32-nfc.c: New file.
48280         * tests/uninorm/test-u32-nfc-big.sh: New file.
48281         * tests/uninorm/test-u32-nfc-big.c: New file.
48282         * modules/uninorm/nfc-tests: New file.
48283
48284         New module 'uninorm/nfc'.
48285         * lib/uninorm/nfc.c: New file.
48286         * modules/uninorm/nfc: New file.
48287
48288         Tests for module 'uninorm/nfd'.
48289         * tests/uninorm/test-nfd.c: New file.
48290         * tests/uninorm/test-u8-nfd.c: New file.
48291         * tests/uninorm/test-u16-nfd.c: New file.
48292         * tests/uninorm/test-u32-nfd.c: New file.
48293         * tests/uninorm/test-u32-nfd-big.sh: New file.
48294         * tests/uninorm/test-u32-nfd-big.c: New file.
48295         * tests/uninorm/test-u32-normalize-big.h: New file.
48296         * tests/uninorm/test-u32-normalize-big.c: New file.
48297         * tests/uninorm/NormalizationTest.txt: New file, created from
48298         Unicode 5.1.0 NormalizationTest.txt.
48299         * modules/uninorm/nfd-tests: New file.
48300
48301         New module 'uninorm/nfd'.
48302         * lib/uninorm/nfd.c: New file.
48303         * modules/uninorm/nfd: New file.
48304
48305         New module 'uninorm/u32-normalize'.
48306         * lib/uninorm/u32-normalize.c: New file.
48307         * modules/uninorm/u32-normalize: New file.
48308
48309         New module 'uninorm/u16-normalize'.
48310         * lib/uninorm/u16-normalize.c: New file.
48311         * modules/uninorm/u16-normalize: New file.
48312
48313         New module 'uninorm/u8-normalize'.
48314         * lib/uninorm/u8-normalize.c: New file.
48315         * lib/uninorm/normalize-internal.h: New file.
48316         * lib/uninorm/u-normalize-internal.h: New file.
48317         * modules/uninorm/u8-normalize: New file.
48318
48319         New module 'uninorm/decompose-internal'.
48320         * lib/uninorm/decompose-internal.c: New file.
48321         * modules/uninorm/decompose-internal: New file.
48322
48323         Tests for module 'uninorm/composition'.
48324         * tests/uninorm/test-composition.c: New file.
48325         * modules/uninorm/composition-tests: New file.
48326
48327         New module 'uninorm/composition'.
48328         * lib/uninorm/composition.c: New file.
48329         * lib/uninorm/composition-table.gperf: New file, generated by
48330         gen-uni-tables.
48331         * modules/uninorm/composition: New file.
48332
48333         Tests for module 'uninorm/compat-decomposition'.
48334         * tests/uninorm/test-compat-decomposition.c: New file.
48335         * modules/uninorm/compat-decomposition-tests: New file.
48336
48337         New module 'uninorm/compat-decomposition'.
48338         * lib/uninorm/decompose-internal.h: New file.
48339         * lib/uninorm/compat-decomposition.c: New file.
48340         * modules/uninorm/compat-decomposition: New file.
48341
48342         Tests for module 'uninorm/canonical-decomposition'.
48343         * tests/uninorm/test-canonical-decomposition.c: New file.
48344         * modules/uninorm/canonical-decomposition-tests: New file.
48345
48346         New module 'uninorm/canonical-decomposition'.
48347         * lib/uninorm/canonical-decomposition.c: New file.
48348         * modules/uninorm/canonical-decomposition: New file.
48349
48350         Tests for module 'uninorm/decomposition'.
48351         * tests/uninorm/test-decomposition.c: New file.
48352         * modules/uninorm/decomposition-tests: New file.
48353
48354         New module 'uninorm/decomposition'.
48355         * lib/uninorm/decomposition.c: New file.
48356         * modules/uninorm/decomposition: New file.
48357
48358         New module 'uninorm/decomposition-table'.
48359         * lib/uninorm/decomposition-table.h: New file.
48360         * lib/uninorm/decomposition-table.c: New file.
48361         * lib/uninorm/decomposition-table1.h: New file, generated by
48362         gen-uni-tables.
48363         * lib/uninorm/decomposition-table2.h: New file, generated by
48364         gen-uni-tables.
48365         * modules/uninorm/decomposition-table: New file.
48366
48367         * lib/gen-uni-tables.c (MAX_DECOMP_LENGTH): New macro.
48368         (UC_DECOMP_*): New enumeration items.
48369         (get_decomposition): New function.
48370         (struct decomp_table): New type.
48371         (output_decomposition, output_decomposition_tables): New functions.
48372         (unicode_composition_exclusions): New variable.
48373         (fill_composition_exclusions, debug_output_composition_tables): New
48374         functions.
48375         (main): Accept one more argument. Invoke fill_composition_exclusions.
48376         Output decomposition and composition tables.
48377
48378         New module 'uninorm/base'.
48379         * lib/uninorm.h: New file.
48380         * lib/unictype.h: Update comment.
48381         * modules/uninorm/base: New file.
48382
48383 2009-02-21  David Lutterkort  <lutter@redhat.com>
48384
48385         Tests for module 'safe-alloc'.
48386         * tests/test-safe-alloc.c: New file.
48387         * modules/safe-alloc-tests: New file.
48388
48389         New module 'safe-alloc'.
48390         * lib/safe-alloc.h: New file.
48391         * lib/safe-alloc.c: New file.
48392         * m4/safe-alloc.m4: New file.
48393         * modules/safe-alloc: New file.
48394         * doc/safe-alloc.texi: New file.
48395         * doc/gnulib.texi: Include it.
48396         * MODULES.html.sh (Memory management functions <stdlib.h>): Add
48397         safe-alloc.
48398
48399 2009-02-18  Bruno Haible  <bruno@clisp.org>
48400
48401         Fix link error on non-glibc systems.
48402         * modules/uniwbrk/ulc-wordbreaks-tests (test_ulc_wordbreaks_LDADD): New
48403         variable.
48404         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
48405
48406 2009-02-18  Jim Meyering  <meyering@redhat.com>
48407
48408         fts: avoid used-uninitialized error due to recent change
48409         * lib/fts.c (fts_read): Guard uses of the new member,
48410         parent->fts_n_dirs_remaining, since it's not relevant for
48411         the parent of a directory specified on the command-line.
48412
48413 2009-02-17  James Youngman  <jay@gnu.org>
48414             Bruno Haible  <bruno@clisp.org>
48415
48416         * m4/include_next.m4: Reformulate comment.
48417
48418 2009-02-16  Jim Meyering  <meyering@redhat.com>
48419
48420         fts: add #if guards so that the fts_lgpl module still builds
48421         * lib/fts.c: Guard just-added hash-table-using parts with
48422         #if GNULIB_FTS, so as not to break builds of the fts_lgpl module.
48423         Reported by Simon Josefsson.
48424
48425 2009-02-15  Bruno Haible  <bruno@clisp.org>
48426
48427         * modules/array-mergesort-tests: New file.
48428         * tests/test-array-mergesort.c: New file.
48429
48430         New module 'array-mergesort'.
48431         * modules/array-mergesort: New file.
48432         * lib/array-mergesort.h: New file.
48433
48434 2009-02-15  Bruno Haible  <bruno@clisp.org>
48435
48436         Fix 2009-02-07 commit.
48437         * lib/gen-uni-tables.c (output_predicate, output_category,
48438         output_combclass, output_bidi_category, output_decimal_digit,
48439         output_digit, output_numeric, output_mirror, output_scripts,
48440         output_ident_category, output_simple_mapping): Fix format directives.
48441         (output_lbp, output_wbp): Don't convert -1 to a size_t implicitly.
48442
48443 2009-02-15  Albert Chin-A-Young  <china@thewrittenword.com>
48444
48445         * m4/include_next.m4: Update comment about IBM C 9.0/10.1 bug, now that
48446         fixes are available from IBM.
48447
48448 2009-02-13  Jim Meyering  <meyering@redhat.com>
48449
48450         fts: arrange not to stat non-directories in more cases
48451         This makes GNU find (when it doesn't need to stat each file)
48452         *much* more efficient at traversing reiserfs file systems.
48453         * lib/fts_.h (struct ftsent) [fts_n_dirs_remaining]: New member.
48454         (struct FTS) [fts_leaf_optimization_works_ht]: Add member.
48455         * lib/fts.c (fts_close): Free ->fts_leaf_optimization_works_ht.
48456         (S_MAGIC_REISERFS, S_MAGIC_PROC): Define.
48457         (leaf_optimization_applies): New function.
48458         (LCO_hash, LCO_compare): New helper functions.
48459         (link_count_optimize_ok): New function.
48460         (fts_stat): Initialize new member (if dir).
48461         (fts_read): Decrement parent's fts_n_dirs_remaining count if
48462         we've just stat'ed a directory.  Skip the stat call when possible.
48463         ---
48464         Note this AFS-related exchange:
48465         http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=143111
48466         and note find's pioctl call in find/fstype.c.
48467         But that is necessary only if you want to enable the
48468         optimization for AFS, and for now, I don't.
48469
48470         fts: move a function definition "up" (no semantic change)
48471         * lib/fts.c (dirent_inode_sort_may_be_useful): Move definition
48472         "up" to precede upcoming use of a related function.
48473
48474 2009-02-11  Jim Meyering  <meyering@redhat.com>
48475
48476         fts: correct internal computation of nlinks (optimization-related)
48477         * lib/fts.c (fts_build): ISSET(FTS_NOSTAT) has no bearing on
48478         whether the current entry is a directory, so don't test it.
48479
48480 2009-02-10  Bruno Haible  <bruno@clisp.org>
48481
48482         Tests for module 'uniwbrk/ulc-wordbreaks'.
48483         * modules/uniwbrk/ulc-wordbreaks-tests: New file.
48484         * tests/uniwbrk/test-ulc-wordbreaks.sh: New file.
48485         * tests/uniwbrk/test-ulc-wordbreaks.c: New file.
48486
48487         Tests for module 'uniwbrk/u32-wordbreaks'.
48488         * modules/uniwbrk/u32-wordbreaks-tests: New file.
48489         * tests/uniwbrk/test-u32-wordbreaks.c: New file.
48490
48491         Tests for module 'uniwbrk/u16-wordbreaks'.
48492         * modules/uniwbrk/u16-wordbreaks-tests: New file.
48493         * tests/uniwbrk/test-u16-wordbreaks.c: New file.
48494
48495         Tests for module 'uniwbrk/u8-wordbreaks'.
48496         * modules/uniwbrk/u8-wordbreaks-tests: New file.
48497         * tests/uniwbrk/test-u8-wordbreaks.c: New file.
48498
48499 2009-02-10  Bruno Haible  <bruno@clisp.org>
48500
48501         * modules/uniwbrk/u8-wordbreaks (Depends-on): Add uniwbrk/wordbreak
48502         property.
48503         * modules/uniwbrk/u16-wordbreaks (Depends-on): Likewise.
48504         * modules/uniwbrk/u32-wordbreaks (Depends-on): Likewise.
48505         * modules/uniwbrk/ulc-wordbreaks (Depends-on): Add localcharset.
48506
48507 2009-02-10  Simon Josefsson  <simon@josefsson.org>
48508
48509         * m4/sockets.m4: Call AC_C_INLINE since sockets.h now can use
48510         inline keywords.  Reported by Bruno Haible <bruno@clisp.org>.
48511
48512 2009-02-10  Bruno Haible  <bruno@clisp.org>
48513
48514         * lib/unilbrk/lbrktables.h: Renamed from lib/unilbrk/tables.h.
48515         * lib/unilbrk/lbrktables.c: Renamed from lib/unilbrk/tables.c.
48516         * modules/unilbrk/tables (Files, Makefile.am, Include): Update.
48517         * lib/unilbrk/u8-possible-linebreaks.c: Update.
48518         * lib/unilbrk/u16-possible-linebreaks.c: Likewise.
48519         * lib/unilbrk/u32-possible-linebreaks.c: Likewise.
48520
48521 2009-02-09  Simon Josefsson  <simon@josefsson.org>
48522
48523         * lib/sockets.h (gl_fd_to_handle): New function.
48524
48525         * tests/test-sockets.c: Call gl_fd_to_handle.
48526
48527 2009-02-09  Bruno Haible  <bruno@clisp.org>
48528
48529         * doc/havelib.texi: Document the conventions on bi-arch systems.
48530
48531 2009-02-08  Bruno Haible  <bruno@clisp.org>
48532
48533         Document the AC_LIB_LINKFLAGS macro.
48534         * doc/havelib.texi: New file, mostly written on 2005-05-24.
48535         * doc/gnulib.texi: Include it.
48536
48537 2009-02-08  Bruno Haible  <bruno@clisp.org>
48538
48539         Fix wrong order of sections, compared to TOC.
48540         * doc/gnulib.texi: Include relocatable-maint.texi after the
48541         "Regular expressions" node, not before.
48542
48543 2009-02-08  Bruno Haible  <bruno@clisp.org>
48544
48545         Tests for module 'unicase/totitle'.
48546         * modules/unicase/totitle-tests: New file.
48547
48548         Tests for module 'unicase/tolower'.
48549         * modules/unicase/tolower-tests: New file.
48550
48551         Tests for module 'unicase/toupper'.
48552         * modules/unicase/toupper-tests: New file.
48553         * tests/unicase/test-mapping-part1.h: New file.
48554         * tests/unicase/test-mapping-part2.h: New file.
48555
48556         New module 'unicase/totitle'.
48557         * modules/unicase/totitle: New file.
48558         * lib/unicase/totitle.c: New file.
48559
48560         New module 'unicase/tolower'.
48561         * modules/unicase/tolower: New file.
48562         * lib/unicase/tolower.c: New file.
48563
48564         New module 'unicase/toupper'.
48565         * modules/unicase/toupper: New file.
48566         * lib/unicase/toupper.c: New file.
48567         * lib/unicase/simple-mapping.h: New file.
48568
48569         * lib/gen-uni-tables.c (output_simple_mapping_test): New function.
48570         (mapping_table): New structure.
48571         (output_simple_mapping): New function.
48572         (main): Invoke output_simple_mapping_test and output_simple_mapping.
48573         * modules/gen-uni-tables (Description): Update.
48574         * lib/unicase/toupper.h: New file, automatically generated by
48575         gen-uni-tables.
48576         * lib/unicase/tolower.h: New file, automatically generated by
48577         gen-uni-tables.
48578         * lib/unicase/totitle.h: New file, automatically generated by
48579         gen-uni-tables.
48580         * tests/unicase/test-uc_toupper.c: New file, automatically generated by
48581         gen-uni-tables.
48582         * tests/unicase/test-uc_tolower.c: New file, automatically generated by
48583         gen-uni-tables.
48584         * tests/unicase/test-uc_totitle.c: New file, automatically generated by
48585         gen-uni-tables.
48586
48587         New module 'unicase/base'.
48588         * modules/unicase/base: New file.
48589         * lib/unicase.h: New file.
48590
48591 2009-02-08  Bruno Haible  <bruno@clisp.org>
48592
48593         New module 'uniwbrk/ulc-wordbreaks'.
48594         * modules/uniwbrk/ulc-wordbreaks: New file.
48595         * lib/uniwbrk/ulc-wordbreaks.c: New file.
48596
48597         New module 'uniwbrk/u32-wordbreaks'.
48598         * modules/uniwbrk/u32-wordbreaks: New file.
48599         * lib/uniwbrk/u32-wordbreaks.c: New file.
48600
48601         New module 'uniwbrk/u16-wordbreaks'.
48602         * modules/uniwbrk/u16-wordbreaks: New file.
48603         * lib/uniwbrk/u16-wordbreaks.c: New file.
48604
48605         New module 'uniwbrk/u8-wordbreaks'.
48606         * modules/uniwbrk/u8-wordbreaks: New file.
48607         * lib/uniwbrk/u8-wordbreaks.c: New file.
48608         * lib/uniwbrk/u-wordbreaks.h: New file.
48609
48610         New module 'uniwbrk/table'.
48611         * modules/uniwbrk/table: New file.
48612         * lib/uniwbrk/wbrktable.h: New file.
48613         * lib/uniwbrk/wbrktable.c: New file.
48614
48615         New module 'uniwbrk/wordbreak-property'.
48616         * modules/uniwbrk/wordbreak-property: New file.
48617         * lib/uniwbrk/wordbreak-property.c: New file.
48618
48619         * lib/gen-uni-tables.c (WBP_*): New enum items.
48620         (get_wbp, debug_output_wbp, debug_output_wbrk_tables): New functions.
48621         (unicode_org_wbp): New variable.
48622         (fill_org_wbp, debug_output_org_wbp, debug_output_org_wbrk_tables):
48623         New functions.
48624         (wbp_table): New structure.
48625         (output_wbp, output_wbrk_tables): New functions.
48626         (main): Accept additional argument. Invoke fill_org_wbp,
48627         debug_output_wbrk_tables, debug_output_org_wbrk_tables,
48628         output_wbrk_tables.
48629         * modules/gen-uni-tables (Description): Update.
48630         * lib/uniwbrk/wbrkprop.h: New file, automatically generated by
48631         gen-uni-tables.
48632
48633         New module 'uniwbrk/base'.
48634         * modules/uniwbrk/base: New file.
48635         * lib/uniwbrk.h: New file.
48636
48637 2009-02-08  Bruno Haible  <bruno@clisp.org>
48638
48639         Update to Unicode 5.1.0.
48640         * lib/gen-uni-tables.c (is_property_alphabetic): Include
48641         U+2185..U+2188.
48642         (is_property_default_ignorable_code_point): Don't include characters
48643         of category Cc or Cs and not-a-characters.
48644         (get_lbp): Assume REVISION_22. Special handling of U+0609, U+060A,
48645         U+0D79, U+109E, U+109F, U+A60C.
48646         * lib/unictype/bidi_of.h: Regenerated.
48647         * lib/unictype/blocks.h: Regenerated.
48648         * lib/unictype/categ_C.h: Regenerated.
48649         * lib/unictype/categ_Cf.h: Regenerated.
48650         * lib/unictype/categ_Cn.h: Regenerated.
48651         * lib/unictype/categ_L.h: Regenerated.
48652         * lib/unictype/categ_Ll.h: Regenerated.
48653         * lib/unictype/categ_Lm.h: Regenerated.
48654         * lib/unictype/categ_Lo.h: Regenerated.
48655         * lib/unictype/categ_Lu.h: Regenerated.
48656         * lib/unictype/categ_M.h: Regenerated.
48657         * lib/unictype/categ_Mc.h: Regenerated.
48658         * lib/unictype/categ_Me.h: Regenerated.
48659         * lib/unictype/categ_Mn.h: Regenerated.
48660         * lib/unictype/categ_N.h: Regenerated.
48661         * lib/unictype/categ_Nd.h: Regenerated.
48662         * lib/unictype/categ_Nl.h: Regenerated.
48663         * lib/unictype/categ_No.h: Regenerated.
48664         * lib/unictype/categ_P.h: Regenerated.
48665         * lib/unictype/categ_Pd.h: Regenerated.
48666         * lib/unictype/categ_Pe.h: Regenerated.
48667         * lib/unictype/categ_Pf.h: Regenerated.
48668         * lib/unictype/categ_Pi.h: Regenerated.
48669         * lib/unictype/categ_Po.h: Regenerated.
48670         * lib/unictype/categ_Ps.h: Regenerated.
48671         * lib/unictype/categ_S.h: Regenerated.
48672         * lib/unictype/categ_Sk.h: Regenerated.
48673         * lib/unictype/categ_Sm.h: Regenerated.
48674         * lib/unictype/categ_So.h: Regenerated.
48675         * lib/unictype/categ_of.h: Regenerated.
48676         * lib/unictype/combining.h: Regenerated.
48677         * lib/unictype/ctype_alnum.h: Regenerated.
48678         * lib/unictype/ctype_alpha.h: Regenerated.
48679         * lib/unictype/ctype_graph.h: Regenerated.
48680         * lib/unictype/ctype_lower.h: Regenerated.
48681         * lib/unictype/ctype_print.h: Regenerated.
48682         * lib/unictype/ctype_punct.h: Regenerated.
48683         * lib/unictype/ctype_upper.h: Regenerated.
48684         * lib/unictype/decdigit.h: Regenerated.
48685         * lib/unictype/digit.h: Regenerated.
48686         * lib/unictype/mirror.h: Regenerated.
48687         * lib/unictype/numeric.h: Regenerated.
48688         * lib/unictype/pr_alphabetic.h: Regenerated.
48689         * lib/unictype/pr_bidi_arabic_digit.h: Regenerated.
48690         * lib/unictype/pr_bidi_arabic_right_to_left.h: Regenerated.
48691         * lib/unictype/pr_bidi_boundary_neutral.h: Regenerated.
48692         * lib/unictype/pr_bidi_eur_num_terminator.h: Regenerated.
48693         * lib/unictype/pr_bidi_left_to_right.h: Regenerated.
48694         * lib/unictype/pr_bidi_non_spacing_mark.h: Regenerated.
48695         * lib/unictype/pr_bidi_other_neutral.h: Regenerated.
48696         * lib/unictype/pr_combining.h: Regenerated.
48697         * lib/unictype/pr_dash.h: Regenerated.
48698         * lib/unictype/pr_decimal_digit.h: Regenerated.
48699         * lib/unictype/pr_default_ignorable_code_point.h: Regenerated.
48700         * lib/unictype/pr_deprecated.h: Regenerated.
48701         * lib/unictype/pr_diacritic.h: Regenerated.
48702         * lib/unictype/pr_extender.h: Regenerated.
48703         * lib/unictype/pr_format_control.h: Regenerated.
48704         * lib/unictype/pr_grapheme_base.h: Regenerated.
48705         * lib/unictype/pr_grapheme_extend.h: Regenerated.
48706         * lib/unictype/pr_grapheme_link.h: Regenerated.
48707         * lib/unictype/pr_id_continue.h: Regenerated.
48708         * lib/unictype/pr_id_start.h: Regenerated.
48709         * lib/unictype/pr_ideographic.h: Regenerated.
48710         * lib/unictype/pr_ignorable_control.h: Regenerated.
48711         * lib/unictype/pr_lowercase.h: Regenerated.
48712         * lib/unictype/pr_math.h: Regenerated.
48713         * lib/unictype/pr_numeric.h: Regenerated.
48714         * lib/unictype/pr_other_alphabetic.h: Regenerated.
48715         * lib/unictype/pr_other_default_ignorable_code_point.h: Regenerated.
48716         * lib/unictype/pr_other_grapheme_extend.h: Regenerated.
48717         * lib/unictype/pr_other_id_continue.h: Regenerated.
48718         * lib/unictype/pr_other_lowercase.h: Regenerated.
48719         * lib/unictype/pr_other_math.h: Regenerated.
48720         * lib/unictype/pr_punctuation.h: Regenerated.
48721         * lib/unictype/pr_sentence_terminal.h: Regenerated.
48722         * lib/unictype/pr_soft_dotted.h: Regenerated.
48723         * lib/unictype/pr_terminal_punctuation.h: Regenerated.
48724         * lib/unictype/pr_unassigned_code_value.h: Regenerated.
48725         * lib/unictype/pr_unified_ideograph.h: Regenerated.
48726         * lib/unictype/pr_uppercase.h: Regenerated.
48727         * lib/unictype/pr_xid_continue.h: Regenerated.
48728         * lib/unictype/pr_xid_start.h: Regenerated.
48729         * lib/unictype/pr_zero_width.h: Regenerated.
48730         * lib/unictype/scripts.h: Regenerated.
48731         * lib/unictype/scripts_byname.gperf: Regenerated.
48732         * lib/unictype/sy_java_ident.h: Regenerated.
48733         * lib/unilbrk/lbrkprop1.h: Regenerated.
48734         * lib/unilbrk/lbrkprop2.h: Regenerated.
48735         * tests/unictype/test-categ_C.c: Regenerated.
48736         * tests/unictype/test-categ_Cf.c: Regenerated.
48737         * tests/unictype/test-categ_Cn.c: Regenerated.
48738         * tests/unictype/test-categ_L.c: Regenerated.
48739         * tests/unictype/test-categ_Ll.c: Regenerated.
48740         * tests/unictype/test-categ_Lm.c: Regenerated.
48741         * tests/unictype/test-categ_Lo.c: Regenerated.
48742         * tests/unictype/test-categ_Lu.c: Regenerated.
48743         * tests/unictype/test-categ_M.c: Regenerated.
48744         * tests/unictype/test-categ_Mc.c: Regenerated.
48745         * tests/unictype/test-categ_Me.c: Regenerated.
48746         * tests/unictype/test-categ_Mn.c: Regenerated.
48747         * tests/unictype/test-categ_N.c: Regenerated.
48748         * tests/unictype/test-categ_Nd.c: Regenerated.
48749         * tests/unictype/test-categ_Nl.c: Regenerated.
48750         * tests/unictype/test-categ_No.c: Regenerated.
48751         * tests/unictype/test-categ_P.c: Regenerated.
48752         * tests/unictype/test-categ_Pd.c: Regenerated.
48753         * tests/unictype/test-categ_Pe.c: Regenerated.
48754         * tests/unictype/test-categ_Pf.c: Regenerated.
48755         * tests/unictype/test-categ_Pi.c: Regenerated.
48756         * tests/unictype/test-categ_Po.c: Regenerated.
48757         * tests/unictype/test-categ_Ps.c: Regenerated.
48758         * tests/unictype/test-categ_S.c: Regenerated.
48759         * tests/unictype/test-categ_Sk.c: Regenerated.
48760         * tests/unictype/test-categ_Sm.c: Regenerated.
48761         * tests/unictype/test-categ_So.c: Regenerated.
48762         * tests/unictype/test-ctype_alnum.c: Regenerated.
48763         * tests/unictype/test-ctype_alpha.c: Regenerated.
48764         * tests/unictype/test-ctype_graph.c: Regenerated.
48765         * tests/unictype/test-ctype_lower.c: Regenerated.
48766         * tests/unictype/test-ctype_print.c: Regenerated.
48767         * tests/unictype/test-ctype_punct.c: Regenerated.
48768         * tests/unictype/test-ctype_upper.c: Regenerated.
48769         * tests/unictype/test-decdigit.h: Regenerated.
48770         * tests/unictype/test-digit.h: Regenerated.
48771         * tests/unictype/test-numeric.h: Regenerated.
48772         * tests/unictype/test-pr_alphabetic.c: Regenerated.
48773         * tests/unictype/test-pr_bidi_arabic_digit.c: Regenerated.
48774         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Regenerated.
48775         * tests/unictype/test-pr_bidi_boundary_neutral.c: Regenerated.
48776         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Regenerated.
48777         * tests/unictype/test-pr_bidi_left_to_right.c: Regenerated.
48778         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Regenerated.
48779         * tests/unictype/test-pr_bidi_other_neutral.c: Regenerated.
48780         * tests/unictype/test-pr_combining.c: Regenerated.
48781         * tests/unictype/test-pr_dash.c: Regenerated.
48782         * tests/unictype/test-pr_decimal_digit.c: Regenerated.
48783         * tests/unictype/test-pr_default_ignorable_code_point.c: Regenerated.
48784         * tests/unictype/test-pr_deprecated.c: Regenerated.
48785         * tests/unictype/test-pr_diacritic.c: Regenerated.
48786         * tests/unictype/test-pr_extender.c: Regenerated.
48787         * tests/unictype/test-pr_format_control.c: Regenerated.
48788         * tests/unictype/test-pr_grapheme_base.c: Regenerated.
48789         * tests/unictype/test-pr_grapheme_extend.c: Regenerated.
48790         * tests/unictype/test-pr_grapheme_link.c: Regenerated.
48791         * tests/unictype/test-pr_id_continue.c: Regenerated.
48792         * tests/unictype/test-pr_id_start.c: Regenerated.
48793         * tests/unictype/test-pr_ideographic.c: Regenerated.
48794         * tests/unictype/test-pr_ignorable_control.c: Regenerated.
48795         * tests/unictype/test-pr_lowercase.c: Regenerated.
48796         * tests/unictype/test-pr_math.c: Regenerated.
48797         * tests/unictype/test-pr_numeric.c: Regenerated.
48798         * tests/unictype/test-pr_other_alphabetic.c: Regenerated.
48799         * tests/unictype/test-pr_other_default_ignorable_code_point.c:
48800         Regenerated.
48801         * tests/unictype/test-pr_other_grapheme_extend.c: Regenerated.
48802         * tests/unictype/test-pr_other_id_continue.c: Regenerated.
48803         * tests/unictype/test-pr_other_lowercase.c: Regenerated.
48804         * tests/unictype/test-pr_other_math.c: Regenerated.
48805         * tests/unictype/test-pr_punctuation.c: Regenerated.
48806         * tests/unictype/test-pr_sentence_terminal.c: Regenerated.
48807         * tests/unictype/test-pr_soft_dotted.c: Regenerated.
48808         * tests/unictype/test-pr_terminal_punctuation.c: Regenerated.
48809         * tests/unictype/test-pr_unassigned_code_value.c: Regenerated.
48810         * tests/unictype/test-pr_unified_ideograph.c: Regenerated.
48811         * tests/unictype/test-pr_uppercase.c: Regenerated.
48812         * tests/unictype/test-pr_xid_continue.c: Regenerated.
48813         * tests/unictype/test-pr_xid_start.c: Regenerated.
48814         * tests/unictype/test-pr_zero_width.c: Regenerated.
48815
48816         Update to Unicode 5.1.0.
48817         * lib/uniwidth/width.c (nonspacing_table_data): Add U+0487,
48818         U+0616..U+061A, U+0A51, U+0A75, U+0B44, U+0B62..U+0B63, U+0C62..U+0C63,
48819         U+0D44, U+0D62..U+0D63, U+1033..U+1035, U+103A, U+103D..U+103E,
48820         U+105E..U+1060, U+1071..U+1074, U+1082, U+1085..U+1086, U+108D,
48821         U+1B80..U+1B81, U+1BA2..U+1BA5, U+1BA8..U+1BA9, U+1C2C..U+1C33,
48822         U+1C36..U+1C37, U+1DCB..U+1DE6, U+2064, U+20F0, U+2DE0..U+2DFF,
48823         U+A66F..U+A672, U+A67C..U+A67D, U+A8C4, U+A926..U+A92D, U+A947..U+A951,
48824         U+AA29..U+AA2E, U+AA31..U+AA32, U+AA35..U+AA36, U+AA43, U+AA4C,
48825         U+FE24..U+FE26, U+101FD. Remove U+1929..U+192B.
48826         (nonspacing_table_ind): Update.
48827         * tests/uniwidth/test-uc_width2.sh: Update expected result.
48828
48829         Update to Unicode 5.1.0.
48830         * lib/uniname/gen-uninames.lisp (main): Add the range 0x1Fxxx to the
48831         code transform.
48832         * lib/uniname/uniname.c (unicode_character_name,
48833         unicode_name_character): Add the range 0x1Fxxx to the code transform.
48834         * lib/uniname/uninames.h: Regenerated.
48835         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.1.0.
48836
48837 2009-02-07  Bruno Haible  <bruno@clisp.org>
48838
48839         Merge gen-ctype and gen-lbrk into a single program.
48840         * lib/gen-uni-tables.c: New file, incorporating
48841         lib/unictype/gen-ctype.c and lib/unilbrk/gen-lbrk.c.
48842         Add directory prefixes to the names of the generated files.
48843         * lib/unictype/gen-ctype.c: Remove file.
48844         * lib/unilbrk/gen-lbrk.c: Remove file.
48845         * modules/gen-uni-tables: New file.
48846         * modules/unictype/gen-ctype: Remove file.
48847         * modules/unilbrk/gen-lbrk: Remove file.
48848
48849 2009-02-07  Bruno Haible  <bruno@clisp.org>
48850
48851         * lib/unistr.h (u8_strcoll, u16_strcoll, u32_strcoll): New declations.
48852
48853         New module 'unistr/u32-strcoll'.
48854         * modules/unistr/u32-strcoll: New file.
48855         * lib/unistr/u32-strcoll.c: New file.
48856
48857         New module 'unistr/u16-strcoll'.
48858         * modules/unistr/u16-strcoll: New file.
48859         * lib/unistr/u16-strcoll.c: New file.
48860
48861         New module 'unistr/u8-strcoll'.
48862         * modules/unistr/u8-strcoll: New file.
48863         * lib/unistr/u8-strcoll.c: New file.
48864         * lib/unistr/u-strcoll.h: New file.
48865
48866 2009-02-07  Bruno Haible  <bruno@clisp.org>
48867
48868         * test-mbrtowc4.sh (LOCALE_ZH_CN): Fix default value.
48869         * test-mbsnrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48870         * test-mbsrtowcs4.sh (LOCALE_ZH_CN): Likewise.
48871         * test-wcrtomb.sh (LOCALE_ZH_CN): Likewise.
48872         * test-wcsnrtombs4.sh (LOCALE_ZH_CN): Likewise.
48873         * test-wcsrtombs4.sh (LOCALE_ZH_CN): Likewise.
48874
48875 2009-02-07  Bruno Haible  <bruno@clisp.org>
48876
48877         Make 64-bit clean.
48878         * lib/unictype/gen-ctype.c (output_predicate, output_category,
48879         output_combclass, output_bidi_category, output_decimal_digit,
48880         output_digit, output_numeric, output_mirror, output_scripts,
48881         output_ident_category): Use proper width specifier in format strings.
48882
48883 2009-02-07  Bruno Haible  <bruno@clisp.org>
48884
48885         * doc/posix-functions/dirfd.texi: Clarify situation on mingw. Document
48886         failure behaviour.
48887
48888 2009-02-07  Jim Meyering  <meyering@redhat.com>
48889
48890         regex: avoid compilation failure with upcoming gcc-4.4
48891         * lib/regex_internal.h: Revert e48d8b47fb3eee81d341b71c3e006efe9e3433a7
48892         [workaround for PGC prior to 6.1-2].  Otherwise, we'd get this:
48893         "... error: integer overflow in preprocessor expression".
48894
48895 2009-02-05  Ben Pfaff  <blp@gnu.org>
48896
48897         Fix link errors on Windows when close module is used.
48898         * modules/close: Add $(LIB_CLOSE) to Link section.
48899         * m4/close.m4 (gl_REPLACE_CLOSE): Substitute -lws2_32 into
48900         $(LIB_CLOSE) on Windows.
48901
48902 2009-02-05  Jim Meyering  <meyering@redhat.com>
48903
48904         still avoid unused-parameter warnings, but do it cleanly
48905         * lib/fsusage.c (UNUSED_PARAM): Remove definition.
48906         (get_fs_usage): Cast to void instead.
48907         * lib/mountlist.c (UNUSED_PARAM): Remove definition.
48908         (dev_from_mount_options, read_file_system_list): Cast to void.
48909         Prompted by Bruno Haible.
48910
48911 2009-02-04  Jim Meyering  <meyering@redhat.com>
48912
48913         fsusage.c: correct copyright year
48914         * lib/fsusage.c: Reflect year in which the change is pushed into
48915
48916         avoid misc. warnings
48917         * lib/fsusage.c (UNUSED_PARAM): Define.
48918         (get_fs_usage): Mark parameter "disk" as unused.
48919         * lib/getugroups.c (getgrent): Use "void" in prototype.
48920         * lib/mountlist.c: Mark unused parameters.
48921         (read_file_system_list): Declare a local with "const".
48922         * lib/nanosleep.c (getnow): Declare static.
48923         * lib/strftime.c: Include strftime.h, for declaration of nstrftime.
48924
48925         dirfd: set errno upon failure
48926         * lib/dirfd.c: Include <errno.h>.
48927         Set errno to ENOTSUP when returning -1.
48928         * modules/dirfd (Depends-on): Add errno.
48929         Suggested by John Kodis <kodis@comcast.net>.
48930
48931 2009-02-01  Bruno Haible  <bruno@clisp.org>
48932
48933         Don't assume sizeof (long) >= sizeof (void *).
48934         * lib/memcmp.c: Include stdint.h.
48935         (memcmp_bytes): Change argument types to op_t. Change type of srcp1,
48936         srcp2 to 'const byte *'.
48937         (memcmp_common_alignment, memcmp_not_common_alignment): Change argument
48938         types to uintptr_t.
48939         (rpl_memcmp): Change type of srcp1, srcp2 to 'uintptr_t'.
48940         * modules/memcmp (Depends-on): Add stdint.
48941         Reported by Ozkan Sezer <sezeroz@gmail.com>.
48942
48943 2009-01-30  Eric Blake  <ebb9@byu.net>
48944
48945         fix more require-before-expand issues
48946         * m4/pmccabe2html.m4 (gl_PMCCABE2HTML): Require, rather than
48947         expand, AC_PROG_AWK.
48948         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): Use AC_DEFUN_ONCE.
48949
48950 2009-01-28  Eric Blake  <ebb9@byu.net>
48951
48952         version-etc: use consistent URL formatting
48953         * lib/version-etc.c (emit_bug_reporting_address, version_etc_va):
48954         Improve formatting.  Use fputs for string without %.
48955
48956 2009-01-28  Jim Meyering  <meyering@redhat.com>
48957
48958         00gnulib.m4: add m4 quotes in shell comment to avoid autoconf warning
48959         * m4/00gnulib.m4 (AC_DEFUN_ONCE): Add quotes to avoid an
48960         "underquoted definition of NAME" from autoconf-2.59.
48961
48962 2009-01-28  Bruno Haible  <bruno@clisp.org>
48963
48964         * doc/gnulib.texi: Add "Obsolete modules" to index.
48965
48966 2009-01-28  Jim Meyering  <meyering@redhat.com>
48967
48968         useless-if-before-free: recognize more variants
48969         * build-aux/useless-if-before-free: Also recognize e.g.,
48970         if (NULL != p) free (p);
48971
48972 2009-01-27  Mark McLoughlin  <markmc@redhat.com>
48973
48974         test-getaddrinfo: skip (don't fail) this test when there's no network
48975         * tests/test-getaddrinfo.c: Skip test upon failure with EAI_AGAIN,
48976         on the presumption that it means you lack network access.
48977
48978 2009-01-26  Jim Meyering  <meyering@redhat.com>
48979
48980         fflush: avoid warnings on modern systems
48981         * lib/fflush.c (rpl_fflush): Move declarations of locals,
48982         pos and result, into scopes where they're used.
48983
48984 2009-01-26  Eric Blake  <ebb9@byu.net>
48985
48986         Silence warning reintroduced by recent extensions patch.
48987         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS)
48988         (gl_USE_SYSTEM_EXTENSIONS): Use AC_DEFUN_ONCE to silence newer
48989         autoconf.
48990
48991         Backport improved autoconf semantics of AC_DEFUN_ONCE.
48992         * m4/00gnulib.m4: New file.
48993         * gnulib-tool (func_get_filelist): Always use it.
48994         * m4/gnulib-common.m4 (gl_COMMON): Force the file to be used.
48995         Reported by Bruno Haible, with suggestions from Paolo Bonzini.
48996
48997 2009-01-25  Bruno Haible  <bruno@clisp.org>
48998
48999         Make test-quotearg work on MacOS X and AIX.
49000         * tests/test-quotearg.sh: New file.
49001         * tests/locale/fr/LC_MESSAGES/test-quotearg.po: New file.
49002         * tests/locale/fr/LC_MESSAGES/test-quotearg.mo: New file.
49003         * tests/test-quotearg.c: Include <locale.h> and gettext.h. Don't
49004         include <libintl.h>.
49005         (fake_locale): Remove variable.
49006         (gettext, dgettext, dcgettext): Remove functions.
49007         (main): Instead of setting a fake locale, set a real locale. Call
49008         textdomain and bindtextdomain.
49009         * modules/quotearg-tests (Files): Add the new files.
49010         (Depends-on): Add gettext, setenv, unsetenv.
49011         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
49012         (Makefile.am): Add test-quotearg.sh to TESTS, remove test-quotearg.
49013         Augment TESTS_ENVIRONMENT.
49014
49015 2009-01-25  Bruno Haible  <bruno@clisp.org>
49016
49017         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove special code that hid the
49018         fr_FR.ISO8859-1 locale on MacOS X.
49019         * m4/locale-ja.m4 (gt_LOCALE_JA): Remove special code that hid the
49020         ja_JP.eucJP locale on MacOS X.
49021         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Remove special code that hid the
49022         zh_CN.GB18030 locale on MacOS X.
49023
49024 2009-01-25  Bruno Haible  <bruno@clisp.org>
49025
49026         Avoid link errors on MacOS X 10.3.
49027         * lib/mbsrtowcs-state.c (_gl_mbsrtowcs_state): Add initializer.
49028         * lib/wcsrtombs-state.c (_gl_wcsrtombs_state): Likewise.
49029
49030 2009-01-25  Bruno Haible  <bruno@clisp.org>
49031
49032         * lib/pipe.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
49033         * m4/pipe.m4 (gl_PIPE): Remove tests for vfork() based code.
49034         * modules/pipe (Files): Remove m4/posix_spawn.m4.
49035         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
49036         posix_spawn_file_actions_addclose, posix_spawn_file_actions_adddup2,
49037         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
49038         posix_spawnattr_init, posix_spawnattr_setsigmask,
49039         posix_spawnattr_setflags, posix_spawnattr_destroy.
49040
49041         * lib/execute.c: On Unix, assume HAVE_POSIX_SPAWN and use posix_spawnp.
49042         * m4/execute.m4 (gl_EXECUTE): Remove tests for vfork() based code.
49043         * modules/execute (Files): Remove m4/posix_spawn.m4.
49044         (Depends-on): Add spawn, posix_spawnp, posix_spawn_file_actions_init,
49045         posix_spawn_file_actions_addopen, posix_spawn_file_actions_destroy,
49046         posix_spawnattr_init, posix_spawnattr_setsigmask,
49047         posix_spawnattr_setflags, posix_spawnattr_destroy.
49048
49049 2009-01-25  Bruno Haible  <bruno@clisp.org>
49050
49051         * lib/glthread/threadlib.c: Include <stdlib.h>.
49052
49053 2009-01-25  Bruno Haible  <bruno@clisp.org>
49054
49055         * lib/glthread/threadlib.c (dummy): New declaration.
49056
49057 2009-01-25  Bruno Haible  <bruno@clisp.org>
49058
49059         * lib/mbrtowc.c (mbrtowc): Distinguish invalid and incomplete
49060         multibyte characters also for the GB18030 encoding. Don't crash when
49061         the encoding is unknown and nstate = 0. Needed on OSF/1 5.1.
49062
49063 2009-01-25  Bruno Haible  <bruno@clisp.org>
49064
49065         Avoid redefining 'struct random_data' on OSF/1 5.1.
49066         * lib/stdlib.in.h: Include <random.h> if it exists.
49067         * m4/stdlib_h.m4 (gl_STDLIB_H): Test whether <random.h> exists. Set
49068         HAVE_RANDOM_H. Include <random.h> when testing whether
49069         'struct random_data' exists.
49070         * modules/stdlib (Makefile.am): Substitute HAVE_RANDOM_H.
49071
49072 2009-01-25  Bruno Haible  <bruno@clisp.org>
49073
49074         Don't install charset.alias on MacOS X >= 10.3.
49075         * lib/localcharset.c (DARWIN7): New macro.
49076         (get_charset_aliases): Hardcode the result for Darwin7.
49077         * modules/localcharset (install-exec-local): Don't install
49078         charset.alias on MacOS X >= 10.3, if the file does not yet exist.
49079
49080 2009-01-25  Bruno Haible  <bruno@clisp.org>
49081
49082         Don't install charset.alias on mingw and Cygwin.
49083         * modules/localcharset (install-exec-local): Don't install
49084         charset.alias on mingw and Cygwin, if the file does not yet exist.
49085         The result for these platforms is hardcoded in localcharset.c.
49086
49087 2009-01-25  Bruno Haible  <bruno@clisp.org>
49088
49089         Make it possible again to use AC_GNU_SOURCE together with gnulib.
49090         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_GNU_SOURCE
49091         before requiring AC_USE_SYSTEM_EXTENSIONS.
49092
49093 2009-01-25  Jim Meyering  <meyering@redhat.com>
49094
49095         c-strtod: avoid warnings
49096         * lib/c-strtod.c (C_STRTOD): Cast nptr to (char *) to avoid
49097         "assignment discards qualifiers from pointer target type" warnings.
49098
49099 2009-01-24  Bruno Haible  <bruno@clisp.org>
49100
49101         Add support for non-UTF-8 locales on MacOS X.
49102         * lib/config.charset: Add CP1131, ARMSCII-8, PT154 to the list of
49103         canonical encodings. For Darwin 7 and newer, don't map traditional
49104         encodings to UTF-8.
49105         Reported by Vincent Lefevre <vincent@vinc17.org>
49106         at <http://savannah.gnu.org/bugs/?25235>.
49107
49108 2009-01-24  Bruno Haible  <bruno@clisp.org>
49109
49110         * doc/gnulib.texi (Obsolete modules): New section.
49111         Reported by Mike Frysinger <vapier@gentoo.org>.
49112
49113 2009-01-24  Bruno Haible  <bruno@clisp.org>
49114
49115         * doc/Makefile (%.pdf): Clarify where to find texmf.cnf.
49116         (%.dvi): New rule.
49117
49118 2009-01-24  Bruno Haible  <bruno@clisp.org>
49119
49120         * lib/c-strtod.h (c_strtod, c_strtold): Adjust specification.
49121         Reported by Eric Blake.
49122
49123 2009-01-24  Bruno Haible  <bruno@clisp.org>
49124
49125         * lib/c-stack.c (segv_handler): If !HAVE_XSI_STACK_OVERFLOW_HEURISTIC,
49126         set signo = 0 also if info->si_code <= 0. Needed on HP-UX 11.11.
49127         Reported by Gary V. Vaughan <gary@gnu.org>.
49128
49129 2009-01-24  Bruno Haible  <bruno@clisp.org>
49130
49131         * lib/c-strtod.h (c_strtod, c_strtold): Add specification.
49132
49133 2009-01-23  Bruno Haible  <bruno@clisp.org>
49134
49135         Make c-strtod, c-strtold usable in libraries.
49136         * lib/c-strtod.c: Include string.h instead of xalloc.h.
49137         (C_STRTOD): Call strdup instead of xstrdup.
49138         * modules/c-strtod (Depends-on): Add strdup-posix, remove xalloc.
49139         * modules/c-strtold (Depends-on): Likewise.
49140         * doc/c-strtod.texi: Remove the sentence mentioning xalloc_die.
49141         * NEWS: Mention the change.
49142         Reported by Michael Gold <mgold@ncf.ca>.
49143
49144 2009-01-23  Jim Meyering  <meyering@redhat.com>
49145
49146         c-strtod: when ENDPTR is non-NULL, set *ENDPTR in new failure path
49147         * lib/c-strtod.c (C_STRTOD) [LC_ALL_MASKC]: Ensure that when
49148         ENDPTR is non-NULL, *ENDPTR is set to NPTR upon failure.
49149
49150 2009-01-23  Simon Josefsson  <simon@josefsson.org>
49151
49152         * lib/version-etc.c: Add emit_bug_reporting_address, inspired by
49153         GNU CoreUtils.
49154         * lib/version-etc.h: Add prototype for emit_bug_reporting_address.
49155         * modules/version-etc (Description): Update.
49156
49157 2009-01-22  Bruno Haible  <bruno@clisp.org>
49158
49159         Cache the C locale object.
49160         * lib/c-strtod.c (c_locale_cache): New variable.
49161         (c_locale): New function.
49162         (C_STRTOD): Use it, and don't call freelocale.
49163         * m4/c-strtod.m4 (gl_C_STRTOD, gl_C_STRTOLD): Require AC_C_INLINE.
49164         Suggested by Paolo Bonzini.
49165
49166 2009-01-21  Bruno Haible  <bruno@clisp.org>
49167
49168         * lib/getloadavg.c (getloadavg): Check c_strtod result against error
49169         conditions other than overflow.
49170
49171 2009-01-21  Bruno Haible  <bruno@clisp.org>
49172
49173         * lib/c-strtod.c: Include errno.h.
49174         (C_STRTOD): Check against NULL return from newlocale. Preserve errno
49175         value from STRTOD_L and STRTOD.
49176
49177 2009-01-21  Bruno Haible  <bruno@clisp.org>
49178         and Jim Meyering  <meyering@redhat.com>
49179
49180         nanosleep: skip configure test (fail it) for apple universal builds
49181         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_MULTIARCH. In Apple
49182         universal builds, assume that nanosleep does not work.
49183         * modules/nanosleep (Depends-on): Add multiarch.
49184
49185         mktime: skip configure test (fail it) for apple universal builds
49186         * m4/mktime.m4 (AC_FUNC_MKTIME): Require gl_MULTIARCH. In Apple
49187         universal builds, assume that mktime does not work.
49188         * modules/mktime (Depends-on): Add multiarch.
49189
49190 2009-01-21  Eric Blake  <ebb9@byu.net>
49191
49192         multiarch: avoid expand-before-require warning
49193         * modules/multiarch (configure.ac): Require, rather than expand,
49194         gl_MULTIARCH.
49195         * m4/multiarch.m4 (gl_MULTIARCH_BODY): Merge...
49196         (gl_MULTIARCH): ...into this macro, and use AC_DEFUN_ONCE to
49197         enforce that all clients require it.  Partial reversion of
49198         2008-12-29 patch.
49199
49200         error: avoid expand-before-require warning
49201         * modules/errno (configure.ac): Require, rather than expand,
49202         gl_HEADER_ERRNO_H.
49203         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Merge...
49204         (gl_HEADER_ERRNO_H): ...into this macro, and use AC_DEFUN_ONCE to
49205         enforce that all clients require it.
49206
49207         gnulib-tool: avoid warnings from using obsolete AC_GNU_SOURCE
49208         * gnulib-tool (func_dest_tmpfilename, func_create_testdir): Using
49209         obsolete AC_GNU_SOURCE causes out-of-order expansion; avoid it,
49210         and rely solely on gl_USE_SYSTEM_EXTENSIONS.
49211
49212 2009-01-21  Paolo Bonzini  <bonzini@gnu.org>
49213
49214         Revert:
49215         2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49216
49217         regex: do not depend on obsolete modules.
49218         * modules/regex: Remove memcmp and memmove.
49219
49220 2009-01-20  Bruno Haible  <bruno@clisp.org>
49221
49222         Make the 'link' module link on Windows NT 4.
49223         * lib/link.c (_WIN32_WINNT): Don't define.
49224         (CreateHardLinkFuncType): New type.
49225         (CreateHardLinkFunc, initialized): New variables.
49226         (initialize): New function.
49227         (link): Invoke CreateHardLink indirectly through the function pointer.
49228
49229 2009-01-20  Bruno Haible  <bruno@clisp.org>
49230
49231         Fix compilation failure on mingw.
49232         * tests/test-link.c (main): Don't assume that EOPNOTSUPP exists.
49233
49234 2009-01-20  Michael Gold  <mgold@ncf.ca>  (tiny change)
49235
49236         * doc/c-strtod.texi: Mention a couple of restrictions.
49237
49238 2009-01-20  Jim Meyering  <meyering@redhat.com>
49239
49240         gettimeofday: move more declarations out of functions
49241         * lib/gettimeofday.c: Move extern declarations of tzset and
49242         gmtime out of containing functions.  Prompted by Bruno Haible.
49243
49244 2009-01-20  Paolo Bonzini  <bonzini@gnu.org>
49245
49246         regex: do not depend on obsolete modules.
49247         * modules/regex: Remove memcmp and memmove.
49248
49249 2009-01-19  Bruno Haible  <bruno@clisp.org>
49250
49251         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49252         * modules/uniconv/u16-conv-from-enc (configure.ac): Require
49253         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49254         * modules/uniconv/u16-conv-to-enc (configure.ac): Likewise.
49255         * modules/uniconv/u16-strconv-to-enc (configure.ac): Likewise.
49256
49257 2009-01-19  Bruno Haible  <bruno@clisp.org>
49258
49259         * tests/test-link.c: Include <errno.h>.
49260         (main): Exit with code 77 when a hard link cannot be created due to
49261         the file system.
49262         * tests/test-link.sh: Skip test when a hard link cannot be created due
49263         to the file system.
49264         Suggested by Eric Blake.
49265
49266 2009-01-19  Martin Lambers  <marlam@marlam.de>
49267
49268         * modules/link-tests: New file.
49269         * tests/test-link.sh: New file.
49270         * tests/test-link.c: New file.
49271
49272 2009-01-19  Eric Blake  <ebb9@byu.net>
49273
49274         doc: mention another function added in cygwin 1.7.0
49275         * doc/glibc-functions/glob_pattern_p.texi (glob_pattern_p):
49276         Another new function in cygwin 1.7.
49277
49278 2009-01-19  Bruno Haible  <bruno@clisp.org>
49279
49280         Don't use AC_REQUIRE([AC_C_BIGENDIAN]).
49281         * m4/gnulib-common.m4 (gl_BIGENDIAN): New macro.
49282         * m4/exponentl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require
49283         gl_BIGENDIAN, not AC_C_BIGENDIAN.
49284         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): Likewise.
49285         * m4/isinf.m4 (gl_ISINFL_WORKS): Likewise.
49286         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Likewise.
49287         * m4/md4.m4 (gl_MD4): Likewise.
49288         * m4/md5.m4 (gl_MD5): Likewise.
49289         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Likewise.
49290         * m4/sha1.m4 (gl_SHA1): Likewise.
49291         * m4/sha256.m4 (gl_SHA256): Likewise.
49292         * m4/sha512.m4 (gl_SHA512): Likewise.
49293
49294 2009-01-19  Bruno Haible  <bruno@clisp.org>
49295
49296         * modules/uniname/uniname-tests (Depends-on): Add progname.
49297         * tests/uniname/test-uninames.c: Include progname.h.
49298         (main): Call set_program_name.
49299
49300         * modules/unistdio/u8-vsprintf-tests (Depends-on): Add progname.
49301         * tests/unistdio/test-u8-vsprintf1.c: Include progname.h.
49302         (main): Call set_program_name.
49303
49304         * modules/unistdio/u8-vsnprintf-tests (Depends-on): Add progname.
49305         * tests/unistdio/test-u8-vsnprintf1.c: Include progname.h.
49306         (main): Call set_program_name.
49307
49308         * modules/unistdio/u16-vsprintf-tests (Depends-on): Add progname.
49309         * tests/unistdio/test-u16-vsprintf1.c: Include progname.h.
49310         (main): Call set_program_name.
49311
49312         * modules/unistdio/u16-vsnprintf-tests (Depends-on): Add progname.
49313         * tests/unistdio/test-u16-vsnprintf1.c: Include progname.h.
49314         (main): Call set_program_name.
49315
49316         * modules/unistdio/u32-vsprintf-tests (Depends-on): Add progname.
49317         * tests/unistdio/test-u32-vsprintf1.c: Include progname.h.
49318         (main): Call set_program_name.
49319
49320         * modules/unistdio/u32-vsnprintf-tests (Depends-on): Add progname.
49321         * tests/unistdio/test-u32-vsnprintf1.c: Include progname.h.
49322         (main): Call set_program_name.
49323
49324         * modules/unistdio/ulc-vsprintf-tests (Depends-on): Add progname.
49325         * tests/unistdio/test-ulc-vsprintf1.c: Include progname.h.
49326         (main): Call set_program_name.
49327
49328         * modules/unistdio/ulc-vsnprintf-tests (Depends-on): Add progname.
49329         * tests/unistdio/test-ulc-vsnprintf1.c: Include progname.h.
49330         (main): Call set_program_name.
49331
49332 2009-01-19  Eric Blake  <ebb9@byu.net>
49333
49334         test-unistd: test previous patch
49335         * tests/test-unistd.c: Test *_FILENO macros.
49336
49337         unistd: guarantee STDIN_FILENO here, for OS/2 EMX
49338         * lib/unistd.in.h (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49339         Guarantee a definition.
49340         * doc/posix-headers/unistd.texi (unistd.h): Document the bug.
49341         * modules/unistd-safer (Depends-on): Add dependency on unistd.
49342         * lib/c-stack.c (STDERR_FILENO): Rely on <unistd.h>.
49343         * lib/dup-safer.c (STDERR_FILENO): Likewise.
49344         * lib/execute.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49345         Likewise.
49346         * lib/fd-safer.c (STDIN_FILENO, STDERR_FILENO): Likewise.
49347         * lib/fopen-safer.c (STDERR_FILENO): Likewise.
49348         * lib/pipe.c (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO):
49349         Likewise.
49350         * lib/tmpfile-safer.c (STDERR_FILENO): Likewise.
49351         * tests/test-posix_spawn1.c (STDIN_FILENO, STDOUT_FILENO)
49352         (STDERR_FILENO): Likewise.
49353         * tests/test-posix_spawn2.c (STDIN_FILENO, STDOUT_FILENO)
49354         (STDERR_FILENO): Likewise.
49355         * tests/test-posix_spawn3.c (STDIN_FILENO, STDOUT_FILENO)
49356         (STDERR_FILENO): Likewise.
49357         Reported by Elbert Pol.
49358
49359 2009-01-19  Eric Blake  <ebb9@byu.net>
49360
49361         doc: mention more functions added in cygwin 1.7.0
49362         * doc/posix-functions/abort.texi (abort): Update wording related
49363         to cygwin.
49364         * doc/posix-functions/daylight.texi (daylight): Likewise.
49365         * doc/posix-functions/optarg.texi (optarg): Likewise.
49366         * doc/posix-functions/optarg.texi (opterr): Likewise.
49367         * doc/posix-functions/optarg.texi (optind): Likewise.
49368         * doc/posix-functions/optarg.texi (optopt): Likewise.
49369         * doc/posix-functions/wprintf.texi (wprintf): Cygwin wprintf never
49370         worked in 1.5.x, and was withdrawn in 1.7.
49371         * doc/posix-functions/vwprintf.texi (vwprintf): Likewise.
49372         * doc/posix-functions/fprintf.texi (fprintf): Tighten mention of
49373         cygwin versions.
49374         * doc/posix-functions/perror.texi (perror): Likewise.
49375         * doc/posix-functions/printf.texi (printf): Likewise.
49376         * doc/posix-functions/snprintf.texi (snprintf): Likewise.
49377         * doc/posix-functions/sprintf.texi (sprintf): Likewise.
49378         * doc/posix-functions/vfprintf.texi (vfprintf): Likewise.
49379         * doc/posix-functions/vprintf.texi (vprintf): Likewise.
49380         * doc/posix-functions/vsnprintf.texi (vsnprintf): Likewise.
49381         * doc/posix-functions/vsprintf.texi (vsprintf): Likewise.
49382         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
49383         Likewise.
49384         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
49385         Likewise.
49386         * doc/glibc-functions/cfmakeraw.texi (cfmakeraw): Cygwin 1.7 adds
49387         this function.
49388         * doc/glibc-functions/in6addr_any.texi (in6addr_any): Likewise.
49389         * doc/glibc-functions/in6addr_loopback.texi (in6addr_loopback):
49390         Likewise.
49391         * doc/glibc-functions/updwtmpx.texi (updwtmpx): Likewise.
49392         * doc/posix-functions/_Exit_C99.texi (_Exit): Likewise.
49393         * doc/posix-functions/confstr.texi (confstr): Likewise.
49394         * doc/posix-functions/dprintf.texi (dprintf): Likewise.
49395         * doc/posix-functions/fgetwc.texi (fgetwc): Likewise.
49396         * doc/posix-functions/fgetws.texi (fgetws): Likewise.
49397         * doc/posix-functions/fputwc.texi (fputwc): Likewise.
49398         * doc/posix-functions/fputws.texi (fputws): Likewise.
49399         * doc/posix-functions/fwide.texi (fwide): Likewise.
49400         * doc/posix-functions/getwc.texi (getwc): Likewise.
49401         * doc/posix-functions/getwchar.texi (getwchar): Likewise.
49402         * doc/posix-functions/putwc.texi (putwc): Likewise.
49403         * doc/posix-functions/putwchar.texi (putwchar): Likewise.
49404         * doc/posix-functions/sigignore.texi (sigignore): Likewise.
49405         * doc/posix-functions/ungetwc.texi (ungetwc): Likewise.
49406         * doc/posix-functions/vdprintf.texi (vdprintf): Likewise.
49407         * doc/posix-functions/wcpcpy.texi (wcpcpy): Likewise.
49408         * doc/posix-functions/wcpncpy.texi (wcpncpy): Likewise.
49409         * doc/posix-functions/wcstol.texi (wcstol): Likewise.
49410         * doc/posix-functions/wcstoll.texi (wcstoll): Likewise.
49411         * doc/posix-functions/wcstoul.texi (wcstoul): Likewise.
49412         * doc/posix-functions/wcstoull.texi (wcstoull): Likewise.
49413         * doc/posix-functions/wcsxfrm.texi (wcsxfrm): Likewise.
49414
49415 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49416
49417         ioctl: avoid warning: no previous prototype for 'rpl_ioctl'
49418         * lib/ioctl.c: Include <sys/ioctl.h>.
49419
49420 2009-01-19  Simon Josefsson  <simon@josefsson.org>
49421
49422         * modules/getdate-tests (Depends-on): Add progname.
49423         * tests/test-getdate.c: Use progname module, to avoid link errors
49424         on non-glibc systems.
49425
49426 2009-01-18  Simon Josefsson  <simon@josefsson.org>
49427
49428         * modules/filenamecat-tests (Depends-on): Add progname.
49429         * modules/fstrcmp-tests (Depends-on): Likewise.
49430
49431         * tests/test-filenamecat.c: Use progname module, to avoid link
49432         errors on non-glibc systems.
49433         * tests/test-fstrcmp.c: Likewise.
49434
49435 2009-01-19  Daniel P. Berrange  <berrange@redhat.com>
49436
49437         gettimeofday: avoid warning: nested extern declaration of 'localtime'
49438         * lib/gettimeofday.c: Move extern declaration out of function.
49439
49440 2009-01-18  Bruno Haible  <bruno@clisp.org>
49441
49442         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mblen and mbrlen.
49443         * lib/strftime.c (HAVE_MBLEN, HAVE_MBRLEN): Remove macros.
49444         (MULTIBYTE_IS_FORMAT_SAFE): Define to 1 on all platforms except OSF/1.
49445
49446 2009-01-18  Bruno Haible  <bruno@clisp.org>
49447
49448         * lib/strftime.c (MEMPCPY): Remove unused macro.
49449         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't test for mempcpy.
49450
49451 2009-01-18  Martin Lambers  <marlam@marlam.de>
49452
49453         New module 'link'.
49454         * lib/unistd.in.h (link): New declaration.
49455         * lib/link.c: New file.
49456         * m4/link.m4: New file.
49457         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_LINK,
49458         HAVE_LINK.
49459         * modules/unistd (Makefile.am): Substitute GNULIB_LINK, HAVE_LINK.
49460         * modules/link: New file.
49461         * doc/posix-functions/link.texi: Mention the new module.
49462
49463 2009-01-18  Bruno Haible  <bruno@clisp.org>
49464
49465         * tests/test-avltree_list.c (main): Call set_program_name.
49466         * tests/test-avltree_oset.c (main): Likewise.
49467         * tests/test-obstack-printf.c: Include progname.h.
49468         (main): Call set_program_name.
49469         * tests/test-quotearg.c: Include progname.h.
49470         (main): Call set_program_name.
49471         * tests/test-xmemdup0.c: Include progname.h.
49472         (main): Call set_program_name.
49473
49474 2009-01-18  Bruno Haible  <bruno@clisp.org>
49475
49476         New module 'alphasort'.
49477         * lib/dirent.in.h (alphasort): New declaration.
49478         * lib/alphasort.c: New file, from glibc with modifications.
49479         * m4/alphasort.m4: New file.
49480         * modules/alphasort: New file.
49481         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_ALPHASORT,
49482         HAVE_ALPHASORT.
49483         * modules/dirent (Makefile.am): Substitute GNULIB_ALPHASORT,
49484         HAVE_ALPHASORT.
49485         * doc/posix-functions/alphasort.texi: Mention the new module and the
49486         portability problems.
49487
49488 2009-01-18  Bruno Haible  <bruno@clisp.org>
49489
49490         New module 'scandir'.
49491         * lib/dirent.in.h (scandir): New declaration.
49492         * lib/scandir.c: New file, from glibc with modifications.
49493         * m4/scandir.m4: New file.
49494         * modules/scandir: New file.
49495         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_SCANDIR,
49496         HAVE_SCANDIR.
49497         * modules/dirent (Makefile.am): Substitute GNULIB_SCANDIR,
49498         HAVE_SCANDIR.
49499         * doc/posix-functions/scandir.texi: Mention the new module and the
49500         portability problems.
49501
49502 2009-01-17  Bruno Haible  <bruno@clisp.org>
49503
49504         * gnulib-tool (func_remove_prefix): Escape all dots in the prefix.
49505         Update documentation.
49506         (func_remove_suffix): Escape all dots in the suffix. Update
49507         documentation.
49508         (func_filter_filelist): Update documentation.
49509         Reported by Ralf Wildenhues.
49510
49511 2009-01-17  Bruno Haible  <bruno@clisp.org>
49512
49513         * modules/dprintf-posix-tests: New file.
49514         * tests/test-dprintf-posix.sh: New file.
49515         * tests/test-dprintf-posix.c: New file.
49516
49517         New modules 'dprintf', 'dprintf-posix'.
49518         * lib/stdio.in.h (dprintf): New declaration.
49519         * lib/dprintf.c: New file.
49520         * m4/dprintf.m4: New file.
49521         * m4/dprintf-posix.m4: New file.
49522         * modules/dprintf: New file.
49523         * modules/dprintf-posix: New file.
49524         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_DPRINTF,
49525         HAVE_DPRINTF, REPLACE_DPRINTF.
49526         * modules/stdio (Makefile.am): Substitute also GNULIB_DPRINTF,
49527         HAVE_DPRINTF, REPLACE_DPRINTF.
49528         * doc/posix-functions/dprintf.texi: Mention the new modules.
49529
49530 2009-01-17  Bruno Haible  <bruno@clisp.org>
49531
49532         * modules/vdprintf-posix-tests: New file.
49533         * tests/test-vdprintf-posix.sh: New file.
49534         * tests/test-vdprintf-posix.c: New file.
49535
49536         New modules 'vdprintf', 'vdprintf-posix'.
49537         * lib/stdio.in.h (vdprintf): New declaration.
49538         * lib/vdprintf.c: New file.
49539         * m4/vdprintf.m4: New file.
49540         * m4/vdprintf-posix.m4: New file.
49541         * modules/vdprintf: New file.
49542         * modules/vdprintf-posix: New file.
49543         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_VDPRINTF,
49544         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49545         * modules/stdio (Makefile.am): Substitute also GNULIB_VDPRINTF,
49546         HAVE_VDPRINTF, REPLACE_VDPRINTF.
49547         * doc/posix-functions/vdprintf.texi: Mention the new modules.
49548
49549 2009-01-17  Bruno Haible  <bruno@clisp.org>
49550
49551         Fix replacement of fopen on mingw.
49552         * m4/fopen.m4 (gl_FUNC_FOPEN): Define FOPEN_TRAILING_SLASH_BUG also on
49553         mingw.
49554
49555 2009-01-17  Bruno Haible  <bruno@clisp.org>
49556
49557         Fix compilation error on HP-UX 11.00, present since 2008-09-24.
49558         * lib/fopen.c: Include <sys/types.h> and <sys/types.h>.
49559
49560 2009-01-17  Bruno Haible  <bruno@clisp.org>
49561
49562         Avoid test-fflush2.sh failure on mingw.
49563         * tests/test-fflush2.c: Include binary-io.h.
49564         (main): Put standard input into binary mode.
49565         * modules/fflush-tests (Depends-on): Add binary-io.
49566
49567 2009-01-17  Bruno Haible  <bruno@clisp.org>
49568
49569         * lib/wchar.in.h: In another particular situation, include only the
49570         system's <wchar.h> file.
49571         (_GL_ALREADY_INCLUDING_WCHAR_H): New macro.
49572         Reported by Albert Chin-A-Young <china@thewrittenword.com>
49573         and Thomas Guyot-Sionnest <dermoth@aei.ca>.
49574
49575 2009-01-17  Bruno Haible  <bruno@clisp.org>
49576
49577         Support for stripping executables in --enable-relocatable.
49578         * build-aux/install-reloc: Expect one more argument, or an environment
49579         variable RELOC_STRIP_PROG. If set, strip the destination program and
49580         its wrapper.
49581         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV, set
49582         RELOC_STRIP_PROG.
49583         * doc/relocatable-maint.texi (Supporting Relocation): Mention the need
49584         to set RELOCATABLE_STRIP.
49585         * NEWS: Mention the new Makefile requirement.
49586
49587 2009-01-17  Bruno Haible  <bruno@clisp.org>
49588
49589         * build-aux/install-reloc: Remove debugging information left over by
49590         C compiler on MacOS X.
49591
49592 2009-01-17  Bruno Haible  <bruno@clisp.org>
49593
49594         Update use of _NSGetExecutablePath after API change in MacOS X 10.4.
49595         * lib/progreloc.c (find_executable): Fix type of pointer passed to
49596         _NSGetExecutablePath.
49597
49598 2009-01-16  Jim Meyering  <meyering@redhat.com>
49599
49600         strerror: avoid warnings about discarding "const"
49601         * lib/strerror.c (rpl_strerror): Instead of returning a const
49602         string from each and every "case", use a variable, and add a single
49603         cast after the switch.
49604
49605 2009-01-16  Albert Chin-A-Young <china@thewrittenword.com>
49606
49607         * lib/arpa_inet.in.h: Add extern "C" block for C++.
49608
49609 2009-01-16  Bruno Haible  <bruno@clisp.org>
49610
49611         * m4/printf.m4 (gl_SNPRINTF_SIZE1, gl_VSNPRINTF_ZEROSIZE_C99): Use an
49612         array initializer syntax that also works in C++ mode.
49613         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49614
49615 2009-01-16  Jim Meyering  <meyering@redhat.com>
49616
49617         poll: suppress a warning
49618         * lib/poll.c: Use #pragma GCC diagnostic ignored "-Wtype-limits"
49619         to ignore "...unsigned expression < 0 is always false" warnings.
49620
49621 2009-01-16  Daniel P. Berrange  <berrange@redhat.com>
49622
49623         poll: remove declarations of unused variables
49624         * lib/poll.c (poll) [WIN32_NATIVE]: Remove declarations of unused
49625         sockbuf and optlen.
49626
49627 2009-01-15  Bruno Haible  <bruno@clisp.org>
49628
49629         Make fflush-after-ungetc POSIX compliant on BSD systems.
49630         * lib/fflush.c (clear_ungetc_buffer_preserving_position): New function.
49631         (clear_ungetc_buffer): Implement also for other systems.
49632         (rpl_fflush): On glibc systems, invoke
49633         clear_ungetc_buffer_preserving_position. Otherwise, invoke
49634         clear_ungetc_buffer after fetching the stream's position, not before.
49635
49636 2009-01-15  Bruno Haible  <bruno@clisp.org>
49637
49638         Make fflush-after-ungetc POSIX compliant on glibc systems.
49639         * m4/fflush.m4 (gl_FUNC_FFLUSH): Test also the behaviour of fflush
49640         after ungetc.
49641         * lib/fflush.c (clear_ungetc_buffer): Implement for glibc systems.
49642         (rpl_fflush): On glibc systems, simply call the system's fflush
49643         function after clearing the ungetc buffer.
49644         * lib/fseeko.c (rpl_fseeko): Don't try to lseek past the end of file.
49645         Instead, lseek only to the end of file, then use the system's fseeko
49646         for the rest. On glibc systems, reset the EOF indicator bit.
49647
49648 2009-01-15  Jim Meyering  <meyering@redhat.com>
49649
49650         openmp.m4: revert quote-adding change, for portability to older autoconf
49651         * m4/openmp.m4: Remove the quotes added on 2009-01-14.
49652         This reverts part of 42d1eda5dcce2d68deab7a642e7f29bcd7144a0d.
49653         Simon Josefsson noticed the problem when using autoconf-2.61.
49654
49655 2009-01-15  Bruno Haible  <bruno@clisp.org>
49656
49657         * tests/test-fflush2.sh: Invoke test-fflush2 twice.
49658         * tests/test-fflush2.c (ASSERT): Always fail.
49659         (main): Add two tests for fflush() after ungetc(), taking into account
49660         the Austin Group's clarification.
49661         Suggested by Eric Blake.
49662
49663 2009-01-15  Albert Chin-A-Young  <china@thewrittenword.com>
49664
49665         mktime.m4: remove K&R-style function prototypes
49666         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove K&R-style function prototypes
49667         for the Sun C++ compiler.
49668
49669 2009-01-14  Bruno Haible  <bruno@clisp.org>
49670
49671         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_WCHAR_H): New macro, defined
49672         while including <wchar.h>.
49673         * lib/wchar.in.h: In two particular situations on HP-UX, include only
49674         the system's <wchar.h> file.
49675         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
49676
49677 2009-01-14  Bruno Haible  <bruno@clisp.org>
49678
49679         * m4/csharp.m4: Don't mention gettext on the serial number line.
49680         * m4/csharpexec.m4: Likewise.
49681         * m4/eaccess.m4: Likewise.
49682         * m4/javaexec.m4: Likewise.
49683         * m4/sig_atomic_t.m4: Likewise.
49684         * m4/tmpdir.m4: Likewise.
49685         * m4/intldir.m4: Bump gettext version.
49686         * m4/lib-ld.m4: Likewise.
49687
49688 2009-01-14  Bruno Haible  <bruno@clisp.org>
49689
49690         * lib/progname.c (set_program_name): Add more comments.
49691         Reported by Sergey Poznyakoff <gray@gnu.org.ua>.
49692
49693 2009-01-14  Simon Josefsson  <simon@josefsson.org>
49694
49695         * lib/sys_stat.in.h: Include sys/types.h for nlink_t on systems
49696         were sys/stat.h does not define it.
49697
49698 2009-01-14  Jim Meyering  <meyering@redhat.com>
49699
49700         many *.m4 files: improve m4 quoting
49701         99% of this change was performed by running the following commands:
49702         git ls-files | grep '\.m4$' | xargs perl -pi \
49703           -e 's/(AC_\w+\()([^[()]+?)([,)])/$1\[$2]$3/g;' \
49704           -e 's/(AC_\w+\((?:\[[^,]+?\], ){1})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49705           -e 's/(AC_\w+\((?:\[[^,]+?\], ){2})([^,[()]+?)([,)])/$1\[$2]$3/g;' \
49706           -e 's/(AC_\w+\((?:\[[^,]+?\], ){3})([^,[()]+?)([,)])/$1\[$2]$3/g'
49707         perl -pi -e 's/\[\.\.\.\]/.../' m4/onceonly.m4
49708         The remainder were to add Copyright dates, increment serial numbers,
49709         undo some changes in comments, exclude m4/intl.m4, and add quotes
49710         around the "1" in ",1" where the unusual spacing prohibited the
49711         above regexps from doing the job.  For more details, see
49712         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16175>.
49713         * m4/acl.m4: Modified.
49714         * m4/afs.m4: Likewise.
49715         * m4/alloca.m4: Likewise.
49716         * m4/argp.m4: Likewise.
49717         * m4/argz.m4: Likewise.
49718         * m4/atexit.m4: Likewise.
49719         * m4/bison-i18n.m4: Likewise.
49720         * m4/bison.m4: Likewise.
49721         * m4/byteswap.m4: Likewise.
49722         * m4/c-stack.m4: Likewise.
49723         * m4/c-strtod.m4: Likewise.
49724         * m4/calloc.m4: Likewise.
49725         * m4/canonicalize-lgpl.m4: Likewise.
49726         * m4/chown.m4: Likewise.
49727         * m4/clock_time.m4: Likewise.
49728         * m4/codeset.m4: Likewise.
49729         * m4/copy-file.m4: Likewise.
49730         * m4/csharp.m4: Likewise.
49731         * m4/csharpcomp.m4: Likewise.
49732         * m4/csharpexec.m4: Likewise.
49733         * m4/d-ino.m4: Likewise.
49734         * m4/d-type.m4: Likewise.
49735         * m4/dirfd.m4: Likewise.
49736         * m4/double-slash-root.m4: Likewise.
49737         * m4/eaccess.m4: Likewise.
49738         * m4/eealloc.m4: Likewise.
49739         * m4/environ.m4: Likewise.
49740         * m4/errno_h.m4: Likewise.
49741         * m4/euidaccess.m4: Likewise.
49742         * m4/execute.m4: Likewise.
49743         * m4/fatal-signal.m4: Likewise.
49744         * m4/fchdir.m4: Likewise.
49745         * m4/fcntl_h.m4: Likewise.
49746         * m4/fileblocks.m4: Likewise.
49747         * m4/filenamecat.m4: Likewise.
49748         * m4/findprog.m4: Likewise.
49749         * m4/flexmember.m4: Likewise.
49750         * m4/fnmatch.m4: Likewise.
49751         * m4/fopen.m4: Likewise.
49752         * m4/fpending.m4: Likewise.
49753         * m4/fprintf-posix.m4: Likewise.
49754         * m4/free.m4: Likewise.
49755         * m4/frexp.m4: Likewise.
49756         * m4/frexpl.m4: Likewise.
49757         * m4/fsusage.m4: Likewise.
49758         * m4/ftruncate.m4: Likewise.
49759         * m4/gc-camellia.m4: Likewise.
49760         * m4/gc-random.m4: Likewise.
49761         * m4/gc.m4: Likewise.
49762         * m4/getaddrinfo.m4: Likewise.
49763         * m4/getcwd-abort-bug.m4: Likewise.
49764         * m4/getcwd-path-max.m4: Likewise.
49765         * m4/getdate.m4: Likewise.
49766         * m4/getdomainname.m4: Likewise.
49767         * m4/getgroups.m4: Likewise.
49768         * m4/gethostname.m4: Likewise.
49769         * m4/gethrxtime.m4: Likewise.
49770         * m4/getline.m4: Likewise.
49771         * m4/getloadavg.m4: Likewise.
49772         * m4/getndelim2.m4: Likewise.
49773         * m4/getpass.m4: Likewise.
49774         * m4/gettext.m4: Likewise.
49775         * m4/gettime.m4: Likewise.
49776         * m4/gettimeofday.m4: Likewise.
49777         * m4/gnulib-common.m4: Likewise.
49778         * m4/group-member.m4: Likewise.
49779         * m4/host-os.m4: Likewise.
49780         * m4/iconv.m4: Likewise.
49781         * m4/iconv_open.m4: Likewise.
49782         * m4/inet_ntop.m4: Likewise.
49783         * m4/inet_pton.m4: Likewise.
49784         * m4/inline.m4: Likewise.
49785         * m4/intldir.m4: Likewise.
49786         * m4/intlmacosx.m4: Likewise.
49787         * m4/intmax.m4: Likewise.
49788         * m4/intmax_t.m4: Likewise.
49789         * m4/inttypes.m4: Likewise.
49790         * m4/inttypes_h.m4: Likewise.
49791         * m4/inttypes-pri.m4: Likewise.
49792         * m4/isapipe.m4: Likewise.
49793         * m4/isnand.m4: Likewise.
49794         * m4/isnanf.m4: Likewise.
49795         * m4/isnanl.m4: Likewise.
49796         * m4/javacomp.m4: Likewise.
49797         * m4/javaexec.m4: Likewise.
49798         * m4/jm-winsz1.m4: Likewise.
49799         * m4/jm-winsz2.m4: Likewise.
49800         * m4/lchown.m4: Likewise.
49801         * m4/lcmessage.m4: Likewise.
49802         * m4/ldexpl.m4: Likewise.
49803         * m4/lib-ld.m4: Likewise.
49804         * m4/lib-link.m4: Likewise.
49805         * m4/libsigsegv.m4: Likewise.
49806         * m4/link-follow.m4: Likewise.
49807         * m4/localcharset.m4: Likewise.
49808         * m4/locale-fr.m4: Likewise.
49809         * m4/locale-ja.m4: Likewise.
49810         * m4/locale-tr.m4: Likewise.
49811         * m4/locale-zh.m4: Likewise.
49812         * m4/lock.m4: Likewise.
49813         * m4/longlong.m4: Likewise.
49814         * m4/ls-mntd-fs.m4: Likewise.
49815         * m4/lstat.m4: Likewise.
49816         * m4/malloc.m4: Likewise.
49817         * m4/mathl.m4: Likewise.
49818         * m4/mbrtowc.m4: Likewise.
49819         * m4/mbstate_t.m4: Likewise.
49820         * m4/mbswidth.m4: Likewise.
49821         * m4/memchr.m4: Likewise.
49822         * m4/memcmp.m4: Likewise.
49823         * m4/memcpy.m4: Likewise.
49824         * m4/memmem.m4: Likewise.
49825         * m4/memmove.m4: Likewise.
49826         * m4/mempcpy.m4: Likewise.
49827         * m4/memrchr.m4: Likewise.
49828         * m4/memset.m4: Likewise.
49829         * m4/minmax.m4: Likewise.
49830         * m4/mkdir-slash.m4: Likewise.
49831         * m4/mkdtemp.m4: Likewise.
49832         * m4/mktime.m4: Likewise.
49833         * m4/mmap-anon.m4: Likewise.
49834         * m4/mountlist.m4: Likewise.
49835         * m4/nanosleep.m4: Likewise.
49836         * m4/nls.m4: Likewise.
49837         * m4/nocrash.m4: Likewise.
49838         * m4/open.m4: Likewise.
49839         * m4/openat.m4: Likewise.
49840         * m4/openmp.m4: Likewise.
49841         * m4/pathmax.m4: Likewise.
49842         * m4/perl.m4: Likewise.
49843         * m4/physmem.m4: Likewise.
49844         * m4/pipe.m4: Likewise.
49845         * m4/po.m4: Likewise.
49846         * m4/poll.m4: Likewise.
49847         * m4/posixtm.m4: Likewise.
49848         * m4/posixver.m4: Likewise.
49849         * m4/printf-frexp.m4: Likewise.
49850         * m4/printf-frexpl.m4: Likewise.
49851         * m4/printf-posix.m4: Likewise.
49852         * m4/printf-posix-rpl.m4: Likewise.
49853         * m4/printf.m4: Likewise.
49854         * m4/progtest.m4: Likewise.
49855         * m4/putenv.m4: Likewise.
49856         * m4/readline.m4: Likewise.
49857         * m4/readlink.m4: Likewise.
49858         * m4/readutmp.m4: Likewise.
49859         * m4/realloc.m4: Likewise.
49860         * m4/regex.m4: Likewise.
49861         * m4/relocatable.m4: Likewise.
49862         * m4/relocatable-lib.m4: Likewise.
49863         * m4/rename-dest-slash.m4: Likewise.
49864         * m4/rename.m4: Likewise.
49865         * m4/rmdir-errno.m4: Likewise.
49866         * m4/rmdir.m4: Likewise.
49867         * m4/roundf.m4: Likewise.
49868         * m4/roundl.m4: Likewise.
49869         * m4/rpmatch.m4: Likewise.
49870         * m4/save-cwd.m4: Likewise.
49871         * m4/selinux-selinux-h.m4: Likewise.
49872         * m4/setenv.m4: Likewise.
49873         * m4/settime.m4: Likewise.
49874         * m4/sig2str.m4: Likewise.
49875         * m4/sig_atomic_t.m4: Likewise.
49876         * m4/signalblocking.m4: Likewise.
49877         * m4/signbit.m4: Likewise.
49878         * m4/sigpipe.m4: Likewise.
49879         * m4/sockets.m4: Likewise.
49880         * m4/sockpfaf.m4: Likewise.
49881         * m4/st_dm_mode.m4: Likewise.
49882         * m4/stat-time.m4: Likewise.
49883         * m4/stdbool.m4: Likewise.
49884         * m4/stdint.m4: Likewise.
49885         * m4/stdint_h.m4: Likewise.
49886         * m4/stpcpy.m4: Likewise.
49887         * m4/stpncpy.m4: Likewise.
49888         * m4/strcase.m4: Likewise.
49889         * m4/strchrnul.m4: Likewise.
49890         * m4/strcspn.m4: Likewise.
49891         * m4/strdup.m4: Likewise.
49892         * m4/strftime.m4: Likewise.
49893         * m4/strndup.m4: Likewise.
49894         * m4/strnlen.m4: Likewise.
49895         * m4/strpbrk.m4: Likewise.
49896         * m4/strptime.m4: Likewise.
49897         * m4/strsep.m4: Likewise.
49898         * m4/strtod.m4: Likewise.
49899         * m4/strtoimax.m4: Likewise.
49900         * m4/strtok_r.m4: Likewise.
49901         * m4/strtol.m4: Likewise.
49902         * m4/strtoll.m4: Likewise.
49903         * m4/strtoul.m4: Likewise.
49904         * m4/strtoull.m4: Likewise.
49905         * m4/strtoumax.m4: Likewise.
49906         * m4/strverscmp.m4: Likewise.
49907         * m4/threadlib.m4: Likewise.
49908         * m4/timegm.m4: Likewise.
49909         * m4/tm_gmtoff.m4: Likewise.
49910         * m4/tmpdir.m4: Likewise.
49911         * m4/tmpfile.m4: Likewise.
49912         * m4/tzset.m4: Likewise.
49913         * m4/uintmax_t.m4: Likewise.
49914         * m4/unlinkdir.m4: Likewise.
49915         * m4/unlocked-io.m4: Likewise.
49916         * m4/uptime.m4: Likewise.
49917         * m4/userspec.m4: Likewise.
49918         * m4/utimbuf.m4: Likewise.
49919         * m4/utime.m4: Likewise.
49920         * m4/utimes-null.m4: Likewise.
49921         * m4/utimes.m4: Likewise.
49922         * m4/vararrays.m4: Likewise.
49923         * m4/vasnprintf.m4: Likewise.
49924         * m4/vfprintf-posix.m4: Likewise.
49925         * m4/vprintf-posix.m4: Likewise.
49926         * m4/wait-process.m4: Likewise.
49927         * m4/wchar_t.m4: Likewise.
49928         * m4/wint_t.m4: Likewise.
49929         * m4/write-any-file.m4: Likewise.
49930         * m4/yield.m4: Likewise.
49931
49932 2009-01-13  Bruno Haible  <bruno@clisp.org>
49933
49934         Avoid test-copy-file.sh failures when ACL support insufficient.
49935         * modules/copy-file-tests (Makefile.am): Pass USE_ACL in
49936         TESTS_ENVIRONMENT.
49937         * tests/test-copy-file.sh: Skip the ACL comparisons if USE_ACL is 0.
49938         Reported by Jim Meyering.
49939
49940 2009-01-13  Bruno Haible  <bruno@clisp.org>
49941
49942         * modules/unistdio/u-printf-args (Files): Add m4/stdint_h.m4 and
49943         m4/inttypes_h.m4, needed by m4/intmax_t.m4.
49944         * modules/unistdio/u8-printf-parse (Files): Likewise.
49945         * modules/unistdio/u32-printf-parse (Files): Likewise.
49946         * modules/unistdio/ulc-printf-parse (Files): Likewise.
49947
49948 2009-01-13  Simon Josefsson  <simon@josefsson.org>
49949
49950         * modules/unistdio/u16-printf-parse (Files): Add m4/stdint_h.m4
49951         and m4/inttypes_h.m4 too.
49952
49953 2009-01-12  Eric Blake  <ebb9@byu.net>
49954
49955         tests: IRIX 6.2 cc can't compile -0.0 into .data
49956         * tests/test-ceill.c (minus_zero): Compute -0.0L at runtime,
49957         rather than at compile-time.
49958         * tests/test-floorl.c (minus_zero): Likewise.
49959         * tests/test-frexpl.c (minus_zero): Likewise.
49960         * tests/test-isnan.c (minus_zerol): Likewise.
49961         * tests/test-isnanl.h (minus_zero): Likewise.
49962         * tests/test-ldexpl.c (minus_zero): Likewise.
49963         * tests/test-roundl.c (minus_zero): Likewise.
49964         * tests/test-signbit.c (minus_zerol): Likewise.
49965         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
49966         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
49967         * tests/test-truncl.c (minus_zero): Likewise.
49968         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
49969         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
49970         Reported by Tom G. Christensen and Nelson H. F. Beebe.
49971
49972 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49973
49974         regex: fix glibc bug 9697
49975         * lib/regcomp.c (re_compile_fastmap_iter): Rewrite COMPLEX_BRACKET
49976         handling.
49977
49978 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49979
49980         regex: fix glibc bug 697
49981         * lib/regexec.c (prune_impossible_nodes): Handle sifted_states[0]
49982         being NULL also if there are no backreferences.
49983
49984 2009-01-09  Paolo Bonzini  <bonzini@gnu.org>
49985
49986         regex: merge glibc changes
49987         * lib/regcomp.c (re_compile_fastmap_iter): Use __mbrtowc.
49988         * lib/regex_internal.c (build_wcs_buffer, build_wcs_upper_buffer,
49989         re_string_skip_chars, re_string_reconstruct): Likewise.
49990         * lib/regex_internal.h [!_LIBC] (__mbrtowc): New #define.
49991
49992 2009-01-07  Jim Meyering  <meyering@redhat.com>
49993
49994         poll: filter through cppi
49995         * lib/poll.c: Indent cpp directives to reflect nesting.
49996
49997 2009-01-07  Daniel P. Berrange  <berrange@redhat.com>
49998
49999         poll: don't return uninitialized
50000         * lib/poll.c (poll) [WIN32_NATIVE]: Initialize "rc".
50001
50002 2009-01-06  Jeremy Olexa <darkside@gentoo.org>  (tiny change)
50003
50004         avoid compile failure on AIX 6.1
50005         * lib/getloadavg.c [HAVE_LIBPERFSTAT]: Include <sys/protosw.h>.
50006         Details in http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/15465
50007
50008 2009-01-04  Jim Meyering  <meyering@redhat.com>
50009
50010         remove duplicate inclusion of <stdio.h>
50011         * tests/test-fprintf-posix.c: Likewise.
50012         * tests/test-printf-posix.c: Likewise.
50013         * tests/test-snprintf-posix.c: Likewise.
50014         * tests/test-sprintf-posix.c: Likewise.
50015         * tests/test-vasprintf-posix.c: Likewise.
50016         * tests/test-vfprintf-posix.c: Likewise.
50017         * tests/test-vprintf-posix.c: Likewise.
50018         * tests/test-vsnprintf-posix.c: Likewise.
50019         * tests/test-vsprintf-posix.c: Likewise.
50020
50021 2009-01-03  Jim Meyering  <meyering@redhat.com>
50022
50023         gnulib-tool: fix sed-based filtering
50024         * gnulib-tool (func_filter_filelist): Remove extra backslash
50025         in sed_fff_filter definition.
50026
50027 2009-01-02  Jim Meyering  <meyering@redhat.com>
50028
50029         strftime: avoid compilation failure on Solaris 2.6
50030         * modules/strftime (Depends-on): Add mbrlen and mbsinit.
50031         * lib/strftime.c [DO_MULTIBYTE]: Include <wchar.h> unconditionally.
50032         Don't #define mbrlen or mbsinit, since now they're guaranteed to
50033         be available.  Reported by Tom G. Christensen.  Details in
50034         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/16180>.
50035
50036 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50037             Bruno Haible  <bruno@clisp.org>
50038
50039         Speed up gnulib-tool by doing more string processing through shell
50040         built-ins.
50041         * gnulib-tool (fast_func_append): New variable.
50042         (func_remove_prefix, func_remove_suffix): New functions.
50043         (fast_func_remove_prefix, fast_func_remove_suffix): New variables.
50044         (func_filter_filelist): New function.
50045         (func_get_dependencies): Use func_remove_suffix instead of sed.
50046         (func_get_automake_snippet): Use func_filter_filelist instead of a
50047         subshell and sed invocation.
50048
50049 2009-01-01  Bruno Haible  <bruno@clisp.org>
50050
50051         Fix a security bug.
50052         * gnulib-tool (func_import, import, update): Don't allow the characters
50053         '"', '$', '`', '\' in macro arguments that become part of commands that
50054         are evaluated.
50055
50056 2009-01-01  Bruno Haible  <bruno@clisp.org>
50057
50058         * gnulib-tool (func_reset_sigpipe): Add more comments.
50059
50060 2009-01-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50061
50062         * gnulib-tool (func_modules_add_dummy, func_emit_lib_Makefile_am,
50063         func_emit_tests_Makefile_am, func_import): Abort loops early if we
50064         already know the answer.
50065
50066 2009-01-01  Jim Meyering  <meyering@redhat.com>
50067
50068         * lib/version-etc.c (version_etc_va): Update copyright year.
50069
50070 2008-12-30  Bruno Haible  <bruno@clisp.org>
50071
50072         * m4/lib-prefix.m4 (AC_LIB_LINKFLAGS_BODY): Don't overwrite
50073         LIB${NAME}_PREFIX when considering the dependencies of lib${name}.
50074         Reported by Charles Wilson <cygwin@cwilson.fastmail.fm>.
50075
50076 2008-12-29  Eric Blake  <ebb9@byu.net>
50077
50078         multiarch: avoid autoconf AC_REQUIRE bug
50079         * m4/multiarch.m4 (gl_MULTIARCH): Split body...
50080         (gl_MULTIARCH_BODY): ...into new macro, to work around bug in Autoconf
50081         2.63 and older.
50082         Reported by Bruno Haible, and analyzed in
50083         http://lists.gnu.org/archive/html/bug-autoconf/2008-12/msg00039.html
50084
50085 2008-12-29  Bruno Haible  <bruno@clisp.org>
50086
50087         * gnulib-tool (func_import): When generating sed-ignore-removed, handle
50088         files in subdirectories correctly.
50089         Reported by Ralf Wildenhues.
50090
50091 2008-12-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
50092
50093         * gnulib-tool (func_update_ignorelist): Use 'join - FILE'
50094         rather than 'join FILE -', for Solaris join.
50095
50096 2008-12-29  Bruno Haible  <bruno@clisp.org>
50097
50098         * m4/codeset.m4 (AM_LANGINFO_CODESET): More systematic m4 argument
50099         quoting.
50100         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
50101         * m4/glibc2.m4 (gt_GLIBC2): Likewise.
50102         * m4/glibc21.m4 (gl_GLIBC21): Likewise.
50103         * m4/iconv.m4 (AM_ICONV_LINK, AM_ICONV): Likewise.
50104         * m4/intdiv0.m4 (gt_INTDIV0): Likewise.
50105         * m4/intlmacosx.m4 (gt_INTL_MACOSX): Likewise.
50106         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Likewise.
50107         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Likewise.
50108         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
50109         * m4/lcmessage.m4 (gt_LC_MESSAGES): Likewise.
50110         * m4/nls.m4 (AM_NLS): Likewise.
50111         * m4/po.m4 (AM_PO_SUBDIRS): Likewise.
50112         * m4/printf-posix.m4 (gt_PRINTF_POSIX): Likewise.
50113         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
50114         * m4/size_max.m4 (gl_SIZE_MAX): Likewise.
50115         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Likewise.
50116         * m4/threadlib.m4 (gl_THREADLIB_BODY): Likewise.
50117         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Likewise.
50118         * m4/visibility.m4 (gl_VISIBILITY): Likewise.
50119         * m4/wchar_t.m4 (gt_TYPE_WCHAR_T): Likewise.
50120         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
50121         * m4/xsize.m4 (gl_XSIZE): Likewise.
50122         Suggested by Jim Meyering.
50123
50124 2008-11-17  Bruce Korb  <bkorb@gnu.org>
50125
50126         * lib/parse-duration.h: non-iso form accepts years, months weeks, too
50127         * lib/parse-duration.c: use a switch instead of cascading if's.
50128
50129 2008-12-29  Eric Blake  <ebb9@byu.net>
50130
50131         wchar.h: supply WEOF on Irix 5.3
50132         * lib/wchar.in.h (wint_t): Also supply WEOF.
50133         * lib/wctype.in.h (wint_t): Likewise.
50134         * doc/posix-headers/wchar.texi (wchar.h): Document the bug.
50135         * doc/posix-headers/wctype.texi (wctype.h): Likewise.
50136         Reported by Tom G. Christensen.
50137
50138 2008-12-26  Bruno Haible  <bruno@clisp.org>
50139
50140         * m4/multiarch.m4 (gl_MULTIARCH): Recognize also the architecture names
50141         i486, i586, i686.
50142
50143 2008-12-26  Bruno Haible  <bruno@clisp.org>
50144
50145         * lib/stdlib.in.h (struct random_data): Fix indentation of comments.
50146
50147 2008-12-26  Bruno Haible  <bruno@clisp.org>
50148
50149         * lib/stdint.in.h: Move the include of <wchar.h> down until after all
50150         the types are defined. Also conditionalize it on __STDC_LIMIT_MACROS,
50151         not __STDC_CONSTANT_MACROS.
50152         Reported by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
50153
50154 2008-12-25  Bruno Haible  <bruno@clisp.org>
50155
50156         Add support for universal builds to vasnprintf.
50157         * m4/printf.m4 (gl_PRINTF_ENOMEM): Require gl_MULTIARCH. In Apple
50158         universal builds, guess no.
50159         * modules/vasnprintf-posix (Depends-on): Add multiarch.
50160         * modules/vasprintf-posix (Depends-on): Likewise.
50161         * modules/fprintf-posix (Depends-on): Likewise.
50162         * modules/vfprintf-posix (Depends-on): Likewise.
50163         * modules/snprintf-posix (Depends-on): Likewise.
50164         * modules/vsnprintf-posix (Depends-on): Likewise.
50165         * modules/sprintf-posix (Depends-on): Likewise.
50166         * modules/vsprintf-posix (Depends-on): Likewise.
50167         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
50168         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
50169         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
50170         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
50171         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
50172         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
50173         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
50174
50175         Add support for universal builds to <inttypes.h>.
50176         * lib/inttypes.in.h (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX,
50177         _SCNu64_PREFIX): In Apple
50178         universal builds, define directly, using _LP64.
50179         * m4/inttypes.m4 (gl_INTTYPES_H): In Apple universal builds, set
50180         INT64_MAX_EQ_LONG_MAX and UINT64_MAX_EQ_ULONG_MAX to -1.
50181         * modules/inttypes (Depends-on): Add multiarch.
50182         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50183
50184         Add support for universal builds to <stdint.h>.
50185         * lib/stdint.in.h (PDFDIFF_MIN, PTRDIFF_MAX, SIZE_MAX): In Apple
50186         universal builds, define directly, using _LP64.
50187         * m4/stdint.m4 (gl_STDINT_TYPE_PROPERTIES): Require gl_MULTIARCH. In
50188         Apple universal builds, don't test for the size and suffix of ptrdiff_t
50189         and size_t.
50190         * modules/stdint (Depends-on): Add multiarch.
50191         (Makefile.am): Substitute APPLE_UNIVERSAL_BUILD.
50192
50193         New module 'multiarch'.
50194         * modules/multiarch: New file.
50195         * m4/multiarch.m4: New file.
50196
50197 2008-12-25  Bruno Haible  <bruno@clisp.org>
50198
50199         * gnulib-tool (func_create_testdir): Avoid failure of mv command.
50200
50201 2008-12-25  Bruno Haible  <bruno@clisp.org>
50202
50203         * modules/btowc (License): Relicense under LGPLv2+.
50204         * modules/mbsinit (License): Likewise.
50205         * modules/mbrtowc (License): Likewise.
50206         * modules/wcrtomb (License): Likewise.
50207         * modules/streq (License): Likewise.
50208         Reported by David Lutterkort <lutter@redhat.com>.
50209
50210 2008-12-23  Bruno Haible  <bruno@clisp.org>
50211
50212         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Fix conditional and comment.
50213
50214 2008-12-23  Bruno Haible  <bruno@clisp.org>
50215
50216         Module getaddrinfo requires linking with $(GETADDRINFO_LIB).
50217         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Put link options into
50218         GETADDRINFO_LIB, not in LIBS.
50219         * modules/getaddrinfo (Link): Set to $(GETADDRINFO_LIB).
50220         * modules/canon-host (Link): Likewise.
50221         * NEWS: Mention the change.
50222         * modules/getaddrinfo-tests (test_getaddrinfo_LDADD): Add the
50223         GETADDRINFO_LIB.
50224
50225 2008-12-22  Bruno Haible  <bruno@clisp.org>
50226
50227         * doc/posix-functions/iswalnum_l.texi: Mention limitation of wchar_t.
50228         * doc/posix-functions/iswalpha_l.texi: Likewise.
50229         * doc/posix-functions/iswblank_l.texi: Likewise.
50230         * doc/posix-functions/iswcntrl_l.texi: Likewise.
50231         * doc/posix-functions/iswctype_l.texi: Likewise.
50232         * doc/posix-functions/iswdigit_l.texi: Likewise.
50233         * doc/posix-functions/iswgraph_l.texi: Likewise.
50234         * doc/posix-functions/iswlower_l.texi: Likewise.
50235         * doc/posix-functions/iswprint_l.texi: Likewise.
50236         * doc/posix-functions/iswpunct_l.texi: Likewise.
50237         * doc/posix-functions/iswspace_l.texi: Likewise.
50238         * doc/posix-functions/iswupper_l.texi: Likewise.
50239         * doc/posix-functions/iswxdigit_l.texi: Likewise.
50240         * doc/posix-functions/mbsnrtowcs.texi: Likewise.
50241         * doc/posix-functions/open_wmemstream.texi: Likewise.
50242         * doc/posix-functions/swscanf.texi: Likewise.
50243         * doc/posix-functions/towctrans_l.texi: Likewise.
50244         * doc/posix-functions/towlower.texi: Likewise.
50245         * doc/posix-functions/towlower_l.texi: Likewise.
50246         * doc/posix-functions/towupper.texi: Likewise.
50247         * doc/posix-functions/towupper_l.texi: Likewise.
50248         * doc/posix-functions/vfwprintf.texi: Likewise.
50249         * doc/posix-functions/vfwscanf.texi: Likewise.
50250         * doc/posix-functions/vswscanf.texi: Likewise.
50251         * doc/posix-functions/vwprintf.texi: Likewise.
50252         * doc/posix-functions/vwscanf.texi: Likewise.
50253         * doc/posix-functions/wcpcpy.texi: Likewise.
50254         * doc/posix-functions/wcpncpy.texi: Likewise.
50255         * doc/posix-functions/wcscasecmp.texi: Likewise.
50256         * doc/posix-functions/wcscasecmp_l.texi: Likewise.
50257         * doc/posix-functions/wcscoll_l.texi: Likewise.
50258         * doc/posix-functions/wcsdup.texi: Likewise.
50259         * doc/posix-functions/wcsncasecmp.texi: Likewise.
50260         * doc/posix-functions/wcsncasecmp_l.texi: Likewise.
50261         * doc/posix-functions/wcsnlen.texi: Likewise.
50262         * doc/posix-functions/wcsnrtombs.texi: Likewise.
50263         * doc/posix-functions/wcsxfrm_l.texi: Likewise.
50264         * doc/posix-functions/wctrans_l.texi: Likewise.
50265         * doc/posix-functions/wctype_l.texi: Likewise.
50266         * doc/glibc-functions/fgetwc_unlocked.texi: Likewise.
50267         * doc/glibc-functions/fgetws_unlocked.texi: Likewise.
50268         * doc/glibc-functions/fputwc_unlocked.texi: Likewise.
50269         * doc/glibc-functions/fputws_unlocked.texi: Likewise.
50270         * doc/glibc-functions/getwc_unlocked.texi: Likewise.
50271         * doc/glibc-functions/getwchar_unlocked.texi: Likewise.
50272         * doc/glibc-functions/putwc_unlocked.texi: Likewise.
50273         * doc/glibc-functions/putwchar_unlocked.texi: Likewise.
50274         * doc/glibc-functions/wcschrnul.texi: Likewise.
50275         * doc/glibc-functions/wcsftime_l.texi: Likewise.
50276         * doc/glibc-functions/wcstod_l.texi: Likewise.
50277         * doc/glibc-functions/wcstof_l.texi: Likewise.
50278         * doc/glibc-functions/wcstol_l.texi: Likewise.
50279         * doc/glibc-functions/wcstold_l.texi: Likewise.
50280         * doc/glibc-functions/wcstoll_l.texi: Likewise.
50281         * doc/glibc-functions/wcstoq.texi: Likewise.
50282         * doc/glibc-functions/wcstoul_l.texi: Likewise.
50283         * doc/glibc-functions/wcstoull_l.texi: Likewise.
50284         * doc/glibc-functions/wcstouq.texi: Likewise.
50285         * doc/glibc-functions/wmempcpy.texi: Likewise.
50286
50287 2008-12-22  Ingo Weinhold  <ingo_weinhold@gmx.de>  (tiny change)
50288             Eric Blake  <ebb9@byu.net>
50289             Paolo Bonzini  <bonzini@gnu.org>
50290             Bruno Haible  <bruno@clisp.org>
50291
50292         Make c-stack work on Haiku.
50293         * lib/c-stack.c (SA_ONSTACK): Define fallback.
50294         (c_stack_action): Use SA_ONSTACK flag.
50295
50296 2008-12-22  Bruno Haible  <bruno@clisp.org>
50297
50298         * m4/locale-fr.m4 (gt_LOCALE_FR_UTF8): Treat Haiku like BeOS.
50299
50300 2008-12-22  Bruno Haible  <bruno@clisp.org>
50301
50302         Work around mbrlen() bugs on AIX, HP-UX, OSF/1, Solaris.
50303         * m4/mbrlen.m4 (gl_FUNC_MBRLEN): Set REPLACE_MBRLEN if mbrtowc is
50304         being overridden.
50305         (gl_MBRLEN_INCOMPLETE_STATE, gl_MBRLEN_RETVAL, gl_MBRLEN_NUL_RETVAL):
50306         New macros.
50307         * lib/wchar.in.h (mbrlen): Override if REPLACE_MBRLEN is set.
50308         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBRLEN.
50309         * modules/wchar (Makefile.am): Substitute REPLACE_MBRLEN.
50310         * doc/posix-functions/mbrlen.texi: Mention the various platform bugs.
50311
50312 2008-12-22  Bruno Haible  <bruno@clisp.org>
50313
50314         * m4/mbrtowc.m4 (gl_MBRTOWC_INCOMPLETE_STATE): Remove unused variable
50315         from test code.
50316
50317 2008-12-22  Eric Blake  <ebb9@byu.net>
50318
50319         Avoid gcc warnings on cygwin.
50320         * lib/regex_internal.c (re_string_reconstruct) [!RE_ENABLE_I18N]:
50321         Avoid unused variable.
50322         * lib/regexec.c (check_arrival_add_next_nodes) [!RE_ENABLE_I18N]:
50323         Likewise.
50324
50325 2008-12-22  Bruno Haible  <bruno@clisp.org>
50326
50327         Remove HAVE_MBRTOWC conditionals.
50328         * lib/mbscasecmp.c: Include mbuiter.h unconditionally.
50329         (mbscasecmp): Assume mbrtowc function.
50330         * lib/mbscasestr.c: Include mbuiter.h unconditionally.
50331         (knuth_morris_pratt_multibyte, mbscasestr): Assume mbrtowc function.
50332         * lib/mbschr.c: Include mbuiter.h unconditionally.
50333         (mbschr): Assume mbrtowc function.
50334         * lib/mbscspn.c: Include mbuiter.h unconditionally.
50335         (mbscspn): Assume mbrtowc function.
50336         * lib/mbslen.c: Include mbuiter.h unconditionally.
50337         (mbslen): Assume mbrtowc function.
50338         * lib/mbsncasecmp.c: Include mbuiter.h unconditionally.
50339         (mbsncasecmp): Assume mbrtowc function.
50340         * lib/mbsnlen.c: Include mbiter.h unconditionally.
50341         (mbsnlen): Assume mbrtowc function.
50342         * lib/mbspbrk.c: Include mbuiter.h unconditionally.
50343         (mbspbrk): Assume mbrtowc function.
50344         * lib/mbspcasecmp.c: Include mbuiter.h unconditionally.
50345         (mbspcasecmp): Assume mbrtowc function.
50346         * lib/mbsrchr.c: Include mbuiter.h unconditionally.
50347         (mbsrchr): Assume mbrtowc function.
50348         * lib/mbssep.c: Include mbuiter.h unconditionally.
50349         (mbssep): Assume mbrtowc function.
50350         * lib/mbsspn.c: Include mbuiter.h unconditionally.
50351         (mbsspn): Assume mbrtowc function.
50352         * lib/mbsstr.c: Include mbuiter.h unconditionally.
50353         (knuth_morris_pratt_multibyte, mbsstr): Assume mbrtowc function.
50354         * lib/mbstok_r.c: Include mbuiter.h unconditionally.
50355         (mbstok_r): Assume mbrtowc function.
50356         * lib/propername.c: Include mbuiter.h unconditionally.
50357         (mbsstr_trimmed_wordbounded): Assume mbrtowc function.
50358         * lib/trim.c: Include mbchar.h, mbiter.h uncondtionally.
50359         (trim2): Assume mbrtowc function.
50360         * lib/mbswidth.c (mbsinit): Remove fallback definition.
50361         (mbsnwidth): Assume mbrtowc function.
50362         * modules/mbswidth (Depends-on): Add mbrtowc, mbsinit.
50363         * lib/quotearg.c (MB_CUR_MAX, mbstate_t, mbrtowc, iswprint): Remove
50364         fallback definitions.
50365         * modules/quotearg (Depends-on): Add mbrtowc, mbsinit.
50366
50367 2008-12-22  Bruno Haible  <bruno@clisp.org>
50368
50369         * doc/posix-functions/mbtowc.texi: Mention a glibc bug.
50370
50371 2008-12-22  Paolo Bonzini  <bonzini@gnu.org>
50372
50373         * modules/regex: Request emulations for the mb*/wc* functions we need.
50374         * m4/regex.m4: Don't look for those functions here.
50375         * lib/regex_internal.h: Do not check HAVE_WCRTOMB and HAVE_MBRTOWC.
50376
50377 2008-12-22  Bruno Haible  <bruno@clisp.org>
50378
50379         * modules/fnmatch (Depends-on): Remove duplicated dependency.
50380
50381 2008-12-21  Bruno Haible  <bruno@clisp.org>
50382
50383         Make mbiter.h, mbuiter.h, mbfile.h usable unconditionally.
50384         * modules/mbiter (Depends-on): Add mbrtowc, mbsinit.
50385         (Include): Remove conditionalization.
50386         * modules/mbuiter (Depends-on): Add mbrtowc, mbsinit.
50387         (Include): Remove conditionalization.
50388         * modules/mbfile (Depends-on): Add mbrtowc, mbsinit.
50389         (Include): Remove conditionalization.
50390         * m4/mbiter.m4 (gl_MBITER): Deprecate the use of AC_FUNC_MBRTOWC.
50391         * m4/mbfile.m4 (gl_MBFILE): Likewise.
50392         * NEWS: Mention the change.
50393         Reported by Alan Hourihane <alanh@fairlite.co.uk>
50394         via Sergey Poznyakoff <gray@gnu.org.ua>.
50395
50396 2008-12-21  Bruno Haible  <bruno@clisp.org>
50397
50398         * MODULES.html.sh (Extended multibyte and wide character utilities
50399         <wchar.h>): Add btowc, wctob, mbsinit, mbrlen, mbrtowc, mbsrtowcs,
50400         wcrtomb, wcsrtombs.
50401         (Support for systems lacking POSIX:2008): Add accept, bind, close,
50402         connect, fclose, getpeername, getsockname, getsockopt, hostent, listen,
50403         mbsnrtowcs, posix_spawn*, recv, recvfrom, sched, select, send, sendto,
50404         setsockopt, shutdown, socket, spawn, sys_wait, wcsnrtombs, write.
50405
50406 2008-12-21  Bruno Haible  <bruno@clisp.org>
50407
50408         * MODULES.html.sh: Change section titles to refer to POSIX:2008.
50409
50410 2008-12-21  Bruno Haible  <bruno@clisp.org>
50411
50412         * modules/wcsnrtombs-tests: New file.
50413         * tests/test-wcsnrtombs1.sh: New file.
50414         * tests/test-wcsnrtombs2.sh: New file.
50415         * tests/test-wcsnrtombs3.sh: New file.
50416         * tests/test-wcsnrtombs4.sh: New file.
50417         * tests/test-wcsnrtombs.c: New file.
50418
50419         New module 'wcsnrtombs'.
50420         * lib/wchar.in.h (wcsnrtombs): New declaration.
50421         * lib/wcsnrtombs.c: New file.
50422         * lib/wcsrtombs-state.c: New file.
50423         * lib/wcsrtombs.c: Refer to _gl_wcsrtombs_state.
50424         (internal_state): Remove variable.
50425         * m4/wcsnrtombs.m4: New file.
50426         * m4/wcsrtombs.m4 (gl_FUNC_WCSRTOMBS): Add wcsrtombs-state.c to the
50427         compilation units.
50428         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSNRTOMBS,
50429         HAVE_WCSNRTOMBS.
50430         * modules/wchar (Makefile.am): Substitute GNULIB_WCSNRTOMBS,
50431         HAVE_WCSNRTOMBS.
50432         * modules/wcsnrtombs: New file.
50433         * modules/wcsrtombs (Files): Add lib/wcsrtombs-state.c.
50434         * doc/posix-functions/wcsnrtombs.texi: Mention the new module.
50435
50436 2008-12-21  Bruno Haible  <bruno@clisp.org>
50437
50438         * modules/wcsrtombs-tests: New file.
50439         * tests/test-wcsrtombs1.sh: New file.
50440         * tests/test-wcsrtombs2.sh: New file.
50441         * tests/test-wcsrtombs3.sh: New file.
50442         * tests/test-wcsrtombs4.sh: New file.
50443         * tests/test-wcsrtombs.c: New file.
50444
50445         New module 'wcsrtombs'.
50446         * lib/wchar.in.h (wcsrtombs): New declaration.
50447         * lib/wcsrtombs.c: New file.
50448         * m4/wcsrtombs.m4: New file.
50449         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCSRTOMBS,
50450         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50451         * modules/wchar (Makefile.am): Substitute GNULIB_WCSRTOMBS,
50452         HAVE_WCSRTOMBS, REPLACE_WCSRTOMBS.
50453         * modules/wcsrtombs: New file.
50454         * doc/posix-functions/wcsrtombs.texi: Mention the new module and the
50455         bugs.
50456
50457 2008-12-21  Bruno Haible  <bruno@clisp.org>
50458
50459         Work around a wcrtomb() bug on Solaris 10 and OSF/1 5.1.
50460         * lib/wchar.in.h (wcrtomb): Override if REPLACE_WCRTOMB is set.
50461         * m4/wcrtomb.m4 (gl_FUNC_WCRTOMB): Test the return value of wcrtomb
50462         with NULL destination argument in various locales. Set REPLACE_WCRTOMB
50463         if not correct.
50464         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCRTOMB.
50465         * modules/wchar (Makefile.am): Substitute REPLACE_WCRTOMB.
50466         * modules/wcrtomb (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50467         m4/locale-zh.m4, m4/codeset.m4.
50468         * doc/posix-functions/wcrtomb.texi: Document the bug.
50469
50470 2008-12-21  Bruno Haible  <bruno@clisp.org>
50471
50472         Work around a btowc() bug on IRIX 6.5.
50473         * lib/wchar.in.h (btowc): Override if REPLACE_BTOWC is set.
50474         * m4/btowc.m4 (gl_FUNC_BTOWC): Test whether btowc(EOF) is correct. Set
50475         REPLACE_WTOBC if not.
50476         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_BTOWC.
50477         * modules/wchar (Makefile.am): Substitute REPLACE_BTOWC.
50478         * doc/posix-functions/btowc.texi: Mention the IRIX bug.
50479
50480 2008-12-21  Bruno Haible  <bruno@clisp.org>
50481
50482         * modules/wcrtomb-tests: New file.
50483         * tests/test-wcrtomb.sh: New file.
50484         * tests/test-wcrtomb.c: New file.
50485
50486         New module 'wcrtomb'.
50487         * lib/wchar.in.h (wcrtomb): New declaration.
50488         * lib/wcrtomb.c: New file.
50489         * m4/wcrtomb.m4: New file.
50490         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCRTOMB,
50491         HAVE_WCRTOMB.
50492         * modules/wchar (Makefile.am): Substitute GNULIB_WCRTOMB,
50493         HAVE_WCRTOMB.
50494         * modules/wcrtomb: New file.
50495         * doc/posix-functions/wcrtomb.texi: Mention the new module.
50496
50497 2008-12-21  Bruno Haible  <bruno@clisp.org>
50498
50499         * modules/mbrtowc (Files): Add m4/codeset.m4, needed by m4/locale-fr.m4.
50500         * modules/mbsrtowcs (Files): Likewise.
50501         * modules/wctob (Files): Likewise.
50502         * modules/c-strcase-tests (Files): Likewise.
50503         * modules/unistdio/u8-vasnprintf-tests (Files): Likewise.
50504         * modules/unistdio/u16-vasnprintf-tests (Files): Likewise.
50505         * modules/unistdio/u32-vasnprintf-tests (Files): Likewise.
50506         * modules/unistdio/ulc-vasnprintf-tests (Files): Likewise.
50507         * modules/vasnprintf-posix-tests (Files): Likewise.
50508
50509 2008-12-21  William Pursell  <bill.pursell@gmail.com>
50510
50511         gitlog-to-changelog: pass all command-line arguments to git-log
50512         * build-aux/gitlog-to-changelog: When producing a ChangeLog,
50513         it is sometimes convenient to filter the commits in various ways.
50514         gitlog-to-changelog only allows --since to specify a start date,
50515         but git-log itself supports many other filtering mechanisms.
50516         At the moment, I want to filter by branch name.  Rather than
50517         adding a --branch option to gitlog-to-changelog, it seems more
50518         flexible to simply pass all options directly to git-log and let
50519         git do the work.  Notice that this effectively makes --since a
50520         redundant option for gitlog-to-changelog, but removing it would
50521         require current usage to change since calls would then require
50522         an additional '--'.
50523
50524 2008-12-21  Bruno Haible  <bruno@clisp.org>
50525
50526         * modules/mbsnrtowcs-tests: New file.
50527         * tests/test-mbsnrtowcs1.sh: New file.
50528         * tests/test-mbsnrtowcs2.sh: New file.
50529         * tests/test-mbsnrtowcs3.sh: New file.
50530         * tests/test-mbsnrtowcs4.sh: New file.
50531         * tests/test-mbsnrtowcs.c: New file.
50532
50533         New module 'mbsnrtowcs'.
50534         * lib/wchar.in.h (mbsnrtowcs): New declaration.
50535         * lib/mbsnrtowcs.c: New file.
50536         * lib/mbsrtowcs-state.c: New file.
50537         * lib/mbsrtowcs.c: Refer to _gl_mbsrtowcs_state.
50538         (internal_state): Remove variable.
50539         * m4/mbsnrtowcs.m4: New file.
50540         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Add mbsrtowcs-state.c to the
50541         compilation units.
50542         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSNRTOWCS,
50543         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50544         * modules/wchar (Makefile.am): Substitute GNULIB_MBSNRTOWCS,
50545         HAVE_MBSNRTOWCS, REPLACE_MBSNRTOWCS.
50546         * modules/mbsnrtowcs: New file.
50547         * modules/mbsrtowcs (Files): Add lib/mbsrtowcs-state.c.
50548         * doc/posix-functions/mbsnrtowcs.texi: Mention the new module and a
50549         portability problem.
50550
50551 2008-12-21  Bruno Haible  <bruno@clisp.org>
50552
50553         Work around mbsrtowcs bug.
50554         * m4/mbsrtowcs.m4 (gl_MBSRTOWCS_WORKS): New macro.
50555         (gl_FUNC_MBSRTOWCS): Invoke it.
50556         * modules/mbsrtowcs (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50557         m4/locale-zh.m4.
50558         * doc/posix-functions/mbsrtowcs.texi: Document the bug.
50559
50560 2008-12-21  Bruno Haible  <bruno@clisp.org>
50561
50562         * tests/test-mbsrtowcs.c (main): Execute the loop also for unlimited=1.
50563
50564 2008-12-21  Bruno Haible  <bruno@clisp.org>
50565
50566         Update doc for AIX.
50567         * doc/pastposix-functions/wcswcs.texi: Mention that AIX has only a
50568         16-bit wchar_t type.
50569         * doc/posix-functions/btowc.texi: Likewise.
50570         * doc/posix-functions/fgetwc.texi: Likewise.
50571         * doc/posix-functions/fgetws.texi: Likewise.
50572         * doc/posix-functions/fputwc.texi: Likewise.
50573         * doc/posix-functions/fputws.texi: Likewise.
50574         * doc/posix-functions/fwide.texi: Likewise.
50575         * doc/posix-functions/fwprintf.texi: Likewise.
50576         * doc/posix-functions/fwscanf.texi: Likewise.
50577         * doc/posix-functions/getwchar.texi: Likewise.
50578         * doc/posix-functions/getwc.texi: Likewise.
50579         * doc/posix-functions/iswalnum.texi: Likewise.
50580         * doc/posix-functions/iswalpha.texi: Likewise.
50581         * doc/posix-functions/iswblank.texi: Likewise.
50582         * doc/posix-functions/iswcntrl.texi: Likewise.
50583         * doc/posix-functions/iswctype.texi: Likewise.
50584         * doc/posix-functions/iswdigit.texi: Likewise.
50585         * doc/posix-functions/iswgraph.texi: Likewise.
50586         * doc/posix-functions/iswlower.texi: Likewise.
50587         * doc/posix-functions/iswprint.texi: Likewise.
50588         * doc/posix-functions/iswpunct.texi: Likewise.
50589         * doc/posix-functions/iswspace.texi: Likewise.
50590         * doc/posix-functions/iswupper.texi: Likewise.
50591         * doc/posix-functions/iswxdigit.texi: Likewise.
50592         * doc/posix-functions/mbrtowc.texi: Likewise.
50593         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50594         * doc/posix-functions/mbstowcs.texi: Likewise.
50595         * doc/posix-functions/mbtowc.texi: Likewise.
50596         * doc/posix-functions/putwchar.texi: Likewise.
50597         * doc/posix-functions/putwc.texi: Likewise.
50598         * doc/posix-functions/swprintf.texi: Likewise.
50599         * doc/posix-functions/tolower.texi: Likewise.
50600         * doc/posix-functions/toupper.texi: Likewise.
50601         * doc/posix-functions/towctrans.texi: Likewise.
50602         * doc/posix-functions/ungetwc.texi: Likewise.
50603         * doc/posix-functions/vswprintf.texi: Likewise.
50604         * doc/posix-functions/wcrtomb.texi: Likewise.
50605         * doc/posix-functions/wcscat.texi: Likewise.
50606         * doc/posix-functions/wcschr.texi: Likewise.
50607         * doc/posix-functions/wcscmp.texi: Likewise.
50608         * doc/posix-functions/wcscoll.texi: Likewise.
50609         * doc/posix-functions/wcscpy.texi: Likewise.
50610         * doc/posix-functions/wcscspn.texi: Likewise.
50611         * doc/posix-functions/wcsftime.texi: Likewise.
50612         * doc/posix-functions/wcslen.texi: Likewise.
50613         * doc/posix-functions/wcsncat.texi: Likewise.
50614         * doc/posix-functions/wcsncmp.texi: Likewise.
50615         * doc/posix-functions/wcsncpy.texi: Likewise.
50616         * doc/posix-functions/wcspbrk.texi: Likewise.
50617         * doc/posix-functions/wcsrchr.texi: Likewise.
50618         * doc/posix-functions/wcsrtombs.texi: Likewise.
50619         * doc/posix-functions/wcsspn.texi: Likewise.
50620         * doc/posix-functions/wcsstr.texi: Likewise.
50621         * doc/posix-functions/wcstod.texi: Likewise.
50622         * doc/posix-functions/wcstof.texi: Likewise.
50623         * doc/posix-functions/wcstoimax.texi: Likewise.
50624         * doc/posix-functions/wcstok.texi: Likewise.
50625         * doc/posix-functions/wcstold.texi: Likewise.
50626         * doc/posix-functions/wcstoll.texi: Likewise.
50627         * doc/posix-functions/wcstol.texi: Likewise.
50628         * doc/posix-functions/wcstombs.texi: Likewise.
50629         * doc/posix-functions/wcstoull.texi: Likewise.
50630         * doc/posix-functions/wcstoul.texi: Likewise.
50631         * doc/posix-functions/wcstoumax.texi: Likewise.
50632         * doc/posix-functions/wcswidth.texi: Likewise.
50633         * doc/posix-functions/wcsxfrm.texi: Likewise.
50634         * doc/posix-functions/wctob.texi: Likewise.
50635         * doc/posix-functions/wctomb.texi: Likewise.
50636         * doc/posix-functions/wctrans.texi: Likewise.
50637         * doc/posix-functions/wctype.texi: Likewise.
50638         * doc/posix-functions/wcwidth.texi: Likewise.
50639         * doc/posix-functions/wmemchr.texi: Likewise.
50640         * doc/posix-functions/wmemcmp.texi: Likewise.
50641         * doc/posix-functions/wmemcpy.texi: Likewise.
50642         * doc/posix-functions/wmemmove.texi: Likewise.
50643         * doc/posix-functions/wmemset.texi: Likewise.
50644         * doc/posix-functions/wprintf.texi: Likewise.
50645         * doc/posix-functions/wscanf.texi: Likewise.
50646
50647 2008-12-21  Bruno Haible  <bruno@clisp.org>
50648
50649         Update doc for HP-UX 11.11.
50650         * doc/posix-functions/btowc.texi: Clarify that the function is missing
50651         in HP-UX version 11.00, not in all versions of HP-UX 11.
50652         * doc/posix-functions/fwide.texi: Likewise.
50653         * doc/posix-functions/fwprintf.texi: Likewise.
50654         * doc/posix-functions/fwscanf.texi: Likewise.
50655         * doc/posix-functions/inet_ntop.texi: Likewise.
50656         * doc/posix-functions/inet_pton.texi: Likewise.
50657         * doc/posix-functions/mbrlen.texi: Likewise.
50658         * doc/posix-functions/mbrtowc.texi: Likewise.
50659         * doc/posix-functions/mbsinit.texi: Likewise.
50660         * doc/posix-functions/mbsrtowcs.texi: Likewise.
50661         * doc/posix-functions/swprintf.texi: Likewise.
50662         * doc/posix-functions/swscanf.texi: Likewise.
50663         * doc/posix-functions/towctrans.texi: Likewise.
50664         * doc/posix-functions/vfwprintf.texi: Likewise.
50665         * doc/posix-functions/vswprintf.texi: Likewise.
50666         * doc/posix-functions/vwprintf.texi: Likewise.
50667         * doc/posix-functions/wcrtomb.texi: Likewise.
50668         * doc/posix-functions/wcsrtombs.texi: Likewise.
50669         * doc/posix-functions/wcsstr.texi: Likewise.
50670         * doc/posix-functions/wctob.texi: Likewise.
50671         * doc/posix-functions/wctrans.texi: Likewise.
50672         * doc/posix-functions/wmemchr.texi: Likewise.
50673         * doc/posix-functions/wmemcmp.texi: Likewise.
50674         * doc/posix-functions/wmemcpy.texi: Likewise.
50675         * doc/posix-functions/wmemmove.texi: Likewise.
50676         * doc/posix-functions/wmemset.texi: Likewise.
50677         * doc/posix-functions/wprintf.texi: Likewise.
50678         * doc/posix-functions/wscanf.texi: Likewise.
50679
50680 2008-12-21  Bruno Haible  <bruno@clisp.org>
50681
50682         Work around a portability problem.
50683         * tests/test-mbsrtowcs.c (main): Use a temporary conversion state.
50684         * doc/posix-functions/mbsrtowcs.texi: Document the portability problem.
50685
50686 2008-12-20  Bruno Haible  <bruno@clisp.org>
50687
50688         * lib/wchar.in.h (mbsrtowcs): Redefine if REPLACE_MBSRTOWCS is set.
50689         * m4/mbsrtowcs.m4 (gl_FUNC_MBSRTOWCS): Invoke gl_MBSTATE_T_BROKEN. Set
50690         REPLACE_MBSRTOWCS if mbsrtowcs needs to be overridden.
50691         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSRTOWCS.
50692         * modules/wchar (Makefile.am): Substitute REPLACE_MBSRTOWCS.
50693
50694         Work around mbrtowc bugs on AIX, HP-UX, OSF/1, Solaris.
50695         * lib/wchar.in.h (mbstate_t): Redefine also if REPLACE_MBSTATE_T is
50696         set.
50697         (GNULIB_defined_mbstate_t): New macro.
50698         (mbsinit): Redefine if REPLACE_MBSINIT is set.
50699         (mbrtowc): Redefine if REPLACE_MBRTOWC is set.
50700         * lib/mbrtowc.c (rpl_mbrtowc): Add an alternative implementation that
50701         reuses the system's mbrtowc function but works around the bugs.
50702         * m4/mbrtowc.m4 (gl_MBSTATE_T_BROKEN, gl_MBRTOWC_INCOMPLETE_STATE,
50703         gl_MBRTOWC_NULL_ARG, gl_MBRTOWC_RETVAL, gl_MBRTOWC_NUL_RETVAL): New
50704         macros.
50705         (gl_FUNC_MBRTOWC): Invoke them. Set REPLACE_MBRTOWC if mbrtowc needs to
50706         be overridden. Optionally define MBRTOWC_NULL_ARG_BUG,
50707         MBRTOWC_RETVAL_BUG, MBRTOWC_NUL_RETVAL_BUG.
50708         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_MBSTATE_T_BROKEN. Set
50709         REPLACE_MBSINIT if mbsinit needs to be overridden.
50710         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_MBSTATE_T,
50711         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50712         * modules/wchar (Makefile.am): Substitute REPLACE_MBSTATE_T,
50713         REPLACE_MBSINIT, REPLACE_MBRTOWC.
50714         * modules/mbrtowc (Files): Add m4/locale-fr.m4, m4/locale-ja.m4,
50715         m4/locale-zh.m4.
50716         (Depends): Add mbsinit.
50717         * modules/mbsinit (Depends): Add mbrtowc.
50718         * doc/posix-functions/mbrtowc.texi: Mention the various bugs.
50719
50720 2008-12-20  Bruno Haible  <bruno@clisp.org>
50721
50722         * tests/test-mbrtowc.c (main): Change sample string in EUC-JP encoding
50723         so that there are no conversion errors on AIX.
50724         * tests/test-mbsrtowcs.c (main): LIkewise.
50725
50726 2008-12-20  Bruno Haible  <bruno@clisp.org>
50727
50728         Work around wctob bug on Solaris <= 9.
50729         * lib/wchar.in.h (wctob): Redefine if REPLACE_WCTOB is set.
50730         * m4/wctob.m4 (gl_FUNC_WCTOB): Test whether wctob works.
50731         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize REPLACE_WCTOB.
50732         * modules/wchar (Makefile.am): Substitute REPLACE_WCTOB.
50733         * modules/wctob (Files): Add m4/locale-fr.m4.
50734         * doc/posix-functions/wctob.texi: Mention the Solaris bug.
50735
50736 2008-12-20  Bruno Haible  <bruno@clisp.org>
50737
50738         * doc/posix-functions/select.texi: Mention Solaris 2.6 bug with
50739         /dev/null.
50740         * tests/test-select-in.sh: Likewise.
50741         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
50742
50743 2008-12-20  Bruno Haible  <bruno@clisp.org>
50744
50745         Don't pretend that Cygwin has a ja_JP.EUC-JP locale.
50746         * m4/locale-ja.m4 (gt_LOCALE_JA): Add test for MB_CUR_MAX. Needed on
50747         Cygwin 1.5.x.
50748
50749 2008-12-20  Bruno Haible  <bruno@clisp.org>
50750
50751         Ensure mbstate_t is defined on HP-UX 11.11.
50752         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Require
50753         AC_CANONICAL_HOST. On HP-UX, define _XOPEN_SOURCE to 500.
50754         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Require
50755         AC_USE_SYSTEM_EXTENSIONS.
50756         * modules/fnmatch (Depends-on): Add extensions.
50757         * modules/mbrlen (Depends-on): Likewise.
50758         * modules/mbrtowc (Depends-on): Likewise.
50759         * modules/mbsinit (Depends-on): Likewise.
50760         * modules/mbsrtowcs (Depends-on): Likewise.
50761         * modules/mbswidth (Depends-on): Likewise.
50762         * modules/quotearg (Depends-on): Likewise.
50763         * modules/strftime (Depends-on): Likewise.
50764
50765 2008-12-20  Bruno Haible  <bruno@clisp.org>
50766
50767         Ensure wctob is declared on IRIX 6.5.
50768         * lib/wchar.in.h (wctob): Declare also when HAVE_DECL_WCTOB is 0.
50769         * m4/wctob.m4 (gl_FUNC_WCTOB): Set HAVE_DECL_WCTOB instead of
50770         HAVE_WCTOB. Also test whether <wchar.h> declares wctob.
50771         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize HAVE_DECL_WCTOB instead
50772         of HAVE_WCTOB.
50773         * modules/wchar (Makefile.am): Substitute HAVE_DECL_WCTOB instead of
50774         HAVE_WCTOB.
50775         * doc/posix-functions/wctob.texi: Mention missing declaration on IRIX.
50776
50777 2008-12-19  Bruno Haible  <bruno@clisp.org>
50778
50779         * modules/mbsrtowcs-tests: New file.
50780         * tests/test-mbsrtowcs1.sh: New file.
50781         * tests/test-mbsrtowcs2.sh: New file.
50782         * tests/test-mbsrtowcs3.sh: New file.
50783         * tests/test-mbsrtowcs4.sh: New file.
50784         * tests/test-mbsrtowcs.c: New file.
50785
50786         New module 'mbsrtowcs'.
50787         * lib/wchar.in.h (mbsrtowcs): New declaration.
50788         * lib/mbsrtowcs.c: New file.
50789         * m4/mbsrtowcs.m4: New file.
50790         * modules/mbsrtowcs: New file.
50791         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSRTOWCS and
50792         HAVE_MBSRTOWCS.
50793         * modules/wchar (Makefile.am): Substitute GNULIB_MBSRTOWCS and
50794         HAVE_MBSRTOWCS.
50795         * doc/posix-functions/mbsrtowcs.texi: Document the new module.
50796
50797 2008-12-19  Bruno Haible  <bruno@clisp.org>
50798
50799         New module 'mbrlen'.
50800         * lib/wchar.in.h (mbrlen): New declaration.
50801         * lib/mbrlen.c: New file.
50802         * m4/mbrlen.m4: New file.
50803         * modules/mbrlen: New file.
50804         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRLEN and
50805         HAVE_MBRLEN.
50806         * modules/wchar (Makefile.am): Substitute GNULIB_MBRLEN and
50807         HAVE_MBRLEN.
50808         * doc/posix-functions/mbrlen.texi: Document the new module.
50809
50810 2008-12-19  Bruno Haible  <bruno@clisp.org>
50811
50812         * lib/mbrtowc.c: Include verify.h. Verify an assumption.
50813         * modules/mbrtowc (Depends-on): Add verify.
50814         Suggested by Paul Eggert.
50815
50816 2008-12-18  Bruno Haible  <bruno@clisp.org>
50817
50818         * modules/mbsinit-tests: New file.
50819         * tests/test-mbsinit.sh: New file.
50820         * tests/test-mbsinit.c: New file.
50821
50822 2008-12-18  Bruno Haible  <bruno@clisp.org>
50823
50824         * modules/mbrtowc-tests: New file.
50825         * tests/test-mbrtowc1.sh: New file.
50826         * tests/test-mbrtowc2.sh: New file.
50827         * tests/test-mbrtowc3.sh: New file.
50828         * tests/test-mbrtowc4.sh: New file.
50829         * tests/test-mbrtowc.c: New file.
50830
50831         New module 'mbrtowc'.
50832         * lib/wchar.in.h (mbstate_t): Override when the system does not have
50833         mbsinit and mbrtowc.
50834         (mbrtowc): New declaration.
50835         * lib/mbrtowc.c: New file.
50836         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC, gl_PREREQ_MBRTOWC): New macros.
50837         * modules/mbrtowc: New file.
50838         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBRTOWC and
50839         HAVE_MBRTOWC.
50840         * modules/wchar (Makefile.am): Substitute GNULIB_MBRTOWC and
50841         HAVE_MBRTOWC.
50842         * doc/posix-functions/mbrtowc.texi: Document the new module.
50843
50844 2008-12-18  Bruno Haible  <bruno@clisp.org>
50845
50846         New module 'wctob'.
50847         * lib/wchar.in.h (wctob): New declaration.
50848         * lib/wctob.c: New file.
50849         * m4/wctob.m4: New file.
50850         * modules/wctob: New file.
50851         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_WCTOB and
50852         HAVE_WCTOB.
50853         * modules/wchar (Makefile.am): Substitute GNULIB_WCTOB and HAVE_WCTOB.
50854         * doc/posix-functions/wctob.texi: Document the new module.
50855
50856 2008-12-18  Bruno Haible  <bruno@clisp.org>
50857
50858         * m4/mbsinit.m4 (gl_FUNC_MBSINIT): Invoke gl_REPLACE_WCHAR_H.
50859         * m4/btowc.m4 (gl_FUNC_BTOWC): Likewise.
50860
50861 2008-12-18  Simon Josefsson  <simon@josefsson.org>
50862
50863         * lib/flock.c: Use proper #if symbol in check.  Reported by "Tom
50864         G. Christensen" <tgc@jupiterrise.com>.
50865
50866         * lib/flock.c: Need to include errno.h.  Reported by "Tom
50867         G. Christensen" <tgc@jupiterrise.com>.
50868
50869         * lib/flock.c: Need to include string.h.  Reported by "Tom
50870         G. Christensen" <tgc@jupiterrise.com> and Eric Blake
50871         <ebb9@byu.net>.
50872
50873 2008-12-18  Bruno Haible  <bruno@clisp.org>
50874
50875         * m4/locale-ja.m4: New file, from GNU gettext.
50876
50877 2008-12-17  Bruno Haible  <bruno@clisp.org>
50878
50879         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Don't override in autoconf >= 2.60.
50880         Suggested by Eric Blake.
50881
50882 2008-12-17  Bruno Haible  <bruno@clisp.org>
50883
50884         * m4/errno_h.m4 (AC_COMPUTE_INT): Provide fallback definition.
50885
50886 2008-12-17  Bruno Haible  <bruno@clisp.org>
50887
50888         * lib/mbsinit.c: Include verify.h. Verify an assumption.
50889         * modules/mbsinit (Depends-on): Add verify.
50890         Suggested by Paul Eggert.
50891
50892 2008-12-17  Bruno Haible  <bruno@clisp.org>
50893
50894         * m4/mbrtowc.m4 (AC_FUNC_MBRTOWC): Renamed from gl_FUNC_MBRTOWC.
50895         * m4/mbfile.m4 (gl_MBFILE): Use AC_FUNC_MBRTOWC instead of
50896         gl_FUNC_MBRTOWC.
50897         * m4/mbiter.m4 (gl_MBITER): LIkewise.
50898         * m4/mbscasecmp.m4 (gl_PREREQ_MBSCASECMP): Likewise.
50899         * m4/mbscasestr.m4 (gl_PREREQ_MBSCASESTR): Likewise.
50900         * m4/mbschr.m4 (gl_PREREQ_MBSCHR): Likewise.
50901         * m4/mbscspn.m4 (gl_PREREQ_MBSCSPN): Likewise.
50902         * m4/mbslen.m4 (gl_PREREQ_MBSLEN): Likewise.
50903         * m4/mbsncasecmp.m4 (gl_PREREQ_MBSNCASECMP): Likewise.
50904         * m4/mbsnlen.m4 (gl_PREREQ_MBSNLEN): Likewise.
50905         * m4/mbspbrk.m4 (gl_PREREQ_MBSPBRK): Likewise.
50906         * m4/mbspcasecmp.m4 (gl_PREREQ_MBSPCASECMP): Likewise.
50907         * m4/mbsrchr.m4 (gl_PREREQ_MBSRCHR): Likewise.
50908         * m4/mbssep.m4 (gl_PREREQ_MBSSEP): Likewise.
50909         * m4/mbsspn.m4 (gl_PREREQ_MBSSPN): Likewise.
50910         * m4/mbsstr.m4 (gl_PREREQ_MBSSTR): Likewise.
50911         * m4/mbstok_r.m4 (gl_PREREQ_MBSTOK_R): Likewise.
50912         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
50913         * m4/quotearg.m4 (gl_QUOTEARG): Likewise.
50914         * modules/trim (configure.ac): Likewise.
50915
50916 2008-12-17  Bruno Haible  <bruno@clisp.org>
50917
50918         * modules/btowc-tests: New file.
50919         * tests/test-btowc1.sh: New file.
50920         * tests/test-btowc2.sh: New file.
50921         * tests/test-btowc.c: New file.
50922
50923         New module 'btowc'.
50924         * lib/wchar.in.h (btowc): New declaration.
50925         * lib/btowc.c: New file.
50926         * m4/btowc.m4: New file.
50927         * modules/btowc: New file.
50928         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_BTOWC and
50929         HAVE_BTOWC.
50930         * modules/wchar (Makefile.am): Substitute GNULIB_BTOWC and HAVE_BTOWC.
50931         * doc/posix-functions/btowc.texi: Document the new module.
50932
50933 2008-12-17  Bruno Haible  <bruno@clisp.org>
50934
50935         New module 'mbsinit'.
50936         * lib/wchar.in.h (mbsinit): New declaration.
50937         * lib/mbsinit.c: New file.
50938         * m4/mbsinit.m4: New file.
50939         * modules/mbsinit: New file.
50940         * m4/wchar.m4 (gl_WCHAR_H_DEFAULTS): Initialize GNULIB_MBSINIT and
50941         HAVE_MBSINIT.
50942         * modules/wchar (Makefile.am): Substitute GNULIB_MBSINIT and
50943         HAVE_MBSINIT.
50944         * doc/posix-functions/mbsinit.texi: Document the new module.
50945
50946 2008-12-16  Bruno Haible  <bruno@clisp.org>
50947
50948         * lib/unistd.in.h: Add comment.
50949         * tests/test-environ.c: Don't include <stdlib.h>.
50950
50951 2008-12-16  Bruno Haible  <bruno@clisp.org>
50952
50953         * lib/parse-duration.h (parse_duration): Document return value
50954         convention.
50955         * lib/parse-duration.c: Include specification header first. Add
50956         comments.
50957         (_): Remove macro.
50958         (parse_year_month_day, parse_hour_minute_second): Move side effects
50959         outside of strchr call.
50960         (parse_non_iso8601): Move side effects outside of isspace call.
50961         (parse_duration): Don't test errno is res != BAD_TIME. Remove fprintf
50962         call.
50963
50964 2008-12-16  Bruno Haible  <bruno@clisp.org>
50965
50966         * tests/test-parse-duration.sh: Produce no output when the test
50967         succeeds.
50968
50969 2008-12-16  Bruno Haible  <bruno@clisp.org>
50970
50971         * tests/test-parse-duration.sh: Fix quoting of $tmp and $tmpf
50972         expressions.
50973
50974 2008-12-15  Bruno Haible  <bruno@clisp.org>
50975
50976         * doc/glibc-functions/fgetxattr.texi: Tweak wording.
50977         * doc/glibc-functions/flistxattr.texi: Likewise.
50978         * doc/glibc-functions/fopencookie.texi: Likewise.
50979         * doc/glibc-functions/fremovexattr.texi: Likewise.
50980         * doc/glibc-functions/fsetxattr.texi: Likewise.
50981         * doc/glibc-functions/getxattr.texi: Likewise.
50982         * doc/glibc-functions/lgetxattr.texi: Likewise.
50983         * doc/glibc-functions/listxattr.texi: Likewise.
50984         * doc/glibc-functions/llistxattr.texi: Likewise.
50985         * doc/glibc-functions/lremovexattr.texi: Likewise.
50986         * doc/glibc-functions/lsetxattr.texi: Likewise.
50987         * doc/glibc-functions/removexattr.texi: Likewise.
50988         * doc/glibc-functions/setxattr.texi: Likewise.
50989         * doc/posix-functions/open_memstream.texi: Likewise.
50990
50991 2008-12-15  Eric Blake  <ebb9@byu.net>
50992
50993         Update doc for cygwin 1.7.
50994         * doc/posix-functions/faccessat.texi: Cygwin 1.7 added several new
50995         functions.
50996         * doc/posix-functions/fchmodat.texi: Likewise.
50997         * doc/posix-functions/fchownat.texi: Likewise.
50998         * doc/posix-functions/fdopendir.texi: Likewise.
50999         * doc/posix-functions/fmemopen.texi: Likewise.
51000         * doc/posix-functions/freeaddrinfo.texi: Likewise.
51001         * doc/posix-functions/fstatat.texi: Likewise.
51002         * doc/posix-functions/futimens.texi: Likewise.
51003         * doc/posix-functions/gai_strerror.texi: Likewise.
51004         * doc/posix-functions/getaddrinfo.texi: Likewise.
51005         * doc/posix-functions/getnameinfo.texi: Likewise.
51006         * doc/posix-functions/if_freenameindex.texi: Likewise.
51007         * doc/posix-functions/if_indextoname.texi: Likewise.
51008         * doc/posix-functions/if_nameindex.texi: Likewise.
51009         * doc/posix-functions/if_nametoindex.texi: Likewise.
51010         * doc/posix-functions/insque.texi: Likewise.
51011         * doc/posix-functions/linkat.texi: Likewise.
51012         * doc/posix-functions/llrint.texi: Likewise.
51013         * doc/posix-functions/llrintf.texi: Likewise.
51014         * doc/posix-functions/llrintl.texi: Likewise.
51015         * doc/posix-functions/lockf.texi: Likewise.
51016         * doc/posix-functions/lrintl.texi: Likewise.
51017         * doc/posix-functions/mkdirat.texi: Likewise.
51018         * doc/posix-functions/mkfifoat.texi: Likewise.
51019         * doc/posix-functions/mknodat.texi: Likewise.
51020         * doc/posix-functions/mq_close.texi: Likewise.
51021         * doc/posix-functions/mq_getattr.texi: Likewise.
51022         * doc/posix-functions/mq_notify.texi: Likewise.
51023         * doc/posix-functions/mq_open.texi: Likewise.
51024         * doc/posix-functions/mq_receive.texi: Likewise.
51025         * doc/posix-functions/mq_send.texi: Likewise.
51026         * doc/posix-functions/mq_setattr.texi: Likewise.
51027         * doc/posix-functions/mq_timedreceive.texi: Likewise.
51028         * doc/posix-functions/mq_timedsend.texi: Likewise.
51029         * doc/posix-functions/mq_unlink.texi: Likewise.
51030         * doc/posix-functions/open_memstream.texi: Likewise.
51031         * doc/posix-functions/openat.texi: Likewise.
51032         * doc/posix-functions/posix_fadvise.texi: Likewise.
51033         * doc/posix-functions/posix_fallocate.texi: Likewise.
51034         * doc/posix-functions/posix_madvise.texi: Likewise.
51035         * doc/posix-functions/posix_memalign.texi: Likewise.
51036         * doc/posix-functions/posix_openpt.texi: Likewise.
51037         * doc/posix-functions/readlinkat.texi: Likewise.
51038         * doc/posix-functions/remque.texi: Likewise.
51039         * doc/posix-functions/renameat.texi: Likewise.
51040         * doc/posix-functions/rintl.texi: Likewise.
51041         * doc/posix-functions/sem_unlink.texi: Likewise.
51042         * doc/posix-functions/shm_open.texi: Likewise.
51043         * doc/posix-functions/shm_unlink.texi: Likewise.
51044         * doc/posix-functions/signgam.texi: Likewise.
51045         * doc/posix-functions/sigset.texi: Likewise.
51046         * doc/posix-functions/stpcpy.texi: Likewise.
51047         * doc/posix-functions/stpncpy.texi: Likewise.
51048         * doc/posix-functions/strerror.texi: Likewise.
51049         * doc/posix-functions/strtod.texi: Likewise.
51050         * doc/posix-functions/symlinkat.texi: Likewise.
51051         * doc/posix-functions/unlinkat.texi: Likewise.
51052         * doc/posix-functions/utimensat.texi: Likewise.
51053         * doc/glibc-functions/bindresvport.texi: Likewise.
51054         * doc/glibc-functions/dn_expand.texi: Likewise.
51055         * doc/glibc-functions/exp10.texi: Likewise.
51056         * doc/glibc-functions/exp10f.texi: Likewise.
51057         * doc/glibc-functions/fgetxattr.texi: Likewise.
51058         * doc/glibc-functions/flistxattr.texi: Likewise.
51059         * doc/glibc-functions/fopencookie.texi: Likewise.
51060         * doc/glibc-functions/freeifaddrs.texi: Likewise.
51061         * doc/glibc-functions/fremovexattr.texi: Likewise.
51062         * doc/glibc-functions/fsetxattr.texi: Likewise.
51063         * doc/glibc-functions/getifaddrs.texi: Likewise.
51064         * doc/glibc-functions/getxattr.texi: Likewise.
51065         * doc/glibc-functions/lgetxattr.texi: Likewise.
51066         * doc/glibc-functions/listxattr.texi: Likewise.
51067         * doc/glibc-functions/llistxattr.texi: Likewise.
51068         * doc/glibc-functions/lremovexattr.texi: Likewise.
51069         * doc/glibc-functions/lsetxattr.texi: Likewise.
51070         * doc/glibc-functions/pow10.texi: Likewise.
51071         * doc/glibc-functions/pow10f.texi: Likewise.
51072         * doc/glibc-functions/rcmd_af.texi: Likewise.
51073         * doc/glibc-functions/removexattr.texi: Likewise.
51074         * doc/glibc-functions/res_init.texi: Likewise.
51075         * doc/glibc-functions/res_mkquery.texi: Likewise.
51076         * doc/glibc-functions/res_query.texi: Likewise.
51077         * doc/glibc-functions/res_querydomain.texi: Likewise.
51078         * doc/glibc-functions/res_send.texi: Likewise.
51079         * doc/glibc-functions/rresvport_af.texi: Likewise.
51080         * doc/glibc-functions/setxattr.texi: Likewise.
51081         * doc/glibc-functions/strcasestr.texi: Likewise.
51082
51083 2008-12-15  Bruno Haible  <bruno@clisp.org>
51084
51085         Fix compilation error on OSF/1 4.0.
51086         * lib/sys_select.in.h: When invoked from OSF/1 <sys/types.h> or
51087         <sys/time.h>, simply delegate to the system header.
51088         Reported by Daniel Richard G. <oss@teragram.com>.
51089
51090 2008-12-15  Bruno Haible  <bruno@clisp.org>
51091
51092         * doc/posix-functions/openat.texi: Mention the 'openat' module.
51093         * doc/posix-functions/fchmodat.texi: Likewise.
51094         * doc/posix-functions/fchownat.texi: Likewise.
51095         * doc/posix-functions/fdopendir.texi: Likewise.
51096         * doc/posix-functions/fstatat.texi: Likewise.
51097         * doc/posix-functions/mkdirat.texi: Likewise.
51098         * doc/posix-functions/unlinkat.texi: Likewise.
51099
51100 2008-12-14  Bruno Haible  <bruno@clisp.org>
51101
51102         Update doc for POSIX:2008.
51103         * doc/posix-functions/faccessat.texi: New file.
51104         * doc/posix-functions/fchmodat.texi: New file.
51105         * doc/posix-functions/fchownat.texi: New file.
51106         * doc/posix-functions/fdopendir.texi: New file.
51107         * doc/posix-functions/fstatat.texi: New file.
51108         * doc/posix-functions/futimens.texi: New file.
51109         * doc/posix-functions/linkat.texi: New file.
51110         * doc/posix-functions/mkdirat.texi: New file.
51111         * doc/posix-functions/mkfifoat.texi: New file.
51112         * doc/posix-functions/mknodat.texi: New file.
51113         * doc/posix-functions/open_wmemstream.texi: New file.
51114         * doc/posix-functions/openat.texi: New file.
51115         * doc/posix-functions/psiginfo.texi: New file.
51116         * doc/posix-functions/pthread_mutex_consistent.texi: New file.
51117         * doc/posix-functions/pthread_mutexattr_getrobust.texi: New file.
51118         * doc/posix-functions/pthread_mutexattr_setrobust.texi: New file.
51119         * doc/posix-functions/readlinkat.texi: New file.
51120         * doc/posix-functions/renameat.texi: New file.
51121         * doc/posix-functions/strerror_l.texi: New file.
51122         * doc/posix-functions/symlinkat.texi: New file.
51123         * doc/posix-functions/unlinkat.texi: New file.
51124         * doc/posix-functions/utimensat.texi: New file.
51125         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51126
51127 2008-12-14  Bruno Haible  <bruno@clisp.org>
51128
51129         Update doc for POSIX:2008.
51130         * doc/posix-functions/alphasort.texi: Renamed from
51131         doc/glibc-functions/alphasort.texi.
51132         * doc/posix-functions/dirfd.texi: Renamed from
51133         doc/glibc-functions/dirfd.texi.
51134         * doc/posix-functions/dprintf.texi: Renamed from
51135         doc/glibc-functions/dprintf.texi.
51136         * doc/posix-functions/duplocale.texi: Renamed from
51137         doc/glibc-functions/duplocale.texi.
51138         * doc/posix-functions/fexecve.texi: Renamed from
51139         doc/glibc-functions/fexecve.texi.
51140         * doc/posix-functions/fmemopen.texi: Renamed from
51141         doc/glibc-functions/fmemopen.texi.
51142         * doc/posix-functions/freelocale.texi: Renamed from
51143         doc/glibc-functions/freelocale.texi.
51144         * doc/posix-functions/getdate_err.texi: Renamed from
51145         doc/glibc-functions/getdate_err.texi.
51146         * doc/posix-functions/isalnum_l.texi: Renamed from
51147         doc/glibc-functions/isalnum_l.texi.
51148         * doc/posix-functions/isalpha_l.texi: Renamed from
51149         doc/glibc-functions/isalpha_l.texi.
51150         * doc/posix-functions/isblank_l.texi: Renamed from
51151         doc/glibc-functions/isblank_l.texi.
51152         * doc/posix-functions/iscntrl_l.texi: Renamed from
51153         doc/glibc-functions/iscntrl_l.texi.
51154         * doc/posix-functions/isdigit_l.texi: Renamed from
51155         doc/glibc-functions/isdigit_l.texi.
51156         * doc/posix-functions/isgraph_l.texi: Renamed from
51157         doc/glibc-functions/isgraph_l.texi.
51158         * doc/posix-functions/islower_l.texi: Renamed from
51159         doc/glibc-functions/islower_l.texi.
51160         * doc/posix-functions/isprint_l.texi: Renamed from
51161         doc/glibc-functions/isprint_l.texi.
51162         * doc/posix-functions/ispunct_l.texi: Renamed from
51163         doc/glibc-functions/ispunct_l.texi.
51164         * doc/posix-functions/isspace_l.texi: Renamed from
51165         doc/glibc-functions/isspace_l.texi.
51166         * doc/posix-functions/isupper_l.texi: Renamed from
51167         doc/glibc-functions/isupper_l.texi.
51168         * doc/posix-functions/iswalnum_l.texi: Renamed from
51169         doc/glibc-functions/iswalnum_l.texi.
51170         * doc/posix-functions/iswalpha_l.texi: Renamed from
51171         doc/glibc-functions/iswalpha_l.texi.
51172         * doc/posix-functions/iswblank_l.texi: Renamed from
51173         doc/glibc-functions/iswblank_l.texi.
51174         * doc/posix-functions/iswcntrl_l.texi: Renamed from
51175         doc/glibc-functions/iswcntrl_l.texi.
51176         * doc/posix-functions/iswctype_l.texi: Renamed from
51177         doc/glibc-functions/iswctype_l.texi.
51178         * doc/posix-functions/iswdigit_l.texi: Renamed from
51179         doc/glibc-functions/iswdigit_l.texi.
51180         * doc/posix-functions/iswgraph_l.texi: Renamed from
51181         doc/glibc-functions/iswgraph_l.texi.
51182         * doc/posix-functions/iswlower_l.texi: Renamed from
51183         doc/glibc-functions/iswlower_l.texi.
51184         * doc/posix-functions/iswprint_l.texi: Renamed from
51185         doc/glibc-functions/iswprint_l.texi.
51186         * doc/posix-functions/iswpunct_l.texi: Renamed from
51187         doc/glibc-functions/iswpunct_l.texi.
51188         * doc/posix-functions/iswspace_l.texi: Renamed from
51189         doc/glibc-functions/iswspace_l.texi.
51190         * doc/posix-functions/iswupper_l.texi: Renamed from
51191         doc/glibc-functions/iswupper_l.texi.
51192         * doc/posix-functions/iswxdigit_l.texi: Renamed from
51193         doc/glibc-functions/iswxdigit_l.texi.
51194         * doc/posix-functions/isxdigit_l.texi: Renamed from
51195         doc/glibc-functions/isxdigit_l.texi.
51196         * doc/posix-functions/mbsnrtowcs.texi: Renamed from
51197         doc/glibc-functions/mbsnrtowcs.texi.
51198         * doc/posix-functions/mkdtemp.texi: Renamed from
51199         doc/glibc-functions/mkdtemp.texi.
51200         * doc/posix-functions/newlocale.texi: Renamed from
51201         doc/glibc-functions/newlocale.texi.
51202         * doc/posix-functions/nl_langinfo_l.texi: Renamed from
51203         doc/glibc-functions/nl_langinfo_l.texi.
51204         * doc/posix-functions/open_memstream.texi: Renamed from
51205         doc/glibc-functions/open_memstream.texi.
51206         * doc/posix-functions/opterr.texi: Renamed from
51207         doc/glibc-functions/opterr.texi.
51208         * doc/posix-functions/optind.texi: Renamed from
51209         doc/glibc-functions/optind.texi.
51210         * doc/posix-functions/optopt.texi: Renamed from
51211         doc/glibc-functions/optopt.texi.
51212         * doc/posix-functions/psignal.texi: Renamed from
51213         doc/glibc-functions/psignal.texi.
51214         * doc/posix-functions/scandir.texi: Renamed from
51215         doc/glibc-functions/scandir.texi.
51216         * doc/posix-functions/sched_get_priority_min.texi: Renamed from
51217         doc/glibc-functions/sched_get_priority_min.texi.
51218         * doc/posix-functions/signgam.texi: Renamed from
51219         doc/glibc-functions/signgam.texi.
51220         * doc/posix-functions/stpcpy.texi: Renamed from
51221         doc/glibc-functions/stpcpy.texi.
51222         * doc/posix-functions/stpncpy.texi: Renamed from
51223         doc/glibc-functions/stpncpy.texi.
51224         * doc/posix-functions/strcasecmp_l.texi: Renamed from
51225         doc/glibc-functions/strcasecmp_l.texi.
51226         * doc/posix-functions/strcoll_l.texi: Renamed from
51227         doc/glibc-functions/strcoll_l.texi.
51228         * doc/posix-functions/strfmon_l.texi: Renamed from
51229         doc/glibc-functions/strfmon_l.texi.
51230         * doc/posix-functions/strftime_l.texi: Renamed from
51231         doc/glibc-functions/strftime_l.texi.
51232         * doc/posix-functions/strncasecmp_l.texi: Renamed from
51233         doc/glibc-functions/strncasecmp_l.texi.
51234         * doc/posix-functions/strndup.texi: Renamed from
51235         doc/glibc-functions/strndup.texi.
51236         * doc/posix-functions/strnlen.texi: Renamed from
51237         doc/glibc-functions/strnlen.texi.
51238         * doc/posix-functions/strsignal.texi: Renamed from
51239         doc/glibc-functions/strsignal.texi.
51240         * doc/posix-functions/strxfrm_l.texi: Renamed from
51241         doc/glibc-functions/strxfrm_l.texi.
51242         * doc/posix-functions/timer_gettime.texi: Renamed from
51243         doc/glibc-functions/timer_gettime.texi.
51244         * doc/posix-functions/tolower_l.texi: Renamed from
51245         doc/glibc-functions/tolower_l.texi.
51246         * doc/posix-functions/toupper_l.texi: Renamed from
51247         doc/glibc-functions/toupper_l.texi.
51248         * doc/posix-functions/towctrans_l.texi: Renamed from
51249         doc/glibc-functions/towctrans_l.texi.
51250         * doc/posix-functions/towlower_l.texi: Renamed from
51251         doc/glibc-functions/towlower_l.texi.
51252         * doc/posix-functions/towupper_l.texi: Renamed from
51253         doc/glibc-functions/towupper_l.texi.
51254         * doc/posix-functions/uselocale.texi: Renamed from
51255         doc/glibc-functions/uselocale.texi.
51256         * doc/posix-functions/vdprintf.texi: Renamed from
51257         doc/glibc-functions/vdprintf.texi.
51258         * doc/posix-functions/wcpcpy.texi:
51259         Renamed from doc/glibc-functions/wcpcpy.texi.
51260         * doc/posix-functions/wcpncpy.texi: Renamed from
51261         doc/glibc-functions/wcpncpy.texi.
51262         * doc/posix-functions/wcscasecmp.texi: Renamed from
51263         doc/glibc-functions/wcscasecmp.texi.
51264         * doc/posix-functions/wcscasecmp_l.texi: Renamed from
51265         doc/glibc-functions/wcscasecmp_l.texi.
51266         * doc/posix-functions/wcscoll_l.texi: Renamed from
51267         doc/glibc-functions/wcscoll_l.texi.
51268         * doc/posix-functions/wcsdup.texi: Renamed from
51269         doc/glibc-functions/wcsdup.texi.
51270         * doc/posix-functions/wcsncasecmp.texi: Renamed from
51271         doc/glibc-functions/wcsncasecmp.texi.
51272         * doc/posix-functions/wcsncasecmp_l.texi: Renamed from
51273         doc/glibc-functions/wcsncasecmp_l.texi.
51274         * doc/posix-functions/wcsnlen.texi: Renamed from
51275         doc/glibc-functions/wcsnlen.texi.
51276         * doc/posix-functions/wcsnrtombs.texi: Renamed from
51277         doc/glibc-functions/wcsnrtombs.texi.
51278         * doc/posix-functions/wcsxfrm_l.texi: Renamed from
51279         doc/glibc-functions/wcsxfrm_l.texi.
51280         * doc/posix-functions/wctrans_l.texi: Renamed from
51281         doc/glibc-functions/wctrans_l.texi.
51282         * doc/posix-functions/wctype_l.texi: Renamed from
51283         doc/glibc-functions/wctype_l.texi.
51284         * doc/gnulib.texi (Function Substitutes): Add these subsections.
51285         (Glibc ctype.h, Glibc dirent.h, Glibc getopt.h, Glibc math.h,
51286         Glibc sched.h, Glibc signal.h, Glibc stdio.h, Glibc stdlib.h,
51287         Glibc string.h, Glibc time.h, Glibc unistd.h, Glibc wchar.h): Remove
51288         these subsections.
51289         (Glibc langinfo.h, Glibc locale.h, Glibc monetary.h, Glibc wctype.h):
51290         Remove sections.
51291
51292 2008-12-14  Bruno Haible  <bruno@clisp.org>
51293
51294         Update doc for POSIX:2008.
51295         * doc/posix-functions/*.texi: Update URL of POSIX specification.
51296
51297 2008-12-14  Bruno Haible  <bruno@clisp.org>
51298
51299         Update doc for POSIX:2008.
51300         * doc/pastposix-functions/bcmp.texi: Renamed from
51301         doc/posix-functions/bcmp.texi.
51302         * doc/pastposix-functions/bcopy.texi: Renamed from
51303         doc/posix-functions/bcopy.texi.
51304         * doc/pastposix-functions/bsd_signal.texi: Renamed from
51305         doc/posix-functions/bsd_signal.texi.
51306         * doc/pastposix-functions/bzero.texi: Renamed from
51307         doc/posix-functions/bzero.texi.
51308         * doc/pastposix-functions/ecvt.texi: Renamed from
51309         doc/posix-functions/ecvt.texi.
51310         * doc/pastposix-functions/fcvt.texi: Renamed from
51311         doc/posix-functions/fcvt.texi.
51312         * doc/pastposix-functions/ftime.texi: Renamed from
51313         doc/posix-functions/ftime.texi.
51314         * doc/pastposix-functions/gcvt.texi: Renamed from
51315         doc/posix-functions/gcvt.texi.
51316         * doc/pastposix-functions/getcontext.texi: Renamed from
51317         doc/posix-functions/getcontext.texi.
51318         * doc/pastposix-functions/gethostbyaddr.texi: Renamed from
51319         doc/posix-functions/gethostbyaddr.texi.
51320         * doc/pastposix-functions/gethostbyname.texi: Renamed from
51321         doc/posix-functions/gethostbyname.texi.
51322         * doc/pastposix-functions/getwd.texi: Renamed from
51323         doc/posix-functions/getwd.texi.
51324         * doc/pastposix-functions/h_errno.texi: Renamed from
51325         doc/posix-functions/h_errno.texi.
51326         * doc/pastposix-functions/index.texi: Renamed from
51327         doc/posix-functions/index.texi.
51328         * doc/pastposix-functions/makecontext.texi: Renamed from
51329         doc/posix-functions/makecontext.texi.
51330         * doc/pastposix-functions/mktemp.texi: Renamed from
51331         doc/posix-functions/mktemp.texi.
51332         * doc/pastposix-functions/pthread_attr_getstackaddr.texi: Renamed from
51333         doc/posix-functions/pthread_attr_getstackaddr.texi.
51334         * doc/pastposix-functions/pthread_attr_setstackaddr.texi: Renamed from
51335         doc/posix-functions/pthread_attr_setstackaddr.texi.
51336         * doc/pastposix-functions/rindex.texi: Renamed from
51337         doc/posix-functions/rindex.texi.
51338         * doc/pastposix-functions/scalb.texi: Renamed from
51339         doc/posix-functions/scalb.texi.
51340         * doc/pastposix-functions/setcontext.texi: Renamed from
51341         doc/posix-functions/setcontext.texi.
51342         * doc/pastposix-functions/swapcontext.texi: Renamed from
51343         doc/posix-functions/swapcontext.texi.
51344         * doc/pastposix-functions/ualarm.texi: Renamed from
51345         doc/posix-functions/ualarm.texi.
51346         * doc/pastposix-functions/usleep.texi: Renamed from
51347         doc/posix-functions/usleep.texi.
51348         * doc/pastposix-functions/vfork.texi: Renamed from
51349         doc/posix-functions/vfork.texi.
51350         * doc/pastposix-functions/wcswcs.texi: Renamed from
51351         doc/posix-functions/wcswcs.texi.
51352         * doc/gnulib.texi (Legacy Function Substitutes): New chapter.
51353         (Function Substitutes): Update.
51354
51355 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51356
51357         * modules/relocatable-prog-wrapper (Depends-on): Add errno, needed by
51358         m4/strerror.m4.
51359
51360 2008-12-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51361             Bruno Haible  <bruno@clisp.org>
51362
51363         * modules/unilbrk/tables (Depends-on): Add unilbrk/base.
51364
51365 2008-12-13  Bruno Haible  <bruno@clisp.org>
51366
51367         * modules/strtoull (Depends-on): Remove unistd.
51368
51369 2008-12-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51370
51371         * modules/strtoull (Depends-on): Add stdlib.
51372
51373 2008-12-11  Simon Josefsson  <simon@josefsson.org>
51374
51375         * m4/manywarnings.m4 (gl_MANYWARN_ALL_GCC): Add more warnings.
51376
51377 2008-12-10  Jim Meyering  <meyering@redhat.com>
51378
51379         gl_ASSERT: don't say assertions are disabled when they're not
51380         * m4/assert.m4 (gl_ASSERT): Do not make configure report
51381         "checking whether to enable assertions... no", when they are in
51382         fact enabled.  This is solely a bug in the output of configure.
51383         In spite of saying "no", NDEBUG was not defined in that case.
51384         Also, as noted by Eric Blake, leave assertions enabled upon
51385         --enable-assert=INVALID.
51386
51387 2008-12-10  Bruno Haible  <bruno@clisp.org>
51388
51389         Change MODULES.html to refer to POSIX:2008 where possible.
51390         * MODULES.html.sh (POSIX2008_URL): New variable.
51391         (posix_headers): Remove sys/timeb, ucontext.
51392         (posix2001_headers): New variable.
51393         (posix_functions): Remove bcmp, bcopy, bsd_signal, bzero, ecvt, fcvt,
51394         ftime, gcvt, getcontext, gethostbyaddr, gethostbyname, getwd, h_errno,
51395         index, makecontext, mktemp, pthread_attr_getstackaddr,
51396         pthread_attr_setstackaddr, rindex, scalb, setcontext, swapcontext,
51397         ualarm, usleep, vfork, wcswcs. Add the new POSIX:2008 functions.
51398         (posix2001_functions): New variable.
51399         (func_module): Use URLs to POSIX:2008 where possible and to POSIX:2001
51400         otherwise.
51401
51402 2008-12-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51403
51404         add missing include to parse-duration.c
51405         * lib/parse-duration.c: #include "xalloc.h", for xstrdup.
51406         * modules/parse-duration (Depends-on): Add xalloc.
51407
51408         fix sed script reading maint.mk
51409         * top/maint.mk (MYSELF): New macro, define as $(srcdir)/$(ME).
51410         (syntax-check-rules): Use it.
51411
51412 2008-12-09  Bruno Haible  <bruno@clisp.org>
51413
51414         * m4/ldexpl.m4 (gl_FUNC_LDEXPL_WORKS): Add another check, that fails on
51415         MacOS X 10.4/PowerPC.
51416         Reported by Simon Josefsson.
51417
51418 2008-12-08  Jim Meyering  <meyering@redhat.com>
51419
51420         work around mingw's lack of some S_IF definitions
51421         * lib/fts.c (S_IFLNK, S_IFSOCK): Define if not already defined.
51422         Reported by Simon Josefsson.
51423
51424 2008-12-08  Bruno Haible  <bruno@clisp.org>
51425
51426         * m4/signbitl.m4 (gl_SIGNBIT_TEST_PROGRAM): Add a link check of signbit
51427         applied to variables. Needed on MacOS X 10.4/PowerPC.
51428         Reported by Simon Josefsson.
51429
51430 2008-12-08  William Pursell  <bill.pursell@gmail.com>  (tiny change)
51431         and Eric Blake  <ebb9@byu.net>
51432
51433         assert: honor --enable-assert
51434         * m4/assert.m4 (gl_ASSERT): Synchronize with autoconf 2.64, in
51435         order to honor --enable-assert, rather than treating it as a
51436         synonym for --disable-assert.
51437
51438 2008-12-08  Jim Meyering  <meyering@redhat.com>
51439
51440         * lib/posixtm.c: Remove now-useless declaration of mktime.
51441
51442         * build-aux/announce-gen (get_tool_versions): Accept .xz tarballs.
51443
51444 2008-12-07  Bruno Haible  <bruno@clisp.org>
51445
51446         * tests/test-lock.c (test_lock, test_rwlock, test_recursive_lock,
51447         test_once): Mark functions as static.
51448         * tests/test-tls.c (test_tls): Likewise.
51449
51450 2008-12-07  Bruno Haible  <bruno@clisp.org>
51451
51452         * lib/striconveha.h (uniconv_register_autodetect): Renamed from
51453         iconv_register_autodetect.
51454
51455 2008-12-07  Jim Meyering  <meyering@redhat.com>
51456
51457         posixtm.c: avoid a warning
51458         * lib/posixtm.c (posixtime): Don't initialize tm0.
51459         It's no longer needed to placate gcc4's -Wuninitialized,
51460         and the attempt to placate would elicit a new warning.
51461
51462         unicodeio.c: mark unused parameters
51463         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51464         (fallback_failure_callback): Likewise.
51465
51466 2008-12-07  Bruno Haible  <bruno@clisp.org>
51467
51468         * gnulib-tool (func_create_testdir): When building the tests
51469         subdirectory, ignore the modules gnumakefile and maintainer-makefile.
51470         Reported by Simon Josefsson.
51471
51472 2008-12-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51473
51474         * doc/manywarnings.texi, doc/gnulib-intro.texi: Fix typos.
51475
51476 2008-12-06  Bruno Haible  <bruno@clisp.org>
51477
51478         * lib/c-stack.h (c_stack_action): Clarify possible side effects.
51479         Suggested by Eric Blake.
51480
51481 2008-12-06  Bruno Haible  <bruno@clisp.org>
51482
51483         Fix a c-stack test failure on MacOS X.
51484         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Require
51485         AC_CANONICAL_HOST. Define FAULT_YIELDS_SIGBUS. If set, install a signal
51486         handler for SIGBUS as well.
51487         * lib/c-stack.c (c_stack_action): If FAULT_YIELDS_SIGBUS is set,
51488         install a signal handler for SIGBUS as well.
51489         Reported by Bruce Dugan <bld0401@gmail.com> via Eric Blake.
51490
51491 2008-12-06  Bruno Haible  <bruno@clisp.org>
51492
51493         Advocacy documentation.
51494         * doc/gnulib-intro.texi (Benefits): New section.
51495         * doc/gnulib.texi: Update.
51496
51497 2008-12-06  Bruno Haible  <bruno@clisp.org>
51498
51499         Document the 'manywarnings' module.
51500         * doc/manywarnings.texi: New file.
51501         * doc/gnulib.texi: Include it.
51502
51503 2008-12-05  Eric Blake  <ebb9@byu.net>
51504
51505         tests: silence some gcc warnings
51506         * tests/test-getdate.c (LOG) [!DEBUG]: Mark no-op void.
51507         * tests/uniwidth/test-uc_width2.c (finish_interval): Avoid printf
51508         type mismatches.
51509
51510 2008-12-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
51511             Bruno Haible  <bruno@clisp.org>
51512
51513         * m4/openmp.m4 (AC_OPENMP): Do not define with Autoconf 2.62 or newer.
51514
51515 2008-11-29  Jim Meyering  <meyering@redhat.com>
51516
51517         unicodeio.c: mark unused parameters
51518         * lib/unicodeio.c (exit_failure_callback): Mark unused parameter.
51519         (fallback_failure_callback): Likewise.
51520
51521         fts: fix a thinko
51522         * lib/fts.c (s_ifmt_shift_bits): Remove function.  Not needed after all.
51523         (set_stat_type): Return S_IF*-valued "type" directly.
51524         Prompted by James Youngman's spotting a related bug.
51525         Confirmed by further testing through find.
51526
51527         fts: provide dirent.d_type via FTSENT.fts_statp, when possible
51528         * lib/fts.c (D_TYPE): Define.
51529         (DT_UNKNOWN, DT_BLK, DT_CHR) [HAVE_STRUCT_DIRENT_D_TYPE]: Define.
51530         (DT_DIR, DT_FIFO, DT_LNK, DT_REG, DT_SOCK): Likewise.
51531         (s_ifmt_shift_bits): New function.
51532         (set_stat_type): New function.
51533         (fts_build): When not calling fts_stat, call set_stat_type
51534         to propagate dirent.d_type info to fts_read caller.
51535         * lib/fts_.h (FTSENT) [FTS_DEFER_STAT]: Mention that
51536         fts_statp->st_mode type information may be valid.
51537
51538 2008-11-28  Simon Josefsson  <simon@josefsson.org>
51539
51540         * lib/sys_time.in.h: Add extern "C" block for C++.  Suggested by
51541         Brian Dessent <brian@dessent.net>.  Reported by Sam Steingold
51542         <sds@gnu.org>.
51543
51544 2008-11-20  Bruno Haible  <bruno@clisp.org>
51545
51546         Attempt to work around an AIX 5.3, 6.1 compiler bug with include_next.
51547         * lib/math.in.h: Use INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of
51548         INCLUDE_NEXT.
51549         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also
51550         INCLUDE_NEXT_AS_FIRST_DIRECTIVE.
51551         * modules/math (Makefile.am): Substitute
51552         INCLUDE_NEXT_AS_FIRST_DIRECTIVE instead of INCLUDE_NEXT.
51553         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
51554
51555 2008-11-18  Alexandre Duret-Lutz  <adl@lrde.epita.fr>
51556             Bruno Haible  <bruno@clisp.org>
51557
51558         * lib/stdint.in.h: Define all type macros so that their expansion is
51559         a single typedef'ed token. Fixes a compilation failure in Boost which
51560         does "using ::int8_t;".
51561
51562 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51563
51564         * m4/manywarnings.m4: New file with gl_MANYWARN_COMPLEMENT and
51565         gl_MANYWARN_ALL_GCC.
51566         * m4/warnings.m4: Removed gl_WARN_SUPPORTED and
51567         gl_WARN_COMPLEMENT.  Suggested by Bruno Haible <bruno@clisp.org>.
51568         * modules/manywarnings: New file.
51569         * MODULES.html.sh: Mention manywarnings module.
51570
51571 2008-11-18  Bruno Haible  <bruno@clisp.org>
51572
51573         * doc/gnulib-tool.texi (Unit tests): New section.
51574
51575 2008-11-18  Simon Josefsson  <simon@josefsson.org>
51576
51577         * top/maint.mk (refresh-po): Fix sed regexp to avoid problems with
51578         paths like 'lib/po/foo.po'.
51579
51580 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51581
51582         * m4/warnings.m4: Improve code.  Reported by Ralf Wildenhues
51583         <Ralf.Wildenhues@gmx.de> and Paolo Bonzini <bonzini@gnu.org>.
51584
51585 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51586
51587         * m4/warnings.m4: Use CPPFLAGS to really check whether the
51588         parameter works.
51589
51590 2008-11-17  Simon Josefsson  <simon@josefsson.org>
51591
51592         * m4/warnings.m4: Add gl_WARN_COMPLEMENT and gl_WARN_SUPPORTED.
51593
51594 2008-11-17  Bruce Korb  <bkorb@gnu.org>
51595
51596         * modules/parse-duration-tests: New file.
51597         * tests/test-parse-duration.sh: New file.
51598         * tests/test-parse-duration.c: New file.
51599
51600         New module 'parse-duration'.
51601         * lib/parse-duration.h: New file.
51602         * lib/parse-duration.c: New file.
51603         * modules/parse-duration: New file.
51604
51605 2008-11-17  Bruno Haible  <bruno@clisp.org>
51606
51607         * tests/test-select-out.sh: Comment out the first pipe test.
51608         Reported by Simon Josefsson.
51609
51610 2008-11-17  Bruno Haible  <bruno@clisp.org>
51611
51612         * modules/getaddrinfo (Depends-on): Add servent, hostent.
51613         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_SERVENT and
51614         gl_HOSTENT.
51615
51616 2008-11-17  Bruno Haible  <bruno@clisp.org>
51617
51618         * m4/sockets.m4 (gl_SOCKETS): After trying -lsocket, try also
51619         -lnetwork and -lnet. Needed for Haiku and BeOS.
51620
51621 2008-11-16  Bruno Haible  <bruno@clisp.org>
51622
51623         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix indentation.
51624
51625 2008-11-16  Bruno Haible  <bruno@clisp.org>
51626
51627         Avoid test failure on Haiku.
51628         * tests/test-fsync.c: Include <errno.h>.
51629         (main): Don't require that fsync (0) fails.
51630
51631 2008-11-15  Bruno Haible  <bruno@clisp.org>
51632
51633         New module 'hostent'.
51634         * modules/hostent: New file.
51635         * m4/hostent.m4: New file, based on code in m4/getaddrinfo.m4.
51636
51637 2008-11-15  Bruno Haible  <bruno@clisp.org>
51638
51639         New module 'servent'.
51640         * modules/servent: New file.
51641         * m4/servent.m4: New file, based on code in m4/getaddrinfo.m4.
51642
51643 2008-11-15  Bruno Haible  <bruno@clisp.org>
51644
51645         Avoid generating same test program with two different rules.
51646         * modules/frexp-nolibm-tests (Makefile.am): Rename test program from
51647         test-frexp to test-frexp-nolibm.
51648         * modules/frexpl-nolibm-tests (Makefile.am): Rename test program from
51649         test-frexpl to test-frexpl-nolibm.
51650
51651 2008-11-15  Bruno Haible  <bruno@clisp.org>
51652
51653         * modules/frexpl-tests (Makefile.am): Link test-frexpl with
51654         $(FREXPL_LIBM).
51655
51656 2008-11-15  Bruno Haible  <bruno@clisp.org>
51657
51658         * lib/netdb.in.h: Activate the definitions also when the system's
51659         <netdb.h> has 'struct addrinfo'.
51660         * m4/netdb_h.m4 (gl_HEADER_NETDB): Replace netdb.h also when it lacks
51661         EAI_OVERFLOW or AI_NUMERICSERV.
51662         * doc/posix-headers/netdb.texi: Document the problem.
51663
51664 2008-11-15  Bruno Haible  <bruno@clisp.org>
51665
51666         * tests/test-sched.c: Test also the existence of the SCHED_* macros.
51667
51668         Make the 'sched' module work on platforms where <sched.h> exists but
51669         is incomplete (such as Haiku).
51670         * lib/sched.in.h; Include the system's <sched.h> if it exists.
51671         (SCHED_FIFO, SCHED_RR, SCHED_OTHER): New macros.
51672         * m4/sched_h.m4 (gl_SCHED_H): Test whether <sched.h> exists and also
51673         defines SCHED_FIFO, SCHED_RR, SCHED_OTHER. Set HAVE_SCHED_H,
51674         HAVE_STRUCT_SCHED_PARAM.
51675         * modules/sched (Depends-on): Add include_next.
51676         (Makefile.am): Substitute HAVE_SCHED_H, INCLUDE_NEXT,
51677         PRAGMA_SYSTEM_HEADER, NEXT_SCHED_H, HAVE_STRUCT_SCHED_PARAM.
51678         * doc/posix-headers/sched.texi: Document the issue.
51679
51680 2008-11-13  Jim Meyering  <meyering@redhat.com>
51681
51682         test-argp-2: avoid test failure when PACKAGE_BUGREPORT is defined
51683         * tests/test-argp-2.sh: When PACKAGE_BUGREPORT was defined, this
51684         test would fail due to the difference in the Report bugs to ...
51685         line.  The expected address is empty, "<>", while the actual
51686         would contain e.g., "<bug-tar@gnu.org>".  Filter out any address.
51687
51688 2008-11-12  Bruno Haible  <bruno@clisp.org>
51689
51690         lstat: don't compile lstat.c on systems lacking lstat
51691         * m4/lstat.m4 (gl_FUNC_LSTAT): Don't compile lstat.c on systems
51692         which don't have lstat; this is handled by lib/sys_stat.in.h already.
51693         Reported by Daniel P. Berrange via Jim Meyering.
51694
51695 2008-11-12  Jim Meyering  <meyering@redhat.com>
51696
51697         * lib/unicodeio.c (unicode_to_mb): Correct spelling of u8_uctomb.
51698
51699 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51700
51701         * modules/warnings (configure.ac): Do AC_SUBST([WARN_CFLAGS]) here
51702         instead.
51703
51704 2008-11-12  Bruno Haible  <bruno@clisp.org>
51705
51706         * lib/unicodeio.c: Include unistr.h.
51707         (utf8_wctomb): Remove function.
51708         (unicode_to_mb): Use utf8_uctomb instead of utf8_wctomb.
51709
51710 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51711
51712         * m4/warnings.m4 (gl_WARN_INIT): Remove, suggested by Ralf
51713         Wildenhues <Ralf.Wildenhues@gmx.de> and Bruno Haible
51714         <bruno@clisp.org>.
51715         * modules/warnings (configure.ac): Don't call gl_WARN_INIT.
51716
51717 2008-11-12  Simon Josefsson  <simon@josefsson.org>
51718
51719         * doc/warnings.texi: New file, from Bruno Haible <bruno@clisp.org>.
51720         * doc/gnulib.texi: Add section for warnings.
51721
51722 2008-11-11  Bruno Haible  <bruno@clisp.org>
51723
51724         * lib/sockets.h: Add a comment.
51725
51726 2008-11-11  Karl Berry  <karl@gnu.org>
51727
51728         * config/srclist.txt (fdl.texi): add, syncing from gnustandards.
51729
51730 2008-11-11  Eric Blake  <ebb9@byu.net>
51731
51732         fdl.texi: avoid git symlinks
51733         * doc/fdl.texi: Copy, rather than link, fdl-1.3.texi.
51734
51735 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51736
51737         * m4/warnings.m4 (gl_WARN_ADD): Don't AC_SUBST the empty string.
51738
51739 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51740
51741         * m4/warnings.m4 (gl_WARN_INIT): Substitute WARN_CFLAGS.
51742         (gl_WARN_ADD): Substitute $2 if literal.
51743
51744 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51745
51746         * m4/warning.m4: Remove.
51747
51748 2008-11-11  Paolo Bonzini  <bonzini@gnu.org>
51749
51750         * m4/warnings.m4: Almost complete rewrite. :-)
51751
51752 2008-11-10  Simon Josefsson  <simon@josefsson.org>
51753
51754         * modules/warnings: New module.
51755         * m4/warnings.m4: New file.
51756         * MODULES.html.sh: Mention warnings module.
51757         With review improvements from Paolo Bonzini <bonzini@gnu.org> and
51758         Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
51759
51760 2008-11-10  Eric Blake  <ebb9@byu.net>
51761
51762         fdl.texi: make a symlink to the latest version
51763         * doc/standards.texi: Revert today's earlier change.
51764         * doc/fdl-1.2.texi: Rename from old fdl.texi...
51765         * doc/fdl.texi: ...and replace this with a symlink to the newer
51766         fdl-1.3.texi.
51767
51768 2008-11-10  Bruno Haible  <bruno@clisp.org>
51769
51770         * tests/test-select-fd.c (main): Accept the result file name as fourth
51771         argument.
51772         * tests/test-select-in.sh: Pass t-select-in.tmp as fourth argument.
51773         * tests/test-select-out.sh: Pass t-select-out.tmp as fourth argument.
51774
51775 2008-11-10  Bruno Haible  <bruno@clisp.org>
51776
51777         * lib/netdb.in.h: Use HAVE_STRUCT_ADDRINFO, HAVE_DECL_GETADDRINFO,
51778         HAVE_DECL_FREEADDRINFO, HAVE_DECL_GAI_STRERROR, HAVE_DECL_GETNAMEINFO
51779         as autoconf-substituted macros.
51780         * m4/netdb_h.m4 (gl_NETDB_H_DEFAULTS): Initialize these variables to 1.
51781         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require
51782         gl_NETDB_H_DEFAULTS. Set these variables.
51783         * modules/netdb (Makefile.am): Substitute these variables.
51784
51785 2008-11-10  Eric Blake  <ebb9@byu.net>
51786
51787         standards.texi: include correct file for FDL 1.3
51788         * doc/standards.texi (GNU Free Documentation License): Change
51789         include file to pull in FDL 1.3, not 1.2.
51790
51791         fdl.texi: revert accidental change to license
51792         * doc/fdl.texi: This is FDL 1.2, not 1.3.
51793
51794 2008-11-10  Bruno Haible  <bruno@clisp.org>
51795
51796         * m4/printf.m4 (gl_PRINTF_ENOMEM): Guess yes on Haiku. Use the
51797         cross-compiling guesses also when the native compile gives no result.
51798
51799 2008-11-10  Bruno Haible  <bruno@clisp.org>
51800
51801         * lib/spawni.c (__spawni): Force variable into the stack.
51802
51803 2008-11-10  Bruno Haible  <bruno@clisp.org>
51804
51805         Add support for Haiku.
51806         * lib/fbufmode.c (fbufmode): Test a symbol that is not only defined on
51807         glibc and BeOS, but also on Haiku.
51808         * lib/fpurge.c (fpurge): Likewise.
51809         * lib/freadable.c (freadable): Likewise.
51810         * lib/freadahead.c (freadahead): Likewise.
51811         * lib/freading.c (freading): Likewise.
51812         * lib/freadptr.c (freadptr): Likewise.
51813         * lib/freadseek.c (freadptrinc): Likewise.
51814         * lib/fseeko.c (rpl_fseeko): Likewise.
51815         * lib/fseterr.c (fseterr): Likewise.
51816         * lib/fwritable.c (fwritable): Likewise.
51817         * lib/fwriting.c (fwriting): Likewise.
51818         Reported by Ingo Weinhold <ingo_weinhold@gmx.de>.
51819
51820 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51821
51822         * lib/config.charset: Treat Haiku like BeOS.
51823
51824 2008-11-10  Ingo Weinhold  <ingo_weinhold@gmx.de>
51825
51826         * lib/binary-io.h (O_BINARY, O_TEXT): Treat Haiku like BeOS.
51827         * lib/fcntl.in.h (O_BINARY, O_TEXT): Likewise.
51828
51829 2008-11-08  Bruno Haible  <bruno@clisp.org>
51830
51831         * m4/sys_ioctl_h.m4 (gl_SYS_IOCTL_H): Avoid using AC_CHECK_DECL inside
51832         AC_CACHE_CHECK.
51833
51834 2008-11-08  Bruno Haible  <bruno@clisp.org>
51835
51836         * modules/select-tests (configure.ac): Check for unistd.h, sys/wait.h.
51837
51838 2008-11-08  Bruno Haible  <bruno@clisp.org>
51839
51840         * tests/test-select-fd.c: New file.
51841         * tests/test-select-in.sh: New file.
51842         * tests/test-select-out.sh: New file.
51843         * tests/test-select-stdin.c: New file.
51844         * modules/select-tests (Files): Add the new files.
51845         (Depends-on): Add gettimeofday.
51846         (Makefile.am): Add test-select-in.sh, test-select-out.sh to TESTS.
51847         Set TESTS_ENVIRONMENT. Add test-select-fd, test-select-stdin to
51848         check_PROGRAMS. Define test_select_fd_LDADD, test_select_stdin_LDADD.
51849
51850 2008-11-06  Alexander V. Lukyanov  <lav@netis.ru>
51851             Bruno Haible  <bruno@clisp.org>
51852
51853         * lib/sys_stat.in.h: Enclose function definitions in extern "C".
51854
51855 2008-10-12  Giuseppe Scrivano  <gscrivano@gnu.org>
51856
51857         * build-aux/pmccabe2html: Added support for C++ source files.
51858
51859 2008-11-05  Ben Pfaff  <blp@gnu.org>
51860
51861         Fix lib/close.c build on Windows.
51862         * modules/close (Files): Add lib/w32sock.h.
51863
51864 2008-11-05  Joel E. Denny  <jdenny@ces.clemson.edu>
51865
51866         Accept Bison's NEWS format.
51867         * build-aux/announce-gen (print_news_deltas): Tweak
51868         $re_prefix.
51869
51870 2008-11-04  Bruno Haible  <bruno@clisp.org>
51871
51872         * modules/random_r (Maintainer): Add glibc.
51873
51874 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51875
51876         * doc/alloca-opt.texi: Change license to GFDLv1.3+, as suggested
51877         by karl@freefriends.org (Karl Berry).
51878         * doc/alloca.texi: Likewise.
51879         * doc/c-ctype.texi: Likewise.
51880         * doc/c-strcase.texi: Likewise.
51881         * doc/c-strcaseeq.texi: Likewise.
51882         * doc/c-strcasestr.texi: Likewise.
51883         * doc/c-strstr.texi: Likewise.
51884         * doc/c-strtod.texi: Likewise.
51885         * doc/c-strtold.texi: Likewise.
51886         * doc/ctime.texi: Likewise.
51887         * doc/error.texi: Likewise.
51888         * doc/fdl.texi: Likewise.
51889         * doc/gcd.texi: Likewise.
51890         * doc/getdate.texi: Likewise.
51891         * doc/gnulib-intro.texi: Likewise.
51892         * doc/gnulib-tool.texi: Likewise.
51893         * doc/gnulib.texi: Likewise.
51894         * doc/inet_ntoa.texi: Likewise.
51895         * doc/maintain.texi: Likewise.
51896         * doc/make-stds.texi: Likewise.
51897         * doc/quote.texi: Likewise.
51898         * doc/regexprops-generic.texi: Likewise.
51899         * doc/standards.texi: Likewise.
51900         * doc/verify.texi: Likewise.
51901         * doc/visibility.texi: Likewise.
51902         * doc/gnulib.texi (GNU Free Documentation License): Include
51903         fdl-1.3.texi instead of fdl.texi.
51904
51905 2008-11-04  Simon Josefsson  <simon@josefsson.org>
51906
51907         * doc/fdl-1.3.texi: New file, from
51908         <http://www.gnu.org/licenses/fdl-1.3.texi>.
51909         * modules/fdl-1.3: Add.
51910         * MODULES.html.sh: Add fdl-1.3.
51911
51912 2008-11-03  Bruno Haible  <bruno@clisp.org>
51913
51914         Make determination of absolute name of header file work with AIX xlc.
51915         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Require
51916         AC_CANONICAL_HOST. On AIX, use "$CPP -C" rather than "$CPP" for
51917         preprocessing.
51918         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
51919         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
51920
51921 2008-11-03  Simon Josefsson  <simon@josefsson.org>
51922
51923         * top/maint.mk (COVERAGE_CCOPTS): Use --coverage instead of
51924         -fprofile-arcs -ftest-coverage.  Suggested by Ludovic Courtès
51925         <ludo@gnu.org>.
51926
51927 2008-11-02  Bruno Haible  <bruno@clisp.org>
51928
51929         Mark 'strpbrk' obsolete.
51930         * modules/strpbrk (Status, Notice): New sections.
51931         * modules/strtok_r (Depends-on): Add strpbrk.
51932
51933 2008-11-02  Bruno Haible  <bruno@clisp.org>
51934
51935         Mark 'strdup' obsolete.
51936         * modules/strdup (Status, Notice): New sections.
51937         * modules/findprog (Depends-on): Add strdup.
51938         * modules/getaddrinfo (Depends-on): Likewise.
51939         * modules/localename (Depends-on): Likewise.
51940         * modules/relocatable-lib (Depends-on): Likewise.
51941         * modules/relocatable-lib-lgpl (Depends-on): Likewise.
51942         * modules/relocatable-prog (Depends-on): Likewise.
51943         * modules/trim (Depends-on): Likewise.
51944         * modules/unictype/gen-ctype (Depends-on): Likewise.
51945         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
51946
51947 2008-11-02  Bruno Haible  <bruno@clisp.org>
51948
51949         Mark 'strcspn' obsolete.
51950         * modules/strcspn (Status, Notice): New sections.
51951
51952 2008-11-02  Bruno Haible  <bruno@clisp.org>
51953
51954         Mark 'rmdir' obsolete.
51955         * modules/rmdir (Status, Notice): New sections.
51956         * modules/clean-temp (Depends-on): Add rmdir.
51957         * modules/openat (Depends-on): Likewise.
51958
51959 2008-11-02  Bruno Haible  <bruno@clisp.org>
51960
51961         Mark 'raise' obsolete.
51962         * modules/raise (Status, Notice): New sections.
51963         (Include): Specify <signal.h>.
51964         * modules/stdio (Depends-on): Add raise.
51965         * modules/write (Depends-on): Likewise.
51966
51967 2008-11-02  Bruno Haible  <bruno@clisp.org>
51968
51969         Mark 'memset' obsolete.
51970         * modules/memset (Status, Notice): New sections.
51971
51972 2008-11-02  Bruno Haible  <bruno@clisp.org>
51973
51974         Mark 'memmove' obsolete.
51975         * modules/memmove (Status, Notice): New sections.
51976         * modules/argp (Depends-on): Add memmove.
51977         * modules/argz (Depends-on): Likewise.
51978         * modules/canonicalize (Depends-on): Likewise.
51979         * modules/canonicalize-lgpl (Depends-on): Likewise.
51980         * modules/fts (Depends-on): Likewise.
51981         * modules/getcwd (Depends-on): Likewise.
51982         * modules/human (Depends-on): Likewise.
51983         * modules/regex (Depends-on): Likewise.
51984         * modules/striconveh (Depends-on): Likewise.
51985         * modules/trim (Depends-on): Likewise.
51986         * modules/unistr/u8-move (Depends-on): Likewise.
51987         * modules/unistr/u16-move (Depends-on): Likewise.
51988         * modules/unistr/u32-move (Depends-on): Likewise.
51989
51990 2008-11-02  Bruno Haible  <bruno@clisp.org>
51991
51992         Mark 'memcpy' obsolete.
51993         * modules/memcpy (Status, Notice): New sections.
51994
51995 2008-11-02  Bruno Haible  <bruno@clisp.org>
51996
51997         Mark 'memcmp' obsolete.
51998         * modules/memcmp (Status, Notice): New sections.
51999         * modules/argmatch (Depends-on): Add memchr.
52000         * modules/backupfile (Depends-on): Likewise.
52001         * modules/c-strcasestr (Depends-on): Likewise.
52002         * modules/crypto/des (Depends-on): Likewise.
52003         * modules/csharpcomp (Depends-on): Likewise.
52004         * modules/fnmatch (Depends-on): Likewise.
52005         * modules/git-merge-changelog (Depends-on): Likewise.
52006         * modules/isnand (Depends-on): Likewise.
52007         * modules/isnand-nolibm (Depends-on): Likewise.
52008         * modules/isnanf (Depends-on): Likewise.
52009         * modules/isnanf-nolibm (Depends-on): Likewise.
52010         * modules/isnanl (Depends-on): Likewise.
52011         * modules/isnanl-nolibm (Depends-on): Likewise.
52012         * modules/mbchar (Depends-on): Likewise.
52013         * modules/memcoll (Depends-on): Likewise.
52014         * modules/quotearg (Depends-on): Likewise.
52015         * modules/regex (Depends-on): Likewise.
52016         * modules/relocatable-prog (Depends-on): Likewise.
52017         * modules/same (Depends-on): Likewise.
52018         * modules/signbit (Depends-on): Likewise.
52019         * modules/strcasestr-simple (Depends-on): Likewise.
52020         * modules/unictype/gen-ctype (Depends-on): Likewise.
52021         * modules/unilbrk/gen-lbrk (Depends-on): Likewise.
52022         * modules/uniname/uniname (Depends-on): Likewise.
52023         * modules/unistr/u8-cmp (Depends-on): Likewise.
52024
52025 2008-11-02  Bruno Haible  <bruno@clisp.org>
52026
52027         Mark 'memchr' obsolete.
52028         * modules/memchr (Status, Notice): New sections.
52029         * modules/argp (Depends-on): Add memchr.
52030         * modules/base64 (Depends-on): Likewise.
52031         * modules/c-strcasestr (Depends-on): Likewise.
52032         * modules/chdir-long (Depends-on): Likewise.
52033         * modules/fnmatch (Depends-on): Likewise.
52034         * modules/getsubopt (Depends-on): Likewise.
52035         * modules/git-merge-changelog (Depends-on): Likewise.
52036         * modules/glob (Depends-on): Likewise.
52037         * modules/strcasestr-simple (Depends-on): Likewise.
52038         * modules/strnlen (Depends-on): Likewise.
52039
52040 2008-11-02  Bruno Haible  <bruno@clisp.org>
52041
52042         Mark 'atexit' obsolete.
52043         * modules/atexit (Status, Notice): New sections.
52044         * modules/chdir-long (Depends-on): Add atexit.
52045         * modules/wait-process (Depends-on): Likewise.
52046
52047 2008-11-02  Bruno Haible  <bruno@clisp.org>
52048
52049         * gnulib-tool: New option --with-obsolete.
52050         (func_usage): Document it.
52051         (func_modules_transitive_closure): Drop obsolete dependencies if
52052         incobsolete is not true.
52053         (func_import): Read and save the incobsolete variable to the cache.
52054
52055 2008-11-02  Bruno Haible  <bruno@clisp.org>
52056
52057         * modules/TEMPLATE-EXTENDED: New field 'Status'.
52058         * gnulib-tool: New option --extract-status.
52059         (func_usage): Document it.
52060         (sed_extract_prog): Recognize it.
52061         (func_get_status): New function.
52062
52063 2008-10-30  Simon Josefsson  <simon@josefsson.org>
52064
52065         * modules/sockets (License): Change from LGPL to LGPLv2+.
52066
52067 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52068
52069         * top/maint.mk: Add coverage rules, inspired by scripts in gnupdf.
52070
52071 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52072
52073         * MODULES.html.sh (Support for systems lacking POSIX:2001):
52074         Mention times and sys_times.
52075         * modules/sys_times, modules/sys_times-tests: New modules.
52076         * modules/times, modules/times-tests: Likewise
52077         * m4/sys_times_h.m4: New file.
52078         * lib/sys_times.in.h: Likewise
52079         * lib/times.c: Likewise.
52080         * tests/test-sys_times.c: Likewise.
52081         * tests/test-times.c: Likewise.
52082         * doc/posix-headers/sys_times.texi: Update.
52083         * doc/posix-functions/times.texi: Update.
52084
52085 2008-10-28  Jim Meyering  <meyering@redhat.com>
52086
52087         * modules/tempname (Depends-on): Add lstat.
52088
52089         * modules/lstat (License): Relicense: LGPL -> LGPLv2+.
52090
52091 2008-10-28  Simon Josefsson  <simon@josefsson.org>
52092
52093         * gnulib-tool (func_emit_tests_Makefile_am): Revert last commit.
52094         * modules/argp-tests (test_argp_LDADD): Set EXEEXT here instead,
52095         using idiom used elsewhere in gnulib.
52096
52097 2008-10-27  Jim Meyering  <meyering@redhat.com>
52098
52099         * modules/gethostname (License): Relicense: LGPL -> LGPLv2+.
52100
52101 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52102
52103         * gnulib-tool (func_emit_tests_Makefile_am): Set EXEEXT in
52104         TESTS_ENVIRONMENT, for shell scripts that needs to call built
52105         programs.
52106         * tests/test-argp-2.sh: Use $EXEEXT when needed.
52107
52108 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52109
52110         * lib/sys_stat.in.h (lstat): Fix declaration for mingw.
52111
52112 2008-10-27  Bruno Haible  <bruno@clisp.org>
52113
52114         * tests/test-lstat.c: Include <stdio.h>.
52115
52116 2008-10-27  Simon Josefsson  <simon@josefsson.org>
52117
52118         * modules/lstat-tests: New module.
52119         * tests/test-lstat.c: New file.
52120
52121 2008-10-26  Jim Meyering  <meyering@redhat.com>
52122
52123         * lib/mkdir.c (rpl_mkdir) [_WIN32...]: Mark mode as an unused parameter.
52124
52125 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52126             Bruno Haible  <bruno@clisp.org>
52127
52128         Fix a clash between the type DATADIR on Windows and the macro DATADIR.
52129         * modules/configmake (Include): Add a note that the include must come
52130         after all system headers.
52131         * lib/javaversion.c: Include configmake.h after all other includes.
52132
52133 2008-10-26  Bruno Haible  <bruno@clisp.org>
52134
52135         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
52136         HAVE_STRUCT_RANDOM_DATA to 1.
52137         (gl_STDLIB_H): Simplify.
52138
52139 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52140
52141         * m4/stdlib_h.m4: Check for struct random_data.  Initialize and
52142         substitute HAVE_STRUCT_RANDOM_DATA.
52143         * lib/stdlib.in.h [!HAVE_STRUCT_RANDOM_DATA]: Provide struct
52144         random_data.
52145         * modules/stdlib (Makefile.am): Substitute
52146         HAVE_STRUCT_RANDOM_DATA.
52147
52148 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52149
52150         * doc/gnulib.texi (@copying): Use GFDLv1.2+.
52151         * doc/gnulib-intro.texi (Copyright): Likewise.
52152
52153 2008-10-26  Simon Josefsson  <simon@josefsson.org>
52154
52155         * doc/gnulib.texi (Header files): C++ fixes, based on Bruno's
52156         findings.
52157
52158 2008-10-25  Ben Pfaff  <blp@cs.stanford.edu>
52159             Bruno Haible  <bruno@clisp.org>
52160
52161         * lib/unistd.in.h: Include <winsock2.h>.
52162         (socket, connect,accept, bind, getpeername, getsockname, getsockopt,
52163         listen, recv, send, recvfrom, sendto, setsockopt, shutdown, select):
52164         Provide dummy declarations.
52165         (gethostname): Override.
52166         * lib/sys_socket.in.h (gethostname): Provide dummy declaration.
52167         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Invoke
52168         gl_PREREQ_SYS_H_WINSOCK2.
52169         * modules/gethostname (Files): Add m4/sys_socket_h.m4.
52170         * doc/posix-functions/gethostname.texi: More details.
52171
52172 2008-10-25  Bruno Haible  <bruno@clisp.org>
52173
52174         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
52175         gl_UNISTD_H_DEFAULTS, gl_SYS_IOCTL_H_DEFAULTS only if they exist.
52176         * modules/sys_socket (Files): Remove m4/unistd_h.m4, m4/sys_ioctl_h.m4.
52177
52178         * lib/sys_socket.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); Move macro from
52179         here ...
52180         * lib/unistd.in.h (HAVE__GL_CLOSE_FD_MAYBE_SOCKET); ... to here.
52181         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Remove invocation of
52182         gl_UNISTD_H_DEFAULTS.
52183
52184 2008-10-25  Eric Blake  <ebb9@byu.net>
52185
52186         signbit: avoid spurious compiler failure
52187         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Move non-constant
52188         declarations inside function.
52189
52190 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52191             Bruno Haible  <bruno@clisp.org>
52192
52193         * lib/stdlib.in.h (@GNULIB_RANDOM_R@): Include stdint.h.
52194         * modules/random_r (Depends-on): Add stdint.
52195
52196 2008-10-24  Bruno Haible  <bruno@clisp.org>
52197
52198         * modules/intprops (License): Change to LGPLv2+, with approval by Paul
52199         Eggert.
52200         * modules/strerror (License): Likewise.
52201
52202 2008-10-24  Jim Meyering  <meyering@redhat.com>
52203
52204         sys_socket: fix typo that inhibited expansion of @GNULIB_SEND@
52205         * modules/sys_socket (Depends-on) [Depends-on]: Fix typo.
52206
52207 2008-10-24  Eric Blake  <ebb9@byu.net>
52208
52209         getgroups: fix compilation when getgroups is available
52210         * lib/getgroups.c (includes): Include <unistd.h> for getgroups,
52211         but with <config.h> override of getgroups disabled.
52212
52213 2008-10-24  Simon Josefsson  <simon@josefsson.org>
52214
52215         * doc/gnulib.texi (Header files): Add note about C++ problems.
52216         Explained by Bruno Haible <bruno@clisp.org>.
52217
52218 2008-10-23  Bruno Haible  <bruno@clisp.org>
52219
52220         Define a dummy SA_NODEFER macro on Interix.
52221         * lib/signal.in.h (SA_NODEFER): Define fallback.
52222         Reported by Aleksey Cheusov <cheusov@tut.by> via
52223         Thomas Klausner <wiz@netbsd.org> and Eric Blake.
52224
52225 2008-10-23  Bruno Haible  <bruno@clisp.org>
52226
52227         * modules/freadahead (License): Change to LGPLv2+.
52228         Suggested by Simon Josefsson.
52229
52230 2008-10-23  Jim Meyering  <meyering@redhat.com>
52231
52232         random_r: new module
52233         * modules/random_r: New file.
52234         * m4/random_r.m4: New file.
52235         * lib/random_r.c: New file, from glibc.
52236         * modules/random_r-tests: New file.
52237         * tests/test-random_r.c: New file.
52238         * lib/stdlib.in.h (srandom_r, initstate_r, setstate_r, random_r):
52239          Declare.
52240         (RAND_MAX): Define.
52241         * m4/stdlib_h.m4: Define and AC_SUBST GNULIB_RANDOM_R and HAVE_RANDOM_R.
52242         * modules/stdlib: Substitute them, too.
52243         * MODULES.html.sh (Extra functions based on POSIX:2001) [Misc]: Add it.
52244         * doc/glibc-functions/initstate_r.texi: Mention the new module.
52245         * doc/glibc-functions/random_r.texi: Likewise.
52246         * doc/glibc-functions/setstate_r.texi: Likewise.
52247         * doc/glibc-functions/srandom_r.texi: Likewise.
52248         * config/srclist.txt: Mention it.
52249
52250 2008-10-23  David Lutterkort  <lutter@redhat.com>
52251
52252         * modules/selinux-h: Search for LIB_SELINUX and mark it as a
52253         link requirement
52254
52255 2008-10-23  Jim Meyering  <meyering@redhat.com>
52256
52257         selinux-h: mark parameters of stub functions as intentionally unused
52258         * lib/se-selinux.in.h: Mark parameters as _UNUSED_PARAMETER_.
52259         * lib/se-context.in.h: Likewise.
52260
52261 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52262
52263         * lib/sys_socket.in.h (FD_ISSET): Fix warnings under mingw.
52264
52265 2008-10-22  Simon Josefsson  <simon@josefsson.org>
52266
52267         * m4/getgroups.m4: Avoid invoking test with wrong parameters.
52268
52269 2008-10-22  Eric Blake  <ebb9@byu.net>
52270
52271         glthread/thread: avoid compiler warning
52272         * lib/glthread/thread.c (gl_thread_exit_func) [USE_WIN32_THREADS]:
52273         Add unreachable abort to silence compiler.
52274
52275 2008-10-22  Eric Blake  <ebb9@byu.net>
52276
52277         netdb: also supply struct addrinfo for cygwin 1.5.x
52278         * m4/netdb_h.m4 (gl_HEADER_NETDB): Check for incomplete header on
52279         older cygwin.
52280         * lib/netdb.in.h [!HAVE_STRUCT_ADDRINFO]: Also supply contents for
52281         cygwin.
52282         * doc/posix-headers/netdb.texi (netdb.h): Document this.
52283
52284 2008-10-22  Bruno Haible  <bruno@clisp.org>
52285
52286         * users.txt: Update entry about pspp.
52287
52288 2008-10-21  Bruno Haible  <bruno@clisp.org>
52289
52290         Simplification.
52291         * lib/sys_socket.in.h (_gl_close_fd_maybe_socket): Remove declaration.
52292         * lib/close.c (_gl_close_fd_maybe_socket): Make static.
52293
52294         Simplification.
52295         * lib/ioctl.c (ioctl): Don't undefine.
52296         * lib/socket.c (socket): Don't undefine.
52297
52298         Remove unused module indicator macros.
52299         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR): Don't define
52300         GNULIB_$1 as a C macro.
52301
52302         * doc/posix-functions/close.texi: Undo last change.
52303         * doc/posix-functions/ioctl.texi: Merge the two paragraphs about
52304         Windows platforms.
52305
52306 2008-10-21  Bruno Haible  <bruno@clisp.org>
52307
52308         Add gethostname() declaration to <unistd.h>.
52309         * lib/unistd.in.h (gethostname): New declaration.
52310         * lib/gethostname.c: Include <unistd.h>.
52311         * m4/gethostname.m4 (gl_FUNC_GETHOSTNAME): Require
52312         gl_UNISTD_H_DEFAULTS. Set HAVE_GETHOSTNAME.
52313         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETHOSTNAME
52314         and HAVE_GETHOSTNAME.
52315         * modules/gethostname (Depends-on): Add unistd.
52316         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52317         (Include): Specify <unistd.h>.
52318         * modules/unistd (Makefile.am): Substitute GNULIB_GETHOSTNAME and
52319         HAVE_GETHOSTNAME.
52320         * tests/test-gethostname.c: Include <unistd.h> first.
52321
52322 2008-10-21  Bruno Haible  <bruno@clisp.org>
52323
52324         * modules/poll-tests (Depends-on): Add sys_ioctl, ioctl.
52325         * modules/select-tests (Depends-on): Likewise.
52326         Reported by Simon Josefsson.
52327
52328 2008-10-21  Simon Josefsson  <simon@josefsson.org>
52329
52330         * lib/close.c: Add _gl_close_fd_maybe_socket from winsock.c.
52331         * lib/accept.c: New file, based on winsock.c.
52332         * lib/bind.c: New file, based on winsock.c.
52333         * lib/connect.c: New file, based on winsock.c.
52334         * lib/getpeername.c: New file, based on winsock.c.
52335         * lib/getsockname.c: New file, based on winsock.c.
52336         * lib/getsockopt.c: New file, based on winsock.c.
52337         * lib/ioctl.c: New file, based on winsock.c.
52338         * lib/listen.c: New file, based on winsock.c.
52339         * lib/recv.c: New file, based on winsock.c.
52340         * lib/recvfrom.c: New file, based on winsock.c.
52341         * lib/send.c: New file, based on winsock.c.
52342         * lib/sendto.c: New file, based on winsock.c.
52343         * lib/setsockopt.c: New file, based on winsock.c.
52344         * lib/shutdown.c: New file, based on winsock.c.
52345         * lib/socket.c: New file, based on winsock.c.
52346         * lib/w32sock.h: New file, based on winsock.c.
52347         * lib/winsock.c: Remove file.
52348         * modules/accept: Likewise.
52349         * modules/bind: Likewise.
52350         * modules/connect: Likewise.
52351         * modules/getpeername: Likewise.
52352         * modules/getsockname: Likewise.
52353         * modules/getsockopt: Likewise.
52354         * modules/ioctl: Likewise.
52355         * modules/listen: Likewise.
52356         * modules/recv: Likewise.
52357         * modules/recvfrom: Likewise.
52358         * modules/send: Likewise.
52359         * modules/sendto: Likewise.
52360         * modules/setsockopt: Likewise.
52361         * modules/shutdown: Likewise.
52362         * modules/socket: Use socket.c instead of winsock.c.
52363         * modules/sys_socket: Remove (unneeded?) dependency on winsock.c.
52364         * doc/posix-functions/accept.texi: Doc fix.
52365         * doc/posix-functions/bind.texi: Doc fix.
52366         * doc/posix-functions/close.texi: Doc fix.
52367         * doc/posix-functions/connect.texi: Doc fix.
52368         * doc/posix-functions/getpeername.texi: Doc fix.
52369         * doc/posix-functions/getsockname.texi: Doc fix.
52370         * doc/posix-functions/getsockopt.texi: Doc fix.
52371         * doc/posix-functions/ioctl.texi: Doc fix.
52372         * doc/posix-functions/listen.texi: Doc fix.
52373         * doc/posix-functions/recv.texi: Doc fix.
52374         * doc/posix-functions/recvfrom.texi: Doc fix.
52375         * doc/posix-functions/send.texi: Doc fix.
52376         * doc/posix-functions/sendto.texi: Doc fix.
52377         * doc/posix-functions/setsockopt.texi: Doc fix.
52378         * doc/posix-functions/shutdown.texi: Doc fix.
52379         * doc/posix-functions/socket.texi: Doc fix.
52380
52381 2008-10-20  Bruno Haible  <bruno@clisp.org>
52382
52383         Take into account the role of SIGABRT_COMPAT on Windows 2008.
52384         * lib/sigprocmask.c (SIGABRT_COMPAT, SIGABRT_COMPAT_MASK): New macros.
52385         (sigismember, sigaddset, sigdelset, sigfillset, rpl_signal): Handle it
52386         as an alias for SIGABRT.
52387         * lib/sigaction.c (SIGABRT_COMPAT): New macro.
52388         (sigaction): Map it to SIGABRT.
52389         Reported by Ramiro Polla <ramiro.polla@gmail.com> via Eric Blake.
52390
52391 2008-10-20  Bruno Haible  <bruno@clisp.org>
52392
52393         * lib/fts.c: Don't include lstat.h.
52394         * lib/openat.c: Include <sys/stat.h> instead of lstat.h.
52395
52396         Move the lstat() declaration to <sys/stat.h>.
52397         * lib/lstat.h: Remove file.
52398         * lib/sys_stat.in.h: Add special invocation convention.
52399         (lstat): New declaration.
52400         * lib/lstat.c (orig_lstat): New function.
52401         (rpl_lstat): Use orig_lstat instead of lstat.
52402         * m4/lstat.m4 (gl_FUNC_LSTAT): Require gl_SYS_STAT_H_DEFAULTS and
52403         AC_C_INLINE. Set REPLACE_LSTAT.
52404         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LSTAT
52405         and REPLACE_LSTAT.
52406         * modules/lstat (Files): Remove lib/lstat.h.
52407         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52408         (Include): Specify <sys/stat.h> instead of lstat.h.
52409         * modules/sys_stat (Makefile.am): Substitute GNULIB_LSTAT and
52410         REPLACE_LSTAT.
52411         * NEWS: Mention the change.
52412
52413 2008-10-20  Bruno Haible  <bruno@clisp.org>
52414
52415         * modules/posix_spawn-tests: New file.
52416         * tests/test-posix_spawn3.c: New file.
52417
52418 2008-10-20  Bruno Haible  <bruno@clisp.org>
52419
52420         * modules/posix_spawnp-tests (Depends-on): Add sys_wait.
52421         * tests/test-posix_spawn1.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52422         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Remove fallback definitions.
52423         * tests/test-posix_spawn2.c (WTERMSIG, WCOREDUMP, WEXITSTATUS,
52424         WIFSIGNALED, WIFEXITED, WIFSTOPPED): Likewise.
52425
52426 2008-10-20  Bruno Haible  <bruno@clisp.org>
52427
52428         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Test against another bug
52429         of posix_spawn on AIX 5.3.
52430
52431 2008-10-20  Bruno Haible  <bruno@clisp.org>
52432
52433         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Make the check on MacOS X.
52434
52435 2008-10-20  Bruno Haible  <bruno@clisp.org>
52436
52437         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Use AC_LANG_SOURCE instead
52438         of AC_LANG_PROGRAM.
52439
52440 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52441
52442         * lib/netdb.in.h: Don't define GNU specific constants until they
52443         are supported or needed.  Reported by Bruno Haible
52444         <bruno@clisp.org>.
52445
52446 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52447
52448         * lib/canon-host.c: Include netdb.h instead of getaddrinfo.h.
52449
52450 2008-10-20  Simon Josefsson  <simon@josefsson.org>
52451
52452         * lib/getaddrinfo.h: Remove file.
52453         * modules/getaddrinfo: Reflect move from getaddrinfo.h to netdb.h.
52454         * m4/getaddrinfo.m4: Call gl_HEADER_NETDB.  Don't check for netdb.h.
52455         * lib/netdb.in.h: Add declarations from getaddrinfo.h.
52456         * m4/netdb_h.m4: Initialize GNULIB_GETADDRINFO to 0.
52457         * modules/netdb: Substitute GNULIB_GETADDRINFO.
52458         * lib/getaddrinfo.c: Include netdb.h instead of getaddrinfo.h.
52459         * tests/test-getaddrinfo.c: Likewise.
52460         * lib/gai_strerror.c: Likewise.  Also drop HAVE_NETDB_H check.
52461         * NEWS: Mention change.
52462
52463 2008-10-19  Bruno Haible  <bruno@clisp.org>
52464
52465         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): Remove unneeded code.
52466
52467 2008-10-19  Bruno Haible  <bruno@clisp.org>
52468
52469         * lib/wait-process.c: Include simply <sys/wait.h>.
52470         (waitpid, WTERMSIG, WCOREDUMP, WEXITSTATUS, WIFSIGNALED, WIFEXITED,
52471         WIFSTOPPED): Remove fallback definitions.
52472         * modules/wait-process (Depends-on): Add sys_wait.
52473
52474         New module 'sys_wait'.
52475         * modules/sys_wait: New file.
52476         * lib/sys_wait.in.h: New file, partially copied from
52477         lib/wait-process.c.
52478         * m4/sys_wait_h.m4: New file.
52479         * doc/posix-headers/sys_wait.texi: Mention the new module.
52480
52481 2008-10-19  Bruno Haible  <bruno@clisp.org>
52482
52483         * m4/wait-process.m4 (gl_WAIT_PROCESS): Remove test for unistd.h.
52484
52485 2008-10-19  Bruno Haible  <bruno@clisp.org>
52486
52487         Assume that waitpid() fills an 'int' status, not a 'union wait'.
52488         * lib/wait-process.c (WAIT_T): Remove type.
52489         (WTERMSIG, WCOREDUMP, WEXITSTATUS): Define fallbacks using bit masks.
52490         (wait_subprocess): Update.
52491
52492 2008-10-19  Bruno Haible  <bruno@clisp.org>
52493
52494         New module 'atoll'.
52495         * modules/atoll: New file.
52496         * lib/stdlib.in.h (atoll): New declaration.
52497         * lib/atoll.c: New file, from glibc with modifications.
52498         * m4/atoll.m4: New file.
52499         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_ATOLL,
52500         HAVE_ATOLL.
52501         * modules/stdlib (Makefile.am): Substitute GNULIB_ATOLL, HAVE_ATOLL.
52502         * doc/posix-functions/atoll.texi: Mention the new module.
52503
52504 2008-10-19  Bruno Haible  <bruno@clisp.org>
52505
52506         Add strtoull() declaration to <stdlib.h>.
52507         * lib/stdlib.in.h (strtoull): New declaration.
52508         * m4/strtoull.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52509         Set HAVE_STRTOULL.
52510         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOULL,
52511         HAVE_STRTOULL.
52512         * modules/strtoull (Depends-on): Add stdlib.
52513         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52514         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOULL,
52515         HAVE_STRTOULL.
52516
52517 2008-10-19  Bruno Haible  <bruno@clisp.org>
52518
52519         Add strtoll() declaration to <stdlib.h>.
52520         * lib/stdlib.in.h (strtoll): New declaration.
52521         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Require gl_STDLIB_H_DEFAULTS.
52522         Set HAVE_STRTOLL.
52523         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_STRTOLL,
52524         HAVE_STRTOLL.
52525         * modules/strtoll (Depends-on): Add stdlib.
52526         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52527         * modules/stdlib (Makefile.am): Substitute GNULIB_STRTOLL, HAVE_STRTOLL.
52528
52529 2008-10-19  Bruno Haible  <bruno@clisp.org>
52530
52531         * modules/bcopy (Depends-on): Add strings.
52532         (Include): Specify <strings.h>.
52533
52534 2008-10-19  Bruno Haible  <bruno@clisp.org>
52535
52536         * doc/posix-functions/atexit.texi: Update doc regarding mingw.
52537
52538 2008-10-19  Bruno Haible  <bruno@clisp.org>
52539
52540         * lib/openat-die.c (openat_save_fail, openat_restore_fail): Rename
52541         the parameter from 'errno' to 'errnum'. Fixes a compilation error on
52542         mingw.
52543
52544 2008-10-19  Bruno Haible  <bruno@clisp.org>
52545
52546         * lib/atanl.c: Don't include isnanl.h.
52547         * lib/cosl.c: Likewise.
52548         * lib/ldexpl.c: Likewise.
52549         * lib/logl.c: Likewise.
52550         * lib/sinl.c: Likewise.
52551         * lib/sqrtl.c: Likewise.
52552         * lib/tanl.c: Likewise.
52553
52554         Move the isnanf(), isnand(), isnanl() declarations to <math.h>.
52555         * lib/isnanf.h: Remove file.
52556         * lib/isnand.h: Remove file.
52557         * lib/isnanl.h: Remove file.
52558         * lib/math.in.h: Include the contents of lib/isnanf.h, lib/isnand.h,
52559         lib/isnanl.h. Use HAVE_ISNANF, HAVE_ISNAND, HAVE_ISNANL as substituted
52560         macros.
52561         * m4/isnanf.m4 (gl_FUNC_ISNANF): Require gl_MATH_H_DEFAULTS. Set
52562         HAVE_ISNANF, don't define it as a C macro.
52563         * m4/isnand.m4 (gl_FUNC_ISNAND): Require gl_MATH_H_DEFAULTS. Set
52564         HAVE_ISNAND, don't define it as a C macro.
52565         * m4/isnanl.m4 (gl_FUNC_ISNANL): Require gl_MATH_H_DEFAULTS. Set
52566         HAVE_ISNANL, don't define it as a C macro.
52567         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_ISNAN[FDL] and
52568         HAVE_ISNAN[FDL].
52569         * modules/isnanf (Files): Remove lib/isnanf.h.
52570         (Depends-on): Add math.
52571         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52572         (Include): Specify <math.h> instead of isnanf.h.
52573         * modules/isnand (Files): Remove lib/isnand.h.
52574         (Depends-on): Add math.
52575         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52576         (Include): Specify <math.h> instead of isnand.h.
52577         * modules/isnanl (Files): Remove lib/isnanl.h.
52578         (Depends-on): Add math.
52579         (configure.ac): Invoke gl_MATH_MODULE_INDICATOR.
52580         (Include): Specify <math.h> instead of isnanl.h.
52581         * modules/math (Makefile.am): Substitute GNULIB_ISNAN[FDL] and
52582         HAVE_ISNAN[FDL].
52583         * tests/test-isnanf.c: Include <math.h> instead of isnanf.h.
52584         * tests/test-isnand.c: Include <math.h> instead of isnand.h.
52585         * tests/test-isnanl.c: Include <math.h> instead of isnanl.h.
52586         * NEWS: Mention the change.
52587
52588 2008-10-18  Bruno Haible  <bruno@clisp.org>
52589
52590         Add getusershell(), setusershell(), endusershell() declarations to
52591         <unistd.h>.
52592         * lib/unistd.in.h (getusershell, setusershell, endusershell): New
52593         declarations.
52594         * lib/getusershell.c: Include unistd.h.
52595         * m4/getusershell.m4 (gl_FUNC_GETUSERSHELL): Require
52596         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52597         HAVE_GETUSERSHELL.
52598         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETUSERSHELL
52599         and HAVE_GETUSERSHELL.
52600         * modules/getusershell (Depends-on): Add unistd, extensions.
52601         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52602         (Include): Specify <unistd.h>.
52603         * modules/unistd (Makefile.am): Substitute GNULIB_GETUSERSHELL and
52604         HAVE_GETUSERSHELL.
52605
52606 2008-10-18  Bruno Haible  <bruno@clisp.org>
52607
52608         Add a getloadavg() declaration to <stdlib.h>.
52609         * lib/stdlib.in.h; Include <sys/loadavg.h> when needed for the
52610         getloadavg declaration.
52611         (getloadavg): New declaration.
52612         * lib/getloadavg.c: Include <stdlib.h> first.
52613         * m4/getloadavg.m4 (gl_GETLOADAVG): Require gl_STDLIB_H_DEFAULTS and
52614         AC_USE_SYSTEM_EXTENSIONS. Test whether sys/loadavg.h exists. Set
52615         HAVE_SYS_LOADAVG_H and HAVE_DECL_GETLOADAVG.
52616         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_GETLOADAVG,
52617         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52618         * modules/getloadavg (Depends-on): Add stdlib, extensions.
52619         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
52620         (Include): Specify <stdlib.h>.
52621         * modules/stdlib (Makefile.am): Substitute GNULIB_GETLOADAVG,
52622         HAVE_SYS_LOADAVG_H, HAVE_DECL_GETLOADAVG.
52623
52624 2008-10-18  Bruno Haible  <bruno@clisp.org>
52625
52626         * lib/dirchownmod.c: Don't include lchmod.h.
52627
52628         Move the lchmod() declaration to <sys/stat.h>.
52629         * lib/lchmod.h: Remove file.
52630         * lib/sys_stat.in.h: Add placeholder for GL_LINK_WARNING.
52631         (lchmod): New declaration, moved here from lib/lchown.h.
52632         * m4/lchmod.m4 (gl_FUNC_LCHMOD): Require gl_SYS_STAT_H_DEFAULTS and
52633         AC_USE_SYSTEM_EXTENSIONS. Set HAVE_LCHMOD.
52634         * m4/sys_stat_h.m4 (gl_SYS_STAT_H_DEFAULTS): Initialize GNULIB_LCHMOD
52635         and HAVE_LCHMOD.
52636         * modules/lchmod (Files): Remove lib/lchmod.h.
52637         (Depends-on): Add sys_stat, extensions.
52638         (configure.ac): Invoke gl_SYS_STAT_MODULE_INDICATOR.
52639         (Include): Specify <sys/stat.h> instead of lchmod.h.
52640         * modules/sys_stat (Depends-on): Add link-warning.
52641         (Makefile.am): Substitute GNULIB_LCHMOD, HAVE_LCHMOD, and the
52642         definition of GL_LINK_WARNING.
52643         * NEWS: Mention the change.
52644
52645 2008-10-18  Bruno Haible  <bruno@clisp.org>
52646
52647         * lib/fchdir.c: Don't include dirfd.h.
52648         * lib/fts.c: Likewise.
52649         * lib/getcwd.c: Likewise.
52650         * lib/glob.c: Likewise.
52651
52652         Move the dirfd() declaration to <dirent.h>.
52653         * lib/dirfd.h: Remove file.
52654         * lib/dirent.in.h: Add placeholder for GL_LINK_WARNING.
52655         (dirfd): New declaration.
52656         * lib/dirfd.c: Include <dirent.h> instead of dirfd.h.
52657         * m4/dirfd.m4 (gl_FUNC_DIRFD): Require gl_DIRENT_H_DEFAULTS and
52658         AC_USE_SYSTEM_EXTENSIONS. Invoke gl_REPLACE_DIRENT_H. Set
52659         HAVE_DECL_DIRFD.
52660         * m4/dirent_h.m4 (gl_DIRENT_H_DEFAULTS): Initialize GNULIB_DIRFD and
52661         HAVE_DECL_DIRFD.
52662         * modules/dirfd (Files): Remove lib/dirfd.h.
52663         (Depends-on): Add dirent, extensions.
52664         (configure.ac): Invoke gl_DIRENT_MODULE_INDICATOR.
52665         (Include): Specify <dirent.h> instead of dirfd.h.
52666         * modules/dirent (Depends-on): Add link-warning.
52667         (Makefile.am): Substitute GNULIB_DIRFD, HAVE_DECL_DIRFD, and
52668         definition of GL_LINK_WARNING.
52669         * NEWS: Mention the change.
52670
52671 2008-10-18  Bruno Haible  <bruno@clisp.org>
52672
52673         Move the euidaccess() declaration to <unistd.h>.
52674         * lib/euidaccess.h: Remove file.
52675         * lib/unistd.in.h (euidaccess): New declaration.
52676         * lib/euidaccess.c: Don't include euidaccess.h.
52677         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Require gl_UNISTD_H_DEFAULTS.
52678         Don't check whether euidaccess is declared. Set HAVE_EUIDACCESS.
52679         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_EUIDACCESS
52680         and HAVE_EUIDACCESS.
52681         * modules/euidaccess (Files): Remove lib/euidaccess.h.
52682         (Depends-on): Add unistd.
52683         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52684         (Include): Specify <unistd.h> instead of euidaccess.h.
52685         * modules/unistd (Makefile.am): Substitute GNULIB_EUIDACCESS and
52686         HAVE_EUIDACCESS.
52687         * NEWS: Mention the change.
52688
52689 2008-10-18  Bruno Haible  <bruno@clisp.org>
52690
52691         * lib/xgetdomainname.c: Include <unistd.h> instead of getdomainname.h.
52692
52693         Move the getdomainname() declaration to <unistd.h>.
52694         * lib/getdomainname.h: Remove file.
52695         * lib/unistd.in.h (getdomainname): New declaration.
52696         * lib/getdomainname.c: Include <unistd.h> instead of getdomainname.h.
52697         * m4/getdomainname.m4 (gl_FUNC_GETDOMAINNAME): Require
52698         gl_UNISTD_H_DEFAULTS and AC_USE_SYSTEM_EXTENSIONS. Set
52699         HAVE_GETDOMAINNAME.
52700         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
52701         GNULIB_GETDOMAINNAME and HAVE_GETDOMAINNAME.
52702         * modules/getdomainname (Files): Remove lib/getdomainname.h.
52703         (Depends-on): Add unistd, extensions.
52704         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
52705         (Includes): Specify <unistd.h> instead of getdomainname.h.
52706         * modules/unistd (Makefile.am): Substitute GNULIB_GETDOMAINNAME and
52707         HAVE_GETDOMAINNAME.
52708         * NEWS: Mention the change.
52709
52710 2008-10-18  Bruno Haible  <bruno@clisp.org>
52711
52712         * modules/dirent: New file.
52713         * m4/dirent_h.m4: New file.
52714         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_DIRENT_H_DEFAULTS.
52715         Invoke gl_REPLACE_DIRENT_H. Don't assign DIRENT_H directly.
52716         * modules/fchdir (Files): Remove lib/dirent.in.h.
52717         (Depends-on): Add dirent.
52718         (Makefile.am): Move rules to modules/dirent.
52719         * doc/posix-headers/dirent.texi: Mention the new module.
52720
52721 2008-10-18  Bruno Haible  <bruno@clisp.org>
52722
52723         Avoid -Wunused-parameter warnings in public gnulib header files.
52724         * m4/gnulib-common.m4 (gl_COMMON_BODY): Define _UNUSED_PARAMETER_ as a
52725         macro.
52726         * lib/unistr.h (u32_mbtouc_unsafe, u32_mbtouc): Use it.
52727
52728 2008-10-18  Bruno Haible  <bruno@clisp.org>
52729
52730         * doc/glibc-functions/dirfd.texi: Mention the module 'dirfd'.
52731         * doc/glibc-functions/error.texi: Mention the module 'error'.
52732         * doc/glibc-functions/euidaccess.texi: Mention the module 'euidaccess'.
52733         * doc/glibc-functions/getdomainname.texi: Mention the module
52734         'getdomainname'.
52735         * doc/glibc-functions/getloadavg.texi: Mention the module 'getloadavg'.
52736         * doc/glibc-functions/getpagesize.texi: Mention the module
52737         'getpagesize'.
52738         * doc/glibc-functions/getusershell.texi: Mention the module
52739         'getusershell'.
52740         * doc/glibc-functions/isnanl.texi: Mention the module 'isnanl'.
52741         * doc/glibc-functions/lchmod.texi: Mention the module 'lchmod'.
52742         * doc/glibc-functions/mempcpy.texi: Mention the module 'mempcpy'.
52743         * doc/glibc-functions/memrchr.texi: Mention the module 'memrchr'.
52744         * doc/glibc-functions/mkdtemp.texi: Mention the module 'mkdtemp'.
52745         * doc/glibc-functions/rpmatch.texi: Mention the module 'rpmatch'.
52746         * doc/glibc-functions/stpcpy.texi: Mention the module 'stpcpy'.
52747         * doc/glibc-functions/stpncpy.texi: Mention the module 'stpncpy'.
52748         * doc/glibc-functions/strchrnul.texi: Mention the module 'strchrnul'.
52749         * doc/glibc-functions/strndup.texi: Mention the module 'strndup'.
52750         * doc/glibc-functions/strnlen.texi: Mention the module 'strnlen'.
52751         * doc/glibc-functions/strsep.texi: Mention the module 'strsep'.
52752         * doc/glibc-functions/timegm.texi: Mention the module 'timegm'.
52753         * doc/glibc-functions/vasprintf.texi: Mention the module 'vasprintf'.
52754
52755 2008-10-17  Bruno Haible  <bruno@clisp.org>
52756
52757         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): On platforms other than
52758         HP-UX and IRIX, use -0.0L.
52759         * tests/test-ceill.c (minus_zero): Likewise.
52760         * tests/test-floorl.c (minus_zero): Likewise.
52761         * tests/test-frexpl.c (minus_zero): Likewise.
52762         * tests/test-isnan.c (minus_zerol): Likewise.
52763         * tests/test-isnanl.h (minus_zero): Likewise.
52764         * tests/test-ldexpl.c (minus_zero): Likewise.
52765         * tests/test-roundl.c (minus_zero): Likewise.
52766         * tests/test-signbit.c (minus_zerol): Likewise.
52767         * tests/test-snprintf-posix.h (minus_zerol): Likewise.
52768         * tests/test-sprintf-posix.h (minus_zerol): Likewise.
52769         * tests/test-truncl.c (minus_zero): Likewise.
52770         * tests/test-vasnprintf-posix.c (minus_zerol): Likewise.
52771         * tests/test-vasprintf-posix.c (minus_zerol): Likewise.
52772         Reported by Markus Armbruster <armbru@redhat.com> via Jim Meyering
52773         and by Nelson H. F. Beebe <beebe@math.utah.edu> via Eric Blake.
52774
52775 2008-10-17  Bruno Haible  <bruno@clisp.org>
52776
52777         Avoid gcc warnings because of #pragma GCC system_header on older gcc.
52778         * lib/arpa_inet.in.h: Encloses reference to PRAGMA_SYSTEM_HEADER so
52779         that it gets activated only for gcc >= 3.0.
52780         * lib/dirent.in.h: Likewise.
52781         * lib/errno.in.h: Likewise.
52782         * lib/fcntl.in.h: Likewise.
52783         * lib/float.in.h: Likewise.
52784         * lib/iconv.in.h: Likewise.
52785         * lib/inttypes.in.h: Likewise.
52786         * lib/locale.in.h: Likewise.
52787         * lib/math.in.h: Likewise.
52788         * lib/netdb.in.h: Likewise.
52789         * lib/netinet_in.in.h: Likewise.
52790         * lib/search.in.h: Likewise.
52791         * lib/signal.in.h: Likewise.
52792         * lib/spawn.in.h: Likewise.
52793         * lib/stdarg.in.h: Likewise.
52794         * lib/stdint.in.h: Likewise.
52795         * lib/stdio.in.h: Likewise.
52796         * lib/stdlib.in.h: Likewise.
52797         * lib/string.in.h: Likewise.
52798         * lib/strings.in.h: Likewise.
52799         * lib/sys_file.in.h: Likewise.
52800         * lib/sys_ioctl.in.h: Likewise.
52801         * lib/sys_select.in.h: Likewise.
52802         * lib/sys_socket.in.h: Likewise.
52803         * lib/sys_stat.in.h: Likewise.
52804         * lib/sys_time.in.h: Likewise.
52805         * lib/sysexits.in.h: Likewise.
52806         * lib/time.in.h: Likewise.
52807         * lib/unistd.in.h: Likewise.
52808         * lib/wchar.in.h: Likewise.
52809         * lib/wctype.in.h: Likewise.
52810         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
52811
52812 2008-10-17  Jim Meyering  <meyering@redhat.com>
52813
52814         ignore-value: don't depend on inline module
52815         * modules/ignore-value (Depends-on): Remove 'inline'.
52816         (configure.ac): Instead, add AC_REQUIRE([AC_C_INLINE]) here.
52817         Suggestion from Bruno Haible.
52818
52819 2008-10-17  Bruno Haible  <bruno@clisp.org>
52820
52821         New implementation of condition variables for Win32.
52822         * lib/glthread/cond.h (struct gl_waitqueue_link): New type.
52823         (gl_linked_waitqueue_t): New type.
52824         (gl_cond_t): Use it.
52825         * lib/glthread/cond.c (struct gl_waitqueue_element): New type.
52826         (gl_waitqueue_init, gl_waitqueue_add, gl_waitqueue_remove,
52827         gl_waitqueue_notify_first, gl_waitqueue_notify_all): New functions.
52828         (glthread_cond_init_func, glthread_cond_wait_func,
52829         glthread_cond_timedwait_func, glthread_cond_signal_func,
52830         glthread_cond_broadcast_func, glthread_cond_destroy_func):
52831         Reimplemented on the basis of gl_linked_waitqueue_t.
52832         * lib/glthread/lock.h (gl_carray_waitqueue_t): Renamed from
52833         gl_waitqueue_t.
52834         (gl_rwlock_t): Update.
52835         * lib/glthread/lock.c (gl_waitqueue_t): Alias to gl_carray_waitqueue_t.
52836
52837 2008-10-17  Simon Josefsson  <simon@josefsson.org>
52838
52839         * modules/recvfrom (Depends-on): Add dependency on getpeername.
52840         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52841
52842 2008-10-17  Jim Meyering  <meyering@redhat.com>
52843
52844         ignore-value: new module
52845         * modules/ignore-value: New file.
52846         * lib/ignore-value.h: New file.
52847         * MODULES.html.sh (Compiler warning management): New section,
52848         just for this module.  More to come.
52849
52850 2008-10-16  Paul Eggert  <eggert@cs.ucla.edu>
52851
52852         open-safer.c: avoid 'signed and unsigned in conditional...' warning
52853         * lib/open-safer.c (open_safer): Use an "if/else" statement in place
52854         of the ternary operator.  Reported by Reuben Thomas <rrt@sc3d.org>.
52855
52856 2008-10-16  Jim Meyering  <meyering@redhat.com>
52857
52858         openat-die.c: avoid 'no previous prototype' warning
52859         * lib/openat-die.c: Include "openat.h".
52860         Reported by Reuben Thomas <rrt@sc3d.org>.
52861
52862 2008-10-16  Simon Josefsson  <simon@josefsson.org>
52863
52864         * m4/netdb_h.m4: Assume that if netdb.h exists, it works.
52865         * lib/netdb.in.h: Fix typo.
52866         Reported by Bruno Haible  <bruno@clisp.org>
52867
52868         * lib/netdb.in.h: Include sys/socket.h for platforms without
52869         netdb.h, to get structures like hostent on MinGW.
52870         * modules/netdb (Depends-on): Add sys_socket.
52871
52872 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52873
52874         * modules/netdb, modules/netdb-tests: New file.
52875         * m4/netdb_h.m4: New file.
52876         * lib/netdb.in.h: Add, currently just an empty file pending
52877         definitions.
52878         * tests/test-netdb.c: New file.
52879         * doc/posix-headers/netdb.texi: Mention that we replace it if
52880         needed.
52881         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
52882         netdb.
52883
52884 2008-10-15  Simon Josefsson  <simon@josefsson.org>
52885
52886         * doc/gnulib.texi (Getaddrinfo and WINVER): Sync documentation
52887         with code.
52888
52889 2008-10-13  Bruno Haible  <bruno@clisp.org>
52890
52891         * lib/glthread/cond.c (glthread_cond_wait_func,
52892         glthread_cond_timedwait_func): Add a comment.
52893
52894 2008-10-13  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52895
52896         * tests/test-poll.c: Include <sys/ioctl.h>, for ioctl().
52897         * tests/test-select.c: Likewise,
52898
52899 2008-10-13  Bruno Haible  <bruno@clisp.org>
52900
52901         * lib/glthread/cond.c (glthread_cond_wait_func,
52902         glthread_cond_timedwait_func): Fix variable name.
52903         Reported by Yoann Vandoorselaere <yoann@prelude-ids.org>.
52904
52905 2008-10-13  Paolo Bonzini  <bonzini@gnu.org>
52906
52907         fix getaddrinfo emulation for systems with struct sockaddr.sa_len
52908         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Detect
52909         struct sockaddr.sa_len.
52910         * lib/getaddrinfo.c (getaddrinfo): Set it if appropriate.
52911
52912 2008-10-13  Simon Josefsson  <simon@josefsson.org>
52913
52914         * build-aux/pmccabe2html: Add css and css_url parameters.
52915
52916 2008-10-12  Bruno Haible  <bruno@clisp.org>
52917
52918         * tests/test-sameacls.c (main) [AIX]: Clear type argument before
52919         calling aclx_get.
52920         Reported by Rainer Tammer <tammer@tammer.net>.
52921
52922 2008-10-12  Bruno Haible  <bruno@clisp.org>
52923
52924         Use msvcrt aware primitives for creation/termination of Win32 threads.
52925         * lib/glthread/thread.c: Include <process.h>.
52926         (glthread_create_func): Use _beginthreadex instead of CreateThread.
52927         (wrapper_func): Update signature.
52928         (gl_thread_exit_func): Use _endthreadex instead of EndThread.
52929
52930 2008-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
52931             Bruno Haible  <bruno@clisp.org>
52932
52933         Provide a Win32 implementation of the 'cond' module.
52934         * lib/glthread/cond.h [USE_WIN32]: New implementation.
52935         * lib/glthread/cond.c (glthread_cond_init_func,
52936         glthread_cond_wait_func, glthread_cond_timedwait_func,
52937         glthread_cond_signal_func, glthread_cond_broadcast_func,
52938         glthread_cond_destroy_func) [USE_WIN32]: New functions.
52939         * modules/cond (Dependencies): Add gettimeofday.
52940
52941 2008-10-11  Bruno Haible  <bruno@clisp.org>
52942
52943         Make sleep work on older versions of mingw.
52944         * m4/sleep.m4 (gl_FUNC_SLEEP): Test whether 'sleep' is declared, not
52945         only whether it exists.
52946         * doc/posix-functions/sleep.texi: Mention the problem with older
52947         versions of mingw.
52948
52949 2008-10-11  Bruno Haible  <bruno@clisp.org>
52950
52951         New module 'shutdown'.
52952         * modules/shutdown: New file.
52953         * lib/sys_socket.in.h (shutdown): New declaration.
52954         * lib/winsock.c (shutdown): New function.
52955         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_H_DEFAULTS): Initialize
52956         GNULIB_SHUTDOWN.
52957         * modules/sys_socket (Makefile.am): Substitute GNULIB_SHUTDOWN.
52958         * doc/posix-functions/shutdown.texi: Document the new module.
52959
52960 2008-10-11  Jim Meyering  <meyering@redhat.com>
52961
52962         * lib/fclose.c: Fix typo in comment: s/close/fclose/.
52963
52964 2008-10-11  Bruno Haible  <bruno@clisp.org>
52965
52966         New module 'fclose'.
52967         * modules/fclose: New file.
52968         * lib/stdio.in.h (fclose): New declaration.
52969         * lib/fclose.c: New file.
52970         * m4/fclose.m4: New file.
52971         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FCLOSE,
52972         REPLACE_FCLOSE.
52973         * m4/close.m4 (gl_REPLACE_CLOSE): Invoke gl_REPLACE_FCLOSE.
52974         * modules/stdio (Makefile.am): Substitute GNULIB_FCLOSE,
52975         REPLACE_FCLOSE.
52976         * modules/close (Depends-on): fclose.
52977         * doc/posix-functions/fclose.texi: Mention the problem on Windows.
52978
52979 2008-10-11  Bruno Haible  <bruno@clisp.org>
52980
52981         * lib/winsock.c (_gl_close_fd_maybe_socket): If closesocket fails,
52982         set errno and don't call _close.
52983
52984 2008-10-10  Bruno Haible  <bruno@clisp.org>
52985
52986         * lib/copy-acl.c (qcopy_acl) [CYGWIN]: Call chmod before setting the
52987         ACL, not afterwards. Fixes test failure on Cygwin.
52988
52989 2008-10-09  Ben Pfaff  <blp@gnu.org>
52990
52991         * build-aux/announce-gen: Fix gnulib version related part of usage
52992         message.  Die with a useful error message if no tarballs are
52993         found.
52994
52995 2008-10-10  Jim Meyering  <meyering@redhat.com>
52996
52997         bootstrap: use git's --depth=N option only if it's supported
52998         * build-aux/bootstrap: Work with git-1.4.4.4, which does not
52999         recognize the --depth option.  Reported by Pádraig Brady.
53000
53001 2008-10-09  Bruno Haible  <bruno@clisp.org>
53002
53003         New module 'ioctl'.
53004         * modules/ioctl: New file.
53005         * lib/sys_socket.in.h (ioctl): Remove declaration.
53006         * lib/winsock.c: Include <sys/ioctl.h>.
53007         (rpl_ioctl): Define only of the gnulib module 'ioctl' is present.
53008         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Require
53009         gl_SYS_IOCTL_H_DEFAULTS. Set also SYS_IOCTL_H_HAVE_WINSOCK2_H.
53010         * modules/sys_socket (Files): Add m4/sys_ioctl_h.m4.
53011         * doc/posix-functions/ioctl.texi: Mention the new module.
53012
53013 2008-10-09  Bruno Haible  <bruno@clisp.org>
53014
53015         New module 'sys_ioctl'.
53016         * lib/sys_ioctl.in.h: New file.
53017         * m4/sys_ioctl_h.m4: New file.
53018         * modules/sys_ioctl: New file.
53019         * doc/glibc-headers/sys_ioctl.texi: Mention the new module.
53020
53021 2008-10-09  Bruno Haible  <bruno@clisp.org>
53022
53023         * lib/sys_socket.in.h (ioctl): Make signature POSIX compliant.
53024         * lib/winsock.c: Include <stdarg.h>.
53025         (rpl_ioctl): Change to second argument 'int' and then varargs.
53026
53027 2008-10-09  Bruno Haible  <bruno@clisp.org>
53028
53029         * m4/close.m4 (gl_FUNC_CLOSE): Arrange to replace the close() function
53030         when the sys_socket module is present and the system has <winsock2.h>.
53031
53032 2008-10-09  Bruno Haible  <bruno@clisp.org>
53033
53034         * doc/posix-functions/close.texi: Mention module 'close' instead of
53035         module 'sys_socket'.
53036
53037 2008-10-09  Bruno Haible  <bruno@clisp.org>
53038
53039         * doc/glibc-headers/sys_ioctl.texi: New file.
53040         * doc/gnulib.texi: Include it.
53041
53042 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53043             Bruno Haible  <bruno@clisp.org>
53044
53045         Combine the two replacements of 'close'.
53046         * lib/sys_socket.in.h (close): Define to a reminder to include
53047         <unistd.h>.
53048         (_gl_close_fd_maybe_socket): New declaration.
53049         (HAVE__GL_CLOSE_FD_MAYBE_SOCKET): New macro.
53050         * lib/winsock.c (close): Remove undefinition.
53051         (_gl_close_fd_maybe_socket): Renamed from rpl_close. Define only when
53052         needed for the gnulib module 'close'.
53053         * lib/unistd.in.h (close): If the gnulib module 'close' is not used,
53054         define to an error symbol or to a warning, if suitable.
53055         * lib/close.c: Include <sys/socket.h>.
53056         (rpl_close): Invoke _gl_close_fd_maybe_socket when gnulib defines it.
53057         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): Set also
53058         UNISTD_H_HAVE_WINSOCK2_H.
53059         (gl_SYS_SOCKET_H_DEFAULTS): Require gl_UNISTD_H_DEFAULTS.
53060         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53061         UNISTD_H_HAVE_WINSOCK2_H.
53062         * modules/sys_socket (Files): Add m4/unistd_h.m4.
53063         (configure.ac): Set a module indicator.
53064         (Makefile.am): Substitute GNULIB_CLOSE.
53065         * modules/unistd (Makefile.am): Substitute UNISTD_H_HAVE_WINSOCK2_H.
53066         * modules/poll-tests (Depends-on): Add close.
53067         * modules/select-tests (Depends-on): Likewise.
53068
53069 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53070             Bruno Haible  <bruno@clisp.org>
53071
53072         New module 'close'.
53073         * modules/close: New file.
53074         * lib/unistd.in.h (close): Move declaration out of the
53075         FCHDIR_REPLACEMENT scope.
53076         (_gl_unregister_fd): New declaration.
53077         * lib/close.c: New file.
53078         * lib/fchdir.c (rpl_close): Remove function.
53079         * m4/close.m4: New file.
53080         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53081         close.
53082         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_CLOSE and
53083         REPLACE_CLOSE.
53084         * modules/unistd (Makefile.am): Substitute GNULIB_CLOSE and
53085         REPLACE_CLOSE.
53086         * modules/fchdir (Depends-on): Add close.
53087
53088 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53089             Bruno Haible  <bruno@clisp.org>
53090
53091         * lib/fcntl.in.h (open): Simplify conditionals.
53092         (_gl_register_fd): New declaration.
53093         * lib/fchdir.c (rpl_open): Remove function.
53094         * lib/open.c: When FCHDIR_REPLACEMENT is defined, compile the file
53095         also.
53096         (open): When FCHDIR_REPLACEMENT is defined, invoke _gl_register_fd.
53097         * m4/fchdir.m4 (gl_FUNC_FCHDIR): When replacing fchdir, also replace
53098         open.
53099
53100 2008-10-09  Jim Meyering  <meyering@redhat.com>
53101
53102         GNUmakefile: use the more name-space-friendly "_version"
53103         * top/GNUmakefile (_dummy): Update.
53104         (_version): Rename from "version".
53105
53106 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53107             Bruno Haible  <bruno@clisp.org>
53108
53109         * lib/fchdir.c (_gl_unregister_fd): New functions, extracted from
53110         rpl_close.
53111         (_gl_register_fd): New function, extracted from rpl_open.
53112         (rpl_close, rpl_closedir): Use _gl_unregister_fd.
53113         (rpl_open, rpl_opendir): Use _gl_register_fd.
53114
53115 2008-10-09  Paolo Bonzini  <bonzini@gnu.org>
53116
53117         Fix organization of 'open' replacement.
53118         * m4/open.m4 (gl_REPLACE_OPEN): New macro.
53119         (gl_FUNC_OPEN): Use it.
53120         (gl_PREREQ_OPEN): Add a : to make the body non-empty.
53121
53122 2008-10-08  Bruno Haible  <bruno@clisp.org>
53123
53124         * modules/getdate-tests (test_getdata_LDADD): Add LIBINTL.
53125
53126 2008-10-08  Simon Josefsson  <simon@josefsson.org>
53127
53128         * m4/sys_socket_h.m4: Don't AC_LIBOBJ(winsock).  The file is
53129         AC_LIBOBJ'ed by each gnulib module that needs it (e.g., socket,
53130         listen).
53131
53132 2008-10-08  Eric Blake  <ebb9@byu.net>
53133
53134         GNUmakefile: add 'make version' target
53135         * top/GNUmakefile (_curr-ver): Split version update rules...
53136         (version): ...into a target.
53137
53138 2008-10-07  Bruno Haible  <bruno@clisp.org>
53139
53140         Use a more portable replacement expression for -0.0L.
53141         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Use -LDBL_MIN * LDBL_MIN
53142         instead of -0.0L. Fix m4 quotation.
53143
53144         * tests/test-signbit.c: Include <float.h>.
53145         (minus_zero): New variable.
53146         (test_signbitl): Use minus_zero instead of -zero.
53147         * modules/signbit-tests (Depends-on): Add float.
53148
53149         * tests/test-ceill.c: Include <float.h>.
53150         (zero): Remove variable.
53151         (minus_zero): New variable.
53152         (main): Use minus_zero instead of -zero.
53153         * modules/ceill-tests (Depends-on): Add float.
53154
53155         * tests/test-floorl.c: Include <float.h>.
53156         (zero): Remove variable.
53157         (minus_zero): New variable.
53158         (main): Use minus_zero instead of -zero.
53159         * modules/floorl-tests (Depends-on): Add float.
53160
53161         * tests/test-roundl.c: Include <float.h>.
53162         (zero): Remove variable.
53163         (minus_zero): New variable.
53164         (main): Use minus_zero instead of -zero.
53165         * modules/roundl-tests (Depends-on): Add float.
53166
53167         * tests/test-truncl.c: Include <float.h>.
53168         (zero): Remove variable.
53169         (minus_zero): New variable.
53170         (main): Use minus_zero instead of -zero.
53171         * modules/truncl-tests (Depends-on): Add float.
53172
53173         * tests/test-frexpl.c (zero): Remove variable.
53174         (minus_zero): New variable.
53175         (main): Use minus_zero instead of -zero.
53176         * modules/frexpl-tests (Depends-on): Add float.
53177
53178         * tests/test-isnan.c (zerol): Remove variable.
53179         (minus_zerol): New variable.
53180         (test_long_double): Use minus_zerol instead of -zerol.
53181         * modules/isnan-tests (Depends-on): Add float.
53182
53183         * tests/test-isnanl.h (zero): Remove variable.
53184         (minus_zero): New variable.
53185         (main): Use minus_zero instead of -zero.
53186         * modules/isnanl-nolibm-tests (Depends-on): Add float.
53187         * modules/isnanl-tests (Depends-on): Add float.
53188
53189         * tests/test-ldexpl.c (zero): Remove variable.
53190         (minus_zero): New variable.
53191         (main): Use minus_zero instead of -zero.
53192         * modules/ldexpl-tests (Depends-on): Add float.
53193
53194         * tests/test-snprintf-posix.h (zerol): Remove variable.
53195         (minus_zerol): New variable.
53196         (test_function): Use minus_zerol instead of -zerol.
53197         * modules/snprintf-posix-tests (Depends-on): Add float.
53198         * modules/vsnprintf-posix-tests (Depends-on): Add float.
53199
53200         * tests/test-sprintf-posix.h (zerol): Remove variable.
53201         (minus_zerol): New variable.
53202         (test_function): Use minus_zerol instead of -zerol.
53203         * modules/sprintf-posix-tests (Depends-on): Add float.
53204         * modules/vsprintf-posix-tests (Depends-on): Add float.
53205
53206         * tests/test-vasnprintf-posix.c (zerol): Remove variable.
53207         (minus_zerol): New variable.
53208         (test_function): Use minus_zerol instead of -zerol.
53209         * modules/vasnprintf-posix-tests (Depends-on): Add float.
53210
53211         * tests/test-vasprintf-posix.c (zerol): Remove variable.
53212         (minus_zerol): New variable.
53213         (test_function): Use minus_zerol instead of -zerol.
53214         * modules/vasprintf-posix-tests (Depends-on): Add float.
53215
53216 2008-10-07  Simon Josefsson  <simon@josefsson.org>
53217
53218         * MODULES.html.sh (Support for building documentation): Mention
53219         pmccabe2html.  Sort entries.
53220
53221         Add pmccabe2html module, from gnupdf.
53222         * build-aux/pmccabe.css: New file.
53223         * build-aux/pmccabe2html: New file.
53224         * m4/pmccabe2html.m4: New file.
53225         * modules/pmccabe2html: New file.
53226
53227 2008-10-07  Richard W.M. Jones <rjones@redhat.com>
53228
53229         flock: new module
53230         * MODULES.html.sh: Add to list of modules.
53231         * lib/flock.c: flock implementation for Windows and Unix systems
53232         which have fcntl.
53233         * doc/glibc-functions/flock.texi: Update documentation.
53234         * lib/sys_file.in.h: <sys/file.h> header file.
53235         * m4/flock.m4: M4 macros.
53236         * m4/sys_file_h.m4: M4 macros for replacement sys/file.h.
53237         * modules/flock: flock module.
53238         * modules/flock-tests: flock tests module.
53239         * modules/sys_file: sys/file.h module.
53240         * tests/test-flock.c: test suite for flock.
53241
53242 2008-10-06  Jim Meyering  <meyering@redhat.com>
53243
53244         bootstrap: check for LT_INIT more portably still ;-)
53245         * build-aux/bootstrap: Don't rely on \>, since it's not portable.
53246         Spotted by Bruno Haible.
53247
53248 2008-10-06  Eric Blake  <ebb9@byu.net>
53249
53250         test-signbit: avoid tripping Irix cc bug on -0.0L
53251         * tests/test-signbit.c (minus_zerol): Delete, and replace with
53252         '-zerol'.  This may break on HP-UX/hppa, but at least makes the
53253         entire testsuite consistent and avoids an Irix 6.2 bug.
53254
53255 2008-10-05  Bruno Haible  <bruno@clisp.org>
53256             Jim Meyering  <jim@meyering.net>
53257
53258         Add an option for ignoring EPIPE during close_stdout.
53259         * lib/closeout.h: Include <stdbool.h>.
53260         (close_stdout_set_ignore_EPIPE): New declaration.
53261         * lib/closeout.c: Include <stdbool.h>.
53262         (ignore_EPIPE): New variable.
53263         (close_stdout_set_ignore_EPIPE): New function.
53264         (close_stdout): Ignore EPIPE error if ignore_EPIPE is set.
53265         * lib/close-stream.c (close_stream): Mention the possible EPIPE
53266         failure.
53267         * modules/closeout (Depends-on): Add stdbool.
53268
53269 2008-10-05  Bruno Haible  <bruno@clisp.org>
53270
53271         * modules/accept: New file.
53272         * modules/bind: New file.
53273         * modules/connect: New file.
53274         * modules/getpeername: New file.
53275         * modules/getsockname: New file.
53276         * modules/getsockopt: New file.
53277         * modules/listen: New file.
53278         * modules/recv: New file.
53279         * modules/recvfrom: New file.
53280         * modules/send: New file.
53281         * modules/sendto: New file.
53282         * modules/setsockopt: New file.
53283         * modules/socket: New file.
53284         * lib/sys_socket.in.h: Include the GL_LINK_WARNING definition.
53285         (socket, connect, accept, bind, getpeername, getsockname, getsockopt,
53286         listen, recv, send, recvfrom, sendto, setsockopt): Declare only when
53287         the particular module is requested. Add a link warning when the
53288         particular module is not requested.
53289         * lib/winsock.c (rpl_socket, rpl_connect, rpl_accept, rpl_bind,
53290         rpl_getpeername, rpl_getsockname, rpl_getsockopt, rpl_listen, rpl_recv,
53291         rpl_send, rpl_recvfrom, rpl_sendto, rpl_setsockopt): Define only when
53292         the particular module is requested.
53293         * m4/sys_socket_h.m4 (gl_SYS_SOCKET_MODULE_INDICATOR,
53294         gl_SYS_SOCKET_H_DEFAULTS): New macros.
53295         (gl_HEADER_SYS_SOCKET): Require gl_SYS_SOCKET_H_DEFAULTS.
53296         * modules/sys_socket (Depends-on): Add link-warning.
53297         (Makeifle.am): Substitute GNULIB_SOCKET, GNULIB_CONNECT, GNULIB_ACCEPT,
53298         GNULIB_BIND, GNULIB_GETPEERNAME, GNULIB_GETSOCKNAME, GNULIB_GETSOCKOPT,
53299         GNULIB_LISTEN, GNULIB_RECV, GNULIB_SEND, GNULIB_RECVFROM,
53300         GNULIB_SENDTO, GNULIB_SETSOCKOPT, and the definition of
53301         GL_LINK_WARNING.
53302         * doc/posix-functions/accept.texi: Mention the new module 'accept'.
53303         * doc/posix-functions/bind.texi: Mention the new module 'bind'.
53304         * doc/posix-functions/connect.texi: Mention the new module 'connect'.
53305         * doc/posix-functions/getpeername.texi: Mention the new module
53306         'getpeername'.
53307         * doc/posix-functions/getsockname.texi: Mention the new module
53308         'getsockname'.
53309         * doc/posix-functions/getsockopt.texi: Mention the new module
53310         'getsockopt'.
53311         * doc/posix-functions/listen.texi: Mention the new module 'listen'.
53312         * doc/posix-functions/recv.texi: Mention the new module 'recv'.
53313         * doc/posix-functions/recvfrom.texi: Mention the new module 'recvfrom'.
53314         * doc/posix-functions/send.texi: Mention the new module 'send'.
53315         * doc/posix-functions/sendto.texi: Mention the new module 'sendto'.
53316         * doc/posix-functions/setsockopt.texi: Mention the new module
53317         'setsockopt'.
53318         * doc/posix-functions/socket.texi: Mention the new module 'socket'.
53319         * modules/poll-tests (Depends-on): Add socket, bind, getsockopt,
53320         listen, connect, accept.
53321         * modules/select-tests (Depends-on): Likewise.
53322
53323 2008-10-05  Bruno Haible  <bruno@clisp.org>
53324
53325         * lib/winsock.c (strerror): Remove unused #undef.
53326         (rpl_close): Remove unused local variable.
53327
53328         * modules/sys_socket (Depends-on); Add errno.
53329
53330 2008-10-05  Bruno Haible  <bruno@clisp.org>
53331
53332         * lib/sys_select.in.h: Include the GL_LINK_WARNING definition.
53333         (select): Add a link warning when the 'select' module is not used.
53334         * modules/sys_select (Depends-on): Add link-warning.
53335         (Makefile.am): Substitute the definition of GL_LINK_WARNING.
53336         Suggested by Paolo Bonzini.
53337
53338 2008-10-05  Jim Meyering  <meyering@redhat.com>
53339
53340         bootstrap: check for LT_INIT more portably
53341         * build-aux/bootstrap: Avoid using grep -E, since it's not
53342         portable enough.  Suggestion from Bruno Haible.
53343
53344 2008-10-05  Bruno Haible  <bruno@clisp.org>
53345
53346         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem
53347         as being fixed by gnulib.
53348
53349 2008-10-05  Bruno Haible  <bruno@clisp.org>
53350
53351         * modules/select-tests: New file, mostly copied from
53352         modules/sys_select-tests.
53353         * tests/test-select.c: New file, mostly copied from
53354         tests/test-sys_select.c.
53355         * tests/test-sys_select.c: Move most of the code to tests/test-select.c.
53356         * modules/sys_select-tests (Depends-on): Remove all dependencies.
53357         (Makefile.am): Remove test_sys_select_LDADD.
53358
53359         * lib/sys_select.in.h (select): If GNULIB_SELECT is not set, define it
53360         to an undefined symbol, for an error message.
53361         * m4/sys_select_h.m4 (gl_SYS_SELECT_MODULE_INDICATOR): New macro.
53362         (gl_SYS_SELECT_H_DEFAULTS): New macro.
53363         (gl_HEADER_SYS_SELECT): Require it. Don't require compilation of
53364         winsock-select.c here.
53365         * modules/sys_select (Files): Remove lib/winsock-select.c.
53366         (Depends-on): Remove alloca.
53367         (Makefile.am): Substitute GNULIB_SELECT.
53368         * modules/select: New file.
53369         * doc/posix-functions/select.texi: Update.
53370
53371 2008-10-05  Bruno Haible  <bruno@clisp.org>
53372
53373         * lib/spawn_faction_addclose.c (__sysconf): Use getdtablesize always.
53374         * lib/spawn_faction_adddup2.c (__sysconf): Likewise.
53375         * lib/spawn_faction_addopen.c (__sysconf): Likewise.
53376         * modules/posix_spawn_file_actions_addclose (Depends-on): Add
53377         getdtablesize.
53378         * modules/posix_spawn_file_actions_adddup2 (Depends-on): Likewise.
53379         * modules/posix_spawn_file_actions_addopen (Depends-on): Likewise.
53380
53381 2008-10-05  Bruno Haible  <bruno@clisp.org>
53382
53383         * modules/getdtablesize-tests: New file.
53384         * tests/test-getdtablesize.c: New file.
53385
53386         New module 'getdtablesize'.
53387         * lib/unistd.in.h (getdtablesize): New declaration.
53388         * lib/getdtablesize.c: New file.
53389         * m4/getdtablesize.m4: New file.
53390         * modules/getdtablesize: New file.
53391         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
53392         GNULIB_GETDTABLESIZE, HAVE_GETDTABLESIZE.
53393         * modules/unistd (Makefile.am): Substitute GNULIB_GETDTABLESIZE,
53394         HAVE_GETDTABLESIZE.
53395         * doc/glibc-functions/getdtablesize.texi: Mention the new module.
53396
53397 2008-10-05  Bruno Haible  <bruno@clisp.org>
53398
53399         * modules/sched (Makefile.am): Fix typo.
53400         Reported by Simon Josefsson.
53401
53402 2008-10-05  Jim Meyering  <meyering@redhat.com>
53403
53404         bootstrap: check for LT_INIT, too
53405         * build-aux/bootstrap: Both AC_PROG_LIBTOOL and AM_PROG_LIBTOOL
53406         are deprecated.  Suggestion from Ralf Wildenhues.
53407
53408 2008-10-05  Bruno Haible  <bruno@clisp.org>
53409
53410         * lib/spawn.in.h (POSIX_SPAWN_*): Use the system's values, rather than
53411         overriding them by ours.
53412         (POSIX_SPAWN_USEVFORK): Use the next free bit position.
53413
53414 2008-10-05  Jim Meyering  <meyering@redhat.com>
53415
53416         bootstrap: check for AC_PROG_LIBTOOL as well as AM_PROG_LIBTOOL
53417         * build-aux/bootstrap: Check for AC_PROG_LIBTOOL, as well as the
53418         obsolete AM_PROG_LIBTOOL.  Spotted by Debarshi Ray <rishi@gnu.org>.
53419
53420 2008-10-04  Bruno Haible  <bruno@clisp.org>
53421
53422         * modules/dup2 (License): Change to LGPLv2+.
53423         * modules/sleep (License): Likewise.
53424         * modules/perror (License): Likewise.
53425         * modules/fopen (License): Change to LGPLv2+, with approval by Eric
53426         Blake.
53427         * modules/signal (License): Likewise.
53428         * modules/sigprocmask (License): Likewise.
53429         * modules/raise (License): Change to LGPLv2+, with approval by Jim
53430         Meyering.
53431
53432 2008-10-04  Bruno Haible  <bruno@clisp.org>
53433
53434         * lib/spawn.in.h (POSIX_SPAWN_*): Undefine before redefining.
53435         Reported by Rainer Tammer <tammer@tammer.net>.
53436
53437 2008-10-03  Paolo Bonzini  <bonzini@gnu.org>
53438             Bruno Haible  <bruno@clisp.org>
53439
53440         * lib/errno.in.h (EWOULDBLOCK) [win32]: Define to EAGAIN.
53441         * lib/winsock.c (set_winsock_errno): Map WSAEWOULDBLOCK to EWOULDBLOCK.
53442         * lib/strerror.c (rpl_strerror): Remove error string for EWOULDBLOCK.
53443
53444 2008-10-03  Kamil Dudka  <kdudka@redhat.com>
53445
53446         filevercmp: new module
53447         * lib/filevercmp.h: New function filevercmp comparing version strings.
53448         * lib/filevercmp.c: Implementation of filevercmp function.
53449         * modules/filevercmp: Module metadata.
53450         * tests/test-filevercmp.c: Unit test for new module.
53451         * modules/filevercmp-tests: Unit test metadata.
53452         * MODULES.html.sh: Add filevercmp module.
53453
53454 2008-10-03  Bruno Haible  <bruno@clisp.org>
53455
53456         * lib/c-ctype.h: Add comment.
53457         Reported by Jim Meyering.
53458
53459 2008-10-02  Bruno Haible  <bruno@clisp.org>
53460
53461         * modules/posix_spawn-internal (Depends-on): Add 'open'.
53462
53463 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53464
53465         * build-aux/bootstrap: Allow renaming bootstrap, and change the
53466         name of bootstrap.conf accordingly.
53467
53468 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53469
53470         * build-aux/bootstrap: Install git-merge-changelog configuration
53471         items into .gitconfig if needed.
53472
53473 2008-10-02  Paolo Bonzini  <bonzini@gnu.org>
53474
53475         * build-aux/bootstrap: Recognize `gnulib' being a submodule in a
53476         git repository, and initialize/update it accordingly.
53477
53478 2008-10-02  Richard W.M. Jones  <rjones@redhat.com>
53479
53480         * modules/fsync-tests: New file.
53481         * tests/test-fsync.c: New file.
53482
53483         New module 'fsync'.
53484         * lib/fsync.c: New file.
53485         * m4/fsync.m4: New file.
53486         * modules/fsync: New file.
53487         * lib/unistd.in.h (fsync): New declaration.
53488         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Define and AC_SUBST both
53489         GNULIB_FSYNC and HAVE_FSYNC.
53490         * modules/unistd: Substitute GNULIB_FSYNC and HAVE_FSYNC.
53491         * MODULES.html.sh (posix_functions): Add fsync.
53492         * doc/posix-functions/fsync.texi: Mention the new module.
53493
53494 2008-10-02  Jim Meyering  <meyering@redhat.com>
53495
53496         fts.c: sync with similar code from coreutils' remove.c
53497         * lib/fts.c (dirent_inode_sort_may_be_useful): Merge from coreutils.
53498         Guard also with "#if defined __linux__", since for now at least,
53499         this code is Linux-kernel-specific.
53500
53501 2008-10-02  Jim Meyering  <meyering@redhat.com>
53502
53503         fts: bug fixes
53504         * lib/fts.c: Remove unnecessary "defined" in cpp directive.
53505         Include <sys/vfs.h>, not <sys/statfs.h>.
53506
53507         * m4/fts.m4 (gl_FUNC_FTS_CORE): Fix typo s/vfs/vfs.h/.
53508         Include <sys/vfs.h>, not <sys/statfs.h>.
53509
53510 2008-10-01  Bruno Haible  <bruno@clisp.org>
53511
53512         Avoid the broken posix_spawn function on AIX 5.3 and 6.1.
53513         * m4/posix_spawn.m4 (gl_POSIX_SPAWN_WORKS): New macro.
53514         (gl_POSIX_SPAWN_BODY): Invoke it. Set REPLACE_POSIX_SPAWN if needed.
53515         * doc/posix-functions/posix_spawn.texi: Mention the AIX bugs.
53516         * doc/posix-functions/posix_spawnp.texi: Likewise.
53517         * m4/execute.m4 (gl_EXECUTE): Invoke gl_POSIX_SPAWN_WORKS, to check
53518         whether posix_spawn actually works.
53519         * m4/pipe.m4 (gl_PIPE): Likewise.
53520         * modules/execute (Files): Add m4/posix_spawn.m4.
53521         * modules/pipe (Files): Add m4/posix_spawn.m4.
53522         Reported and analyzed by Rainer Tammer <tammer@tammer.net>.
53523
53524 2008-10-01  Jim Meyering  <meyering@redhat.com>
53525
53526         remove trailing spaces
53527         * NEWS: Likewise.
53528         * lib/poll.c (poll): Likewise.
53529         * lib/sys_socket.in.h (SHUT_RDWR): Likewise.
53530         * lib/winsock.c (rpl_close): Likewise.
53531         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Likewise.
53532         * modules/yield: Likewise.
53533         * tests/test-poll.c (connect_to_socket, poll1): Likewise.
53534         * tests/test-sys_select.c (connect_to_socket): Likewise.
53535
53536         fts.c: adjust a new interface to be more generally useful
53537         * lib/fts.c (dirent_inode_sort_may_be_useful): Take an FD parameter.
53538         (fts_build): Adjust caller.
53539
53540 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53541
53542         * modules/cond-tests: New file.
53543         * tests/test-cond.c: New file.
53544
53545 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53546             Bruno Haible  <bruno@clisp.org>
53547
53548         * modules/cond (Dependencies): Add errno, time.
53549         * lib/glthread/cond.h: Include <time.h>.
53550         (gl_cond_define, gl_cond_define_initialized): Use the same definition
53551         across platforms.
53552
53553 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53554             Bruno Haible  <bruno@clisp.org>
53555
53556         * m4/thread.m4 (gl_THREAD): Fix detection of pthread_atfork function.
53557
53558 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53559             Bruno Haible  <bruno@clisp.org>
53560
53561         * modules/tls-tests (Depends-on): Add thread, yield.
53562         (configure.ac): Remove all checks.
53563         (test_tls_LDADD): Use YIELD_LIB instead of LIBSCHED.
53564         * tests/test-tls.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53565         gl_thread_self): Remove definitions. Include glthread/thread.h and
53566         glthread/yield.h instead.
53567         (test_tls): Pass an additional NULL argument to gl_thread_join.
53568
53569 2008-09-30  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
53570             Bruno Haible  <bruno@clisp.org>
53571
53572         * modules/lock-tests (Depends-on): Add thread, yield.
53573         (configure.ac): Remove all checks.
53574         (test_lock_LDADD): Use YIELD_LIB instead of LIBSCHED.
53575         * tests/test-lock.c (gl_thread_t, gl_thread_join, gl_thread_yield,
53576         gl_thread_self): Remove definitions. Include glthread/thread.h and
53577         glthread/yield.h instead.
53578         (test_lock, test_rwlock, test_recursive_lock, test_once): Pass an
53579         additional NULL argument to gl_thread_join.
53580
53581 2008-09-30  Bruno Haible  <bruno@clisp.org>
53582
53583         Fix the Win32 implementation of the 'thread' module.
53584         * lib/glthread/thread.h [USE_WIN32_THREADS] (gl_thread_t): Change to a
53585         pointer type.
53586         (gl_thread_self): Invoke gl_thread_self_func.
53587         (gl_thread_self_func): New declaration.
53588         * lib/glthread/thread.c [USE_WIN32_THREADS] (self_key): New variable.
53589         (do_init_self_key, init_self_key): New functions.
53590         (struct gl_thread_struct): Renamed from 'struct thread_extra'.
53591         Remove some fields.
53592         (running_threads, running_lock): Remove variables.
53593         (get_current_thread_handle): New function.
53594         (gl_thread_self_func, wrapper_func, glthread_create_func,
53595         glthread_join_func, gl_thread_exit_func): Largely rewritten and
53596         simplified.
53597
53598 2008-09-30  Bruno Haible  <bruno@clisp.org>
53599
53600         * lib/winsock-select.c (win32_poll_handle): Add shortcut for regular
53601         files.
53602
53603 2008-09-30  Jim Meyering  <meyering@redhat.com>
53604
53605         fts.m4: correct the test for statfs.f_type
53606         * m4/fts.m4 (gl_FUNC_FTS_CORE): Include <sys/statfs.h>
53607         when checking for statfs.f_type.
53608
53609 2008-09-15  Simon Josefsson  <simon@josefsson.org>
53610
53611         tests: avoid some compiler warnings
53612         * tests/test-memchr.c (main): Pass NULL indirectly.
53613         * tests/test-getdate.c (main): Remove unused variable 'ret'.
53614
53615 2008-09-29  OndÅ™ej Vašík  <ovasik@redhat.com>
53616
53617         getdate.y: disallow countable dayshifts like "4 yesterday ago"
53618         * lib/getdate.y (relative_time_table) [tDAY_SHIFT]: New type for
53619         exactly specified dayshifts.
53620         (dayshift): New rule.
53621         (rel): Add dayshift.
53622         (relative_time_table) [tomorrow, yesterday, today, now]:
53623         Use tDAY_SHIFT in place of tDAY_UNIT.
53624         * tests/test-getdate.c: Add tests for now-disallowed countable
53625         dayshifts, e.g., "4 yesterday ago".
53626
53627 2008-09-29  Bruno Haible  <bruno@clisp.org>
53628
53629         * tests/test-posix_spawn1.c: Renamed from tests/test-posix_spawn.c.
53630         * tests/test-posix_spawn1.in.sh: Renamed from
53631         tests/test-posix_spawn.in.sh.
53632         * tests/test-posix_spawn2.c: New file.
53633         * tests/test-posix_spawn2.in.sh: New file.
53634         * modules/posix_spawnp-tests (Files): Update.
53635         (Makefile.am): Update. Add test-posix_spawn2 to the tests.
53636
53637 2008-09-29  Bruno Haible  <bruno@clisp.org>
53638
53639         Propagate effects of putenv/setenv/unsetenv to child processes.
53640         * lib/execute.c (execute): Use spawnvpe instead of spawnvp.
53641         * lib/pipe.c (create_pipe): Likewise.
53642
53643 2008-09-29  Bruno Haible  <bruno@clisp.org>
53644
53645         Enable use of shell scripts as executables in mingw.
53646         * lib/execute.c (execute): When spawnv fails with error ENOEXEC,
53647         run the program as a shell script.
53648         * lib/pipe.c (create_pipe): Likewise.
53649         * lib/w32spawn.h (prepare_spawn): Add a hidden element in front of the
53650         resulting array.
53651
53652 2008-09-29  Eric Blake  <ebb9@byu.net>
53653
53654         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): Fix typo.
53655
53656 2008-08-24  Paolo Bonzini  <bonzini@gnu.org>
53657
53658         * doc/posix-functions/accept.texi: Update mingw problems.
53659         * doc/posix-functions/bind.texi: Update mingw problems.
53660         * doc/posix-functions/close.texi: Update mingw problems.
53661         * doc/posix-functions/connect.texi: Update mingw problems.
53662         * doc/posix-functions/getpeername.texi: Update mingw problems.
53663         * doc/posix-functions/getsockname.texi: Update mingw problems.
53664         * doc/posix-functions/getsockopt.texi: Update mingw problems.
53665         * doc/posix-functions/ioctl.texi: Update mingw problems.
53666         * doc/posix-functions/listen.texi: Update mingw problems.
53667         * doc/posix-functions/recv.texi: Update mingw problems.
53668         * doc/posix-functions/recvfrom.texi: Update mingw problems.
53669         * doc/posix-functions/select.texi: Update mingw problems.
53670         * doc/posix-functions/send.texi: Update mingw problems.
53671         * doc/posix-functions/sendto.texi: Update mingw problems.
53672         * doc/posix-functions/setsockopt.texi: Update mingw problems.
53673         * doc/posix-functions/socket.texi: Update mingw problems.
53674
53675 2008-09-29  Paolo Bonzini  <bonzini@gnu.org>
53676             Bruno Haible  <bruno@clisp.org>
53677
53678         * lib/sys_select.in.h: Include sys/time.h.
53679         * m4/sys_select.h.m4: Test that struct timeval is fully defined.
53680         * modules/sys_select: Depend on sys_time.
53681         * tests/test-sys_select.c: Test that sys/select.h defines struct
53682         timeval fully.
53683
53684 2008-09-29  Bruno Haible  <bruno@clisp.org>
53685
53686         * lib/sys_socket.in.h: Wrap the definitions in 'extern "C"'.
53687         * lib/sys_select.in.h: Likewise.
53688
53689 2008-09-29  Bruno Haible  <bruno@clisp.org>
53690
53691         * lib/winsock.c (rpl_close, rpl_socket): Remove unused variables.
53692
53693 2008-09-29  Bruno Haible  <bruno@clisp.org>
53694
53695         * m4/sockets.m4 (gl_SOCKETS): Check also for the need to use -lsocket.
53696         Set LIBSOCKET instead of augmenting LIBS.
53697         * modules/sockets (Link): New section.
53698         * modules/sockets-tests (test_sockets_LDADD): New variable.
53699         * modules/sys_select-tests (test_sys_select_LDADD): New variable.
53700         * modules/poll-tests (test_poll_LDADD): New variable.
53701         * NEWS: Document the change.
53702
53703 2008-09-29  Bruno Haible  <bruno@clisp.org>
53704
53705         * m4/arpa_inet_h.m4 (gl_REPLACE_ARPA_INET_H): New macro.
53706         * m4/inet_ntop.m4 (gl_INET_NTOP): Invoke it instead of assigning
53707         ARPA_INET_H directly.
53708         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
53709
53710 2008-09-28  Bruno Haible  <bruno@clisp.org>
53711
53712         * m4/sys_socket_h.m4 (gl_PREREQ_SYS_H_WINSOCK2): New macro, extracted
53713         from gl_HEADER_SYS_SOCKET.
53714         (gl_HEADER_SYS_SOCKET): Invoke it.
53715         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
53716
53717 2008-09-28  Bruno Haible  <bruno@clisp.org>
53718
53719         * doc/posix-headers/sys_select.texi: Mention 'struct timeval' problem.
53720         * tests/test-sys_select.c: Include <sys/time.h>, for struct timeval.
53721         Needed on OSF/1 4.0.
53722
53723 2008-09-28  Bruno Haible  <bruno@clisp.org>
53724
53725         Override open more carefully.
53726         * lib/open.c (orig_open): New function.
53727         (rpl_open): Use orig_open instead of open.
53728         * lib/fcntl.in.h: Add special invocation convention.
53729         * m4/open.m4 (gl_PREREQ_OPEN): New macro.
53730         (gl_FUNC_OPEN): Invoke it.
53731
53732         Override freopen more carefully.
53733         * lib/freopen.c (orig_freopen): New function.
53734         (rpl_freopen): Use orig_freopen instead of freopen.
53735         * m4/freopen.m4 (gl_PREREQ_FREOPEN): New macro.
53736         (gl_FUNC_FREOPEN): Invoke it.
53737
53738         Override fopen more carefully.
53739         * lib/fopen.c (orig_fopen): New function.
53740         (rpl_fopen): Use orig_fopen instead of fopen.
53741         * m4/fopen.m4 (gl_PREREQ_FOPEN): New macro.
53742         (gl_FUNC_FOPEN): Invoke it.
53743         Needed on AIX. Reported by Rainer Tammer <tammer@tammer.net>.
53744
53745 2008-09-28  Bruno Haible  <bruno@clisp.org>
53746
53747         * lib/pipe.h (create_pipe_out, create_pipe_bidi): Add comment about
53748         SIGPIPE.
53749
53750 2008-09-28  Bruno Haible  <bruno@clisp.org>
53751
53752         * tests/test-sigaction.c (handler, main): Disable the check whether
53753         SA_RESETHAND has reverted the installed handler to SIG_DFL. Needed on
53754         glibc systems with LinuxThreads.
53755
53756 2008-09-28  Bruno Haible  <bruno@clisp.org>
53757
53758         * doc/posix-functions/freopen.texi: Mention the trailing slash problem.
53759
53760         * lib/stdio.in.h (fopen, freopen): Undefine before redefining. Needed
53761         with AIX xlc.
53762         * lib/fcntl.in.h (open): Likewise.
53763         Reported by Rainer Tammer <tammer@tammer.net>.
53764
53765 2008-09-28  Bruno Haible  <bruno@clisp.org>
53766
53767         * modules/posix_spawnp-tests: New file.
53768         * tests/test-posix_spawn.c: New file.
53769         * tests/test-posix_spawn.in.sh: New file.
53770
53771         New module 'posix_spawnp'.
53772         * modules/posix_spawnp: New file.
53773         * lib/spawnp.c: New file, from GNU libc with modifications.
53774         * doc/posix-functions/posix_spawnp.texi: Mention the new module.
53775
53776         New module 'posix_spawn'.
53777         * modules/posix_spawn: New file.
53778         * lib/spawn.c: New file, from GNU libc with modifications.
53779         * doc/posix-functions/posix_spawn.texi: Mention the new module.
53780
53781         New module 'posix_spawnattr_destroy'.
53782         * modules/posix_spawnattr_destroy: New file.
53783         * lib/spawnattr_destroy.c: New file, from GNU libc with modifications.
53784         * doc/posix-functions/posix_spawnattr_destroy.texi: Mention the new
53785         module.
53786
53787         New module 'posix_spawnattr_setsigmask'.
53788         * modules/posix_spawnattr_setsigmask: New file.
53789         * lib/spawnattr_setsigmask.c: New file, from GNU libc with
53790         modifications.
53791         * doc/posix-functions/posix_spawnattr_setsigmask.texi: Mention the
53792         new module.
53793
53794         New module 'posix_spawnattr_getsigmask'.
53795         * modules/posix_spawnattr_getsigmask: New file.
53796         * lib/spawnattr_getsigmask.c: New file, from GNU libc with
53797         modifications.
53798         * doc/posix-functions/posix_spawnattr_getsigmask.texi: Mention the
53799         new module.
53800
53801         New module 'posix_spawnattr_setsigdefault'.
53802         * modules/posix_spawnattr_setsigdefault: New file.
53803         * lib/spawnattr_setdefault.c: New file, from GNU libc with
53804         modifications.
53805         * doc/posix-functions/posix_spawnattr_setsigdefault.texi: Mention the
53806         new module.
53807
53808         New module 'posix_spawnattr_getsigdefault'.
53809         * modules/posix_spawnattr_getsigdefault: New file.
53810         * lib/spawnattr_getdefault.c: New file, from GNU libc with
53811         modifications.
53812         * doc/posix-functions/posix_spawnattr_getsigdefault.texi: Mention the
53813         new module.
53814
53815         New module 'posix_spawnattr_setschedpolicy'.
53816         * modules/posix_spawnattr_setschedpolicy: New file.
53817         * lib/spawnattr_setschedpolicy.c: New file, from GNU libc with
53818         modifications.
53819         * doc/posix-functions/posix_spawnattr_setschedpolicy.texi: Mention the
53820         new module.
53821
53822         New module 'posix_spawnattr_getschedpolicy'.
53823         * modules/posix_spawnattr_getschedpolicy: New file.
53824         * lib/spawnattr_getschedpolicy.c: New file, from GNU libc with
53825         modifications.
53826         * doc/posix-functions/posix_spawnattr_getschedpolicy.texi: Mention the
53827         new module.
53828
53829         New module 'posix_spawnattr_setschedparam'.
53830         * modules/posix_spawnattr_setschedparam: New file.
53831         * lib/spawnattr_setschedparam.c: New file, from GNU libc with
53832         modifications.
53833         * doc/posix-functions/posix_spawnattr_setschedparam.texi: Mention the
53834         new module.
53835
53836         New module 'posix_spawnattr_getschedparam'.
53837         * modules/posix_spawnattr_getschedparam: New file.
53838         * lib/spawnattr_getschedparam.c: New file, from GNU libc with
53839         modifications.
53840         * doc/posix-functions/posix_spawnattr_getschedparam.texi: Mention the
53841         new module.
53842
53843         New module 'posix_spawnattr_setpgroup'.
53844         * modules/posix_spawnattr_setpgroup: New file.
53845         * lib/spawnattr_setpgroup.c: New file, from GNU libc with
53846         modifications.
53847         * doc/posix-functions/posix_spawnattr_setpgroup.texi: Mention the new
53848         module.
53849
53850         New module 'posix_spawnattr_getpgroup'.
53851         * modules/posix_spawnattr_getpgroup: New file.
53852         * lib/spawnattr_getpgroup.c: New file, from GNU libc with
53853         modifications.
53854         * doc/posix-functions/posix_spawnattr_getpgroup.texi: Mention the new
53855         module.
53856
53857         New module 'posix_spawnattr_setflags'.
53858         * modules/posix_spawnattr_setflags: New file.
53859         * lib/spawnattr_setflags.c: New file, from GNU libc with modifications.
53860         * doc/posix-functions/posix_spawnattr_setflags.texi: Mention the new
53861         module.
53862
53863         New module 'posix_spawnattr_getflags'.
53864         * modules/posix_spawnattr_getflags: New file.
53865         * lib/spawnattr_getflags.c: New file, from GNU libc with modifications.
53866         * doc/posix-functions/posix_spawnattr_getflags.texi: Mention the new
53867         module.
53868
53869         New module 'posix_spawnattr_init'.
53870         * modules/posix_spawnattr_init: New file.
53871         * lib/spawnattr_init.c: New file, from GNU libc with modifications.
53872         * doc/posix-functions/posix_spawnattr_init.texi: Mention the new
53873         module.
53874
53875         New module 'posix_spawn_file_actions_destroy'.
53876         * modules/posix_spawn_file_actions_destroy: New file.
53877         * lib/spawn_faction_destroy.c: New file, from GNU libc with
53878         modifications.
53879         * doc/posix-functions/posix_spawn_file_actions_destroy.texi: Mention
53880         the new module.
53881
53882         New module 'posix_spawn_file_actions_addopen'.
53883         * modules/posix_spawn_file_actions_addopen: New file.
53884         * lib/spawn_faction_addopen.c: New file, from GNU libc with
53885         modifications.
53886         * doc/posix-functions/posix_spawn_file_actions_addopen.texi: Mention
53887         the new module.
53888
53889         New module 'posix_spawn_file_actions_adddup2'.
53890         * modules/posix_spawn_file_actions_adddup2: New file.
53891         * lib/spawn_faction_adddup2.c: New file, from GNU libc with
53892         modifications.
53893         * doc/posix-functions/posix_spawn_file_actions_adddup2.texi: Mention
53894         the new module.
53895
53896         New module 'posix_spawn_file_actions_addclose'.
53897         * modules/posix_spawn_file_actions_addclose: New file.
53898         * lib/spawn_faction_addclose.c: New file, from GNU libc with
53899         modifications.
53900         * doc/posix-functions/posix_spawn_file_actions_addclose.texi: Mention
53901         the new module.
53902
53903         New module 'posix_spawn_file_actions_init'.
53904         * modules/posix_spawn_file_actions_init: New file.
53905         * lib/spawn_faction_init.c: New file, from GNU libc with modifications.
53906         * doc/posix-functions/posix_spawn_file_actions_init.texi: Mention the
53907         new module.
53908
53909         New module 'posix_spawn-internal'.
53910         * modules/posix_spawn-internal: New file.
53911         * lib/spawn_int.h: New file, from GNU libc with modifications.
53912         * lib/spawni.c: New file, from GNU libc with modifications.
53913         * m4/posix_spawn.m4: New file.
53914
53915         New module 'spawn'.
53916         * modules/spawn: New file.
53917         * lib/spawn.in.h: New file, from GNU libc with modifications.
53918         * m4/spawn_h.m4: New file.
53919         * doc/posix-headers/spawn.texi: Mention the new module.
53920
53921 2008-09-28  Bruno Haible  <bruno@clisp.org>
53922
53923         * modules/sched-tests: New file.
53924         * tests/test-sched.c: New file.
53925
53926         New module 'sched'.
53927         * modules/sched: New file.
53928         * lib/sched.in.h: New file.
53929         * m4/sched_h.m4: New file.
53930         * doc/posix-headers/sched.texi: Mention the new module.
53931
53932 2008-09-27  Eric Blake  <ebb9@byu.net>
53933
53934         Fix previous patch, and tweak references to $0.
53935         * posix-modules: Call func_gnulib_dir before using $gnulib_dir.
53936         (func_version, func_gnulib_dir): Don't call this program
53937         gnulib-tool.
53938         (func_gnulib_dir, func_tmpdir, func_fatal_error): Avoid shell bugs
53939         with using $0 in function.
53940         * gnulib-tool (func_gnulib_dir, func_tmpdir): Likewise.
53941         (func_fatal_error): Reuse the name the user invoked us with.
53942
53943 2008-09-27  Bruno Haible  <bruno@clisp.org>
53944
53945         * m4/iconv_h.m4 (gl_REPLACE_ICONV_H): New macro.
53946         (gl_ICONV_H_DEFAULTS): Initialize ICONV_H here...
53947         (gl_ICONV_H): Not here.
53948         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): Invoke gl_REPLACE_ICONV_H
53949         instead of assigning ICONV_H directly.
53950
53951         * m4/wchar.m4 (gl_REPLACE_WCHAR_H): New macro.
53952         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Invoke it instead of assigning
53953         WCHAR_H directly.
53954
53955 2008-09-27  Bruno Haible  <bruno@clisp.org>
53956
53957         * lib/arpa_inet.in.h: Include the GL_LINK_WARNING anchor.
53958         * modules/arpa_inet (Depends-on): Add link-warning.
53959         (Makefile.am): Insert the definition of GL_LINK-WARNING.
53960         * modules/unistd (Makefile.am): Likewise.
53961
53962 2008-09-26  Bruno Haible  <bruno@clisp.org>
53963
53964         * posix-modules (cvsdatestamp, last_checkin_date, version): Remove
53965         variables.
53966         (func_version): Essentially copied from gnulib-tool.
53967         (func_exit, func_gnulib_dir, func_tmpdir, func_fatal_error,
53968         func_readlink): Copied from gnulib-tool.
53969
53970 2008-09-26  Bruno Haible  <bruno@clisp.org>
53971
53972         * gnulib-tool (func_version): Change directory to $gnulib_dir before
53973         invoking git-version-gen.
53974
53975 2008-09-26  Bruno Haible  <bruno@clisp.org>
53976
53977         * posix-modules: Update to directory names changed on 2008-01-19.
53978         Remove commas in output before splitting into words. No more need to
53979         avoid 'ftruncate' since 2007-02-19.
53980
53981 2008-09-26  Bruno Haible  <bruno@clisp.org>
53982
53983         * doc/posix-headers/errno.texi: Remove mention of module 'EOVERFLOW'.
53984
53985 2008-09-26  Bruno Haible  <bruno@clisp.org>
53986
53987         * lib/fwriteerror.c (do_fwriteerror): Ignore error EPIPE.
53988         * modules/fwriteerror (Depends-on): Add errno.
53989
53990 2008-09-26  Bruno Haible  <bruno@clisp.org>
53991
53992         * tests/test-vc-list-files-git.sh: Explain reason for skipping test.
53993         * tests/test-vc-list-files-cvs.sh: Likewise.
53994
53995 2008-09-26  Bruno Haible  <bruno@clisp.org>
53996
53997         * doc/posix-headers/sys_resource.texi: Reorder items.
53998
53999 2008-09-26  Jim Meyering  <meyering@redhat.com>
54000
54001         fts: tweak inode comparison function
54002         * lib/fts.c (fts_compare_ino): Sort on increasing, not decreasing
54003         inode numbers, as documented.
54004
54005         fts: sort dirent entries on inode number before traversing
54006         This avoids a quadratic, seek-related performance penalty when
54007         operating on a directory containing many entries (measurable at 10k;
54008         3.5 hours at 2 million entries with a cold cache) on certain types
54009         of file systems, including ext3 and ext4, but not tmpfs.
54010         * lib/fts.c (DT_MUST_BE, NOT_AN_INODE_NUMBER, D_INO): Define.
54011         (FTS_INODE_SORT_DIR_ENTRIES_THRESHOLD): Define if not defined.
54012         (S_MAGIC_TMPFS, S_MAGIC_NFS): Define.
54013         (fs_handles_readdir_ordered_dirents_efficiently): New function.
54014         (dirent_inode_sort_may_be_useful, fts_compare_ino): Likewise.
54015         (fts_build): Set the stat.st_ino member from D_INO.
54016         If it is likely to be useful, sort dirent entries on inode number.
54017
54018         * m4/fts.m4 (gl_FUNC_FTS_CORE): Check for fstatfs, sys/vfs.h,
54019         and the struct statfs.f_type member.
54020         * modules/fts (Depends-on): Add d-ino.
54021
54022 2008-09-26  Bruno Haible  <bruno@clisp.org>
54023
54024         * modules/sigpipe-die (Depends-on): Add sigpipe.
54025
54026         * lib/stdio.in.h (fprintf, vfprintf, printf, vprintf, fputc, putc,
54027         putchar, fputs, puts, fwrite): Replace when REPLACE_STDIO_WRITE_FUNCS
54028         and GNULIB_STDIO_H_SIGPIPE are set.
54029         * lib/stdio-write.c: New file.
54030         * m4/stdio_h.m4 (gl_STDIO_H): Set GNULIB_FPRINTF, GNULIB_PRINTF,
54031         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54032         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54033         REPLACE_STDIO_WRITE_FUNCS.
54034         (gl_STDIO_H_DEFAULTS): Initialize GNULIB_FPRINTF, GNULIB_PRINTF,
54035         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54036         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54037         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
54038         * modules/stdio (Files): Add lib/stdio-write.c.
54039         (Makefile.am): Substitute GNULIB_FPRINTF, GNULIB_PRINTF,
54040         GNULIB_VFPRINTF, GNULIB_VPRINTF, GNULIB_FPUTC, GNULIB_PUTC,
54041         GNULIB_PUTCHAR, GNULIB_FPUTS, GNULIB_PUTS, GNULIB_FWRITE,
54042         GNULIB_STDIO_H_SIGPIPE, REPLACE_STDIO_WRITE_FUNCS.
54043         * m4/fprintf-posix.m4 (gl_REPLACE_FPRINTF): Define
54044         REPLACE_FPRINTF_POSIX.
54045         * m4/printf-posix-rpl.m4 (gl_REPLACE_PRINTF): Define
54046         REPLACE_PRINTF_POSIX.
54047         * m4/vfprintf-posix.m4 (gl_REPLACE_VFPRINTF): Define
54048         REPLACE_VFPRINTF_POSIX.
54049         * m4/vprintf-posix.m4 (gl_REPLACE_VPRINTF): Define
54050         REPLACE_VPRINTF_POSIX.
54051         * doc/posix-functions/fprintf.texi: Mention the sigpipe module and the
54052         SIGPIPE issue.
54053         * doc/posix-functions/fputc.texi: Likewise.
54054         * doc/posix-functions/fputs.texi: Likewise.
54055         * doc/posix-functions/fwrite.texi: Likewise.
54056         * doc/posix-functions/printf.texi: Likewise.
54057         * doc/posix-functions/putc.texi: Likewise.
54058         * doc/posix-functions/putchar.texi: Likewise.
54059         * doc/posix-functions/puts.texi: Likewise.
54060         * doc/posix-functions/vfprintf.texi: Likewise.
54061         * doc/posix-functions/vprintf.texi: Likewise.
54062
54063         * modules/safe-write (Depends-on): Add write.
54064
54065         * modules/sigpipe-tests: New file.
54066         * tests/test-sigpipe.c: New file.
54067         * tests/test-sigpipe.sh: New file.
54068
54069         * modules/write: New file.
54070         * lib/unistd.in.h: Include <sys/types.h>.
54071         (write): New declaration.
54072         * lib/write.c: New file.
54073         * m4/write.m4: New file.
54074         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
54075         GNULIB_UNISTD_H_SIGPIPE, GNULIB_WRITE, REPLACE_WRITE.
54076         * modules/unistd (Makefile.am): Substitute GNULIB_UNISTD_H_SIGPIPE,
54077         GNULIB_WRITE, REPLACE_WRITE.
54078         * doc/posix-functions/write.texi: Mention the write, sigpipe modules
54079         and the SIGPIPE issue.
54080
54081         * lib/signal.in.h (SIGPIPE): Define to a replacement value.
54082         (raise): New declaration.
54083         * lib/sigprocmask.c (SIGPIPE_handler): New variable.
54084         (ext_signal): New function.
54085         (rpl_raise): New function.
54086         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Initialize
54087         GNULIB_SIGNAL_H_SIGPIPE.
54088         * modules/signal (Makefile.am): Substitute GNULIB_SIGNAL_H_SIGPIPE.
54089         * doc/posix-headers/signal.texi: Mention the SIGPIPE issue.
54090
54091         * modules/sigpipe: New file.
54092         * m4/sigpipe.m4: New file.
54093
54094 2008-09-25  Derek Price  <derek@ximbiot.com>
54095             Bruno Haible  <bruno@clisp.org>
54096
54097         * gnulib-tool (func_import): Report all license incompatibilities, not
54098         just the first one.
54099
54100 2008-09-25  Bruno Haible  <bruno@clisp.org>
54101
54102         * gnulib-tool (func_import): When computing the edits, consider not
54103         only the Makefile.ams that exist but also those that will be generated.
54104
54105 2008-09-25  Simon Josefsson  <simon@josefsson.org>
54106
54107         * modules/sys_select-tests (Depends-on): Remove sys_select itself,
54108         fixes gnulib-tool --test warning about duplicate dependency.
54109
54110 2008-09-25  Bruno Haible  <bruno@clisp.org>
54111
54112         * gnulib-tool: Don't ask the user to perform edits in the generated
54113         Makefile.ams.
54114         (func_emit_lib_Makefile_am): Emit empty SUBDIRS. Execute edits that
54115         apply to the Makefile.am being generated.
54116         (func_emit_tests_Makefile_am): Execute edits that apply to the
54117         Makefile.am being generated.
54118         (func_import): Setup list of Makefile.am edits before emitting the
54119         Makefile.ams, not at the end.
54120         (func_create_testdir): Update.
54121         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54122
54123 2008-09-25  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54124
54125         * gnulib-tool (func_import): Store the --tests-base option in the
54126         comment in gnulib-cache.m4.
54127
54128 2008-09-24  Paolo Bonzini  <bonzini@gnu.org>
54129
54130         * NEWS: Document increased portability that sys_select now provides.
54131
54132         * lib/sys_select.in.h: Install select wrapper.
54133         * lib/sys_socket.in.h: Use more descriptive name when there is no
54134         select wrapper.
54135         * lib/winsock-select.c: New.
54136         * m4/sys_select_h.m4: Compile lib/winsock-select.c if WinSock is used.
54137         Require gl_HEADER_SYS_SOCKET.
54138         * modules/sys_select: Depend on alloca, add lib/winsock-select.c.
54139         * modules/sys_select-tests: Copy dependencies from modules/poll-tests.
54140         * tests/test-sys_select.c: Add functional tests.
54141
54142 2008-09-24  Eric Blake  <ebb9@byu.net>
54143
54144         open, fopen: close fd leak in last patch
54145         * lib/open.c (rpl_open): Close fd before returning error.
54146         * lib/fopen.c (rpl_fopen): Close fd before returning error.
54147         * doc/posix-functions/open.texi (open): Document that Irix also
54148         has the bug.
54149         * doc/posix-functions/fopen.texi (fopen): Likewise.
54150         Reported by Paolo Bonzini.
54151
54152 2008-09-24  Bruno Haible  <bruno@clisp.org>
54153
54154         Ensure that a filename ending in a slash cannot be used to access a
54155         non-directory.
54156         * lib/open.c (rpl_open): When the filename ends in a slash, use fstat()
54157         to check whether it's really a directory.
54158         * lib/fopen.c: Include fcntl.h, unistd.h.
54159         (rpl_fopen): When the filename ends in a slash, use open(), fstat(),
54160         and fdopen().
54161         * modules/fopen (Depends-on): Add unistd.
54162         * tests/test-open.c (main): Try to open "/dev/null/" as a directory.
54163         * tests/test-fopen.c (main): Likewise.
54164         * doc/posix-functions/open.texi: Mention the HP-UX, Solaris bug.
54165         * doc/posix-functions/fopen.texi: Likewise.
54166         Reported by Eric Blake.
54167
54168 2008-09-23  Eric Blake  <ebb9@byu.net>
54169
54170         c-stack: avoid compiler optimizations when provoking overflow
54171         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Make
54172         recursion harder to optimize, to ensure a stack overflow occurs.
54173         * tests/test-c-stack.c (recurse): Likewise.
54174         Borrowed from libsigsegv.
54175
54176         c-stack: work around Irix sigaltstack bug
54177         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check
54178         whether sigaltstack uses wrong end of stack_t (copied in part from
54179         libsigsegv).
54180         * lib/c-stack.c (c_stack_action) [!HAVE_LIBSIGSEGV]: Work around
54181         Irix bug, without requiring an over-allocation.
54182         * doc/posix-functions/sigaltstack.texi (sigaltstack): Document the
54183         bug.
54184
54185         fopen: document mingw bug on directories
54186         * doc/posix-functions/fopen.texi (fopen): Mention mingw bug for
54187         not allowing a stream visiting a directory, even though reading
54188         from such a stream is not portable.
54189
54190 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54191
54192         * lib/poll.c: Rewrite.
54193         * modules/poll: Depend on alloca.
54194
54195 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54196
54197         * lib/sys_socket.in.h: Do not implement rpl_setsockopt here,
54198         instead define prototypes for a full set of wrappers.  Ensure
54199         that Cygwin does not use the compatibility code, which is only
54200         for MinGW.
54201         * lib/winsock.c: New.
54202         * m4/sys_socket_h.m4: Compile lib/winsock.c if WinSock is being used.
54203         * modules/sys_socket: Add lib/winsock.c.
54204
54205         * modules/poll-tests: Add errno and perror.
54206         * tests/test-poll.c: Use ioctl, not ioctlsocket.
54207
54208 2008-09-23  Paolo Bonzini  <bonzini@gnu.org>
54209
54210         * tests/test-poll.c: Downgrade minimum needed Winsock version.
54211
54212 2008-09-23  Bruno Haible  <bruno@clisp.org>
54213
54214         * doc/posix-functions/*: Add info about functions missing on IRIX 5.3.
54215         * doc/glibc-functions/*: Likewise.
54216
54217 2008-09-23  Simon Josefsson  <simon@josefsson.org>
54218
54219         * tests/test-perror.sh (tmpfiles): Cleanup temporary files on
54220         success.
54221
54222 2008-09-22  Eric Blake  <ebb9@byu.net>
54223             Bruno Haible  <bruno@clisp.org>
54224
54225         vasnprintf: fix x86/glibc regression on printf("%La", 0.0L)
54226         * lib/vasnprintf.c (VASNPRINTF): Support 0.0 on platforms that
54227         supply %A but mishandle pseudo-NaN.
54228         Reported by Simon Josefsson.
54229
54230 2008-09-21  Bruno Haible  <bruno@clisp.org>
54231
54232         * tests/test-lock.c (main): Tweak skip message.
54233         * tests/test-tls.c (main): Likewise.
54234
54235 2008-09-21  Bruno Haible  <bruno@clisp.org>
54236
54237         * m4/sigaction.m4 (gl_SIGACTION): Remove unnecessary AC_SUBST. Check
54238         whether 'struct sigaction' has sa_sigaction here...
54239         (gl_PREREQ_SIG_HANDLER_H): ... not here.
54240         (gl_PREREQ_SIGACTION): Remove unnecessary AC_SUBST.
54241
54242 2008-09-21  Bruno Haible  <bruno@clisp.org>
54243
54244         * MODULES.html.sh (Support for obsolete systems lacking ANSI C 89): New
54245         section.
54246         (Support for systems lacking ANSI C 89): Move stdlib, exit, strtol,
54247         strtoul, memchr, memcmp, memcpy, memmove, memset, strcspn, strpbrk to
54248         the new section.
54249         (Support for obsolete systems lacking POSIX:2001): New section.
54250         (String handling <string.h>): Move strdup to the new section.
54251         Suggested by Simon Josefsson and Paolo Bonzini.
54252
54253 2008-09-21  Bruno Haible  <bruno@clisp.org>
54254
54255         * tests/test-vasnprintf-posix.c (test_function): Allow 3-digit
54256         exponents in %e and %g results on 'long double'. Needed for mingw's
54257         improved *printf functions.
54258         * tests/test-vasprintf-posix.c (test_function): Likewise.
54259         * tests/test-snprintf-posix.h (test_function): Likewise.
54260         * tests/test-sprintf-posix.h (test_function): Likewise.
54261         Reported by Eric Blake.
54262
54263 2008-09-21  Bruno Haible  <bruno@clisp.org>
54264
54265         * tests/test-snprintf-posix.h (test_function): Remove useless ASSERTs.
54266         * tests/test-sprintf-posix.h (test_function): Likewise.
54267
54268 2008-09-21  Bruno Haible  <bruno@clisp.org>
54269
54270         * modules/getpass (Depends-on): Add strdup-posix.
54271
54272         New module 'strdup-posix'.
54273         * modules/strdup-posix: New file.
54274         * m4/strdup.m4 (gl_FUNC_STRDUP_POSIX): New macro.
54275         * lib/string.in.h (strdup): Replace if REPLACE_STRDUP is 1.
54276         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
54277         REPLACE_STRDUP.
54278         * modules/string (Makefile.am): Substitute REPLACE_STRDUP.
54279         * doc/posix-functions/strdup.texi: Mention module strdup-posix.
54280         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
54281         strdup-posix.
54282
54283         * modules/strdup (Depends-on): Remove malloc-posix.
54284
54285 2008-09-20  Bruno Haible  <bruno@clisp.org>
54286
54287         * lib/fstrcmp.c: Add data about branch probabilities, from Ralf
54288         Wildenhues.
54289
54290 2008-09-20  Bruno Haible  <bruno@clisp.org>
54291
54292         Ensure that wint_t gets defined on IRIX 5.3.
54293         * lib/wchar.in.h (wint_t): Define if not defined by the system.
54294         * lib/wctype.in.h (wint_t): Likewise.
54295         (__wctype_wint_t): Remove type.
54296         (isw*): Use wint_t instead of __wctype_wint_t.
54297         * m4/wchar.m4 (gl_WCHAR_H): Invoke gt_TYPE_WINT_T and set HAVE_WINT_T.
54298         * modules/wchar (Files): Add m4/wint_t.m4.
54299         (Makefile.am): Substitute HAVE_WINT_T.
54300         * tests/test-wchar.c: Check that wchar_t and wint_t are defined.
54301         * tests/test-wctype.c: Check that wint_t is defined.
54302         * doc/posix-headers/wchar.texi: Mention the IRIX 5 problem.
54303         * doc/posix-headers/wctype.texi: Likewise.
54304         Reported by Tom G. Christensen <tgc@jupiterrise.com>.
54305
54306 2008-09-18  Bruno Haible  <bruno@clisp.org>
54307
54308         * gnulib-tool (func_exit): Update comment.
54309
54310 2008-09-18  Simon Josefsson  <simon@josefsson.org>
54311
54312         * modules/getaddrinfo (Depends-on): Remove strdup, this module
54313         assumes strdup exists and does not depend on strdup to return
54314         ENOMEM on out of memory conditions.
54315
54316 2008-09-18  Bruno Haible  <bruno@clisp.org>
54317
54318         * lib/vasnprintf.c (VASNPRINTF): When printing Â±0.0L in
54319         NEED_PRINTF_INFINITE_LONG_DOUBLE case with 'e' format, always use two
54320         digits for the exponent.
54321
54322 2008-09-18  Jim Meyering  <meyering@redhat.com>
54323             Bruno Haible  <bruno@clisp.org>
54324
54325         * lib/vasnprintf.c (decimal_point_char): Define also if
54326         NEED_PRINTF_INFINITE_LONG_DOUBLE.
54327
54328 2008-09-16  Bruno Haible  <bruno@clisp.org>
54329         and Eric Blake  <ebb9@byu.net>
54330
54331         vasnprintf: support Irix 5.3
54332         * lib/vasnprintf.c (VASNPRINTF): Also handle -0.0L on platforms
54333         that mishandle long double infinity.
54334         Reported by Tom G. Christensen.
54335
54336 2008-09-16  Bruno Haible  <bruno@clisp.org>
54337
54338         * doc/glibc-functions/scandir.texi: Mention the function is missing on
54339         Solaris 9.
54340         * doc/glibc-functions/alphasort.texi: Likewise.
54341         Reported by Michael Haubenwallner <michael.haubenwallner@salomon.at>.
54342
54343 2008-09-16  Jim Meyering  <meyering@redhat.com>
54344
54345         posix-shell.m4: reject opensolaris's "sh (AT&T Research) 1993-12-28 s+"
54346         * m4/posix-shell.m4 (gl_POSIX_SHELL): Reject a shell that lets
54347         a umask modification leak out of a subshell.  Otherwise, the
54348         opensolaris /bin/sh would be accepted and thus cause unwarranted
54349         failures in the coreutils test suite.
54350
54351 2008-09-16  Paolo Bonzini  <bonzini@gnu.org>
54352
54353         * tests/test-poll.c (connect_to_socket): Allow non-blocking connect
54354         to succeed.
54355
54356 2008-09-16  Jim Meyering  <meyering@redhat.com>
54357
54358         avoid spurious test failure when library is built without ACL support
54359         * m4/acl.m4 (USE_ACL): Define as a shell variable, too, for...
54360         * modules/acl-tests (Makefile.am) [TESTS_ENVIRONMENT]: Add USE_ACL.
54361         * tests/test-file-has-acl.sh: Skip if USE_ACL == 0.
54362         * tests/test-copy-acl.sh: Likewise.
54363
54364 2008-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54365
54366         * lib/fstrcmp.c (fstrcmp_bounded): Use a second, less quick upper bound
54367         based on character occurrence counts.
54368
54369 2008-09-15  Eric Blake  <ebb9@byu.net>
54370
54371         tests: avoid some compiler warnings
54372         * tests/test-memchr.c (main): Pass NULL indirectly.
54373         * tests/test-closein.c (main): Avoid unused variable.
54374
54375 2008-09-15  Bruno Haible  <bruno@clisp.org>
54376
54377         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test for all the macros that
54378         are missing on OpenBSD 4.0 individually.
54379         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
54380
54381 2008-09-15  Bruno Haible  <bruno@clisp.org>
54382
54383         * doc/posix-headers/errno.texi: Mention the Cygwin problem.
54384         * doc/posix-functions/strerror.texi: Mention also Cygwin.
54385         * doc/posix-functions/perror.texi: Likewise.
54386         * m4/errno_h.m4 (gl_HEADER_ERRNO_H_BODY): Test also whether ECANCELED
54387         is missing.
54388         Reported by Eric Blake.
54389
54390         * lib/errno.in.h: Use replacement values >= 2000.
54391         Reported by Eric Blake.
54392
54393 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54394
54395         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Add field 'edit_count_limit'.
54396         (EARLY_ABORT): Return true when the edit_count has grown too beyond the
54397         limit.
54398         (fstrcmp_bounded): Initialize the edit_count_limit. Return 0 when
54399         compareseq was aborted.
54400
54401 2008-09-14  Bruno Haible  <bruno@clisp.org>
54402
54403         * lib/fstrcmp.c (EXTRA_CONTEXT_FIELDS): Combine xvec_edit_count and
54404         yvec_edit_count.
54405         (NOTE_DELETE, NOTE_INSERT): Increment the combined edit count.
54406         (fstrcmp_bounded): Simplify result computation accordingly.
54407
54408 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54409
54410         * lib/fstrcmp.h (fstrcmp_bounded): New declaration.
54411         (fstrcmp): Define in terms of fstrcmp_bounded.
54412         * lib/fstrcmp.c (fstrcmp_bounded): Renamed from fstrcmp. Add
54413         lower_bound argument.
54414         Return quickly if the result is certainly < lower_bound.
54415         * tests/test-fstrcmp.c (check_fstrcmp): Test also fstrcmp_bounded.
54416
54417 2008-09-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54418
54419         * lib/diffseq.h (EARLY_ABORT): New macro.
54420         (compareseq): Change return type to bool. Return true when EARLY_ABORT
54421         evaluates to true.
54422
54423 2008-09-14  Bruno Haible  <bruno@clisp.org>
54424
54425         * modules/perror-tests: New file.
54426         * tests/test-perror.sh: New file.
54427         * tests/test-perror.c: New file.
54428
54429         New module 'perror'.
54430         * lib/stdio.in.h (perror): New declaration.
54431         * lib/perror.c: New file.
54432         * m4/perror.m4: New file.
54433         * modules/perror: New file.
54434         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add perror.
54435         * doc/posix-functions/perror.texi: Mention the perror module.
54436         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize GNULIB_PERROR,
54437         REPLACE_PERROR.
54438         * modules/stdio (Makefile.am): Substitute GNULIB_PERROR,
54439         REPLACE_PERROR.
54440
54441 2008-09-14  Bruno Haible  <bruno@clisp.org>
54442
54443         * modules/stdio (Makefile.am): Reorder to match the order in
54444         lib/stdio.in.h.
54445         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
54446
54447 2008-09-13  Bruno Haible  <bruno@clisp.org>
54448
54449         * lib/sys_socket.in.h (EINPROGRESS, ...): Remove definitions.
54450
54451 2008-09-13  Bruno Haible  <bruno@clisp.org>
54452
54453         Extend strerror to cover the added errno values.
54454         * lib/strerror.c: Include errno.h and winsock2.h if it exists.
54455         (rpl_strerror): Provide error messages for the added errno values and
54456         for the WSA* values.
54457         * m4/strerror.m4 (gl_FUNC_STRERROR): Test REPLACE_STRERROR.
54458         (gl_FUNC_STRERROR_SEPARATE): If errno.h is replaced, always replace
54459         strerror.
54460         (gl_PREREQ_STRERROR): Test whether winsock2.h exists.
54461         * modules/strerror (Depends-on): Add errno.
54462         * doc/posix-functions/strerror.texi: Document the change.
54463         * tests/test-strerror.c (main): Check also the string for ETIMEDOUT
54464         and EOVERFLOW.
54465
54466 2008-09-13  Bruno Haible  <bruno@clisp.org>
54467
54468         * modules/EOVERFLOW: Remove file.
54469         * m4/eoverflow.m4: Remove file.
54470         * modules/EOVERFLOW-tests: Remove file.
54471         * tests/test-EOVERFLOW.c: Remove file.
54472         * modules/fprintf-posix (Depends-on): Replace EOVERFLOW with errno.
54473         * modules/ftell (Depends-on): Likewise.
54474         * modules/getdelim (Depends-on): Likewise.
54475         * modules/getugroups (Depends-on): Likewise.
54476         * modules/poll (Depends-on): Likewise.
54477         * modules/snprintf (Depends-on): Likewise.
54478         * modules/sprintf-posix (Depends-on): Likewise.
54479         * modules/vasnprintf (Depends-on): Likewise.
54480         * modules/vasprintf (Depends-on): Likewise.
54481         * modules/vfprintf-posix (Depends-on): Likewise.
54482         * modules/vsnprintf (Depends-on): Likewise.
54483         * modules/vsprintf-posix (Depends-on): Likewise.
54484         * modules/xvasprintf (Depends-on): Likewise.
54485         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
54486         * modules/unistdio/u8-vasprintf (Depends-on): Likewise.
54487         * modules/unistdio/u8-vsnprintf (Depends-on): Likewise.
54488         * modules/unistdio/u8-vsprintf (Depends-on): Likewise.
54489         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
54490         * modules/unistdio/u8-u8-vasprintf (Depends-on): Likewise.
54491         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Likewise.
54492         * modules/unistdio/u8-u8-vsprintf (Depends-on): Likewise.
54493         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
54494         * modules/unistdio/u16-u16-vasprintf (Depends-on): Likewise.
54495         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Likewise.
54496         * modules/unistdio/u16-u16-vsprintf (Depends-on): Likewise.
54497         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
54498         * modules/unistdio/u16-vasprintf (Depends-on): Likewise.
54499         * modules/unistdio/u16-vsnprintf (Depends-on): Likewise.
54500         * modules/unistdio/u16-vsprintf (Depends-on): Likewise.
54501         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
54502         * modules/unistdio/u32-vasprintf (Depends-on): Likewise.
54503         * modules/unistdio/u32-vsnprintf (Depends-on): Likewise.
54504         * modules/unistdio/u32-vsprintf (Depends-on): Likewise.
54505         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
54506         * modules/unistdio/u32-u32-vasprintf (Depends-on): Likewise.
54507         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Likewise.
54508         * modules/unistdio/u32-u32-vsprintf (Depends-on): Likewise.
54509         * modules/unistdio/ulc-fprintf (Depends-on): Likewise.
54510         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
54511         * modules/unistdio/ulc-vasprintf (Depends-on): Likewise.
54512         * modules/unistdio/ulc-vfprintf (Depends-on): Likewise.
54513         * modules/unistdio/ulc-vsnprintf (Depends-on): Likewise.
54514         * modules/unistdio/ulc-vsprintf (Depends-on): Likewise.
54515         * MODULES.html.sh: Remove EOVERFLOW.
54516         * NEWS: Mention the change.
54517
54518 2008-09-13  Bruno Haible  <bruno@clisp.org>
54519
54520         * modules/errno-tests: New file.
54521         * tests/test-errno.c: New file, incorporating tests/test-EOVERFLOW.c.
54522
54523         * lib/errno.in.h: New file.
54524         * m4/errno_h.m4: New file, borrowing from m4/eoverflow.m4.
54525         * modules/errno: New file.
54526         * doc/posix-headers/errno.texi: Update documentation.
54527         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add errno.
54528
54529 2008-09-13  Bruno Haible  <bruno@clisp.org>
54530
54531         * tests/test-poll.c: Use #if for native Windows, rather than testing
54532         __MSVCRT__.
54533
54534 2008-09-13  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54535             Bruno Haible  <bruno@clisp.org>
54536
54537         * lib/glob.c: Don't include <pwd.h> on native Windows.
54538         (WINDOWS32): New macro.
54539         (glob) [WINDOW32]: Provide a reasonable replacement for getenv("HOME").
54540
54541 2008-09-13  Bruno Haible  <bruno@clisp.org>
54542
54543         * lib/glthread/cond.h [USE_SOLARIS_THREADS]
54544         (ETIMEDOUT): Remove macro.
54545         (glthread_cond_timedwait_multithreaded): New declaration.
54546         (glthread_cond_timedwait): Use it.
54547         * lib/glthread/cond.c [USE_SOLARIS_THREADS]
54548         (glthread_cond_timedwait_multithreaded): New function.
54549
54550 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54551
54552         * modules/poll-tests: Do not check for io.h.
54553         * tests/test-poll.c: Check for __MSVCRT__ instead.
54554
54555 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54556
54557         * lib/sys_socket.in.h (EINPROGRESS): Define for Winsock case.
54558         * modules/poll-tests: Add inet_pton, stdbool, sockets.
54559         * tests/test-poll.c: Use them.  Use _pipe on Windows.
54560
54561 2008-09-12  Paolo Bonzini  <bonzini@gnu.org>
54562
54563         * modules/poll-tests: New.
54564         * tests/test-poll.c: New.
54565
54566 2008-09-12  Eric Blake  <ebb9@byu.net>
54567
54568         frexp: test for NetBSD failure on -0.0
54569         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Enhance test, since some, but
54570         not all, bugs from NetBSD 3.0 have been fixed.
54571         * doc/posix-functions/frexp.texi (frexp): Document bug.
54572         Reported by Thomas Klausner.
54573
54574         signbit: work around bug of HP-UX 10.20 cc with -0.0 literal
54575         * m4/signbit.m4 (gl_SIGNBIT_TEST_PROGRAM): Rewrite test to avoid
54576         literal -0.0.
54577         Reported by Jonathan C. Patschke <jp@centtech.com>.
54578
54579 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54580
54581         * lib/glthread/cond.h: Use dummy implementation also if
54582         USE_WIN32_THREADS.
54583
54584 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54585
54586         * modules/fnmatch-posix (License): Change to LGPLv2+.
54587         * modules/fnmatch-gnu (License): Likewise.
54588
54589 2008-09-11  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
54590
54591         * lib/poll.c (poll): Fix polling unconnected server sockets on WIN32.
54592
54593 2008-09-11  Jim Meyering  <meyering@redhat.com>
54594
54595         * users.txt: Add gtk-vnc.
54596
54597 2008-09-08  Simon Josefsson  <simon@josefsson.org>
54598
54599         * tests/test-bitrotate.c: Test 8/16-bit rotates with 0 and maximum
54600         rotate amounts.
54601
54602         * lib/bitrotate.h: Doc fix, mention that N can be wider than minimally
54603         required for 16-bit and 8-bit rotates.
54604         * lib/bitrotate.h (rotl64, rotr64, rotl32, rotl32, rotl16, rotr16,
54605         rotl8, rotr8): Use UINT64_MAX, UINT32_MAX, UINT16_MAX, and
54606         UINT8_MAX instead of hard-coded constants.
54607         Suggested by Paul Eggert.
54608
54609 2008-09-07  Bruno Haible  <bruno@clisp.org>
54610
54611         * tests/test-striconveh.c (main): Check behaviour when converting from
54612         UTF-7.
54613
54614         Make striconveh work better with stateful encodings.
54615         * lib/striconveh.c (iconv_carefully, iconv_carefully_1): Don't assume
54616         that iconv does not increment the inptr when returning -1/EINVAL.
54617
54618 2008-09-07  Bruno Haible  <bruno@clisp.org>
54619
54620         * build-aux/config.rpath: Update according to libtool-2.2.6.
54621         * build-aux/config.libpath: Likewise.
54622
54623 2008-09-06  Bruno Haible  <bruno@clisp.org>
54624
54625         * lib/freadahead.c (freadahead): Add conditional for SLOW_BUT_NO_HACKS.
54626         * lib/freadptr.c (freadptr): Likewise.
54627         * lib/freadseek.c (freadptrinc): Likewise.
54628         Reported by Simon Josefsson.
54629
54630 2008-09-06  Bruno Haible  <bruno@clisp.org>
54631
54632         * modules/freadptr (License): Change to LGPLv2+.
54633         * modules/freadseek (License): Likewise.
54634         Suggested by Eric Blake.
54635
54636         * modules/memchr2 (License): Change to LGPLv2+.
54637         Approved by Eric Blake.
54638
54639 2008-09-04  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
54640             Bruno Haible  <bruno@clisp.org>
54641
54642         Make gnulib-tool work with native 'sed' on AIX.
54643         * gnulib-tool (sed_noop): New variable.
54644         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am, func_import,
54645         func_add_or_update, func_create_testdir): Use it to initialize sed
54646         script variables.
54647         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
54648
54649 2008-09-04  Albert Chin  <bug-gnulib@mlists.thewrittenword.com>
54650             Bruno Haible  <bruno@clisp.org>
54651
54652         * m4/include_next.m4 (gl_INCLUDE_NEXT): Add check whether #include_next
54653         also works after #include directives.
54654
54655 2008-09-04  OndÅ™ej Vašík  <ovasik@redhat.com>
54656
54657         getdate.y: reject an out-of-range timezone value
54658         * lib/getdate.y (time_zone_hhmm): Reject any TZ offset that is outside
54659         the range [-24...+24].  When specified with only one or two digits,
54660         * tests/test-getdate.c: Tests for the fix.
54661         * doc/getdate.texi: Document this change.
54662
54663 2008-09-03  Bruno Haible  <bruno@clisp.org>
54664
54665         * doc/glibc-functions/strverscmp.texi: Mention the strverscmp module.
54666
54667 2008-09-02  Simon Josefsson  <simon@josefsson.org>
54668
54669         * lib/bitrotate.h (rotl64, rotr64): Add.  Suggested by Bruce Korb
54670         <bruce.korb@gmail.com> with ideas from Ben Pfaff
54671         <blp@cs.stanford.edu>, Bruno Haible <bruno@clisp.org> and Eric
54672         Blake <ebb9@byu.net>.
54673
54674         * tests/test-bitrotate.c: Add more test vectors.
54675
54676 2008-09-02  Eric Blake  <ebb9@byu.net>
54677
54678         vasnprintf-posix: handle large precision via %.*d
54679         * lib/vasnprintf.c (VASNPRINTF): Don't pass precision to snprintf
54680         when handling it ourselves.
54681         * tests/test-vasnprintf-posix.c (test_function): Add test.
54682         * tests/test-snprintf-posix.h (test_function): Likewise.
54683         * tests/test-sprintf-posix.h (test_function): Likewise.
54684         * tests/test-vasprintf-posix.c (test_function): Likewise.
54685         Reported by Alain Guibert.
54686
54687 2008-09-01  Eric Blake  <ebb9@byu.net>
54688
54689         c-stack: make configure-time check more robust
54690         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Check for
54691         successful sigaction call.
54692         Reported by Tom G. Christensen.
54693
54694 2008-09-01  Bruno Haible  <bruno@clisp.org>
54695
54696         New module 'findprog-lgpl'.
54697         * modules/findprog-lgpl: New file.
54698         * lib/findprog-lgpl.c: New file.
54699         * lib/findprog.c: Compile nothing in findprog.c if findprog-lgpl.c is
54700         also compiled. Consider the possibly defined symbol IN_FINDPROG_LGPL
54701         to decide whether to use strdup or xstrdup, concatenated_filename or
54702         xconcatenated_filename.
54703
54704 2008-09-01  Bruno Haible  <bruno@clisp.org>
54705
54706         Split module 'concat-filename' into 'concat-filename' (LGPL) and
54707         'xconcat-filename' (GPL).
54708         * modules/concat-filename (Depends-on): Add malloc-posix, remove xalloc.
54709         (License): Change to LGPLv2+.
54710         * modules/xconcat-filename: New file.
54711         * lib/concat-filename.h (concatenated_filename): Change specification.
54712         (xconcatenated_filename): New declaration.
54713         * lib/concat-filename.c: Include errno.h, stdlib.h, not xalloc.h.
54714         (concatenated_filename): Use malloc instead of xalloc. Handle out-of-
54715         memory situations.
54716         * lib/xconcat-filename.c: New file.
54717         * NEWS: Mention the change.
54718         * lib/findprog.c: Include concat-filename.h, not filename.h.
54719         (find_in_path): Use xconcatenated_filename instead of
54720         concatenated_filename.
54721         * lib/javacomp.c: Include concat-filename.h, not filename.h.
54722         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
54723         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
54724         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
54725         is_oldgcj_14_13_usable, is_javac_usable): Use xconcatenated_filename
54726         instead of concatenated_filename.
54727         * lib/javaexec.c: Include concat-filename.h, not filename.h.
54728         (execute_java_class): Use xconcatenated_filename instead of
54729         concatenated_filename.
54730         * modules/findprog (Depends-on): Add xconcat-filename, remove filename.
54731         * modules/javacomp (Depends-on): Likewise.
54732         * modules/javaexec (Depends-on): Likewise.
54733
54734 2008-09-01  Bruno Haible  <bruno@clisp.org>
54735
54736         Split module 'filename' into 'filename' and 'concat-filename'.
54737         * modules/filename: Keep only lib/filename.h.
54738         (License): Change to LGPLv2+.
54739         * modules/concat-filename: New file, extracted from modules/filename.
54740         * lib/filename.h (concatenated_filename): Remove declaration.
54741         * lib/concat-filename.h: New file, extracted from lib/filename.h.
54742         * lib/concat-filename.c: Include concat-filename.h.
54743         * NEWS: Mention the change.
54744
54745 2008-09-01  Simon Josefsson  <simon@josefsson.org>
54746
54747         * lib/bitrotate.h (rotl8, rotr8): Add.
54748
54749         * modules/bitrotate (configure.ac): Need
54750         AC_REQUIRE([AC_C_INLINE]).
54751         (Description): Mention stdint.h.  Reported by Bruno Haible
54752         <bruno@clisp.org>.
54753
54754         * lib/bitrotate.h (rotr16, rotl16): Fix mask value.  Reported by
54755         Paolo Bonzini <bonzini@gnu.org>.
54756
54757 2008-08-31  Bruno Haible  <bruno@clisp.org>
54758
54759         Assume Solaris specific bi-arch conventions on Solaris systems.
54760         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): On Solaris in 64-bit
54761         mode, set acl_libdirstem to lib/64. Also set acl_libdirstem2.
54762         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): If acl_libdirstem does not
54763         work, try acl_libdirstem2 as fallback. Otherwise treat acl_libdirstem2
54764         like acl_libdirstem.
54765         (AC_LIB_LINKFLAGS_FROM_LIBS): Treat acl_libdirstem2 like
54766         acl_libdirstem.
54767         * NEWS: Mention the change.
54768         Reported by Ben Taylor <bentaylor.solx86@gmail.com>.
54769
54770 2008-08-31  Jim Meyering  <meyering@redhat.com>
54771
54772         * lib/strftime.h: Add comments describing the two added arguments.
54773
54774         remove duplicate #include directives
54775         * lib/chdir-long.c [TEST_CHDIR]: Remove duplicate #include <stdio.h>.
54776         * lib/putenv.c: Remove duplicate #include <stdlib.h>.
54777
54778 2008-08-31  Bruno Haible  <bruno@clisp.org>
54779
54780         New module 'sigpipe-die'.
54781         * modules/sigpipe-die: New file.
54782         * lib/sigpipe-die.h: New file.
54783         * lib/sigpipe-die.c: New file.
54784         * MODULES.html.sh (Signal handling): Add sigpipe-die.
54785
54786 2008-08-31  Bruno Haible  <bruno@clisp.org>
54787
54788         Don't override previously installed signal handlers.
54789         * lib/fatal-signal.c (saved_sigactions): New variable.
54790         (uninstall_handlers): Reset the signal to the saved handler, not
54791         to SIG_DFL (except when ignored).
54792         (install_handlers): Save the previous handlers.
54793
54794 2008-08-30  Bruno Haible  <bruno@clisp.org>
54795
54796         * gnulib-tool (func_reset_sigpipe): New function.
54797         (func_get_automake_snippet, func_modules_transitive_closure,
54798         func_import): Invoke it before a join command that reads from stdin,
54799         to avoid "echo: write error: Broken pipe" error messages on stderr.
54800         Reported by Sam Steingold <sds@gnu.org>.
54801
54802 2008-08-30  Bruno Haible  <bruno@clisp.org>
54803
54804         * m4/fopen.m4 (gl_FUNC_FOPEN): Test against bug with trailing slash.
54805         Code copied from m4/open.m4.
54806         * lib/fopen.c (rpl_fopen): Return NULL if the mode specifies write
54807         access and the filename ends in a slash. Code copied from lib/open.c.
54808         * doc/posix-functions/fopen.texi: Document bug with trailing slash.
54809         * tests/test-fopen.c (main): Check against bug with trailing slash.
54810
54811 2008-08-29  Bruno Haible  <bruno@clisp.org>
54812
54813         Avoid some "gcc -pedantic" warnings.
54814         * m4/include_next.m4 (gl_INCLUDE_NEXT): Set also PRAGMA_SYSTEM_HEADER.
54815         * lib/arpa_inet.in.h: Use PRAGMA_SYSTEM_HEADER.
54816         * lib/dirent.in.h: Likewise.
54817         * lib/fcntl.in.h: Likewise.
54818         * lib/float.in.h: Likewise.
54819         * lib/iconv.in.h: Likewise.
54820         * lib/inttypes.in.h: Likewise.
54821         * lib/locale.in.h: Likewise.
54822         * lib/math.in.h: Likewise.
54823         * lib/netinet_in.in.h: Likewise.
54824         * lib/search.in.h: Likewise.
54825         * lib/signal.in.h: Likewise.
54826         * lib/stdarg.in.h: Likewise.
54827         * lib/stdint.in.h: Likewise.
54828         * lib/stdio.in.h: Likewise.
54829         * lib/stdlib.in.h: Likewise.
54830         * lib/string.in.h: Likewise.
54831         * lib/strings.in.h: Likewise.
54832         * lib/sys_select.in.h: Likewise.
54833         * lib/sys_socket.in.h: Likewise.
54834         * lib/sys_stat.in.h: Likewise.
54835         * lib/sys_time.in.h: Likewise.
54836         * lib/sysexits.in.h: Likewise.
54837         * lib/time.in.h: Likewise.
54838         * lib/unistd.in.h: Likewise.
54839         * lib/wchar.in.h: Likewise.
54840         * lib/wctype.in.h: Likewise.
54841         * modules/arpa_inet (Makefile.am): Also substitute PRAGMA_SYSTEM_HEADER.
54842         * modules/fchdir (Makefile.am): Likewise.
54843         * modules/fcntl (Makefile.am): Likewise.
54844         * modules/float (Makefile.am): Likewise.
54845         * modules/iconv_open (Makefile.am): Likewise.
54846         * modules/inttypes (Makefile.am): Likewise.
54847         * modules/locale (Makefile.am): Likewise.
54848         * modules/math (Makefile.am): Likewise.
54849         * modules/netinet_in (Makefile.am): Likewise.
54850         * modules/search (Makefile.am): Likewise.
54851         * modules/signal (Makefile.am): Likewise.
54852         * modules/stdarg (Makefile.am): Likewise.
54853         * modules/stdint (Makefile.am): Likewise.
54854         * modules/stdio (Makefile.am): Likewise.
54855         * modules/stdlib (Makefile.am): Likewise.
54856         * modules/string (Makefile.am): Likewise.
54857         * modules/strings (Makefile.am): Likewise.
54858         * modules/sys_select (Makefile.am): Likewise.
54859         * modules/sys_socket (Makefile.am): Likewise.
54860         * modules/sys_stat (Makefile.am): Likewise.
54861         * modules/sys_time (Makefile.am): Likewise.
54862         * modules/sysexits (Makefile.am): Likewise.
54863         * modules/time (Makefile.am): Likewise.
54864         * modules/unistd (Makefile.am): Likewise.
54865         * modules/wchar (Makefile.am): Likewise.
54866         * modules/wctype (Makefile.am): Likewise.
54867         Reported by Reuben Thomas <rrt@sc3d.org>.
54868
54869 2008-08-29  Bruno Haible  <bruno@clisp.org>
54870
54871         * m4/include_next.m4 (gl_INCLUDE_NEXT): Don't define HAVE_INCLUDE_NEXT
54872         any more.
54873
54874 2008-08-29  Simon Josefsson  <simon@josefsson.org>
54875
54876         * MODULES.html.sh (Misc): Add bitrotate.
54877
54878         * modules/bitrotate: New file.
54879
54880         * lib/bitrotate.h: New file.
54881
54882         * modules/bitrotate-tests: New file.
54883
54884         * tests/test-bitrotate.c: New file.
54885
54886         * modules/crypto/gc-arctwo, modules/crypto/arctwo: Add dependency
54887         on the bitrotate module.
54888
54889         * lib/arctwo.c: Use new bitrotate module.
54890
54891 2008-08-29  Jim Meyering  <meyering@redhat.com>
54892
54893         bootstrap: merge changes from coreutils
54894         * build-aux/bootstrap (cp_mark_as_generated): Preserve perms
54895         of copied files.  Remove a kludge, now that this is fixed.
54896         * build-aux/bootstrap: Fix unportable expr usage. (by Ralf Wildenhues)
54897         * build-aux/bootstrap: Remove $bt and $bt2 also when not using gettext.
54898         * build-aux/bootstrap: Remove coreutils-specific SUBDIRS-related code.
54899
54900 2008-08-29  Bruno Haible  <bruno@clisp.org>
54901
54902         * MODULES.html.sh: Remove --cvs-urls option.
54903
54904 2008-08-28  Jose E. Marchesi  <jemarch@gnu.org>  (tiny change)
54905
54906         maint.mk: adjust to file name change
54907         * top/maint.mk: s/Makefile.cfg/cfg.mk/.
54908
54909 2008-08-28  Jim Meyering  <meyering@redhat.com>
54910
54911         * modules/getndelim2 (License): Relicense to LGPLv2+.
54912         Approved by Richard Stallman for the version of 1995, and by
54913         Paul Eggert, Bruno Haible, Eric Blake for their contributions.
54914
54915 2008-08-27  Paolo Bonzini  <bonzini@gnu.org>
54916
54917         * lib/getdelim.c (flockfile, funlockfile): Make all of them
54918         dummy if one is not available.  Do not touch them if
54919         USE_UNLOCKED_IO, instead letting unlocked-io.h do that.
54920         (getc_maybe_unlocked): New.
54921         * m4/getdelim.m4 (gl_PREREQ_GETDELIM): Check for getc_unlocked.
54922
54923 2008-08-26  Eric Blake  <ebb9@byu.net>
54924
54925         doc/INSTALL: resync from autoconf
54926         * doc/Makefile (INSTALL, INSTALL.ISO, INSTALL.UTF-8): Simplify.
54927         (INSTALL_PRELUDE): Delete; this is done more efficiently by
54928         moving...
54929         * install.texi [!autoconf]: ...here.  Resync from autoconf.
54930         * INSTALL: Regenerate.
54931         * INSTALL.ISO: New file.
54932         * INSTALL.UTF-8: Likewise.
54933
54934 2008-08-26  Jim Meyering  <meyering@redhat.com>
54935
54936         GNUmakefile: cfg.mk definitions override default autoreconf-rerun policy
54937         * top/GNUmakefile (_is-dist-target, _is-install-target): Make
54938         these definitions conditional, so that they may be overridden, too.
54939
54940 2008-08-26  Bruno Haible  <bruno@clisp.org>
54941
54942         Generate INSTALL file variants with prettier quotes.
54943         * doc/Makefile (INSTALL_PRELUDE): New macro.
54944         (INSTALL): Use it.
54945         (INSTALL.ISO, INSTALL.UTF-8): New rules.
54946
54947 2008-08-26  Bruno Haible  <bruno@clisp.org>
54948
54949         Run makeinfo in an English locale.
54950         * doc/Makefile (MAKEINFO): New variable.
54951
54952 2008-08-26  Bruno Haible  <bruno@clisp.org>
54953
54954         * doc/Makefile (INSTALL): Use --no-validate instead of --no-warn.
54955         Suggested by Eric Blake.
54956
54957 2008-08-25  Bruno Haible  <bruno@clisp.org>
54958
54959         * doc/Makefile (INSTALL): Generate with @firstparagraphindent set.
54960
54961 2008-08-25  Eric Blake  <ebb9@byu.net>
54962
54963         c-stack: test that stack overflow can be caught
54964         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Also check
54965         that platform allows handling stack overflow; at least OS/2 EMX
54966         has sigaltstack, but crashes before transferring control to
54967         handler on stack overflow.
54968         * lib/c-stack.c [HAVE_SIGALTSTACK]: Adjust conditions to also
54969         check for HAVE_STACK_OVERFLOW_HANDLING.
54970         Reported by Elbert Pol.
54971
54972 2008-08-25  Bruno Haible  <bruno@clisp.org>
54973
54974         * doc/posix-functions/strftime.texi: Fix description of strftime
54975         module.
54976
54977 2008-08-24  Bruno Haible  <bruno@clisp.org>
54978
54979         * tests/uniwidth/test-uc_width2.c: New file.
54980         * tests/uniwidth/test-uc_width2.sh: New file.
54981         * modules/uniwidth/width-tests (Files): Add the new files.
54982         (TESTS): Add uniwidth/test-uc_width2.sh.
54983         (TESTS_ENVIRONMENT): New variable.
54984         (check_PROGRAMS): Add test-uc_width2.
54985         (test_uc_width2_SOURCES): New variable.
54986
54987         Fix uc_width(0x00AB) bug, introduced on 2007-07-08.
54988         * lib/uniwidth/width.c (nonspacing_table_data): Set bit for 0x00AD,
54989         not 0x00AB.
54990         Reported by Alexander V. Lukyanov <lav@netis.ru>.
54991
54992 2008-08-22  Eric Blake  <ebb9@byu.net>
54993
54994         test-lock, test-tls: mention why a test is skipped
54995         * tests/test-lock.c (main) [!USE_*_THREADS]: Print why test is
54996         skipped.
54997         * tests/test-tls.c (main) [!USE_*_THREADS]: Likewise.
54998
54999         count-one-bits: relax license
55000         * modules/count-one-bits (License): Relicense to LGPLv2+.
55001         Suggested by Ludovic Courtès, approved by Ben Pfaff.
55002
55003 2008-08-22  Andreas Schwab  <schwab@suse.de>
55004
55005         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX):
55006         Remove spurious space in assignment.
55007
55008 2008-08-21  Simon Josefsson  <simon@josefsson.org>
55009
55010         * m4/autobuild.m4: Use TZ=UTC0 instead of TZ=UTC.  Reported by
55011         Paul Eggert <eggert@CS.UCLA.EDU>.
55012
55013 2008-08-20  Paolo Bonzini  <bonzini@gnu.org>
55014
55015         * modules/gettext: Add m4/threadlib.m4.
55016
55017 2008-08-19  Eric Blake  <ebb9@byu.net>
55018
55019         test-c-stack: fix compilation failure on FreeBSD 5.0
55020         * tests/test-c-stack.c [HAVE_SETRLIMIT]: Include prerequisite
55021         headers before <sys/resource.h>.
55022         * doc/posix-headers/sys_resource.texi (sys/resource.h): Document
55023         the bug.
55024         Reported by Nelson H. F. Beebe.
55025
55026         strverscmp: migrate from "strverscmp.h" to <string.h>
55027         * modules/string (Makefile.am): Add new hooks.
55028         * modules/strverscmp (Files): Remove strverscmp.h.
55029         (Depends-on): Add string.
55030         (configure.ac): Add indicator.
55031         (Include): Mention new header.
55032         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Provide new
55033         defaults.
55034         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Inform string module of
55035         results.
55036         * lib/strverscmp.h: Delete.
55037         * lib/string.in.h (strverscmp): Provide declaration, when needed.
55038         * tests/test-strverscmp.c (includes): Adjust client.
55039         * lib/check-version.c (includes): Likewise.
55040         * NEWS: Document the change.
55041
55042         strverscmp: add unit test
55043         * modules/strverscmp-tests: New file.
55044         * tests/test-strverscmp.c: Likewise.
55045
55046 2008-08-19  Simon Josefsson  <simon@josefsson.org>
55047
55048         * lib/gc-gnulib.c: Indentation cleanup.  Add some comments
55049         regarding Windows crypto stuff, from Mono.
55050
55051 2008-08-19  Adam Strzelecki <ono@java.pl>  (tiny change)
55052
55053         * lib/gc-gnulib.c: Use CRYPT_VERIFY_CONTEXT.  Try to use Intel CSP
55054         if present, for intel RND.  Return error on failures.
55055
55056 2008-08-18  Ben Pfaff  <blp@gnu.org>
55057
55058         gitlog-to-changelog: give better diagnostic for failed pipe-open
55059         * build-aux/gitlog-to-changelog: Improve error message: suggest
55060         that the version of Git may be too old.
55061
55062 2008-08-18  Simon Josefsson  <simon@josefsson.org>
55063
55064         * m4/autobuild.m4: Use TZ=UTC to avoid time zone complexity.  Use
55065         ISO 8601 format.  Suggested by Greg Troxel <gdt@ir.bbn.com>.
55066
55067 2008-08-18  Bruno Haible  <bruno@clisp.org>
55068
55069         * lib/glthread/thread.h [USE_SOLARIS_THREADS]: Use thread_in_use(), not
55070         pthread_in_use().
55071
55072 2008-08-18  Bruno Haible  <bruno@clisp.org>
55073
55074         * lib/glthread/threadlib.c: Include <pthread.h>.
55075
55076 2008-08-18  Bruno Haible  <bruno@clisp.org>
55077
55078         * lib/glthread/lock.h [USE_SOLARIS_THREADS]: Fix
55079         glthread_recursive_lock_* macros.
55080         * lib/glthread/lock.c (glthread_recursive_lock_destroy_multithreaded):
55081         Fix syntax error.
55082
55083 2008-08-18  Bruno Haible  <bruno@clisp.org>
55084
55085         * lib/glthread/thread.c: Avoid forcing a context switch right after
55086         thread creation.
55087
55088 2008-08-17  Bruno Haible  <bruno@clisp.org>
55089
55090         * lib/glthread/thread.c: New file, based on code from tests/test-lock.c.
55091         * lib/glthread/thread.h: Provide Win32 specific implementation.
55092         * modules/thread (Files): Add lib/glthread/thread.c.
55093         (Depends-on): Add lock.
55094         (Makefile.am): Add glthread/thread.c to lib_SOURCES.
55095
55096 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55097
55098         New module 'yield'.
55099         * modules/yield: New file.
55100         * lib/glthread/yield.h: New file.
55101         * m4/yield.m4: New file.
55102         * MODULES.html.sh (Multithreading): Add yield.
55103
55104 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55105
55106         New module 'thread'.
55107         * modules/thread: New file.
55108         * lib/glthread/thread.h: New file.
55109         * m4/thread.m4: New file.
55110         * MODULES.html.sh (Multithreading): Add thread.
55111
55112 2008-08-17  Bruno Haible  <bruno@clisp.org>
55113
55114         * lib/glthread/lock.h: Include <stdlib.h> always.
55115         * lib/glthread/tls.h: Likewise.
55116         * lib/glthread/cond.h: Likewise.
55117
55118 2008-08-17  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
55119
55120         New module 'cond'.
55121         * modules/cond: New file.
55122         * lib/glthread/cond.h: New file.
55123         * lib/glthread/cond.c: New file.
55124         * m4/cond.m4: New file.
55125         * MODULES.html.sh (Multithreading): Add cond.
55126
55127 2008-08-16  Eric Blake  <ebb9@byu.net>
55128
55129         c-stack: fix regression on Irix 5.3 from 2008-06-21
55130         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Move check for
55131         sa_sigaction...
55132         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): ...here.
55133         (gl_PREREQ_SIGACTION): Depend on sig-handler.h prereq's.
55134         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Set the default.
55135         * modules/signal (Makefile.am): Use the value.
55136         * lib/signal.in.h (sa_sigaction) [HAVE_SIGACTION
55137         && !HAVE_STRUCT_SIGACTION_SA_SIGACTION]: Define.
55138         * doc/posix-headers/signal.texi (signal.h): Document this
55139         portability issue.
55140         * doc/posix-functions/sigaction.texi (sigaction): Likewise.
55141         Reported by Tom G. Christensen.
55142
55143 2008-08-17  Bruno Haible  <bruno@clisp.org>
55144
55145         New module 'threadlib'.
55146         * modules/threadlib: New file.
55147         * lib/glthread/threadlib.c: New file, extracted from
55148         lib/glthread/lock.c.
55149         * lib/glthread/lock.c (dummy_thread_func, glthread_in_use): Remove
55150         functions.
55151         * m4/threadlib.m4: New file, from m4/lock.m4, renaming gl_LOCK to
55152         gl_THREADLIB and gl_LOCK_EARLY to gl_THREADLIB_EARLY.
55153         * m4/lock.m4 (gl_LOCK_EARLY, gl_LOCK_EARLY_BODY, gl_LOCK_BODY): Remove
55154         macros.
55155         (gl_LOCK): Just require gl_THREADLIB and perform checks for lock.h.
55156         (gl_DISABLE_THREADS): Remove macro.
55157         * modules/lock (Files): Remove build-aux/config.rpath.
55158         (Depends-on): Remove havelib. Add threadlib.
55159         (configure.ac-early): Remove section.
55160         * m4/tls.m4 (gl_TLS): Require gl_THREADLIB instead of gl_LOCK.
55161         * modules/tls (Depends-on): Remove lock. Add threadlib.
55162         (Link): New section, copied from threadlib.
55163         * MODULES.html.sh (Multithreading): Add threadlib.
55164
55165 2008-08-14  Bruno Haible  <bruno@clisp.org>
55166
55167         * lib/glthread/lock.h (glthread_lock_lock, glthread_lock_unlock,
55168         glthread_lock_destroy, glthread_rwlock_rdlock, glthread_rwlock_wrlock,
55169         glthread_rwlock_unlock, glthread_rwlock_destroy,
55170         glthread_recursive_lock_lock, glthread_recursive_lock_unlock,
55171         glthread_recursive_lock_destroy): Define as macros always.
55172         * lib/glthread/lock.c (glthread_lock_lock_func): Renamed from
55173         glthread_lock_lock.
55174         (glthread_lock_unlock_func): Renamed from glthread_lock_unlock.
55175         (glthread_lock_destroy_func): Renamed from glthread_lock_destroy.
55176         (glthread_rwlock_rdlock_func): Renamed from glthread_rwlock_rdlock.
55177         (glthread_rwlock_wrlock_func): Renamed from glthread_rwlock_wrlock.
55178         (glthread_rwlock_unlock_func): Renamed from glthread_rwlock_unlock.
55179         (glthread_rwlock_destroy_func): Renamed from glthread_rwlock_destroy.
55180         (glthread_recursive_lock_lock_func): Renamed from
55181         glthread_recursive_lock_lock.
55182         (glthread_recursive_lock_unlock_func): Renamed from
55183         glthread_recursive_lock_unlock.
55184         (glthread_recursive_lock_destroy_func): Renamed from
55185         glthread_recursive_lock_destroy.
55186
55187 2008-08-14  Bruno Haible  <bruno@clisp.org>
55188
55189         * lib/glthread/lock.h: Renamed from lib/lock.h.
55190         * lib/glthread/lock.c: Renamed from lib/lock.c. Update includes.
55191         * lib/glthread/tls.h: Renamed from lib/tls.h.
55192         * lib/glthread/tls.c: Renamed from lib/tls.c. Update includes.
55193         * lib/fstrcmp.c: Update includes.
55194         * lib/strsignal.c: Update includes.
55195         * modules/lock (Files, Makefile.am): Update.
55196         (Include): Change to "glthread/lock.h".
55197         * modules/tls (Files, Makefile.am): Update.
55198         (Include): Change to "glthread/tls.h".
55199         * tests/test-lock.c: Update includes.
55200         * tests/test-tls.c: Update includes.
55201         * NEWS: Mention the renamed header files.
55202
55203 2008-08-11  Jim Meyering  <meyering@redhat.com>
55204
55205         * lib/fts_.h: Fix grammar (insert a missing "is") in a comment.
55206
55207 2008-08-11  Eric Blake  <ebb9@byu.net>
55208
55209         test-c-stack: avoid C99-ism
55210         * tests/test-c-stack.c (main): Fix whitespace, move declaration
55211         before statement.
55212         Reported by Alain Guibert.
55213
55214 2008-08-10  Jim Meyering  <meyering@redhat.com>
55215
55216         ensure that return value of uinttostr et al are not ignored
55217         * lib/inttostr.h (__GNUC_PREREQ): Define.
55218         (__attribute_warn_unused_result__): Define.
55219         (offtostr, imaxtostr, umaxtostr, uinttostr): Apply the attribute.
55220
55221 2008-08-07  Paolo Bonzini  <bonzini@gnu.org>
55222
55223         * lib/lock.c (glthread_recursive_lock_init_multithreaded)
55224         [!PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Fix typo.
55225
55226 2008-08-07  Jim Meyering  <meyering@redhat.com>
55227
55228         * m4/inet_pton.m4: Fix typo in comment: s/inet_ntop/inet_pton/.
55229
55230         * modules/mkstemp (License): Relicense under LGPLv2+.
55231         * modules/tempname (License): Likewise.
55232
55233 2008-08-06  Bruno Haible  <bruno@clisp.org>
55234
55235         * lib/poll.c (poll): Further micro-optimization.
55236
55237 2008-08-06  Jim Meyering  <meyering@redhat.com>
55238
55239         inet_pton.c: use locale-independent tolower
55240         * lib/inet_pton.c: Include <c-ctype.h> rather than <ctype.h>.
55241         (inet_pton6): Use c_tolower rather than tolower.
55242         * modules/inet_pton (Depends-on): Add c-ctype.
55243
55244 2008-08-06  Paolo Bonzini  <bonzini@gnu.org>
55245
55246         * lib/poll.c (poll): Avoid division when timeout is 0, cache
55247         _SC_OPEN_MAX, avoid repeated access to errno.  Check for nfd < 0.
55248
55249 2008-08-06  Jim Meyering  <meyering@redhat.com>
55250
55251         * modules/inet_pton (License): Relicense under LGPLv2+.
55252
55253 2008-08-03  Bruno Haible  <bruno@clisp.org>
55254
55255         Additional non-aborting API for lock and tls.
55256         * lib/lock.h: Include <errno.h>.
55257         (glthread_lock_init): New macro/function.
55258         (gl_lock_init): Define as wrapper around glthread_lock_init.
55259         (glthread_lock_lock): New macro/function.
55260         (gl_lock_lock): Define as wrapper around glthread_lock_lock.
55261         (glthread_lock_unlock): New macro/function.
55262         (gl_lock_unlock): Define as wrapper around glthread_lock_unlock.
55263         (glthread_lock_destroy): New macro/function.
55264         (gl_lock_destroy): Define as wrapper around glthread_lock_destroy.
55265         (glthread_rwlock_init): New macro/function.
55266         (gl_rwlock_init): Define as wrapper around glthread_rwlock_init.
55267         (glthread_rwlock_rdlock): New macro/function.
55268         (gl_rwlock_rdlock): Define as wrapper around glthread_rwlock_rdlock.
55269         (glthread_rwlock_wrlock): New macro/function.
55270         (gl_rwlock_wrlock): Define as wrapper around glthread_rwlock_wrlock.
55271         (glthread_rwlock_unlock): New macro/function.
55272         (gl_rwlock_unlock): Define as wrapper around glthread_rwlock_unlock.
55273         (glthread_rwlock_destroy): New macro/function.
55274         (gl_rwlock_destroy): Define as wrapper around glthread_rwlock_destroy.
55275         (glthread_recursive_lock_init): New macro/function.
55276         (gl_recursive_lock_init): Define as wrapper around
55277         glthread_recursive_lock_init.
55278         (glthread_recursive_lock_lock): New macro/function.
55279         (gl_recursive_lock_lock): Define as wrapper around
55280         glthread_recursive_lock_lock.
55281         (glthread_recursive_lock_unlock): New macro/function.
55282         (gl_recursive_lock_unlock): Define as wrapper around
55283         glthread_recursive_lock_unlock.
55284         (glthread_recursive_lock_destroy): New macro/function.
55285         (gl_recursive_lock_destroy): Define as wrapper around
55286         glthread_recursive_lock_destroy.
55287         (glthread_once): New macro/function.
55288         (gl_once): Define as wrapper around glthread_once.
55289         Update function declarations.
55290         * lib/lock.c (glthread_rwlock_init_multithreaded): Renamed from
55291         glthread_rwlock_init. Return error code.
55292         (glthread_rwlock_rdlock_multithreaded): Renamed from
55293         glthread_rwlock_rdlock. Return error code.
55294         (glthread_rwlock_wrlock_multithreaded): Renamed from
55295         glthread_rwlock_wrlock. Return error code.
55296         (glthread_rwlock_unlock_multithreaded): Renamed from
55297         glthread_rwlock_unlock. Return error code.
55298         (glthread_rwlock_destroy_multithreaded): Renamed from
55299         glthread_rwlock_destroy. Return error code.
55300         (glthread_recursive_lock_init_multithreaded): Renamed from
55301         glthread_recursive_lock_init. Return error code.
55302         (glthread_recursive_lock_lock_multithreaded): Renamed from
55303         glthread_recursive_lock_lock. Return error code.
55304         (glthread_recursive_lock_unlock_multithreaded): Renamed from
55305         glthread_recursive_lock_unlock. Return error code.
55306         (glthread_recursive_lock_destroy_multithreaded): Renamed from
55307         glthread_recursive_lock_destroy. Return error code.
55308         (glthread_once_call): Make static.
55309         (glthread_once_multithreaded): Renamed from glthread_once.
55310         * lib/tls.h: Include <errno.h>.
55311         (glthread_tls_key_init): New macro/function.
55312         (gl_tls_key_init): Define as wrapper around glthread_tls_key_init.
55313         (glthread_tls_set): New macro/function.
55314         (gl_tls_set): Define as wrapper around glthread_tls_set.
55315         (glthread_tls_key_destroy): New macro/function.
55316         (gl_tls_key_destroy): Define as wrapper around glthread_tls_key_destroy.
55317         Update function declarations.
55318         * lib/tls.c (glthread_tls_get_multithreaded): Renamed from
55319         glthread_tls_get.
55320         Suggested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
55321
55322 2008-08-04  Eric Blake  <ebb9@byu.net>
55323
55324         gnumakefile: use space, not TAB, outside of targets
55325         * top/GNUmakefile (_dummy): Fix whitespace error in prior edit.
55326
55327 2008-08-02  Jim Meyering  <meyering@redhat.com>
55328
55329         getdate.y: avoid locale-dependent date parsing failure
55330         In Turkish locales, getdate would fail to recognize keywords
55331         containing a lowercase "i".  The solution is not to rely on
55332         locale-sensitive case-conversion.
55333         * lib/getdate.y: Include <c-ctype.h> rather than <ctype.h>.
55334         (lookup_word): Use c_toupper in place of toupper.
55335         (yylex, get_date): Use c_ prefixed variants of isspace and isalpha, too.
55336         Reported by Vefa Bicakci <bicave@superonline.com> in
55337         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/14184>.
55338         * modules/getdate (Depends-on): Add c-ctype.
55339
55340 2008-08-02  Bruno Haible  <bruno@clisp.org>
55341
55342         * gnulib-tool (func_import): When updating or creating a .gitignore
55343         file, prepend each added line with a slash, and ignore leading slashes
55344         from the existing lines.
55345         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
55346
55347 2008-08-02  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55348
55349         Portability fix for GNU make 3.79.1.
55350         * top/GNUmakefile: Avoid 'else COND', which older GNU make
55351         versions do not understand.
55352
55353 2008-08-01  Bruno Haible  <bruno@clisp.org>
55354
55355         Work around bug of HP-UX 10.20 cc with -0.0 literal.
55356         * tests/test-isnanf.h (zero): New variable.
55357         (main): Avoid literal -0.0f.
55358         * tests/test-isnand.h (zero): New variable.
55359         (main): Avoid literal -0.0.
55360         * tests/test-isnanl.h (zero): New variable.
55361         (main): Avoid literal -0.0L.
55362         * tests/test-isnan.c (zerof, zerod, zerol): New variables.
55363         (test_float, test_double, test_long_double): Avoid literals -0.0f,
55364         -0.0, -0.0L.
55365         * tests/test-signbit.c (test_signbitf): Avoid literal -0.0f.
55366         (test_signbitd): Avoid literal -0.0.
55367         (test_signbitl): Avoid literal -0.0L.
55368         * tests/test-ceilf1.c (zero): New variable.
55369         (main): Avoid literal -0.0f.
55370         * tests/test-ceill.c (zero): New variable.
55371         (main): Avoid literal -0.0L.
55372         * tests/test-floorf1.c (zero): New variable.
55373         (main): Avoid literal -0.0f.
55374         * tests/test-floorl.c (zero): New variable.
55375         (main): Avoid literal -0.0L.
55376         * tests/test-roundf1.c (zero): New variable.
55377         (main): Avoid literal -0.0f.
55378         * tests/test-round1.c (zero): New variable.
55379         (main): Avoid literal -0.0.
55380         * tests/test-roundl.c (zero): New variable.
55381         (main): Avoid literal -0.0L.
55382         * tests/test-truncf1.c (zero): New variable.
55383         (main): Avoid literal -0.0f.
55384         * tests/test-trunc1.c (zero): New variable.
55385         (main): Avoid literal -0.0.
55386         * tests/test-truncl.c (zero): New variable.
55387         (main): Avoid literal -0.0L.
55388         * tests/test-frexp.c (zero): New variable.
55389         (main): Avoid literal -0.0.
55390         * tests/test-frexpl.c (zero): New variable.
55391         (main): Avoid literal -0.0L.
55392         * tests/test-ldexpl.c (zero): New variable.
55393         (main): Avoid literal -0.0L.
55394         * tests/test-snprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55395         (zerod, zerol): New variables.
55396         (test_function): Avoid literals -0.0, -0.0L.
55397         * tests/test-sprintf-posix.h (have_minus_zero): Avoid literal -0.0.
55398         (zerod, zerol): New variables.
55399         (test_function): Avoid literals -0.0, -0.0L.
55400         * tests/test-vasnprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55401         (zerod, zerol): New variables.
55402         (test_function): Avoid literals -0.0, -0.0L.
55403         * tests/test-vasprintf-posix.c (have_minus_zero): Avoid literal -0.0.
55404         (zerod, zerol): New variables.
55405         (test_function): Avoid literals -0.0, -0.0L.
55406         * tests/test-strtod.c (zero): New variable.
55407         (main): Avoid literal -0.0.
55408         Reported by Jonathan C. Patschke <jp@centtech.com>.
55409
55410 2008-07-31  Jim Meyering  <meyering@redhat.com>
55411
55412         sha256.h: correct definition of SHA224_DIGEST_SIZE
55413         * lib/sha256.h (SHA224_DIGEST_SIZE): Define to 28, not 24.
55414         Reported by Paulie Pena IV <paulie4@gmail.com>.
55415         Define as 224 / 8, rather than as a literal.
55416         (SHA256_DIGEST_SIZE): Define as 256/8 rather than equivalent literal.
55417         * lib/sha512.h (SHA384_DIGEST_SIZE): Likewise, define as equiv: 384/8.
55418         (SHA512_DIGEST_SIZE): Likewise, define as equivalent quotient: 512/8.
55419
55420 2008-07-31  Bruno Haible  <bruno@clisp.org>
55421
55422         * lib/regex_internal.h (BITSET_WORD_BITS): Make first conditional work
55423         on HP-UX 10.20 with "cc -Ae". Fix second conditional.
55424         Reported by Jonathan Patschke <jp@centtech.com>.
55425
55426 2008-07-31  Bruno Haible  <bruno@clisp.org>
55427
55428         * gnulib-tool (func_import): Make change from 2008-06-23 more robust.
55429         Reported by Paolo Bonzini <bonzini@gnu.org>.
55430
55431 2008-07-30  Eric Blake  <ebb9@byu.net>
55432
55433         test-strtod: allow compilation without -lm
55434         * tests/test-strtod.c (main): Avoid link dependence on fabs.
55435         Reported by Dennis Clarke <blastwave@gmail.com>.
55436
55437 2008-07-28  Jim Meyering  <meyering@redhat.com>
55438
55439         bootstrap: work also when there are no .po files in po/
55440         * build-aux/bootstrap (update_po_files): Complete the change
55441         that I began in bc960df8c789c878f1c1c54a28a3c2648dead8d9.
55442
55443 2008-07-27  Jim Meyering  <meyering@redhat.com>
55444
55445         * users.txt: Add zile.
55446
55447 2008-07-26  Ben Pfaff  <blp@gnu.org>
55448
55449         Add missing dependencies on new m4/exponent[fdl].m4 files.
55450         * modules/isnanf-nolibm: Add m4/exponentf.m4.
55451         * modules/isnand-nolibm: Add m4/exponentd.m4.
55452         * modules/isnanl-nolibm: Add m4/exponentl.m4.
55453         * modules/signbit-tests: Use m4/exponent[fdl].m4 instead of
55454         m4/isnan[fdl].m4, because the macros actually used moved.
55455         Reported by Jim Meyering.
55456
55457 2008-07-14  Ben Pfaff  <blp@gnu.org>
55458
55459         Add isinf module.
55460         * lib/isinf.c: New file.
55461         * lib/math.in.h: Define isinf macro if we have decided to replace
55462         it.
55463         * m4/isinf.m4: New file.
55464         * m4/math_h.m4: Initialize and substitute variables for isinf
55465         module.
55466         * modules/isinf: New file.
55467         * modules/isinf-tests: New file.
55468         * modules/math: Add substitutions for new module.
55469         * tests/test-isinf.c: New file.
55470         * doc/posix-functions/isinf.texi: Mention new module.
55471         * MODULES.html.sh: Mention new module.
55472
55473 2008-07-14  Ben Pfaff  <blp@gnu.org>
55474
55475         Factor out some macros for use by additional modules.
55476         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Move into new file
55477         exponentf.m4.
55478         * m4/isnand.m4 (gl_DOUBLE_EXPONENT_LOCATION): Move into new file
55479         exponentd.m4.
55480         * m4/isnanl.m4 (gl_LONG_DOUBLE_EXPONENT_LOCATION): Move into new
55481         file exponentl.m4.
55482         * m4/exponentf.m4: New file.
55483         * m4/exponentd.m4: New file.
55484         * m4/exponentl.m4: New file.
55485         * modules/isnanf: Use new file m4/exponentf.m4.
55486         * modules/isnand: Use new file m4/exponentd.m4.
55487         * modules/isnanl: Use new file m4/exponentl.m4.
55488
55489 2008-07-23  Ulrich Drepper  <drepper@redhat.com>
55490
55491         mktime.c: normalize tp->tm_isdst value to -1/0/1.
55492         * lib/mktime.c (__mktime_internal): Normalize tp->tm_isdst value.
55493         Reported by Michael Ringe <Michael.Ringe@gmx.de> in
55494         <http://sourceware.org/bugzilla/show_bug.cgi?id=6723>.
55495
55496         * lib/canonicalize-lgpl.c (__realpath): Avoid buffer overflow after
55497         readlink on platforms without PATH_MAX.
55498
55499 2008-07-21  Eric Blake  <ebb9@byu.net>
55500
55501         Warn, not fail, on stale version.
55502         * top/GNUmakefile (_curr-ver): Tone down previous patch.
55503
55504         Don't allow installation with stale devel version number.
55505         * top/GNUmakefile (_is-install-target): New macro.
55506         (_curr-ver): Forbid installation with stale version number.
55507
55508 2008-07-20  Bruno Haible  <bruno@clisp.org>
55509
55510         * modules/c-stack-tests (Makefile.am): Add LIBSIGSEGV to
55511         TESTS_ENVIRONMENT.
55512         * tests/test-c-stack2.sh: React differently if LIBSIGSEGV is in use.
55513
55514 2008-07-20  Bruno Haible  <bruno@clisp.org>
55515
55516         * lib/c-stack.h (c_stack_action): Add documentation.
55517         * lib/c-stack.c (c_stack_action): Remove incomplete documentation.
55518
55519 2008-07-20  Bruno Haible  <bruno@clisp.org>
55520
55521         * modules/canonicalize-lgpl (License): Relicense under LGPLv2+.
55522         * modules/readlink (License): Likewise.
55523
55524 2008-07-17  Eric Blake  <ebb9@byu.net>
55525
55526         * modules/c-stack (Link): Fix typo.
55527
55528         Make c-stack use libsigsegv, when available.
55529         * modules/c-stack (Depends-on): Add libsigsegv.
55530         * modules/c-stack-tests (Makefile.am): Link with libsigsegv, if
55531         needed.
55532         * lib/c-stack.c (SIGSTKSZ): Define fallback.
55533         (segv_handler, overflow_handler, c_stack_action)
55534         [HAVE_LIBSIGSEGV && !HAVE_XSI_STACK_OVERFLOW_HEURISTIC]: Add new
55535         implementation when libsigsegv is available, but only when using
55536         the library is necessary.
55537         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Add
55538         comment, explaining why XSI check fails on Linux.
55539         (gl_PREREQ_C_STACK): Supply LIBCSTACK, LTLIBCSTACK.
55540         * tests/test-c-stack2.sh: Tweak skip message.
55541         * NEWS: Document new link-time requirements.
55542
55543 2008-07-16  Eric Blake  <ebb9@byu.net>
55544
55545         c-stack: Expose false positives when not using libsigsegv.
55546         * modules/c-stack-tests (Files): Expand test.
55547         * tests/test-c-stack.c (main): Add means to conditionally trigger
55548         non-overflow SIGSEGV.
55549         * tests/test-c-stack2.sh: New file.
55550
55551 2008-07-14  Bruno Haible  <bruno@clisp.org>
55552
55553         * m4/libsigsegv.m4: Remove unneeded AC_PREREQ.
55554         Reported by Eric Blake.
55555
55556 2008-07-14  Sam Steingold  <sds@gnu.org>
55557             Bruno Haible  <bruno@clisp.org>
55558
55559         New module libsigsegv.
55560         * modules/libsigsegv: New file.
55561         * m4/libsigsegv.m4: New file, from GNU clisp sigsegv.m4 with
55562         modifications.
55563         * MODULES.html.sh (Signal handling): New section.
55564
55565 2008-07-14  Bruno Haible  <bruno@clisp.org>
55566
55567         * modules/unictype/ctype-* (Description): Add the word "function".
55568         Improves the resulting doc in MODULES.html.
55569
55570 2008-07-12  Ben Pfaff  <blp@gnu.org>
55571
55572         Add longlong module.
55573         * modules/longlong: New file.
55574
55575 2008-07-12  Bruno Haible  <bruno@clisp.org>
55576
55577         * m4/isnan.m4 (gl_ISNAN): When the replacement is used, set ISNAN_LIBM
55578         to empty.
55579
55580 2008-07-10  Ben Pfaff  <blp@gnu.org>
55581
55582         Add isnan module.
55583         * doc/posix-functions/isnan.texi: Mention new module.
55584         * lib/math.in.h: Define isnan macro if we have decided to replace
55585         it.
55586         * m4/isnan.m4: New file.
55587         * m4/isnanl.m4 (gl_FUNC_ISNANL): Factor out some code into new
55588         macro gl_BUILD_ISNANL so that isnan.m4 can use that functionality
55589         also.
55590         (gl_FUNC_ISNANL_NO_LIBM): Factor out same code, to reduce
55591         redundancy.
55592         * m4/math_h.m4: Initialize and substitute variables for isnan
55593         module.
55594         * modules/isnan: New file.
55595         * modules/isnan-tests: New file.
55596         * modules/math: Add substitutions for new module.
55597         * tests/test-isnan.c: New file.
55598         * MODULES.html.sh: Mention new module.
55599
55600 2008-07-10  Ben Pfaff  <blp@gnu.org>
55601
55602         Add isnanf module.
55603         * lib/isnanf.m4: New file.
55604         * m4/isnanf.m4 (gl_FUNC_ISNANF): New macro.
55605         (gl_HAVE_ISNANF_IN_LIBM): New macro.
55606         (gl_BUILD_ISNANF): New macro used by gl_FUNC_ISNANF,
55607         gl_FUNC_ISNANF_NO_LIBM, and gl_FUNC_ISNAN.
55608         * modules/isnanf: New file.
55609         * modules/isnanf-tests: New file.
55610         * modules/isnanf-nolibm-tests: Add tests/test-isnanf.h to list of
55611         files.
55612         * tests/test-isnanf-nolibm.c: factored most of its contents into
55613         new file tests/test-isnanf.h.
55614         * tests/test-isnanf.h: New file.
55615         * tests/test-isnanf.c: New file.
55616         * MODULES.html.sh: Mention new module.
55617         * doc/glibc-functions/isnanf.texi: Mention new module.
55618
55619 2008-07-10  Ben Pfaff  <blp@gnu.org>
55620
55621         Add isnand module.
55622         * lib/isnand.h: New file.
55623         * m4/isnand.m4 (gl_FUNC_ISNAND): New macro.
55624         (gl_FUNC_ISNAND_NO_LIBM): Split partially into new macro
55625         gl_HAVE_ISNAND_NO_LIBM so that gl_FUNC_ISNAND can use that
55626         functionality also.
55627         (gl_BUILD_ISNAND): New macro used by gl_FUNC_ISNAND,
55628         gl_FUNC_ISNAND_NO_LIBM, and gl_FUNC_ISNAN.
55629         (gl_HAVE_ISNAND_IN_LIBM): New macro.
55630         * modules/isnand: New file.
55631         * modules/isnand-tests: New file.
55632         * modules/isnand-nolibm-tests: Add tests/test-isnand.h to list of
55633         files.
55634         * tests/test-isnand-nolibm.c: factored most of its contents into
55635         new file tests/test-isnand.h.
55636         * tests/test-isnand.h: New file.
55637         * tests/test-isnand.c: New file.
55638         * MODULES.html.sh: Mention new module.
55639
55640 2008-07-10  Ben Pfaff  <blp@gnu.org>
55641
55642         * lib/isnanf.h: Rename lib/isnanf-nolibm.h.
55643         * lib/isnand.h: Rename lib/isnand-nolibm.h.
55644         * tests/test-isnanf.c: Rename tests/test-isnanf-nolibm.c.
55645         * tests/test-isnand.c: Rename tests/test-isnand-nolibm.c.
55646         * modules/isnanf-nolibm: Update references to renamed files.
55647         * modules/isnand-nolibm: Likewise.
55648         * modules/isnanf-nolibm-tests: Likewise.
55649         * modules/isnand-nolibm-tests: Likewise.
55650         * lib/frexp.c: Likewise.
55651         * lib/isfinite.c: Likewise.
55652         * lib/signbitd.c: Likewise.
55653         * lib/signbitf.c: Likewise.
55654         * lib/vasnprintf.c: Likewise.
55655         * tests/test-ceilf1.c: Likewise.
55656         * tests/test-ceilf2.c: Likewise.
55657         * tests/test-floorf1.c: Likewise.
55658         * tests/test-floorf2.c: Likewise.
55659         * tests/test-frexp.c: Likewise.
55660         * tests/test-round1.c: Likewise.
55661         * tests/test-round2.c: Likewise.
55662         * tests/test-roundf1.c: Likewise.
55663         * tests/test-strtod.c: Likewise.
55664         * tests/test-trunc1.c: Likewise.
55665         * tests/test-trunc2.c: Likewise.
55666         * tests/test-truncf1.c: Likewise.
55667         * tests/test-truncf2.c: Likewise.
55668         * NEWS: Mention the renamed header files.
55669
55670 2008-07-11  Jim Meyering  <meyering@redhat.com>
55671
55672         vc-list-files: make the last-resort awk code more portable
55673         * build-aux/vc-list-files: Don't rely on awk's "sub" command.
55674         /bin/awk from OpenSolaris 11's SUNWesu version 2008.03.22.10.56
55675         does not support it.
55676
55677 2008-07-10  Eric Blake  <ebb9@byu.net>
55678
55679         Work with tar's bootstrap.
55680         * gnulib-tool (func_emit_initmacro_end): Use m4_defn in the case
55681         where LIBSOURCES_DIR contains .#bootmp but must not be treated as
55682         an m4 comment.
55683
55684 2008-07-09  Jim Meyering  <meyering@redhat.com>
55685
55686         posix-shell.m4: fix typo that made this test malfunction
55687         * m4/posix-shell.m4: Remove capitalization in variable name.
55688
55689 2008-07-08  Bruno Haible  <bruno@clisp.org>
55690
55691         * m4/onceonly.m4: Update comments.
55692         Reported by Ben Pfaff <blp@cs.stanford.edu>.
55693
55694 2008-07-04  Jim Meyering  <meyering@redhat.com>
55695
55696         * users.txt: Add vc-dwim.
55697         (bison, coreutils): Use the gitweb URL.
55698
55699 2008-07-03  Jim Meyering  <meyering@redhat.com>
55700
55701         * users.txt: Add libffcall.  From Sam Steingold.
55702
55703 2008-07-03  OndÅ™ej Vašík  <ovasik@redhat.com>
55704
55705         getdate.y: do not ignore TZ with relative day, month or year offset
55706         * lib/getdate.y (get_date): Move the tz-handling block to follow the
55707         relative-date-handling, since otherwise, the latter would clobber the
55708         sole output (an updated Start value) of the tz-handling block.
55709         * tests/test-getdate.c: Tests for the fix
55710
55711 2008-07-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
55712
55713         Recognize 'foo_LIBRARIES += libgnu.a'.
55714         * gnulib-tool (func_emit_lib_Makefile_am): Recognize if a
55715         makefile snippet has already specified an installation location,
55716         also using '+='.
55717
55718 2008-07-02  OndÅ™ej Vašík  <ovasik@redhat.com>
55719
55720         getdate.y: factor out common actions
55721         * lib/getdate.y (apply_relative_time, set_hhmmss): New functions.
55722         Use them in place of open-coded actions.
55723
55724 2008-07-01  Simon Josefsson  <simon@josefsson.org>
55725
55726         Add self-test for getdate module.
55727         * modules/getdate-tests: New file.
55728         * tests/test-getdate.c: New file.
55729
55730 2008-06-29  Bruno Haible  <bruno@clisp.org>
55731
55732         * gnulib-tool (func_import): Put gnulib-comp.m4 into .cvsignore or
55733         .gitignore.
55734         Reported by Sylvain Beucler <beuc@beuc.net>.
55735
55736 2008-06-29  Bruno Haible  <bruno@clisp.org>
55737
55738         * doc/gnulib-tool.texi (VCS Issues): Mention --no-vc-files option.
55739         * m4/gnulib-tool.m4: Update to match current gnulib-tool.
55740
55741 2008-06-29  Bruno Haible  <bruno@clisp.org>
55742
55743         * gnulib-tool (func_import): Recommend to put gnulib-cache.m4 into
55744         EXTRA_DIST.
55745         Reported by Sylvain Beucler <beuc@beuc.net>.
55746
55747 2008-06-26  Jim Meyering  <meyering@redhat.com>
55748
55749         make several modules depend on the "open" module
55750         This provides slightly increased consistency when opening-for-write
55751         the name of a non-directory spelled with a trailing slash.
55752         * modules/chdir-safer: Likewise.
55753         * modules/chown: Likewise.
55754         * modules/clean-temp: Likewise.
55755         * modules/copy-file: Likewise.
55756         * modules/fchdir: Likewise.
55757         * modules/fcntl-safer: Likewise.
55758         * modules/pipe: Likewise.
55759         * modules/utime: Likewise.
55760         Prompted by Eric Blake and Bruno Haible.
55761
55762 2008-06-24  Andreas Schwab  <schwab@suse.de>
55763
55764         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Don't test whether compound
55765         literals can be used as initializers for global variables.
55766
55767 2008-06-23  Eric Blake  <ebb9@byu.net>
55768
55769         Make gnulib-cache.m4 easier to diff.
55770         * gnulib-tool (func_import): Allow newlines when reading cached
55771         gl_MODULES, and generate newlines when creating gnulib-cache.m4.
55772
55773 2008-06-23  Bruno Haible  <bruno@clisp.org>
55774
55775         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): Remove macro.
55776         (gl_PREREQ_SIGPROCMASK): Don't invoke it.
55777         * m4/sigaction.m4 (gl_PREREQ_SIG_HANDLER_H): New macro, moved here from
55778         m4/signalblocking.m4.
55779         (gl_PREREQ_SIGACTION): Don't invoke it.
55780         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Invoke
55781         gl_PREREQ_SIG_HANDLER_H.
55782         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55783         Don't check for sigaction here.
55784
55785 2008-06-23  Bruno Haible  <bruno@clisp.org>
55786
55787         * lib/fatal-signal.c (fatal_signal_handler): Update comment.
55788         (install_handlers): Don't set the SA_RESETHAND flag.
55789
55790 2008-06-23  Bruno Haible  <bruno@clisp.org>
55791
55792         * m4/sigaction.m4: Comment fixes.
55793         * lib/signal.in.h: Likewise.
55794
55795 2008-06-23  Eric Blake  <ebb9@byu.net>
55796
55797         Fix typo.
55798         * tests/test-sigaction.c (MASK_SA_FLAGS): Add missing operator.
55799
55800         Avoid SA_ namespace.
55801         * tests/test-sigaction.c (MASK_SA_FLAGS): Rename from SA_MASK.
55802         Reported by Ralf Wildenhues.
55803
55804         Avoid test failure due to SA_RESTORER.
55805         * tests/test-sigaction.c (SA_MASK): New macro.
55806         (main): Avoid failing due to extension flags being set.
55807         Reported by Jim Meyering.
55808
55809         Revert use of sig-handler.h in sigprocmask.c.
55810         * modules/sigprocmask (Files): Don't rely on sig-handler.h, since
55811         it requires the existence of struct sigaction.
55812         * lib/sigprocmask.c (handler_t): Restore typedef.
55813         (rpl_signal, old_handlers): Use local type.
55814
55815 2008-06-22  Bruno Haible  <bruno@clisp.org>
55816
55817         * tests/test-stdint.c: Disable the INTMAX_MAX preprocessor test
55818         conditionally.
55819         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
55820
55821 2008-06-22  Bruno Haible  <bruno@clisp.org>
55822
55823         * doc/posix-functions/siginterrupt.texi: Move note.
55824
55825         * lib/signal.in.h (SA_RESTART): New macro.
55826         * lib/sigaction.c: Update comment.
55827
55828         * m4/sigaction.m4 (gl_SIGACTION): Require gl_SIGNAL_H_DEFAULTS.
55829
55830         * m4/signalblocking.m4 (gl_PREREQ_SIG_HANDLER_H): New macro.
55831         (gl_PREREQ_SIGPROCMASK): Invoke it.
55832         * m4/sigaction.m4 (gl_PREREQ_SIGACTION): Likewise.
55833
55834         * lib/nanosleep.c (rpl_nanosleep): Setup newact only when it is needed.
55835
55836         * lib/sigprocmask.c: Update a comment.
55837
55838 2008-06-21  Eric Blake  <ebb9@byu.net>
55839
55840         Use sigaction module rather than signal().
55841         * modules/c-stack (Depends-on): Add sigaction.
55842         * modules/fatal-signal (Depends-on): Likewise.
55843         * modules/nanosleep (Depends-on): Likewise.
55844         * modules/sigprocmask (Files): Add sig-handler.h.
55845         * modules/sigaction (Files): Likewise.
55846         * lib/sig-handler.h (get_handler): New file, suggested by Paul
55847         Eggert.
55848         * lib/c-stack.c (SIGACTION_WORKS): Simplify conditions.
55849         (c_stack_action) [!SIGACTION_WORKS]: Use sigaction, not signal.
55850         * lib/fatal-signal.c (uninstall_handlers, install_handlers)
55851         (init_fatal_signals): Likewise.
55852         * lib/nanosleep.c (rpl_nanosleep): Likewise.
55853         (siginterrupt): Delete fallback.
55854         * lib/sigprocmask.c (handler_t, old_handlers): Use sa_handler_t
55855         instead.
55856         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Drop check for
55857         siginterrupt.
55858
55859         New module sigaction, for mingw.
55860         * modules/sigaction: New module...
55861         * modules/sigaction-tests: ...and its test.
55862         * m4/sigaction.m4: New file.
55863         * lib/sigaction.c: Likewise.
55864         * tests/test-sigaction.c: Likewise.
55865         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Add sigaction variables.
55866         * modules/signal (Makefile.am): Likewise.
55867         * lib/signal.in.h (!@HAVE_SIGACTION@): Define replacements when
55868         needed.
55869         * doc/posix-headers/signal.texi (signal.h): Mention provided
55870         types.
55871         * doc/posix-functions/siginterrupt.texi (siginterrupt): Mention
55872         that sigaction is preferable.
55873         * doc/posix-functions/sigaction.texi (sigaction): Mention new
55874         module.
55875         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
55876         sigaction.
55877
55878         Improve robustness of sigprocmask by overriding signal.
55879         * lib/signal.in.h (rpl_signal): Override signal when sigprocmask
55880         is in use.
55881         * lib/sigprocmask.c (blocked_handler): Reinstall block handler.
55882         (SIGKILL, SIGSTOP): Provide fallbacks.
55883         (rpl_signal): Implement.
55884         (old_handlers, blocked_set): Mark volatile, since sigprocmask and
55885         signal can be called inside handlers.
55886
55887         Fix nanosleep module on mingw.
55888         * modules/nanosleep (Depends-on): Add sys_select.
55889         * lib/nanosleep.c (HAVE_SYS_SELECT_H): Rely on gnulib module.
55890
55891         Fix licensing of sigprocmask.
55892         * modules/raise (License): Relicense as LGPL.
55893
55894 2008-06-21  Bruno Haible  <bruno@clisp.org>
55895
55896         * lib/propername.c (proper_name_utf8): Don't use the transliterated
55897         result if it contains question marks.
55898         Reported by Michael Geng <linux@michaelgeng.de>.
55899
55900 2008-06-19  Bruno Haible  <bruno@clisp.org>
55901
55902         Fix CVS-ism.
55903         * doc/gnulib.texi: Include updated-stamp.texi.
55904         * doc/Makefile (GNULIB_TEXI_FILES): New variable.
55905         (updated-stamp.texi): New rule.
55906         (gnulib.info): Depend on it.
55907         * doc/.gitignore: Add updated-stamp.texi.
55908         Based on a patch by Thien-Thi Nguyen <ttn@gnuvola.org>.
55909
55910 2008-06-19  Bruno Haible  <bruno@clisp.org>
55911
55912         * doc/Makefile (gnulib.info): Update and simplify dependencies.
55913         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
55914
55915 2008-06-19  Eric Blake  <ebb9@byu.net>
55916
55917         Fix VPATH 'make dist' with GNU make and non-VCS tarball.
55918         * top/GNUmakefile (_curr-ver): Don't use $(srcdir) unnecessarily.
55919         Reported by Stepan Kasal.
55920
55921 2008-06-18  Bruno Haible  <bruno@clisp.org>
55922
55923         * lib/fatal-signal.c (init_fatal_signals): Add comment.
55924         Reported by Eric Blake.
55925
55926 2008-06-18  Eric Blake  <ebb9@byu.net>
55927
55928         Work around cygwin 1.5.25 strsignal bug.
55929         * tests/test-strsignal.c: Allow for const char *.
55930         * doc/glibc-functions/strsignal.texi (strsignal): Document the bug.
55931
55932 2008-06-18  Simon Josefsson  <simon@josefsson.org>
55933
55934         * users.txt: Update URL to article and add author/date
55935         information.
55936
55937 2008-06-17  Bruno Haible  <bruno@clisp.org>
55938
55939         New macro gl_DISABLE_THREADS.
55940         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Use value gl_use_threads_default
55941         if the user did not pass --enable-threads or --disable-threads option.
55942         (gl_DISABLE_THREADS): New macro.
55943         Reported by Eric Blake <ebb9@byu.net>.
55944
55945 2008-06-17  Bruno Haible  <bruno@clisp.org>
55946
55947         * lib/tls.h (gl_tls_key_init): Evaluate the destructor argument also
55948         when the macro ignores it.
55949         Based on a patch by Eric Blake <ebb9@byu.net>.
55950
55951 2008-06-17  Bruno Haible  <bruno@clisp.org>
55952
55953         * modules/tls (License): Change to LGPLv2+.
55954         Reported by Eric Blake.
55955
55956 2008-06-17  Eric Blake  <ebb9@byu.net>
55957
55958         Simplify c-stack prerequisites.
55959         * lib/c-stack.c (includes): Remove unused <sys/resource.h>.
55960         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Posix 200x
55961         no longer requires <ucontext.h> to exist.  Optimize setrlimit
55962         check.
55963         (gl_PREREQ_C_STACK): Remove check for unused getcontext and
55964         <sys/resource.h>.
55965
55966         Move c-stack test into testsuite.
55967         * modules/c-stack-tests: New file.
55968         * lib/c-stack.c [DEBUG]: Move test program...
55969         * tests/test-c-stack.c: ...into this new file.  Skip rather than
55970         fail test if sigaltstack is lacking.
55971         * tests/test-c-stack.sh: New driver file.
55972
55973 2008-06-16  Eric Blake  <ebb9@byu.net>
55974
55975         Use raise module consistently.
55976         * modules/fatal-signal (Depends-on): Add raise.
55977         * modules/sigprocmask (Depends-on): Likewise.
55978         * lib/fatal-signal.c (fatal_signal_handler): Rely on raise.
55979         * lib/sigprocmask.c (sigprocmask): Likewise.
55980         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Likewise.
55981         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Likewise.
55982
55983         Fix compliance bug in sigpending.
55984         * lib/sigprocmask.c (sigpending): Return pending array via
55985         parameter, not return value.
55986
55987 2008-06-14  Eric Blake  <ebb9@byu.net>
55988
55989         Improve obstack-printf test code.
55990         * tests/test-obstack-printf.c (test_function): Fix comment, and
55991         simplify usage of obstack_* in macros.  Add a test for coverage.
55992         Reported by Bruno Haible.
55993
55994 2008-06-14  Bruno Haible  <bruno@clisp.org>
55995
55996         * lib/obstack_printf.c (obstack_vprintf): Define the stack-allocated
55997         array size as a constant, not as a const variable.
55998         * m4/obstack-printf.m4 (gl_FUNC_OBSTACK_PRINTF): Require
55999         AC_USE_SYSTEM_EXTENSIONS.
56000         * m4/obstack-printf-posix.m4 (gl_FUNC_OBSTACK_PRINTF_POSIX): Likewise.
56001         Test whether the obstack_printf function actually exists.
56002         * modules/obstack-printf (Depends-on): Add extensions.
56003         (Include): Remove obstack.h.
56004         * modules/obstack-printf-posix (Depends-on): Add extensions.
56005         (Include): Remove obstack.h.
56006
56007 2008-06-13  Eric Blake  <ebb9@byu.net>
56008
56009         Add obstack-printf and obstack-printf-posix modules.
56010         * modules/obstack-printf: New file.
56011         * modules/obstack-printf-posix: Likewise.
56012         * MODULES.html.sh (Misc): Mention them.
56013         * doc/glibc-functions/obstack_printf.texi (obstack_printf):
56014         Likewise.
56015         * doc/glibc-functions/obstack_vprintf.texi (obstack_vprintf):
56016         Likewise.
56017         * modules/stdio (Makefile.am): Accomodate new modules.
56018         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
56019         * lib/stdio.in.h (rpl_obstack_printf, rpl_obstack_vprintf):
56020         Declare.
56021         * lib/obstack_printf.c (obstack_printf, obstack_vprintf): New
56022         functions.
56023         * m4/obstack-printf.m4 (gl_OBSTACK_PRINTF)
56024         (gl_REPLACE_OBSTACK_PRINTF): New macros
56025         * m4/obstack-printf-posix.m4 (gl_OBSTACK_PRINTF_POSIX): Likewise.
56026         * tests/test-obstack-printf.c: New file.
56027         * modules/obstack-printf-tests: Likewise.
56028         * modules/obstack-printf-posix-tests: Likewise.
56029
56030 2008-06-11  Bruno Haible  <bruno@clisp.org>
56031
56032         * m4/open.m4 (gl_FUNC_OPEN): Add test against trailing slash bug.
56033         * lib/open.c: Include errno.h.
56034         (open): Fail when attempting to write to a file that has a trailing
56035         slash.
56036         * tests/test-open.c (main): Test against trailing slash bug.
56037         * doc/posix-functions/open.texi: Mention the trailing slash bug.
56038
56039 2008-06-10  Bruno Haible  <bruno@clisp.org>
56040
56041         * tests/test-vc-list-files-git.sh: Make double use of 'exit'. Needed
56042         for $? to work inside the trap command, with various /bin/sh-s.
56043         * tests/test-vc-list-files-cvs.sh: Likewise.
56044
56045 2008-06-10  Bruno Haible  <bruno@clisp.org>
56046
56047         * lib/acl-internal.h: Don't include gettext.h here.
56048         * lib/set-mode-acl.c: Include gettext.h here.
56049         * lib/copy-acl.c: Likewise.
56050
56051 2008-06-10  Bruno Haible  <bruno@clisp.org>
56052
56053         * lib/wait-process.h (wait_subprocess): Add termsigp argument.
56054         * lib/wait-process.c (wait_subprocess): Likewise.
56055         * lib/execute.h (execute): Add termsigp argument.
56056         * lib/execute.c (execute): Likewise.
56057         * lib/csharpcomp.c (compile_csharp_using_pnet,
56058         compile_csharp_using_mono, compile_csharp_using_sscli): Update.
56059         * lib/csharpexec.c (execute_csharp_using_pnet,
56060         execute_csharp_using_mono, execute_csharp_using_sscli): Update.
56061         * lib/javacomp.c (compile_using_envjavac, compile_using_gcj,
56062         compile_using_javac, compile_using_jikes, is_envjavac_gcj,
56063         is_envjavac_gcj43, is_gcj_present, is_gcj_43, is_javac_present,
56064         is_jikes_present): Update.
56065         * lib/javaexec.c (execute_java_class): Update.
56066         * lib/javaversion.c (execute_and_read_line): Update.
56067         * NEWS: Document the changes.
56068         Reported by Eric Blake.
56069
56070 2008-06-10  Eric Blake  <ebb9@byu.net>
56071
56072         Add missing include.
56073         * tests/test-strstr.c (includes): Add <signal.h>.
56074         * tests/test-strcasestr.c (includes): Likewise.
56075         * tests/test-memmem.c (includes): Likewise.
56076
56077 2008-06-10  Bruno Haible  <bruno@clisp.org>
56078
56079         * lib/wait-process.c (wait_subprocess): Add an assertion.
56080
56081 2008-06-10  Bruno Haible  <bruno@clisp.org>
56082
56083         * lib/wait-process.c (wait_subprocess): Try to fix waitid() based code.
56084
56085 2008-06-10  Bruno Haible  <bruno@clisp.org>
56086
56087         * tests/test-memmem.c (main): Reset SIGALRM to default handling before
56088         using alarm().
56089         * tests/test-strcasestr.c (main): Likewise.
56090         * tests/test-strstr.c (main): Likewise.
56091
56092 2008-06-09  Bruno Haible  <bruno@clisp.org>
56093
56094         Work around the Solaris 10 ACE ACLs ABI change.
56095         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): Don't
56096         declare if ACL_NO_TRIVIAL is present.
56097         (ACE_ACCESS_ALLOWED_ACE_TYPE, ACE_ACCESS_DENIED_ACE_TYPE,
56098         NEW_ACE_OWNER, NEW_ACE_GROUP, NEW_ACE_IDENTIFIER_GROUP, ACE_EVERYONE,
56099         NEW_ACE_READ_DATA, NEW_ACE_WRITE_DATA, NEW_ACE_EXECUTE): New macros.
56100         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): Don't
56101         define if ACL_NO_TRIVIAL is present.
56102         (acl_ace_nontrivial): Detect whether the old or new ABI is in use,
56103         and use the current ABI.
56104         (file_has_acl): Use same #if condition as elsewhere.
56105         * lib/set-mode-acl.c (qset_acl): Detect whether the old or new ABI is
56106         in use, and use the current ABI.
56107         * doc/acl-resources.txt: More doc about newer Solaris 10 versions.
56108         Reported by Jim Meyering.
56109
56110 2008-06-09  Eric Blake  <ebb9@byu.net>
56111
56112         Work around environments that (stupidly) ignore SIGALRM.
56113         * m4/strstr.m4 (gl_FUNC_STRSTR): Reset SIGALRM to default handling
56114         before using alarm().
56115         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56116         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
56117         Reported by Ian Beckwith <ianb@erislabs.net>.
56118
56119         Produce autobuild blurb earlier in log.
56120         * modules/autobuild (configure.ac-early): Move AB_INIT here.
56121
56122 2008-06-09  Jim Meyering  <meyering@redhat.com>
56123         and OndÅ™ej Vašík  <ovasik@redhat.com>
56124
56125         utimens.c: correct kernel bug work-around
56126         OndÅ™ej Vašík found that the invalid return value of 280 indicates
56127         failure, not success, and the kernel bug we're trying to work
56128         around affects not just the utimensat call, but also the fallback
56129         futimens call.
56130         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Simulate failure,
56131         not success.
56132         [HAVE_FUTIMENS]: Use the same work-around, here.
56133
56134 2008-06-09  Jim Meyering  <meyering@redhat.com>
56135
56136         add more guards around definition of ACE_-related code
56137         * lib/file-has-acl.c (acl_ace_nontrivial): Define only if
56138         ALLOW and ACE_OWNER are also defined.
56139
56140 2008-06-08  Bruno Haible  <bruno@clisp.org>
56141
56142         * lib/acl-internal.h: Add me as co-author.
56143         * lib/file-has-acl.c: Likewise.
56144         * lib/set-mode-acl.c: Likewise.
56145         * lib/copy-acl.c: Likewise.
56146
56147 2008-06-08  Bruno Haible  <bruno@clisp.org>
56148
56149         Add support for AIX ACLs.
56150         * lib/acl-internal.h (acl_nontrivial): New declaration.
56151         * lib/file-has-acl.c (acl_nontrivial): New function.
56152         (file_has_acl): Add implementation using AIX 4 ACL API.
56153         * lib/set-mode-acl.c (qset_acl): Likewise.
56154         * lib/copy-acl.c (qcopy_acl): Likewise.
56155
56156 2008-06-08  Bruno Haible  <bruno@clisp.org>
56157
56158         Add support for HP-UX ACLs.
56159         * lib/acl-internal.h (acl_nontrivial): New declaration.
56160         * lib/file-has-acl.c (acl_nontrivial): New function.
56161         (file_has_acl): Add implementation using HP-UX 11 ACL API.
56162         * lib/set-mode-acl.c (qset_acl): Likewise.
56163         * lib/copy-acl.c (qcopy_acl): Likewise.
56164
56165 2008-06-08  Bruno Haible  <bruno@clisp.org>
56166
56167         Add support for Cygwin ACLs.
56168         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro for Solaris-like API.
56169         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Don't optimize away
56170         the chmod_or_fchmod call.
56171         * lib/copy-acl.c (qcopy_acl) [!MODE_INSIDE_ACL]: Likewise.
56172
56173 2008-06-08  Bruno Haible  <bruno@clisp.org>
56174
56175         Fix bug with setuid modes in Solaris 10+ code.
56176         * lib/set-mode-acl.c (qset_acl): Call chmod_or_fchmod when acl_set
56177         succeeded, when the mode contains some special bits.
56178
56179 2008-06-08  Bruno Haible  <bruno@clisp.org>
56180
56181         Add support for Solaris 7..10 ACLs.
56182         * lib/acl-internal.h (acl_nontrivial, acl_ace_nontrivial): New
56183         declarations.
56184         * lib/file-has-acl.c (acl_nontrivial, acl_ace_nontrivial): New
56185         functions.
56186         (file_has_acl): Add implementation using Solaris 7..10 ACL API.
56187         * lib/set-mode-acl.c (qset_acl): Likewise.
56188         * lib/copy-acl.c (qcopy_acl): Likewise.
56189
56190 2008-06-08  Bruno Haible  <bruno@clisp.org>
56191
56192         * lib/acl-internal.h (acl_extended_nontrivial) [MacOS X]: New
56193         declaration.
56194         * lib/file-has-acl.c (acl_extended_nontrivial) [MacOS X]: New function.
56195         (acl_access_nontrivial): Remove MacOS X case.
56196         (file_has_acl): Use acl_extended_nontrivial.
56197         * lib/copy-acl.c (qcopy_acl): Likewise.
56198
56199 2008-06-08  Bruno Haible  <bruno@clisp.org>
56200
56201         * lib/set-mode-acl.c (qset_acl): Trivial code simplifications.
56202
56203 2008-06-08  Jim Meyering  <meyering@redhat.com>
56204
56205         * modules/acl (Maintainer): Add Bruno Haible.
56206
56207 2008-06-07  Bruno Haible  <bruno@clisp.org>
56208
56209         Improve support for Tru64 ACLs.
56210         * lib/file-has-acl.c (file_has_acl): Don't test the ACL_TYPE_DEFAULT
56211         ACL on OSF/1.
56212
56213 2008-06-07  Bruno Haible  <bruno@clisp.org>
56214
56215         Add support for MacOS X ACLs.
56216         * lib/file-has-acl.c (file_has_acl): Use ACL_TYPE_EXTENDED instead of
56217         ACL_TYPE_ACCESS and ACL_TYPE_DEFAULT.
56218         * lib/set-mode-acl.c (qset_acl): Likewise.
56219         * lib/copy-acl.c (qcopy_acl): Likewise.
56220
56221 2008-06-07  Bruno Haible  <bruno@clisp.org>
56222
56223         Fix memory leak introduced on 2008-05-22.
56224         * lib/set-mode-acl.c (qset_acl) [!MODE_INSIDE_ACL]: Free ACLs after
56225         use.
56226
56227 2008-06-07  Bruno Haible  <bruno@clisp.org>
56228
56229         * lib/set-mode-acl.c (qset_acl): Use acl_init(), not acl_from_text(),
56230         to construct an empty ACL.
56231
56232 2008-06-07  Bruno Haible  <bruno@clisp.org>
56233
56234         * lib/set-mode-acl.c (chmod_or_fchmod): Document return value
56235         precisely.
56236         * lib/copy-acl.c (qcopy_acl): Trivial code simplifications.
56237
56238 2008-06-07  Bruno Haible  <bruno@clisp.org>
56239
56240         * lib/copy-acl.c (qcopy_acl): Make the #if branches independent.
56241         * lib/set-mode-acl.c (qset_acl): Choose better local variable names.
56242
56243 2008-06-07  Bruno Haible  <bruno@clisp.org>
56244
56245         * doc/posix-functions/_setjmp.texi: Explain the use of this function
56246         regardless of POSIX.
56247         * doc/posix-functions/_longjmp.texi: Likewise.
56248         * doc/posix-functions/setjmp.texi: Mention HP-UX as not counting as a
56249         SystemV platform in this case.
56250
56251 2008-06-06  Eric Blake  <ebb9@byu.net>
56252
56253         Document abort() bugs.
56254         * doc/posix-functions/abort.texi (abort): Mention anomalies.
56255
56256         * doc/posix-functions/setjmp.texi (setjmp): Mingw has setjmp.
56257         * doc/posix-functions/sigsetjmp.texi (sigsetjmp): Cygwin has
56258         sigsetjmp.
56259         * doc/posix-functions/siglongjmp.texi (siglongjmp): Cygwin has
56260         siglongjmp, but only as a macro.
56261         * doc/posix-functions/_longjmp.texi (_longjmp): Mention that this
56262         is obsolete.
56263         * doc/posix-functions/_setjmp.texi (_setjmp): Likewise.
56264
56265         Tweak documentation to cover cygwin argz bugs.
56266         * m4/argz.m4 (gl_FUNC_ARGZ): Mention date of last known cygwin
56267         argz bug fix; no code change needed since no cygwin releases
56268         occurred between the last fix and the bug being tested.
56269         * doc/glibc-functions/argz_add.texi (argz_add): Document the argz
56270         module and recently fixed cygwin bugs.
56271         * doc/glibc-functions/argz_add_sep.texi (argz_add_sep): Likewise.
56272         * doc/glibc-functions/argz_append.texi (argz_append): Likewise.
56273         * doc/glibc-functions/argz_count.texi (argz_count): Likewise.
56274         * doc/glibc-functions/argz_create.texi (argz_create): Likewise.
56275         * doc/glibc-functions/argz_create_sep.texi (argz_create_sep):
56276         Likewise.
56277         * doc/glibc-functions/argz_delete.texi (argz_delete): Likewise.
56278         * doc/glibc-functions/argz_extract.texi (argz_extract): Likewise.
56279         * doc/glibc-functions/argz_insert.texi (argz_insert): Likewise.
56280         * doc/glibc-functions/argz_next.texi (argz_next): Likewise.
56281         * doc/glibc-functions/argz_replace.texi (argz_replace): Likewise.
56282         * doc/glibc-functions/argz_stringify.texi (argz_stringify):
56283         Likewise.
56284
56285         Avoid gcc warning on cygwin.
56286         * lib/copy-acl.c (qcopy_acl) [!HAVE_ACL_GET_FILE &&
56287         !ACL_NO_TRIVIAL]: Avoid unused variable.
56288
56289 2008-06-05  Eric Blake  <ebb9@byu.net>
56290
56291         Be tolerant of UNKNOWN version in gnulib-tool test dir.
56292         * top/GNUmakefile (_dummy): Warn rather than reconfigure if
56293         git-version-gen fails to come up with a version.
56294         Reported by Simon Josefsson.
56295
56296 2008-06-05  Jim Meyering  <meyering@redhat.com>
56297             Paul Eggert  <eggert@cs.ucla.edu>
56298
56299         utimens.c: work around a probable Linux kernel bug
56300         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT]: Work around what
56301         appears to be a kernel bug that causes utimensat to return 280
56302         instead of 0, indicating success.
56303
56304 2008-06-04  Bruno Haible  <bruno@clisp.org>
56305
56306         * lib/copy-acl.c (qcopy_acl): Call qset_acl, not set_acl. Fixes
56307         2008-06-01 commit.
56308
56309 2008-06-04  Bruno Haible  <bruno@clisp.org>
56310
56311         * lib/acl-internal.h (acl_access_nontrivial): New declaration.
56312         * lib/file-has-acl.c (acl_access_nontrivial): New function.
56313         (file_has_acl): Use it. Save errno afterwards.
56314         * lib/copy-acl.c (qcopy_acl): Use acl_access_nontrivial.
56315
56316 2008-06-03  Bruno Haible  <bruno@clisp.org>
56317
56318         * lib/file-has-acl.c (file_has_acl): Put Solaris 10 code after POSIX-
56319         draft code. Simplify #ifs.
56320         * lib/set-mode-acl.c (qset_acl): Don't test for symlink if !USE_ACL.
56321         Put Solaris code after POSIX-draft code. Fix comments regarding
56322         Solaris 10, HP-UX. Mention Cygwin.
56323         * lib/copy-acl.c (qcopy_acl): Simplify #ifs.
56324
56325 2008-06-03  Eric Blake  <ebb9@byu.net>
56326
56327         Provide fallback for older kernels.
56328         * lib/utimens.c (gl_futimens) [HAVE_UTIMENSAT, HAVE_FUTIMENS]:
56329         Provide runtime fallback if kernel lacks support.
56330         Reported by Mike Frysinger.
56331
56332 2008-06-02  Bruno Haible  <bruno@clisp.org>
56333
56334         * lib/acl-internal.h (ACL_NOT_WELL_SUPPORTED): Include EOPNOTSUPP if
56335         it exists.
56336
56337 2008-06-02  Bruno Haible  <bruno@clisp.org>
56338
56339         * lib/acl_entries.c (acl_entries): Rewrite to use acl_get_entry.
56340         * lib/copy-acl.c (qcopy_acl): Update comment.
56341
56342 2008-06-02  Bruno Haible  <bruno@clisp.org>
56343
56344         * lib/acl-entries.h: Enclose most definitions in #ifs for POSIX-draft
56345         like ACL APIs.
56346
56347 2008-06-02  Bruno Haible  <bruno@clisp.org>
56348
56349         * tests/test-file-has-acl.sh: Use different code for Cygwin.
56350         * tests/test-set-mode-acl.sh: Likewise.
56351         * tests/test-copy-acl.sh: Likewise.
56352         * tests/test-copy-file.sh: Likewise.
56353
56354 2008-06-02  Bruno Haible  <bruno@clisp.org>
56355
56356         * tests/test-file-has-acl.sh: Remove unused code.
56357
56358 2008-06-01  Bruno Haible  <bruno@clisp.org>
56359
56360         * lib/copy-acl.c (qcopy_acl): New function, extracted from copy_acl.
56361         (copy_acl): Just a wrapper around qcopy_acl that emits the error
56362         messages.
56363         * lib/set-mode-acl.c (qset_acl): Document return value precisely.
56364
56365 2008-06-01  Bruno Haible  <bruno@clisp.org>
56366
56367         * m4/acl.m4 (gl_FUNC_ACL): Separate the POSIX-like and the Solaris
56368         tests. Test for libpacl, needed for OSF/1. Test for extended ACLs,
56369         needed for MacOS X. Test for HP-UX API. Test for newer and older AIX
56370         APIs.
56371         * modules/acl-tests (configure.ac): Remove tests now contained in
56372         m4/acl.m4.
56373
56374 2008-06-02  Jim Meyering  <meyering@redhat.com>
56375
56376         announce-gen: use a better key-server host name
56377         * build-aux/announce-gen (main): Recommend keys.gnupg.net, since
56378         it may be more consistently reliable.  Suggested by Werner Koch
56379         in <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/13717>.
56380
56381 2008-06-01  Bruno Haible  <bruno@clisp.org>
56382
56383         * lib/stdio-impl.h (fp_ub): Use fp_. Needed for DragonFly BSD.
56384         Reported by Voroskoi Andras <voroskoi@gmail.com>.
56385
56386 2008-06-01  Voroskoi Andras  <voroskoi@gmail.com>  (tiny change)
56387
56388         * lib/stdio-impl.h [__DragonFly__]: Fix typo.
56389
56390 2008-06-01  Bruno Haible  <bruno@clisp.org>
56391
56392         New ACL tests.
56393         * tests/test-file-has-acl.sh: New file.
56394         * tests/test-file-has-acl.c: New file.
56395         * tests/test-set-mode-acl.sh: New file.
56396         * tests/test-set-mode-acl.c: New file.
56397         * tests/test-copy-acl.sh: New file, based on tests/test-copy-file.sh.
56398         * tests/test-copy-acl.c: New file.
56399         * modules/acl-tests: New file, based on modules/copy-file-tests.
56400         * modules/copy-file-tests (Files): Remove tests/test-sameacls.c.
56401         (Depends-on): Add acl-tests.
56402         (configure.ac): Remove checks.
56403         (Makefile.am): Don't create test-sameacls program here any more.
56404
56405 2008-06-01  Bruno Haible  <bruno@clisp.org>
56406
56407         * tests/test-copy-file.sh: Portability fixes for Solaris, HP-UX, IRIX.
56408         * tests/test-sameacls.c: Include progname.h.
56409         (main): Invoke set_program_name. Portability fixes for MacOS X,
56410         Solaris, HP-UX.
56411
56412 2008-06-01  Bruno Haible  <bruno@clisp.org>
56413
56414         * lib/freadahead.c (freadahead) [__DragonFly__]: Use the __sreadahead
56415         function.
56416         Reported by VOROSKOI Andras <voroskoi@gmail.com>.
56417
56418 2008-06-01  Bruno Haible  <bruno@clisp.org>
56419
56420         * modules/rpmatch (Depends-on): Add strdup.
56421
56422 2008-06-01  Bruno Haible  <bruno@clisp.org>
56423
56424         * lib/pipe.c: Include unistd-safer.h.
56425         (create_pipe): Ensure the returned file descriptors are not in {0,1,2}.
56426         * modules/pipe (Depends-on): Add unistd-safer.
56427
56428 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56429
56430         * modules/autobuild (configure.ac): Call AB_INIT.
56431
56432 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56433
56434         * tests/test-getaddrinfo.c: Don't print debug messages by default.
56435         Suggested by Bruno Haible <bruno@clisp.org>.
56436
56437 2008-05-30  Simon Josefsson  <simon@josefsson.org>
56438
56439         * tests/test-base64.c: Cast size_t to unsigned long when invoking
56440         printf.  Use %lu instead of %d.  Reported by Bruno Haible
56441         <bruno@clisp.org>.
56442
56443 2008-05-29  Eric Blake  <ebb9@byu.net>
56444
56445         Prefer new POSIX 200x interfaces over futimesat.
56446         * m4/utimens.m4 (gl_UTIMENS): Check for futimens, utimensat.
56447         * lib/utimens.c (gl_futimens): Use them for nanosecond resolution
56448         when available.
56449         [HAVE_BUGGY_NFS_TIME_STAMPS]: Allow C89 compilation.
56450
56451 2008-05-28  Bruno Haible  <bruno@clisp.org>
56452
56453         * modules/stpcpy (License): Change to LGPLv2+.
56454         Requested by David Lutterkort <dlutter@redhat.com>.
56455
56456 2008-05-27  Bruno Haible  <bruno@clisp.org>
56457
56458         * lib/localename.c (SUBLANG_TIBETAN_BHUTAN): Force value 2. Needed for
56459         current mingw.
56460         Reported by Jose E. Marchesi <jemarch@gnu.org>.
56461
56462 2008-05-27  Bruno Haible  <bruno@clisp.org>
56463
56464         * modules/iconv_open (Link): New section, from module 'iconv'.
56465         * modules/striconv (Link): Likewise.
56466         * modules/striconveh (Link): Likewise.
56467         * modules/xstriconv (Link): Likewise.
56468         * modules/unicodeio (Link): Likewise.
56469         * modules/propername (Link): Likewise.
56470         Reported by Jim Meyering.
56471
56472 2008-05-26  Jim Meyering  <meyering@redhat.com>
56473
56474         sha256: do not artificially restrict buffer length to be < 2^32
56475         * lib/sha256.h (struct sha256_ctx) [buflen]: Change type from
56476         uint32_t to size_t.
56477         * lib/sha256.c (sha256_conclude_ctx): Change type of a local
56478         to match.
56479
56480         avoid unaligned access errors, e.g., on sparc
56481         * lib/sha512.c (sha512_conclude_ctx): Use set_uint64 rather than
56482         direct access through a possibly-unaligned uint64* pointer.
56483         * lib/sha256.c (sha256_conclude_ctx): Use set_uint32 rather than
56484         direct access through a possibly-unaligned uint32* pointer.
56485         Prompted by this patch from Tom "spot" Callaway:
56486         http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/13638
56487
56488         sha512.c: fix typo in comment
56489         * lib/sha512.c (sha512_conclude_ctx): Length is 128-bit, not 64-bit.
56490
56491 2008-05-25  Bruno Haible  <bruno@clisp.org>
56492
56493         * lib/set-mode-acl.c: Renamed from lib/acl.c.
56494         * modules/acl (Files): Add lib/set-mode-acl.c, remove lib/acl.c.
56495         (Makefile.am): Update lib_SOURCES.
56496
56497 2008-05-25  Bruno Haible  <bruno@clisp.org>
56498
56499         * m4/acl.m4 (gl_FUNC_ACL): Don't set LIB_ACL_TRIVIAL.
56500
56501 2008-05-25  Jim Meyering  <meyering@redhat.com>
56502
56503         useless-if-before-free: freed expr may have white-space differences
56504         * build-aux/useless-if-before-free: Recognize cases in which the
56505         freed expression differs from the tested one in embedded white
56506         space, e.g., if (p[i + 1]) free(p[i+1]).  Correct thinko in prev:
56507         $1 was used, so we can't make any regexp shy.  Improved tests now
56508         detect this.
56509
56510         useless-if-before-free: accept white space in the expression.
56511         * build-aux/useless-if-before-free: For now, any white space
56512         in the expression must be identical in the free argument.
56513
56514         useless-if-before-free: efficiency tweak
56515         * build-aux/useless-if-before-free: Make the expression-matching
56516         regexp "shy".
56517         Make the *outer* regexp shy, not the expr-matching one.
56518
56519         update code-in-comment to accept cast of free arg
56520         * build-aux/useless-if-before-free: Update regexp.
56521
56522 2008-05-25  Bruno Haible  <bruno@clisp.org>
56523
56524         * tests/test-sameacls.c: Renamed from tests/test-copy-file-sameacls.c.
56525         * modules/copy-file-tests (Files, Makefile.am): Update.
56526         * tests/test-copy-file.c (func_test_copy): Update.
56527
56528 2008-05-24  Andreas Färber  <andreas.faerber@web.de>  (tiny change)
56529
56530         * lib/stdbool.in.h [__HAIKU__]: Disable __BEOS__ workarounds.
56531
56532 2008-05-23  Bruno Haible  <bruno@clisp.org>
56533
56534         Improve support for ACLs on OSF/1.
56535         * lib/acl.c (qset_acl): For OSF/1, use a string that ends in a comma.
56536         Remove fallback for unknown flavors of ACLs.
56537
56538 2008-05-22  Bruno Haible  <bruno@clisp.org>
56539
56540         Add support for ACLs on OSF/1.
56541         * lib/acl-internal.h (acl_get_fd, acl_set_fd): New inline function
56542         replacements.
56543         (acl_free_text): New macro fallback.
56544         * lib/acl_entries.c (acl_entries): Use acl_free_text instead of
56545         acl_free.
56546         * m4/acl.m4 (gl_FUNC_ACL): Look also in libpacl library. Test for
56547         acl_free_text function. Require AC_C_INLINE.
56548
56549 2008-05-22  Bruno Haible  <bruno@clisp.org>
56550
56551         Make copy_acl work on MacOS X 10.5.
56552         * lib/acl-internal.h (MODE_INSIDE_ACL): New macro.
56553         (ACL_NOT_WELL_SUPPORTED): On MacOS X, also handle ENOENT.
56554         * lib/acl.c (qset_acl): Add different code branch for !MODE_INSIDE_ACL.
56555         If MODE_INSIDE_ACL, don't assume that every system has the same text
56556         representation for ACLs as FreeBSD.
56557         * lib/copy-acl.c (copy_acl): Add support for platforms with
56558         !MODE_INSIDE_ACL.
56559         * lib/file-has-acl.c (file_has_acl): Likewise.
56560         * m4/acl.m4 (gl_FUNC_ACL): Test for some functions that are witness of
56561         FreeBSD, MacOS X, or IRIX, respectively.
56562
56563 2008-05-22  Bruno Haible  <bruno@clisp.org>
56564
56565         * lib/acl.h: Don't include <sys/acl.h>.
56566         (GETACLCNT): Move fallback to lib/acl-internal.h.
56567         * lib/acl-internal.h: Include <sys/acl.h> here.
56568         (GETACLCNT): New macro fallback, moved here from lib/acl.h.
56569
56570 2008-05-22  Bruno Haible  <bruno@clisp.org>
56571
56572         Split off copy_acl function to separate file.
56573         * lib/copy-acl.c: New file, extracted from lib/acl.c.
56574         * lib/acl.c (copy_acl): Moved function to separate file.
56575         * m4/acl.m4 (gl_FUNC_ACL): Remove unconditional AC_LIBOBJs.
56576         * modules/acl (Files): Add lib/copy-acl.c.
56577         (Makefiles.am): Augment lib_SOURCES.
56578
56579 2008-05-22  Bruno Haible  <bruno@clisp.org>
56580
56581         * modules/copy-file-tests: New file.
56582         * tests/test-copy-file.sh: New file.
56583         * tests/test-copy-file.c: New file.
56584         * tests/test-copy-file-sameacls.c: New file.
56585
56586 2008-05-22  Eric Blake  <ebb9@byu.net>
56587
56588         Avoid gcc warning.
56589         * tests/test-memcmp.c (main): Pass NULL indirectly.
56590
56591 2008-05-21  Bruno Haible  <bruno@clisp.org>
56592
56593         Add reference doc about ACLs.
56594         * doc/acl-resources.txt: New file.
56595         * doc/acl-cygwin.txt: New file.
56596
56597 2008-05-21  Bruno Haible  <bruno@clisp.org>
56598
56599         Avoid one more warning from gcc.
56600         * lib/vasnprintf.c (IF_LINT): Update comments.
56601         (VASNPRINTF): Use it also for the 'prefix' array initializer.
56602
56603 2008-05-21  Jim Meyering  <meyering@redhat.com>
56604
56605         avoid a warning from gcc
56606         * lib/vasnprintf.c (IF_LINT): Define.
56607         (scale10_round_decimal_long_double):
56608         Use it to avoid a "may be used uninitialized" warning.
56609         (scale10_round_decimal_double): Likewise.
56610
56611 2008-05-21  Simon Josefsson  <simon@josefsson.org>
56612
56613         * m4/memcmp.m4: When cross-compiling, assume memcmp works if it is
56614         declared.
56615
56616 2008-05-20  Bruno Haible  <bruno@clisp.org>
56617
56618         * tests/test-memcmp.c (main): Test also the sign of the result. Test
56619         against two known bugs; code taken from autoconf's AC_FUNC_MEMCMP.
56620
56621 2008-05-20  Simon Josefsson  <simon@josefsson.org>
56622
56623         * modules/memcmp-tests: New file.
56624         * tests/test-memcmp.c: New file.
56625
56626 2008-05-19  Bruno Haible  <bruno@clisp.org>
56627
56628         * modules/propername (Notice, configure.ac): Put quoted "..." into
56629         --keyword option.
56630         * lib/propername.h: Update comments accordingly.
56631         Reported by Eric Blake.
56632
56633 2008-05-19  Martin Lambers  <marlam@marlam.de>  (tiny change)
56634
56635         * modules/getpass-gnu (Depends-on): Add fseeko.
56636
56637 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56638
56639         * modules/base64-tests: New file.
56640
56641 2008-05-19  Bo Borgerson <gigabo@gmail.com>
56642
56643         * lib/base64.c (base64_decode_ctx): If a decode context structure
56644         was passed in use it to ignore newlines.  If a context structure
56645         was _not_ passed in, continue to treat newlines as garbage (this
56646         is the historical behavior).  Formerly base64_decode.
56647         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56648         takes a decode context structure.
56649         * lib/base64.h (base64_decode): Macro for four-argument calls.
56650         (base64_decode_alloc): Likewise.
56651         * lib/base64.c (base64_decode_ctx): If a decode context structure
56652         was passed in use it to ignore newlines.  If a context structure
56653         was _not_ passed in, continue to treat newlines as garbage (this
56654         is the historical behavior).  Formerly base64_decode.
56655         (base64_decode_alloc_ctx): Formerly base64_decode_alloc.  Now
56656         takes a decode context structure.
56657         * lib/base64.h (base64_decode): Macro for four-argument calls.
56658         (base64_decode_alloc): Likewise.
56659
56660 2008-05-19  Jim Meyering  <meyering@redhat.com>
56661
56662         avoid a warning from gcc
56663         * lib/trim.c (IF_LINT): Define.
56664         (trim2): Use it to avoid a "may be used uninitialized" warning.
56665
56666         Fix doc typo.
56667         * doc/glibc-functions/getpass.texi (getpass): s/PATH_MAX/PASS_MAX/.
56668
56669 2008-05-19  Bruno Haible  <bruno@clisp.org>
56670
56671         * doc/glibc-functions/getpass.texi: Document limits of other
56672         implementations.
56673
56674 2008-05-19  Simon Josefsson  <simon@josefsson.org>
56675             Bruno Haible <bruno@clisp.org>
56676
56677         * doc/glibc-functions/getpass.texi: Document gnulib implementation.
56678
56679 2008-05-18  Bruno Haible  <bruno@clisp.org>
56680
56681         * modules/propername: New file, from GNU gettext.
56682         * lib/propername.h: New file, from GNU gettext.
56683         * lib/propername.c: New file, from GNU gettext.
56684         * MODULES.html.sh (Internationalization functions): Add propername.
56685
56686 2008-05-16  Jim Meyering  <meyering@redhat.com>
56687             Bruno Haible  <bruno@clisp.org>
56688
56689         Avoid some warnings from "gcc -Wshadow".
56690         * lib/vasnprintf.c (exp, remainder): Define to different identifiers.
56691
56692 2008-05-15  Eric Blake  <ebb9@byu.net>
56693
56694         Extend previous patch to cygwin 1.7.0.
56695         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a
56696         fast implementation in cygwin >= 1.7.0.
56697         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56698         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56699
56700 2008-05-15  Bruno Haible  <bruno@clisp.org>
56701
56702         * m4/memmem.m4 (gl_FUNC_MEMMEM): When cross-compiling, assume a fast
56703         implementation in glibc >= 2.9.
56704         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
56705         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
56706
56707 2008-05-15  Bruno Haible  <bruno@clisp.org>
56708
56709         * MODULES.html.sh (Internationalization functions): Remove linebreak.
56710         (Unicode string functions): Add unilbrk/*.
56711         Reported by Karl Berry.
56712
56713 2008-05-15  Eric Blake  <ebb9@byu.net>
56714
56715         Fix violation of <stdbool.h> replacement in regex.
56716         * lib/regcomp.c (re_compile_internal): Avoid implicit cast to bool.
56717         * lib/regexec.c (re_search_internal): Likewise.
56718         Reported by Heinrich Mislik <Heinrich.Mislik@univie.ac.at>.
56719
56720 2008-05-15  Jim Meyering  <meyering@redhat.com>
56721
56722         avoid distracting test output when git or cvs is not found
56723         * tests/test-vc-list-files-cvs.sh: Suppress 'init' error output.
56724         * tests/test-vc-list-files-git.sh: Likewise.
56725
56726 2008-05-15  Eric Blake  <ebb9@byu.net>
56727
56728         Glibc finally accepted the memmem speedup code, bugzilla #5514.
56729         * doc/glibc-functions/memmem.texi (memmem): Mention last broken
56730         glibc version.
56731         * doc/glibc-functions/strcasestr.texi (strcasestr): Likewise.
56732         * doc/posix-functions/strstr.texi (strstr): Likewise.
56733         * lib/str-two-way.h (MAX): Sychronize with glibc.
56734
56735 2008-05-15  Paolo Bonzini  <bonzini@gnu.org>
56736
56737         * lib/regcomp.c (optimize_utf8): Add a note on why we test
56738         opr.ctx_type.
56739         (calc_first): Initialize constraint field.
56740         (duplicate_node_closure): Use it instead of special casing ANCHORS.
56741         Fix grammar.
56742         (duplicate_node): Merge constraint field for all node types.
56743         (calc_eclosure_iter): Look at constraint field for all node types.
56744         * lib/regex_internal.c (create_cd_newstate): Don't look at
56745         opr.ctx_type.
56746
56747 2008-05-14  Bruno Haible  <bruno@clisp.org>
56748
56749         Help GCC to do better code generation.
56750         * lib/eealloc.h (eemalloc) [GCC >= 3]: Declare with attribute 'malloc'.
56751         * lib/pagealign_alloc.h (pagealign_alloc, pagealign_xalloc): Likewise.
56752         * lib/xalloc.h (ATTRIBUTE_MALLOC): New macro.
56753         (xmalloc, xzalloc, xcalloc, xmemdup, xstrdup, xnmalloc, xcharalloc):
56754         Declare with attribute 'malloc' if supported.
56755
56756 2008-05-14  Lasse Collin  <lasse.collin@tukaani.org>
56757
56758         use "echo STR|wc -c" rather than unportable "expr length STR"
56759         * build-aux/mktempd (mktempd): Vendor-supplied expr from at least
56760         OpenBSD 4.3 and Solaris 10 do not honor expr's "length" function.
56761
56762 2008-05-14  Jim Meyering  <meyering@redhat.com>
56763
56764         use dd ibs=$n count=1 ... rather than less-portable head -c$n
56765         * build-aux/mktempd (rand_bytes): head's -cN option is not accepted
56766         by Solaris 10's /bin/head or by the one from HP-UX 11.x.
56767         Reported in http://sourceforge.net/forum/message.php?msg_id=4960334
56768         via Collin Lasse.
56769
56770 2008-05-14  Eric Blake  <ebb9@byu.net>
56771
56772         Avoid quadratic growth in gl_LIBSOURCES.
56773         * gnulib-tool (func_emit_initmacro_done): s/\(m4_append\)_uniq/\1/.
56774         Suggested by Bruno Haible.
56775
56776         Test xmemdup0.
56777         * modules/xmemdup0-tests: New file.
56778         * tests/test-xmemdup0.c: Likewise.
56779
56780 2008-05-13  Eric Blake  <ebb9@byu.net>
56781
56782         Split xmemdup0 into its own module.
56783         * modules/xmemdup0: New file.
56784         * lib/xmemdup0.h: Likewise.
56785         * lib/xmemdup0.c: Likewise.
56786         * MODULES.html.sh (Memory management functions): Add xmemdup0.
56787         * lib/xalloc.h (xmemdup0): Remove.
56788         * lib/xmalloc.c (xmemdup0): Likewise.
56789
56790 2008-05-13  Eric Blake  <ebb9@byu.net>
56791             Bruno Haible  <bruno@clisp.org>
56792
56793         Reduce number of forks required during autoconf.
56794         * gnulib-tool (func_emit_initmacro_start): Prepare gl_LIBSOURCES_LIST
56795         and gl_LIBSOURCES_DIR.
56796         (func_emit_initmacro_end): Use them here in a single m4_syscmd...
56797         (func_emit_initmacro_done) <gl_LIBSOURCES>: ...rather than in one
56798         m4_syscmd per file.
56799         <m4_foreach_w>: Move...
56800         * m4/gnulib-common.m4 (m4_foreach_w): ...here.
56801
56802 2008-05-13  Eric Blake  <ebb9@byu.net>
56803
56804         * gnulib-tool: Fix various comment typos.
56805
56806 2008-05-12  Bruno Haible  <bruno@clisp.org>
56807
56808         Tailor the linebreaking algorithm.
56809         * lib/unilbrk/tables.c (unilbrk_table): Change (IS,AL) entry.
56810
56811 2008-05-12  Bruno Haible  <bruno@clisp.org>
56812
56813         Update to Unicode 5.0.0.
56814         * lib/unilbrk/tables.h (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56815         LBP_JV, LBP_JT. Redistribute values.
56816         (unilbrk_table): Change size.
56817         * lib/unilbrk/tables.c (unilbrk_table): Change size. Update to match
56818         Unicode TR#14 rev. 22.
56819         * lib/unilbrk/gen-lbrk.c (LBP_*): Add LBP_WJ, LBP_H2, LBP_H3, LBP_JL,
56820         LBP_JV, LBP_JT. Redistribute values.
56821         (get_lbp): Update to match Unicode TR#14 rev. 21/22 and Unicode 5.0.0.
56822         (debug_output_lbp, fill_org_lbp, debug_output_org_lbp, output_lbp):
56823         Update.
56824         * lib/unilbrk/lbrkprop1.h: Regenerated.
56825         * lib/unilbrk/lbrkprop2.h: Regenerated.
56826         * lib/unilbrk/u8-possible-linebreaks.c (u8_possible_linebreaks):
56827         Change handling of LBP_CM after LBP_ZW. Update for new value of LBP_BK.
56828         * lib/unilbrk/u16-possible-linebreaks.c (u16_possible_linebreaks):
56829         Likewise.
56830         * lib/unilbrk/u32-possible-linebreaks.c (u32_possible_linebreaks):
56831         Likewise.
56832         * tests/unilbrk/test-u8-possible-linebreaks.c (main): Update expected
56833         result.
56834         * tests/unilbrk/test-u16-possible-linebreaks.c (main): Likewise.
56835         * tests/unilbrk/test-u32-possible-linebreaks.c (main): Likewise.
56836         * tests/unilbrk/test-ulc-possible-linebreaks.c (main): Likewise.
56837         * tests/unilbrk/test-u8-width-linebreaks.c (main): Likewise.
56838         * tests/unilbrk/test-u16-width-linebreaks.c (main): Likewise.
56839         * tests/unilbrk/test-u32-width-linebreaks.c (main): Likewise.
56840
56841 2008-05-11  Bruno Haible  <bruno@clisp.org>
56842
56843         * lib/unilbrk/gen-lbrk.c (output_lbp): Fix whitespace.
56844
56845 2008-05-11  Bruno Haible  <bruno@clisp.org>
56846
56847         * lib/unilbrk/gen-lbrk.c: New file, from GNU gettext (gen-lbrkprop.c).
56848         * modules/unilbrk/gen-lbrk: New file.
56849
56850 2008-05-11  Bruno Haible  <bruno@clisp.org>
56851
56852         * m4/sha256.m4 (gl_SHA256): Require AC_C_INLINE.
56853         * m4/sha512.m4 (gl_SHA512): Likewise.
56854
56855 2008-05-11  Jim Meyering  <meyering@redhat.com>
56856
56857         New modules: crypto/sha256, crypto/sha512 (from coreutils)
56858         * modules/crypto/sha256: New file.
56859         * modules/crypto/sha512: Likewise.
56860         * lib/sha256.c: Likewise.
56861         * lib/sha256.h: Likewise.
56862         * lib/sha512.c: Likewise.
56863         * lib/sha512.h: Likewise.
56864         * lib/u64.h: Likewise.
56865         * m4/sha256.m4: Likewise.
56866         * m4/sha512.m4: Likewise.
56867         * MODULES.html.sh (Cryptographic computations (low-level)): List them.
56868
56869 2008-05-10  Bruno Haible  <bruno@clisp.org>
56870
56871         * MODULES.html.sh (Environment variables <stdlib.h>): Add unsetenv.
56872         (Input/Output <stdio.h>): Add xprintf.
56873         (Signal handling <signal.h>): Add strsignal.
56874         (Cryptographic computations (high-level)): Add crypto/gc-camellia.
56875         (Core language properties): Add func.
56876         (Mathematics <math.h>): Add ceil, floor, frexp-nolibm.
56877         (Support for systems lacking POSIX:2001): Add environ, EOVERFLOW,
56878         strings.
56879         (Enhancements for POSIX:2001 functions): Add iconv_open-utf.
56880         (Input/output): New section.
56881         (File system functions): Add openat-die, stat-macros.
56882         (Networking functions): Add sockets.
56883         (Unicode string functions): Add unictype/*.
56884         (Support for building libraries and executables): Add gperf.
56885         (Support for building documentation): Add agpl-3.0.
56886         (Misc): Add nocrash.
56887
56888 2008-05-10  Bruno Haible  <bruno@clisp.org>
56889
56890         * modules/unictype/gen-ctype: New file.
56891
56892 2008-05-10  Jim Meyering  <meyering@redhat.com>
56893
56894         Make chdir-safer.c more efficient on a system with no symlinks.
56895         * lib/chdir-safer.c (chdir_no_follow): Skip lstat and fstat calls
56896         also if ELOOP is zero.  Suggested by Bruno Haible.
56897
56898         Make chdir-safer.c slightly safer.
56899         * lib/chdir-safer.c (chdir_no_follow): Test HAVE_WORKING_O_NOFOLLOW,
56900         not O_NOFOLLOW, in case the latter is nonzero and open ignores it.
56901
56902         Avoid compile failure on systems without ELOOP (like mingw).
56903         * lib/chdir-safer.c (ELOOP): Define if not already defined.
56904         Reported by Bruno Haible.
56905
56906 2008-05-10  Bruno Haible  <bruno@clisp.org>
56907
56908         * lib/unilbrk/ulc-common.c: Include c-strcaseeq.h instead of streq.h.
56909         (is_utf8_encoding): Use a case-insensitive comparison.
56910         * modules/unilbrk/ulc-common (Depends-on): Add c-strcaseeq. Remove
56911         streq.
56912
56913 2008-05-10  Bruno Haible  <bruno@clisp.org>
56914
56915         * lib/unilbrk/ulc-common.c: Don't include <stdlib.h>.
56916         (iconv_string_length, iconv_string_keeping_offsets): Remove functions.
56917         * lib/unilbrk/ulc-common.h (iconv_string_length,
56918         iconv_string_keeping_offsets): Remove declarations.
56919         * lib/unilbrk/ulc-possible-linebreaks.c: Include <string.h>, uniconv.h.
56920         Don't include <iconv.h>, streq.h, xsize.h.
56921         (ulc_possible_linebreaks): Use u8_conv_from_encoding for doing the
56922         conversion.
56923         * lib/unilbrk/ulc-width-linebreaks.c: Include uniconv.h. Don't include
56924         <iconv.h>, streq.h, xsize.h.
56925         (ulc_width_linebreaks): Use u8_conv_from_encoding for doing the
56926         conversion.
56927         * modules/unilbrk/ulc-common (Depends-on): Remove iconv.
56928         * modules/unilbrk/ulc-possible-linebreaks (Depends-on): Add
56929         uniconv/u8-conv-from-enc. Remove iconv_open, streq, xsize.
56930         * modules/unilbrk/ulc-width-linebreaks (Depends-on): Likewise.
56931
56932 2008-05-10  Bruno Haible  <bruno@clisp.org>
56933
56934         * modules/unilbrk/ulc-width-linebreaks-tests: New file.
56935         * tests/unilbrk/test-ulc-width-linebreaks.c: New file.
56936
56937         * modules/unilbrk/u32-width-linebreaks-tests: New file.
56938         * tests/unilbrk/test-u32-width-linebreaks.c: New file.
56939
56940         * modules/unilbrk/u16-width-linebreaks-tests: New file.
56941         * tests/unilbrk/test-u16-width-linebreaks.c: New file.
56942
56943         * modules/unilbrk/u8-width-linebreaks-tests: New file.
56944         * tests/unilbrk/test-u8-width-linebreaks.c: New file.
56945
56946         * modules/unilbrk/ulc-possible-linebreaks-tests: New file.
56947         * tests/unilbrk/test-ulc-possible-linebreaks.c: New file.
56948
56949         * modules/unilbrk/u32-possible-linebreaks-tests: New file.
56950         * tests/unilbrk/test-u32-possible-linebreaks.c: New file.
56951
56952         * modules/unilbrk/u16-possible-linebreaks-tests: New file.
56953         * tests/unilbrk/test-u16-possible-linebreaks.c: New file.
56954
56955         * modules/unilbrk/u8-possible-linebreaks-tests: New file.
56956         * tests/unilbrk/test-u8-possible-linebreaks.c: New file.
56957
56958 2008-05-10  Bruno Haible  <bruno@clisp.org>
56959
56960         Split up 'linebreak' module.
56961         * lib/unilbrk.h: New file, based on lib/linebreak.h.
56962         * lib/unilbrk/lbrkprop1.h: New file, extracted from lib/lbrkprop.h.
56963         * lib/unilbrk/lbrkprop2.h: New file, renamed from lib/lbrkprop.h with
56964         modifications.
56965         * lib/unilbrk/tables.h: New file, extracted from lib/linebreak.c.
56966         * lib/unilbrk/tables.c: New file, extracted from lib/linebreak.c.
56967         * lib/unilbrk/u8-possible-linebreaks.c: New file, extracted from
56968         lib/linebreak.c.
56969         * lib/unilbrk/u16-possible-linebreaks.c: New file, extracted from
56970         lib/linebreak.c.
56971         * lib/unilbrk/u32-possible-linebreaks.c: New file, extracted from
56972         lib/linebreak.c.
56973         * lib/unilbrk/ulc-common.h: New file, extracted from lib/linebreak.c.
56974         * lib/unilbrk/ulc-common.c: New file, extracted from lib/linebreak.c.
56975         * lib/unilbrk/ulc-possible-linebreaks.c: New file, extracted from
56976         lib/linebreak.c.
56977         * lib/unilbrk/u8-width-linebreaks.c: New file, extracted from
56978         lib/linebreak.c.
56979         * lib/unilbrk/u16-width-linebreaks.c: New file, extracted from
56980         lib/linebreak.c.
56981         * lib/unilbrk/u32-width-linebreaks.c: New file, extracted from
56982         lib/linebreak.c.
56983         * lib/unilbrk/ulc-width-linebreaks.c: New file, extracted from
56984         lib/linebreak.c.
56985         * modules/unilbrk/base: New file.
56986         * modules/unilbrk/tables: New file.
56987         * modules/unilbrk/u8-possible-linebreaks: New file.
56988         * modules/unilbrk/u16-possible-linebreaks: New file.
56989         * modules/unilbrk/u32-possible-linebreaks: New file.
56990         * modules/unilbrk/ulc-common: New file.
56991         * modules/unilbrk/ulc-possible-linebreaks: New file.
56992         * modules/unilbrk/u8-width-linebreaks: New file.
56993         * modules/unilbrk/u16-width-linebreaks: New file.
56994         * modules/unilbrk/u32-width-linebreaks: New file.
56995         * modules/unilbrk/ulc-width-linebreaks: New file.
56996         * lib/linebreak.h: Remove file.
56997         * lib/linebreak.c: Remove file.
56998         * m4/linebreak.m4: Remove file.
56999         * modules/linebreak: Remove file.
57000         * NEWS: Mention the changes.
57001
57002 2008-05-09  Eric Blake  <ebb9@byu.net>
57003
57004         Add xmemdup0.
57005         * lib/xalloc.h (xmemdup0): New prototype and C++ typesafe
57006         implementation.
57007         * lib/xmalloc.c (xmemdup0): New C implementation.
57008
57009 2008-05-08  Bruno Haible  <bruno@clisp.org>
57010
57011         * m4/wctype.m4 (gl_WCTYPE_H): Correct indentation.
57012
57013 2008-05-07  Eric Blake  <ebb9@byu.net>
57014
57015         Support cross-compilation of <wctype.h>.
57016         * m4/wctype.m4 (gl_WCTYPE_H): Fix improper nesting in
57017         AC_CACHE_CHECK.
57018
57019 2008-05-06  Soren Hansen  <soren@ubuntu.com>  (tiny change)
57020
57021         * build-aux/vc-list-files: Add support for bzr.
57022
57023 2008-05-03  Jim Meyering  <meyering@redhat.com>
57024
57025         avoid failed assertion with tight malloc
57026         * tests/test-getndelim2.c: Correct an off-by-one assertion.
57027
57028 2008-05-03  Simon Josefsson  <simon@josefsson.org>
57029
57030         * m4/inet_pton.m4: Set HAVE_DECL_INET_PTON to 0 when declarations
57031         are needed from arpa/inet.h.
57032         * m4/inet_ntop.m4: Likewise, for HAVE_DECL_INET_NTOP.
57033         Reported by Bruno Haible.
57034
57035 2008-05-02  Jim Meyering  <meyering@redhat.com>
57036
57037         avoid compilation error on FreeBSD 6
57038         * tests/test-getaddrinfo.c [!defined EAI_NODATA] (EAI_NODATA): Define.
57039
57040 2008-05-01  Jim Meyering  <meyering@redhat.com>
57041
57042         useless-if-before-free: correct --help's exit status description
57043         * build-aux/useless-if-before-free (usage): Like grep, exit 0
57044         for one or more matches, etc.  Reported by Bruno Haible.
57045
57046         vc-list-files: make the stand-alone gnulib test work
57047         * modules/vc-list-files-tests (configure.ac):
57048         Define and AC_SUBST abs_aux_dir.
57049         (Makefile.am) [TESTS_ENVIRONMENT]: Rather than passing
57050         $(abs_top_srcdir) to each script and having each of them
57051         duplicate the work of setting PATH, set PATH here, using
57052         the new variable, abs_aux_dir instead.
57053         * tests/test-vc-list-files-cvs.sh: Don't set PATH here.
57054         * tests/test-vc-list-files-git.sh: Likewise.
57055         Reported by Bruno Haible.
57056
57057 2008-05-01  Bruno Haible  <bruno@clisp.org>
57058
57059         * lib/getndelim2.c (getndelim2): Fix newsize computation during
57060         reallocation. Rename 'done' to 'found_delimiter'.
57061
57062 2008-05-01  Jim Meyering  <meyering@redhat.com>
57063
57064         vc-list-files: accommodate /bin/sh like the one from Solaris 10
57065         * build-aux/vc-list-files: Use `...`, not $(...).
57066
57067 2008-04-30  Jim Meyering  <meyering@redhat.com>
57068
57069         add tests for vc-list-files
57070         * modules/vc-list-files-tests: New module.
57071         * tests/test-vc-list-files-cvs.sh: New file.
57072         * tests/test-vc-list-files-git.sh: New file.
57073
57074         avoid a warning from gcc
57075         * lib/getndelim2.c (IF_LINT): Define.
57076         (getndelim2): Use it to avoid a "may be used uninitialized" warning.
57077
57078         vc-list-files: work properly with build-aux/cvsu, too
57079         * build-aux/vc-list-files: Hoist the "./"-removing code to apply
57080         to all cvs-based clauses.
57081
57082         vc-list-files: work properly in the CVS+awk case, too
57083         * build-aux/vc-list-files: In the CVS+awk case, remove "./" prefix.
57084
57085         vc-list-files: avoid use of ${*-*} that fails when /bin/sh is dash
57086         * build-aux/vc-list-files: Simplify ${*-*} to $dir, since we no longer
57087         take more than one file argument, so .  Add quotes, just in case $dir
57088         ever contains a shell meta-character.  Prompted by Soren Hansen in
57089         <http://thread.gmane.org/gmane.comp.emulators.libvirt/6221/focus=6240>.
57090
57091 2008-04-29  Eric Blake  <ebb9@byu.net>
57092
57093         Optimize getndelim2 to use block operations when possible.
57094         * modules/getndelim2 (Depends-on): Add stdbool, freadptr,
57095         freadseek, and memchr2.
57096         * lib/getndelim2.c (getndelim2): Use them for block reads.
57097
57098 2008-04-29  Bruno Haible  <bruno@clisp.org>
57099
57100         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_USE_SYSTEM_EXTENSIONS.
57101         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57102         * modules/inet_ntop (Depends-on): Add extensions.
57103         * modules/inet_pton (Depends-on): Likewise.
57104         Reported by Simon Josefsson.
57105
57106 2008-04-29  Jim Meyering  <meyering@redhat.com>
57107
57108         When the is more than one match in a block, match all of them.
57109         * build-aux/useless-if-before-free: Iterate through each block
57110         until there are no more matches.
57111
57112         Fix broken useless-if-before-free script.
57113         * build-aux/useless-if-before-free: Fix typo: missing "?" after
57114         the expression to match cast of argument to free-like function.
57115
57116 2008-04-29  Eric Blake  <ebb9@byu.net>
57117
57118         Use new header.
57119         * lib/getaddrinfo.c (includes): s/"inet_ntop.h"/<arpa/inet.h>/.
57120
57121 2008-04-29  Jim Meyering  <meyering@redhat.com>
57122
57123         Avoid test segfault on x86_64 due to lack of inet_ntop declaration.
57124         * tests/test-getaddrinfo.c: Include <arpa/inet.h>, now guaranteed
57125         by gnulib to exist and to declare e.g., inet_ntop.
57126         Don't include "inet_ntop.h", now removed.
57127
57128         * m4/arpa_inet_h.m4: Remove trailing blanks.
57129
57130 2008-04-29  Eric Blake  <ebb9@byu.net>
57131
57132         Silence valgrind on safe reads beyond potential array bounds.
57133         * lib/rawmemchr.valgrind: New file.
57134         * lib/strchrnul.valgrind: Likewise.
57135         * modules/rawmemchr (Files): Distribute new file.
57136         * modules/strchrnul (Files): Likewise.
57137         Suggested by Bruno Haible.
57138
57139 2008-04-29  Bruno Haible  <bruno@clisp.org>
57140
57141         * lib/arpa_inet.in.h: Include system's <arpa/inet.h> if it exists.
57142         (inet_ntop, inet_pton): Change portability warning's wording.
57143         * m4/arpa_inet_h.m4 (gl_HEADER_ARPA_INET): Set HAVE_ARPA_INET_H.
57144         Invoke gl_CHECK_NEXT_HEADERS.
57145         (gl_ARPA_INET_H_DEFAULTS): Initialize ARPA_INET_H.
57146         * m4/inet_ntop.m4 (gl_INET_NTOP): Require gl_ARPA_INET_H_DEFAULTS and
57147         set ARPA_INET_H.
57148         * m4/inet_pton.m4 (gl_INET_PTON): Likewise.
57149         * modules/arpa_inet (Description): No longer only for systems that
57150         lack it.
57151         (Depends-on): Add include_next.
57152         (Makeile.am): Substitute INCLUDE_NEXT, NEXT_ARPA_INET_H,
57153         HAVE_ARPA_INET_H.
57154
57155 2008-04-29  Jim Meyering  <meyering@redhat.com>
57156
57157         * modules/mkdir (License): Re-license as LGPLv2+.
57158
57159 2008-04-29  Bruno Haible  <bruno@clisp.org>
57160
57161         * modules/rawmemchr (Maintainer): Set to Eric.
57162         * modules/strchrnul (Maintainer): Likewise.
57163
57164 2008-04-29  Simon Josefsson  <simon@josefsson.org>
57165
57166         * m4/arpa_inet_h.m4 (gl_ARPA_INET_H_DEFAULTS): Set
57167         HAVE_DECL_INET_NTOP and HAVE_DECL_INET_PTON.
57168
57169         * modules/arpa_inet (arpa/inet.h): Use them.
57170
57171 2008-04-28  Eric Blake  <ebb9@byu.net>
57172
57173         Test getndelim2.
57174         * modules/getndelim2-tests: New file.
57175         * tests/test-getndelim2.c: Likewise.
57176         * lib/getndelim2.c (getndelim2): Never return 0.  Lock the
57177         stream.
57178         * m4/getndelim2.m4 (gl_GETNDELIM2): Check for lock functions.
57179
57180         * MODULES.html.sh: Document new module.
57181
57182 2008-04-20  Bruno Haible  <bruno@clisp.org>
57183
57184         * lib/c-stack.c (die): Use raise.
57185         * modules/c-stack (Depends-on): Add raise.
57186
57187 2008-04-28  Bruno Haible  <bruno@clisp.org>
57188
57189         Expect rpmatch to be declared.
57190         * lib/yesno.c (rpmatch): Remove declaration.
57191
57192         Declare rpmatch.
57193         * lib/stdlib.in.h (rpmatch): New declaration.
57194         * lib/rpmatch.c: Include <stdlib.h> first.
57195         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Require AC_USE_SYSTEM_EXTENSIONS and
57196         gl_STDLIB_H_DEFAULTS. Set HAVE_RPMATCH.
57197         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_RPMATCH,
57198         HAVE_RPMATCH.
57199         * modules/rpmatch (Depends-on): Add stdlib, extensions.
57200         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
57201         (Include): Set to <stdlib.h>.
57202         * modules/stdlib (Makefile.am): Substitute GNULIB_RPMATCH and
57203         HAVE_RPMATCH.
57204         * NEWS: Document the change.
57205
57206 2008-04-28  Bruno Haible  <bruno@clisp.org>
57207
57208         Change rpmatch to use nl_langinfo when appropriate.
57209         * lib/rpmatch.c: Include stdbool.h, string.h, langinfo.h.
57210         (N_): New macro.
57211         (localized_pattern): New function/macro.
57212         (try): Remove match, nomatch arguments. Copy the pattern into safe
57213         memory before caching it.
57214         (rpmatch): Use localized_pattern. Add translator comments.
57215         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Test for nl_langinfo and YESEXPR.
57216         Suggested by Eric Blake.
57217         * modules/rpmatch (Depends-on): Add stdbool.
57218
57219 2008-04-28  Eric Blake  <ebb9@byu.net>
57220
57221         Add rawmemchr module, matching glibc.
57222         * modules/string (Makefile.am): New indicator.
57223         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set it.
57224         * lib/string.in.h (rawmemchr): Declare when appropriate.
57225         * modules/rawmemchr: New file.
57226         * m4/rawmemchr.m4: Likewise.
57227         * lib/rawmemchr.c: Likewise.
57228         * modules/rawmemchr-tests: Likewise.
57229         * tests/test-rawmemchr.c: Likewise.
57230         * doc/glibc-functions/rawmemchr.texi (rawmemchr): Document
57231         module.
57232         * modules/strchrnul (Depends-on): Add rawmemchr.
57233         * lib/strchrnul.c (strchrnul): Optimize a corner case.
57234
57235         Whitespace cleanup.
57236         * tests/test-strchrnul.c: Reindent.
57237         * lib/strchrnul.c: Likewise.
57238
57239         Optimize and test strchrnul.
57240         * lib/strchrnul.c (strchrnul): Rewrite to do parallel search.
57241         * modules/strchrnul-tests: New file.
57242         * tests/test-strchrnul.c: Likewise.
57243
57244         Remove intprops dependency.
57245         * modules/memchr (Depends-on): Remove intprops.
57246         * modules/memrchr (Depends-on): Likewise.
57247         * modules/memchr2 (Depends-on): Likewise.
57248         * lib/memchr.c (__memchr): Hand-inline the TYPE_MAXIMUM check.
57249         * lib/memrchr.c (__memrchr): Likewise.
57250         * lib/memrchr2.c (memchr2): Likewise.
57251         Reported by Simon Josefsson.
57252
57253 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57254
57255         * m4/sys_socket_h.m4: Move AC_REQUIRE([AC_C_INLINE]) to top.
57256         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57257
57258 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57259
57260         * lib/inet_ntop.h, lib/inet_pton.h: Remove files.
57261
57262         * lib/inet_ntop.c: Include arpa/inet.h instead of inet_ntop.h.
57263
57264         * lib/inet_pton.c: Include arpa/inet.h instead of inet_pton.h.
57265
57266         * lib/arpa_inet.in.h [@GNULIB_INET_NTOP@]: Inline inet_ntop.h
57267         declarations.
57268         [@GNULIB_INET_PTON@]: Inline inet_pton.h declarations.
57269
57270         * m4/inet_pton.m4: Don't check for header files.
57271
57272         * m4/inet_ntop.m4: Don't check for header files.
57273
57274 2008-04-28  Simon Josefsson  <simon@josefsson.org>
57275
57276         * m4/sys_socket_h.m4: Require AC_C_INLINE when necessary.
57277         * lib/sys_socket.in.h (setsockopt): Use proper win32 tests (don't
57278         trigger for cygwin).
57279         Reported by Bruno Haible  <bruno@clisp.org>.
57280
57281 2008-04-28  Bruno Haible  <bruno@clisp.org>
57282
57283         * doc/posix-functions/strdup.texi: Mention mingw problem.
57284
57285 2008-04-27  Bruno Haible  <bruno@clisp.org>
57286
57287         * modules/stat-time-tests (Depends-on): Add sleep.
57288         * tests/test-stat-time.c (force_unlink): New function.
57289         (cleanup): Use it.
57290         (test_mtime): Remove the ctime related tests.
57291         (test_ctime): New function, containing the ctime related tests.
57292         (main): Call test_ctime, except on native Windows platforms.
57293
57294 2008-04-27  Bruno Haible  <bruno@clisp.org>
57295
57296         * lib/rpmatch.c (rpmatch): Add some comments.
57297         Reported by James Youngman <jay@gnu.org>.
57298
57299 2008-04-27  Bruno Haible  <bruno@clisp.org>
57300
57301         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Also test the behaviour on
57302         quiet NaNs.
57303
57304 2008-04-27  Bruno Haible  <bruno@clisp.org>
57305
57306         Make test-yesno.sh work on mingw.
57307         * tests/test-yesno.sh: Postprocess the output to convert CR/LF to LF.
57308         * tests/test-yesno.c: Include yesno.h first. Include binary-io.h.
57309         (main): Set stdin to binary mode.
57310         * modules/yesno-tests (Depends-on): Add binary-io.
57311
57312 2008-04-27  Bruno Haible  <bruno@clisp.org>
57313
57314         Fix 'isfinite' on x86, x86_64, ia64 platforms.
57315         * tests/test-isfinite.c (test_isfinitel): Also test the behavior on
57316         argument that lie outside the IEEE 854 domain.
57317         * m4/isfinite.m4 (gl_ISFINITEL_WORKS): New macro.
57318         (gl_ISFINITE): Use it.
57319         * doc/posix-functions/isfinite.texi: Document the fixed bugs.
57320
57321 2008-04-27  Bruno Haible  <bruno@clisp.org>
57322
57323         Allow local renaming in config.h.
57324         * lib/memrchr.c (memrchr): Don't undefine outside libc.
57325
57326 2008-04-27  Bruno Haible  <bruno@clisp.org>
57327
57328         * lib/memchr.c (__memchr): Change type of 'i'.
57329         * lib/memchr2.c (memchr2): Likewise.
57330
57331 2008-04-26  Eric Blake  <ebb9@byu.net>
57332         and Bruno Haible  <bruno@clisp.org>
57333
57334         Optimize and test memrchr.
57335         * modules/memrchr (Depends-on): Add intprops.
57336         * lib/memrchr.c (__memrchr): Avoid false positives in loop.
57337         * modules/memrchr-tests: New file.
57338         * tests/test-memrchr.c: New file.
57339
57340 2008-04-26  Bruno Haible  <bruno@clisp.org>
57341
57342         Add tentative support for DragonFly BSD.
57343         * lib/stdio-impl.h: Add macros for DragonFly BSD.
57344         * lib/fbufmode.c (fbufmode): Update conditionals. Use fp_ instead of
57345         fp.
57346         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57347         restore_seek_optimization, update_fpos_cache, rpl_fflush: Likewise.
57348         * lib/fpurge.c (fpurge): Likewise.
57349         * lib/freadable.c (freaadable): Likewise.
57350         * lib/freadahead.c (freadahead): Likewise.
57351         * lib/freading.c (freading): Likewise.
57352         * lib/freadptr.c (freadptr): Likewise.
57353         * lib/freadseek.c (freadptrinc): Likewise.
57354         * lib/fseeko.c (fseeko): Likewise.
57355         * lib/fseterr.c (fseterr): Likewise.
57356         * lib/fwritable.c (fwritable): Likewise.
57357         * lib/fwriting.c (fwriting): Likewise.
57358
57359 2008-04-26  Bruno Haible  <bruno@clisp.org>
57360
57361         * lib/stdio-impl.h: New file.
57362         * lib/fbufmode.c: Include stdio-impl.h.
57363         (fbufmode): Use fp_, remove redundant #defines.
57364         * lib/fflush.c: Include stdio-impl.h.
57365         (clear_ungetc_buffer): Remove redundant #defines.
57366         * lib/fpurge.c: Include stdio-impl.h.
57367         (fpurge): Remove redundant #defines.
57368         * lib/freadable.c: Include stdio-impl.h.
57369         (freadable): Remove redundant #defines.
57370         * lib/freadahead.c: Include stdio-impl.h.
57371         (freadahead): Remove redundant #defines.
57372         * lib/freading.c: Include stdio-impl.h.
57373         (freading): Remove redundant #defines.
57374         * lib/freadptr.c: Include stdio-impl.h.
57375         (freadptr): Remove redundant #defines.
57376         * lib/freadseek.c: Include stdio-impl.h.
57377         (freadptrinc): Remove redundant #defines.
57378         * lib/fseeko.c: Include stdio-impl.h.
57379         (rpl_fseeko): Remove redundant #defines.
57380         * lib/fseterr.c: Include stdio-impl.h.
57381         (fseterr): Remove redundant #defines.
57382         * lib/fwritable.c: Include stdio-impl.h.
57383         (fwritable: Remove redundant #defines.
57384         * lib/fwriting.c: Include stdio-impl.h.
57385         (fwriting): Remove redundant #defines.
57386         * modules/fbufmode (Files): Add lib/stdio-impl.h.
57387         * modules/fflush (Files): Likewise.
57388         * modules/fpurge (Files): Likewise.
57389         * modules/freadable (Files): Likewise.
57390         * modules/freadahead (Files): Likewise.
57391         * modules/freading (Files): Likewise.
57392         * modules/freadptr (Files): Likewise.
57393         * modules/freadseek (Files): Likewise.
57394         * modules/fseeko (Files): Likewise.
57395         * modules/fseterr (Files): Likewise.
57396         * modules/fwritable (Files): Likewise.
57397         * modules/fwriting (Files): Likewise.
57398
57399 2008-04-26  Bruno Haible  <bruno@clisp.org>
57400
57401         * lib/fflush.c (clear_ungetc_buffer, disable_seek_optimization,
57402         restore_seek_optimization, update_fpos_cache): New functions, extracted
57403         from rpl_fflush.
57404         (rpl_fflush): Use them.
57405         * m4/fflush.m4 (gl_PREREQ_FFLUSH): New macro.
57406         (gl_REPLACE_FFLUSH): Use it.
57407
57408 2008-04-26  Bruno Haible  <bruno@clisp.org>
57409
57410         * tests/test-xstrtol.sh: Work around limitation of an old 'tr' program
57411         on Solaris.
57412         * tests/test-xstrtoimax.sh: Likewise.
57413         * tests/test-xstrtoumax.sh: Likewise.
57414         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
57415
57416 2008-04-26  Bruno Haible  <bruno@clisp.org>
57417
57418         * modules/memchr-tests: New file.
57419         * tests/test-memchr.c; New file, based on tests/test-memchr2.c.
57420
57421 2008-04-26  Eric Blake  <ebb9@byu.net>
57422             Bruno Haible  <bruno@clisp.org>
57423
57424         * lib/memchr.c: Include intprops.h.
57425         (__memchr): Optimize parallel detection of matching bytes. Rename local
57426         variables. Add explanatory comments.
57427
57428 2008-04-26  Bruno Haible  <bruno@clisp.org>
57429
57430         Fix module 'memchr', broken since 2000-10-28.
57431         * lib/memchr.c: Outside glibc, define memchr, not __memchr.
57432
57433 2008-04-26  Bruno Haible  <bruno@clisp.org>
57434
57435         * lib/memchr2.c (memchr2): Rename local variables. Add explanatory
57436         comments.
57437
57438 2008-04-25  Eric Blake  <ebb9@byu.net>
57439
57440         Use native fstatat on cygwin 1.7.0.
57441         * m4/openat.m4 (gl_FUNC_OPENAT): Make sure lstat check is made
57442         first.
57443
57444 2008-04-23  Eric Blake  <ebb9@byu.net>
57445
57446         Improve memchr2 performance.
57447         * lib/memchr2.c (memchr2): Further optimize parallel detection of
57448         NUL bytes.
57449         * modules/memchr2 (Depends-on): Use intprops.h.
57450
57451 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57452
57453         * lib/sys_socket.in.h (setsockopt): Be more type safe by declaring
57454         an inline function instead of a CPP macro.  Patch by Ben Pfaff
57455         <blp@cs.stanford.edu>.
57456
57457 2008-04-23  Simon Josefsson  <simon@josefsson.org>
57458
57459         * lib/arpa_inet.in.h: New file.
57460
57461         * modules/arpa_inet (Files): Add lib/arpa_inet.in.h.
57462         (Makefile.am): Sed in substitute header file.
57463
57464         * m4/arpa_inet_h.m4: Add gl_ARPA_INET_H_DEFAULTS and
57465         gl_ARPA_INET_MODULE_INDICATOR.  Use them.
57466
57467         * modules/inet_ntop (configure.ac): Use
57468         gl_ARPA_INET_MODULE_INDICATOR.
57469
57470         * modules/inet_pton (configure.ac): Use
57471         gl_ARPA_INET_MODULE_INDICATOR.
57472
57473 2008-04-22  Jim Meyering  <meyering@redhat.com>
57474
57475         * modules/verify (License): Re-license as LGPLv2+.
57476
57477 2008-04-22  Simon Josefsson  <simon@josefsson.org>
57478
57479         * lib/sys_socket.in.h: Define setsockopt macro to cast fourth
57480         parameter to void* as per POSIX standard (MinGW uses char*).
57481
57482 2008-04-21  Bruno Haible  <bruno@clisp.org>
57483
57484         * lib/wctype.in.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
57485         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
57486         Define to replacements if REPLACE_ISWCNTRL is 1.
57487         * m4/wctype.m4 (gl_WCTYPE_H): Test whether the isw* functions work.
57488         If not, set WCTYPE_H to nonempty and REPLACE_ISWCNTRL to 1.
57489         * modules/wctype (Makefile.am): Substitute REPLACE_ISWCNTRL.
57490         * doc/posix-functions/iswalnum.texi: Mention the 'wctype' module and
57491         what it fixes.
57492         * doc/posix-functions/iswalpha.texi: Likewise.
57493         * doc/posix-functions/iswblank.texi: Likewise.
57494         * doc/posix-functions/iswcntrl.texi: Likewise.
57495         * doc/posix-functions/iswdigit.texi: Likewise.
57496         * doc/posix-functions/iswgraph.texi: Likewise.
57497         * doc/posix-functions/iswlower.texi: Likewise.
57498         * doc/posix-functions/iswprint.texi: Likewise.
57499         * doc/posix-functions/iswpunct.texi: Likewise.
57500         * doc/posix-functions/iswspace.texi: Likewise.
57501         * doc/posix-functions/iswupper.texi: Likewise.
57502         * doc/posix-functions/iswxdigit.texi: Likewise.
57503         Reported by Alain Guibert.
57504
57505 2008-04-21  Bruno Haible  <bruno@clisp.org>
57506
57507         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Fix typo in last commit.
57508         Patch by Alain Guibert.
57509
57510 2008-04-21  Bruno Haible  <bruno@clisp.org>
57511
57512         Fix test failures on mingw.
57513         * tests/test-xstrtol.c (print_no_progname): New function.
57514         (main): Install it in error_print_progname hook.
57515         * tests/test-xstrtol.sh: Convert CR/LF to NL in output.
57516         * tests/test-xstrtoimax.sh: Likewise.
57517         * tests/test-xstrtoumax.sh: Likewise.
57518
57519 2008-04-21  Bruno Haible  <bruno@clisp.org>
57520
57521         Fix test failure on mingw.
57522         * tests/test-argp-2.sh (func_compare): Remove CRs from sed's output.
57523
57524 2008-04-21  Bruno Haible  <bruno@clisp.org>
57525
57526         * lib/localename.c (SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN):
57527         Actually assign a value.
57528
57529 2008-04-20  Bruno Haible  <bruno@clisp.org>
57530
57531         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl',
57532         take 2.
57533         * lib/canonicalize.c (canonicalize_file_name): Elide if the
57534         'canonicalize-lgpl' module is also used.
57535         * lib/canonicalize-lgpl.c: Undo last change.
57536         * modules/canonicalize-lgpl (configure.ac): Invoke gl_MODULE_INDICATOR.
57537
57538 2008-04-20  Bruno Haible  <bruno@clisp.org>
57539
57540         * lib/mkdir.c (mkdir): Undefine after the includes, not right after
57541         config.h. Provide _mkdir based fallback for mingw.
57542         * lib/sys_stat.in.h (mkdir): Define through an 'extern' declaration
57543         if REPLACE_MKDIR is 1. Otherwise, test for mingw directly.
57544         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Require
57545         gl_SYS_STAT_H_DEFAULTS. When doing the replacement, set REPLACE_MKDIR
57546         rather than defining mkdir in config.h.
57547         * m4/sys_stat_h.m4 (gl_SYS_STAT_MODULE_INDICATOR): New macro.
57548         (gl_SYS_STAT_H_DEFAULTS): New macro.
57549         (gl_HEADER_SYS_STAT_H): Require it. Don't set HAVE_DECL_MKDIR and
57550         HAVE_IO_H any more.
57551         * modules/sys_stat (Makefile.am): Substitute REPLACE_MKDIR instead of
57552         HAVE_DECL_MKDIR and HAVE_IO_H.
57553
57554 2008-04-20  Bruno Haible  <bruno@clisp.org>
57555
57556         * lib/isapipe.c: Port to native Windows platforms.
57557
57558 2008-04-20  Bruno Haible  <bruno@clisp.org>
57559
57560         * lib/gc-gnulib.c: Include <windows.h> before <wincrypt.h>.
57561
57562 2008-04-21  Eric Blake  <ebb9@byu.net>
57563
57564         Work around preprocessors that don't handle UINTMAX_MAX.
57565         * lib/memchr2.c (memchr2): Avoid embedded #if.
57566         Reported by Alain Guibert, fix suggested by Bruno Haible.
57567
57568 2008-04-21  Simon Josefsson  <simon@josefsson.org>
57569
57570         * doc/posix-functions/strftime.texi (strftime): Explain better
57571         Windows incompatibility.  Suggested by Micah Cowan
57572         <micah@cowan.name>.
57573
57574 2008-04-20  Bruno Haible  <bruno@clisp.org>
57575
57576         * modules/uniconv/u32-conv-to-enc (Depends-on): Add unistr/u32-mblen,
57577         unistr/u8-mblen.
57578
57579 2008-04-20  Bruno Haible  <bruno@clisp.org>
57580
57581         Fix test failure on platforms with non-GNU iconv.
57582         * lib/uniconv/u16-conv-to-enc.c (u16_to_u8_lenient): New function.
57583         (U_TO_U8): Use it, rather than u16_to_u8.
57584         * lib/uniconv/u-conv-to-enc.h (FUNC): Allow an incomplete sequence of
57585         units at the end of the input string.
57586         * modules/uniconv/u16-conv-to-enc (Depends-on): Update.
57587
57588 2008-04-20  Bruno Haible  <bruno@clisp.org>
57589
57590         * tests/uniconv/test-u8-conv-to-enc.c (main): Accept result == NULL
57591         when the resulting length is 0.
57592         * tests/uniconv/test-u16-conv-to-enc.c (main): Likewise.
57593
57594 2008-04-20  Bruno Haible  <bruno@clisp.org>
57595
57596         * m4/roundf.m4 (gl_FUNC_ROUNDF): Add test whether roundf actually
57597         works.
57598         * doc/posix-functions/roundf.texi: Mention roundf bug on mingw.
57599
57600 2008-04-20  Bruno Haible  <bruno@clisp.org>
57601
57602         * tests/test-tsearch.c (main): Don't use initstate if it is missing.
57603         * modules/tsearch-tests (configure.ac): Test for initstate function.
57604
57605 2008-04-20  Bruno Haible  <bruno@clisp.org>
57606
57607         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Also provided a substitute
57608         for nlink_t if missing.
57609         * tests/test-sys_stat.c: Check the existence of the nlink_t type.
57610
57611 2008-04-19  Bruno Haible  <bruno@clisp.org>
57612
57613         Work around snprintf bug on Linux libc5.
57614         * m4/printf.m4 (gl_SNPRINTF_SIZE1): New macro.
57615         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
57616         gl_SNPRINTF_SIZE1.
57617         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
57618         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Likewise. Replace snprintf if
57619         that test failed.
57620         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Likewise.
57621         * lib/vasnprintf.c (USE_SNPRINTF): Set to 0 on Linux libc5 systems.
57622         * modules/snprintf (Files): Add m4/printf.m4.
57623         * modules/vsnprintf (Files): Likewise.
57624         * doc/posix-functions/snprintf.texi: Document Linux libc5 problem.
57625         * doc/posix-functions/vsnprintf.texi: Likewise.
57626
57627 2008-04-19  Bruno Haible  <bruno@clisp.org>
57628
57629         * lib/vasnprintf.c (floorlog10l, floorlog10): Reduce maximum error
57630         from 0.0058 to less than 10^-7.
57631
57632 2008-04-19  Bruno Haible  <bruno@clisp.org>
57633
57634         Fix rounding when a precision is given.
57635         * lib/vasnprintf.c (is_borderline): New function.
57636         (VASNPRINTF): For %e and %g, consider replacing the digits 10....0 with
57637         9...9x.
57638         * tests/test-vasnprintf-posix.c (test_function): Test rounding with %f,
57639         %e, %g.
57640         * tests/test-vasprintf-posix.c (test_function): Likewise.
57641         * tests/test-snprintf-posix.h (test_function): Likewise.
57642         * tests/test-sprintf-posix.h (test_function): Likewise.
57643         * tests/test-fprintf-posix.h (test_function): Test rounding with %f.
57644         * tests/test-printf-posix.h (test_function): Likewise.
57645         * tests/test-printf-posix.output: Update.
57646         Reported by John Darrington <john@darrington.wattle.id.au> via
57647         Ben Pfaff <blp@cs.stanford.edu>.
57648
57649 2008-04-18  Simon Josefsson  <simon@josefsson.org>
57650
57651         * doc/posix-functions/strftime.texi (strftime): Clarify platform.
57652         Suggested by Bruno Haible <bruno@clisp.org>.
57653
57654 2008-04-17  Bruno Haible  <bruno@clisp.org>
57655
57656         * lib/lock.h (gl_lock_destroy, gl_rwlock_destroy,
57657         gl_recursive_lock_destroy): Provide no-op definitions for the dummy
57658         implementation.
57659         Patch by Bruce Merry <bmerry@gmail.com>.
57660
57661 2008-04-17  Simon Josefsson  <simon@josefsson.org>
57662
57663         * doc/posix-functions/strftime.texi (strftime): Mention that %e
57664         doesn't work under Windows.
57665
57666 2008-04-16  Bruno Haible  <bruno@clisp.org>
57667
57668         * lib/localename.c (LANG_MAORI, LANG_QUECHUA, LANG_SOTHO, LANG_UIGHUR):
57669         New macros.
57670         (SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_LATIN,
57671         SUBLANG_BOSNIAN_BOSNIA_HERZEGOVINA_CYRILLIC,
57672         SUBLANG_CROATIAN_CROATIA, SUBLANG_CROATIAN_BOSNIA_HERZEGOVINA_LATIN,
57673         SUBLANG_MONGOLIAN_CYRILLIC_MONGOLIA, SUBLANG_MONGOLIAN_PRC,
57674         SUBLANG_QUECHUA_BOLIVIA, SUBLANG_QUECHUA_ECUADOR, SUBLANG_QUECHUA_PERU,
57675         SUBLANG_RUSSIAN_RUSSIA, SUBLANG_RUSSIAN_MOLDAVIA, SUBLANG_SPANISH_US,
57676         SUBLANG_TIBETAN_PRC, SUBLANG_TIBETAN_BHUTAN, SUBLANG_UIGHUR_PRC): New
57677         macros.
57678         (gl_locale_name_from_win32_LANGID): Refine code for Croatian/Bosnian,
57679         Mongolian, Russian, Spanish, Tibetan. Add code for Maori, Quechua,
57680         Northern Sotho, Uighur.
57681
57682 2008-04-16  Bruno Haible  <bruno@clisp.org>
57683
57684         * lib/localename.c (SUBLANG_SINDHI_INDIA): New macro.
57685         (SUBLANG_SINDHI_PAKISTAN): Change value from 1 to 2.
57686         (gl_locale_name_from_win32_LANGID): Fix code for Sindhi.
57687         Reported by Daniel Bergström <daniel@octocode.com>.
57688
57689 2007-12-25  KJK::Hyperion  <hackbunny@reactos.com>
57690             Bruno Haible  <bruno@clisp.org>
57691
57692         * lib/localename.c (gl_locale_name_canonicalize) [WIN32_NATIVE]: New
57693         function.
57694         (gl_locale_name_from_win32_LANGID, gl_locale_name_from_win32_LCID):
57695         New functions, mostly extracted from gl_locale_name_default.
57696         (gl_locale_name_default): Use gl_locale_name_from_win32_LCID.
57697
57698 2008-04-16  Eric Blake  <ebb9@byu.net>
57699
57700         Adjust strtod detection to catch glibc 2.7 bug.
57701         * m4/strtod.m4 (gl_FUNC_STRTOD): Test "nan()" behavior.
57702         Reported by John Gatewood Ham.
57703
57704 2008-04-16  Bruno Haible  <bruno@clisp.org>
57705
57706         Add tentative support for Linux libc5.
57707         * lib/fbufmode.c (fbufmode) [__GNU_LIBRARY__==1]: Reuse glibc2 code.
57708         * lib/fpurge.c (fpurge): Likewise.
57709         * lib/freadable.c (freadable): Likewise.
57710         * lib/freadahead.c (freadahead): Likewise.
57711         * lib/freading.c (freading): Likewise.
57712         * lib/freadptr.c (freadptr): Likewise.
57713         * lib/freadseek.c (freadptrinc): Likewise.
57714         * lib/fseeko.c (rpl_fseeko): Likewise.
57715         * lib/fseterr.c (fseterr): Likewise.
57716         * lib/fwritable.c (fwritable): Likewise.
57717         * lib/fwriting.c (fwriting): Likewise.
57718         Reported by Alain Guibert <alguibert+bts@free.fr>.
57719
57720 2008-04-15  Bruno Haible  <bruno@clisp.org>
57721
57722         * modules/mathl (configure.ac): Define module indicator.
57723
57724 2008-04-15  Bruno Haible  <bruno@clisp.org>
57725
57726         * lib/logl.c (logl): Remove unused variables.
57727
57728 2008-04-15  Bruno Haible  <bruno@clisp.org>
57729
57730         * lib/uniconv/u-conv-to-enc.h (FUNC): Fix return value when U_TO_U8
57731         fails.
57732
57733 2008-04-15  Bruno Haible  <bruno@clisp.org>
57734
57735         * lib/trim.c (trim2): Fix argument of isspace() macro.
57736
57737 2008-04-15  Paolo Bonzini  <bonzini@gnu.org>
57738
57739         * lib/tanl.c (kernel_tanl): Rename flag to invert, initialize it
57740         to 0.
57741         * lib/trigl.c (ieee754_rem_pio2l): Fix range checks.
57742
57743 2008-04-14  Bruno Haible  <bruno@clisp.org>
57744
57745         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Fix underquoting of
57746         AC_LANG_PROGRAM argument.
57747         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Likewise.
57748         * m4/gethrxtime.m4 (gl_ARITHMETIC_HRTIME_T): Likewise.
57749         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Likewise.
57750         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
57751         * m4/math_h.m4 (gl_MATH_H): Likewise.
57752         * m4/mbstate_t.m4 (AC_TYPE_MBSTATE_T): Likewise.
57753         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
57754         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
57755         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Likewise.
57756         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
57757         * m4/regex.m4 (gl_REGEX): Likewise.
57758         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Likewise.
57759         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET): Likewise.
57760         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
57761         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Likewise.
57762         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
57763         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
57764         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
57765         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
57766
57767 2008-04-14  Jim Meyering  <meyering@redhat.com>
57768
57769         test-strtod: fix typos: s/abs/fabs/
57770         * tests/test-strtod.c (main): Use fabs, not narrowing-to-int "abs".
57771
57772 2008-04-13  Bruno Haible  <bruno@clisp.org>
57773
57774         Fix conflict between modules 'canonicalize' and 'canonicalize-lgpl'.
57775         * lib/canonicalize-lgpl.c: Elide the contents if the 'canonicalize'
57776         module is also used and while not building the reloc-wrapper.
57777
57778 2008-04-13  Bruno Haible  <bruno@clisp.org>
57779
57780         * tests/test-getaddrinfo.c (simple): Ignore EAI_NODATA error.
57781
57782 2008-04-13  Bruno Haible  <bruno@clisp.org>
57783
57784         Fix AIX compilation failure introduced on 2008-04-02.
57785         * tests/test-frexp.c (exp): Undefine before redefining.
57786         * tests/test-frexpl.c (exp): Likewise.
57787
57788 2008-04-13  Bruno Haible  <bruno@clisp.org>
57789
57790         Work around a HP-UX stdio bug.
57791         * tests/test-ftell.c (main): Disable the fseek/ftell test on HP-UX.
57792         * tests/test-ftello.c (main): Likewise.
57793         * doc/posix-functions/ftell.texi: Mention HP-UX bug.
57794         * doc/posix-functions/ftello.texi: Likewise.
57795
57796 2008-04-13  Bruno Haible  <bruno@clisp.org>
57797
57798         Make test-signbit pass on HP-UX/hppa.
57799         * tests/test-signbit.c (minus_zerol): New variable.
57800         (test_signbitl): Use it.
57801
57802 2008-04-13  Bruno Haible  <bruno@clisp.org>
57803
57804         Make truncl work on OSF/1 4.0.
57805         * m4/truncl.m4 (gl_FUNC_TRUNCL): Test whether truncl actually works.
57806         Set REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57807         * lib/math.in.h (truncl): Test REPLACE_TRUNCL, not HAVE_DECL_TRUNCL.
57808         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_TRUNCL, not
57809         HAVE_DECL_TRUNCL.
57810         * modules/math (Makefile.am): Substitute REPLACE_TRUNCL, not
57811         HAVE_DECL_TRUNCL.
57812         * doc/posix-functions/truncl.texi: Document the OSF/1 4.0 problem.
57813
57814 2008-04-13  Bruno Haible  <bruno@clisp.org>
57815
57816         * lib/unictype.h: Remove trailing comma from enumeration definitions.
57817
57818 2008-04-13  Bruno Haible  <bruno@clisp.org>
57819
57820         * lib/count-one-bits.h (COUNT_ONE_BITS): Rewrite verification
57821         expression, so as to avoid HP-UX 11 cc compiler bug.
57822
57823 2008-04-13  Bruno Haible  <bruno@clisp.org>
57824
57825         * m4/regex.m4 (gl_PREREQ_REGEX): Also check for <libintl.h>.
57826
57827 2008-04-13  Bruno Haible  <bruno@clisp.org>
57828
57829         * lib/git-merge-changelog.c: Remove empty declaration outside of
57830         functions.
57831
57832 2008-04-13  Bruno Haible  <bruno@clisp.org>
57833
57834         * modules/quotearg-tests (Makefile.am): Define test_quotearg_LDADD.
57835
57836 2008-04-13  Bruno Haible  <bruno@clisp.org>
57837
57838         * doc/posix-headers/sys_socket.texi: Document the problem on EMX.
57839         * lib/sys_socket.in.h (SHUT_RD, SHUT_WR, SHUT_RDWR): Define if missing.
57840         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Replace <sys/socket.h>
57841         also if it exists but lacks definitions of the SHUT_* macros.
57842         * modules/sys_socket (Description): Update.
57843         Reported by Elbert Pol <e.pol@chello.nl>.
57844
57845 2008-04-13  Bruno Haible  <bruno@clisp.org>
57846
57847         * lib/localcharset.c (OS2): Don't redefine if already defined.
57848         Reported by Elbert Pol <e.pol@chello.nl>.
57849
57850 2008-04-13  Bruno Haible  <bruno@clisp.org>
57851
57852         * lib/binary-io.h [__EMX__]: Include <io.h>.
57853         Reported by Elbert Pol <e.pol@chello.nl>.
57854
57855 2008-04-12  Bruno Haible  <bruno@clisp.org>
57856
57857         * lib/fpucw.h: Enable the definitions also for x86_64.
57858         Needed for NetBSD/x86_64.
57859         Reported by Thomas Klausner <tk@giga.or.at>.
57860
57861 2008-04-12  Bruno Haible  <bruno@clisp.org>
57862
57863         * tests/test-strtod.c: Include isnand.h.
57864         (main): Use isnand instead of isnan.
57865         Reported by Jim Meyering.
57866
57867 2008-04-12  Bruno Haible  <bruno@clisp.org>
57868
57869         * m4/isnanf.m4 (gl_ISNANF_WORKS): Add a test for a special NaN.
57870         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
57871
57872 2008-04-12  Jim Meyering  <meyering@redhat.com>
57873
57874         * m4/math_h.m4 (gl_MATH_H): Fix typos.
57875
57876 2008-04-12  Bruno Haible  <bruno@clisp.org>
57877
57878         * lib/freadptr.c (freadptr) [__EMX__]: Fix wrong assertion.
57879         Reported by Elbert Pol <e.pol@chello.nl>.
57880
57881 2008-04-12  Eric Blake  <ebb9@byu.net>
57882
57883         Work around Solaris 10 math.h bug.
57884         * m4/math_h.m4 (gl_MATH_H): Check for bug.
57885         (gl_MATH_H_DEFAULTS): Set up default.
57886         * modules/math (Makefile.am): Replace new indicators.
57887         * lib/math.in.h (NAN, HUGE_VAL): Provide replacements.
57888         * tests/test-math.c (main): Test this.
57889         * m4/strtod.m4 (gl_FUNC_STRTOD): Don't rely on HUGE_VAL.
57890         * doc/posix-headers/math.texi (math.h): Mention bug.
57891         Reported by Nelson H. F. Beebe and Jim Meyering.
57892
57893 2008-04-11  Bruno Haible  <bruno@clisp.org>
57894
57895         Adapt to future versions of Apple GCC.
57896         * lib/argp-fmtstream.h (ARGP_FS_EI): Don't test __GNUC_GNU_INLINE__.
57897         Reported by Peter O'Gorman <peter@pogma.com>.
57898
57899 2008-04-11  Bruno Haible  <bruno@clisp.org>
57900
57901         * tests/test-getaddrinfo.c (simple): Ignore EAI_NONAME error.
57902
57903 2008-04-11  Bruno Haible  <bruno@clisp.org>
57904
57905         * modules/strsignal-tests (Makefile.am): Define test_strsignal_LDADD.
57906
57907         * modules/getaddrinfo-tests (Makefile.am): Define
57908         test_getaddrinfo_LDADD.
57909
57910 2008-04-11  Bruno Haible  <bruno@clisp.org>
57911
57912         * lib/strsignal.c (_sys_siglist): Don't declare if already declared.
57913         (init): Fix syntax error.
57914         * m4/strsignal.m4 (gl_PREREQ_STRSIGNAL): Check whether _sys_siglist
57915         is declared.
57916
57917 2008-04-11  Bruno Haible  <bruno@clisp.org>
57918
57919         * lib/glob.c: Include <stdbool.h>. Needed at least with IRIX cc.
57920         * modules/glob (Depends-on): Add stdbool.
57921
57922 2008-04-11  Bruno Haible  <bruno@clisp.org>
57923
57924         * lib/trim.c: Include <string.h>.
57925
57926 2008-04-11  Eric Blake  <ebb9@byu.net>
57927
57928         Avoid compile failure on OS/2.
57929         * lib/regex_internal.h (internal_function): Disable optimization
57930         on OS/2 (__EMX__), where it caused compiler error.
57931         Reported by Elbert Pol.
57932
57933 2008-04-11  Bruno Haible  <bruno@clisp.org>
57934
57935         Flush the standard error stream before aborting. Needed on mingw.
57936         * tests/test-argmatch.c (ASSERT): Call fflush(stderr) before abort().
57937         * tests/test-array_list.c (ASSERT): Likewise.
57938         * tests/test-array_oset.c (ASSERT): Likewise.
57939         * tests/test-avltree_list.c (ASSERT): Likewise.
57940         * tests/test-avltree_oset.c (ASSERT): Likewise.
57941         * tests/test-avltreehash_list.c (ASSERT): Likewise.
57942         * tests/test-binary-io.c (ASSERT): Likewise.
57943         * tests/test-byteswap.c (ASSERT): Likewise.
57944         * tests/test-c-ctype.c (ASSERT): Likewise.
57945         * tests/test-c-strcasecmp.c (ASSERT): Likewise.
57946         * tests/test-c-strcasestr.c (ASSERT): Likewise.
57947         * tests/test-c-strncasecmp.c (ASSERT): Likewise.
57948         * tests/test-c-strstr.c (ASSERT): Likewise.
57949         * tests/test-canonicalize-lgpl.c (ASSERT): Likewise.
57950         * tests/test-canonicalize.c (ASSERT): Likewise.
57951         * tests/test-carray_list.c (ASSERT): Likewise.
57952         * tests/test-ceilf1.c (ASSERT): Likewise.
57953         * tests/test-ceilf2.c (ASSERT): Likewise.
57954         * tests/test-ceill.c (ASSERT): Likewise.
57955         * tests/test-count-one-bits.c (ASSERT): Likewise.
57956         * tests/test-fbufmode.c (ASSERT): Likewise.
57957         * tests/test-fflush2.c (ASSERT): Likewise.
57958         * tests/test-floorf1.c (ASSERT): Likewise.
57959         * tests/test-floorf2.c (ASSERT): Likewise.
57960         * tests/test-floorl.c (ASSERT): Likewise.
57961         * tests/test-fopen.c (ASSERT): Likewise.
57962         * tests/test-fpending.c (ASSERT): Likewise.
57963         * tests/test-fprintf-posix.c (ASSERT): Likewise.
57964         * tests/test-fpurge.c (ASSERT): Likewise.
57965         * tests/test-freadable.c (ASSERT): Likewise.
57966         * tests/test-freadahead.c (ASSERT): Likewise.
57967         * tests/test-freading.c (ASSERT): Likewise.
57968         * tests/test-freadptr.c (ASSERT): Likewise.
57969         * tests/test-freadptr2.c (ASSERT): Likewise.
57970         * tests/test-freadseek.c (ASSERT): Likewise.
57971         * tests/test-freopen.c (ASSERT): Likewise.
57972         * tests/test-frexp.c (ASSERT): Likewise.
57973         * tests/test-frexpl.c (ASSERT): Likewise.
57974         * tests/test-fseek.c (ASSERT): Likewise.
57975         * tests/test-fseeko.c (ASSERT): Likewise.
57976         * tests/test-fstrcmp.c (ASSERT): Likewise.
57977         * tests/test-ftell.c (ASSERT): Likewise.
57978         * tests/test-ftello.c (ASSERT): Likewise.
57979         * tests/test-func.c (ASSERT): Likewise.
57980         * tests/test-fwritable.c (ASSERT): Likewise.
57981         * tests/test-fwriting.c (ASSERT): Likewise.
57982         * tests/test-getdelim.c (ASSERT): Likewise.
57983         * tests/test-getline.c (ASSERT): Likewise.
57984         * tests/test-i-ring.c (ASSERT): Likewise.
57985         * tests/test-iconv-utf.c (ASSERT): Likewise.
57986         * tests/test-iconv.c (ASSERT): Likewise.
57987         * tests/test-isfinite.c (ASSERT): Likewise.
57988         * tests/test-isnand.c (ASSERT): Likewise.
57989         * tests/test-isnanf.c (ASSERT): Likewise.
57990         * tests/test-isnanl.h (ASSERT): Likewise.
57991         * tests/test-ldexpl.c (ASSERT): Likewise.
57992         * tests/test-linked_list.c (ASSERT): Likewise.
57993         * tests/test-linkedhash_list.c (ASSERT): Likewise.
57994         * tests/test-localename.c (ASSERT): Likewise.
57995         * tests/test-lseek.c (ASSERT): Likewise.
57996         * tests/test-mbscasecmp.c (ASSERT): Likewise.
57997         * tests/test-mbscasestr1.c (ASSERT): Likewise.
57998         * tests/test-mbscasestr2.c (ASSERT): Likewise.
57999         * tests/test-mbscasestr3.c (ASSERT): Likewise.
58000         * tests/test-mbscasestr4.c (ASSERT): Likewise.
58001         * tests/test-mbschr.c (ASSERT): Likewise.
58002         * tests/test-mbscspn.c (ASSERT): Likewise.
58003         * tests/test-mbsncasecmp.c (ASSERT): Likewise.
58004         * tests/test-mbspbrk.c (ASSERT): Likewise.
58005         * tests/test-mbspcasecmp.c (ASSERT): Likewise.
58006         * tests/test-mbsrchr.c (ASSERT): Likewise.
58007         * tests/test-mbsspn.c (ASSERT): Likewise.
58008         * tests/test-mbsstr1.c (ASSERT): Likewise.
58009         * tests/test-mbsstr2.c (ASSERT): Likewise.
58010         * tests/test-mbsstr3.c (ASSERT): Likewise.
58011         * tests/test-memchr2.c (ASSERT): Likewise.
58012         * tests/test-memmem.c (ASSERT): Likewise.
58013         * tests/test-open.c (ASSERT): Likewise.
58014         * tests/test-printf-frexp.c (ASSERT): Likewise.
58015         * tests/test-printf-frexpl.c (ASSERT): Likewise.
58016         * tests/test-printf-posix.c (ASSERT): Likewise.
58017         * tests/test-quotearg.c (ASSERT): Likewise.
58018         * tests/test-rbtree_list.c (ASSERT): Likewise.
58019         * tests/test-rbtree_oset.c (ASSERT): Likewise.
58020         * tests/test-rbtreehash_list.c (ASSERT): Likewise.
58021         * tests/test-round1.c (ASSERT): Likewise.
58022         * tests/test-roundf1.c (ASSERT): Likewise.
58023         * tests/test-roundl.c (ASSERT): Likewise.
58024         * tests/test-signbit.c (ASSERT): Likewise.
58025         * tests/test-sleep.c (ASSERT): Likewise.
58026         * tests/test-snprintf-posix.c (ASSERT): Likewise.
58027         * tests/test-snprintf.c (ASSERT): Likewise.
58028         * tests/test-sprintf-posix.c (ASSERT): Likewise.
58029         * tests/test-stat-time.c (ASSERT): Likewise.
58030         * tests/test-strcasestr.c (ASSERT): Likewise.
58031         * tests/test-strerror.c (ASSERT): Likewise.
58032         * tests/test-striconv.c (ASSERT): Likewise.
58033         * tests/test-striconveh.c (ASSERT): Likewise.
58034         * tests/test-striconveha.c (ASSERT): Likewise.
58035         * tests/test-strsignal.c (ASSERT): Likewise.
58036         * tests/test-strstr.c (ASSERT): Likewise.
58037         * tests/test-strtod.c (ASSERT): Likewise.
58038         * tests/test-trunc1.c (ASSERT): Likewise.
58039         * tests/test-trunc2.c (ASSERT): Likewise.
58040         * tests/test-truncf1.c (ASSERT): Likewise.
58041         * tests/test-truncf2.c (ASSERT): Likewise.
58042         * tests/test-truncl.c (ASSERT): Likewise.
58043         * tests/test-vasnprintf-posix.c (ASSERT): Likewise.
58044         * tests/test-vasnprintf-posix2.c (ASSERT): Likewise.
58045         * tests/test-vasnprintf.c (ASSERT): Likewise.
58046         * tests/test-vasprintf-posix.c (ASSERT): Likewise.
58047         * tests/test-vasprintf.c (ASSERT): Likewise.
58048         * tests/test-vfprintf-posix.c (ASSERT): Likewise.
58049         * tests/test-vprintf-posix.c (ASSERT): Likewise.
58050         * tests/test-vsnprintf-posix.c (ASSERT): Likewise.
58051         * tests/test-vsnprintf.c (ASSERT): Likewise.
58052         * tests/test-vsprintf-posix.c (ASSERT): Likewise.
58053         * tests/test-wcwidth.c (ASSERT): Likewise.
58054         * tests/test-xfprintf-posix.c (ASSERT): Likewise.
58055         * tests/test-xprintf-posix.c (ASSERT): Likewise.
58056         * tests/test-xvasprintf.c (ASSERT): Likewise.
58057         * tests/uniconv/test-u16-conv-from-enc.c (ASSERT): Likewise.
58058         * tests/uniconv/test-u16-conv-to-enc.c (ASSERT): Likewise.
58059         * tests/uniconv/test-u16-strconv-from-enc.c (ASSERT): Likewise.
58060         * tests/uniconv/test-u16-strconv-to-enc.c (ASSERT): Likewise.
58061         * tests/uniconv/test-u32-conv-from-enc.c (ASSERT): Likewise.
58062         * tests/uniconv/test-u32-conv-to-enc.c (ASSERT): Likewise.
58063         * tests/uniconv/test-u32-strconv-from-enc.c (ASSERT): Likewise.
58064         * tests/uniconv/test-u32-strconv-to-enc.c (ASSERT): Likewise.
58065         * tests/uniconv/test-u8-conv-from-enc.c (ASSERT): Likewise.
58066         * tests/uniconv/test-u8-conv-to-enc.c (ASSERT): Likewise.
58067         * tests/uniconv/test-u8-strconv-from-enc.c (ASSERT): Likewise.
58068         * tests/uniconv/test-u8-strconv-to-enc.c (ASSERT): Likewise.
58069         * tests/unictype/test-bidi_byname.c (ASSERT): Likewise.
58070         * tests/unictype/test-bidi_name.c (ASSERT): Likewise.
58071         * tests/unictype/test-bidi_of.c (ASSERT): Likewise.
58072         * tests/unictype/test-bidi_test.c (ASSERT): Likewise.
58073         * tests/unictype/test-block_list.c (ASSERT): Likewise.
58074         * tests/unictype/test-block_of.c (ASSERT): Likewise.
58075         * tests/unictype/test-block_test.c (ASSERT): Likewise.
58076         * tests/unictype/test-categ_and.c (ASSERT): Likewise.
58077         * tests/unictype/test-categ_and_not.c (ASSERT): Likewise.
58078         * tests/unictype/test-categ_byname.c (ASSERT): Likewise.
58079         * tests/unictype/test-categ_name.c (ASSERT): Likewise.
58080         * tests/unictype/test-categ_none.c (ASSERT): Likewise.
58081         * tests/unictype/test-categ_of.c (ASSERT): Likewise.
58082         * tests/unictype/test-categ_or.c (ASSERT): Likewise.
58083         * tests/unictype/test-categ_test_withtable.c (ASSERT): Likewise.
58084         * tests/unictype/test-combining.c (ASSERT): Likewise.
58085         * tests/unictype/test-decdigit.c (ASSERT): Likewise.
58086         * tests/unictype/test-digit.c (ASSERT): Likewise.
58087         * tests/unictype/test-mirror.c (ASSERT): Likewise.
58088         * tests/unictype/test-numeric.c (ASSERT): Likewise.
58089         * tests/unictype/test-pr_byname.c (ASSERT): Likewise.
58090         * tests/unictype/test-pr_test.c (ASSERT): Likewise.
58091         * tests/unictype/test-predicate-part1.h (ASSERT): Likewise.
58092         * tests/unictype/test-scripts.c (ASSERT): Likewise.
58093         * tests/unictype/test-sy_c_ident.c (ASSERT): Likewise.
58094         * tests/unictype/test-sy_java_ident.c (ASSERT): Likewise.
58095         * tests/unistdio/test-u16-asnprintf1.c (ASSERT): Likewise.
58096         * tests/unistdio/test-u16-vasnprintf1.c (ASSERT): Likewise.
58097         * tests/unistdio/test-u16-vasnprintf2.c (ASSERT): Likewise.
58098         * tests/unistdio/test-u16-vasnprintf3.c (ASSERT): Likewise.
58099         * tests/unistdio/test-u16-vasprintf1.c (ASSERT): Likewise.
58100         * tests/unistdio/test-u16-vsnprintf1.c (ASSERT): Likewise.
58101         * tests/unistdio/test-u16-vsprintf1.c (ASSERT): Likewise.
58102         * tests/unistdio/test-u32-asnprintf1.c (ASSERT): Likewise.
58103         * tests/unistdio/test-u32-vasnprintf1.c (ASSERT): Likewise.
58104         * tests/unistdio/test-u32-vasnprintf2.c (ASSERT): Likewise.
58105         * tests/unistdio/test-u32-vasnprintf3.c (ASSERT): Likewise.
58106         * tests/unistdio/test-u32-vasprintf1.c (ASSERT): Likewise.
58107         * tests/unistdio/test-u32-vsnprintf1.c (ASSERT): Likewise.
58108         * tests/unistdio/test-u32-vsprintf1.c (ASSERT): Likewise.
58109         * tests/unistdio/test-u8-asnprintf1.c (ASSERT): Likewise.
58110         * tests/unistdio/test-u8-vasnprintf1.c (ASSERT): Likewise.
58111         * tests/unistdio/test-u8-vasnprintf2.c (ASSERT): Likewise.
58112         * tests/unistdio/test-u8-vasnprintf3.c (ASSERT): Likewise.
58113         * tests/unistdio/test-u8-vasprintf1.c (ASSERT): Likewise.
58114         * tests/unistdio/test-u8-vsnprintf1.c (ASSERT): Likewise.
58115         * tests/unistdio/test-u8-vsprintf1.c (ASSERT): Likewise.
58116         * tests/unistdio/test-ulc-asnprintf1.c (ASSERT): Likewise.
58117         * tests/unistdio/test-ulc-vasnprintf1.c (ASSERT): Likewise.
58118         * tests/unistdio/test-ulc-vasnprintf2.c (ASSERT): Likewise.
58119         * tests/unistdio/test-ulc-vasnprintf3.c (ASSERT): Likewise.
58120         * tests/unistdio/test-ulc-vasprintf1.c (ASSERT): Likewise.
58121         * tests/unistdio/test-ulc-vsnprintf1.c (ASSERT): Likewise.
58122         * tests/unistdio/test-ulc-vsprintf1.c (ASSERT): Likewise.
58123         * tests/uniwidth/test-u16-strwidth.c (ASSERT): Likewise.
58124         * tests/uniwidth/test-u16-width.c (ASSERT): Likewise.
58125         * tests/uniwidth/test-u32-strwidth.c (ASSERT): Likewise.
58126         * tests/uniwidth/test-u32-width.c (ASSERT): Likewise.
58127         * tests/uniwidth/test-u8-strwidth.c (ASSERT): Likewise.
58128         * tests/uniwidth/test-u8-width.c (ASSERT): Likewise.
58129         * tests/uniwidth/test-uc_width.c (ASSERT): Likewise.
58130         Reported by Eric Blake.
58131
58132 2008-04-11  Bruno Haible  <bruno@clisp.org>
58133
58134         * lib/wchar.in.h: Tweak comment.
58135
58136 2008-04-11  Bruno Haible  <bruno@clisp.org>
58137
58138         Fix __GNUC_STDC_INLINE__ predefine with Apple GCC on MacOS X 10.5.
58139         * gnulib-tool (func_emit_initmacro_start): Emit an invocation of
58140         gl_COMMON.
58141         * m4/gnulib-common.m4 (gl_COMMON, gl_COMMON_BODY): New macros.
58142
58143 2008-04-11  Bruno Haible  <bruno@clisp.org>
58144
58145         * modules/git-merge-changelog (git_merge_changelog_LDADD): Add LIBINTL.
58146
58147 2008-04-11  Simon Josefsson  <simon@josefsson.org>
58148
58149         * lib/gc-gnulib.c: On Windows, use CryptGenRandom from CSP instead
58150         of attempting to use non-existing /dev/*random.  Based on patch
58151         from Adam Strzelecki <ono@java.pl> in
58152         <http://lists.gnu.org/archive/html/help-gsasl/2008-02/msg00000.html>.
58153
58154 2008-04-08  Bruno Haible  <bruno@clisp.org>
58155
58156         Add tentative support for emx+gcc.
58157         * lib/fbufmode.c (fbufmode) [__EMX__]: Add conditional code.
58158         * lib/fpurge.c (fpurge): Likewise.
58159         * lib/freadable.c (freadable): Likewise.
58160         * lib/freadahead.c (freadahead): Likewise.
58161         * lib/freading.c (freading): Likewise.
58162         * lib/freadptr.c (freadptr): Likewise.
58163         * lib/freadseek.c (freadptrinc): Likewise.
58164         * lib/fseeko.c (rpl_fseeko): Likewise.
58165         * lib/fseterr.c (fseterr): Likewise.
58166         * lib/fwritable.c (fwritable): Likewise.
58167         * lib/fwriting.c (fwriting): Likewise.
58168         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for emx+gcc.
58169
58170 2008-04-09  Eric Blake  <ebb9@byu.net>
58171
58172         Avoid some autoconf warnings.
58173         * m4/regex.m4 (gl_REGEX): s/AC_HELP_STRING/AS_HELP_STRING/.
58174         * m4/acl.m4 (gl_FUNC_ACL): Likewise.
58175         * m4/afs.m4 (gl_AFS): Likewise.
58176         * m4/gc-random.m4 (gl_GC_RANDOM): Likewise.
58177         * m4/include_next.m4 (gl_INCLUDE_NEXT): s/AC_FOREACH/m4_foreach_w/.
58178         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58179         * m4/stdint.m4 (gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED)
58180         (gl_INTEGER_TYPE_SUFFIX): Likewise.
58181         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE)
58182         (AC_CHECK_DECLS_ONCE): Likewise.
58183         Rename file...
58184         * m4/onceonly.m4: ...to this, and delete 2.54 variant, now that
58185         gnulib-tool requires autoconf 2.59 or better.
58186         * gnulib-tool (func_get_filelist): s/\(onceonly\)_2_57.m4/\1.m4/.
58187
58188 2008-04-08  Eric Blake  <ebb9@byu.net>
58189
58190         Use 'git describe --match' if present (added in git 1.5.5).
58191         * build-aux/git-version-gen: Limit result to tags that match 'v*'
58192         if possible.
58193
58194 2008-04-08  Bruno Haible  <bruno@clisp.org>
58195
58196         Add tentative support for OpenServer.
58197         * lib/fbufmode.c (fbufmode): Add conditional define for _flag, _base,
58198         _ptr, _cnt.
58199         * lib/fpurge.c (fpurge): Likewise.
58200         * lib/freadable.c (freadable): Likewise.
58201         * lib/freadahead.c (freadahead): Likewise.
58202         * lib/freading.c (freading): Likewise.
58203         * lib/freadptr.c (freadptr): Likewise.
58204         * lib/freadseek.c (freadptrinc): Likewise.
58205         * lib/fseeko.c (rpl_fseeko): Likewise.
58206         * lib/fseterr.c (fseterr): Likewise.
58207         * lib/fwritable.c (fwritable): Likewise.
58208         * lib/fwriting.c (fwriting): Likewise.
58209         Reported by Roger Cornelius <rac@tenzing.org> and
58210         Brian K. White <brian@aljex.com>.
58211
58212 2008-04-06  Jim Meyering  <meyering@redhat.com>
58213
58214         * gnulib-tool (func_add_or_update): s/backuped/backed up/ in diagnostic
58215
58216 2008-04-06  Bruno Haible  <bruno@clisp.org>
58217
58218         Avoid possible error with non-ASCII bytes in UTF-8 locales.
58219         * tests/test-fprintf-posix.sh: Use "LC_ALL=C tr" instead of "tr".
58220         * tests/test-printf-posix.sh: Likewise.
58221         * tests/test-vfprintf-posix.sh: Likewise.
58222         * tests/test-vprintf-posix.sh: Likewise.
58223         * tests/test-xprintf-posix.sh: Likewise.
58224
58225 2008-04-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
58226
58227         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT): Fix quoting,
58228         hide error from 'ls', needed on OS/2.
58229         Report by Elbert Pol <elbert.pol@gmail.com>.
58230
58231 2008-04-04  Eric Blake  <ebb9@byu.net>
58232
58233         Make test-fseeko.c failures meaningful.
58234         * tests/test-fseeko.c: Print line number on failure.
58235         * tests/test-fseek.c: Likewise.
58236         Reported by Nelson H. F. Beebe.
58237
58238         Improve strtod bug detection check.
58239         * m4/strtod.m4 (gl_FUNC_STRTOD): Also check for hex-float parsing,
58240         required for Solaris 10.
58241         Reported by Bob Friesenhahn and Nelson H. F. Beebe.
58242
58243 2008-04-04  Bruno Haible  <bruno@clisp.org>
58244
58245         * modules/relocatable-prog-wrapper (Files): Add m4/environ.m4. Needed
58246         by m4/setenv.m4.
58247
58248 2008-04-03  Eric Blake  <ebb9@byu.net>
58249
58250         Ensure sane .version contents.
58251         * top/GNUmakefile (_dummy): Also delete .version when rebuilding
58252         version string.
58253         * build-aux/git-version-gen: Improve documentation.
58254
58255         Make GNU make output nicer.
58256         * top/GNUmakefile [!_have-Makefile]: Add dependency on
58257         MAKECMDGOALS to enforce message for all command line targets.  Set
58258         srcdir for use in maint.mk.
58259
58260         Another maintainer tweak.
58261         * top/GNUmakefile (_is-dist-target): Allow maintainer-distcheck as
58262         a target that regenerates version.
58263
58264 2008-04-03  Jim Meyering  <meyering@redhat.com>
58265
58266         vc-list-files: don't cause coreutils "make po-check" failure
58267         * build-aux/vc-list-files: Skip postprocessing when $2 is '.'
58268
58269 2008-04-03  Eric Blake  <ebb9@byu.net>
58270
58271         Allow VPATH usage of vc-list-files.
58272         * build-aux/vc-list-files (scriptversion): Add timestamp.
58273         (options): Add --help, --version, -C.
58274         (CVS): Support installed cvsu.
58275
58276 2008-04-02  Bruno Haible  <bruno@clisp.org>
58277
58278         Avoid some "statement with no effect" warnings from gcc.
58279         * tests/test-wctype.c (main): Explicitly ignore unused values.
58280         Reported by Jim Meyering.
58281
58282 2008-04-02  Jim Meyering  <meyering@redhat.com>
58283
58284         Avoid some warnings from "gcc -Wshadow".
58285         * tests/test-frexp.c (exp): Define to a different identifier.
58286         * tests/test-frexpl.c (exp): Likewise.
58287
58288 2008-04-03  Jim Meyering  <meyering@redhat.com>
58289
58290         bootstrap: remove dangling *.[ch] symlinks from lib
58291         * build-aux/bootstrap [dangling symlink removal]: Move find's
58292         -depth option to precede all others, to avoid a warning.
58293         Remove *.[ch] files too, and from "$source_base" (usually lib/).
58294
58295 2008-04-02  Bruno Haible  <bruno@clisp.org>
58296
58297         Avoid some warnings from "gcc -Wshadow".
58298         * tests/tests-vfprintf-posix.c (my_fprintf): Move after test_function.
58299         * tests/tests-vprintf-posix.c (my_printf): Move after test_function.
58300         * tests/tests-vsnprintf-posix.c (my_snprintf): Move after test_function.
58301         * tests/tests-vsprintf-posix.c (my_sprintf): Move after test_function.
58302         Reported by Jim Meyering.
58303
58304 2008-04-01  Bruno Haible  <bruno@clisp.org>
58305
58306         Fix test to work on IRIX 6.5 with cc.
58307         * tests/test-math.c (numeric_equal): New function.
58308         (main): Use it.
58309
58310 2008-04-01  Bruno Haible  <bruno@clisp.org>
58311
58312         * doc/posix-headers/math.texi: Refine documentation of NAN problem.
58313
58314 2008-04-01  Bruno Haible  <bruno@clisp.org>
58315
58316         * tests/test-vasnprintf-posix.c: Include nan.h instead of <math.h>.
58317         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58318         * modules/vasnprintf-posix-tests (Files): Add tests/nan.h.
58319         (Depends-on): Remove math.
58320
58321         * tests/test-vasprintf-posix.c: Include nan.h instead of <math.h>.
58322         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58323         * modules/vasprintf-posix-tests (Files): Add tests/nan.h.
58324         (Depends-on): Remove math.
58325
58326         * tests/test-snprintf-posix.h: Include nan.h instead of <math.h>.
58327         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58328         * modules/snprintf-posix-tests (Files): Add tests/nan.h.
58329         (Depends-on): Remove math.
58330         * modules/vsnprintf-posix-tests (Files): Add tests/nan.h.
58331         (Depends-on): Remove math.
58332
58333         * tests/test-sprintf-posix.h: Include nan.h instead of <math.h>.
58334         (test_function): Use NaNd, NaNl instead of NAN or 0.0L/0.0L.
58335         * modules/sprintf-posix-tests (Files): Add tests/nan.h.
58336         (Depends-on): Remove math.
58337         * modules/vsprintf-posix-tests (Files): Add tests/nan.h.
58338         (Depends-on): Remove math.
58339
58340         * tests/test-round1.c: Include nan.h.
58341         (main): Use NaNd instead of NAN.
58342         * modules/round-tests (Files): Add tests/nan.h.
58343
58344         * tests/test-trunc1.c: Include nan.h.
58345         (main): Use NaNd instead of NAN.
58346         * modules/trunc-tests (Files): Add tests/nan.h.
58347
58348         * tests/test-roundf1.c: Include nan.h.
58349         (main): Use NaNf instead of NAN.
58350         * modules/roundf-tests (Files): Add tests/nan.h.
58351
58352         * tests/test-truncf1.c: Include nan.h.
58353         (main): Use NaNf instead of NAN.
58354         * modules/truncf-tests (Files): Add tests/nan.h.
58355
58356         * tests/test-ceilf1.c: Include nan.h.
58357         (main): Use NaNf instead of NAN.
58358         * modules/ceilf-tests (Files): Add tests/nan.h.
58359
58360         * tests/test-floorf1.c: Include nan.h.
58361         (main): Use NaNf instead of NAN.
58362         * modules/floorf-tests (Files): Add tests/nan.h.
58363
58364         * tests/test-isnanf.c: Include nan.h instead of <math.h>.
58365         (main): Use NaNf instead of NAN.
58366         * modules/isnanf-nolibm-tests (Files): Add tests/nan.h.
58367
58368         * tests/test-isnand.c: Include nan.h instead of <math.h>.
58369         (main): Use NaNd instead of NAN.
58370         * modules/isnand-nolibm-tests (Files): Add tests/nan.h.
58371
58372         * tests/test-frexp.c: Include nan.h.
58373         (main): Use NaNd instead of NAN.
58374         * modules/frexp-tests (Files): Add tests/nan.h.
58375
58376         * lib/isnan.c: Don't include <math.h>.
58377         (FUNC): Don't use NAN macro.
58378         * modules/isnand-nolibm (Depends-on): Remove math.
58379         * modules/isnanf-nolibm (Depends-on): Remove math.
58380         * modules/isnanl (Depends-on): Remove math.
58381         * modules/isnanl-nolibm (Depends-on): Remove math.
58382
58383         * tests/nan.h: New file.
58384
58385 2008-04-01  Eric Blake  <ebb9@byu.net>
58386
58387         Fix typos.
58388         * tests/test-strtod.c (main): s/FLT_/DBL_/ for minimum and epsilon
58389         values to be the right type.
58390
58391         For now, cater to gnulib strtod inaccuracies.
58392         * tests/test-strtod.c (main): Allow 1-ulp error on expected
58393         fractional results.  While not as nice from a QoI perspective, it
58394         is a quicker patch than correctly implementing decimal to binary
58395         rounding.
58396
58397 2008-03-31  Eric Blake  <ebb9@byu.net>
58398
58399         Guarantee a definition of NAN.
58400         * lib/math.in.h (NAN): Define if missing.
58401         * tests/test-math.c (main): Test it.
58402         * doc/posix-headers/math.texi (math.h): Document this.
58403         * lib/isnan.c (rpl_isnand): Use it.
58404         * tests/test-ceilf1.c (NaN): Delete, and use NAN instead.
58405         * tests/test-floorf1.c (NaN): Likewise.
58406         * tests/test-frexp.c (NaN): Likewise.
58407         * tests/test-isnand.c (NaN): Likewise.
58408         * tests/test-isnanf.c (NaN): Likewise.
58409         * tests/test-round1.c (NaN): Likewise.
58410         * tests/test-roundf1.c (NaN): Likewise.
58411         * tests/test-snprintf-posix.h (NaN): Likewise.
58412         * tests/test-sprintf-posix.h (NaN): Likewise.
58413         * tests/test-trunc1.c (NaN): Likewise.
58414         * tests/test-truncf1.c (NaN): Likewise.
58415         * tests/test-vasnprintf-posix.c (NaN): Likewise.
58416         * tests/test-vasprintf-posix.c (NaN): Likewise.
58417         * modules/isnand-nolibm (Depends-on): Add math.
58418         * modules/isnanf-nolibm (Depends-on): Likewise.
58419         * modules/isnanl (Depends-on): Likewise.
58420         * modules/isnanl-nolibm (Depends-on): Likewise.
58421         * modules/snprintf-posix-tests (Depends-on): Likewise.
58422         * modules/sprintf-posix-tests (Depends-on): Likewise.
58423         * modules/vsnprintf-posix-tests (Depends-on): Likewise.
58424         * modules/vsprintf-posix-tests (Depends-on): Likewise.
58425         * modules/vasnprintf-posix-tests (Depends-on): Likewise.
58426         * modules/vasprintf-posix-tests (Depends-on): Likewise.
58427
58428 2008-03-31  Bruno Haible  <bruno@clisp.org>
58429
58430         * tests/test-strtod.c (main): Update results for OSF/1 platforms.
58431         * doc/posix-functions/strtod.texi: Likewise.
58432
58433 2008-03-31  Bruno Haible  <bruno@clisp.org>
58434
58435         * tests/test-strtod.c (main): Don't use C99 syntax.
58436
58437 2008-03-31  Bruno Haible  <bruno@clisp.org>
58438
58439         * tests/test-strtod.c (main): Don't test NAN macro. Needed for Solaris.
58440         Reported by Eric Blake.
58441
58442 2008-03-31  Jim Meyering  <meyering@redhat.com>
58443
58444         Don't compare actual signbit return values.
58445         * tests/test-strtod.c (main): Rather, compare only their
58446         zero/non-zero nature.
58447
58448 2008-03-31  Eric Blake  <ebb9@byu.net>
58449
58450         More strtod documentation.
58451         * doc/posix-functions/strtod.texi (strtod): Interpret more test
58452         failures as distinct bugs.
58453
58454 2008-03-30  Paul Eggert  <eggert@cs.ucla.edu>
58455
58456         * lib/wchar.in.h [defined __need_mbstate_t]: Just include <wchar.h>.
58457         Problem reported by Erik Benada in
58458         <http://lists.gnu.org/archive/html/bug-gnulib/2008-03/msg00249.html>.
58459
58460 2008-03-30  Bruno Haible  <bruno@clisp.org>
58461
58462         * tests/test-strtod.c: Add comments about which assertion fails on which
58463         platform.
58464         * doc/posix-functions/strtod.texi: Add info about many more platforms.
58465
58466 2008-03-30  Eric Blake  <ebb9@byu.net>
58467
58468         Test signbit behavior on zeros.
58469         * tests/test-signbit.c (test_signbitf): Add tests for zero.
58470         (test_signbitd, test_signbitl): Likewise.
58471
58472         More strtod touchups.
58473         * tests/test-strtod.c (main): Ignore tests for signbit on NaN, and
58474         sign of negative underflow, for now.  Use .5, not .1.
58475         * doc/posix-functions/strtod.texi (strtod): Mention these
58476         limitations.
58477         Reported by Jim Meyering.
58478
58479 2008-03-30  Bruno Haible  <bruno@clisp.org>
58480
58481         * lib/striconveh.h (mem_iconveh, str_iconveh): Optimize the conversion
58482         from UTF-8 to UTF-8//TRANSLIT in the same way as from UTF-8 to UTF-8.
58483
58484 2008-03-30  Bruno Haible  <bruno@clisp.org>
58485
58486         Avoid failure when attempting to return empty iconv results on some
58487         platforms.
58488         * lib/striconveh.c (mem_cd_iconveh_internal): In the final memory
58489         allocation, don't report ENOMEM when the resulting string is empty.
58490
58491 2008-03-30  Bruno Haible  <bruno@clisp.org>
58492
58493         Fix buffer overrun.
58494         * lib/vasnprintf.c (VASNPRINTF): If !USE_SNPRINTF && pad_ourselves:
58495         Don't consider the width for tmp_length. Check count against tmp_length
58496         before doing the padding. Ensure enough allocation during padding.
58497
58498 2008-03-30  Eric Blake  <ebb9@byu.net>
58499
58500         strtod touchups.
58501         * lib/strtod.c (strtod): Avoid compiler warnings.
58502         Reported by Jim Meyering.
58503
58504 2008-03-30  Bruno Haible  <bruno@clisp.org>
58505
58506         * lib/unistdio/u-vsprintf.h (EOVERFLOW): Remove fallback.
58507         * modules/unistdio/ulc-vsprintf (Depends-on): Add EOVERFLOW.
58508         * modules/unistdio/u8-vsprintf (Depends-on): Add EOVERFLOW.
58509         * modules/unistdio/u8-u8-vsprintf (Depends-on): Add EOVERFLOW.
58510         * modules/unistdio/u16-vsprintf (Depends-on): Add EOVERFLOW.
58511         * modules/unistdio/u16-u16-vsprintf (Depends-on): Add EOVERFLOW.
58512         * modules/unistdio/u32-vsprintf (Depends-on): Add EOVERFLOW.
58513         * modules/unistdio/u32-u32-vsprintf (Depends-on): Add EOVERFLOW.
58514
58515         * lib/unistdio/u-vsnprintf.h (EOVERFLOW): Remove fallback.
58516         * modules/unistdio/ulc-vsnprintf (Depends-on): Add EOVERFLOW.
58517         * modules/unistdio/u8-vsnprintf (Depends-on): Add EOVERFLOW.
58518         * modules/unistdio/u8-u8-vsnprintf (Depends-on): Add EOVERFLOW.
58519         * modules/unistdio/u16-vsnprintf (Depends-on): Add EOVERFLOW.
58520         * modules/unistdio/u16-u16-vsnprintf (Depends-on): Add EOVERFLOW.
58521         * modules/unistdio/u32-vsnprintf (Depends-on): Add EOVERFLOW.
58522         * modules/unistdio/u32-u32-vsnprintf (Depends-on): Add EOVERFLOW.
58523
58524         * lib/unistdio/u-vasprintf.h (EOVERFLOW): Remove fallback.
58525         * modules/unistdio/ulc-vasprintf (Depends-on): Add EOVERFLOW.
58526         * modules/unistdio/u8-vasprintf (Depends-on): Add EOVERFLOW.
58527         * modules/unistdio/u8-u8-vasprintf (Depends-on): Add EOVERFLOW.
58528         * modules/unistdio/u16-vasprintf (Depends-on): Add EOVERFLOW.
58529         * modules/unistdio/u16-u16-vasprintf (Depends-on): Add EOVERFLOW.
58530         * modules/unistdio/u32-vasprintf (Depends-on): Add EOVERFLOW.
58531         * modules/unistdio/u32-u32-vasprintf (Depends-on): Add EOVERFLOW.
58532
58533         * lib/unistdio/ulc-vfprintf.c (EOVERFLOW): Remove fallback.
58534         * modules/unistdio/ulc-vfprintf (Depends-on): Add EOVERFLOW.
58535
58536         * lib/unistdio/ulc-fprintf.c (EOVERFLOW): Remove fallback.
58537         * modules/unistdio/ulc-fprintf (Depends-on): Add EOVERFLOW.
58538
58539         * lib/xvasprintf.c (EOVERFLOW): Remove fallback.
58540         * modules/xvasprintf (Depends-on): Add EOVERFLOW.
58541
58542         * lib/vsprintf.c (EOVERFLOW): Remove fallback.
58543         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Drop gl_EOVERFLOW.
58544         * modules/vsprintf-posix (Depends-on): Add EOVERFLOW.
58545
58546         * lib/vsnprintf.c (EOVERFLOW): Remove fallback.
58547         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Drop gl_EOVERFLOW.
58548         * modules/vsnprintf (Depends-on): Add EOVERFLOW.
58549
58550         * lib/vfprintf.c (EOVERFLOW): Remove fallback.
58551         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Drop gl_EOVERFLOW.
58552         * modules/vfprintf-posix (Depends-on): Add EOVERFLOW.
58553
58554         * lib/vasprintf.c (EOVERFLOW): Remove fallback.
58555         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Drop gl_EOVERFLOW.
58556         * modules/vasprintf (Depends-on): Add EOVERFLOW.
58557
58558         * lib/vasnprintf.c (EOVERFLOW): Remove fallback.
58559         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Drop gl_EOVERFLOW.
58560         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Drop gl_EOVERFLOW.
58561         * modules/vasnprintf (Files): Remove m4/eoverflow.m4.
58562         (Depends-on): Add EOVERFLOW.
58563         * modules/unistdio/ulc-vasnprintf (Files): Remove m4/eoverflow.m4.
58564         (Depends-on): Add EOVERFLOW.
58565         * modules/unistdio/u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58566         (Depends-on): Add EOVERFLOW.
58567         * modules/unistdio/u8-u8-vasnprintf (Files): Remove m4/eoverflow.m4.
58568         (Depends-on): Add EOVERFLOW.
58569         * modules/unistdio/u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58570         (Depends-on): Add EOVERFLOW.
58571         * modules/unistdio/u16-u16-vasnprintf (Files): Remove m4/eoverflow.m4.
58572         (Depends-on): Add EOVERFLOW.
58573         * modules/unistdio/u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58574         (Depends-on): Add EOVERFLOW.
58575         * modules/unistdio/u32-u32-vasnprintf (Files): Remove m4/eoverflow.m4.
58576         (Depends-on): Add EOVERFLOW.
58577
58578         * lib/sprintf.c (EOVERFLOW): Remove fallback.
58579         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Drop gl_EOVERFLOW.
58580         * modules/sprintf-posix (Depends-on): Add EOVERFLOW.
58581
58582         * lib/snprintf.c (EOVERFLOW): Remove fallback.
58583         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Drop gl_EOVERFLOW.
58584         * modules/snprintf (Depends-on): Add EOVERFLOW.
58585
58586         * lib/poll.c (EOVERFLOW): Remove fallback.
58587         * modules/poll (Depends-on): Add EOVERFLOW.
58588
58589         * lib/getugroups.c (EOVERFLOW): Remove fallback.
58590         * modules/getugroups (Depends-on): Add EOVERFLOW.
58591
58592         * lib/getdelim.c (EOVERFLOW): Remove fallback.
58593         * modules/getdelim (Depends-on): Add EOVERFLOW.
58594
58595         * lib/ftell.c (EOVERFLOW): Remove fallback.
58596         * modules/ftell (Depends-on): Add EOVERFLOW.
58597
58598         * lib/fprintf.c (EOVERFLOW): Remove fallback.
58599         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Drop gl_EOVERFLOW.
58600         * modules/fprintf-posix (Depends-on): Add EOVERFLOW.
58601
58602         * lib/c-stack.c (EOVERFLOW): Remove unused fallback.
58603
58604         * modules/EOVERFLOW-tests: New file.
58605         * tests/test-EOVERFLOW.c: New file.
58606
58607         * modules/EOVERFLOW: New file.
58608         * doc/posix-headers/errno.texi: Mention EOVERFLOW portability problem.
58609
58610 2008-03-30  Bruno Haible  <bruno@clisp.org>
58611
58612         Fix bug introduced on 2007-06-10.
58613         * lib/vasnprintf.c (VASNPRINTF): When performing zero-padding, use
58614         spaces instead of 0 digits for 's' also when ENABLE_UNISTDIO.
58615
58616 2008-03-30  Bruno Haible  <bruno@clisp.org>
58617
58618         Improve freadseek's efficiency after ungetc.
58619         * lib/freadseek.c: Include freadahead.h.
58620         (freadptrinc): New function, extracted from freadseek.
58621         (freadseek): Use it in a loop. Use freadahead to determine the number
58622         of loop iterations.
58623         * modules/freadseek (Depends-on): Add freadahead.
58624         (configure.ac): Require AC_C_INLINE.
58625
58626 2008-03-30  Bruno Haible  <bruno@clisp.org>
58627
58628         * lib/freadseek.c (freadseek): Don't ignore the return value of
58629         freadptr.
58630
58631 2008-03-29  Eric Blake  <ebb9@byu.net>
58632
58633         Add hex float support.
58634         * modules/strtod (Depends-on): Add c-ctype.
58635         (Link): Mention POW_LIB.
58636         * lib/strtod.c (strtod): Recognize hex floats.  Don't allow
58637         whitespace between 'e' and exponent.
58638         * tests/test-strtod.c (main): Enable hex float tests.
58639         * doc/posix-functions/strtod.texi (strtod): Document what gnulib
58640         now provides.
58641
58642         Document various strtod bugs, with some fixes.
58643         * doc/posix-functions/strtod.texi (strtod): Document bugs with
58644         "-0x", "inf", "nan", and hex constants.
58645         * doc/posix-functions/atof.texi (atof): Likewise.
58646         * modules/stdlib (Makefile.am): Support strtod.
58647         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Likewise.
58648         * m4/strtod.m4 (gl_FUNC_STRTOD): Fit in stdlib framework, and
58649         detect additional strtod bugs.
58650         * lib/stdlib.in.h (rpl_strtod): Add declarations.
58651         * lib/strtod.c (strtod): Return -0.0 on negative underflow.  Use
58652         bool where appropriate.  Parse 'inf' and 'nan'.
58653         * tests/test-strtod.c: New file.
58654         * modules/strtod (Depends-on): Add stdbool, stdlib.
58655         (configure.ac): Turn on module indicator.
58656         * modules/strtod-tests: New module.
58657
58658 2008-03-29  Eric Blake  <ebb9@byu.net>
58659
58660         Fix ftell on mingw.
58661         * lib/ftell.c (EOVERFLOW): Define if the system lacks it.
58662         * modules/ftell-tests (Depends-on): Add binary-io.
58663         * modules/ftello-tests (Depends-on): Likewise.
58664         * tests/test-ftell.c (main): Enhance test to cover behavior after
58665         ungetc.  Enforce binary mode.
58666         * tests/test-ftello.c (main): Likewise.
58667
58668         Pass test-freadseek on cygwin.
58669         * modules/freadseek (Depends-on): Use freadptr, not freadahead.
58670         * lib/freadseek.c (freadseek): Don't increment beyond bounds of
58671         ungetc buffer.
58672
58673         * tests/test-fflush2.c (main): Fix typo.
58674
58675 2008-03-29  Bruno Haible  <bruno@clisp.org>
58676
58677         * tests/test-fflush2.c (main): Temporarily disable the contents of
58678         this test.
58679         * m4/fflush.m4 (gl_FUNC_FFLUSH): Add a TODO.
58680         Reported by Eric Blake.
58681
58682 2008-03-28  Simon Josefsson  <simon@josefsson.org>
58683
58684         * lib/gc.h (enum Gc_hash): Add GC_SHA224.
58685         (GC_SHA224_DIGEST_SIZE): Add.
58686
58687         * lib/gc-libgcrypt.c (gc_hash_open): Handle SHA-224.
58688         (gc_hash_digest_length): Likewise.
58689         (gc_hash_buffer): Likewise.
58690
58691 2008-03-25  Bruno Haible  <bruno@clisp.org>
58692
58693         * doc/gnulib-tool.texi (gettextize and autopoint): Explain in more
58694         detail which gettext release to use.
58695         Reported by Simon Josefsson.
58696
58697 2008-03-26  Jim Meyering  <meyering@redhat.com>
58698
58699         gnumakefile: remove file from $(top_builddir), not from $(top_srcdir)
58700         * modules/gnumakefile (clean-GNUmakefile): Also, use
58701         test ... && ... || : syntax rather than if-then ... fi.
58702
58703         gnumakefile: Don't double-quote-expand $(VPATH) value.
58704         * modules/gnumakefile (clean-GNUmakefile): Use single quotes.
58705
58706 2008-03-24  Eric Blake  <ebb9@byu.net>
58707
58708         Alter GNUmakefile to install into top directory.
58709         * modules/maintainer-makefile: Split, and add dependency...
58710         * modules/gnumakefile: to this new module.
58711         * build-aux/GNUmakefile: Move...
58712         * top/GNUmakefile: ...here.
58713         * build-aux/maint.mk: Move...
58714         * top/maint.mk: ...here.
58715         * MODULES.html.sh (Support for maintaining...): Document new
58716         module.
58717
58718 2008-03-23  Bruno Haible  <bruno@clisp.org>
58719
58720         * gnulib-tool: New options --vc-files, --no-vc-files.
58721         (func_usage): Document them.
58722         (vc_files): New variable.
58723         (func_import): Consider vc_files.
58724         (func_create_testdir): Set vc_files to empty.
58725         Suggested by Jim Meyering and Karl Berry.
58726
58727 2008-03-23  Bruno Haible  <bruno@clisp.org>
58728
58729         Fix regex compilation error on HP-UX 11.
58730         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_TYPE_MBSTATE_T.
58731         * modules/regex (Files): Add m4/mbstate_t.m4.
58732         Reported by Ton Voon <ton.voon@altinity.com>.
58733
58734 2008-03-23  Bruno Haible  <bruno@clisp.org>
58735
58736         * doc/gnulib-tool.texi (gettextize and autopoint): New section.
58737
58738 2008-03-23  Eric Blake  <ebb9@byu.net>
58739             Bruno Haible  <bruno@clisp.org>
58740
58741         Install files from top/ in the destination directory.
58742         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
58743         augmentation also for the files from top/.
58744         (func_import, func_create_testdir): Rewrite file names:
58745         top/filename -> filename.
58746
58747 2008-03-23  Bruno Haible  <bruno@clisp.org>
58748
58749         Tweak "gnulib --version" output.
58750         * gnulib-tool (func_version): Replace "-dirty" suffix with "-modified".
58751
58752 2008-03-23  Bruno Haible  <bruno@clisp.org>
58753
58754         Tweak "gnulib --version" output.
58755         * gnulib-tool (func_version): Use date of last commit to ChangeLog,
58756         rather than contents of ChangeLog, when possible.
58757
58758 2008-03-21  Eric Blake  <ebb9@byu.net>
58759
58760         More --version tweaks.
58761         * gnulib-tool (func_version): Obey GNU Coding Standards.  Output
58762         date of last ChangeLog entry.
58763
58764 2008-03-21  Jim Meyering  <meyering@redhat.com>
58765
58766         * build-aux/GNUmakefile (_have-git-version-gen): Split long line.
58767
58768 2008-03-20  Eric Blake  <ebb9@byu.net>
58769
58770         VPATH fix.
58771         * build-aux/GNUmakefile (_have_git-version-gen): Look in correct dir.
58772
58773 2008-03-20  Simon Josefsson  <simon@josefsson.org>
58774
58775         * build-aux/GNUmakefile: Make git-version-gen optional.  Add
58776         _build-aux variable.  Suggested by Eric Blake <ebb9@byu.net>.
58777
58778 2008-03-20  Eric Blake  <ebb9@byu.net>
58779
58780         Sync GNUmakefile with coreutils.
58781         * build-aux/GNUmakefile (have-Makefile): Rename...
58782         (_have-Makefile): ...to this, for namespace consideration.
58783         (GNUmakefile.cfg): Include, if present.
58784         (_autoreconf): Define a default.
58785         (_is-dist-target): New rule for rebuilds to pick up intra-release
58786         version.
58787         (maint-cfg.mk): Rename...
58788         (cfg.mk): ...to this.
58789
58790 2008-03-18  Jim Meyering  <meyering@redhat.com>
58791
58792         New script and module: mktempd
58793         * MODULES.html.sh (maint+release support): Add mktempd.
58794         * build-aux/mktempd: New file.
58795         * modules/mktempd: New file.
58796
58797 2008-03-15  Jim Meyering  <meyering@redhat.com>
58798
58799         Undo last change.
58800         * lib/sha1.c, lib/md5.c: 63 != ~63.
58801         Reported by Andreas Schwab.
58802
58803         sha1.c, md5.c: Hoist a redundant expression.
58804         * lib/sha1.c (sha1_process_bytes): AND-off the low bits in
58805         "ctx->buflen" only once, before calling *_process_block.
58806         * lib/md5.c (md5_process_bytes): Likewise.
58807
58808 2008-03-14  Eric Blake  <ebb9@byu.net>
58809
58810         Bump copyright year in files generated by gnulib-tool.
58811         * gnulib-tool (func_emit_copyright_notice): Extract copyright from
58812         gnulib-tool, rather than hard-coding it.
58813
58814         Fix 'gnulib-tool --version' output to work with git.
58815         * gnulib-tool (func_gnulib_dir): New function, extracted from...
58816         (startup): ...here.
58817         (func_version): Use it to invoke git-version-gen, rather than
58818         relying on CVS keyword expansion.  Modernize wording.
58819         (cvsdatestamp, last_checkin_date, version): Kill unused
58820         variables.
58821
58822 2008-03-12  Jim Meyering  <meyering@redhat.com>
58823
58824         Recognize optional cast of the argument to free.
58825         * build-aux/useless-if-before-free: Update regexps.
58826
58827         * build-aux/bootstrap (gnulib_tool): Remove trailing blanks.
58828
58829 2008-03-11  Bruno Haible  <bruno@clisp.org>
58830
58831         Extend AC_LIB_LINKFLAGS to the situation of several libraries provided
58832         by a single package.
58833         * m4/lib-link.m4 (AC_LIB_FROMPACKAGE): New macro.
58834         (AC_LIB_LINKFLAGS_BODY): Use the information stored by
58835         AC_LIB_FROMPACKAGE. Use AC_ARG_WITH instead of AC_LIB_ARG_WITH.
58836         Reported by Sam Steingold <sds@gnu.org>.
58837
58838 2008-03-12  Sergey Poznyakoff  <gray@gnu.org.ua>
58839
58840         * build-aux/bootstrap (version_controlled_file): Adapt for SVN
58841         repositories.
58842
58843 2008-03-11  Bruno Haible  <bruno@clisp.org>
58844
58845         Avoid conflicts between local macro definitions.
58846         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
58847         AC_LIB_LINKFLAGS_BODY): Use pushdef/popdef instead of define/undefine.
58848
58849 2008-03-10  Peter O'Gorman  <bug-gnulib@mlists.thewrittenword.com>
58850             Bruno Haible  <bruno@clisp.org>
58851
58852         Make va_copy work with some version of xlc on AIX 5.1.
58853         * lib/stdarg.in.h: New file.
58854         * m4/stdarg.m4 (gl_STDARG_H): Initialize STDARG_H and NEXT_STDARG_H.
58855         On AIX, use a <stdarg.h> file substitute.
58856         * modules/stdarg (Files): Add lib/stdarg.in.h.
58857         (Depends-on): Add include_next.
58858         (Makefile.am): Build a stdarg.h substitute if requested.
58859         * doc/posix-functions/va_copy.texi: Document the platforms lacking it.
58860
58861 2008-03-10  Bruno Haible  <bruno@clisp.org>
58862
58863         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Document a restriction.
58864         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Likewise.
58865         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
58866
58867 2008-03-10  Bruno Haible  <bruno@clisp.org>
58868
58869         * modules/stdlib (Depends-on): Add include_next, remove
58870         absolute-header.
58871
58872 2008-03-09  Bruno Haible  <bruno@clisp.org>
58873
58874         * lib/freadahead.h (freadahead): Document more precisely.
58875         * lib/freadahead.c (freadahead): When an ungetc is in effect, return
58876         the sum of both buffer sizes.
58877         * tests/test-freadahead.c (main): Also test behaviour after ungetc.
58878         * NEWS: Document the change.
58879
58880 2008-03-09  Bruno Haible  <bruno@clisp.org>
58881
58882         Extend freadptr to return also the buffer size.
58883         * lib/freadptr.h (freadptr): Add sizep argument.
58884         * lib/freadptr.c: Include freadptr.h, not freadahead.h.
58885         (freadptr): Add sizep argument. Determine buffer size like freadahead
58886         does.
58887         * tests/test-freadptr.c: Don't include freadahead.h.
58888         (main): Adapt for new calling convention of freadptr.
58889         * tests/test-freadptr2.c: New file, based on tests/test-freadahead.c.
58890         * tests/test-freadptr2.sh: New file, based on tests/test-freadahead.sh.
58891         * modules/freadptr-tests (Files): Add tests/test-freadptr2.c,
58892         tests/test-freadptr2.sh.
58893         (Depends): Remove freadahead.
58894         (TESTS): Add test-freadptr2.sh.
58895         (check_PROGRAMS): Add test-freadptr2.
58896
58897 2008-03-09  Bruno Haible  <bruno@clisp.org>
58898
58899         * doc/Makefile (%.pdf): Explain how to remedy the save_size error.
58900         Report and solution by Simon Josefsson.
58901
58902 2008-03-06  Bruno Haible  <bruno@clisp.org>
58903
58904         Make fflush after ungetc work on BSD platforms.
58905         * lib/fflush.c (rpl_fflush): Discard ungetc buffer if possible.
58906         * tests/test-fflush2.c: New file.
58907         * tests/test-fflush2.sh: New file.
58908         * modules/fflush-tests (Files): Add tests/test-fflush2.sh,
58909         tests/test-fflush2.c.
58910         (Makefile.am): Build test-fflush2 and run test-fflush2.sh.
58911         * doc/posix-functions/fflush.texi: Document fflush after ungetc bug.
58912
58913 2008-03-06  Eric Blake  <ebb9@byu.net>
58914
58915         Likewise for ftello.
58916         * modules/ftello (Dependencies): Add extensions.
58917         * m4/ftello.m4 (gl_FUNC_FTELLO): Require AC_USE_SYSTEM_EXTENSIONS.
58918
58919 2008-03-06  Bruno Haible  <bruno@clisp.org>
58920
58921         * modules/fseeko (Dependencies): Add extensions.
58922         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Require AC_USE_SYSTEM_EXTENSIONS.
58923         Needed on glibc systems.
58924
58925 2008-03-06  Bruno Haible  <bruno@clisp.org>
58926
58927         * doc/gnulib-tool.texi (@nosuchmodulenote): Avoid line break inside
58928         email address.
58929         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58930
58931 2008-03-06  Bruno Haible  <bruno@clisp.org>
58932
58933         * users.txt: Add libgnupdf.
58934
58935 2008-03-06  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
58936
58937         * doc/gnulib-tool.texi (@nosuchmodulenote): New macro.
58938         (Header File Substitutes, Function Substitutes,
58939         Glibc Header File Substitutes, Glibc Function Substitutes): Use it.
58940         (Build robot for gnulib): Fix typo.
58941
58942 2008-03-06  Bruno Haible  <bruno@clisp.org>
58943
58944         * doc/gnulib-tool.texi (VCS Issues): Small updates.
58945         Reported by Thien-Thi Nguyen <ttn@gnuvola.org>.
58946
58947 2008-03-06  Bruno Haible  <bruno@clisp.org>
58948
58949         * doc/func.texi: New file, extracted from doc/gnulib.texi.
58950         * doc/gnulib.texi: Include it.
58951
58952 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58953
58954         * modules/func (License): Change license to unlimited; there was
58955         no LGPL parts in the module anyway.
58956
58957 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58958
58959         * modules/__func__: Renamed to modules/func.
58960         * modules/__func__-tests: Renamed to modules/func-tests.
58961         * tests/test-__func__.c: Renamed to tests/test-func.c.
58962         * m4/__func__.m4: Renamed to m4/func.m4.
58963         * doc/gnulib.texi (__func__): Section renamed to func.
58964         Suggested by Eric Blake <ebb9@byu.net>.
58965
58966 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58967
58968         * doc/gnulib.texi (__func__): Use C99 terminology when talking
58969         about __func__.  Make example self-contained.  Suggested by Eric
58970         Blake <ebb9@byu.net>.
58971
58972         * tests/test-__func__.c (main): Avoid extraneous () around __func.
58973         Suggested by Eric Blake <ebb9@byu.net>.
58974
58975 2008-03-06  Simon Josefsson  <simon@josefsson.org>
58976
58977         * modules/__func__: New file.
58978         * modules/__func__-tests: New file.
58979         * tests/test-__func__.c: New file.
58980         * m4/__func__.m4: New file.
58981         * doc/gnulib.texi (__func__): Document __func__ module.
58982
58983 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58984
58985         * modules/byteswap (License): Re-license as LGPLv2+.
58986
58987 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58988
58989         * doc/Makefile: Add pdf target.
58990
58991 2008-03-05  Simon Josefsson  <simon@josefsson.org>
58992
58993         * modules/inline (License): Use 'unlimited', since there are only
58994         *.m4 files in this module.
58995
58996 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
58997             Bruno Haible  <bruno@clisp.org>
58998
58999         Add support for HP C 7.1 on OpenVMS 8.3.
59000         * lib/alloca.in.h (alloca): Define as alias for DEC C on VMS.
59001
59002 2008-03-03  John E. Malmberg  <wb8tyw@qsl.net>  (tiny change)
59003
59004         Update VMS specifics.
59005         * lib/getopt.c [VMS]: Remove include of unixlib.h.
59006
59007 2008-03-02  Jim Meyering  <meyering@redhat.com>
59008
59009         Remove the last dependency on the "free" module.
59010         * m4/readutmp.m4 (gl_READUTMP): Don't require gl_FUNC_FREE.
59011         Reported by Bob Proulx.
59012
59013         * lib/getdelim.c (getdelim): Don't leak memory upon failed realloc.
59014
59015         Remove useless "if" tests before free.  Deprecate "free" module.
59016         * doc/posix-functions/free.texi: Mention that this
59017         module is no longer useful.
59018         * modules/free (Notice): Say this module is obsolete.
59019         * modules/readutmp (Depends-on): Remove free.
59020         * lib/save-cwd.c (free_cwd): Remove useless "if" before free.
59021         * lib/putenv.c (putenv): Likewise.
59022         * lib/gc-gnulib.c (gc_cipher_close): Likewise.
59023         * lib/getaddrinfo.c (freeaddrinfo): Likewise.
59024         * tests/test-c-strcasestr.c (main): Likewise.
59025         * tests/test-c-strstr.c (main): Likewise.
59026         * tests/test-mbscasestr1.c (main): Likewise.
59027         * tests/test-mbscasestr2.c (main): Likewise.
59028         * tests/test-mbsstr1.c (main): Likewise.
59029         * tests/test-mbsstr2.c (main): Likewise.
59030         * tests/test-memmem.c (main): Likewise.
59031         * tests/test-strcasestr.c (main): Likewise.
59032         * tests/test-striconv.c (main): Likewise.
59033         * tests/test-striconveh.c (main): Likewise.
59034         * tests/test-striconveha.c (main): Likewise.
59035         * tests/test-strstr.c (main): Likewise.
59036
59037         * build-aux/git-version-gen: Adjust a comment and the Usage string.
59038
59039         bootstrap: sync from coreutils again
59040         * build-aux/bootstrap: Remove dangling m4/*.m4 symlinks.
59041
59042 2008-03-01  Jim Meyering  <meyering@redhat.com>
59043
59044         bootstrap: sync from coreutils
59045         * build-aux/bootstrap (update_po_files): Copy a .po file into place
59046         also when the target doesn't exist.
59047
59048 2008-03-01  Eric Blake  <ebb9@byu.net>
59049
59050         Fix bugs in last patch.
59051         * lib/memchr2.c (memchr2): Fix typo.
59052         * tests/test-memchr2.c: Test previous bug, and don't use GNU
59053         extension.
59054         Reported by Bruce Korb.
59055
59056         New module 'memchr2'.
59057         * modules/memchr2: New file.
59058         * modules/memchr2-tests: Likewise.
59059         * lib/memchr2.h: Likewise.
59060         * lib/memchr2.c: Likewise, based on memchr.c.
59061         * tests/test-memchr2.c: New test.
59062         * MODULES.html.sh (String handling): Add memchr2.
59063
59064 2008-02-29  Bruno Haible  <bruno@clisp.org>
59065
59066         * modules/freadseek-tests: New file.
59067         * tests/test-freadseek.sh: New file.
59068         * tests/test-freadseek.c: New file.
59069
59070         New module 'freadseek'.
59071         * modules/freadseek: New file.
59072         * lib/freadseek.h: New file.
59073         * lib/freadseek.c: New file.
59074         * MODULES.html.sh (File stream based Input/Output): Add freadseek.
59075
59076 2008-02-29  Sergey Poznyakoff  <gray@gnu.org.ua>
59077
59078         * users.txt: Add anubis, cpio, mailfromd, mailutils, radius,
59079         wydawca.
59080
59081         * m4/argp.m4 (gl_ARGP): Use AC_TRY_LINK to test if
59082         program_invocation_name and program_invocation_short_name are
59083         present.
59084
59085 2008-02-28  Bruno Haible  <bruno@clisp.org>
59086
59087         * tests/test-freadptr.c: Add a test for behaviour after ungetc.
59088         * tests/test-freadptr.sh: Also test non-seekable stdin.
59089
59090 2008-02-28  Sergey Poznyakoff  <gray@gnu.org.ua>
59091
59092         * build-aux/bootstrap (source_base, m4_base)
59093         (doc_base, tests_base): New variables.
59094         (gnulib_tool_options): Do not hardcode base directories, use
59095         the above variables instead.
59096
59097 2008-02-28  Atsushi SAKAI  <sakaia@jp.fujitsu.com>
59098
59099         * lib/xsize.h: Fix typo in comment: s/tupe/type/.
59100
59101 2008-02-28  Bruno Haible  <bruno@clisp.org>
59102
59103         * modules/freadptr-tests: New file.
59104         * tests/test-freadptr.sh: New file.
59105         * tests/test-freadptr.c: New file.
59106
59107         New module 'freadptr'.
59108         * modules/freadptr: New file.
59109         * lib/freadptr.h: New file.
59110         * lib/freadptr.c: New file.
59111         * MODULES.html.sh (File stream based Input/Output): Add freadptr.
59112
59113 2008-02-26  Karl Berry  <karl@freefriends.org>
59114
59115         Sync from Libtool:
59116         * libltdl/argz.c (argz_add, argz_count): New functions.
59117         * libltdl/argz.in.h: Declare them.
59118         Report by Juan Manuel Guerrero <juan.guerrero@gmx.de>.
59119
59120 2008-02-22  Bruno Haible  <bruno@clisp.org>
59121
59122         * m4/time_r.m4 (gl_TIME_R): Also check that localtime_r's return type
59123         is a pointer type.  Needed for HP-UX 10.
59124         * doc/posix-functions/localtime_r.texi: Mention HP-UX 10.
59125         * doc/posix-functions/gmtime_r.texi: Likewise.
59126         Reported by Peter O'Gorman <bug-gnulib@mlists.thewrittenword.com>.
59127
59128 2008-02-24  Bruno Haible  <bruno@clisp.org>
59129
59130         * modules/environ-tests: New file.
59131         * tests/test-environ.c: New file.
59132
59133         New module 'environ'.
59134         * modules/environ: New file.
59135         * lib/unistd.in.h (environ): New declaration.
59136         * m4/environ.m4: New file.
59137         (gt_CHECK_VAR_DECL): Moved here from m4/setenv.m4. Undefine gt_cv_var
59138         after use.
59139         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_ENVIRON and
59140         HAVE_DECL_ENVIRON.
59141         * modules/unistd (Makefile.am): Substitute also GNULIB_ENVIRON and
59142         HAVE_DECL_ENVIRON.
59143         * doc/posix-functions/environ.texi: Mention module 'environ'. Remove
59144         wrong claim that 'environ' is missing on some systems.
59145         * modules/execute (Depends-on): Add environ.
59146         * lib/execute.c (environ): Remove fallback declaration.
59147         * modules/pipe (Depends-on): Add environ.
59148         * lib/pipe.c (environ): Remove fallback declaration.
59149         * modules/setenv (Depends-on): Add environ.
59150         * lib/setenv.c (environ): Remove fallback declaration.
59151         * modules/unsetenv (Depends-on): Add environ.
59152         * lib/unsetenv.c (environ): Remove fallback declaration.
59153         * m4/setenv.m4 (gt_CHECK_VAR_DECL): Remove macro. Moved to
59154         m4/environ.m4.
59155         (gl_PREREQ_SETENV): Require gl_ENVIRON instead of testing for environ.
59156         (gl_PREREQ_UNSETENV): Likewise.
59157
59158 2008-02-24  Bruno Haible  <bruno@clisp.org>
59159
59160         * doc/posix-functions/environ.texi: Document the MacOS X problem.
59161
59162 2008-02-20  Bob Proulx  <bob@proulx.com>
59163
59164         Enable use of older two part flavor 'git describe'.
59165         * build-aux/git-version-gen: If using the older two part flavor of
59166         git version then recreate the third part now present in the
59167         newer three part flavor of git describe.
59168
59169 2008-02-20  Martin Buchholz  <martin@xemacs.org>  (tiny change)
59170
59171         * lib/fts.c (fts_build): Typo correction to comment.
59172
59173 2008-02-17  Bruno Haible  <bruno@clisp.org>
59174
59175         * lib/git-merge-changelog.c (main) [split_merged_entry]: Avoid
59176         generating no-op conflicts.
59177
59178 2008-02-17  Bruno Haible  <bruno@clisp.org>
59179
59180         Speed up by 10%.
59181         * lib/git-merge-changelog.c (main): Use the iterator to iterate through
59182         result_entries, rather than an index-based loop.
59183
59184 2008-02-17  Bruno Haible  <bruno@clisp.org>
59185
59186         Speed up by 25%.
59187         * lib/git-merge-changelog.c (struct entry): New fields 'hashcode',
59188         'hashcode_cached'.
59189         (entry_create): New function.
59190         (entry_hashcode): Use the cached hashcode if possible.
59191         (read_changelog_file, try_split_merged_entry): Use entry_create.
59192
59193 2008-02-17  Bruno Haible  <bruno@clisp.org>
59194
59195         Speed up from O(n^2) to O(n) for long ChangeLog files.
59196         * lib/git-merge-changelog.c: Include gl_rbtreehash_list.h.
59197         (read_changelog_file): Change implementation of entries_reversed list
59198         to rbtreehash.
59199         * modules/git-merge-changelog (Depends-on): Add rbtreehash-list.
59200
59201 2008-02-17  Bruno Haible  <bruno@clisp.org>
59202
59203         New option --split-merged-entry.
59204         * lib/git-merge-changelog.c (FSTRCMP_STRICTER_THRESHOLD): New macro.
59205         (find_paragraph_end, try_split_merged_entry): New functions.
59206         (long_options): Add option --split-merged-entry.
59207         (usage): Document option --split-merged-entry.
59208         (main): Implement option --split-merged-entry.
59209         Reported by Eric Blake.
59210
59211 2008-02-17  Bruno Haible  <bruno@clisp.org>
59212
59213         * lib/git-merge-changelog.c: Include c-strstr.h.
59214         (main): Support the "git pull --rebase" situation.
59215         * modules/git-merge-changelog (Depends-on): Add c-strstr.
59216         Reported by Eric Blake.
59217
59218 2008-02-16  Eric Blake  <ebb9@byu.net>
59219
59220         Avoid doubling \ in common case of "c-maybe" quoting style.
59221         * lib/quotearg.c (quotearg_buffer_restyled): Don't escape \ when
59222         eliding outer quotes.
59223         * lib/quotearg.h: Document this.
59224         * tests/test-quotearg.c (result_strings, inputs, results_g)
59225         (flag_results, locale_results): Test it by adding a new string to
59226         each test group.
59227         (compare_strings): Test new string.
59228
59229 2008-02-13  Eric Blake  <ebb9@byu.net>
59230
59231         Avoid trigraph quoting in default output.
59232         * lib/quotearg.h (enum quoting_flags): Add QA_SPLIT_TRIGRAPHS.
59233         * lib/quotearg.c (quotearg_buffer_restyled): Don't quote trigraphs
59234         unless explicitly requested.
59235         * tests/test-quotearg.c (flag_results, main): Add additional tests.
59236
59237 2008-02-13  Lasse Collin  <lasse.collin@tukaani.org>
59238
59239         Don't rely on signed integer overflowing to negative value.
59240         * lib/getugroups.c (getugroups): Include <limits.h>.
59241         Instead, compare against INT_MAX, and increment only if the test passes.
59242
59243 2008-02-13  Jim Meyering  <meyering@redhat.com>
59244         and Eric Blake  <ebb9@byu.net>
59245
59246         Avoid shadowing warning and compile errors on Linux.
59247         * tests/test-quotearg.c [ENABLE_NLS]: Disable <libintl.h>
59248         forwarding macros on Linux.
59249         (dcgettext): Define a stub, for Linux.
59250         (results_g, main): Avoid warnings.
59251
59252 2008-02-12  Eric Blake  <ebb9@byu.net>
59253
59254         Silence warning in last patch.
59255         * lib/quotearg.c (quotearg_buffer_restyled): Add missing const.
59256
59257         Quotearg part 4: add tests, fix c-maybe colon quoting.
59258         * lib/quotearg.h: Improve documentation.
59259         * lib/quotearg.c (quotearg_buffer_restyled): Don't add extra
59260         escapes when adding outer quotes.  When quoting trigraphs, use
59261         valid C notation.  When quoting NUL, omit extra characters if next
59262         character is not digit.  Alter prototype.
59263         (quotearg_buffer, quotearg_alloc_mem, quotearg_n_options): Adjust
59264         callers.
59265         * modules/quotearg-tests: New module.
59266         * tests/test-quotearg.c: New test.
59267
59268 2008-02-07  Eric Blake  <ebb9@byu.net>
59269
59270         Quotearg part 3: add flag to control outer quote elision.
59271         * lib/quotearg.h (c_maybe_quoting_style): New style.
59272         (enum quoting_flags): Better documentation of flags.
59273         * lib/quotearg.c (quoting_style_args, quoting_style_vals): Add
59274         c-maybe style.
59275         (quotearg_buffer_restyled): Handle new flag to elide outer
59276         quotes.
59277
59278         Quotearg part 2: add flag that can control NUL elision.
59279         * lib/quotearg.h (set_quoting_flags): New prototype.
59280         * lib/quotearg.c (struct quoting_options): Add flag field.
59281         (set_quoting_flags): New function.
59282         (quotearg_buffer_restyled): Add flags parameter.
59283         (quotearg_alloc_mem): Set the flag if length cannot be returned.
59284         (quotearg_n_options): Set the flag, since length cannot be
59285         returned.
59286         (quoting_options_from_style): Default flags correctly.
59287
59288         Quotearg part 1: more wrappers, restore quotearg_char state.
59289         * lib/quotearg.h (quotearg_alloc_mem, quotearg_n_mem)
59290         (quotearg_mem, quotearg_style_mem, quotearg_char_mem)
59291         (quotearg_colon_mem): New wrappers.
59292         * lib/quotearg.c (quotearg_alloc, quotearg_char): Rewrite...
59293         (quotearg_alloc_mem, quotearg_char_mem): ...in terms of these new
59294         functions.
59295         (quotearg_n_mem, quotearg_mem, quotearg_style_mem)
59296         (quotearg_colon_mem): New functions.
59297
59298 2008-02-11  Bruno Haible  <bruno@clisp.org>
59299
59300         * modules/git-merge-changelog (Makefile.am): Don't use -L and -l for a
59301         library in the current directory: it does not work with parallel make.
59302         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
59303
59304 2008-02-11  Bruno Haible  <bruno@clisp.org>
59305
59306         * .gitattributes: New file.
59307
59308 2008-02-11  Jim Meyering  <meyering@redhat.com>
59309
59310         useless-if-before-free: Fix reversed exit values.
59311         * build-aux/useless-if-before-free: Use correct values
59312         for EXIT_MATCH and EXIT_NO_MATCH.
59313
59314         * build-aux/useless-if-before-free: Close stdout carefully.
59315
59316 2008-02-10  Bruno Haible  <bruno@clisp.org>
59317
59318         New module 'git-merge-changelog'.
59319         * modules/git-merge-changelog: New file.
59320         * lib/git-merge-changelog.c: New file.
59321
59322 2008-02-10  Jim Meyering  <meyering@redhat.com>
59323
59324         useless-if-before-free: New option: --list (-l).
59325
59326         useless-if-before-free: Don't exit immediately upon open failure.
59327         * build-aux/useless-if-before-free: Exit 2 for errors.
59328         Upon failure to open a file, don't exit immediately.
59329         Rather, just warn and continue with any remaining files.
59330
59331 2008-02-10  Bruno Haible  <bruno@clisp.org>
59332
59333         New abstract list operation 'node_set_value'.
59334         * lib/gl_list.h (gl_list_node_set_value): New function.
59335         (struct gl_list_implementation): New field node_set_value.
59336         * lib/gl_list.c (gl_list_node_set_value): New function.
59337         * lib/gl_array_list.c (gl_array_node_set_value): New function.
59338         (gl_array_list_implementation): Update.
59339         * lib/gl_carray_list.c (gl_carray_node_set_value): New function.
59340         (gl_carray_list_implementation): Update.
59341         * lib/gl_anylinked_list2.h (gl_linked_node_set_value): New function.
59342         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
59343         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
59344         * lib/gl_anytree_list2.h (gl_tree_node_set_value): New function.
59345         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
59346         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
59347         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
59348         Update.
59349         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
59350         * lib/gl_sublist.c (gl_sublist_node_set_value): New function.
59351         (gl_sublist_list_implementation): Update.
59352
59353 2008-02-10  Bruno Haible  <bruno@clisp.org>
59354
59355         * lib/diffseq.h: Write "ELEMENT const" instead of "const ELEMENT".
59356         Needed when ELEMENT is #defined to 'some_type *'.
59357
59358 2008-02-10  Jim Meyering  <meyering@redhat.com>
59359
59360         New script and module: useless-if-before-free
59361         * MODULES.html.sh (maint+release support): Add useless-if-before-free.
59362         * build-aux/useless-if-before-free: New file.
59363         * modules/useless-if-before-free: New file.
59364
59365         * build-aux/gitlog-to-changelog: Use committer date, not author date.
59366
59367         xstrtol_error: Fix typo.
59368         * lib/xstrtol-error.c (xstrtol_error): The parameter was unused:
59369         s/exit_failure/exit_status/.
59370
59371 2008-02-09  Jim Meyering  <meyering@redhat.com>
59372
59373         New script and module: gitlog-to-changelog
59374         * MODULES.html.sh (maint+release support): Add gitlog-to-changelog.
59375         * modules/gitlog-to-changelog: New file.
59376         * build-aux/gitlog-to-changelog: New file.
59377
59378 2008-02-08  Jim Meyering  <meyering@redhat.com>
59379
59380         Avoid two "parameter unused" warnings.
59381         * lib/stat-time.h (get_stat_birthtime_ns, get_stat_birthtime):
59382         Mark "st" as used.
59383
59384         Use "git COMMAND", not "git-COMMAND".
59385         * build-aux/bootstrap (version_controlled_file): s/git-rm/git-rm/.
59386         * build-aux/announce-gen (get_tool_versions): Correct a diagnostic.
59387         * build-aux/git-version-gen: Use "git status", not "git-status".
59388
59389 2008-02-07  Bruno Haible  <bruno@clisp.org>
59390
59391         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on native Woe32 systems.
59392         Avoids a crash on Windows Vista.
59393         Reported by Adam Strzelecki <ono@java.pl> via
59394         Simon Josefsson <simon@josefsson.org>.
59395
59396 2008-02-06  Bruno Haible  <bruno@clisp.org>
59397
59398         Fix *printf behaviour regarding the left-adjust flag on HP-UX 10.20.
59399         * m4/printf.m4 (gl_PRINTF_FLAG_LEFTADJUST): New macro.
59400         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_FLAG_LEFTADJUST.
59401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST): New macro.
59402         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
59403         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
59404         gl_PRINTF_FLAG_LEFTADJUST and test its result. Invoke
59405         gl_PREREQ_VASNPRINTF_FLAG_LEFTADJUST.
59406         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
59407         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
59408         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
59409         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
59410         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
59411         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
59412         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
59413         * tests/test-vasnprintf-posix.c (test_function): Add testcases for the
59414         left-adjust flag.
59415         * tests/test-snprintf-posix.h (test_function): Likewise.
59416         * tests/test-sprintf-posix.h (test_function): Likewise.
59417         * tests/test-vasprintf-posix.c (test_function): Likewise.
59418         * doc/posix-functions/fprintf.texi: Update.
59419         * doc/posix-functions/printf.texi: Update.
59420         * doc/posix-functions/snprintf.texi: Update.
59421         * doc/posix-functions/sprintf.texi: Update.
59422         * doc/posix-functions/vfprintf.texi: Update.
59423         * doc/posix-functions/vprintf.texi: Update.
59424         * doc/posix-functions/vsnprintf.texi: Update.
59425         * doc/posix-functions/vsprintf.texi: Update.
59426         Reported by Peter Fales <psfales@alcatel-lucent.com>.
59427
59428 2008-02-06  Bruno Haible  <bruno@clisp.org>
59429
59430         Fix bug introduced on 2008-01-26.
59431         * lib/isnan.c (FUNC): Set to rpl_isnand, not rpl_isnan.
59432
59433 2008-02-06  Bruno Haible  <bruno@clisp.org>
59434
59435         Fix bug introduced on 2007-06-10.
59436         * lib/vasnprintf.c (VASNPRINTF): Perform zero-padding also if
59437         !NEED_PRINTF_FLAG_ZERO.
59438
59439 2008-02-05  Peter O'Gorman <pogma@thewrittenword.com>
59440
59441         getloadavg: use libperfstat on AIX5
59442         * lib/getloadavg.c, m4/getloadavg.m4 [aix]: Use libperfstat
59443
59444 2008-02-03  Bruno Haible  <bruno@clisp.org>
59445
59446         * lib/diffseq.h: Add comments about required #includes.
59447         Reported by Michael Biggs <gnulib@doubleplum.net>.
59448
59449 2008-02-01  Bruno Haible  <bruno@clisp.org>
59450
59451         * users.txt: Add gnuit.
59452
59453 2008-01-31  Bruno Haible  <bruno@clisp.org>
59454
59455         * lib/md4.c (set_uint32): Mark as inline.
59456         * lib/md5.c (set_uint32): Likewise.
59457         * lib/sha1.c (set_uint32): Likewise.
59458         * m4/md4.m4 (gl_MD4): Require AC_C_INLINE.
59459         * m4/md5.m4 (gl_MD5): Likewise.
59460         * m4/sha1.m4 (gl_SHA1): Likewise.
59461
59462 2008-01-31  Jim Meyering  <meyering@redhat.com>
59463
59464         Use "sizeof VAR", rather than a literal "4".
59465         * lib/md5.c (md5_read_ctx): Use sizeof ctx->A, not 4.
59466         * lib/md4.c (md4_read_ctx): Likewise.
59467         * lib/sha1.c (sha1_read_ctx): Likewise.
59468
59469 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59470
59471         * tests/test-sha1.c: New file, based on test-md5.c.
59472
59473         * modules/crypto/sha1-tests: New file.
59474
59475 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59476
59477         * lib/sha1.h (SHA1_DIGEST_SIZE): Define.
59478
59479 2008-01-31  Jim Meyering  <meyering@redhat.com>
59480
59481         Prefer "sizeof v" over the equivalent "4".
59482         * lib/md4.c (set_uint32): Use "sizeof v" as memcpy length, not 4.
59483         * lib/md5.c (set_uint32): Likewise.
59484         * lib/sha1.c (set_uint32): Likewise.
59485
59486 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59487
59488         * lib/sha1.c (set_uint32): Mark function as static.
59489
59490 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59491
59492         md2: clarify comments to say that alignment is not required.
59493         * lib/md2.h: Remove warning about alignment in comment.
59494         * lib/md2.c (md2_read_ctx, md2_finish_ctx): Doc fix, alignment has
59495         never been required.
59496
59497 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59498
59499         md4: adapt alignment constraint fix from sha1.
59500         * lib/md4.c (set_uint32): New function, from sha1.c
59501         (md4_read_ctx): Use it.
59502         (md4_finish_ctx): Doc fix.
59503         * lib/md4.h: Doc fix.
59504
59505 2008-01-31  Simon Josefsson  <simon@josefsson.org>
59506
59507         md5: adapt alignment constraint fix from sha1.
59508         * lib/md5.c (set_uint32): New function, from sha1.c
59509         (md5_read_ctx): Use it.
59510         (md5_finish_ctx): Doc fix.
59511         * lib/md5.h: Doc fix.
59512
59513 2008-01-30  Peter Palfrader  <weasel@debian.org>
59514
59515         sha1: remove the result buffer alignment constraint
59516         * lib/sha1.c (set_uint32): New function.
59517         (sha1_read_ctx): Rewrite to remove the result buffer alignment
59518         constraint.
59519         (sha1_finish_ctx): Remove comment warning about alignment constraint.
59520         * lib/sha1.h: Likewise.
59521
59522 2008-01-30  Andreas Schwab  <schwab@suse.de>
59523             Bruno Haible  <bruno@clisp.org>
59524
59525         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Include <float.h> and ensure a
59526         correct definition of LDBL_MIN_EXP.
59527
59528 2008-01-30  Karl Berry  <karl@gnu.org>
59529
59530         * config/srclist-update: try to preserve x bit on updates.
59531         * config/srclistvars.sh: update for karl.
59532
59533 2008-01-29  Jim Meyering  <meyering@redhat.com>
59534
59535         vasnprintf.c: Avoid warning about unused label
59536         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Guard the
59537         "overflow" label definition and associated code with the
59538         same cpp condition that guards the sole use of that label.
59539
59540 2008-01-26  Bruno Haible  <bruno@clisp.org>
59541
59542         * m4/isnanl.m4 (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM,
59543         gl_FUNC_ISNANL_WORKS): Test the GCC >= 4.0 built-in.
59544         * lib/isnanl.h (isnanl): Use the GCC >= 4.0 built-in.
59545         * lib/isnanl-nolibm.h (isnanl): Likewise.
59546         Reported by Paul Eggert <eggert@cs.ucla.edu>.
59547
59548 2008-01-26  Bruno Haible  <bruno@clisp.org>
59549
59550         * m4/isnand.m4 (gl_FUNC_ISNAND_NO_LIBM): Test the GCC >= 4.0 built-in.
59551         * lib/isnand.h (isnand): Use the GCC >= 4.0 built-in.
59552
59553 2008-01-26  Bruno Haible  <bruno@clisp.org>
59554
59555         * m4/isnanf.m4 (gl_HAVE_ISNANF_NO_LIBM, gl_ISNANF_WORKS): Test the
59556         GCC >= 4.0 built-in.
59557         * lib/isnanf.h (isnanf): Use the GCC >= 4.0 built-in.
59558
59559 2008-01-26  Bruno Haible  <bruno@clisp.org>
59560
59561         Rename isnan, applicable to 'double' only, to isnand.
59562         * modules/isnand-nolibm: Renamed from modules/isnan-nolibm.
59563         (Files): Add lib/isnand.h, lib/isnand.c. Remove lib/isnan.h.
59564         (configure.ac): Update.
59565         (Include): Replace "isnan.h" with "isnand.h".
59566         * m4/isnand.m4: Renamed from m4/isnan.m4.
59567         (gl_FUNC_ISNAND_NO_LIBM): Renamed from gl_FUNC_ISNAN_NO_LIBM. Set
59568         HAVE_ISNAND_IN_LIBC instead of HAVE_ISNAN_IN_LIBC. Build isnand.c
59569         instead of isnan.c.
59570         * lib/isnand.h: Renamed from lib/isnan.h. Test HAVE_ISNAND_IN_LIBC
59571         instead of HAVE_ISNAN_IN_LIBC.
59572         (isnand): Renamed from isnan.
59573         * lib/isnand.c: New file.
59574         * modules/isnand-nolibm-tests: Renamed from modules/isnan-nolibm-tests.
59575         (Files): Add tests/test-isnand.c. Remove tests/test-isnan.c.
59576         (Makefile.am): Update.
59577         * tests/test-isnand.c: Renamed from tests/test-isnan.c.
59578         Include isnand.h instead of isnan.h.
59579         (main): Test isnand instead of isnan.
59580         * modules/fprintf-posix (Depends-on): Add isnand-nolibm, remove
59581         isnan-nolibm.
59582         * modules/frexp (Depends-on): Likewise.
59583         * modules/frexp-tests (Depends-on): Likewise.
59584         * modules/frexp-nolibm (Depends-on): Likewise.
59585         * modules/frexp-nolibm-tests (Depends-on): Likewise.
59586         * modules/isfinite (Depends-on): Likewise.
59587         * modules/round-tests (Depends-on): Likewise.
59588         * modules/signbit (Depends-on): Likewise.
59589         * modules/signbit-tests (Depends-on): Likewise.
59590         * modules/snprintf-posix (Depends-on): Likewise.
59591         * modules/sprintf-posix (Depends-on): Likewise.
59592         * modules/trunc-tests (Depends-on): Likewise.
59593         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
59594         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
59595         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
59596         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
59597         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
59598         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
59599         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
59600         * modules/vasnprintf-posix (Depends-on): Likewise.
59601         * modules/vasprintf-posix (Depends-on): Likewise.
59602         * modules/vfprintf-posix (Depends-on): Likewise.
59603         * modules/vsnprintf-posix (Depends-on): Likewise.
59604         * modules/vsprintf-posix (Depends-on): Likewise.
59605         * lib/frexp.c: Include isnand.h instead of isnan.h.
59606         (ISNAN): Set to isnand instead of isnan.
59607         * lib/isfinite.c: Include isnand.h instead of isnan.h.
59608         (gl_isfinited): Use isnand instead of isnan.
59609         * lib/signbitd.c: Include isnand.h instead of isnan.h.
59610         (gl_signbitd): Use isnand instead of isnan.
59611         * lib/vasnprintf.c: Include isnand.h instead of isnan.h.
59612         (is_infinite_or_zero, VASNPRINTF): Use isnand instead of isnan.
59613         * tests/test-frexp.c: Include isnand.h instead of isnan.h.
59614         (main): Use isnand instead of isnan.
59615         * tests/test-round1.c: Include isnand.h.
59616         (main): Use isnand instead of isnan.
59617         * tests/test-round2.c: Include isnand.h instead of isnan.h.
59618         (ISNAN): Set to isnand instead of isnan.
59619         * tests/test-trunc1.c: Include isnand.h.
59620         (main): Use isnand instead of isnan.
59621         * tests/test-trunc2.c: Include isnand.h instead of isnan.h.
59622         (equal): Use isnand instead of isnan.
59623         * MODULES.html.sh (Mathematics <math.h>): Replace isnan-nolibm with
59624         isnand-nolibm.
59625         * NEWS: Mention the change.
59626
59627 2008-01-25  Paul Eggert  <eggert@cs.ucla.edu>
59628             Bruno Haible  <bruno@clisp.org>
59629
59630         * m4/signbit.m4 (gl_SIGNBIT): Require a macro definition. Test whether
59631         the GCC builtins for signbits are present and set
59632         REPLACE_SIGNBIT_USING_GCC if so.
59633         * lib/math.in.h (signbit): Define using GCC builtins if
59634         REPLACE_SIGNBIT_USING_GCC is set.
59635         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize
59636         REPLACE_SIGNBIT_USING_GCC.
59637         * modules/math (Makefile.am): Substitute REPLACE_SIGNBIT_USING_GCC.
59638
59639 2008-01-25  Jim Meyering  <meyering@redhat.com>
59640
59641         Prefer <config.h> over "config.h".  See autoconf doc for explanation.
59642         * lib/poll.c: Include <config.h>, not "config.h".
59643         * tests/test-getaddrinfo.c: Likewise.
59644
59645 2008-01-25  Simon Josefsson  <simon@josefsson.org>
59646
59647         * modules/sockets-tests: New file.
59648
59649 2008-01-24  Simon Josefsson  <simon@josefsson.org>
59650
59651         * modules/sockets: New module, can be used to call WSA_Startup and
59652         WSA_Cleanup when needed.
59653
59654         * lib/sockets.h, lib/sockets.c: New files.
59655
59656         * m4/sockets.m4: New file.
59657
59658         * tests/test-sockets.c: New file.
59659
59660 2008-01-19  Bruno Haible  <bruno@clisp.org>
59661
59662         * doc/posix-headers: Renamed from doc/headers.
59663         * doc/posix-functions: Renamed from doc/functions.
59664         * doc/gnulib.texi: Update.
59665
59666 2008-01-19  Bruno Haible  <bruno@clisp.org>
59667
59668         * doc/glibc-functions/strcasestr.texi: Include contents of
59669         doc/functions/strcasestr.texi, fixing the list of platforms.
59670         * doc/functions/strcasestr.texi: Remove file.
59671
59672 2008-01-19  Bruno Haible  <bruno@clisp.org>
59673
59674         * doc/glibc-functions/memmem.texi: Include contents of
59675         doc/functions/memmem.texi.
59676         * doc/functions/memmem.texi: Remove file.
59677
59678 2008-01-18  Bruno Haible  <bruno@clisp.org>
59679
59680         * doc/glibc-functions/*.texi: New files.
59681         * doc/gnulib.texi (Glibc Function Substitutes): Completely rewritten
59682         to use the new files.
59683
59684 2008-01-17  Bruno Haible  <bruno@clisp.org>
59685
59686         * tests/test-gethostname.c (main): Fix printf statement.
59687
59688 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59689
59690         * modules/gethostname-tests: New file.
59691
59692         * tests/test-gethostname.c: New file.
59693
59694 2008-01-17  Simon Josefsson  <simon@josefsson.org>
59695
59696         * lib/gethostname.c: Include string.h unconditionally, strncpy is
59697         used by the UNAME case.  Reported by Bruno Haible
59698         <bruno@clisp.org>.
59699
59700 2008-01-17  Eric Blake  <ebb9@byu.net>
59701
59702         Convert c-strcasestr to be more efficient.
59703         * modules/c-strcasestr (Files): Use Two-Way, not KMP.
59704         (Depends-on): Add c-strcase, remove malloca, strnlen.
59705         * tests/test-c-strcasestr.c (main): Enhance test.
59706         * lib/c-strcasestr.c (c_strcasestr): Rewrite to new algorithm.
59707
59708 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
59709
59710         * build-aux/bootstrap (MSGID_BUGS_ADDRESS): New overridable variable.
59711         Use it in creating po/Makevars.
59712
59713 2008-01-15  Simon Josefsson  <simon@josefsson.org>
59714
59715         * lib/gc-libgcrypt.c (gc_init): Disable secure memory by default.
59716         Applications that requires it should initialize libgcrypt
59717         manually.
59718
59719 2008-01-16  Simon Josefsson  <simon@josefsson.org>
59720
59721         * lib/gethostname.c [!HAVE_UNAME]: Need string.h for strcpy.
59722
59723 2008-01-15  Paul Eggert  <eggert@cs.ucla.edu>
59724
59725         Fix problem with getdate on mingw32 reported by Simon Josefsson
59726         in <http://lists.gnu.org/archive/html/bug-gnulib/2008-01/msg00192.html>.
59727         * lib/getdate.y (get_date): Check "HAVE_DECL_TZNAME", not "defined
59728         tzname", when deciding whether to declare tzname.
59729         * lib/strftime.c (tzname): Likewise.
59730
59731 2008-01-15  Bruno Haible  <bruno@clisp.org>
59732
59733         Work around a MacOS X 10.5 bug in frexpl().
59734         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Also check denormalized numbers.
59735         * doc/functions/frexpl.texi: Document the bug.
59736         Reported by Elias Pipping <pipping@gentoo.org>.
59737
59738 2008-01-14  Eric Blake  <ebb9@byu.net>
59739
59740         Touch up previous patch.
59741         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR_SIMPLE): Fix typo.
59742         * doc/functions/strcasestr.texi (strcasestr): Document OpenBSD bug.
59743
59744         Convert strcasestr module to use Two-Way algorithm.
59745         * modules/strcasestr-simple: New module, based on the old
59746         strcasestr, but with Two-Way rather than KMP.
59747         * modules/strcasestr (Depends-on): Change to strcasestr-simple.
59748         * lib/string.in.h (rpl_strcasestr): Declare.
59749         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Check for linear
59750         performance.
59751         * lib/strcasestr.c (strcasestr): Simplify, and avoid malloc.
59752         * modules/string (Makefile.am): Support strcasestr.
59753         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Likewise.
59754         * modules/strcasestr-tests (Depends-on): Check for alarm.
59755         * tests/test-strcasestr.c: Augment test.
59756         * lib/str-two-way.h: Clean up stray macro.
59757         * NEWS: Document new module.
59758         * MODULES.html.sh (string handling): Likewise.
59759         * doc/functions/strcasestr.texi: New file.
59760         * doc/gnulib.texi (Function Substitutes): New node.  Move memmem
59761         here, since it is not a POSIX function.
59762
59763 2008-01-14  Colin Watson  <cjwatson@debian.org>
59764             Bruno Haible  <bruno@clisp.org>
59765
59766         * m4/strsignal.m4 (gl_FUNC_STRSIGNAL): Also check whether strsignal
59767         works fine; if not, set REPLACE_STRSIGNAL.
59768         (gl_PREREQ_STRSIGNAL): Require AC_DECL_SYS_SIGLIST.
59769         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59770         REPLACE_STRSIGNAL.
59771         * lib/string.in.h (strsignal): Consider REPLACE_STRSIGNAL.
59772         * modules/string (Makefile.am): Substitute REPLACE_STRSIGNAL.
59773         * tests/test-strsignal.c (main): Check out-of-range signal numbers.
59774
59775 2008-01-14  Bruno Haible  <bruno@clisp.org>
59776
59777         * modules/strsignal (Include): Change to <string.h>.
59778
59779 2008-01-14  Colin Watson  <cjwatson@debian.org>
59780
59781         * modules/argp (Notice): Add a notice recommending to change
59782         XGETTEXT_OPTIONS.
59783         (configure.ac): Invoke AM_XGETTEXT_OPTION if it exists.
59784
59785 2008-01-13  Colin Watson  <cjwatson@debian.org>
59786
59787         * modules/strsignal-tests: New file.
59788         * tests/test-strsignal.c: New file.
59789
59790         * lib/strsignal.c: New file, from glibc with modifications.
59791         * lib/siglist.h: New file, from glibc with modifications.
59792         * lib/string.in.h (strsignal): New declaration.
59793         * m4/strsignal.m4: New file.
59794         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
59795         GNULIB_STRSIGNAL and HAVE_DECL_STRSIGNAL.
59796         * modules/strsignal: New file.
59797         * modules/string (Makefile.am): Substitute GNULIB_STRSIGNAL and
59798         HAVE_DECL_STRSIGNAL.
59799
59800 2008-01-13  Bruno Haible  <bruno@clisp.org>
59801
59802         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check that the
59803         locale encoding is not ASCII. Needed for OpenBSD 4.0.
59804         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
59805         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
59806
59807 2008-01-13  Bruno Haible  <bruno@clisp.org>
59808
59809         * lib/argp-fmtstream.h (__attribute__): Don't redefine if
59810         __STRICT_ANSI__ is set: it's not needed by any version of gcc.
59811         * lib/argp.h (__attribute__): Likewise.
59812         * lib/c-stack.c (__attribute__): Likewise.
59813         * lib/error.h (__attribute__): Likewise.
59814         * lib/fts.c (__attribute__): Likewise.
59815         * lib/openat.h (__attribute__): Likewise.
59816         * lib/stdio.in.h (__attribute__): Likewise.
59817         * lib/string.in.h (__attribute__): Likewise.
59818         * lib/utimens.c (__attribute__): Likewise.
59819         * lib/vasnprintf.h (__attribute__): Likewise.
59820         * lib/xalloc.h (__attribute__): Likewise.
59821         * lib/xprintf.h (__attribute__): Likewise.
59822         * lib/xstrtol.h (__attribute__): Likewise.
59823         * lib/xvasprintf.h (__attribute__): Likewise.
59824
59825 2008-01-12  Bruno Haible  <bruno@clisp.org>
59826
59827         * doc/gnulib.texi (Glibc Header File Substitutes): New chapter.
59828         * doc/glibc-headers/a.out.texi: New file.
59829         * doc/glibc-headers/aliases.texi: New file.
59830         * doc/glibc-headers/alloca.texi: New file.
59831         * doc/glibc-headers/ar.texi: New file.
59832         * doc/glibc-headers/argp.texi: New file.
59833         * doc/glibc-headers/argz.texi: New file.
59834         * doc/glibc-headers/byteswap.texi: New file.
59835         * doc/glibc-headers/crypt.texi: New file.
59836         * doc/glibc-headers/endian.texi: New file.
59837         * doc/glibc-headers/envz.texi: New file.
59838         * doc/glibc-headers/err.texi: New file.
59839         * doc/glibc-headers/error.texi: New file.
59840         * doc/glibc-headers/execinfo.texi: New file.
59841         * doc/glibc-headers/fpu_control.texi: New file.
59842         * doc/glibc-headers/fstab.texi: New file.
59843         * doc/glibc-headers/fts.texi: New file.
59844         * doc/glibc-headers/getopt.texi: New file.
59845         * doc/glibc-headers/ieee754.texi: New file.
59846         * doc/glibc-headers/ifaddrs.texi: New file.
59847         * doc/glibc-headers/libintl.texi: New file.
59848         * doc/glibc-headers/mcheck.texi: New file.
59849         * doc/glibc-headers/mntent.texi: New file.
59850         * doc/glibc-headers/obstack.texi: New file.
59851         * doc/glibc-headers/paths.texi: New file.
59852         * doc/glibc-headers/printf.texi: New file.
59853         * doc/glibc-headers/pty.texi: New file.
59854         * doc/glibc-headers/resolv.texi: New file.
59855         * doc/glibc-headers/shadow.texi: New file.
59856         * doc/glibc-headers/sysexits.texi: New file.
59857         * doc/glibc-headers/ttyent.texi: New file.
59858
59859 2008-01-12  Jim Meyering  <meyering@redhat.com>
59860
59861         announce-gen: emit Gnulib's git-based version string.
59862         * build-aux/announce-gen: Remove option: --gnulib-snapshot-time-stamp=S.
59863         New option --gnulib-version=V, where V is expected to be
59864         the output of running git describe in the gnulib directory.
59865         (get_tool_versions): Request feedback on xdelta.  I suspect it's
59866         not useful, and plan to stop publishing an xdelta file with each
59867         coreutils release.
59868
59869         * build-aux/announce-gen: Also check for lzma-compressed files.
59870
59871 2008-01-11  Bruno Haible  <bruno@clisp.org>
59872
59873         * tests/test-memmem.c (main): Increase maximum allowed time.
59874         * tests/test-strstr.c (main): Likewise.
59875
59876 2008-01-11  Bruno Haible  <bruno@clisp.org>
59877
59878         * doc/functions/memmem.texi: Add more precisions about platforms.
59879         * doc/functions/strstr.texi: Likewise.
59880
59881 2008-01-10  Eric Blake  <ebb9@byu.net>
59882
59883         * m4/strstr.m4: Delete cruft from copy-n-paste.
59884         Reported by Bruno Haible.
59885
59886 2008-01-10  Bruno Haible  <bruno@clisp.org>
59887
59888         Make c-strstr rely on strstr.
59889         * lib/c-strstr.c: Don't include str-kmp.h.
59890         (c_strstr): Define in terms of strstr.
59891         * modules/c-strstr (Files): Remove lib/str-kmp.h.
59892         (Depends-on): Remove stdbool, malloca, strnlen. Add strstr.
59893
59894 2008-01-10  Bruno Haible  <bruno@clisp.org>
59895
59896         * doc/gnulib.texi (String Functions in C Locale): New section.
59897         * doc/c-ctype.texi: New file.
59898         * doc/c-strcase.texi: New file.
59899         * doc/c-strcaseeq.texi: New file.
59900         * doc/c-strcasestr.texi: New file.
59901         * doc/c-strstr.texi: New file.
59902         * doc/c-strtod.texi: New file.
59903         * doc/c-strtold.texi: New file.
59904
59905 2008-01-10  Eric Blake  <ebb9@byu.net>
59906
59907         * lib/relocatable.h: Fix a comment.
59908
59909 2008-01-10  Eric Blake  <ebb9@byu.net>
59910
59911         Share two-way algorithm.
59912         * lib/str-two-way.h: New file, merged from...
59913         * lib/memmem.c: ...here...
59914         * lib/strstr.c: ...and here.
59915         * modules/memmem (Files): Use it.
59916         * modules/strstr (Files): Likewise.
59917
59918         Avoid quadratic strstr implementations.
59919         * lib/strstr.c: New file.
59920         * m4/strstr.m4: Likewise.
59921         * modules/strstr: Likewise.
59922         * modules/strstr-tests: Likewise.
59923         * tests/test-strstr.c: Likewise.
59924         * lib/string.in.h (rpl_strstr): Declare.
59925         (memmem) [GNULIB_POSIXCHECK]: Document speed issue.
59926         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Support strstr.
59927         * modules/string (Makefile.am): Likewise.
59928         * MODULES.html.sh (string handling): Mention new module.
59929         * doc/functions/strstr.texi (strstr): Document the bug.
59930
59931 2008-01-10  Bruno Haible  <bruno@clisp.org>
59932
59933         * lib/relocatable.h (relocate): State whether result is freshly
59934         allocated or not.
59935         * lib/relocatable.c (relocate): Return a freshly allocated string
59936         instead of a pointer to a privately held string.
59937         Reported by Sylvain Beucler <beuc@gnu.org>.
59938
59939 2008-01-10  Colin Watson  <cjwatson@debian.org>
59940
59941         * lib/canonicalize-lgpl.c [!_LIBC]: Fix typo in #if directive:
59942         s/S_ISNLK/S_ISLNK/.
59943
59944 2008-01-09  Bruno Haible  <bruno@clisp.org>
59945
59946         * doc/functions/memmem.texi: Use the same structure as snprintf.texi
59947         and other files.
59948         * m4/memmem.m4 (gl_FUNC_MEMMEM): Say "guessing no" instead of "no"
59949         if it's only a guess.
59950         * modules/memmem: Simplify by depending on memmem-simple.
59951
59952 2008-01-09  Bruno Haible  <bruno@clisp.org>
59953
59954         Work around OpenBSD 4.0 tdelete() bug.
59955         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Also check tdelete's return value.
59956         * lib/search.in.h: If REPLACE_TSEARCH is 1, define tsearch etc. as
59957         macros and don't redefine the enum values.
59958         * m4/search_h.m4 (gl_SEARCH_H_DEFAULTS): Initialize REPLACE_TSEARCH.
59959         * modules/search (Makefile.am): Also substitute REPLACE_TSEARCH.
59960         * doc/functions/tdelete.texi: Document the OpenBSD 4.0 bug.
59961
59962 2008-01-09  Bruno Haible  <bruno@clisp.org>
59963
59964         * tests/test-wcwidth.c: Include <string.h> and localcharset.h.
59965         (main): Don't perform the tests if setlocale did not install a UTF-8
59966         locale. Needed on OpenBSD 4.0.
59967         * modules/wcwidth-tests (Depends-on): Add localcharset.
59968
59969 2008-01-09  Paul Eggert  <eggert@cs.ucla.edu>
59970
59971         gl_FUNC_ALLOCA no longer defines HAVE_ALLOCA_H unconditionally.
59972         See <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00149.html>.
59973         * NEWS: announce this.
59974         * m4/alloca.m4 (gl_FUNC_ALLOCA): Don't define HAVE_ALLOCA_H.
59975
59976 2008-01-09  Simon Josefsson  <simon@josefsson.org>
59977         and Eric Blake  <ebb9@byu.net>
59978
59979         Add memmem-simple module.
59980         * m4/memmem.m4 (gl_FUNC_MEMMEM_SIMPLE): New macro.
59981         (gl_FUNC_MEMMEM): Separate performance from presence checks.
59982         * modules/memmem-simple: New file.
59983         * modules/memmem (Description): Tweak.
59984         * MODULES.html.sh (string handling): Mention new module.
59985         * doc/functions/memmem.texi (memmem): Distinguish which flaws are
59986         addressed by memmem-simple.
59987         * NEWS: Document the difference.
59988
59989 2008-01-09  Eric Blake  <ebb9@byu.net>
59990
59991         Give gcc some memmem optimization hints.
59992         * lib/string.in.h (memmem, memrchr, strchrnul, strnlen, strpbrk)
59993         (strcasestr): Declare as pure.
59994         * modules/memmem (Maintainer): Claim my implementation.
59995
59996 2008-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
59997
59998         Support AIX 6.1 and higher.
59999         * build-aux/config.libpath: Likewise.
60000         * build-aux/config.rpath: Likewise.
60001
60002 2008-01-08  Jim Meyering  <meyering@redhat.com>
60003             Bruno Haible  <bruno@clisp.org>
60004
60005         * lib/printf-parse.c (PRINTF_PARSE): Handle a size specifier "q"
60006         on MacOS X and a size specifier "I64" on mingw. Needed for PRIdMAX.
60007         Reported by Peter Fales in
60008         <http://lists.gnu.org/archive/html/bug-coreutils/2007-12/msg00148.html>.
60009
60010 2008-01-08  Bruno Haible  <bruno@clisp.org>
60011
60012         * modules/unictype/category-of (Depends-on): Add
60013         unictype/category-none.
60014         * modules/unictype/category-and-tests (Depends-on): Add
60015         unictype/category-{L,N,Lu,Nd}.
60016         * modules/unictype/category-and-not-tests (Depends-on): Likewise.
60017         * modules/unictype/category-or-tests (Depends-on): Add
60018         unictype/category-{L,N}.
60019         * modules/unictype/category-name-tests (Depends-on): Add
60020         unictype/category-{Z,Nl}.
60021         Reported by Simon Josefsson.
60022
60023 2008-01-08  Bruno Haible  <bruno@clisp.org>
60024
60025         * lib/str-kmp.h (knuth_morris_pratt_unibyte): Document the calling
60026         convention better.
60027         * lib/mbsstr.c (knuth_morris_pratt_multibyte): Likewise.
60028         * lib/mbscasestr.c (knuth_morris_pratt_multibyte): Likewise.
60029         Reported by Peter Miller <millerp@canb.auug.org.au>.
60030
60031 2008-01-08  Eric Blake  <ebb9@byu.net>
60032
60033         Rewrite memmem to guarantee linear complexity without malloc.
60034         * lib/memmem.c (memmem): Use Two-Way rather than
60035         Knuth-Morris-Pratt, to allow O(1) space usage.
60036         (critical_factorization, two_way_short_needle)
60037         (two_way_long_needle): New functions.
60038         (knuth_morris_pratt): Delete.
60039         * modules/memmem (Depends-on): No longer need malloca or stdbool.
60040         Add stdint.
60041         * tests/test-memmem.c (main): Add tests for periodic needle and
60042         sublinear performance.
60043         * doc/functions/memmem.texi (memmem): Document other deficiencies
60044         in cygwin and older glibc.
60045
60046 2008-01-08  Bruno Haible  <bruno@clisp.org>
60047
60048         * modules/memmem-tests (Makefile.am): Remove TESTS_ENVIRONMENT
60049         augmentation.
60050
60051 2008-01-08  Mike Frysinger  <vapier@gentoo.org>
60052
60053         Add a configure time option: --disable-acl.
60054         * m4/acl.m4 (gl_FUNC_ACL): Wrap all ACL logic in a call to
60055         AC_ARG_ENABLE(acl).
60056
60057 2008-01-06  Simon Josefsson  <simon@josefsson.org>
60058
60059         * tests/test-localename.c: Don't include obsolete "setenv.h".
60060
60061         * modules/localename-tests (Depends-on): Need unsetenv.
60062
60063 2008-01-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60064
60065         * DEPENDENCIES: Require Texinfo version 4.6 or newer.
60066
60067 2008-01-06  Colin Watson  <cjwatson@debian.org>
60068
60069         * users.txt: Add man-db.
60070
60071 2008-01-07  Bruno Haible  <bruno@clisp.org>
60072
60073         * doc/gnulib-intro.texi (Library vs Reusable Code): Restore the
60074         previous section name.
60075
60076 2008-01-07  Bruno Haible  <bruno@clisp.org>
60077
60078         * lib/progname.c (set_program_name): Don't strip off a leading
60079         "lt-" prefix outside a .libs directory.
60080         Suggested by Paul Eggert.
60081
60082 2008-01-01  Sylvain Beucler  <beuc@gnu.org>
60083             Bruno Haible  <bruno@clisp.org>
60084
60085         Improve memory cleanup in 'relocatable' module.
60086         * lib/relocatable.h (compute_curr_prefix): Change return type to
60087         'char *'.
60088         * lib/relocatable.c (compute_curr_prefix): Change return type to
60089         'char *'. Free curr_installdir after use.
60090         (relocate): Free curr_prefix_better after use.
60091         * lib/progreloc.c (prepare_relocate): Free curr_prefix after use.
60092
60093 2008-01-01  Bruno Haible  <bruno@clisp.org>
60094
60095         * tests/test-wcwidth.c (main): Relax test of U+2060. Avoids a test
60096         failure on older glibc systems.
60097         Reported by Peter Fales <psfales@alcatel-lucent.com>.
60098
60099 2008-01-05  Eric Blake  <ebb9@byu.net>
60100
60101         Avoid quadratic system memmem.
60102         * m4/memmem.m4 (gl_FUNC_MEMMEM): Check for quadratic memmem.
60103         Reported by Ralf Wildenhues.
60104
60105         Fix memmem test for mingw.
60106         * modules/memmem-tests (configure.ac): Check for alarm.
60107         * tests/test-memmem.c (main): Avoid alarm on platforms that lack
60108         it.
60109         * doc/functions/memmem.texi: New file.
60110         * doc/gnulib.texi (Function Substitutes): Add memmem.
60111         Reported by Bruno Haible.
60112
60113 2008-01-04  Bruno Haible  <bruno@clisp.org>
60114
60115         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP):
60116         Require gl_HEADER_STRINGS_H_DEFAULTS, not
60117         gl_HEADER_STRING_H_DEFAULTS.
60118
60119 2008-01-04  Eric Blake  <ebb9@byu.net>
60120
60121         Shorten duration of memmem test.
60122         * tests/test-memmem.c (main): Use alarm to declare failure if test
60123         is taking too long.
60124         Reported by Ralf Wildenhues.
60125
60126 2007-12-21  Simon Josefsson  <simon@josefsson.org>
60127
60128         * modules/relocatable-prog-wrapper (Depends-on): Add intprops and
60129         string, needed by strerror.
60130
60131 2008-01-03  Colin Watson  <cjwatson@debian.org>
60132             Bruno Haible  <bruno@clisp.org>
60133
60134         * doc/gnulib-tool.texi (Localization): New section.
60135
60136 2008-01-02  Bruno Haible  <bruno@clisp.org>
60137
60138         * lib/memmem.c (knuth_morris_pratt, memmem): Change all 'char *'
60139         variables to 'unsigned char *' type.
60140         Reported by Paul Eggert.
60141
60142 2008-01-02  Jim Meyering  <jim@meyering.net>
60143
60144         * lib/version-etc.c (COPYRIGHT_YEAR): Increase for new year.
60145
60146 2007-12-31  Jim Meyering  <jim@meyering.net>
60147
60148         Avoid use of private FTS type name.
60149         * lib/fts.c (fts_sort): Use FTSENT rather than "struct _ftsent".
60150
60151 2007-12-30  Karl Berry  <karl@gnu.org>
60152
60153         * doc/gnulib.texi (Library vs. Reusable Code): remove period, to
60154         work around defect in Texinfo and/or the standalone Info browser.
60155
60156 2007-12-30  Bruno Haible  <bruno@clisp.org>
60157
60158         Unify 5 copies of the KMP code.
60159         * lib/str-kmp.h: New file.
60160         * lib/c-strcasestr.c: Include str-kmp.h.
60161         (knuth_morris_pratt): Remove function.
60162         (c_strcasestr): Update.
60163         * lib/c-strstr.c: Include str-kmp.h.
60164         (knuth_morris_pratt): Remove function.
60165         (c_strcasestr): Update.
60166         * lib/mbscasestr.c: Include str-kmp.h.
60167         (knuth_morris_pratt_unibyte): Remove function.
60168         * lib/mbsstr.c: Include str-kmp.h.
60169         (knuth_morris_pratt_unibyte): Remove function.
60170         * lib/strcasestr.c: Include str-kmp.h.
60171         (knuth_morris_pratt): Remove function.
60172         (strcasestr): Update.
60173         * modules/c-strcasestr (Files): Add lib/str-kmp.h.
60174         * modules/c-strstr (Files): Likewise.
60175         * modules/mbscasestr (Files): Likewise.
60176         * modules/mbsstr (Files): Likewise.
60177         * modules/strcasestr (Files): Likewise.
60178         Suggested by Paul Eggert.
60179
60180 2007-12-30  Bruno Haible  <bruno@clisp.org>
60181
60182         * lib/xmalloca.c (xmmalloca): Don't define if HAVE_ALLOCA is not
60183         defined.
60184
60185 2007-12-30  Bruno Haible  <bruno@clisp.org>
60186
60187         * lib/xmalloca.h: Include xalloc.h.
60188         (xnmalloca): New macro.
60189
60190 2007-12-30  Bruno Haible  <bruno@clisp.org>
60191
60192         * lib/malloca.h (nmalloca): New macro.
60193         * lib/c-strcasestr.c (knuth_morris_pratt): Use it.
60194         * lib/c-strstr.c (knuth_morris_pratt): Likewise.
60195         * lib/mbscasestr.c (knuth_morris_pratt_unibyte,
60196         knuth_morris_pratt_multibyte): Likewise.
60197         * lib/mbsstr.c (knuth_morris_pratt_unibyte,
60198         knuth_morris_pratt_multibyte): Likewise.
60199         * lib/memmem.c (knuth_morris_pratt): Likewise.
60200         * lib/strcasestr.c (knuth_morris_pratt): Likewise.
60201
60202 2007-12-25  Bruno Haible  <bruno@clisp.org>
60203
60204         Fixup after 2007-10-17 commit. Ensure that 'glob' stays under LGPLv2+.
60205         * lib/glob.c: Don't include openat.h.
60206         (link_exists2_p): Add back the code that deals with the
60207         !GLOB_ALTDIRFUNC case.
60208         (link_exists_p) [!_LIBC && !HAVE_FSTATAT]: Just call link_exists2_p and
60209         let it do the filename concatenation.
60210         * m4/glob.m4 (gl_PREREQ_GLOB): Add check for fstatat.
60211         * modules/glob (Depends-on): Remove openat.
60212
60213 2007-12-31  Bruno Haible  <bruno@clisp.org>
60214
60215         * modules/dirfd (License): Change to LGPLv2+.
60216         Approved by Jim Meyering.
60217
60218 2007-12-29  Paul Eggert  <eggert@cs.ucla.edu>
60219
60220         * lib/memmem.c (knuth_morris_pratt): Check for size_t overflow
60221         when multiplying M by sizeof (size_t).
60222
60223 2007-12-10  Martin Lambers  <marlam@marlam.de>
60224
60225         Override getpagesize on mingw.
60226         * lib/getpagesize.c: New file.
60227         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Enable replacement on mingw.
60228         * modules/getpagesize (Files): Add lib/getpagesize.c.
60229         * lib/unistd.in.h (getpagesize): Declare if we are using a replacement.
60230         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize
60231         REPLACE_GETPAGESIZE.
60232         * modules/unistd (Makefile.am): Substitute REPLACE_GETPAGESIZE.
60233
60234 2007-12-25  Bruno Haible  <bruno@clisp.org>
60235
60236         * modules/localcharset (Notice): New field.
60237         (configure.ac): Define LOCALCHARSET_TESTS_ENVIRONMENT.
60238         Suggested by Ben Pfaff <blp@cs.stanford.edu>.
60239
60240 2007-12-25  Paul Eggert  <eggert@cs.ucla.edu>
60241             Bruno Haible  <bruno@clisp.org>
60242
60243         Avoid using the syntax symbol() in formatted documentation.
60244         * MODULES.html.sh (func_module): When replacing symbol() with a
60245         hyperlink, remove the parentheses. Show an error if some remain.
60246         Recognize and render the '...' syntax.
60247         * doc/alloca-opt.texi: Remove parentheses from symbol reference.
60248         Rework. Add paragraph about GCC's inlining.
60249         * doc/alloca.texi: Likewise.
60250         * doc/error.texi: Remove parentheses from symbol reference.
60251         * doc/gnulib-intro.texi: Likewise.
60252         * doc/gnulib.texi (alloca, alloca-opt): New nodes.
60253         * modules/fnmatch (Description): Reword to say "the ... function".
60254         * modules/full-read (Description): Likewise.
60255         * modules/full-write (Description): Likewise.
60256         * modules/safe-read (Description): Likewise.
60257         * modules/safe-write (Description): Likewise.
60258         * modules/strchrnul (Description): Likewise.
60259         * modules/trim (Description): Likewise.
60260         * modules/error (Description): Remove parentheses from symbol
60261         references.
60262         * modules/verror (Description): Likewise.
60263         Reported by Karl Berry.
60264
60265 2007-12-25  Bruno Haible  <bruno@clisp.org>
60266
60267         Fixup after 2007-10-16 commit.
60268         * lib/glob.c (glob_in_dir): Don't use ISO C99 syntax.
60269
60270 2007-12-24  Bruno Haible  <bruno@clisp.org>
60271
60272         Make --enable-relocatable work with DESTDIR.
60273         * build-aux/install-reloc: Accept another argument 'destdir'. Use it
60274         to compute installdir from destprog.
60275         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): In INSTALL_PROGRAM_ENV,
60276         also set the RELOC_DESTDIR variable.
60277         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60278
60279 2007-12-24  Bruno Haible  <bruno@clisp.org>
60280
60281         Fix link error due to xalloc_die().
60282         * lib/progreloc.c: When NO_XMALLOC is defined, use areadlink instead
60283         of xreadlink.
60284         * lib/relocwrapper.c: Update comments.
60285         * build-aux/install-reloc: Remove xreadlink.c from file list.
60286         * modules/relocatable-prog-wrapper (Files): Remove xreadlink.h and
60287         xreadlink.c.
60288         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60289
60290 2007-12-24  Bruno Haible  <bruno@clisp.org>
60291
60292         Split setenv module into setenv and unsetenv. Get rid of setenv.h.
60293         * lib/setenv.h: Remove file.
60294         * lib/stdlib.in.h (setenv, unsetenv): New declarations, moved here from
60295         lib/setenv.h.
60296         * modules/setenv (Files): Remove lib/setenv.h, lib/unsetenv.c.
60297         (Depends-on): Add stdlib.
60298         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR. Don't invoke
60299         gl_FUNC_UNSETENV.
60300         (Include): Replace setenv.h with <stdlib.h>.
60301         * modules/unsetenv: New file.
60302         * lib/setenv.c: Include <stdlib.h> first, after alloca.h.
60303         * lib/unsetenv.c: Include <stdlib.h> first.
60304         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_SETENV_SEPARATE): Require
60305         gl_STDLIB_H_DEFAULTS. Conditionally set HAVE_SETENV to 0.
60306         (gl_FUNC_UNSETENV): Require gl_STDLIB_H_DEFAULTS. Conditionally set
60307         HAVE_UNSETENV to 0. Set VOID_UNSETENV as an AC_SUBSTed variable.
60308         * modules/stdlib (Makefile.am): Substitute also GNULIB_SETENV,
60309         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60310         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_SETENV,
60311         HAVE_SETENV, GNULIB_UNSETENV, HAVE_UNSETENV, VOID_UNSETENV.
60312         * doc/functions/unsetenv.texi: Update.
60313         * modules/xsetenv (Depends-on): Add unsetenv.
60314         * modules/getdate (Depends-on): Likewise.
60315         * lib/xsetenv.h: Include <stdlib.h> instead of setenv.h.
60316         * lib/xsetenv.c: Don't include setenv.h.
60317         * lib/getdate.y: Likewise.
60318         * lib/relocwrapper.c: Likewise.
60319         * modules/relocatable-prog-wrapper (Files): Remove lib/setenv.h.
60320         (Depends-on): Add stdlib.
60321         * NEWS: Mention the changes.
60322         Reported by Ð›ÐµÐ²Ð°ÑˆÐµÐ² Ð˜Ð²Ð°Ð½ <octagram@bluebottle.com>.
60323
60324 2007-12-23  Bruno Haible  <bruno@clisp.org>
60325
60326         * lib/memmem.c (memmem): Use lowercase variable names. Tab
60327         indentation.
60328
60329 2007-12-23  Bruno Haible  <bruno@clisp.org>
60330
60331         * lib/c-strcasestr.c: Add more comments.
60332         * lib/c-strstr.c: Likewise.
60333         * lib/mbscasestr.c: Likewise.
60334         * lib/mbsstr.c: Likewise.
60335         * lib/strcasestr.c: Likewise.
60336         * lib/memmem.c: Likewise.
60337
60338 2007-12-23  Bruno Haible  <bruno@clisp.org>
60339
60340         * tests/test-memmem.c: Include <string.h> first.
60341
60342 2007-12-22  Bruno Haible  <bruno@clisp.org>
60343
60344         * gnulib-tool (func_create_testdir): Change $auxdir while generating
60345         the contents of $testsbase.
60346         Reported by Ralf Wildenhues.
60347
60348 2007-12-22  Bruno Haible  <bruno@clisp.org>
60349
60350         * gnulib-tool (func_emit_tests_Makefile_am): Replace local_ldadd with
60351         two variables local_ldadd_before, local_ldadd_last.
60352
60353 2007-12-20  Eric Blake  <ebb9@byu.net>
60354
60355         Work around circular library issue when cross-compiling.
60356         * lib/progname.c (set_program_name): Use strncmp, not memcmp, so
60357         that progname.o does not need to pull in rpl_memcmp.
60358
60359 2007-12-19  Eric Blake  <ebb9@byu.net>
60360
60361         Fix memmem to avoid O(n^2) worst-case complexity.
60362         * lib/memmem.c (knuth_morris_pratt): New function.
60363         (memmem): Use it if first few naive iterations fail.
60364         * m4/memmem.m4 (gl_FUNC_MEMMEM): Detect cygwin bug.
60365         * modules/memcmp (License): Set to LGPLv2+, not LGPL.
60366         * modules/memchr (License): Likewise.
60367         * modules/memmem (Depends-on): Add memcmp, memchr, stdbool, and
60368         malloca.
60369         * tests/test-memmem.c: Rewrite, borrowing ideas from
60370         test-mbsstr1.c; the old version wouldn't even compile!
60371         * modules/memmem-tests: New file.
60372         * lib/string.in.h (rpl_memmem): Add declaration.
60373         * modules/string (Makefile.am): Substitute REPLACE_MEMMEM.
60374         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Default for
60375         REPLACE_MEMMEM.
60376
60377 2007-12-18  Paul Eggert  <eggert@cs.ucla.edu>
60378
60379         Fix problem with _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H on VMS.
60380         * lib/stdint.in.h (_GL_JUST_INCLUDE_SYSTEM_INTTYPES_H): Define
60381         before any system include files, and undef after them all.  This
60382         should fix a problem on VMS reported by John E. Malmberg in
60383         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00118.html>.
60384
60385 2007-12-17  Eric Blake  <ebb9@byu.net>
60386
60387         Revert addition of verify, for BSD/OS.
60388         * lib/fseeko.c [!HAVE_FSEEKO]: Allow off_t > long, even though it
60389         can't handle large files, for the sake of obsolete platforms.
60390         * modules/fseeko (Depends-on): Remove verify.
60391         * doc/functions/fseeko.texi (fseeko): Document BSD/OS limitation.
60392         * doc/functions/ftello.texi (ftello): Likewise.
60393         * doc/functions/fgetpos.texi (fgetpos): Likewise.
60394         Reported by Larry Jones.
60395
60396 2007-12-17  Petr Salinger  <Petr.Salinger@seznam.cz>
60397
60398         getcwd.c: Use a more readable witness: HAVE_OPENAT_SUPPORT
60399         * lib/getcwd.c: Define and use HAVE_OPENAT_SUPPORT, in place of AT_FDCWD.
60400
60401 2007-12-17  Jim Meyering  <meyering@redhat.com>
60402
60403         Port to GNU/kFreeBSD - FreeBSD kernel + GNU libc,
60404         which has no openat syscall, yet <fcntl.h> does define AT_FDCWD.
60405         * lib/getcwd.c: Undef AT_FDCWD if there is no openat function.
60406         * modules/getcwd (Depends-on): Add openat.
60407         Reported by Petr Salinger.
60408
60409 2007-12-17  Bruno Haible  <bruno@clisp.org>
60410
60411         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Use GL_NOCRASH to
60412         avoid a segmentation fault of the configure test on x86_64 systems.
60413
60414 2007-12-15  Jim Meyering  <meyering@redhat.com>
60415
60416         * build-aux/gnupload (GPG): Don't hard-code absolute name of gpg binary.
60417
60418 2007-12-13  Eric Blake  <ebb9@byu.net>
60419
60420         Another fseek test.
60421         * tests/test-fseek.c (main): Also test ungetc handling.
60422         * tests/test-fseeko.c (main): Likewise.
60423         * modules/fseeko (Depends-on): Add verify.
60424         * lib/fseeko.c [!HAVE_FSEEKO]: Verify that off_t is not too
60425         large.
60426         Reported by Larry Jones.
60427
60428         Fix fseeko on mingw.
60429         * lib/fseeko.c (rpl_fseeko) [_IOERR]: Reset EOF flag on successful
60430         seek.
60431
60432         Beef up fseek tests.
60433         * tests/test-fseek.c (main): Also test eof handling.
60434         * tests/test-fseeko.c (main): Likewise.
60435         Reported by Larry Jones.
60436
60437 2007-12-13  Larry Jones  <lawrence.jones@siemens.com>  (tiny change)
60438
60439         Fix fseeko on BSD-based platforms.
60440         * lib/fseeko.c (rpl_fseeko) [__sferror]: Reset EOF flag on
60441         successful seek.
60442
60443 2007-12-12  Eric Blake  <ebb9@byu.net>
60444
60445         Allow circular dependency of separate libtests.a
60446         * gnulib-tool (func_emit_tests_Makefile_am): Add AM_LIBTOOLFLAGS
60447         when use_libtests.
60448
60449 2007-12-11  Eric Blake  <ebb9@byu.net>
60450
60451         Fix bug with -0.0L in previous patch.
60452         * lib/isnan.c (rpl_isnanl): Make robust to -0.0L and pad bits.
60453         * tests/test-isnan.c (main): Also test on zeroes.
60454         * tests/test-isnanf.c (main): Likewise.
60455         * tests/test-isnanl.h (main): Likewise.
60456
60457         Detect pseudo-denormals on x86 even when cross-compiling.
60458         * lib/isnan.c (rpl_isnanl) [!KNOWN_EXPBIT0_LOCATION
60459         && USE_LONG_DOUBLE && x86]: Add one more check to filter out
60460         invalid bit patterns that happen to satisfy ==.
60461
60462         Avoid link failures with separate libtests.a.
60463         * gnulib-tool (func_emit_tests_Makefile_am): Also list local_ldadd
60464         last, to satisfy circular dependencies.
60465
60466 2007-12-11  Eric Blake  <ebb9@byu.net>
60467         and Bruno Haible  <bruno@clisp.org>
60468
60469         Fix OpenBSD 4.0 <float.h> handling of long double.
60470         * m4/float_h.m4 (gl_FLOAT_H): Also claim OpenBSD is broken.
60471         * lib/float.in.h [__OpenBSD__]: Add fixes for OpenBSD.
60472         * doc/headers/float.texi (float.h): Document OpenBSD bug.
60473
60474 2007-12-11  Jim Meyering  <meyering@redhat.com>
60475
60476         * users.txt: Add libvirt.
60477
60478         Support versions of autoconf prior to 2.59c.
60479         * gnulib-tool (func_emit_initmacro_done): Define m4_foreach_w
60480         if it is not already defined.
60481
60482 2007-12-09  Bruno Haible  <bruno@clisp.org>
60483
60484         Let 'gnulib-tool --import' collect sources needed for the tests in
60485         tests/ rather than in lib/.
60486         * gnulib-tool (func_emit_tests_Makefile_am): Accept use_libtests
60487         argument. If true, add rules to generate libtests.a, and put libtests.a
60488         into $(LDADD). Consider source files in subdirectories and set
60489         uses_subdirs.
60490         (func_emit_initmacro_start, func_emit_initmacro_end,
60491         func_emit_initmacro_done): Pass all arguments explicitly.
60492         (func_import): Determine two module lists main_modules,
60493         testsrelated_modules. Determine use_libtests. Determine two variables
60494         sed_transform_main_lib_file, sed_transform_testsrelated_lib_file
60495         instead of just sed_transform_lib_file. Determine two variables
60496         main_files and testsrelated_files. Compute 'files' as the union of
60497         both. Adjust sed_rewrite_old_files, sed_rewrite_new_files,
60498         func_add_or_update. In the generated gnulib-comp.m4, collect the
60499         object files for tests/ in different variables than those for lib/.
60500         Substitute LIBTESTS_LIBDEPS.
60501         (func_create_testdir): Combine the uses_subdirs results from
60502         func_emit_lib_Makefile_am and from func_emit_tests_Makefile_am.
60503
60504 2007-12-09  Bruno Haible  <bruno@clisp.org>
60505
60506         * gnulib-tool (func_emit_tests_Makefile_am): Expand references to
60507         the build-aux directory.
60508
60509 2007-12-09  Bruno Haible  <bruno@clisp.org>
60510
60511         * gnulib-tool (func_emit_tests_Makefile_am): Remove redundant code
60512         introduced on 2006-09-09.
60513
60514 2007-12-07  Jim Meyering  <meyering@redhat.com>
60515
60516         Let these macros work also with autoconf-2.59.
60517         * m4/getline.m4 (gl_FUNC_GETLINE): Require only autoconf-2.59.  2.60
60518         is not needed, since gnulib now permits use of AC_CHECK_DECLS_ONCE.
60519         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
60520
60521 2007-12-06  Jim Meyering  <meyering@redhat.com>
60522
60523         Avoid a configure-time syntax error in gl_FUNC_ACL.
60524         * m4/acl.m4 (gl_FUNC_ACL): Be careful to check for the acl_trivial
60525         function in each branch, before testing the cache variable.
60526
60527 2007-12-04  Eric Blake  <ebb9@byu.net>
60528
60529         Make scripts executable.
60530         * build-aux/config.guess: Add execute permissions.
60531         * build-aux/config.sub: Likewise.
60532         * build-aux/gendocs.sh: Likewise.
60533
60534         Fix frexp on mingw.
60535         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Detect mingw bug when
60536         cross-compiling.
60537         * doc/functions/frexp.texi (frexp): Document the bug.
60538
60539         Make cygwin fseeko check more reliable.
60540         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Use cygwin
60541         version numbers, rather than unrelated feature check.
60542         * doc/functions/fseeko.texi (fseeko): Tweak failure report.
60543         * doc/functions/ftello.texi (ftello): Likewise.
60544         Reported by Bruno Haible.
60545
60546         * m4/strerror.m4: Bump version number.
60547
60548 2007-12-03  Bruno Haible  <bruno@clisp.org>
60549
60550         * doc/functions/mprotect.texi: Mention the mingw problem.
60551
60552 2007-12-03  Eric Blake  <ebb9@byu.net>
60553
60554         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): Ensure
60555         REPLACE_STRERROR is initialized before this macro.
60556
60557 2007-12-03  Paul Eggert  <eggert@cs.ucla.edu>
60558
60559         Add support for Solaris 10 ACLs.  Also, ACLs are Gnulib, not Autoconf.
60560         * modules/acl (configure.ac): Rename AC_FUNC_ACL to gl_FUNC_ACL.
60561         * m4/acl.m4 (gl_FUNC_ACL): Renamed from AC_FUNC_ACL.  On Solaris,
60562         put -lsec in even for programs other than 'ls'.  This fixes a problem
60563         for gettext reported by Bruno Haible in
60564         <http://lists.gnu.org/archive/html/bug-gnulib/2007-12/msg00007.html>.
60565         * lib/acl.c (copy_acl, qset_acl) [USE_ACL && defined ACL_NO_TRIVIAL]:
60566         Add support for Solaris 10.  This isn't efficient, but should get the
60567         job done for now.
60568
60569 2007-12-03  James Youngman  <jay@gnu.org>
60570
60571         * doc/regexprops-generic.texi: change "an close-group" to "a
60572         close-group" and "illegal" to "not allowed".
60573
60574 2007-11-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60575
60576         * lib/unictype/pr_byname.c: Include unictype/pr_byname.h instead of
60577         pr_byname.h. Needed for the rare case when the maintainer has done
60578         "make maintainer-clean" in the source directory and then attempts a
60579         build outside the source directory.
60580         * lib/unictype/scripts.c: Include unictype/scripts_byname.h instead of
60581         scripts_byname.h.
60582
60583 2007-12-02  Martin Lambers <marlam@marlam.de>
60584             Bruno Haible  <bruno@clisp.org>
60585
60586         * lib/getpagesize.h: Remove file.
60587         * lib/unistd.in.h: Include declaration of getpagesize here.
60588         * m4/getpagesize.m4 (gl_FUNC_GETPAGESIZE): Renamed from gl_GETPAGESIZE.
60589         Invoke gl_UNISTD_H_DEFAULTS. Set HAVE_GETPAGESIZE, HAVE_OS_H,
60590         HAVE_SYS_PARAM_H.
60591         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_GETPAGESIZE,
60592         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60593         * modules/getpagesize (Files): Remove lib/getpagesize.h.
60594         (Depends-on): Add unistd.
60595         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
60596         (Include): Use <unistd.h> instead of getpagesize.h.
60597         * modules/unistd (Makefile.am): Substitute also GNULIB_GETPAGESIZE,
60598         HAVE_GETPAGESIZE, HAVE_OS_H, HAVE_SYS_PARAM_H.
60599         * m4/pagealign_alloc.m4 (gl_PREREQ_PAGEALIGN_ALLOC): Remove
60600         gl_GETPAGESIZE invocation, already handled by module dependency.
60601         * lib/pagealign_alloc.c: Don't include getpagesize.h.
60602
60603 2007-12-02  Bruno Haible  <bruno@clisp.org>
60604
60605         * modules/strings-tests: New file.
60606         * tests/test-strings.c: New file.
60607
60608         Move declarations of str{,n}casecmp from <string.h> to <strings.h>.
60609         * lib/strings.in.h: New file.
60610         * lib/string.in.h (strcasecmp, strncasecmp): Remove declarations.
60611         * m4/strings_h.m4: New file.
60612         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Remove initialization
60613         of HAVE_STRCASECMP, HAVE_DECL_STRNCASECMP.
60614         * modules/strings: New file.
60615         * modules/string (Makefile.am): Update.
60616         * modules/strcase (Include): Mention <strings.h>, not <string.h>.
60617         Reported by Karl Berry.
60618
60619 2007-12-01  Eric Blake  <ebb9@byu.net>
60620
60621         * m4/stdio_h.m4 (gl_STDIN_LARGE_OFFSET) [__CYGWIN__]: Rewrite to
60622         accommodate fix in cygwin 1.5.25.
60623
60624 2007-12-01  Jim Meyering  <meyering@redhat.com>
60625
60626         Fix a bug that inhibited much of the utf8-optimization in regcomp.c.
60627         * lib/regcomp.c (optimize_utf8): Fix a typo, s/idx/ctx_type/,
60628         that would inhibit utf8-optimization of a regexp containing line-
60629         or buffer-anchors, e.g., `^', `$'.
60630
60631 2007-11-30  Bruno Haible  <bruno@clisp.org>
60632
60633         * lib/lock.h (gl_recursive_lock_init) [PTHREAD &&
60634         PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: Call
60635         glthread_recursive_lock_init.
60636         * lib/lock.c (glthread_recursive_lock_init)
60637         [PTHREAD_RECURSIVE_MUTEX_INITIALIZER]: New function.
60638         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
60639
60640 2007-11-28  Paul Eggert  <eggert@cs.ucla.edu>
60641
60642         New function qset_acl, like set_acl but with syscall semantics.
60643         * lib/acl.h (qset_acl): New decl.
60644         * lib/acl.c (qset_acl): New function.
60645         (set_acl): Use new function.  Use more-consistent diagnostics.
60646
60647 2007-11-28  Jim Meyering  <meyering@redhat.com>
60648
60649         * modules/physmem (License): Change from GPL to LGPLv2+.
60650
60651 2007-11-26  Bruno Haible  <bruno@clisp.org>
60652
60653         * lib/vasnprintf.c (decode_long_double): Don't abort if the
60654         'long double' type has excess precision.
60655         Reported by Jim Meyering in
60656         <http://lists.gnu.org/archive/html/bug-gnulib/2007-11/msg00120.html>.
60657
60658 2007-11-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
60659
60660         * doc/fdl.texi, doc/gpl-3.0.texi, doc/lgpl-3.0.texi:
60661         Sync from <http://gnu.org/licenses>.
60662         * modules/agpl-3.0, doc/agpl-3.0.texi: New module,
60663         with license text from same location.
60664         * doc/maintain.texi, doc/standards.texi:  Sync from
60665         <http://savannah.gnu.org/projects/gnustandards>.
60666
60667 2007-11-22  OndÅ™ej Vašík  <ovasik@redhat.com>
60668         and Jim Meyering  <meyering@redhat.com>
60669
60670         Adjust getdate' grammar to accept a slightly more regular language.
60671         E.g., accept "YYYYMMDD +N days" as well as "YYYYMMDD N days".
60672         Before, the former was rejected.
60673         * lib/getdate.y (digits_to_date_time): New function, factored
60674         out of ...
60675         (number): ...here.  Just call digits_to_date_time.
60676         (hybrid): New non-terminal to handle an <unsigned number,
60677         signed relative offset> sequence consistently.
60678
60679 2007-11-18  Jim Meyering  <meyering@redhat.com>
60680
60681         Pull my changes from coreutils:
60682         bootstrap: fix typo to enable use of $gnulib_tool_option_extras.
60683         * build-aux/bootstrap (gnulib_tool_options): Add a space before the
60684         use of $gnulib_tool_option_extras, so that it's separated from the
60685         preceding argument.
60686
60687         Fix bootstrap failure to handle files like lib/uniwidth/cjk.h.
60688         * build-aux/bootstrap (cp_mark_as_generated): Create any required
60689         parent destination directories before copying a file into place.
60690
60691 2007-11-18  Sergey Poznyakoff  <gray@gnu.org.ua>
60692
60693         bootstrap: work also with 4-argument variant of AC_INIT
60694         * build-aux/bootstrap (gnulib_extra_files): Adjust sed command.
60695
60696 2007-11-16  Paul Eggert  <eggert@cs.ucla.edu>
60697
60698         Port test-getaddrinfo to Solaris.
60699         Problem reported by Bruno Haible in
60700         <http://lists.gnu.org/archive/html/bug-gnulib/2007-03/msg00171.html>.
60701         * tests/test-getaddrinfo.c (simple): Add a comment asking for an
60702         explanation of setting 'hints'.
60703         Don't reject an implementation merely because it returns EAI_SERVICE.
60704         (EAI_SERVICE): Define to 0 if not defined.
60705
60706 2007-11-15  Paul Eggert  <eggert@cs.ucla.edu>
60707
60708         The license of gnu-make and posix-shell is now "GPLed build tool".
60709         * modules/gnu-make (License): Likewise.
60710         * modules/posix-shell (License): Likewise.
60711
60712         New module posix-shell, for determining a POSIX shell
60713         or perhaps something that is close enough to a POSIX shell.
60714         * m4/posix-shell.m4: New file.
60715         * modules/posix-shell: New file.
60716
60717         * MODULES.html.sh: Mention new module.
60718
60719         New module gnu-make, for determining whether we're using GNU Make.
60720         * m4/gnu-make.m4: New file.
60721         * modules/gnu-make: New file.
60722         * MODULES.html.sh: Mention new module.
60723
60724 2007-11-14  Jim Meyering  <meyering@redhat.com>
60725
60726         Define a sometimes-link-required function using ARGMATCH_DIE_DECL.
60727         * tests/test-argmatch.c (ARGMATCH_DIE_DECL): When defined,
60728         use this macro to create a function _definition_.
60729         Remove useless "#undef ARGMATCH_DIE".
60730
60731 2007-11-14  Bruno Haible  <bruno@clisp.org>
60732
60733         * lib/config.charset: Update for OpenBSD 4.1.
60734         Reported and helped by Ben Pfaff <blp@cs.stanford.edu>.
60735
60736 2007-11-12  Paul Eggert  <eggert@cs.ucla.edu>
60737
60738         Document 64-bit #if problems in stdint.texi.
60739         * doc/headers/stdint.texi (stdint.h): Mention problems with
60740         64-bit-#if, and how to work around them.
60741
60742         Don't insist on 'long long int' support in the preprocessor.  It
60743         breaks too many things.  For example, PRIdMAX still uses a 'long
60744         long int' format with the latest Sun compiler, even though
60745         HAVE_LONG_LONG_INT isn't defined due to that compiler's
60746         preprocessor problem.  This causes the latest coreutils to dump
60747         core on Solaris 10 sparc with the Sun C compiler.
60748         Instead, fix the 2007-10-16 problem in a different way, by evaluating
60749         the troublesome expressions at configure-time, not at #if-time.
60750         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): Don't test the
60751         preprocessor.
60752         * m4/inttypes.m4 (gl_INTTYPES_H): Move the #if checks into
60753         compile-time C checks, done at 'configure'-time.
60754         (gl_INTTYPES_CHECK_LONG_LONG_INT_CONDITION): New macro.
60755         * modules/inttypes (Makefile): Substitute the new symbols that
60756         gl_INTTYPES_H now generates.
60757         * lib/inttypes.in.h: Don't use constants wider than 'long' in #if.
60758
60759 2007-11-12  Bruno Haible  <bruno@clisp.org>
60760
60761         Tests for Unicode character classification functions.
60762
60763         * modules/unictype/bidicategory-byname-tests: New file.
60764         * modules/unictype/bidicategory-name-tests: New file.
60765         * modules/unictype/bidicategory-of-tests: New file.
60766         * modules/unictype/bidicategory-test-tests: New file.
60767         * modules/unictype/block-list-tests: New file.
60768         * modules/unictype/block-of-tests: New file.
60769         * modules/unictype/block-test-tests: New file.
60770         * modules/unictype/category-C-tests: New file.
60771         * modules/unictype/category-Cc-tests: New file.
60772         * modules/unictype/category-Cf-tests: New file.
60773         * modules/unictype/category-Cn-tests: New file.
60774         * modules/unictype/category-Co-tests: New file.
60775         * modules/unictype/category-Cs-tests: New file.
60776         * modules/unictype/category-L-tests: New file.
60777         * modules/unictype/category-Ll-tests: New file.
60778         * modules/unictype/category-Lm-tests: New file.
60779         * modules/unictype/category-Lo-tests: New file.
60780         * modules/unictype/category-Lt-tests: New file.
60781         * modules/unictype/category-Lu-tests: New file.
60782         * modules/unictype/category-M-tests: New file.
60783         * modules/unictype/category-Mc-tests: New file.
60784         * modules/unictype/category-Me-tests: New file.
60785         * modules/unictype/category-Mn-tests: New file.
60786         * modules/unictype/category-N-tests: New file.
60787         * modules/unictype/category-Nd-tests: New file.
60788         * modules/unictype/category-Nl-tests: New file.
60789         * modules/unictype/category-No-tests: New file.
60790         * modules/unictype/category-P-tests: New file.
60791         * modules/unictype/category-Pc-tests: New file.
60792         * modules/unictype/category-Pd-tests: New file.
60793         * modules/unictype/category-Pe-tests: New file.
60794         * modules/unictype/category-Pf-tests: New file.
60795         * modules/unictype/category-Pi-tests: New file.
60796         * modules/unictype/category-Po-tests: New file.
60797         * modules/unictype/category-Ps-tests: New file.
60798         * modules/unictype/category-S-tests: New file.
60799         * modules/unictype/category-Sc-tests: New file.
60800         * modules/unictype/category-Sk-tests: New file.
60801         * modules/unictype/category-Sm-tests: New file.
60802         * modules/unictype/category-So-tests: New file.
60803         * modules/unictype/category-Z-tests: New file.
60804         * modules/unictype/category-Zl-tests: New file.
60805         * modules/unictype/category-Zp-tests: New file.
60806         * modules/unictype/category-Zs-tests: New file.
60807         * modules/unictype/category-and-not-tests: New file.
60808         * modules/unictype/category-and-tests: New file.
60809         * modules/unictype/category-byname-tests: New file.
60810         * modules/unictype/category-name-tests: New file.
60811         * modules/unictype/category-none-tests: New file.
60812         * modules/unictype/category-of-tests: New file.
60813         * modules/unictype/category-or-tests: New file.
60814         * modules/unictype/category-test-withtable-tests: New file.
60815         * modules/unictype/combining-class-tests: New file.
60816         * modules/unictype/ctype-alnum-tests: New file.
60817         * modules/unictype/ctype-alpha-tests: New file.
60818         * modules/unictype/ctype-blank-tests: New file.
60819         * modules/unictype/ctype-cntrl-tests: New file.
60820         * modules/unictype/ctype-digit-tests: New file.
60821         * modules/unictype/ctype-graph-tests: New file.
60822         * modules/unictype/ctype-lower-tests: New file.
60823         * modules/unictype/ctype-print-tests: New file.
60824         * modules/unictype/ctype-punct-tests: New file.
60825         * modules/unictype/ctype-space-tests: New file.
60826         * modules/unictype/ctype-upper-tests: New file.
60827         * modules/unictype/ctype-xdigit-tests: New file.
60828         * modules/unictype/decimal-digit-tests: New file.
60829         * modules/unictype/digit-tests: New file.
60830         * modules/unictype/mirror-tests: New file.
60831         * modules/unictype/numeric-tests: New file.
60832         * modules/unictype/property-alphabetic-tests: New file.
60833         * modules/unictype/property-ascii-hex-digit-tests: New file.
60834         * modules/unictype/property-bidi-arabic-digit-tests: New file.
60835         * modules/unictype/property-bidi-arabic-right-to-left-tests: New file.
60836         * modules/unictype/property-bidi-block-separator-tests: New file.
60837         * modules/unictype/property-bidi-boundary-neutral-tests: New file.
60838         * modules/unictype/property-bidi-common-separator-tests: New file.
60839         * modules/unictype/property-bidi-control-tests: New file.
60840         * modules/unictype/property-bidi-embedding-or-override-tests: New file.
60841         * modules/unictype/property-bidi-eur-num-separator-tests: New file.
60842         * modules/unictype/property-bidi-eur-num-terminator-tests: New file.
60843         * modules/unictype/property-bidi-european-digit-tests: New file.
60844         * modules/unictype/property-bidi-hebrew-right-to-left-tests: New file.
60845         * modules/unictype/property-bidi-left-to-right-tests: New file.
60846         * modules/unictype/property-bidi-non-spacing-mark-tests: New file.
60847         * modules/unictype/property-bidi-other-neutral-tests: New file.
60848         * modules/unictype/property-bidi-pdf-tests: New file.
60849         * modules/unictype/property-bidi-segment-separator-tests: New file.
60850         * modules/unictype/property-bidi-whitespace-tests: New file.
60851         * modules/unictype/property-byname-tests: New file.
60852         * modules/unictype/property-combining-tests: New file.
60853         * modules/unictype/property-composite-tests: New file.
60854         * modules/unictype/property-currency-symbol-tests: New file.
60855         * modules/unictype/property-dash-tests: New file.
60856         * modules/unictype/property-decimal-digit-tests: New file.
60857         * modules/unictype/property-default-ignorable-code-point-tests: New file.
60858         * modules/unictype/property-deprecated-tests: New file.
60859         * modules/unictype/property-diacritic-tests: New file.
60860         * modules/unictype/property-extender-tests: New file.
60861         * modules/unictype/property-format-control-tests: New file.
60862         * modules/unictype/property-grapheme-base-tests: New file.
60863         * modules/unictype/property-grapheme-extend-tests: New file.
60864         * modules/unictype/property-grapheme-link-tests: New file.
60865         * modules/unictype/property-hex-digit-tests: New file.
60866         * modules/unictype/property-hyphen-tests: New file.
60867         * modules/unictype/property-id-continue-tests: New file.
60868         * modules/unictype/property-id-start-tests: New file.
60869         * modules/unictype/property-ideographic-tests: New file.
60870         * modules/unictype/property-ids-binary-operator-tests: New file.
60871         * modules/unictype/property-ids-trinary-operator-tests: New file.
60872         * modules/unictype/property-ignorable-control-tests: New file.
60873         * modules/unictype/property-iso-control-tests: New file.
60874         * modules/unictype/property-join-control-tests: New file.
60875         * modules/unictype/property-left-of-pair-tests: New file.
60876         * modules/unictype/property-line-separator-tests: New file.
60877         * modules/unictype/property-logical-order-exception-tests: New file.
60878         * modules/unictype/property-lowercase-tests: New file.
60879         * modules/unictype/property-math-tests: New file.
60880         * modules/unictype/property-non-break-tests: New file.
60881         * modules/unictype/property-not-a-character-tests: New file.
60882         * modules/unictype/property-numeric-tests: New file.
60883         * modules/unictype/property-other-alphabetic-tests: New file.
60884         * modules/unictype/property-other-default-ignorable-code-point-tests: New file.
60885         * modules/unictype/property-other-grapheme-extend-tests: New file.
60886         * modules/unictype/property-other-id-continue-tests: New file.
60887         * modules/unictype/property-other-id-start-tests: New file.
60888         * modules/unictype/property-other-lowercase-tests: New file.
60889         * modules/unictype/property-other-math-tests: New file.
60890         * modules/unictype/property-other-uppercase-tests: New file.
60891         * modules/unictype/property-paired-punctuation-tests: New file.
60892         * modules/unictype/property-paragraph-separator-tests: New file.
60893         * modules/unictype/property-pattern-syntax-tests: New file.
60894         * modules/unictype/property-pattern-white-space-tests: New file.
60895         * modules/unictype/property-private-use-tests: New file.
60896         * modules/unictype/property-punctuation-tests: New file.
60897         * modules/unictype/property-quotation-mark-tests: New file.
60898         * modules/unictype/property-radical-tests: New file.
60899         * modules/unictype/property-sentence-terminal-tests: New file.
60900         * modules/unictype/property-soft-dotted-tests: New file.
60901         * modules/unictype/property-space-tests: New file.
60902         * modules/unictype/property-terminal-punctuation-tests: New file.
60903         * modules/unictype/property-test-tests: New file.
60904         * modules/unictype/property-titlecase-tests: New file.
60905         * modules/unictype/property-unassigned-code-value-tests: New file.
60906         * modules/unictype/property-unified-ideograph-tests: New file.
60907         * modules/unictype/property-uppercase-tests: New file.
60908         * modules/unictype/property-variation-selector-tests: New file.
60909         * modules/unictype/property-white-space-tests: New file.
60910         * modules/unictype/property-xid-continue-tests: New file.
60911         * modules/unictype/property-xid-start-tests: New file.
60912         * modules/unictype/property-zero-width-tests: New file.
60913         * modules/unictype/scripts-tests: New file.
60914         * modules/unictype/syntax-c-ident-tests: New file.
60915         * modules/unictype/syntax-c-whitespace-tests: New file.
60916         * modules/unictype/syntax-java-ident-tests: New file.
60917         * modules/unictype/syntax-java-whitespace-tests: New file.
60918         * tests/unictype/test-bidi_byname.c: New file.
60919         * tests/unictype/test-bidi_name.c: New file.
60920         * tests/unictype/test-bidi_of.c: New file.
60921         * tests/unictype/test-bidi_test.c: New file.
60922         * tests/unictype/test-block_list.c: New file.
60923         * tests/unictype/test-block_of.c: New file.
60924         * tests/unictype/test-block_test.c: New file.
60925         * tests/unictype/test-categ_and.c: New file.
60926         * tests/unictype/test-categ_and_not.c: New file.
60927         * tests/unictype/test-categ_byname.c: New file.
60928         * tests/unictype/test-categ_name.c: New file.
60929         * tests/unictype/test-categ_none.c: New file.
60930         * tests/unictype/test-categ_of.c: New file.
60931         * tests/unictype/test-categ_or.c: New file.
60932         * tests/unictype/test-categ_test_withtable.c: New file.
60933         * tests/unictype/test-combining.c: New file.
60934         * tests/unictype/test-decdigit.c: New file.
60935         * tests/unictype/test-digit.c: New file.
60936         * tests/unictype/test-mirror.c: New file.
60937         * tests/unictype/test-numeric.c: New file.
60938         * tests/unictype/test-pr_byname.c: New file.
60939         * tests/unictype/test-pr_test.c: New file.
60940         * tests/unictype/test-predicate-part1.h: New file.
60941         * tests/unictype/test-predicate-part2.h: New file.
60942         * tests/unictype/test-scripts.c: New file.
60943         * tests/unictype/test-sy_c_ident.c: New file.
60944         * tests/unictype/test-sy_java_ident.c: New file.
60945
60946         * tests/unictype/test-categ_C.c: New file, generated by gen-ctype.c
60947         for Unicode 5.0.0.
60948         * tests/unictype/test-categ_Cc.c: Likewise.
60949         * tests/unictype/test-categ_Cf.c: Likewise.
60950         * tests/unictype/test-categ_Cn.c: Likewise.
60951         * tests/unictype/test-categ_Co.c: Likewise.
60952         * tests/unictype/test-categ_Cs.c: Likewise.
60953         * tests/unictype/test-categ_L.c: Likewise.
60954         * tests/unictype/test-categ_Ll.c: Likewise.
60955         * tests/unictype/test-categ_Lm.c: Likewise.
60956         * tests/unictype/test-categ_Lo.c: Likewise.
60957         * tests/unictype/test-categ_Lt.c: Likewise.
60958         * tests/unictype/test-categ_Lu.c: Likewise.
60959         * tests/unictype/test-categ_M.c: Likewise.
60960         * tests/unictype/test-categ_Mc.c: Likewise.
60961         * tests/unictype/test-categ_Me.c: Likewise.
60962         * tests/unictype/test-categ_Mn.c: Likewise.
60963         * tests/unictype/test-categ_N.c: Likewise.
60964         * tests/unictype/test-categ_Nd.c: Likewise.
60965         * tests/unictype/test-categ_Nl.c: Likewise.
60966         * tests/unictype/test-categ_No.c: Likewise.
60967         * tests/unictype/test-categ_P.c: Likewise.
60968         * tests/unictype/test-categ_Pc.c: Likewise.
60969         * tests/unictype/test-categ_Pd.c: Likewise.
60970         * tests/unictype/test-categ_Pe.c: Likewise.
60971         * tests/unictype/test-categ_Pf.c: Likewise.
60972         * tests/unictype/test-categ_Pi.c: Likewise.
60973         * tests/unictype/test-categ_Po.c: Likewise.
60974         * tests/unictype/test-categ_Ps.c: Likewise.
60975         * tests/unictype/test-categ_S.c: Likewise.
60976         * tests/unictype/test-categ_Sc.c: Likewise.
60977         * tests/unictype/test-categ_Sk.c: Likewise.
60978         * tests/unictype/test-categ_Sm.c: Likewise.
60979         * tests/unictype/test-categ_So.c: Likewise.
60980         * tests/unictype/test-categ_Z.c: Likewise.
60981         * tests/unictype/test-categ_Zl.c: Likewise.
60982         * tests/unictype/test-categ_Zp.c: Likewise.
60983         * tests/unictype/test-categ_Zs.c: Likewise.
60984         * tests/unictype/test-ctype_alnum.c: Likewise.
60985         * tests/unictype/test-ctype_alpha.c: Likewise.
60986         * tests/unictype/test-ctype_blank.c: Likewise.
60987         * tests/unictype/test-ctype_cntrl.c: Likewise.
60988         * tests/unictype/test-ctype_digit.c: Likewise.
60989         * tests/unictype/test-ctype_graph.c: Likewise.
60990         * tests/unictype/test-ctype_lower.c: Likewise.
60991         * tests/unictype/test-ctype_print.c: Likewise.
60992         * tests/unictype/test-ctype_punct.c: Likewise.
60993         * tests/unictype/test-ctype_space.c: Likewise.
60994         * tests/unictype/test-ctype_upper.c: Likewise.
60995         * tests/unictype/test-ctype_xdigit.c: Likewise.
60996         * tests/unictype/test-decdigit.h: Likewise.
60997         * tests/unictype/test-digit.h: Likewise.
60998         * tests/unictype/test-numeric.h: Likewise.
60999         * tests/unictype/test-pr_alphabetic.c: Likewise.
61000         * tests/unictype/test-pr_ascii_hex_digit.c: Likewise.
61001         * tests/unictype/test-pr_bidi_arabic_digit.c: Likewise.
61002         * tests/unictype/test-pr_bidi_arabic_right_to_left.c: Likewise.
61003         * tests/unictype/test-pr_bidi_block_separator.c: Likewise.
61004         * tests/unictype/test-pr_bidi_boundary_neutral.c: Likewise.
61005         * tests/unictype/test-pr_bidi_common_separator.c: Likewise.
61006         * tests/unictype/test-pr_bidi_control.c: Likewise.
61007         * tests/unictype/test-pr_bidi_embedding_or_override.c: Likewise.
61008         * tests/unictype/test-pr_bidi_eur_num_separator.c: Likewise.
61009         * tests/unictype/test-pr_bidi_eur_num_terminator.c: Likewise.
61010         * tests/unictype/test-pr_bidi_european_digit.c: Likewise.
61011         * tests/unictype/test-pr_bidi_hebrew_right_to_left.c: Likewise.
61012         * tests/unictype/test-pr_bidi_left_to_right.c: Likewise.
61013         * tests/unictype/test-pr_bidi_non_spacing_mark.c: Likewise.
61014         * tests/unictype/test-pr_bidi_other_neutral.c: Likewise.
61015         * tests/unictype/test-pr_bidi_pdf.c: Likewise.
61016         * tests/unictype/test-pr_bidi_segment_separator.c: Likewise.
61017         * tests/unictype/test-pr_bidi_whitespace.c: Likewise.
61018         * tests/unictype/test-pr_combining.c: Likewise.
61019         * tests/unictype/test-pr_composite.c: Likewise.
61020         * tests/unictype/test-pr_currency_symbol.c: Likewise.
61021         * tests/unictype/test-pr_dash.c: Likewise.
61022         * tests/unictype/test-pr_decimal_digit.c: Likewise.
61023         * tests/unictype/test-pr_default_ignorable_code_point.c: Likewise.
61024         * tests/unictype/test-pr_deprecated.c: Likewise.
61025         * tests/unictype/test-pr_diacritic.c: Likewise.
61026         * tests/unictype/test-pr_extender.c: Likewise.
61027         * tests/unictype/test-pr_format_control.c: Likewise.
61028         * tests/unictype/test-pr_grapheme_base.c: Likewise.
61029         * tests/unictype/test-pr_grapheme_extend.c: Likewise.
61030         * tests/unictype/test-pr_grapheme_link.c: Likewise.
61031         * tests/unictype/test-pr_hex_digit.c: Likewise.
61032         * tests/unictype/test-pr_hyphen.c: Likewise.
61033         * tests/unictype/test-pr_id_continue.c: Likewise.
61034         * tests/unictype/test-pr_id_start.c: Likewise.
61035         * tests/unictype/test-pr_ideographic.c: Likewise.
61036         * tests/unictype/test-pr_ids_binary_operator.c: Likewise.
61037         * tests/unictype/test-pr_ids_trinary_operator.c: Likewise.
61038         * tests/unictype/test-pr_ignorable_control.c: Likewise.
61039         * tests/unictype/test-pr_iso_control.c: Likewise.
61040         * tests/unictype/test-pr_join_control.c: Likewise.
61041         * tests/unictype/test-pr_left_of_pair.c: Likewise.
61042         * tests/unictype/test-pr_line_separator.c: Likewise.
61043         * tests/unictype/test-pr_logical_order_exception.c: Likewise.
61044         * tests/unictype/test-pr_lowercase.c: Likewise.
61045         * tests/unictype/test-pr_math.c: Likewise.
61046         * tests/unictype/test-pr_non_break.c: Likewise.
61047         * tests/unictype/test-pr_not_a_character.c: Likewise.
61048         * tests/unictype/test-pr_numeric.c: Likewise.
61049         * tests/unictype/test-pr_other_alphabetic.c: Likewise.
61050         * tests/unictype/test-pr_other_default_ignorable_code_point.c: Likewise.
61051         * tests/unictype/test-pr_other_grapheme_extend.c: Likewise.
61052         * tests/unictype/test-pr_other_id_continue.c: Likewise.
61053         * tests/unictype/test-pr_other_id_start.c: Likewise.
61054         * tests/unictype/test-pr_other_lowercase.c: Likewise.
61055         * tests/unictype/test-pr_other_math.c: Likewise.
61056         * tests/unictype/test-pr_other_uppercase.c: Likewise.
61057         * tests/unictype/test-pr_paired_punctuation.c: Likewise.
61058         * tests/unictype/test-pr_paragraph_separator.c: Likewise.
61059         * tests/unictype/test-pr_pattern_syntax.c: Likewise.
61060         * tests/unictype/test-pr_pattern_white_space.c: Likewise.
61061         * tests/unictype/test-pr_private_use.c: Likewise.
61062         * tests/unictype/test-pr_punctuation.c: Likewise.
61063         * tests/unictype/test-pr_quotation_mark.c: Likewise.
61064         * tests/unictype/test-pr_radical.c: Likewise.
61065         * tests/unictype/test-pr_sentence_terminal.c: Likewise.
61066         * tests/unictype/test-pr_soft_dotted.c: Likewise.
61067         * tests/unictype/test-pr_space.c: Likewise.
61068         * tests/unictype/test-pr_terminal_punctuation.c: Likewise.
61069         * tests/unictype/test-pr_titlecase.c: Likewise.
61070         * tests/unictype/test-pr_unassigned_code_value.c: Likewise.
61071         * tests/unictype/test-pr_unified_ideograph.c: Likewise.
61072         * tests/unictype/test-pr_uppercase.c: Likewise.
61073         * tests/unictype/test-pr_variation_selector.c: Likewise.
61074         * tests/unictype/test-pr_white_space.c: Likewise.
61075         * tests/unictype/test-pr_xid_continue.c: Likewise.
61076         * tests/unictype/test-pr_xid_start.c: Likewise.
61077         * tests/unictype/test-pr_zero_width.c: Likewise.
61078         * tests/unictype/test-sy_c_whitespace.c: Likewise.
61079         * tests/unictype/test-sy_java_whitespace.c: Likewise.
61080
61081 2007-11-12  Bruno Haible  <bruno@clisp.org>
61082
61083         Unicode character classification functions.
61084         * lib/unictype.h: New file.
61085         * modules/unictype/base: New file.
61086         * modules/unictype/category-L: New file.
61087         * modules/unictype/category-Lu: New file.
61088         * modules/unictype/category-Ll: New file.
61089         * modules/unictype/category-Lt: New file.
61090         * modules/unictype/category-Lm: New file.
61091         * modules/unictype/category-Lo: New file.
61092         * modules/unictype/category-M: New file.
61093         * modules/unictype/category-Mn: New file.
61094         * modules/unictype/category-Mc: New file.
61095         * modules/unictype/category-Me: New file.
61096         * modules/unictype/category-N: New file.
61097         * modules/unictype/category-Nd: New file.
61098         * modules/unictype/category-Nl: New file.
61099         * modules/unictype/category-No: New file.
61100         * modules/unictype/category-P: New file.
61101         * modules/unictype/category-Pc: New file.
61102         * modules/unictype/category-Pd: New file.
61103         * modules/unictype/category-Ps: New file.
61104         * modules/unictype/category-Pe: New file.
61105         * modules/unictype/category-Pi: New file.
61106         * modules/unictype/category-Pf: New file.
61107         * modules/unictype/category-Po: New file.
61108         * modules/unictype/category-S: New file.
61109         * modules/unictype/category-Sm: New file.
61110         * modules/unictype/category-Sc: New file.
61111         * modules/unictype/category-Sk: New file.
61112         * modules/unictype/category-So: New file.
61113         * modules/unictype/category-Z: New file.
61114         * modules/unictype/category-Zs: New file.
61115         * modules/unictype/category-Zl: New file.
61116         * modules/unictype/category-Zp: New file.
61117         * modules/unictype/category-C: New file.
61118         * modules/unictype/category-Cc: New file.
61119         * modules/unictype/category-Cf: New file.
61120         * modules/unictype/category-Cs: New file.
61121         * modules/unictype/category-Co: New file.
61122         * modules/unictype/category-Cn: New file.
61123         * modules/unictype/category-or: New file.
61124         * modules/unictype/category-of: New file.
61125         * modules/unictype/category-test: New file.
61126         * modules/unictype/category-test-withtable: New file.
61127         * modules/unictype/category-byname: New file.
61128         * modules/unictype/category-none: New file.
61129         * modules/unictype/category-and: New file.
61130         * modules/unictype/category-and-not: New file.
61131         * modules/unictype/category-name: New file.
61132         * modules/unictype/combining-class: New file.
61133         * modules/unictype/category-all: New file.
61134         * modules/unictype/bidicategory-all: New file.
61135         * modules/unictype/bidicategory-byname: New file.
61136         * modules/unictype/bidicategory-name: New file.
61137         * modules/unictype/bidicategory-of: New file.
61138         * modules/unictype/bidicategory-test: New file.
61139         * modules/unictype/decimal-digit: New file.
61140         * modules/unictype/digit: New file.
61141         * modules/unictype/numeric: New file.
61142         * modules/unictype/mirror: New file.
61143         * modules/unictype/property-white-space: New file.
61144         * modules/unictype/property-alphabetic: New file.
61145         * modules/unictype/property-other-alphabetic: New file.
61146         * modules/unictype/property-not-a-character: New file.
61147         * modules/unictype/property-default-ignorable-code-point: New file.
61148         * modules/unictype/property-other-default-ignorable-code-point: New
61149         file.
61150         * modules/unictype/property-deprecated: New file.
61151         * modules/unictype/property-logical-order-exception: New file.
61152         * modules/unictype/property-variation-selector: New file.
61153         * modules/unictype/property-private-use: New file.
61154         * modules/unictype/property-unassigned-code-value: New file.
61155         * modules/unictype/property-uppercase: New file.
61156         * modules/unictype/property-other-uppercase: New file.
61157         * modules/unictype/property-lowercase: New file.
61158         * modules/unictype/property-other-lowercase: New file.
61159         * modules/unictype/property-titlecase: New file.
61160         * modules/unictype/property-soft-dotted: New file.
61161         * modules/unictype/property-id-start: New file.
61162         * modules/unictype/property-other-id-start: New file.
61163         * modules/unictype/property-id-continue: New file.
61164         * modules/unictype/property-other-id-continue: New file.
61165         * modules/unictype/property-xid-start: New file.
61166         * modules/unictype/property-xid-continue: New file.
61167         * modules/unictype/property-pattern-white-space: New file.
61168         * modules/unictype/property-pattern-syntax: New file.
61169         * modules/unictype/property-join-control: New file.
61170         * modules/unictype/property-grapheme-base: New file.
61171         * modules/unictype/property-grapheme-extend: New file.
61172         * modules/unictype/property-other-grapheme-extend: New file.
61173         * modules/unictype/property-grapheme-link: New file.
61174         * modules/unictype/property-bidi-control: New file.
61175         * modules/unictype/property-bidi-left-to-right: New file.
61176         * modules/unictype/property-bidi-hebrew-right-to-left: New file.
61177         * modules/unictype/property-bidi-arabic-right-to-left: New file.
61178         * modules/unictype/property-bidi-european-digit: New file.
61179         * modules/unictype/property-bidi-eur-num-separator: New file.
61180         * modules/unictype/property-bidi-eur-num-terminator: New file.
61181         * modules/unictype/property-bidi-arabic-digit: New file.
61182         * modules/unictype/property-bidi-common-separator: New file.
61183         * modules/unictype/property-bidi-block-separator: New file.
61184         * modules/unictype/property-bidi-segment-separator: New file.
61185         * modules/unictype/property-bidi-whitespace: New file.
61186         * modules/unictype/property-bidi-non-spacing-mark: New file.
61187         * modules/unictype/property-bidi-boundary-neutral: New file.
61188         * modules/unictype/property-bidi-pdf: New file.
61189         * modules/unictype/property-bidi-embedding-or-override: New file.
61190         * modules/unictype/property-bidi-other-neutral: New file.
61191         * modules/unictype/property-hex-digit: New file.
61192         * modules/unictype/property-ascii-hex-digit: New file.
61193         * modules/unictype/property-ideographic: New file.
61194         * modules/unictype/property-unified-ideograph: New file.
61195         * modules/unictype/property-radical: New file.
61196         * modules/unictype/property-ids-binary-operator: New file.
61197         * modules/unictype/property-ids-trinary-operator: New file.
61198         * modules/unictype/property-zero-width: New file.
61199         * modules/unictype/property-space: New file.
61200         * modules/unictype/property-non-break: New file.
61201         * modules/unictype/property-iso-control: New file.
61202         * modules/unictype/property-format-control: New file.
61203         * modules/unictype/property-dash: New file.
61204         * modules/unictype/property-hyphen: New file.
61205         * modules/unictype/property-punctuation: New file.
61206         * modules/unictype/property-line-separator: New file.
61207         * modules/unictype/property-paragraph-separator: New file.
61208         * modules/unictype/property-quotation-mark: New file.
61209         * modules/unictype/property-sentence-terminal: New file.
61210         * modules/unictype/property-terminal-punctuation: New file.
61211         * modules/unictype/property-currency-symbol: New file.
61212         * modules/unictype/property-math: New file.
61213         * modules/unictype/property-other-math: New file.
61214         * modules/unictype/property-paired-punctuation: New file.
61215         * modules/unictype/property-left-of-pair: New file.
61216         * modules/unictype/property-combining: New file.
61217         * modules/unictype/property-composite: New file.
61218         * modules/unictype/property-decimal-digit: New file.
61219         * modules/unictype/property-numeric: New file.
61220         * modules/unictype/property-diacritic: New file.
61221         * modules/unictype/property-extender: New file.
61222         * modules/unictype/property-ignorable-control: New file.
61223         * modules/unictype/property-test: New file.
61224         * modules/unictype/property-byname: New file.
61225         * modules/unictype/property-all: New file.
61226         * modules/unictype/scripts: New file.
61227         * modules/unictype/scripts-all: New file.
61228         * modules/unictype/block-of: New file.
61229         * modules/unictype/block-test: New file.
61230         * modules/unictype/block-list: New file.
61231         * modules/unictype/block-all: New file.
61232         * modules/unictype/syntax-c-whitespace: New file.
61233         * modules/unictype/syntax-java-whitespace: New file.
61234         * modules/unictype/syntax-c-ident: New file.
61235         * modules/unictype/syntax-java-ident: New file.
61236         * modules/unictype/ctype-alnum: New file.
61237         * modules/unictype/ctype-alpha: New file.
61238         * modules/unictype/ctype-cntrl: New file.
61239         * modules/unictype/ctype-digit: New file.
61240         * modules/unictype/ctype-graph: New file.
61241         * modules/unictype/ctype-lower: New file.
61242         * modules/unictype/ctype-print: New file.
61243         * modules/unictype/ctype-punct: New file.
61244         * modules/unictype/ctype-space: New file.
61245         * modules/unictype/ctype-upper: New file.
61246         * modules/unictype/ctype-xdigit: New file.
61247         * modules/unictype/ctype-blank: New file.
61248         * lib/unictype/bidi_byname.c: New file.
61249         * lib/unictype/bidi_name.c: New file.
61250         * lib/unictype/bidi_of.c: New file.
61251         * lib/unictype/bidi_test.c: New file.
61252         * lib/unictype/bitmap.h: New file.
61253         * lib/unictype/block_test.c: New file.
61254         * lib/unictype/blocks.c: New file.
61255         * lib/unictype/categ_C.c: New file.
61256         * lib/unictype/categ_Cc.c: New file.
61257         * lib/unictype/categ_Cf.c: New file.
61258         * lib/unictype/categ_Cn.c: New file.
61259         * lib/unictype/categ_Co.c: New file.
61260         * lib/unictype/categ_Cs.c: New file.
61261         * lib/unictype/categ_L.c: New file.
61262         * lib/unictype/categ_Ll.c: New file.
61263         * lib/unictype/categ_Lm.c: New file.
61264         * lib/unictype/categ_Lo.c: New file.
61265         * lib/unictype/categ_Lt.c: New file.
61266         * lib/unictype/categ_Lu.c: New file.
61267         * lib/unictype/categ_M.c: New file.
61268         * lib/unictype/categ_Mc.c: New file.
61269         * lib/unictype/categ_Me.c: New file.
61270         * lib/unictype/categ_Mn.c: New file.
61271         * lib/unictype/categ_N.c: New file.
61272         * lib/unictype/categ_Nd.c: New file.
61273         * lib/unictype/categ_Nl.c: New file.
61274         * lib/unictype/categ_No.c: New file.
61275         * lib/unictype/categ_P.c: New file.
61276         * lib/unictype/categ_Pc.c: New file.
61277         * lib/unictype/categ_Pd.c: New file.
61278         * lib/unictype/categ_Pe.c: New file.
61279         * lib/unictype/categ_Pf.c: New file.
61280         * lib/unictype/categ_Pi.c: New file.
61281         * lib/unictype/categ_Po.c: New file.
61282         * lib/unictype/categ_Ps.c: New file.
61283         * lib/unictype/categ_S.c: New file.
61284         * lib/unictype/categ_Sc.c: New file.
61285         * lib/unictype/categ_Sk.c: New file.
61286         * lib/unictype/categ_Sm.c: New file.
61287         * lib/unictype/categ_So.c: New file.
61288         * lib/unictype/categ_Z.c: New file.
61289         * lib/unictype/categ_Zl.c: New file.
61290         * lib/unictype/categ_Zp.c: New file.
61291         * lib/unictype/categ_Zs.c: New file.
61292         * lib/unictype/categ_and.c: New file.
61293         * lib/unictype/categ_and_not.c: New file.
61294         * lib/unictype/categ_byname.c: New file.
61295         * lib/unictype/categ_name.c: New file.
61296         * lib/unictype/categ_none.c: New file.
61297         * lib/unictype/categ_of.c: New file.
61298         * lib/unictype/categ_or.c: New file.
61299         * lib/unictype/categ_test.c: New file.
61300         * lib/unictype/combining.c: New file.
61301         * lib/unictype/ctype_alnum.c: New file.
61302         * lib/unictype/ctype_alpha.c: New file.
61303         * lib/unictype/ctype_blank.c: New file.
61304         * lib/unictype/ctype_cntrl.c: New file.
61305         * lib/unictype/ctype_digit.c: New file.
61306         * lib/unictype/ctype_graph.c: New file.
61307         * lib/unictype/ctype_lower.c: New file.
61308         * lib/unictype/ctype_print.c: New file.
61309         * lib/unictype/ctype_punct.c: New file.
61310         * lib/unictype/ctype_space.c: New file.
61311         * lib/unictype/ctype_upper.c: New file.
61312         * lib/unictype/ctype_xdigit.c: New file.
61313         * lib/unictype/decdigit.c: New file.
61314         * lib/unictype/digit.c: New file.
61315         * lib/unictype/identsyntaxmap.h: New file.
61316         * lib/unictype/mirror.c: New file.
61317         * lib/unictype/numeric.c: New file.
61318         * lib/unictype/pr_alphabetic.c: New file.
61319         * lib/unictype/pr_ascii_hex_digit.c: New file.
61320         * lib/unictype/pr_bidi_arabic_digit.c: New file.
61321         * lib/unictype/pr_bidi_arabic_right_to_left.c: New file.
61322         * lib/unictype/pr_bidi_block_separator.c: New file.
61323         * lib/unictype/pr_bidi_boundary_neutral.c: New file.
61324         * lib/unictype/pr_bidi_common_separator.c: New file.
61325         * lib/unictype/pr_bidi_control.c: New file.
61326         * lib/unictype/pr_bidi_embedding_or_override.c: New file.
61327         * lib/unictype/pr_bidi_eur_num_separator.c: New file.
61328         * lib/unictype/pr_bidi_eur_num_terminator.c: New file.
61329         * lib/unictype/pr_bidi_european_digit.c: New file.
61330         * lib/unictype/pr_bidi_hebrew_right_to_left.c: New file.
61331         * lib/unictype/pr_bidi_left_to_right.c: New file.
61332         * lib/unictype/pr_bidi_non_spacing_mark.c: New file.
61333         * lib/unictype/pr_bidi_other_neutral.c: New file.
61334         * lib/unictype/pr_bidi_pdf.c: New file.
61335         * lib/unictype/pr_bidi_segment_separator.c: New file.
61336         * lib/unictype/pr_bidi_whitespace.c: New file.
61337         * lib/unictype/pr_byname.c: New file.
61338         * lib/unictype/pr_byname.gperf: New file.
61339         * lib/unictype/pr_combining.c: New file.
61340         * lib/unictype/pr_composite.c: New file.
61341         * lib/unictype/pr_currency_symbol.c: New file.
61342         * lib/unictype/pr_dash.c: New file.
61343         * lib/unictype/pr_decimal_digit.c: New file.
61344         * lib/unictype/pr_default_ignorable_code_point.c: New file.
61345         * lib/unictype/pr_deprecated.c: New file.
61346         * lib/unictype/pr_diacritic.c: New file.
61347         * lib/unictype/pr_extender.c: New file.
61348         * lib/unictype/pr_format_control.c: New file.
61349         * lib/unictype/pr_grapheme_base.c: New file.
61350         * lib/unictype/pr_grapheme_extend.c: New file.
61351         * lib/unictype/pr_grapheme_link.c: New file.
61352         * lib/unictype/pr_hex_digit.c: New file.
61353         * lib/unictype/pr_hyphen.c: New file.
61354         * lib/unictype/pr_id_continue.c: New file.
61355         * lib/unictype/pr_id_start.c: New file.
61356         * lib/unictype/pr_ideographic.c: New file.
61357         * lib/unictype/pr_ids_binary_operator.c: New file.
61358         * lib/unictype/pr_ids_trinary_operator.c: New file.
61359         * lib/unictype/pr_ignorable_control.c: New file.
61360         * lib/unictype/pr_iso_control.c: New file.
61361         * lib/unictype/pr_join_control.c: New file.
61362         * lib/unictype/pr_left_of_pair.c: New file.
61363         * lib/unictype/pr_line_separator.c: New file.
61364         * lib/unictype/pr_logical_order_exception.c: New file.
61365         * lib/unictype/pr_lowercase.c: New file.
61366         * lib/unictype/pr_math.c: New file.
61367         * lib/unictype/pr_non_break.c: New file.
61368         * lib/unictype/pr_not_a_character.c: New file.
61369         * lib/unictype/pr_numeric.c: New file.
61370         * lib/unictype/pr_other_alphabetic.c: New file.
61371         * lib/unictype/pr_other_default_ignorable_code_point.c: New file.
61372         * lib/unictype/pr_other_grapheme_extend.c: New file.
61373         * lib/unictype/pr_other_id_continue.c: New file.
61374         * lib/unictype/pr_other_id_start.c: New file.
61375         * lib/unictype/pr_other_lowercase.c: New file.
61376         * lib/unictype/pr_other_math.c: New file.
61377         * lib/unictype/pr_other_uppercase.c: New file.
61378         * lib/unictype/pr_paired_punctuation.c: New file.
61379         * lib/unictype/pr_paragraph_separator.c: New file.
61380         * lib/unictype/pr_pattern_syntax.c: New file.
61381         * lib/unictype/pr_pattern_white_space.c: New file.
61382         * lib/unictype/pr_private_use.c: New file.
61383         * lib/unictype/pr_punctuation.c: New file.
61384         * lib/unictype/pr_quotation_mark.c: New file.
61385         * lib/unictype/pr_radical.c: New file.
61386         * lib/unictype/pr_sentence_terminal.c: New file.
61387         * lib/unictype/pr_soft_dotted.c: New file.
61388         * lib/unictype/pr_space.c: New file.
61389         * lib/unictype/pr_terminal_punctuation.c: New file.
61390         * lib/unictype/pr_test.c: New file.
61391         * lib/unictype/pr_titlecase.c: New file.
61392         * lib/unictype/pr_unassigned_code_value.c: New file.
61393         * lib/unictype/pr_unified_ideograph.c: New file.
61394         * lib/unictype/pr_uppercase.c: New file.
61395         * lib/unictype/pr_variation_selector.c: New file.
61396         * lib/unictype/pr_white_space.c: New file.
61397         * lib/unictype/pr_xid_continue.c: New file.
61398         * lib/unictype/pr_xid_start.c: New file.
61399         * lib/unictype/pr_zero_width.c: New file.
61400         * lib/unictype/scripts.c: New file.
61401         * lib/unictype/sy_c_ident.c: New file.
61402         * lib/unictype/sy_c_whitespace.c: New file.
61403         * lib/unictype/sy_java_ident.c: New file.
61404         * lib/unictype/sy_java_whitespace.c: New file.
61405
61406         * lib/unictype/bidi_of.h: New file, generated by gen-ctype.c for
61407         Unicode 5.0.0.
61408         * lib/unictype/blocks.h: Likewise.
61409         * lib/unictype/categ_C.h: Likewise.
61410         * lib/unictype/categ_Cc.h: Likewise.
61411         * lib/unictype/categ_Cf.h: Likewise.
61412         * lib/unictype/categ_Cn.h: Likewise.
61413         * lib/unictype/categ_Co.h: Likewise.
61414         * lib/unictype/categ_Cs.h: Likewise.
61415         * lib/unictype/categ_L.h: Likewise.
61416         * lib/unictype/categ_Ll.h: Likewise.
61417         * lib/unictype/categ_Lm.h: Likewise.
61418         * lib/unictype/categ_Lo.h: Likewise.
61419         * lib/unictype/categ_Lt.h: Likewise.
61420         * lib/unictype/categ_Lu.h: Likewise.
61421         * lib/unictype/categ_M.h: Likewise.
61422         * lib/unictype/categ_Mc.h: Likewise.
61423         * lib/unictype/categ_Me.h: Likewise.
61424         * lib/unictype/categ_Mn.h: Likewise.
61425         * lib/unictype/categ_N.h: Likewise.
61426         * lib/unictype/categ_Nd.h: Likewise.
61427         * lib/unictype/categ_Nl.h: Likewise.
61428         * lib/unictype/categ_No.h: Likewise.
61429         * lib/unictype/categ_P.h: Likewise.
61430         * lib/unictype/categ_Pc.h: Likewise.
61431         * lib/unictype/categ_Pd.h: Likewise.
61432         * lib/unictype/categ_Pe.h: Likewise.
61433         * lib/unictype/categ_Pf.h: Likewise.
61434         * lib/unictype/categ_Pi.h: Likewise.
61435         * lib/unictype/categ_Po.h: Likewise.
61436         * lib/unictype/categ_Ps.h: Likewise.
61437         * lib/unictype/categ_S.h: Likewise.
61438         * lib/unictype/categ_Sc.h: Likewise.
61439         * lib/unictype/categ_Sk.h: Likewise.
61440         * lib/unictype/categ_Sm.h: Likewise.
61441         * lib/unictype/categ_So.h: Likewise.
61442         * lib/unictype/categ_Z.h: Likewise.
61443         * lib/unictype/categ_Zl.h: Likewise.
61444         * lib/unictype/categ_Zp.h: Likewise.
61445         * lib/unictype/categ_Zs.h: Likewise.
61446         * lib/unictype/categ_of.h: Likewise.
61447         * lib/unictype/combining.h: Likewise.
61448         * lib/unictype/ctype_alnum.h: Likewise.
61449         * lib/unictype/ctype_alpha.h: Likewise.
61450         * lib/unictype/ctype_blank.h: Likewise.
61451         * lib/unictype/ctype_cntrl.h: Likewise.
61452         * lib/unictype/ctype_digit.h: Likewise.
61453         * lib/unictype/ctype_graph.h: Likewise.
61454         * lib/unictype/ctype_lower.h: Likewise.
61455         * lib/unictype/ctype_print.h: Likewise.
61456         * lib/unictype/ctype_punct.h: Likewise.
61457         * lib/unictype/ctype_space.h: Likewise.
61458         * lib/unictype/ctype_upper.h: Likewise.
61459         * lib/unictype/ctype_xdigit.h: Likewise.
61460         * lib/unictype/decdigit.h: Likewise.
61461         * lib/unictype/digit.h: Likewise.
61462         * lib/unictype/mirror.h: Likewise.
61463         * lib/unictype/numeric.h: Likewise.
61464         * lib/unictype/pr_alphabetic.h: Likewise.
61465         * lib/unictype/pr_ascii_hex_digit.h: Likewise.
61466         * lib/unictype/pr_bidi_arabic_digit.h: Likewise.
61467         * lib/unictype/pr_bidi_arabic_right_to_left.h: Likewise.
61468         * lib/unictype/pr_bidi_block_separator.h: Likewise.
61469         * lib/unictype/pr_bidi_boundary_neutral.h: Likewise.
61470         * lib/unictype/pr_bidi_common_separator.h: Likewise.
61471         * lib/unictype/pr_bidi_control.h: Likewise.
61472         * lib/unictype/pr_bidi_embedding_or_override.h: Likewise.
61473         * lib/unictype/pr_bidi_eur_num_separator.h: Likewise.
61474         * lib/unictype/pr_bidi_eur_num_terminator.h: Likewise.
61475         * lib/unictype/pr_bidi_european_digit.h: Likewise.
61476         * lib/unictype/pr_bidi_hebrew_right_to_left.h: Likewise.
61477         * lib/unictype/pr_bidi_left_to_right.h: Likewise.
61478         * lib/unictype/pr_bidi_non_spacing_mark.h: Likewise.
61479         * lib/unictype/pr_bidi_other_neutral.h: Likewise.
61480         * lib/unictype/pr_bidi_pdf.h: Likewise.
61481         * lib/unictype/pr_bidi_segment_separator.h: Likewise.
61482         * lib/unictype/pr_bidi_whitespace.h: Likewise.
61483         * lib/unictype/pr_combining.h: Likewise.
61484         * lib/unictype/pr_composite.h: Likewise.
61485         * lib/unictype/pr_currency_symbol.h: Likewise.
61486         * lib/unictype/pr_dash.h: Likewise.
61487         * lib/unictype/pr_decimal_digit.h: Likewise.
61488         * lib/unictype/pr_default_ignorable_code_point.h: Likewise.
61489         * lib/unictype/pr_deprecated.h: Likewise.
61490         * lib/unictype/pr_diacritic.h: Likewise.
61491         * lib/unictype/pr_extender.h: Likewise.
61492         * lib/unictype/pr_format_control.h: Likewise.
61493         * lib/unictype/pr_grapheme_base.h: Likewise.
61494         * lib/unictype/pr_grapheme_extend.h: Likewise.
61495         * lib/unictype/pr_grapheme_link.h: Likewise.
61496         * lib/unictype/pr_hex_digit.h: Likewise.
61497         * lib/unictype/pr_hyphen.h: Likewise.
61498         * lib/unictype/pr_id_continue.h: Likewise.
61499         * lib/unictype/pr_id_start.h: Likewise.
61500         * lib/unictype/pr_ideographic.h: Likewise.
61501         * lib/unictype/pr_ids_binary_operator.h: Likewise.
61502         * lib/unictype/pr_ids_trinary_operator.h: Likewise.
61503         * lib/unictype/pr_ignorable_control.h: Likewise.
61504         * lib/unictype/pr_iso_control.h: Likewise.
61505         * lib/unictype/pr_join_control.h: Likewise.
61506         * lib/unictype/pr_left_of_pair.h: Likewise.
61507         * lib/unictype/pr_line_separator.h: Likewise.
61508         * lib/unictype/pr_logical_order_exception.h: Likewise.
61509         * lib/unictype/pr_lowercase.h: Likewise.
61510         * lib/unictype/pr_math.h: Likewise.
61511         * lib/unictype/pr_non_break.h: Likewise.
61512         * lib/unictype/pr_not_a_character.h: Likewise.
61513         * lib/unictype/pr_numeric.h: Likewise.
61514         * lib/unictype/pr_other_alphabetic.h: Likewise.
61515         * lib/unictype/pr_other_default_ignorable_code_point.h: Likewise.
61516         * lib/unictype/pr_other_grapheme_extend.h: Likewise.
61517         * lib/unictype/pr_other_id_continue.h: Likewise.
61518         * lib/unictype/pr_other_id_start.h: Likewise.
61519         * lib/unictype/pr_other_lowercase.h: Likewise.
61520         * lib/unictype/pr_other_math.h: Likewise.
61521         * lib/unictype/pr_other_uppercase.h: Likewise.
61522         * lib/unictype/pr_paired_punctuation.h: Likewise.
61523         * lib/unictype/pr_paragraph_separator.h: Likewise.
61524         * lib/unictype/pr_pattern_syntax.h: Likewise.
61525         * lib/unictype/pr_pattern_white_space.h: Likewise.
61526         * lib/unictype/pr_private_use.h: Likewise.
61527         * lib/unictype/pr_punctuation.h: Likewise.
61528         * lib/unictype/pr_quotation_mark.h: Likewise.
61529         * lib/unictype/pr_radical.h: Likewise.
61530         * lib/unictype/pr_sentence_terminal.h: Likewise.
61531         * lib/unictype/pr_soft_dotted.h: Likewise.
61532         * lib/unictype/pr_space.h: Likewise.
61533         * lib/unictype/pr_terminal_punctuation.h: Likewise.
61534         * lib/unictype/pr_titlecase.h: Likewise.
61535         * lib/unictype/pr_unassigned_code_value.h: Likewise.
61536         * lib/unictype/pr_unified_ideograph.h: Likewise.
61537         * lib/unictype/pr_uppercase.h: Likewise.
61538         * lib/unictype/pr_variation_selector.h: Likewise.
61539         * lib/unictype/pr_white_space.h: Likewise.
61540         * lib/unictype/pr_xid_continue.h: Likewise.
61541         * lib/unictype/pr_xid_start.h: Likewise.
61542         * lib/unictype/pr_zero_width.h: Likewise.
61543         * lib/unictype/scripts.h: Likewise.
61544         * lib/unictype/scripts_byname.gperf: Likewise.
61545         * lib/unictype/sy_c_ident.h: Likewise.
61546         * lib/unictype/sy_c_whitespace.h: Likewise.
61547         * lib/unictype/sy_java_ident.h: Likewise.
61548         * lib/unictype/sy_java_whitespace.h: Likewise.
61549
61550         * lib/unictype/Makefile: New file.
61551         * lib/unictype/gen-ctype.c: New file, based on gen-unicode-ctype.c in
61552         glibc.
61553         * lib/unictype/3level.h: New file, copied from glibc.
61554         * lib/unictype/3levelbit.h: New file.
61555
61556 2007-11-11  Bruno Haible  <bruno@clisp.org>
61557
61558         * modules/gperf: New file.
61559         * modules/iconv_open (Depends-on): Add it.
61560         (Makefile.am): Remove the GPERF definition.
61561
61562 2007-11-11  Bruno Haible  <bruno@clisp.org>
61563
61564         * m4/round.m4 (gl_FUNC_ROUND): Test against NetBSD 3.0 bug.
61565         * doc/functions/round.texi: Mention the NetBSD 3.0 bug.
61566
61567 2007-11-11  Bruno Haible  <bruno@clisp.org>
61568
61569         * tests/test-argmatch.c (ARGMATCH_DIE): Undefine.
61570         (usage): Remove function.
61571
61572 2007-11-11  Bruno Haible  <bruno@clisp.org>
61573
61574         * m4/roundf.m4 (gl_FUNC_ROUNDF): Use gl_FUNC_FLOORF_LIBS and
61575         gl_FUNC_CEILF_LIBS.
61576         * m4/round.m4 (gl_FUNC_ROUND): Use gl_FUNC_FLOOR_LIBS and
61577         gl_FUNC_CEIL_LIBS.
61578         * m4/roundl.m4 (gl_FUNC_ROUNDL): Use gl_FUNC_FLOORL_LIBS and
61579         gl_FUNC_CEILL_LIBS.
61580         * modules/roundf (Files): Add m4/floorf.m4, m4/ceilf.m4.
61581         * modules/round (Files): Add m4/floor.m4, m4/ceil.m4.
61582         * modules/roundl (Files): Add m4/floorl.m4, m4/ceill.m4.
61583
61584 2007-11-11  Bruno Haible  <bruno@clisp.org>
61585
61586         * m4/roundf.m4 (gl_FUNC_ROUNDF): Handle the case that floorf and
61587         roundf were declared but do not exist on functions.
61588         * m4/roundl.m4 (gl_FUNC_ROUNDL): Handle the case that floorl and
61589         roundl were declared but do not exist on functions.
61590         * lib/round.c (HAVE_FLOOR_AND_CEIL): Use HAVE_FLOORF_AND_CEILF and
61591         HAVE_FLOORL_AND_CEILL, respectively.
61592         Needed for Sun C on Solaris 10.
61593
61594 2007-11-11  Bruno Haible  <bruno@clisp.org>
61595
61596         * m4/roundf.m4 (gl_FUNC_ROUNDF): Set REPLACE_ROUNDF instead of
61597         HAVE_DECL_ROUNDF. Remove redundant AC_SUBST.
61598         * m4/round.m4 (gl_FUNC_ROUND): Set REPLACE_ROUND instead of
61599         HAVE_DECL_ROUND. Remove redundant AC_SUBST.
61600         * m4/roundl.m4 (gl_FUNC_ROUNDL): Set REPLACE_ROUNDL instead of
61601         HAVE_DECL_ROUNDL. Remove redundant AC_SUBST.
61602         * lib/math.in.h (roundf): Use REPLACE_ROUNDF instead of
61603         HAVE_DECL_ROUNDF.
61604         (round): Use REPLACE_ROUND instead of HAVE_DECL_ROUND.
61605         (roundl): Use REPLACE_ROUNDL instead of HAVE_DECL_ROUNDL.
61606         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_ROUND* instead
61607         of HAVE_DECL_ROUND*.
61608         * modules/math (Makefile.am): Update.
61609
61610 2007-11-10  Bruno Haible  <bruno@clisp.org>
61611
61612         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Use same check for
61613         ptrdiff_t as m4/intl.m4.
61614
61615 2007-11-10  Jim Meyering  <meyering@redhat.com>
61616
61617         Avoid link failure for the argmatch test.
61618         * tests/test-argmatch.c (usage): Define function to avoid a link
61619         failure: argmatch_die requires a usage function.
61620
61621 2007-11-09  Bruno Haible  <bruno@clisp.org>
61622
61623         * doc/functions/snprintf.texi: Mention BeOS deficiency.
61624         * doc/functions/vsnprintf.texi: Likewise.
61625         * lib/vasnprintf.c (VASNPRINTF): Ensure that we never call snprintf
61626         with a size argument < 2.
61627
61628 2007-11-09  Bruno Haible  <bruno@clisp.org>
61629
61630         * lib/vasnprintf.c (VASNPRINTF): Increase reallocation of snprintf
61631         buffer. Fixes an inefficiency introduced on 2007-11-03.
61632
61633 2007-11-09  Bruno Haible  <bruno@clisp.org>
61634
61635         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8) [BeOS]: Make this test return
61636         none instead of tr_TR. Fixes a failure of test-c-strcasecmp.c.
61637
61638 2007-11-08  Jim Meyering  <meyering@redhat.com>
61639
61640         Change cache variable name prefix "jm_" to "gl_" everywhere.
61641         * m4/d-type.m4, m4/jm-winsz1.m4, m4/jm-winsz2.m4, m4/link-follow.m4:
61642         * m4/putenv.m4, m4/strtoimax.m4, m4/strtoumax.m4, m4/unlink-busy.m4:
61643         * m4/uptime.m4: s/gl_/jm_/
61644
61645 2007-11-07  Bruno Haible  <bruno@clisp.org>
61646
61647         Update to GNU gettext 0.17.
61648         * m4/intl.m4: Update to GNU gettext 0.17.
61649         * m4/po.m4: Likewise.
61650         * modules/gettext (Files): Remove m4/ulonglong.m4.
61651         (configure.ac): Require gettext infrastructure from version 0.17.
61652
61653 2007-11-06  Bruno Haible  <bruno@clisp.org>
61654
61655         * lib/fbufmode.c (fbufmode) [QNX]: Use numerical values for flags; the
61656         symbolic values are not defined in a public header.
61657         * lib/freadable.c (freadable) [QNX]: Likewise.
61658         * lib/freadahead.c (freadahead) [QNX]: Likewise.
61659         * lib/freading.c (freading) [QNX]: Likewise.
61660         * lib/fseterr.c (fseterr) [QNX]: Likewise.
61661         * lib/fwritable.c (fwritable) [QNX]: Likewise.
61662         * lib/fwriting.c (fwriting) [QNX]: Likewise.
61663         * lib/fpurge.c (fpurge) [QNX]: Likewise. Add a return statement.
61664         Reported by Alain Magloire.
61665
61666         * m4/fpending.m4 (gl_FUNC_FPENDING): Add a variant for QNX.
61667
61668 2007-11-05  Bruno Haible  <bruno@clisp.org>
61669
61670         * lib/vasnprintf.c (VASNPRINTF): Expand the NEED_PRINTF_DIRECTIVE_A
61671         code when NEED_PRINTF_LONG_DOUBLE or NEED_PRINTF_DOUBLE is set.
61672         Needed on Cygwin, where !NEED_PRINTF_DIRECTIVE_A && NEED_PRINTF_DOUBLE.
61673         Reported by Eric Blake.
61674
61675 2007-10-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61676             Bruno Haible  <bruno@clisp.org>
61677
61678         * modules/malloc (configure.ac): Define GNULIB_MALLOC_GNU always.
61679         * modules/realloc (configure.ac): Define GNULIB_REALLOC_GNU always.
61680         * lib/realloc.c (SYSTEM_MALLOC_GLIBC_COMPATIBLE): New macro.
61681         (malloc): Undefine also before including <stdlib.h>.
61682         (rpl_realloc): Turn malloc(0) into malloc(1) if necessary.
61683         Needed on OSF/1 4.0.
61684
61685 2007-11-05  Jim Meyering  <meyering@redhat.com>
61686
61687         git-version-gen: sync from coreutils.
61688         * build-aux/git-version-gen: Add comments.
61689         Change the first '-' to '.' in the snapshot version string,
61690         e.g., 6.9-377-08144 -> 6.9.377-08144
61691         Remove first parameter.
61692         Don't declare a version "-dirty" merely because a time
61693         stamp has changed.
61694
61695 2007-11-04  Bruno Haible  <bruno@clisp.org>
61696
61697         * lib/lock.h: Protect all macro definitions containing an 'if'
61698         statement through a "do { ... } while (0)".
61699         * lib/tls.h: Likewise.
61700
61701 2007-11-04  Bruno Haible  <bruno@clisp.org>
61702
61703         * lib/vasnprintf.c (DCHAR_IS_TCHAR, DCHAR_CPY): Undefine at the end.
61704
61705 2007-11-04  Bruno Haible  <bruno@clisp.org>
61706
61707         * m4/printf.m4 (gl_PRINTF_ENOMEM): Use GL_NOCRASH.
61708         * modules/fprintf-posix (Depends-on): Add nocrash.
61709         * modules/snprintf-posix (Depends-on): Likewise.
61710         * modules/sprintf-posix (Depends-on): Likewise.
61711         * modules/vasnprintf-posix (Depends-on): Likewise.
61712         * modules/vasprintf-posix (Depends-on): Likewise.
61713         * modules/vfprintf-posix (Depends-on): Likewise.
61714         * modules/vsnprintf-posix (Depends-on): Likewise.
61715         * modules/vsprintf-posix (Depends-on): Likewise.
61716         * modules/unistdio/u8-vasnprintf (Depends-on): Likewise.
61717         * modules/unistdio/u8-u8-vasnprintf (Depends-on): Likewise.
61718         * modules/unistdio/u16-vasnprintf (Depends-on): Likewise.
61719         * modules/unistdio/u16-u16-vasnprintf (Depends-on): Likewise.
61720         * modules/unistdio/u32-vasnprintf (Depends-on): Likewise.
61721         * modules/unistdio/u32-u32-vasnprintf (Depends-on): Likewise.
61722         * modules/unistdio/ulc-vasnprintf (Depends-on): Likewise.
61723
61724 2007-11-04  Bruno Haible  <bruno@clisp.org>
61725
61726         * modules/nocrash: New file.
61727         * m4/nocrash.m4: New file, taken from GNU clisp. Code taken from
61728         GNU libsigsegv, with permission of GNU libsigsegv's copyright holders.
61729
61730 2007-11-04  Bruno Haible  <bruno@clisp.org>
61731
61732         * tests/test-vasnprintf-posix.c (test_function): Add some tests of
61733         precision handling.
61734         * tests/test-vasprintf-posix.c (test_function): Likewise.
61735         * tests/test-snprintf-posix.h (test_function): Likewise.
61736         * tests/test-sprintf-posix.h (test_function): Likewise.
61737
61738         Fix *printf behaviour for large precisions on mingw and BeOS.
61739         * m4/printf.m4 (gl_PRINTF_PRECISION): New macro.
61740         * lib/vasnprintf.c (VASNPRINTF): Handle NEED_PRINTF_UNBOUNDED_PRECISION.
61741         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_PRECISION): New macro.
61742         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61743         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61744         gl_PRINTF_PRECISION and test its result. Invoke
61745         gl_PREREQ_VASNPRINTF_PRECISION.
61746         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61747         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61748         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61749         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61750         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61751         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61752         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61753         * doc/functions/fprintf.texi: Update.
61754         * doc/functions/printf.texi: Update.
61755         * doc/functions/snprintf.texi: Update.
61756         * doc/functions/sprintf.texi: Update.
61757         * doc/functions/vfprintf.texi: Update.
61758         * doc/functions/vprintf.texi: Update.
61759         * doc/functions/vsnprintf.texi: Update.
61760         * doc/functions/vsprintf.texi: Update.
61761
61762 2007-11-04  Bruno Haible  <bruno@clisp.org>
61763
61764         * lib/vasnprintf.c (scale10_round_decimal_decoded): Fix shift loop.
61765
61766 2007-11-04  Bruno Haible  <bruno@clisp.org>
61767
61768         * modules/relocatable-prog (Files): Add m4/lib-ld.m4.
61769         Reported by Sylvain Beucler <beuc@gnu.org>.
61770
61771 2007-11-03  Bruno Haible  <bruno@clisp.org>
61772
61773         * tests/test-fprintf-posix2.sh: New file.
61774         * tests/test-fprintf-posix2.c: New file.
61775         * modules/fprintf-posix-tests (Files): Add them.
61776         (TESTS): Add test-fprintf-posix2.sh.
61777         (configure.ac): Check for getrlimit and setrlimit.
61778         (check_PROGRAMS): Add test-fprintf-posix2.
61779
61780         * tests/test-printf-posix2.sh: New file.
61781         * tests/test-printf-posix2.c: New file.
61782         * modules/printf-posix-tests (Files): Add them.
61783         (TESTS): Add test-printf-posix2.sh.
61784         (configure.ac): Check for getrlimit and setrlimit.
61785         (check_PROGRAMS): Add test-printf-posix2.
61786
61787         Fix *printf behaviour in out-of-memory situations on MacOS X and *BSD.
61788         * m4/printf.m4 (gl_PRINTF_ENOMEM): New macro.
61789         * lib/vasnprintf.c: Implement NEED_PRINTF_DOUBLE.
61790         (decode_double): New function, copied from decode_long_double.
61791         (scale10_round_decimal_decoded): New function, extracted from
61792         scale10_round_decimal_long_double.
61793         (scale10_round_decimal_long_double): Use it.
61794         (scale10_round_decimal_double): New function.
61795         (floorlog10): New function.
61796         (VASNPRINTF): Handle NEED_PRINTF_DOUBLE case.
61797         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_ENOMEM): New macro.
61798         (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): Invoke it.
61799         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
61800         gl_PRINTF_ENOMEM and test its result. Invoke
61801         gl_PREREQ_VASNPRINTF_ENOMEM.
61802         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
61803         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
61804         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
61805         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
61806         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
61807         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
61808         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
61809         * modules/fprintf-posix (Depends-on): Add frexp-nolibm.
61810         * modules/snprintf-posix (Depends-on): Likewise.
61811         * modules/sprintf-posix (Depends-on): Likewise.
61812         * modules/vasnprintf-posix (Depends-on): Likewise.
61813         * modules/vasprintf-posix (Depends-on): Likewise.
61814         * modules/vfprintf-posix (Depends-on): Likewise.
61815         * modules/vsnprintf-posix (Depends-on): Likewise.
61816         * modules/vsprintf-posix (Depends-on): Likewise.
61817         * doc/functions/fprintf.texi: Update.
61818         * doc/functions/printf.texi: Update.
61819         * doc/functions/snprintf.texi: Update.
61820         * doc/functions/sprintf.texi: Update.
61821         * doc/functions/vfprintf.texi: Update.
61822         * doc/functions/vprintf.texi: Update.
61823         * doc/functions/vsnprintf.texi: Update.
61824         * doc/functions/vsprintf.texi: Update.
61825
61826 2007-11-03  Bruno Haible  <bruno@clisp.org>
61827
61828         * modules/frexp-nolibm-tests: New file.
61829
61830         * modules/frexp-nolibm: New file.
61831         * m4/frexp.m4 (gl_FUNC_FREXP_NO_LIBM): New macro.
61832
61833 2007-11-03  Bruno Haible  <bruno@clisp.org>
61834
61835         * lib/vasnprintf.c (VASNPRINTF): Don't assume that snprintf's return
61836         value is C99 compliant.
61837         Needed for OSF/1 5.1.
61838
61839 2007-11-03  Bruno Haible  <bruno@clisp.org>
61840
61841         Fix out-of-memory handling of vasnprintf.
61842         * lib/printf-parse.c: Include <errno.h>.
61843         (PRINTF_PARSE): When failing, set errno to EINVAL or ENOMEM.
61844         * lib/vasnprintf.c (VASNPRINTF): When PRINTF_PARSE fails, assume errno
61845         is already set.
61846
61847 2007-11-02  Eric Blake  <ebb9@byu.net>
61848
61849         Fix tests on cygwin.
61850         * modules/xprintf-posix-tests (Makefile.am): Link against -lintl.
61851
61852 2007-11-01  Bruno Haible  <bruno@clisp.org>
61853
61854         * lib/stdlib.in.h (putenv): Remove the "not POSIX compliant everywhere"
61855         warning.
61856         * doc/functions/putenv.texi: Clarify that the 'putenv' module is not
61857         needed for POSIX compatibility.
61858
61859 2007-11-01  Paul Eggert  <eggert@cs.ucla.edu>
61860
61861         * m4/putenv.m4 (gl_FUNC_PUTENV): Also mention that we're checking
61862         for compatibility with GNU.
61863
61864 2007-11-01  Bruno Haible  <bruno@clisp.org>
61865
61866         * lib/putenv.c: Include <stdlib.h>. Remove rpl_putenv declaration.
61867         (putenv): Renamed from rpl_putenv. Change argument type from
61868         'const char *' to 'char *'.
61869         * m4/putenv.m4 (gl_FUNC_PUTENV): Require gl_STDLIB_H_DEFAULTS. Instead
61870         of defining putenv in config.h, just set REPLACE_PUTENV.
61871         * modules/putenv (Depends-on): Add stdlib.
61872         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
61873         (Include): Use <stdlib.h>.
61874         * lib/stdlib.in.h (putenv): New declaration.
61875         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize GNULIB_PUTENV and
61876         REPLACE_PUTENV.
61877         * modules/stdlib (Makefile.am): Substitute GNULIB_PUTENV and
61878         REPLACE_PUTENV.
61879         Needed for MacOS X 10.5.0.
61880         Reported by Peter O'Gorman <peter@pogma.com>.
61881
61882 2007-11-01  Jim Meyering  <meyering@redhat.com>
61883
61884         Treat an empty date string exactly like "0".
61885         * lib/getdate.y (get_date): Once any isspace or TZ= prefix is consumed,
61886         if the remaining date string (to be parsed) is empty, use "0".
61887         Reported by Mischa Molhoek and discussed in this thread:
61888         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/11726>.
61889
61890 2007-10-31  Bruno Haible  <bruno@clisp.org>
61891
61892         * m4/intmax_t.m4 (gl_AC_TYPE_INTMAX_T, gt_AC_TYPE_INTMAX_T): Use
61893         AC_TYPE_LONG_LONG_INT instead of gl_AC_TYPE_LONG_LONG.
61894         * m4/uintmax_t.m4 (gl_AC_TYPE_UINTMAX_T): Use
61895         AC_TYPE_UNSIGNED_LONG_LONG_INT instead of gl_AC_TYPE_UNSIGNED_LONG_LONG.
61896         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Remove macro.
61897         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Remove macro.
61898
61899 2007-10-31  Bruno Haible  <bruno@clisp.org>
61900
61901         * m4/longlong.m4 (_AC_TYPE_LONG_LONG_SNIPPET): New macro, extracted
61902         from AC_TYPE_LONG_LONG_INT and AC_TYPE_UNSIGNED_LONG_LONG_INT.
61903         (AC_TYPE_LONG_LONG_INT): Use it.
61904         (AC_TYPE_UNSIGNED_LONG_LONG_INT): Moved here from m4/ulonglong.m4. Use
61905         it as well.
61906         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Remove macro; moved
61907         to m4/longlong.m4.
61908         * modules/stdint (Files): Remove m4/ulonglong.m4.
61909         * modules/strtoull (Files): Use m4/longlong.m4 instead of
61910         m4/ulonglong.m4.
61911         * modules/strtoumax (Files): Likewise.
61912
61913 2007-10-30  Bruno Haible  <bruno@clisp.org>
61914
61915         * modules/xvasprintf-posix: New file.
61916         Suggested by Eric Blake.
61917
61918 2007-10-30  Bruno Haible  <bruno@clisp.org>
61919
61920         * modules/xprintf-posix-tests: New file.
61921         * tests/test-xprintf-posix.sh: New file.
61922         * tests/test-xprintf-posix.c: New file.
61923         * tests/test-xfprintf-posix.c: New file.
61924
61925         * modules/xprintf-posix: New file.
61926
61927 2007-10-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
61928
61929         * modules/fbufmode-tests (MOSTLYCLEANFILES): Remove temp files.
61930         * modules/freadable-tests (MOSTLYCLEANFILES): Likewise.
61931         * modules/fwritable-tests (MOSTLYCLEANFILES): Likewise.
61932
61933 2007-10-29  Bruno Haible  <bruno@clisp.org>
61934
61935         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): Rename the cache variable to
61936         contain the special marker '_cv_'.
61937         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): Likewise.
61938         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): Likewise.
61939         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): Likewise.
61940         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): Likewise.
61941         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): Likewise.
61942         Reported by Ralf Wildenhues.
61943
61944 2007-10-29  Bruno Haible  <bruno@clisp.org>
61945
61946         * gnulib-tool (func_import): When --lgpl is not specified, set
61947         sed_transform_lib_file to convert LGPL and GPLv2+ copyright headers to
61948         GPLv3.
61949         Reported by Simon Josefsson.
61950
61951 2007-10-28  Bruno Haible  <bruno@clisp.org>
61952
61953         * lib/math.in.h: Test REPLACE_ISFINITE instead of HAVE_DECL_ISFINITE.
61954         * m4/isfinite.m4 (gl_ISFINITE): Initialize REPLACE_ISFINITE instead of
61955         HAVE_DECL_ISFINITE.
61956         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61957         * modules/math (Makefile.am): Substitute REPLACE_ISFINITE instead of
61958         HAVE_DECL_ISFINITE.
61959
61960 2007-10-28  Bruno Haible  <bruno@clisp.org>
61961
61962         * lib/stdint.in.h (_STDINT_MAX): Subtract 1 from an unused signed
61963         integer shift in the signed case. Fixes warnings with OSF/1 5.1 cc.
61964
61965 2007-10-28  Bruno Haible  <bruno@clisp.org>
61966
61967         Fix link errors with Sun C 5.0 on Solaris 10.
61968         * m4/floorf.m4 (gl_FUNC_FLOORF): Consider also the case that the
61969         function is declared but not present in the compiler's libm.
61970         * m4/floorl.m4 (gl_FUNC_FLOORL): Likewise.
61971         * m4/ceilf.m4 (gl_FUNC_CEILF): Likewise.
61972         * m4/ceill.m4 (gl_FUNC_CEILL: Likewise.
61973         * lib/math.in.h: Test REPLACE_CEILF instead of HAVE_DECL_CEILF.
61974         Test REPLACE_CEILL instead of HAVE_DECL_CEILL.
61975         Test REPLACE_FLOORF instead of HAVE_DECL_FLOORF.
61976         Test REPLACE_FLOORL instead of HAVE_DECL_FLOORL.
61977         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Update.
61978         * modules/math (Makefile.am): Substitute REPLACE_CEILF instead of
61979         HAVE_DECL_CEILF, REPLACE_CEILL instead of HAVE_DECL_CEILL,
61980         REPLACE_FLOORF instead of HAVE_DECL_FLOORF, REPLACE_FLOORL instead of
61981         HAVE_DECL_FLOORL.
61982
61983 2007-10-28  Bruno Haible  <bruno@clisp.org>
61984
61985         * m4/floorl.m4 (gl_FUNC_FLOORL_LIBS): New macro, extracted from
61986         gl_FUNC_FLOORL. Cache the result.
61987         (gl_FUNC_FLOORL): Use it.
61988         * m4/ceill.m4 (gl_FUNC_CEILL_LIBS): New macro, extracted from
61989         gl_FUNC_CEILL. Cache the result.
61990         (gl_FUNC_CEILL): Use it.
61991
61992         * m4/floor.m4 (gl_FUNC_FLOOR_LIBS): New macro, extracted from
61993         gl_FUNC_FLOOR. Cache the result.
61994         (gl_FUNC_FLOOR): Use it.
61995         * m4/ceil.m4 (gl_FUNC_CEIL_LIBS): New macro, extracted from
61996         gl_FUNC_CEIL. Cache the result.
61997         (gl_FUNC_CEIL): Use it.
61998
61999         * m4/floorf.m4 (gl_FUNC_FLOORF_LIBS): New macro, extracted from
62000         gl_FUNC_FLOORF. Cache the result.
62001         (gl_FUNC_FLOORF): Use it.
62002         * m4/ceilf.m4 (gl_FUNC_CEILF_LIBS): New macro, extracted from
62003         gl_FUNC_CEILF. Cache the result.
62004         (gl_FUNC_CEILF): Use it.
62005
62006 2007-10-28  Bruno Haible  <bruno@clisp.org>
62007
62008         * gnulib-tool: Allow specifying the LGPL version number through
62009         --lgpl=2 or --lgpl=3.
62010         (func_usage): Document --lgpl with argument.
62011         Handle --lgpl=... arguments.
62012         (func_import): Recognize also gl_LGPL calls with an argument. When
62013         --lgpl=2 is used and the module's license is just LGPL, report an
62014         error. Set sed_transform_lib_file according to the lgpl variable. In
62015         the generated files, use --lgpl or gl_LGPL invocations with argument,
62016         if necessary.
62017         * doc/gnulib-intro.texi (Copyright): Explain how to get modules under
62018         an LGPv2+ license.
62019         * doc/gnulib-tool.texi (Modified imports): Update explanation of
62020         gl_LGPL macro.
62021
62022 2007-10-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62023             Bruno Haible  <bruno@clisp.org>
62024
62025         * lib/unistr.h (u8_uctomb_aux): Declare also if !HAVE_INLINE.
62026         (u16_uctomb_aux): Likewise.
62027         * lib/unistr/u8-uctomb-aux.c (u8_uctomb_aux): Define also if
62028         !HAVE_INLINE.
62029         * lib/unistr/u16-uctomb-aux.c (u16_uctomb_aux): Likewise
62030
62031 2007-10-28  Bruno Haible  <bruno@clisp.org>
62032
62033         * modules/error: Add a notice recommending to change XGETTEXT_OPTIONS.
62034         Invoke AM_GETTEXT_OPTION if it exists.
62035         * modules/vasprintf: Likewise.
62036         * modules/verror: Likewise.
62037         * modules/xprintf: Likewise.
62038         * modules/xvasprintf: Likewise.
62039
62040 2007-10-27  Ben Pfaff  <blp@gnu.org>
62041
62042         * lib/math.in.h: Define isfinite macro and prototypes for
62043         gl_isfinitef, gl_isfinited, gl_isfinitel if we are providing
62044         implementations.
62045         * m4/math_h.m4: New substitutions for isfinite module.
62046         * lib/isfinite.c: New file.
62047         * m4/isfinite.m4: New file.
62048         * modules/math: Replace isfinite-related @VARS@ in math.in.h.
62049         * modules/isfinite: New file.
62050         * modules/isfinite-tests: New file.
62051         * tests/tests-isfinite.c: New file.
62052         * doc/functions/isfinite.texi: Mention isfinite module.
62053         * MODULES.html.sh: Mention new module.
62054
62055 2007-10-27  Ben Pfaff  <blp@gnu.org>
62056
62057         Ralf Wildenhues reported that Tru64 4.0D declares the round
62058         functions but does not have definitions.
62059         * m4/check-math-lib.m4 (gl_CHECK_MATH_LIB): If the target function
62060         cannot be found in any library, set the output variable to
62061         "missing" instead of "".
62062         * m4/round.m4: Also use our substitute if we cannot find round in
62063         any library, even if it is declared.
62064         * m4/roundf.m4: Likewise for roundf.
62065         * m4/roundl.m4: Likewise for roundl.
62066         * lib/math.in.h: Undefine roundf, round, roundl before defining
62067         their replacements, to allow for hypothetical systems where these
62068         may be defined as macros but not available in libraries.
62069
62070 2007-10-27  Bruno Haible  <bruno@clisp.org>
62071
62072         * doc/gnulib.texi: Invoke @firstparagraphindent.
62073         * doc/gnulib-tool.texi (Simple update): Mention possible incompatible
62074         changes in gnulib.
62075         (Source changes): New section.
62076
62077 2007-10-26  Bruno Haible  <bruno@clisp.org>
62078
62079         * m4/gnulib-common.m4 (AC_C_RESTRICT): New overriding definition,
62080         borrowed from autoconf.
62081
62082 2007-10-26  Bruno Haible  <bruno@clisp.org>
62083
62084         * lib/strerror.c (rpl_strerror): Return "Unknown error ..." also if
62085         strerror returned the empty string. Needed on HP-UX 11.00.
62086
62087 2007-10-24  Micah Cowan  <micah@cowan.name>
62088
62089         Remove vestiges of cvs-gnulib-checkout process.  Now we use git.
62090         * build-aux/bootstrap: Remove support for now-unnecessary option,
62091         --cvs-user, and envvars CVS_USER, CVS_RSH.
62092
62093 2007-10-24  Jim Meyering  <meyering@redhat.com>
62094
62095         Avoid diagnostics from sha1sum when there is no cached checksum.
62096         * build-aux/bootstrap (update_po_files): Skip the sha1sum check
62097         if the po.s1 file hasn't been created yet.
62098
62099         * build-aux/bootstrap: Sync from coreutils:
62100         2007-10-24  Jim Meyering  <meyering@redhat.com>
62101         Get gnulib from the git repository, not from an obsolete cvs one.
62102         * build-aux/bootstrap: Suggestion from Micah Cowan.
62103         2007-10-04  Jim Meyering  <jim@meyering.net>
62104         * build-aux/bootstrap (slurp): Adapt to _.h -> .in.h name change.
62105         (update_po_files): Work also when there are no .po files in po/.
62106
62107 2007-10-24  Paul Eggert  <eggert@cs.ucla.edu>
62108
62109         * README: Append ".git" to git and cg examples.
62110         Problem reported by Benoit Sigoure.
62111
62112 2007-10-23  Micah Cowan  <micah@cowan.name>
62113
62114         * users.txt: Add wget.
62115
62116 2007-10-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62117
62118         Fix linking of some unistdio tests on FreeBSD.
62119         * modules/unistdio/u16-vsnprintf-tests
62120         (test_u16_vsprintf1_LDADD): Add @LIBINTL@.
62121         * modules/unistdio/u16-vsprintf-tests
62122         (test_u16_vsnprintf1_LDADD): Likewise.
62123         * modules/unistdio/u32-vsnprintf-tests
62124         (test_u32_vsnprintf1_LDADD): Likewise.
62125         * modules/unistdio/u32-vsprintf-tests
62126         (test_u32_vsprintf1_LDADD): Likewise.
62127         * modules/unistdio/u8-vsnprintf-tests
62128         (test_u8_vsnprintf1_LDADD): Likewise.
62129         * modules/unistdio/u8-vsprintf-tests
62130         (test_u8_vsprintf1_LDADD): Likewise.
62131         * modules/unistdio/ulc-vsnprintf-tests
62132         (test_ulc_vsnprintf1_LDADD): Likewise.
62133         * modules/unistdio/ulc-vsprintf-tests
62134         (test_ulc_vsprintf1_LDADD): Likewise.
62135
62136         Fix linking of some uniconv tests on FreeBSD.
62137         * modules/uniconv/u16-conv-from-enc-tests
62138         (test_u16_conv_from_enc_LDADD): Link $(LDADD) before @LIBICONV@.
62139         * modules/uniconv/u16-conv-to-enc-tests
62140         (test_u16_conv_to_enc_LDADD): Likewise.
62141         * modules/uniconv/u16-strconv-from-enc-tests
62142         (test_u16_strconv_from_enc_LDADD): Likewise.
62143         * modules/uniconv/u16-strconv-to-enc-tests
62144         (test_u16_strconv_to_enc_LDADD): Likewise.
62145         * modules/uniconv/u32-conv-from-enc-tests
62146         (test_u32_conv_from_enc_LDADD): Likewise.
62147         * modules/uniconv/u32-conv-to-enc-tests
62148         (test_u32_conv_to_enc_LDADD): Likewise.
62149         * modules/uniconv/u32-strconv-from-enc-tests
62150         (test_u32_strconv_from_enc_LDADD): Likewise.
62151         * modules/uniconv/u32-strconv-to-enc-tests
62152         (test_u32_strconv_to_enc_LDADD): Likewise.
62153         * modules/uniconv/u8-conv-from-enc-tests
62154         (test_u8_conv_from_enc_LDADD): Likewise.
62155         * modules/uniconv/u8-conv-to-enc-tests
62156         (test_u8_conv_to_enc_LDADD): Likewise.
62157         * modules/uniconv/u8-strconv-from-enc-tests
62158         (test_u8_strconv_from_enc_LDADD): Likewise.
62159         * modules/uniconv/u8-strconv-to-enc-tests
62160         (test_u8_strconv_to_enc_LDADD): Likewise.
62161
62162 2007-10-22  Bruno Haible  <bruno@clisp.org>
62163
62164         * lib/stdint.in.h: Add check that intmax_t and uintmax_t have the same
62165         size.
62166
62167 2007-10-22  Eric Blake  <ebb9@byu.net>
62168
62169         Tweak x*printf documentation.
62170         * lib/xprintf.c (xprintf, xvprintf, xfprintf, xvfprintf): Adjust
62171         variable name and comments.
62172         Suggested by Bruno Haible.
62173
62174 2007-10-22  Bruno Haible  <bruno@clisp.org>
62175
62176         * lib/acl.c (copy_acl): Fix file name in comment.
62177
62178 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62179
62180         Fix Tru64 problem with stdbool.h.
62181         * lib/stdbool.in.h (false, true):
62182         [! (defined __cplusplus || defined __BEOS__) && !defined __GNUC__]:
62183         Don't declare as an enum in this situation; it runs afoul of Tru64.
62184         Problem reported by Steven M. Schweda in
62185         <http://lists.gnu.org/archive/html/bug-autoconf/2007-10/msg00019.html>.
62186
62187 2007-10-22  Eric Blake  <ebb9@byu.net>
62188
62189         Also wrap vf?printf.
62190         * lib/xprintf.h (xvprintf, xvfprintf): New declarations.
62191         * lib/xprintf.c (xprintf, xfprintf): Work for C89.
62192         (xvprintf, xvfprintf): New functions.
62193
62194 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62195
62196         * modules/fstrcmp-tests (test_fstrcmp_LDADD): New, add
62197         @LIBINTL@ for FreeBSD 6.2, $(LIBTHREAD) for AIX 4.3.3.
62198
62199         * lib/uniconv/u16-conv-to-enc.c (U_MBLEN): Define.
62200         * lib/uniconv/u32-conv-to-enc.c (U_MBLEN): Likewise.
62201
62202 2007-10-22  Paul Eggert  <eggert@cs.ucla.edu>
62203
62204         * lib/acl.c (copy_acl): Adjust to IRIX 6.5.  Problem reported
62205         by Bruno Haible.
62206
62207 2007-10-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62208
62209         * lib/getloadavg.c
62210         [defined (__osf__) && (defined (__alpha) || defined (__alpha__)]:
62211         Undef `sys' after including sys/table.h, for Tru64 4.0D.
62212
62213         * tests/test-i-ring.c: Work for C89.
62214
62215 2007-10-22  Bruno Haible  <bruno@clisp.org>
62216
62217         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Use -1ull, not
62218         -1u, in preprocessor expression, so that we don't test for the bug
62219         in HP-UX 11.00 cpp.  Testing for this bug caused problems; see
62220         <http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00329.html>.
62221
62222 2007-10-22  Eric Blake  <ebb9@byu.net>
62223
62224         * tests/test-yesno.sh: Silence stderr during test.
62225
62226 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62227
62228         * modules/crypto/gc-camellia: New file.
62229
62230         * m4/gc-camellia.m4: New file.
62231
62232         * lib/gc-libgcrypt.c (gc_cipher_open): Support Camellia.
62233
62234         * lib/gc.h (enum Gc_cipher): Add GC_CAMELLIA128, GC_CAMELLIA256.
62235
62236 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62237
62238         * build-aux/maint.mk (gzip_rsyncable): Don't fail if gzip sends
62239         --help to stdout.  Reported by sms@antinode.org (Steven
62240         M. Schweda).
62241
62242 2007-10-22  Simon Josefsson  <simon@josefsson.org>
62243
62244         * users.txt: Fix link to libksba.
62245
62246 2007-10-21  Ben Pfaff  <blp@gnu.org>
62247
62248         * modules/roundf-tests: Add dependency on floorf, ceilf to allow
62249         round.c roundf implementation that depends on floorf and ceilf to
62250         be tested unconditionally.
62251
62252 2007-10-21  Ben Pfaff  <blp@gnu.org>
62253
62254         * m4/check-libm-func.m4: Removed.
62255         * m4/check-math-lib.m4: New file.
62256         * m4/round.m4: Rewrite to use gl_CHECK_MATH_LIB.
62257         * m4/roundf.m4: Ditto, and fix lack of HAVE_DECL_ROUNDF
62258         definition and lack of AC_LIBOBJ([roundf]).
62259         * m4/roundl.m4: Ditto, and similarly for roundl.
62260         * modules/round: Reference new m4 file.
62261         * modules/roundf: Ditto.
62262         * modules/roundl: Ditto.
62263         * tests/test-round2.c (main): Use ROUND instead of round.
62264         Bug report from Bruno Haible.
62265
62266 2007-10-21  Bruno Haible  <bruno@clisp.org>
62267
62268         * lib/printf-parse.c: Don't assume <stdint.h> exists in IN_LIBASPRINTF
62269         context.
62270
62271 2007-10-21  Bruno Haible  <bruno@clisp.org>
62272
62273         * tests/test-wcwidth.c (main): Allow negative result for some control
62274         characters.
62275
62276         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Check also the width of U+200B.
62277         Needed on OSF/1 5.1.
62278
62279 2007-10-21  Bruno Haible  <bruno@clisp.org>
62280
62281         * tests/test-floorf1.c: Include isnanf.h.
62282         (main): Use isnanf() instead of isnan().
62283         * tests/test-ceilf1.c: Include isnanf.h.
62284         (main): Use isnanf() instead of isnan().
62285         * tests/test-truncf1.c: Include isnanf.h.
62286         (main): Use isnanf() instead of isnan().
62287         * tests/test-roundf1.c: Include isnanf.h.
62288         (main): Use isnanf() instead of isnan().
62289
62290 2007-10-21  Eric Blake  <ebb9@byu.net>
62291
62292         * users.txt: Update URL for m4.
62293
62294 2007-10-21  Bruno Haible  <bruno@clisp.org>
62295
62296         * users.txt: Add clisp. Update URLs to Simon Josefsson's projects.
62297
62298 2007-10-21  Bruno Haible  <bruno@clisp.org>
62299
62300         * gnulib-tool (func_create_megatestdir): Determine the cvsdate from
62301         Git's management files if the CVS files are not present.
62302
62303 2007-10-20  Bruno Haible  <bruno@clisp.org>
62304
62305         * lib/count-one-bits.h (COUNT_ONE_BITS): Use the builtin also for
62306         gcc-3.4.x.
62307
62308 2007-10-20  Ben Pfaff  <blp@gnu.org>
62309
62310         * lib/math.in.h: Declare round, roundf, roundl if we are providing
62311         implementations.
62312         * m4/math_h.m4: New substitutions for round, roundf, roundl modules.
62313         * lib/round.c: New file.
62314         * lib/roundf.c: New file.
62315         * lib/roundl.c: New file.
62316         * m4/round.m4: New file.
62317         * m4/roundf.m4: New file.
62318         * m4/roundl.m4: New file.
62319         * m4/check-libm-func-m4: New file.
62320         * modules/math: Replace round, roundf, roundl related @VARS@ in
62321         math.in.h.
62322         * modules/round: New file.
62323         * modules/round-tests: New file.
62324         * modules/roundf: New file.
62325         * modules/roundf-tests: New file.
62326         * modules/roundl: New file.
62327         * modules/roundl-tests: New file.
62328         * tests/test-round1.c: New file.
62329         * tests/test-round2.c: New file.
62330         * tests/test-roundf1.c: New file.
62331         * tests/test-roundf2.c: New file.
62332         * tests/test-roundl.c: New file.
62333         * doc/functions/round.texi: Mention round module.
62334         * doc/functions/roundf.texi: Mention roundf module.
62335         * doc/functions/roundl.texi: Mention roundl module.
62336         * MODULES.html.sh: Mention new modules.
62337         Thanks to Bruno Haible for suggestions.
62338
62339 2007-10-20  Jim Meyering  <meyering@redhat.com>
62340
62341         * lib/xprintf.c: Include <config.h> unconditionally.
62342
62343         Change xprintf's license to GPL.
62344         * modules/xprintf (License): s/LGPL/GPL/, since this module
62345         depends on modules (exit and exitfail) which are GPL.
62346         Suggestion from Bruno Haible.
62347
62348         xprintf fixes.
62349         * lib/xprintf.c (xprintf, xfprintf): Use va_end.
62350         Use a clearer diagnostic.
62351         Patch from Bruno Haible.
62352
62353 2007-10-20  Bruno Haible  <bruno@clisp.org>
62354
62355         * lib/vasnprintf.c (VASNPRINTF): Don't report overflow if the available
62356         length is INT_MAX and sizeof (DCHAR_T) > sizeof (TCHAR_T).
62357         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62358
62359 2007-10-20  Bruno Haible  <bruno@clisp.org>
62360
62361         * tests/test-floorf2.c (correct_result_p): Don't rely on excess
62362         precision in the comparison result > x - 1 or similar.
62363         * tests/test-ceilf2.c (correct_result_p): Likewise.
62364         * tests/test-truncf2.c (correct_result_p): Likewise.
62365         * tests/test-trunc2.c (correct_result_p): Likewise.
62366         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
62367
62368 2007-10-20  Bruno Haible  <bruno@clisp.org>
62369
62370         * modules/ceil: New file.
62371         * m4/ceil.m4: New file.
62372         * doc/functions/ceil.texi: Mention the 'ceil' module.
62373
62374 2007-10-20  Bruno Haible  <bruno@clisp.org>
62375
62376         * modules/floor: New file.
62377         * m4/floor.m4: New file.
62378         * doc/functions/floor.texi: Mention the 'floor' module.
62379
62380 2007-10-20  Bruno Haible  <bruno@clisp.org>
62381
62382         * modules/ceilf-tests (Depends-on): Add fprintf-posix. Needed for use
62383         of %a.
62384         * modules/floorf-tests (Depends-on): Likewise.
62385         * modules/truncf-tests (Depends-on): Likewise.
62386         * modules/trunc-tests (Depends-on): Likewise.
62387         Reported by Ben Pfaff.
62388
62389 2007-10-19  Jim Meyering  <meyering@redhat.com>
62390
62391         * lib/xprintf.c (xprintf, xfprintf): Test err < 0, not just "err".
62392         Don't bother testing specific errno values.  Just test ferror.
62393
62394         New module: xprintf
62395         * modules/xprintf, lib/xprintf.c, lib/xprintf.h: New files.
62396
62397 2007-10-19  Bruno Haible  <bruno@clisp.org>
62398
62399         * modules/csharpexec (Makefile.am): Use @FOO@ syntax instead of $(FOO)
62400         syntax.
62401         * modules/javaexec (Makefile.am): Likewise.
62402         * modules/relocatable-prog (Makefile.am): Likewise.
62403         Suggested by Jim Meyering.
62404
62405 2007-10-18  Bruno Haible  <bruno@clisp.org>
62406
62407         * lib/vasnprintf.c (VASNPRINTF): Don't use %n on glibc >= 2.3 systems.
62408         Reported by Jim Meyering.
62409
62410 2007-10-18  Eric Blake  <ebb9@byu.net>
62411
62412         * modules/filenamecat-tests (Makefile.am): Link against -lintl.
62413
62414 2007-10-18  Bruno Haible  <bruno@clisp.org>
62415
62416         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_N, gl_SNPRINTF_DIRECTIVE_N): Put
62417         the format string into writable memory. Needed in Fortify conditions.
62418
62419 2007-10-18  Colin Watson <cjwatson@debian.org>  (tiny change)
62420             Bruno Haible  <bruno@clisp.org>
62421
62422         * lib/trim.c: Include config.h unconditionally. Include trim.h always.
62423         Include ctype.h always. Include stdlib.h, not mbuiter.h, for MB_CUR_MAX.
62424         * modules/trim (Depends-on): Add mbchar.
62425         (configure.ac): Add gl_FUNC_MBRTOWC.
62426         (Makefile.am): Augment lib_SOURCES.
62427
62428 2007-10-17  Paul Eggert  <eggert@cs.ucla.edu>
62429
62430         Modify glob.c to use fstatat and dirfd, to simplify it.
62431         Suggested by Eric Blake.
62432         * lib/glob.c (__fxstatat64) [!_LIBC]: New macro.
62433         Don't include <stdbool.h>; not used.
62434         (link_exists2_p, glob_in_dir) [!_LIBC]: No longer a special case.
62435         (link_exists_p): Simplify implementation, since we can now assume
62436         dirfd and fstatat.
62437         * modules/glob (Depends-on): Add dirfd, openat.  Remove stdbool.
62438
62439 2007-10-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62440
62441         * gnulib-tool (func_get_dependencies): Fix sed script to
62442         match only tests.
62443
62444 2007-10-17  Bruno Haible  <bruno@clisp.org>
62445
62446         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): On Cygwin, don't
62447         allow locale names without encoding suffix.
62448         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): Likewise.
62449         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
62450
62451 2007-10-16  Bruno Haible  <bruno@clisp.org>
62452
62453         * lib/getcwd.c (__getcwd): Define with explicit rpl_ prefix.
62454         * lib/getgroups.c (getgroups): Likewise.
62455         * lib/gettimeofday.c (localtime, gmtime, tzset): Likewise.
62456
62457 2007-10-16  Bruno Haible  <bruno@clisp.org>
62458
62459         * modules/absolute-header (License): Change from LGPL to LGPLv2+.
62460         * modules/malloc-posix (License): Likewise.
62461         * modules/realloc-posix (License): Likewise.
62462         * modules/calloc-posix (License): Likewise.
62463         * modules/intprops (License): Change from GPL to LGPL, with
62464         Paul Eggert's approval.
62465
62466 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62467
62468         Merge glibc changes into lib/glob.c.
62469
62470         * lib/glob.c (glob_in_dir): Sync with glibc/posix/glob.c, dated
62471         2007-10-15 04:59:03 UTC.  Here are the changes:
62472
62473         2007-10-14  Ulrich Drepper  <drepper@redhat.com>
62474
62475         * lib/glob.c: Reimplement link_exists_p to use fstatat64.
62476
62477         * lib/glob.c: Add some branch prediction throughout.
62478
62479         2007-10-07  Ulrich Drepper  <drepper@redhat.com>
62480
62481         [BZ #5103]
62482         * lib/glob.c (glob): Recognize patterns starting \/.
62483
62484         2007-02-14  Jakub Jelinek  <jakub@redhat.com>
62485
62486         [BZ #3996]
62487         * lib/glob.c (attribute_hidden): Define if not defined.
62488         (glob): Unescape dirname, filename or username when needed and not
62489         GLOB_NOESCAPE.  Handle \/ correctly.  Handle GLOB_MARK if filename
62490         is NULL.  Handle unescaped [ in pattern without closing ].
62491         Don't pass GLOB_CHECK down to recursive glob for directories.
62492         (__glob_pattern_type): New function.
62493         (__glob_pattern_p): Implement using __glob_pattern_type.
62494         (glob_in_dir): Handle GLOB_NOCHECK patterns containing no meta
62495         characters and backslashes if not GLOB_NOESCAPE or unterminated [.
62496         Remove unreachable code.
62497
62498         2006-09-30  Ulrich Drepper  <drepper@redhat.com>
62499
62500         * lib/glob.c (glob_in_dir): Add some comments and asserts to
62501         explain why there are no leaks.
62502
62503         2006-09-25  Jakub Jelinek  <jakub@redhat.com>
62504
62505         [BZ #3253]
62506         * lib/glob.c (glob_in_dir): Don't alloca one struct globlink at a
62507         time, rather allocate increasingly bigger arrays of pointers, if
62508         possible with alloca, if too large with malloc.
62509
62510 2007-10-16  Paul Eggert  <eggert@cs.ucla.edu>
62511
62512         Check for 64-bit int errors in HP-UX 10.20 preprocessor.
62513         Problem reported by H.Merijn Brand in
62514         <http://lists.gnu.org/archive/html/bug-tar/2007-10/msg00018.html>.
62515         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Check preprocessor too.
62516         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
62517
62518 2007-10-15  Bruno Haible  <bruno@clisp.org>
62519
62520         * lib/fchdir.c (close, open, closedir, opendir, dup, dup2): Define
62521         with explicit rpl_ prefix.
62522         * lib/fopen.c (fopen): Likewise.
62523         * lib/freopen.c (freopen): Likewise.
62524         * lib/iconv.c (iconv): Likewise.
62525         * lib/iconv_close.c (iconv_close): Likewise.
62526
62527 2007-10-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
62528
62529         * m4/iconv_open (gl_FUNC_ICONV_OPEN_UTF): Fix cache variable name.
62530
62531 2007-10-15  Bruno Haible  <bruno@clisp.org>
62532
62533         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Use
62534         <stddef.h> instead of <stdlib.h> since we only need NULL.
62535         Reported by Ben Pfaff <blp@cs.stanford.edu>.
62536
62537 2007-10-15  Bruno Haible  <bruno@clisp.org>
62538
62539         * doc/gnulib-tool.texi (Initial import): Swap order of -I directives.
62540         Replace paragraph talking about LIBOBJS.
62541         Reported by Colin Watson <cjwatson@debian.org>.
62542
62543 2007-10-15  Bruno Haible  <bruno@clisp.org>
62544
62545         * m4/getaddrinfo.m4 (gl_GETADDRINFO, gl_PREREQ_GETADDRINFO): Include
62546         <stdlib.h> before using NULL.
62547
62548 2007-10-15  Simon Josefsson  <simon@josefsson.org>
62549
62550         * m4/getaddrinfo.m4: Use NULL rather than 0 for pointers.
62551         Reported by Albert Chin <china@thewrittenword.com>.
62552
62553 2007-10-14  Bruno Haible  <bruno@clisp.org>
62554
62555         * modules/iconv_open-utf-tests: New file.
62556         * tests/test-iconv-utf.c: New file.
62557
62558         Enhance iconv_open to support UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE.
62559         * modules/iconv_open-utf: New file.
62560         * lib/iconv.in.h (_ICONV_UTF8_UTF*, _ICONV_UTF*_UTF8): New macros.
62561         (iconv, iconv_close): New declarations.
62562         * lib/iconv_open.c: Include c-strcase.h. Don't require ICONV_FLAVOR to
62563         be defined.
62564         (iconv_open): Add special handling of conversion between UTF-8 and
62565         UTF-{16,32}{BE,LE}.
62566         * lib/iconv.c: New file, incorporating code from GNU libiconv 1.11.
62567         * lib/iconv_close.c: New file.
62568         * m4/iconv_open.m4 (gl_REPLACE_ICONV_OPEN): New macro, extracted from
62569         gl_FUNC_ICONV_OPEN.
62570         (gl_FUNC_ICONV_OPEN): Use it.
62571         (gl_FUNC_ICONV_OPEN_UTF): New macro.
62572         * m4/iconv_h.m4 (gl_ICONV_H_DEFAULTS): Initialize also REPLACE_ICONV
62573         and REPLACE_ICONV_UTF.
62574         * modules/iconv_open (Depends-on): Add c-strcase.
62575         (Makefile.am): Substitute also REPLACE_ICONV, REPLACE_ICONV_UTF,
62576         ICONV_CONST.
62577         * doc/functions/iconv_open.texi: Mention the iconv_open-utf module.
62578
62579 2007-10-13  Albert Chin  <china@thewrittenword.com>
62580             Bruno Haible  <bruno@clisp.org>
62581
62582         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Perform the test for getaddrinfo
62583         through a link check that includes <netdb.h>. Needed for OSF/1 5.1.
62584
62585 2007-10-13  Bruno Haible  <bruno@clisp.org>
62586
62587         * lib/argp-fmtstream.h (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is
62588         defined, use the ISO C99 inline semantics.
62589         * lib/argp.h (ARGP_EI): Likewise.
62590
62591 2007-10-13  Bruno Haible  <bruno@clisp.org>
62592
62593         Handle 'inline' change in gcc 4.3.0.
62594         * lib/argp-fmtstream.h (argp_fmtstream_putc, argp_fmtstream_puts,
62595         argp_fmtstream_write, argp_fmtstream_set_lmargin,
62596         argp_fmtstream_set_rmargin, argp_fmtstream_set_wmargin,
62597         argp_fmtstream_point): Disable 'extern' declaration if the function
62598         definition is going to be provided inline.
62599         (ARGP_FS_EI): If __GNUC_STDC_INLINE__ is defined, use the GNU C inline
62600         semantics, not the ISO C99 inline semantics.
62601         * lib/argp.h (argp_usage, _option_is_short, _option_is_end): Disable
62602         'extern' declaration if the function definition is going to be provided
62603         inline.
62604         (ARGP_EI): Don't assume GNU C. If __GNUC_STDC_INLINE__ is defined, use
62605         the GNU C inline semantics, not the ISO C99 inline semantics. With
62606         GCC 4.2, avoid a warning.
62607
62608 2007-10-13  Bruno Haible  <bruno@clisp.org>
62609
62610         * lib/freading.h (freading): Enable the use of __freading for
62611         glibc >= 2.7.
62612         * lib/freading.c (freading): Likewise.
62613
62614 2007-10-12  Paul Eggert  <eggert@cs.ucla.edu>
62615
62616         * lib/argp-fmtstream.h (ARGP_FS_EI): Work around GCC 4.2.1 diagnostic
62617         "warning: C99 inline functions are not supported; using GNU89".
62618
62619 2007-10-12  Bruno Haible  <bruno@clisp.org>
62620
62621         * lib/ceil.c (FUNC): Avoid rounding errors for values near a power
62622         of 2.
62623         * tests/test-ceilf2.c: New file.
62624         * modules/ceilf-tests: (Files, Depends-on, Makefile.am): Add new test.
62625
62626         * tests/test-ceilf1.c: Renamed from tests/test-ceilf.c.
62627         * modules/ceilf-tests: Update.
62628
62629 2007-10-12  Bruno Haible  <bruno@clisp.org>
62630
62631         * lib/floor.c (FUNC): Avoid rounding errors for values near a power
62632         of 2.
62633         * tests/test-floorf2.c: New file.
62634         * modules/floorf-tests: (Files, Depends-on, Makefile.am): Add new test.
62635
62636         * tests/test-floorf1.c: Renamed from tests/test-floorf.c.
62637         * modules/floorf-tests: Update.
62638
62639 2007-10-12  Bruno Haible  <bruno@clisp.org>
62640
62641         * tests/test-trunc2.c: New file.
62642         * modules/trunc-tests: (Files, Depends-on, Makefile.am): Add new test.
62643
62644         * tests/test-trunc1.c: Renamed from tests/test-trunc.c.
62645         * modules/trunc-tests: Update.
62646
62647 2007-10-12  Bruno Haible  <bruno@clisp.org>
62648
62649         * lib/trunc.c (FUNC): Avoid rounding errors for values near a power
62650         of 2.
62651         * tests/test-truncf2.c: New file.
62652         * modules/truncf-tests: (Files, Depends-on, Makefile.am): Add new test.
62653
62654         * tests/test-truncf1.c: Renamed from tests/test-truncf.c.
62655         * modules/truncf-tests: Update.
62656
62657 2007-10-11  Eric Blake  <ebb9@byu.net>
62658
62659         Don't claim strerror is broken on Interix.
62660         * doc/functions/strerror.texi (strerror): Known broken systems are
62661         now Solaris 8, and not Interix.
62662         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): No longer filter out
62663         Interix on cross-compile.
62664         Reported by Martin Koeppe in
62665         http://lists.gnu.org/archive/html/bug-gnulib/2007-10/msg00005.html.
62666
62667 2007-10-11  Bruno Haible  <bruno@clisp.org>
62668
62669         * modules/i-ring-tests: New file.
62670         * tests/test-i-ring.c: Renamed from lib/i-ring-test.c. Use ASSERT
62671         instead of assert.
62672
62673 2007-10-11  Bruno Haible  <bruno@clisp.org>
62674
62675         * modules/filenamecat-tests: New file.
62676         * tests/test-filenamecat.c: New file, extracted from lib/filenamecat.c.
62677         * lib/filenamecat.c: Remove test code.
62678
62679 2007-10-11  Paul Eggert  <eggert@cs.ucla.edu>
62680
62681         Simplify and modernize strerror substitute, partly to fix Solaris 8 bug.
62682
62683         * lib/strerror.c: Include <string.h> always, to test interface,
62684         and to remove the need for the dummy.
62685         Include intprops.h to compute width instead of doing it ourselves
62686         and missing a CHAR_BIT declaration, which broke tar 1.19 on Solaris 8.
62687         (strerror): Define it to return NULL if there's no system strerror.
62688         (rpl_strerror): Use INT_STRLEN_BOUND to compute bound.
62689         Omit !HAVE_STRERROR code.  We don't need to worry about supporting
62690         ancient pre-strerror Unix systems well any more.  Saying "unknown
62691         system error" is enough.
62692         * lib/string.in.h (strerror): Simplify the ifdef to reflect the
62693         simpler strerror.c implementation.
62694         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE, gl_PREREQ_STDERROR):
62695         Simplify the tests to reflect the simpler strerror implementation.
62696         * modules/strerror (Depends-on): Add intprops.
62697
62698 2007-10-09  Eric Blake  <ebb9@byu.net>
62699
62700         Silence test-fpending.
62701         * modules/fpending-tests (Files): Add wrapper script.
62702         * tests/test-fpending.sh: New file.
62703
62704 2007-10-09  Bruno Haible  <bruno@clisp.org>
62705
62706         * MODULES.html.sh (func_module): Don't create a hyperlink for
62707         function names like 'printf_frexp'.
62708         (Misc): Add crc, memxor.
62709         (Characteristics of floating types): New section.
62710         (Mathematics): Add ceilf, ceill, floorf, floorl, frexpl-nolibm,
62711         isnanf-nolibm, signbit, trunc, truncf, truncl.
62712         (Enhancements for ISO C 99 functions): New subsection Input/output.
62713         (Support for systems lacking POSIX:2001): Add arpa_inet, calloc-posix,
62714         fcntl, fopen, freopen, fseek, fseeko, ftell, ftello, iconv_open,
62715         locale, malloc-posix, netinet_in, open, realloc-posix, signal, sleep.
62716         (Compatibility checks for POSIX:2001 functions): Add clock-time.
62717         (Enhancements for POSIX:2001 functions): Add chdir-long.
62718         (File system functions): Add areadlink, chdir-safer, read-file.
62719         Remove cycle-check.
62720         (File system as inode set): New section.
62721         (Date and time): Add gethrxtime.
62722         (Multithreading): Add openmp.
62723         (Internationalization functions): Add localename.
62724         (Unicode string functions): Add unistr/u*-mbsnlen.
62725         (Support for maintaining and releasing projects): Add git-version-gen.
62726         (Lone files): Remove directories.
62727
62728 2007-10-08  Ben Pfaff  <blp@gnu.org>
62729
62730         * lib/xmalloca.h: Fix typo in comment.
62731
62732 2007-10-08  Paul Eggert  <eggert@cs.ucla.edu>
62733
62734         * lib/xnanosleep.c (xnanosleep): Don't assume GCC 4.3.0 behavior
62735         when avoiding problems with integer overflow.  Use a portable test
62736         instead.
62737
62738 2007-10-08  Simon Josefsson  <simon@josefsson.org>
62739
62740         * modules/dummy (License): Change to LGPLv2+.
62741         * modules/float (License): Likewise
62742         * modules/realloc (License): Likewise
62743         * modules/stdlib (License): Likewise
62744
62745 2007-10-07  Bruno Haible  <bruno@clisp.org>
62746
62747         * trunc.c (TWO_MANT_DIG): Change type to DOUBLE.
62748         * floor.c (TWO_MANT_DIG): Likewise.
62749         * ceil.c (TWO_MANT_DIG): Likewise.
62750         Reported by Ben Pfaff.
62751
62752 2007-10-07  Bruno Haible  <bruno@clisp.org>
62753
62754         Avoid gcc warnings "declaration of 'exp' shadows a global declaration".
62755         * lib/math.in.h (frexp, frexpl): Change parameter name to 'expptr'.
62756         * lib/frexp.c (FUNC): Likewise.
62757         * lib/printf-frexp.h (printf_frexp): Likewise.
62758         * lib/printf-frexpl.h (printf_frexpl): Likewise.
62759         * lib/printf-frexp.c (FUNC): Likewise.
62760         Suggested by Jim Meyering.
62761
62762 2007-10-07  Jim Meyering  <meyering@redhat.com>
62763
62764         Make xnanosleep's integer overflow test more robust.
62765         * lib/xnanosleep.c (xnanosleep): Declare a temporary to be "volatile",
62766         so that gcc-4.3.0 doesn't optimize away this test for overflow.
62767
62768 2007-10-07  Bruno Haible  <bruno@clisp.org>
62769
62770         * NEWS: Mention the license change.
62771
62772         * doc/gnulib-intro.texi (Copyright): Update the meaning of the license
62773         abbreviations in the modules files.
62774
62775         Change copyright notice from GPLv2+ to GPLv3+.
62776         * README: Change copyright notice.
62777         * MODULES.html.sh: Likewise.
62778         * build-aux/bootstrap.conf: Likewise.
62779         * build-aux/config.libpath: Likewise.
62780         * build-aux/csharpcomp.sh.in: Likewise.
62781         * build-aux/csharpexec.sh.in: Likewise.
62782         * build-aux/install-reloc: Likewise.
62783         * build-aux/javacomp.sh.in: Likewise.
62784         * build-aux/javaexec.sh.in: Likewise.
62785         * build-aux/ldd.sh.in: Likewise.
62786         * build-aux/reloc-ldflags: Likewise.
62787         * build-aux/relocatable.sh.in: Likewise.
62788         * build-aux/x-to-1.in: Likewise.
62789         * check-module: Likewise.
62790         * config/srclistvars.sh: Likewise.
62791         * gnulib-tool: Likewise.
62792         * lib/acl-internal.h: Likewise.
62793         * lib/acl.c: Likewise.
62794         * lib/acl.h: Likewise.
62795         * lib/acl_entries.c: Likewise.
62796         * lib/areadlink-with-size.c: Likewise.
62797         * lib/areadlink.c: Likewise.
62798         * lib/areadlink.h: Likewise.
62799         * lib/argmatch.c: Likewise.
62800         * lib/argmatch.h: Likewise.
62801         * lib/argp-ba.c: Likewise.
62802         * lib/argp-eexst.c: Likewise.
62803         * lib/argp-fmtstream.c: Likewise.
62804         * lib/argp-fmtstream.h: Likewise.
62805         * lib/argp-fs-xinl.c: Likewise.
62806         * lib/argp-help.c: Likewise.
62807         * lib/argp-namefrob.h: Likewise.
62808         * lib/argp-parse.c: Likewise.
62809         * lib/argp-pin.c: Likewise.
62810         * lib/argp-pv.c: Likewise.
62811         * lib/argp-pvh.c: Likewise.
62812         * lib/argp-xinl.c: Likewise.
62813         * lib/argp.h: Likewise.
62814         * lib/at-func.c: Likewise.
62815         * lib/atanl.c: Likewise.
62816         * lib/backupfile.c: Likewise.
62817         * lib/backupfile.h: Likewise.
62818         * lib/basename.c: Likewise.
62819         * lib/binary-io.h: Likewise.
62820         * lib/byteswap.in.h: Likewise.
62821         * lib/c-stack.c: Likewise.
62822         * lib/c-stack.h: Likewise.
62823         * lib/c-strcasestr.c: Likewise.
62824         * lib/c-strcasestr.h: Likewise.
62825         * lib/c-strstr.c: Likewise.
62826         * lib/c-strstr.h: Likewise.
62827         * lib/c-strtod.c: Likewise.
62828         * lib/calloc.c: Likewise.
62829         * lib/canon-host.c: Likewise.
62830         * lib/canon-host.h: Likewise.
62831         * lib/canonicalize-lgpl.c: Likewise.
62832         * lib/canonicalize.c: Likewise.
62833         * lib/canonicalize.h: Likewise.
62834         * lib/ceil.c: Likewise.
62835         * lib/ceilf.c: Likewise.
62836         * lib/ceill.c: Likewise.
62837         * lib/chdir-long.c: Likewise.
62838         * lib/chdir-long.h: Likewise.
62839         * lib/chdir-safer.c: Likewise.
62840         * lib/chdir-safer.h: Likewise.
62841         * lib/chown.c: Likewise.
62842         * lib/classpath.c: Likewise.
62843         * lib/classpath.h: Likewise.
62844         * lib/clean-temp.c: Likewise.
62845         * lib/clean-temp.h: Likewise.
62846         * lib/cloexec.c: Likewise.
62847         * lib/close-stream.c: Likewise.
62848         * lib/closein.c: Likewise.
62849         * lib/closein.h: Likewise.
62850         * lib/closeout.c: Likewise.
62851         * lib/closeout.h: Likewise.
62852         * lib/concat-filename.c: Likewise.
62853         * lib/copy-file.c: Likewise.
62854         * lib/copy-file.h: Likewise.
62855         * lib/count-one-bits.h: Likewise.
62856         * lib/crc.c: Likewise.
62857         * lib/crc.h: Likewise.
62858         * lib/creat-safer.c: Likewise.
62859         * lib/csharpcomp.c: Likewise.
62860         * lib/csharpcomp.h: Likewise.
62861         * lib/csharpexec.c: Likewise.
62862         * lib/csharpexec.h: Likewise.
62863         * lib/cycle-check.c: Likewise.
62864         * lib/cycle-check.h: Likewise.
62865         * lib/diacrit.c: Likewise.
62866         * lib/diacrit.h: Likewise.
62867         * lib/diffseq.h: Likewise.
62868         * lib/dirchownmod.c: Likewise.
62869         * lib/dirent.in.h: Likewise.
62870         * lib/dirfd.c: Likewise.
62871         * lib/dirfd.h: Likewise.
62872         * lib/dirname.c: Likewise.
62873         * lib/dirname.h: Likewise.
62874         * lib/dummy.c: Likewise.
62875         * lib/dup-safer.c: Likewise.
62876         * lib/dup2.c: Likewise.
62877         * lib/eealloc.h: Likewise.
62878         * lib/error.c: Likewise.
62879         * lib/error.h: Likewise.
62880         * lib/euidaccess.c: Likewise.
62881         * lib/exclude.c: Likewise.
62882         * lib/exclude.h: Likewise.
62883         * lib/execute.c: Likewise.
62884         * lib/execute.h: Likewise.
62885         * lib/exitfail.c: Likewise.
62886         * lib/exitfail.h: Likewise.
62887         * lib/expl.c: Likewise.
62888         * lib/fatal-signal.c: Likewise.
62889         * lib/fatal-signal.h: Likewise.
62890         * lib/fbufmode.c: Likewise.
62891         * lib/fbufmode.h: Likewise.
62892         * lib/fchdir.c: Likewise.
62893         * lib/fchmodat.c: Likewise.
62894         * lib/fchownat.c: Likewise.
62895         * lib/fcntl--.h: Likewise.
62896         * lib/fcntl-safer.h: Likewise.
62897         * lib/fcntl.in.h: Likewise.
62898         * lib/fd-safer.c: Likewise.
62899         * lib/fflush.c: Likewise.
62900         * lib/file-has-acl.c: Likewise.
62901         * lib/file-set.c: Likewise.
62902         * lib/file-type.c: Likewise.
62903         * lib/file-type.h: Likewise.
62904         * lib/fileblocks.c: Likewise.
62905         * lib/filemode.c: Likewise.
62906         * lib/filemode.h: Likewise.
62907         * lib/filename.h: Likewise.
62908         * lib/filenamecat.c: Likewise.
62909         * lib/filenamecat.h: Likewise.
62910         * lib/findprog.c: Likewise.
62911         * lib/findprog.h: Likewise.
62912         * lib/float.in.h: Likewise.
62913         * lib/floor.c: Likewise.
62914         * lib/floorf.c: Likewise.
62915         * lib/floorl.c: Likewise.
62916         * lib/fopen-safer.c: Likewise.
62917         * lib/fopen.c: Likewise.
62918         * lib/fpending.c: Likewise.
62919         * lib/fpending.h: Likewise.
62920         * lib/fprintf.c: Likewise.
62921         * lib/fprintftime.h: Likewise.
62922         * lib/fpucw.h: Likewise.
62923         * lib/fpurge.c: Likewise.
62924         * lib/fpurge.h: Likewise.
62925         * lib/freadable.c: Likewise.
62926         * lib/freadable.h: Likewise.
62927         * lib/freadahead.c: Likewise.
62928         * lib/freadahead.h: Likewise.
62929         * lib/freading.c: Likewise.
62930         * lib/freading.h: Likewise.
62931         * lib/free.c: Likewise.
62932         * lib/freopen.c: Likewise.
62933         * lib/frexp.c: Likewise.
62934         * lib/frexpl.c: Likewise.
62935         * lib/fseek.c: Likewise.
62936         * lib/fseterr.c: Likewise.
62937         * lib/fseterr.h: Likewise.
62938         * lib/fstatat.c: Likewise.
62939         * lib/fstrcmp.c: Likewise.
62940         * lib/fstrcmp.h: Likewise.
62941         * lib/fsusage.c: Likewise.
62942         * lib/fsusage.h: Likewise.
62943         * lib/ftell.c: Likewise.
62944         * lib/ftello.c: Likewise.
62945         * lib/fts-cycle.c: Likewise.
62946         * lib/fts.c: Likewise.
62947         * lib/fts_.h: Likewise.
62948         * lib/full-read.c: Likewise.
62949         * lib/full-read.h: Likewise.
62950         * lib/full-write.c: Likewise.
62951         * lib/full-write.h: Likewise.
62952         * lib/fwritable.c: Likewise.
62953         * lib/fwritable.h: Likewise.
62954         * lib/fwriteerror.c: Likewise.
62955         * lib/fwriteerror.h: Likewise.
62956         * lib/fwriting.c: Likewise.
62957         * lib/fwriting.h: Likewise.
62958         * lib/gcd.c: Likewise.
62959         * lib/gcd.h: Likewise.
62960         * lib/getcwd.c: Likewise.
62961         * lib/getdate.h: Likewise.
62962         * lib/getdate.y: Likewise.
62963         * lib/getdomainname.c: Likewise.
62964         * lib/getdomainname.h: Likewise.
62965         * lib/getgroups.c: Likewise.
62966         * lib/gethostname.c: Likewise.
62967         * lib/gethrxtime.c: Likewise.
62968         * lib/gethrxtime.h: Likewise.
62969         * lib/getloadavg.c: Likewise.
62970         * lib/getndelim2.c: Likewise.
62971         * lib/getndelim2.h: Likewise.
62972         * lib/getnline.c: Likewise.
62973         * lib/getnline.h: Likewise.
62974         * lib/getopt.c: Likewise.
62975         * lib/getopt.in.h: Likewise.
62976         * lib/getopt1.c: Likewise.
62977         * lib/getopt_int.h: Likewise.
62978         * lib/getpagesize.h: Likewise.
62979         * lib/getsubopt.c: Likewise.
62980         * lib/gettime.c: Likewise.
62981         * lib/getugroups.c: Likewise.
62982         * lib/getugroups.h: Likewise.
62983         * lib/getusershell.c: Likewise.
62984         * lib/gl_anyavltree_list1.h: Likewise.
62985         * lib/gl_anyavltree_list2.h: Likewise.
62986         * lib/gl_anyhash_list1.h: Likewise.
62987         * lib/gl_anyhash_list2.h: Likewise.
62988         * lib/gl_anylinked_list1.h: Likewise.
62989         * lib/gl_anylinked_list2.h: Likewise.
62990         * lib/gl_anyrbtree_list1.h: Likewise.
62991         * lib/gl_anyrbtree_list2.h: Likewise.
62992         * lib/gl_anytree_list1.h: Likewise.
62993         * lib/gl_anytree_list2.h: Likewise.
62994         * lib/gl_anytree_oset.h: Likewise.
62995         * lib/gl_anytreehash_list1.h: Likewise.
62996         * lib/gl_anytreehash_list2.h: Likewise.
62997         * lib/gl_array_list.c: Likewise.
62998         * lib/gl_array_list.h: Likewise.
62999         * lib/gl_array_oset.c: Likewise.
63000         * lib/gl_array_oset.h: Likewise.
63001         * lib/gl_avltree_list.c: Likewise.
63002         * lib/gl_avltree_list.h: Likewise.
63003         * lib/gl_avltree_oset.c: Likewise.
63004         * lib/gl_avltree_oset.h: Likewise.
63005         * lib/gl_avltreehash_list.c: Likewise.
63006         * lib/gl_avltreehash_list.h: Likewise.
63007         * lib/gl_carray_list.c: Likewise.
63008         * lib/gl_carray_list.h: Likewise.
63009         * lib/gl_linked_list.c: Likewise.
63010         * lib/gl_linked_list.h: Likewise.
63011         * lib/gl_linkedhash_list.c: Likewise.
63012         * lib/gl_linkedhash_list.h: Likewise.
63013         * lib/gl_list.c: Likewise.
63014         * lib/gl_list.h: Likewise.
63015         * lib/gl_oset.c: Likewise.
63016         * lib/gl_oset.h: Likewise.
63017         * lib/gl_rbtree_list.c: Likewise.
63018         * lib/gl_rbtree_list.h: Likewise.
63019         * lib/gl_rbtree_oset.c: Likewise.
63020         * lib/gl_rbtree_oset.h: Likewise.
63021         * lib/gl_rbtreehash_list.c: Likewise.
63022         * lib/gl_rbtreehash_list.h: Likewise.
63023         * lib/gl_sublist.c: Likewise.
63024         * lib/gl_sublist.h: Likewise.
63025         * lib/group-member.c: Likewise.
63026         * lib/group-member.h: Likewise.
63027         * lib/hard-locale.c: Likewise.
63028         * lib/hard-locale.h: Likewise.
63029         * lib/hash-pjw.c: Likewise.
63030         * lib/hash-pjw.h: Likewise.
63031         * lib/hash-triple.c: Likewise.
63032         * lib/hash.c: Likewise.
63033         * lib/hash.h: Likewise.
63034         * lib/human.c: Likewise.
63035         * lib/human.h: Likewise.
63036         * lib/i-ring.c: Likewise.
63037         * lib/i-ring.h: Likewise.
63038         * lib/idcache.c: Likewise.
63039         * lib/imaxabs.c: Likewise.
63040         * lib/imaxdiv.c: Likewise.
63041         * lib/inet_pton.c: Likewise.
63042         * lib/inet_pton.h: Likewise.
63043         * lib/intprops.h: Likewise.
63044         * lib/inttostr.c: Likewise.
63045         * lib/inttostr.h: Likewise.
63046         * lib/inttypes.in.h: Likewise.
63047         * lib/isapipe.c: Likewise.
63048         * lib/isdir.c: Likewise.
63049         * lib/isnan.c: Likewise.
63050         * lib/isnan.h: Likewise.
63051         * lib/isnanf.c: Likewise.
63052         * lib/isnanf.h: Likewise.
63053         * lib/isnanl-nolibm.h: Likewise.
63054         * lib/isnanl.c: Likewise.
63055         * lib/isnanl.h: Likewise.
63056         * lib/javacomp.c: Likewise.
63057         * lib/javacomp.h: Likewise.
63058         * lib/javaexec.c: Likewise.
63059         * lib/javaexec.h: Likewise.
63060         * lib/javaversion.c: Likewise.
63061         * lib/javaversion.h: Likewise.
63062         * lib/javaversion.java: Likewise.
63063         * lib/lbrkprop.h: Likewise.
63064         * lib/lchmod.h: Likewise.
63065         * lib/lchown.c: Likewise.
63066         * lib/ldexpl.c: Likewise.
63067         * lib/linebreak.c: Likewise.
63068         * lib/linebreak.h: Likewise.
63069         * lib/linebuffer.c: Likewise.
63070         * lib/linebuffer.h: Likewise.
63071         * lib/locale.in.h: Likewise.
63072         * lib/logl.c: Likewise.
63073         * lib/long-options.c: Likewise.
63074         * lib/long-options.h: Likewise.
63075         * lib/lstat.c: Likewise.
63076         * lib/lstat.h: Likewise.
63077         * lib/math.in.h: Likewise.
63078         * lib/mbchar.c: Likewise.
63079         * lib/mbchar.h: Likewise.
63080         * lib/mbfile.h: Likewise.
63081         * lib/mbiter.h: Likewise.
63082         * lib/mbscasecmp.c: Likewise.
63083         * lib/mbscasestr.c: Likewise.
63084         * lib/mbschr.c: Likewise.
63085         * lib/mbscspn.c: Likewise.
63086         * lib/mbslen.c: Likewise.
63087         * lib/mbsncasecmp.c: Likewise.
63088         * lib/mbsnlen.c: Likewise.
63089         * lib/mbspbrk.c: Likewise.
63090         * lib/mbspcasecmp.c: Likewise.
63091         * lib/mbsrchr.c: Likewise.
63092         * lib/mbssep.c: Likewise.
63093         * lib/mbsspn.c: Likewise.
63094         * lib/mbsstr.c: Likewise.
63095         * lib/mbstok_r.c: Likewise.
63096         * lib/mbswidth.c: Likewise.
63097         * lib/mbswidth.h: Likewise.
63098         * lib/mbuiter.h: Likewise.
63099         * lib/memcasecmp.c: Likewise.
63100         * lib/memcasecmp.h: Likewise.
63101         * lib/memchr.c: Likewise.
63102         * lib/memcmp.c: Likewise.
63103         * lib/memcoll.c: Likewise.
63104         * lib/memcoll.h: Likewise.
63105         * lib/memcpy.c: Likewise.
63106         * lib/memrchr.c: Likewise.
63107         * lib/mkancesdirs.c: Likewise.
63108         * lib/mkdir-p.c: Likewise.
63109         * lib/mkdir-p.h: Likewise.
63110         * lib/mkdir.c: Likewise.
63111         * lib/mkdirat.c: Likewise.
63112         * lib/mkdtemp.c: Likewise.
63113         * lib/mkstemp-safer.c: Likewise.
63114         * lib/mkstemp.c: Likewise.
63115         * lib/modechange.c: Likewise.
63116         * lib/modechange.h: Likewise.
63117         * lib/mountlist.c: Likewise.
63118         * lib/mountlist.h: Likewise.
63119         * lib/mpsort.c: Likewise.
63120         * lib/nanosleep.c: Likewise.
63121         * lib/obstack.c: Likewise.
63122         * lib/obstack.h: Likewise.
63123         * lib/open-safer.c: Likewise.
63124         * lib/open.c: Likewise.
63125         * lib/openat-die.c: Likewise.
63126         * lib/openat-priv.h: Likewise.
63127         * lib/openat-proc.c: Likewise.
63128         * lib/openat.c: Likewise.
63129         * lib/openat.h: Likewise.
63130         * lib/pagealign_alloc.c: Likewise.
63131         * lib/pagealign_alloc.h: Likewise.
63132         * lib/physmem.c: Likewise.
63133         * lib/physmem.h: Likewise.
63134         * lib/pipe-safer.c: Likewise.
63135         * lib/pipe.c: Likewise.
63136         * lib/pipe.h: Likewise.
63137         * lib/posixtm.c: Likewise.
63138         * lib/posixtm.h: Likewise.
63139         * lib/posixver.c: Likewise.
63140         * lib/printf-frexp.c: Likewise.
63141         * lib/printf-frexp.h: Likewise.
63142         * lib/printf-frexpl.c: Likewise.
63143         * lib/printf-frexpl.h: Likewise.
63144         * lib/printf.c: Likewise.
63145         * lib/progname.c: Likewise.
63146         * lib/progname.h: Likewise.
63147         * lib/progreloc.c: Likewise.
63148         * lib/putenv.c: Likewise.
63149         * lib/quote.c: Likewise.
63150         * lib/quote.h: Likewise.
63151         * lib/quotearg.c: Likewise.
63152         * lib/quotearg.h: Likewise.
63153         * lib/raise.c: Likewise.
63154         * lib/readline.c: Likewise.
63155         * lib/readline.h: Likewise.
63156         * lib/readlink.c: Likewise.
63157         * lib/readtokens.c: Likewise.
63158         * lib/readtokens.h: Likewise.
63159         * lib/readtokens0.c: Likewise.
63160         * lib/readtokens0.h: Likewise.
63161         * lib/readutmp.c: Likewise.
63162         * lib/readutmp.h: Likewise.
63163         * lib/realloc.c: Likewise.
63164         * lib/relocwrapper.c: Likewise.
63165         * lib/rename-dest-slash.c: Likewise.
63166         * lib/rename.c: Likewise.
63167         * lib/rmdir.c: Likewise.
63168         * lib/rpmatch.c: Likewise.
63169         * lib/safe-read.c: Likewise.
63170         * lib/safe-read.h: Likewise.
63171         * lib/safe-write.c: Likewise.
63172         * lib/safe-write.h: Likewise.
63173         * lib/same-inode.h: Likewise.
63174         * lib/same.c: Likewise.
63175         * lib/same.h: Likewise.
63176         * lib/save-cwd.c: Likewise.
63177         * lib/save-cwd.h: Likewise.
63178         * lib/savedir.c: Likewise.
63179         * lib/savedir.h: Likewise.
63180         * lib/savewd.c: Likewise.
63181         * lib/savewd.h: Likewise.
63182         * lib/search.in.h: Likewise.
63183         * lib/setenv.c: Likewise.
63184         * lib/setenv.h: Likewise.
63185         * lib/settime.c: Likewise.
63186         * lib/sh-quote.c: Likewise.
63187         * lib/sh-quote.h: Likewise.
63188         * lib/sig2str.c: Likewise.
63189         * lib/sig2str.h: Likewise.
63190         * lib/signal.in.h: Likewise.
63191         * lib/signbitd.c: Likewise.
63192         * lib/signbitf.c: Likewise.
63193         * lib/signbitl.c: Likewise.
63194         * lib/sigprocmask.c: Likewise.
63195         * lib/sincosl.c: Likewise.
63196         * lib/sleep.c: Likewise.
63197         * lib/sprintf.c: Likewise.
63198         * lib/sqrtl.c: Likewise.
63199         * lib/stat-time.h: Likewise.
63200         * lib/stdio--.h: Likewise.
63201         * lib/stdio-safer.h: Likewise.
63202         * lib/stdlib--.h: Likewise.
63203         * lib/stdlib-safer.h: Likewise.
63204         * lib/stdlib.in.h: Likewise.
63205         * lib/stpcpy.c: Likewise.
63206         * lib/stpncpy.c: Likewise.
63207         * lib/strchrnul.c: Likewise.
63208         * lib/strcspn.c: Likewise.
63209         * lib/strerror.c: Likewise.
63210         * lib/strftime.c: Likewise.
63211         * lib/strftime.h: Likewise.
63212         * lib/striconveh.c: Likewise.
63213         * lib/striconveh.h: Likewise.
63214         * lib/striconveha.c: Likewise.
63215         * lib/striconveha.h: Likewise.
63216         * lib/stripslash.c: Likewise.
63217         * lib/strnlen1.c: Likewise.
63218         * lib/strnlen1.h: Likewise.
63219         * lib/strtod.c: Likewise.
63220         * lib/strtoimax.c: Likewise.
63221         * lib/strtok_r.c: Likewise.
63222         * lib/strtol.c: Likewise.
63223         * lib/strtoll.c: Likewise.
63224         * lib/strtoul.c: Likewise.
63225         * lib/strtoull.c: Likewise.
63226         * lib/sysexits.in.h: Likewise.
63227         * lib/tempname.c: Likewise.
63228         * lib/tempname.h: Likewise.
63229         * lib/timespec.h: Likewise.
63230         * lib/tls.c: Likewise.
63231         * lib/tls.h: Likewise.
63232         * lib/tmpdir.c: Likewise.
63233         * lib/tmpdir.h: Likewise.
63234         * lib/tmpfile-safer.c: Likewise.
63235         * lib/tmpfile.c: Likewise.
63236         * lib/trigl.c: Likewise.
63237         * lib/trigl.h: Likewise.
63238         * lib/trim.c: Likewise.
63239         * lib/trim.h: Likewise.
63240         * lib/trunc.c: Likewise.
63241         * lib/truncf.c: Likewise.
63242         * lib/truncl.c: Likewise.
63243         * lib/tsearch.c: Likewise.
63244         * lib/unicodeio.c: Likewise.
63245         * lib/unicodeio.h: Likewise.
63246         * lib/unistd--.h: Likewise.
63247         * lib/unistd-safer.h: Likewise.
63248         * lib/unistdio/ulc-fprintf.c: Likewise.
63249         * lib/unistdio/ulc-vfprintf.c: Likewise.
63250         * lib/unlinkdir.c: Likewise.
63251         * lib/unlinkdir.h: Likewise.
63252         * lib/unlocked-io.h: Likewise.
63253         * lib/unsetenv.c: Likewise.
63254         * lib/userspec.c: Likewise.
63255         * lib/utime.c: Likewise.
63256         * lib/utimecmp.c: Likewise.
63257         * lib/utimecmp.h: Likewise.
63258         * lib/utimens.c: Likewise.
63259         * lib/verify.h: Likewise.
63260         * lib/verror.c: Likewise.
63261         * lib/verror.h: Likewise.
63262         * lib/version-etc-fsf.c: Likewise.
63263         * lib/version-etc.c: Likewise.
63264         * lib/version-etc.h: Likewise.
63265         * lib/vfprintf.c: Likewise.
63266         * lib/vprintf.c: Likewise.
63267         * lib/vsprintf.c: Likewise.
63268         * lib/w32spawn.h: Likewise.
63269         * lib/wait-process.c: Likewise.
63270         * lib/wait-process.h: Likewise.
63271         * lib/wcwidth.c: Likewise.
63272         * lib/write-any-file.c: Likewise.
63273         * lib/xalloc-die.c: Likewise.
63274         * lib/xalloc.h: Likewise.
63275         * lib/xasprintf.c: Likewise.
63276         * lib/xgetcwd.c: Likewise.
63277         * lib/xgetcwd.h: Likewise.
63278         * lib/xgetdomainname.c: Likewise.
63279         * lib/xgetdomainname.h: Likewise.
63280         * lib/xgethostname.c: Likewise.
63281         * lib/xmalloc.c: Likewise.
63282         * lib/xmalloca.c: Likewise.
63283         * lib/xmalloca.h: Likewise.
63284         * lib/xmemcoll.c: Likewise.
63285         * lib/xnanosleep.c: Likewise.
63286         * lib/xreadlink.c: Likewise.
63287         * lib/xreadlink.h: Likewise.
63288         * lib/xsetenv.c: Likewise.
63289         * lib/xsetenv.h: Likewise.
63290         * lib/xstriconv.c: Likewise.
63291         * lib/xstriconv.h: Likewise.
63292         * lib/xstrndup.c: Likewise.
63293         * lib/xstrndup.h: Likewise.
63294         * lib/xstrtod.c: Likewise.
63295         * lib/xstrtod.h: Likewise.
63296         * lib/xstrtol-error.c: Likewise.
63297         * lib/xstrtol.c: Likewise.
63298         * lib/xstrtol.h: Likewise.
63299         * lib/xtime.h: Likewise.
63300         * lib/xvasprintf.c: Likewise.
63301         * lib/xvasprintf.h: Likewise.
63302         * lib/yesno.c: Likewise.
63303         * lib/yesno.h: Likewise.
63304         * posix-modules: Likewise.
63305         * tests/test-alloca-opt.c: Likewise.
63306         * tests/test-arcfour.c: Likewise.
63307         * tests/test-arctwo.c: Likewise.
63308         * tests/test-argmatch.c: Likewise.
63309         * tests/test-argp-2.sh: Likewise.
63310         * tests/test-argp.c: Likewise.
63311         * tests/test-arpa_inet.c: Likewise.
63312         * tests/test-array_list.c: Likewise.
63313         * tests/test-array_oset.c: Likewise.
63314         * tests/test-atexit.c: Likewise.
63315         * tests/test-avltree_list.c: Likewise.
63316         * tests/test-avltree_oset.c: Likewise.
63317         * tests/test-avltreehash_list.c: Likewise.
63318         * tests/test-base64.c: Likewise.
63319         * tests/test-binary-io.c: Likewise.
63320         * tests/test-byteswap.c: Likewise.
63321         * tests/test-c-ctype.c: Likewise.
63322         * tests/test-c-strcasecmp.c: Likewise.
63323         * tests/test-c-strcasestr.c: Likewise.
63324         * tests/test-c-strncasecmp.c: Likewise.
63325         * tests/test-c-strstr.c: Likewise.
63326         * tests/test-canonicalize-lgpl.c: Likewise.
63327         * tests/test-canonicalize.c: Likewise.
63328         * tests/test-carray_list.c: Likewise.
63329         * tests/test-ceilf.c: Likewise.
63330         * tests/test-ceill.c: Likewise.
63331         * tests/test-count-one-bits.c: Likewise.
63332         * tests/test-crc.c: Likewise.
63333         * tests/test-dirname.c: Likewise.
63334         * tests/test-fbufmode.c: Likewise.
63335         * tests/test-fcntl.c: Likewise.
63336         * tests/test-fflush.c: Likewise.
63337         * tests/test-floorf.c: Likewise.
63338         * tests/test-floorl.c: Likewise.
63339         * tests/test-fopen.c: Likewise.
63340         * tests/test-fprintf-posix.c: Likewise.
63341         * tests/test-fprintf-posix.h: Likewise.
63342         * tests/test-fpurge.c: Likewise.
63343         * tests/test-freadable.c: Likewise.
63344         * tests/test-freadahead.c: Likewise.
63345         * tests/test-freading.c: Likewise.
63346         * tests/test-freopen.c: Likewise.
63347         * tests/test-frexp.c: Likewise.
63348         * tests/test-frexpl.c: Likewise.
63349         * tests/test-fseek.c: Likewise.
63350         * tests/test-fseeko.c: Likewise.
63351         * tests/test-fseterr.c: Likewise.
63352         * tests/test-fstrcmp.c: Likewise.
63353         * tests/test-ftell.c: Likewise.
63354         * tests/test-ftello.c: Likewise.
63355         * tests/test-fwritable.c: Likewise.
63356         * tests/test-fwriting.c: Likewise.
63357         * tests/test-getaddrinfo.c: Likewise.
63358         * tests/test-getpass.c: Likewise.
63359         * tests/test-gettimeofday.c: Likewise.
63360         * tests/test-hmac-md5.c: Likewise.
63361         * tests/test-hmac-sha1.c: Likewise.
63362         * tests/test-iconv.c: Likewise.
63363         * tests/test-iconvme.c: Likewise.
63364         * tests/test-inttypes.c: Likewise.
63365         * tests/test-isnan.c: Likewise.
63366         * tests/test-isnanf.c: Likewise.
63367         * tests/test-isnanl-nolibm.c: Likewise.
63368         * tests/test-isnanl.c: Likewise.
63369         * tests/test-isnanl.h: Likewise.
63370         * tests/test-ldexpl.c: Likewise.
63371         * tests/test-linked_list.c: Likewise.
63372         * tests/test-linkedhash_list.c: Likewise.
63373         * tests/test-locale.c: Likewise.
63374         * tests/test-localename.c: Likewise.
63375         * tests/test-lock.c: Likewise.
63376         * tests/test-lseek.c: Likewise.
63377         * tests/test-malloca.c: Likewise.
63378         * tests/test-math.c: Likewise.
63379         * tests/test-mbscasecmp.c: Likewise.
63380         * tests/test-mbscasestr1.c: Likewise.
63381         * tests/test-mbscasestr2.c: Likewise.
63382         * tests/test-mbscasestr3.c: Likewise.
63383         * tests/test-mbscasestr4.c: Likewise.
63384         * tests/test-mbschr.c: Likewise.
63385         * tests/test-mbscspn.c: Likewise.
63386         * tests/test-mbsncasecmp.c: Likewise.
63387         * tests/test-mbspbrk.c: Likewise.
63388         * tests/test-mbspcasecmp.c: Likewise.
63389         * tests/test-mbsrchr.c: Likewise.
63390         * tests/test-mbsspn.c: Likewise.
63391         * tests/test-mbsstr1.c: Likewise.
63392         * tests/test-mbsstr2.c: Likewise.
63393         * tests/test-mbsstr3.c: Likewise.
63394         * tests/test-md5.c: Likewise.
63395         * tests/test-memmem.c: Likewise.
63396         * tests/test-netinet_in.c: Likewise.
63397         * tests/test-open.c: Likewise.
63398         * tests/test-printf-frexp.c: Likewise.
63399         * tests/test-printf-frexpl.c: Likewise.
63400         * tests/test-printf-posix.c: Likewise.
63401         * tests/test-printf-posix.h: Likewise.
63402         * tests/test-rbtree_list.c: Likewise.
63403         * tests/test-rbtree_oset.c: Likewise.
63404         * tests/test-rbtreehash_list.c: Likewise.
63405         * tests/test-read-file.c: Likewise.
63406         * tests/test-rijndael.c: Likewise.
63407         * tests/test-search.c: Likewise.
63408         * tests/test-signbit.c: Likewise.
63409         * tests/test-sleep.c: Likewise.
63410         * tests/test-snprintf-posix.c: Likewise.
63411         * tests/test-snprintf-posix.h: Likewise.
63412         * tests/test-snprintf.c: Likewise.
63413         * tests/test-sprintf-posix.c: Likewise.
63414         * tests/test-sprintf-posix.h: Likewise.
63415         * tests/test-stat-time.c: Likewise.
63416         * tests/test-stdbool.c: Likewise.
63417         * tests/test-stdint.c: Likewise.
63418         * tests/test-stdio.c: Likewise.
63419         * tests/test-stdlib.c: Likewise.
63420         * tests/test-stpncpy.c: Likewise.
63421         * tests/test-strcasestr.c: Likewise.
63422         * tests/test-striconv.c: Likewise.
63423         * tests/test-striconveh.c: Likewise.
63424         * tests/test-striconveha.c: Likewise.
63425         * tests/test-string.c: Likewise.
63426         * tests/test-sys_select.c: Likewise.
63427         * tests/test-sys_socket.c: Likewise.
63428         * tests/test-sys_stat.c: Likewise.
63429         * tests/test-sys_time.c: Likewise.
63430         * tests/test-sysexits.c: Likewise.
63431         * tests/test-time.c: Likewise.
63432         * tests/test-tls.c: Likewise.
63433         * tests/test-trunc.c: Likewise.
63434         * tests/test-truncf.c: Likewise.
63435         * tests/test-truncl.c: Likewise.
63436         * tests/test-unistd.c: Likewise.
63437         * tests/test-vasnprintf-posix.c: Likewise.
63438         * tests/test-vasnprintf-posix2.c: Likewise.
63439         * tests/test-vasnprintf.c: Likewise.
63440         * tests/test-vasprintf-posix.c: Likewise.
63441         * tests/test-vasprintf.c: Likewise.
63442         * tests/test-verify.c: Likewise.
63443         * tests/test-vfprintf-posix.c: Likewise.
63444         * tests/test-vprintf-posix.c: Likewise.
63445         * tests/test-vsnprintf-posix.c: Likewise.
63446         * tests/test-vsnprintf.c: Likewise.
63447         * tests/test-vsprintf-posix.c: Likewise.
63448         * tests/test-wchar.c: Likewise.
63449         * tests/test-wctype.c: Likewise.
63450         * tests/test-wcwidth.c: Likewise.
63451         * tests/test-xstrtol.c: Likewise.
63452         * tests/test-xvasprintf.c: Likewise.
63453         * tests/uniconv/test-u16-conv-from-enc.c: Likewise.
63454         * tests/uniconv/test-u16-conv-to-enc.c: Likewise.
63455         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
63456         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
63457         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
63458         * tests/uniconv/test-u32-conv-to-enc.c: Likewise.
63459         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
63460         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
63461         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
63462         * tests/uniconv/test-u8-conv-to-enc.c: Likewise.
63463         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
63464         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
63465         * tests/uniname/test-uninames.c: Likewise.
63466         * tests/unistdio/test-u16-asnprintf1.c: Likewise.
63467         * tests/unistdio/test-u16-asnprintf1.h: Likewise.
63468         * tests/unistdio/test-u16-printf1.h: Likewise.
63469         * tests/unistdio/test-u16-vasnprintf1.c: Likewise.
63470         * tests/unistdio/test-u16-vasnprintf2.c: Likewise.
63471         * tests/unistdio/test-u16-vasnprintf3.c: Likewise.
63472         * tests/unistdio/test-u16-vasprintf1.c: Likewise.
63473         * tests/unistdio/test-u16-vsnprintf1.c: Likewise.
63474         * tests/unistdio/test-u16-vsprintf1.c: Likewise.
63475         * tests/unistdio/test-u32-asnprintf1.c: Likewise.
63476         * tests/unistdio/test-u32-asnprintf1.h: Likewise.
63477         * tests/unistdio/test-u32-printf1.h: Likewise.
63478         * tests/unistdio/test-u32-vasnprintf1.c: Likewise.
63479         * tests/unistdio/test-u32-vasnprintf2.c: Likewise.
63480         * tests/unistdio/test-u32-vasnprintf3.c: Likewise.
63481         * tests/unistdio/test-u32-vasprintf1.c: Likewise.
63482         * tests/unistdio/test-u32-vsnprintf1.c: Likewise.
63483         * tests/unistdio/test-u32-vsprintf1.c: Likewise.
63484         * tests/unistdio/test-u8-asnprintf1.c: Likewise.
63485         * tests/unistdio/test-u8-asnprintf1.h: Likewise.
63486         * tests/unistdio/test-u8-printf1.h: Likewise.
63487         * tests/unistdio/test-u8-vasnprintf1.c: Likewise.
63488         * tests/unistdio/test-u8-vasnprintf2.c: Likewise.
63489         * tests/unistdio/test-u8-vasnprintf3.c: Likewise.
63490         * tests/unistdio/test-u8-vasprintf1.c: Likewise.
63491         * tests/unistdio/test-u8-vsnprintf1.c: Likewise.
63492         * tests/unistdio/test-u8-vsprintf1.c: Likewise.
63493         * tests/unistdio/test-ulc-asnprintf1.c: Likewise.
63494         * tests/unistdio/test-ulc-asnprintf1.h: Likewise.
63495         * tests/unistdio/test-ulc-printf1.h: Likewise.
63496         * tests/unistdio/test-ulc-vasnprintf1.c: Likewise.
63497         * tests/unistdio/test-ulc-vasnprintf2.c: Likewise.
63498         * tests/unistdio/test-ulc-vasnprintf3.c: Likewise.
63499         * tests/unistdio/test-ulc-vasprintf1.c: Likewise.
63500         * tests/unistdio/test-ulc-vsnprintf1.c: Likewise.
63501         * tests/unistdio/test-ulc-vsprintf1.c: Likewise.
63502         * tests/uniwidth/test-u16-strwidth.c: Likewise.
63503         * tests/uniwidth/test-u16-width.c: Likewise.
63504         * tests/uniwidth/test-u32-strwidth.c: Likewise.
63505         * tests/uniwidth/test-u32-width.c: Likewise.
63506         * tests/uniwidth/test-u8-strwidth.c: Likewise.
63507         * tests/uniwidth/test-u8-width.c: Likewise.
63508         * tests/uniwidth/test-uc_width.c: Likewise.
63509         * config/srclist-update: Likewise.
63510         (fixlicense): Update to GPLv3+.
63511
63512         Change copyright notice from LGPLv2.1+ to LGPLv3+.
63513         * tests/test-tsearch.c: Change copyright notice.
63514
63515         Change copyright notice from LGPLv2.0+ to LGPLv3+.
63516         * lib/c-strcaseeq.h: Change copyright notice.
63517         * lib/streq.h: Likewise.
63518         * lib/uniconv.h: Likewise.
63519         * lib/uniconv/u-conv-from-enc.h: Likewise.
63520         * lib/uniconv/u-conv-to-enc.h: Likewise.
63521         * lib/uniconv/u-strconv-from-enc.h: Likewise.
63522         * lib/uniconv/u-strconv-to-enc.h: Likewise.
63523         * lib/uniconv/u16-conv-from-enc.c: Likewise.
63524         * lib/uniconv/u16-conv-to-enc.c: Likewise.
63525         * lib/uniconv/u16-strconv-from-enc.c: Likewise.
63526         * lib/uniconv/u16-strconv-from-locale.c: Likewise.
63527         * lib/uniconv/u16-strconv-to-enc.c: Likewise.
63528         * lib/uniconv/u16-strconv-to-locale.c: Likewise.
63529         * lib/uniconv/u32-conv-from-enc.c: Likewise.
63530         * lib/uniconv/u32-conv-to-enc.c: Likewise.
63531         * lib/uniconv/u32-strconv-from-enc.c: Likewise.
63532         * lib/uniconv/u32-strconv-from-locale.c: Likewise.
63533         * lib/uniconv/u32-strconv-to-enc.c: Likewise.
63534         * lib/uniconv/u32-strconv-to-locale.c: Likewise.
63535         * lib/uniconv/u8-conv-from-enc.c: Likewise.
63536         * lib/uniconv/u8-conv-to-enc.c: Likewise.
63537         * lib/uniconv/u8-strconv-from-enc.c: Likewise.
63538         * lib/uniconv/u8-strconv-from-locale.c: Likewise.
63539         * lib/uniconv/u8-strconv-to-enc.c: Likewise.
63540         * lib/uniconv/u8-strconv-to-locale.c: Likewise.
63541         * lib/uniname.h: Likewise.
63542         * lib/uniname/uniname.c: Likewise.
63543         * lib/unistdio.h: Likewise.
63544         * lib/unistdio/u-asnprintf.h: Likewise.
63545         * lib/unistdio/u-asprintf.h: Likewise.
63546         * lib/unistdio/u-printf-args.c: Likewise.
63547         * lib/unistdio/u-printf-args.h: Likewise.
63548         * lib/unistdio/u-printf-parse.h: Likewise.
63549         * lib/unistdio/u-snprintf.h: Likewise.
63550         * lib/unistdio/u-sprintf.h: Likewise.
63551         * lib/unistdio/u-vasprintf.h: Likewise.
63552         * lib/unistdio/u-vsnprintf.h: Likewise.
63553         * lib/unistdio/u-vsprintf.h: Likewise.
63554         * lib/unistdio/u16-asnprintf.c: Likewise.
63555         * lib/unistdio/u16-asprintf.c: Likewise.
63556         * lib/unistdio/u16-printf-parse.c: Likewise.
63557         * lib/unistdio/u16-snprintf.c: Likewise.
63558         * lib/unistdio/u16-sprintf.c: Likewise.
63559         * lib/unistdio/u16-u16-asnprintf.c: Likewise.
63560         * lib/unistdio/u16-u16-asprintf.c: Likewise.
63561         * lib/unistdio/u16-u16-snprintf.c: Likewise.
63562         * lib/unistdio/u16-u16-sprintf.c: Likewise.
63563         * lib/unistdio/u16-u16-vasnprintf.c: Likewise.
63564         * lib/unistdio/u16-u16-vasprintf.c: Likewise.
63565         * lib/unistdio/u16-u16-vsnprintf.c: Likewise.
63566         * lib/unistdio/u16-u16-vsprintf.c: Likewise.
63567         * lib/unistdio/u16-vasnprintf.c: Likewise.
63568         * lib/unistdio/u16-vasprintf.c: Likewise.
63569         * lib/unistdio/u16-vsnprintf.c: Likewise.
63570         * lib/unistdio/u16-vsprintf.c: Likewise.
63571         * lib/unistdio/u32-asnprintf.c: Likewise.
63572         * lib/unistdio/u32-asprintf.c: Likewise.
63573         * lib/unistdio/u32-printf-parse.c: Likewise.
63574         * lib/unistdio/u32-snprintf.c: Likewise.
63575         * lib/unistdio/u32-sprintf.c: Likewise.
63576         * lib/unistdio/u32-u32-asnprintf.c: Likewise.
63577         * lib/unistdio/u32-u32-asprintf.c: Likewise.
63578         * lib/unistdio/u32-u32-snprintf.c: Likewise.
63579         * lib/unistdio/u32-u32-sprintf.c: Likewise.
63580         * lib/unistdio/u32-u32-vasnprintf.c: Likewise.
63581         * lib/unistdio/u32-u32-vasprintf.c: Likewise.
63582         * lib/unistdio/u32-u32-vsnprintf.c: Likewise.
63583         * lib/unistdio/u32-u32-vsprintf.c: Likewise.
63584         * lib/unistdio/u32-vasnprintf.c: Likewise.
63585         * lib/unistdio/u32-vasprintf.c: Likewise.
63586         * lib/unistdio/u32-vsnprintf.c: Likewise.
63587         * lib/unistdio/u32-vsprintf.c: Likewise.
63588         * lib/unistdio/u8-asnprintf.c: Likewise.
63589         * lib/unistdio/u8-asprintf.c: Likewise.
63590         * lib/unistdio/u8-printf-parse.c: Likewise.
63591         * lib/unistdio/u8-snprintf.c: Likewise.
63592         * lib/unistdio/u8-sprintf.c: Likewise.
63593         * lib/unistdio/u8-u8-asnprintf.c: Likewise.
63594         * lib/unistdio/u8-u8-asprintf.c: Likewise.
63595         * lib/unistdio/u8-u8-snprintf.c: Likewise.
63596         * lib/unistdio/u8-u8-sprintf.c: Likewise.
63597         * lib/unistdio/u8-u8-vasnprintf.c: Likewise.
63598         * lib/unistdio/u8-u8-vasprintf.c: Likewise.
63599         * lib/unistdio/u8-u8-vsnprintf.c: Likewise.
63600         * lib/unistdio/u8-u8-vsprintf.c: Likewise.
63601         * lib/unistdio/u8-vasnprintf.c: Likewise.
63602         * lib/unistdio/u8-vasprintf.c: Likewise.
63603         * lib/unistdio/u8-vsnprintf.c: Likewise.
63604         * lib/unistdio/u8-vsprintf.c: Likewise.
63605         * lib/unistdio/ulc-asnprintf.c: Likewise.
63606         * lib/unistdio/ulc-asprintf.c: Likewise.
63607         * lib/unistdio/ulc-printf-parse.c: Likewise.
63608         * lib/unistdio/ulc-snprintf.c: Likewise.
63609         * lib/unistdio/ulc-sprintf.c: Likewise.
63610         * lib/unistdio/ulc-vasnprintf.c: Likewise.
63611         * lib/unistdio/ulc-vasprintf.c: Likewise.
63612         * lib/unistdio/ulc-vsnprintf.c: Likewise.
63613         * lib/unistdio/ulc-vsprintf.c: Likewise.
63614         * lib/unistr.h: Likewise.
63615         * lib/unistr/u-cpy-alloc.h: Likewise.
63616         * lib/unistr/u-cpy.h: Likewise.
63617         * lib/unistr/u-endswith.h: Likewise.
63618         * lib/unistr/u-move.h: Likewise.
63619         * lib/unistr/u-set.h: Likewise.
63620         * lib/unistr/u-startswith.h: Likewise.
63621         * lib/unistr/u-stpcpy.h: Likewise.
63622         * lib/unistr/u-stpncpy.h: Likewise.
63623         * lib/unistr/u-strcat.h: Likewise.
63624         * lib/unistr/u-strcpy.h: Likewise.
63625         * lib/unistr/u-strcspn.h: Likewise.
63626         * lib/unistr/u-strdup.h: Likewise.
63627         * lib/unistr/u-strlen.h: Likewise.
63628         * lib/unistr/u-strncat.h: Likewise.
63629         * lib/unistr/u-strncpy.h: Likewise.
63630         * lib/unistr/u-strnlen.h: Likewise.
63631         * lib/unistr/u-strpbrk.h: Likewise.
63632         * lib/unistr/u-strspn.h: Likewise.
63633         * lib/unistr/u-strstr.h: Likewise.
63634         * lib/unistr/u-strtok.h: Likewise.
63635         * lib/unistr/u16-check.c: Likewise.
63636         * lib/unistr/u16-chr.c: Likewise.
63637         * lib/unistr/u16-cmp.c: Likewise.
63638         * lib/unistr/u16-cpy-alloc.c: Likewise.
63639         * lib/unistr/u16-cpy.c: Likewise.
63640         * lib/unistr/u16-endswith.c: Likewise.
63641         * lib/unistr/u16-mblen.c: Likewise.
63642         * lib/unistr/u16-mbsnlen.c: Likewise.
63643         * lib/unistr/u16-mbtouc-aux.c: Likewise.
63644         * lib/unistr/u16-mbtouc-unsafe-aux.c: Likewise.
63645         * lib/unistr/u16-mbtouc-unsafe.c: Likewise.
63646         * lib/unistr/u16-mbtouc.c: Likewise.
63647         * lib/unistr/u16-mbtoucr.c: Likewise.
63648         * lib/unistr/u16-move.c: Likewise.
63649         * lib/unistr/u16-next.c: Likewise.
63650         * lib/unistr/u16-prev.c: Likewise.
63651         * lib/unistr/u16-set.c: Likewise.
63652         * lib/unistr/u16-startswith.c: Likewise.
63653         * lib/unistr/u16-stpcpy.c: Likewise.
63654         * lib/unistr/u16-stpncpy.c: Likewise.
63655         * lib/unistr/u16-strcat.c: Likewise.
63656         * lib/unistr/u16-strchr.c: Likewise.
63657         * lib/unistr/u16-strcmp.c: Likewise.
63658         * lib/unistr/u16-strcpy.c: Likewise.
63659         * lib/unistr/u16-strcspn.c: Likewise.
63660         * lib/unistr/u16-strdup.c: Likewise.
63661         * lib/unistr/u16-strlen.c: Likewise.
63662         * lib/unistr/u16-strmblen.c: Likewise.
63663         * lib/unistr/u16-strmbtouc.c: Likewise.
63664         * lib/unistr/u16-strncat.c: Likewise.
63665         * lib/unistr/u16-strncmp.c: Likewise.
63666         * lib/unistr/u16-strncpy.c: Likewise.
63667         * lib/unistr/u16-strnlen.c: Likewise.
63668         * lib/unistr/u16-strpbrk.c: Likewise.
63669         * lib/unistr/u16-strrchr.c: Likewise.
63670         * lib/unistr/u16-strspn.c: Likewise.
63671         * lib/unistr/u16-strstr.c: Likewise.
63672         * lib/unistr/u16-strtok.c: Likewise.
63673         * lib/unistr/u16-to-u32.c: Likewise.
63674         * lib/unistr/u16-to-u8.c: Likewise.
63675         * lib/unistr/u16-uctomb-aux.c: Likewise.
63676         * lib/unistr/u16-uctomb.c: Likewise.
63677         * lib/unistr/u32-check.c: Likewise.
63678         * lib/unistr/u32-chr.c: Likewise.
63679         * lib/unistr/u32-cmp.c: Likewise.
63680         * lib/unistr/u32-cpy-alloc.c: Likewise.
63681         * lib/unistr/u32-cpy.c: Likewise.
63682         * lib/unistr/u32-endswith.c: Likewise.
63683         * lib/unistr/u32-mblen.c: Likewise.
63684         * lib/unistr/u32-mbsnlen.c: Likewise.
63685         * lib/unistr/u32-mbtouc-unsafe.c: Likewise.
63686         * lib/unistr/u32-mbtouc.c: Likewise.
63687         * lib/unistr/u32-mbtoucr.c: Likewise.
63688         * lib/unistr/u32-move.c: Likewise.
63689         * lib/unistr/u32-next.c: Likewise.
63690         * lib/unistr/u32-prev.c: Likewise.
63691         * lib/unistr/u32-set.c: Likewise.
63692         * lib/unistr/u32-startswith.c: Likewise.
63693         * lib/unistr/u32-stpcpy.c: Likewise.
63694         * lib/unistr/u32-stpncpy.c: Likewise.
63695         * lib/unistr/u32-strcat.c: Likewise.
63696         * lib/unistr/u32-strchr.c: Likewise.
63697         * lib/unistr/u32-strcmp.c: Likewise.
63698         * lib/unistr/u32-strcpy.c: Likewise.
63699         * lib/unistr/u32-strcspn.c: Likewise.
63700         * lib/unistr/u32-strdup.c: Likewise.
63701         * lib/unistr/u32-strlen.c: Likewise.
63702         * lib/unistr/u32-strmblen.c: Likewise.
63703         * lib/unistr/u32-strmbtouc.c: Likewise.
63704         * lib/unistr/u32-strncat.c: Likewise.
63705         * lib/unistr/u32-strncmp.c: Likewise.
63706         * lib/unistr/u32-strncpy.c: Likewise.
63707         * lib/unistr/u32-strnlen.c: Likewise.
63708         * lib/unistr/u32-strpbrk.c: Likewise.
63709         * lib/unistr/u32-strrchr.c: Likewise.
63710         * lib/unistr/u32-strspn.c: Likewise.
63711         * lib/unistr/u32-strstr.c: Likewise.
63712         * lib/unistr/u32-strtok.c: Likewise.
63713         * lib/unistr/u32-to-u16.c: Likewise.
63714         * lib/unistr/u32-to-u8.c: Likewise.
63715         * lib/unistr/u32-uctomb.c: Likewise.
63716         * lib/unistr/u8-check.c: Likewise.
63717         * lib/unistr/u8-chr.c: Likewise.
63718         * lib/unistr/u8-cmp.c: Likewise.
63719         * lib/unistr/u8-cpy-alloc.c: Likewise.
63720         * lib/unistr/u8-cpy.c: Likewise.
63721         * lib/unistr/u8-endswith.c: Likewise.
63722         * lib/unistr/u8-mblen.c: Likewise.
63723         * lib/unistr/u8-mbsnlen.c: Likewise.
63724         * lib/unistr/u8-mbtouc-aux.c: Likewise.
63725         * lib/unistr/u8-mbtouc-unsafe-aux.c: Likewise.
63726         * lib/unistr/u8-mbtouc-unsafe.c: Likewise.
63727         * lib/unistr/u8-mbtouc.c: Likewise.
63728         * lib/unistr/u8-mbtoucr.c: Likewise.
63729         * lib/unistr/u8-move.c: Likewise.
63730         * lib/unistr/u8-next.c: Likewise.
63731         * lib/unistr/u8-prev.c: Likewise.
63732         * lib/unistr/u8-set.c: Likewise.
63733         * lib/unistr/u8-startswith.c: Likewise.
63734         * lib/unistr/u8-stpcpy.c: Likewise.
63735         * lib/unistr/u8-stpncpy.c: Likewise.
63736         * lib/unistr/u8-strcat.c: Likewise.
63737         * lib/unistr/u8-strchr.c: Likewise.
63738         * lib/unistr/u8-strcmp.c: Likewise.
63739         * lib/unistr/u8-strcpy.c: Likewise.
63740         * lib/unistr/u8-strcspn.c: Likewise.
63741         * lib/unistr/u8-strdup.c: Likewise.
63742         * lib/unistr/u8-strlen.c: Likewise.
63743         * lib/unistr/u8-strmblen.c: Likewise.
63744         * lib/unistr/u8-strmbtouc.c: Likewise.
63745         * lib/unistr/u8-strncat.c: Likewise.
63746         * lib/unistr/u8-strncmp.c: Likewise.
63747         * lib/unistr/u8-strncpy.c: Likewise.
63748         * lib/unistr/u8-strnlen.c: Likewise.
63749         * lib/unistr/u8-strpbrk.c: Likewise.
63750         * lib/unistr/u8-strrchr.c: Likewise.
63751         * lib/unistr/u8-strspn.c: Likewise.
63752         * lib/unistr/u8-strstr.c: Likewise.
63753         * lib/unistr/u8-strtok.c: Likewise.
63754         * lib/unistr/u8-to-u16.c: Likewise.
63755         * lib/unistr/u8-to-u32.c: Likewise.
63756         * lib/unistr/u8-uctomb-aux.c: Likewise.
63757         * lib/unistr/u8-uctomb.c: Likewise.
63758         * lib/unitypes.h: Likewise.
63759         * lib/uniwidth.h: Likewise.
63760         * lib/uniwidth/cjk.h: Likewise.
63761         * lib/uniwidth/u16-strwidth.c: Likewise.
63762         * lib/uniwidth/u16-width.c: Likewise.
63763         * lib/uniwidth/u32-strwidth.c: Likewise.
63764         * lib/uniwidth/u32-width.c: Likewise.
63765         * lib/uniwidth/u8-strwidth.c: Likewise.
63766         * lib/uniwidth/u8-width.c: Likewise.
63767         * lib/uniwidth/width.c: Likewise.
63768
63769 2007-10-07  Bruno Haible  <bruno@clisp.org>
63770
63771         * lib/inttypes.in.h: Change copyright notice from LGPL to GPL.
63772         The file is still under LGPL (see modules/inttypes).
63773
63774 2007-10-06  Bruno Haible  <bruno@clisp.org>
63775
63776         * modules/trunc (Dependencies): Add 'extensions'.
63777         * m4/trunc.m4 (gl_FUNC_TRUNC): Require gl_USE_SYSTEM_EXTENSIONS.
63778         Reported by Ben Pfaff <blp@gnu.org>.
63779
63780 2007-10-06  Bruno Haible  <bruno@clisp.org>
63781
63782         * modules/freopen-tests: New file.
63783         * tests/test-freopen.c: New file.
63784
63785         * modules/fopen-tests: New file.
63786         * tests/test-fopen.c: New file.
63787
63788         * modules/fopen: New file.
63789         * lib/fopen.c: New file.
63790         * m4/fopen.m4: New file.
63791         * modules/freopen: New file.
63792         * lib/freopen.c: New file.
63793         * m4/freopen.m4: New file.
63794         * lib/stdio.in.h (fopen, freopen): New declarations.
63795         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Initialize also GNULIB_FOPEN,
63796         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63797         * modules/stdio (Makefile.am): Substitute also GNULIB_FOPEN,
63798         GNULIB_FREOPEN, REPLACE_FOPEN, REPLACE_FREOPEN.
63799         * doc/functions/fopen.texi: Mention the 'fopen' module.
63800         * doc/functions/freopen.texi: Mention the 'freopen' module.
63801
63802 2007-10-06  Bruno Haible  <bruno@clisp.org>
63803
63804         * modules/open-tests: New file.
63805         * tests/test-open.c: New file.
63806
63807         * modules/open: New file.
63808         * lib/open.c: New file.
63809         * m4/open.m4: New file.
63810         * lib/fchdir.c (open): If the gnulib module 'open' is used, do what
63811         lib/open.c does.
63812         * lib/fcntl.in.h (open): Declare also if replaced by the 'open' module.
63813         * m4/fcntl_h.m4 (gl_FCNTL_MODULE_INDICATOR, gl_FCNTL_H_DEFAULTS): New
63814         macros.
63815         (gl_FCNTL_H): Require gl_FCNTL_H_DEFAULTS.
63816         * modules/fcntl (Makefile.am): Also substitute GNULIB_OPEN and
63817         REPLACE_OPEN.
63818         * doc/functions/open.texi: Mention the 'open' module.
63819
63820 2007-10-04  Bruno Haible  <bruno@clisp.org>
63821
63822         * modules/ceill-tests: New file.
63823         * tests/test-ceill.c: New file.
63824
63825         * modules/ceill: New file.
63826         * lib/ceill.c: Replace entire file.
63827         * m4/ceill.m4: New file.
63828         * lib/math.in.h (ceill): Replace declaration.
63829         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILL.
63830         * modules/math (Makefile.am): Substitute also GNULIB_CEILL.
63831         * doc/functions/ceill.texi: Mention the 'ceill' module.
63832         * modules/mathl (Files): Remove lib/ceill.c.
63833         (Depends-on): Add ceill.
63834
63835 2007-10-04  Bruno Haible  <bruno@clisp.org>
63836
63837         * modules/ceilf-tests: New file.
63838         * tests/test-ceilf.c: New file.
63839
63840         * modules/ceilf: New file.
63841         * lib/ceil.c: New file.
63842         * lib/ceilf.c: New file.
63843         * m4/ceilf.m4: New file.
63844         * lib/math.in.h (ceilf): New declaration.
63845         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_CEILF and
63846         HAVE_DECL_CEILF.
63847         * modules/math (Makefile.am): Substitute also GNULIB_CEILF and
63848         HAVE_DECL_CEILF.
63849         * doc/functions/ceilf.texi: Mention the 'ceilf' module.
63850
63851 2007-10-04  Bruno Haible  <bruno@clisp.org>
63852
63853         * modules/floorl-tests: New file.
63854         * tests/test-floorl.c: New file.
63855
63856         * modules/floorl: New file.
63857         * lib/floorl.c: Replace entire file.
63858         * m4/floorl.m4: New file.
63859         * lib/math.in.h (floorl): Replace declaration.
63860         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORL.
63861         * modules/math (Makefile.am): Substitute also GNULIB_FLOORL.
63862         * doc/functions/floorl.texi: Mention the 'floorl' module.
63863         * modules/mathl (Files): Remove lib/floorl.c.
63864         (Depends-on): Add floorl.
63865
63866 2007-10-04  Bruno Haible  <bruno@clisp.org>
63867
63868         * modules/floorf-tests: New file.
63869         * tests/test-floorf.c: New file.
63870
63871         * modules/floorf: New file.
63872         * lib/floor.c: New file.
63873         * lib/floorf.c: New file.
63874         * m4/floorf.m4: New file.
63875         * lib/math.in.h (floorf): New declaration.
63876         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FLOORF and
63877         HAVE_DECL_FLOORF.
63878         * modules/math (Makefile.am): Substitute also GNULIB_FLOORF and
63879         HAVE_DECL_FLOORF.
63880         * doc/functions/floorf.texi: Mention the 'floorf' module.
63881
63882 2007-10-04  Benoit Sigoure  <tsuna@lrde.epita.fr>
63883             Bruno Haible  <bruno@clisp.org>
63884
63885         Advertise for the Git server instead of the CVS server.
63886         * doc/gnulib-intro.texi (Steady Development): Mention the Git
63887         repository instead of the CVS one.
63888         * doc/gnulib-tool.texi (VCS Issues): Renamed from "CVS Issues". Talk
63889         about all VCS systems generically.
63890         * doc/gnulib.texi (Introduction): Capitalize `Git'.
63891
63892 2007-10-04  Bruno Haible  <bruno@clisp.org>
63893
63894         * doc/gnulib.texi (Function Substitutes): Explain what an absent module
63895         means.
63896         Reported by Benoît Sigoure <tsuna@lrde.epita.fr>.
63897
63898 2007-10-04  Bruno Haible  <bruno@clisp.org>
63899
63900         * modules/truncl-tests: New file.
63901         * tests/test-truncl.c: New file.
63902
63903         * modules/truncl: New file.
63904         * lib/truncl.c: New file.
63905         * m4/truncl.m4: New file.
63906         * lib/math.in.h (truncl): New declaration.
63907         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCL and
63908         HAVE_DECL_TRUNCL.
63909         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCL and
63910         HAVE_DECL_TRUNCL.
63911         * doc/functions/truncl.texi: Mention the 'truncl' module.
63912
63913 2007-10-04  Bruno Haible  <bruno@clisp.org>
63914
63915         * modules/truncf-tests: New file.
63916         * tests/test-truncf.c: New file.
63917
63918         * modules/truncf: New file.
63919         * lib/trunc.c: Make paramerizable through USE_* macros.
63920         * lib/truncf.c: New file.
63921         * m4/truncf.m4: New file.
63922         * lib/math.in.h (truncf): New declaration.
63923         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNCF and
63924         HAVE_DECL_TRUNCF.
63925         * modules/math (Makefile.am): Substitute also GNULIB_TRUNCF and
63926         HAVE_DECL_TRUNCF.
63927         * doc/functions/truncf.texi: Mention the 'truncf' module.
63928
63929 2007-10-03  Bruno Haible  <bruno@clisp.org>
63930
63931         * gnulib-tool (func_get_automake_snippet): Synthesize an EXTRA_DIST
63932         augmentation also for tests modules.
63933         * modules/argp-tests (Makefile.am): Remove EXTRA_DIST augmentation.
63934         * modules/atexit-tests (Makefile.am): Likewise.
63935         * modules/binary-io-tests (Makefile.am): Likewise.
63936         * modules/c-strcase-tests (Makefile.am): Likewise.
63937         * modules/canonicalize-lgpl-tests (Makefile.am): Likewise.
63938         * modules/canonicalize-tests (Makefile.am): Likewise.
63939         * modules/closein-tests (Makefile.am): Likewise.
63940         * modules/fprintf-posix-tests (Makefile.am): Likewise.
63941         * modules/freadahead-tests (Makefile.am): Likewise.
63942         * modules/fseek-tests (Makefile.am): Likewise.
63943         * modules/fseeko-tests (Makefile.am): Likewise.
63944         * modules/ftell-tests (Makefile.am): Likewise.
63945         * modules/ftello-tests (Makefile.am): Likewise.
63946         * modules/isnanl-nolibm-tests (Makefile.am): Likewise.
63947         * modules/isnanl-tests (Makefile.am): Likewise.
63948         * modules/lseek-tests (Makefile.am): Likewise.
63949         * modules/mbscasecmp-tests (Makefile.am): Likewise.
63950         * modules/mbscasestr-tests (Makefile.am): Likewise.
63951         * modules/mbschr-tests (Makefile.am): Likewise.
63952         * modules/mbscspn-tests (Makefile.am): Likewise.
63953         * modules/mbsncasecmp-tests (Makefile.am): Likewise.
63954         * modules/mbspbrk-tests (Makefile.am): Likewise.
63955         * modules/mbspcasecmp-tests (Makefile.am): Likewise.
63956         * modules/mbsrchr-tests (Makefile.am): Likewise.
63957         * modules/mbsspn-tests (Makefile.am): Likewise.
63958         * modules/mbsstr-tests (Makefile.am): Likewise.
63959         * modules/printf-posix-tests (Makefile.am): Likewise.
63960         * modules/snprintf-posix-tests (Makefile.am): Likewise.
63961         * modules/sprintf-posix-tests (Makefile.am): Likewise.
63962         * modules/tsearch-tests (Makefile.am): Likewise.
63963         * modules/uniname/uniname-tests (Makefile.am): Likewise.
63964         * modules/unistdio/u16-vasnprintf-tests (Makefile.am): Likewise.
63965         * modules/unistdio/u32-vasnprintf-tests (Makefile.am): Likewise.
63966         * modules/unistdio/u8-vasnprintf-tests (Makefile.am): Likewise.
63967         * modules/unistdio/ulc-vasnprintf-tests (Makefile.am): Likewise.
63968         * modules/vasnprintf-posix-tests (Makefile.am): Likewise.
63969         * modules/vfprintf-posix-tests (Makefile.am): Likewise.
63970         * modules/vprintf-posix-tests (Makefile.am): Likewise.
63971         * modules/vsnprintf-posix-tests (Makefile.am): Likewise.
63972         * modules/vsprintf-posix-tests (Makefile.am): Likewise.
63973         * modules/xstrtoimax-tests (Makefile.am): Likewise.
63974         * modules/xstrtol-tests (Makefile.am): Likewise.
63975         * modules/xstrtoumax-tests (Makefile.am): Likewise.
63976         * modules/yesno-tests (Makefile.am): Likewise.
63977
63978 2007-10-03  Bruno Haible  <bruno@clisp.org>
63979
63980         * modules/trunc-tests: New file.
63981         * tests/test-trunc.c: New file.
63982
63983         * modules/trunc: New file.
63984         * lib/trunc.c: New file.
63985         * m4/trunc.m4: New file.
63986         * lib/math.in.h (trunc): New declaration.
63987         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_TRUNC and
63988         HAVE_DECL_TRUNC.
63989         * modules/math (Makefile.am): Substitute also GNULIB_TRUNC and
63990         HAVE_DECL_TRUNC.
63991         * doc/functions/trunc.texi: Mention the 'trunc' module.
63992
63993 2007-10-03  Bruno Haible  <bruno@clisp.org>
63994
63995         * tests/test-fpending.c: New file, mostly copied
63996         from coreutils/lib/t-fpending.c.
63997         * modules/fpending-tests: New file.
63998
63999 2007-10-03  Bruno Haible  <bruno@clisp.org>
64000
64001         Port the stdio extensions to QNX (untested).
64002         * lib/fseterr.c (fseterr): Add support for QNX.
64003         * lib/fbufmode.c (fbufmode): Likewise.
64004         * lib/freadable.c (freadable): Likewise.
64005         * lib/fwritable.c (fwritable): Likewise.
64006         * lib/freading.c (freading): Likewise.
64007         * lib/fwriting.c (fwriting): Likewise.
64008         * lib/freadahead.c (freadahed): Likewise.
64009         * lib/fpurge.c (fpurge): Likewise.
64010         * lib/fseeko.c (rpl_fseeko): Likewise.
64011
64012 2007-10-03  Bruno Haible  <bruno@clisp.org>
64013             Jim Meyering  <jim@meyering.net>
64014             Eric Blake  <ebb9@byu.net>
64015
64016         * doc/relocatable.texi: Use @command instead of @program.
64017
64018 2007-10-02  Jim Meyering  <jim@meyering.net>
64019
64020         Perform one more "_.h" -> ".in.h" substitution.
64021         * modules/unistd (Makefile.am) [unistd.h]: Use unistd.h.in
64022         instead of unistd_.h here, too.
64023
64024 2007-10-01  Bruno Haible  <bruno@clisp.org>
64025
64026         * gnulib-tool (func_emit_initmacro_done): Special case for alloca.c.
64027         Needed for the alloca-opt module.
64028
64029 2007-09-30  Bruno Haible  <bruno@clisp.org>
64030
64031         * lib/alloca.in.h: Renamed from lib/alloca_.h.
64032         * modules/alloca-opt (Files, Makefile.am): Use alloca.in.h instead of
64033         alloca_.h.
64034         * lib/argz.in.h: Renamed from lib/argz_.h.
64035         * modules/argz (Files, Makefile.am): Use argz.in.h instead of argz_.h.
64036         * lib/byteswap.in.h: Renamed from lib/byteswap_.h.
64037         * modules/byteswap (Files, Makefile.am): Use byteswap.in.h instead of
64038         byteswap_.h.
64039         * lib/dirent.in.h: Renamed from lib/dirent_.h.
64040         * modules/fchdir (Files, Makefile.am): Use dirent.in.h instead of
64041         dirent_.h.
64042         * lib/fcntl.in.h: Renamed from lib/fcntl_.h.
64043         * modules/fcntl (Files, Makefile.am): Use fcntl.in.h instead of
64044         fcntl_.h.
64045         * lib/float.in.h: Renamed from lib/float_.h.
64046         * modules/float (Files, Makefile.am): Use float.in.h instead of
64047         float_.h.
64048         * lib/fnmatch.in.h: Renamed from lib/fnmatch_.h.
64049         * modules/fnmatch (Files, Makefile.am): Use fnmatch.in.h instead of
64050         fnmatch_.h.
64051         * lib/getopt.in.h: Renamed from lib/getopt_.h.
64052         * modules/getopt (Files, Makefile.am): Use getopt.in.h instead of
64053         getopt_.h.
64054         * lib/glob.in.h: Renamed from lib/glob_.h.
64055         * modules/glob (Files, Makefile.am): Use glob.in.h instead of glob_.h.
64056         * lib/iconv.in.h: Renamed from lib/iconv_.h.
64057         * modules/iconv_open (Files, Makefile.am): Use iconv.in.h instead of
64058         iconv_.h.
64059         * lib/inttypes.in.h: Renamed from lib/inttypes_.h.
64060         * modules/inttypes (Files, Makefile.am): Use inttypes.in.h instead of
64061         inttypes_.h.
64062         * lib/locale.in.h: Renamed from lib/locale_.h.
64063         * modules/locale (Files, Makefile.am): Use locale.in.h instead of
64064         locale_.h.
64065         * lib/math.in.h: Renamed from lib/math_.h.
64066         * modules/math (Files, Makefile.am): Use math.in.h instead of math_.h.
64067         * lib/netinet_in.in.h: Renamed from lib/netinet_in_.h.
64068         * modules/netinet_in (Files, Makefile.am): Use netinet_in.in.h instead
64069         of netinet_in_.h. Add dependency.
64070         * lib/poll.in.h: Renamed from lib/poll_.h.
64071         * modules/poll (Files, Makefile.am): Use poll.in.h instead of poll_.h.
64072         * lib/search.in.h: Renamed from lib/search_.h.
64073         * modules/search (Files, Makefile.am): Use search.in.h instead of
64074         search_.h.
64075         * lib/signal.in.h: Renamed from lib/signal_.h.
64076         * modules/signal (Files, Makefile.am): Use signal.in.h instead of
64077         _signal.h.
64078         * lib/stdbool.in.h: Renamed from lib/stdbool_.h.
64079         * modules/stdbool (Files, Makefile.am): Use stdbool.in.h instead of
64080         stdbool_.h.
64081         * lib/stdint.in.h: Renamed from lib/stdint_.h.
64082         * modules/stdint (Files, Makefile.am): Use stdint.in.h instead of
64083         stdint_.h.
64084         * lib/stdio.in.h: Renamed from lib/stdio_.h.
64085         * modules/stdio (Files, Makefile.am): Use stdio.in.h instead of
64086         stdio_.h.
64087         * lib/stdlib.in.h: Renamed from lib/stdlib_.h.
64088         * modules/stdlib (Files, Makefile.am): Use stdlib.in.h instead of
64089         stdlib_.h.
64090         * lib/string.in.h: Renamed from lib/string_.h.
64091         * modules/string (Files, Makefile.am): Use string.in.h instead of
64092         string_.h.
64093         * doc/gnulib-tool.texi (Initial import): Update.
64094         * lib/sys_select.in.h: Renamed from lib/sys_select_.h.
64095         * modules/sys_select (Files, Makefile.am): Use sys_select.in.h instead
64096         of sys_select_.h. Add dependency.
64097         * lib/sys_socket.in.h: Renamed from lib/sys_socket_.h.
64098         * modules/sys_socket (Files, Makefile.am): Use sys_socket.in.h instead
64099         of sys_socket_.h.
64100         * lib/sys_stat.in.h: Renamed from lib/sys_stat_.h.
64101         * modules/sys_stat (Files, Makefile.am): Use sys_stat.in.h instead of
64102         sys_stat_.h.
64103         * lib/sys_time.in.h: Renamed from lib/sys_time_.h.
64104         * modules/sys_time (Files, Makefile.am): Use sys_time.in.h instead of
64105         sys_time_.h.
64106         * lib/sysexits.in.h: Renamed from lib/sysexits_.h.
64107         * modules/sysexits (Files, Makefile.am): Use sysexits.in.h instead of
64108         sysexits_.h.
64109         * lib/time.in.h: Renamed from lib/time_.h.
64110         * modules/time (Files, Makefile.am): Use time.in.h instead of time_.h.
64111         * lib/unistd.in.h: Renamed from lib/unistd_.h.
64112         * modules/unistd (Files, Makefile.am): Use unistd.in.h instead of
64113         unistd_.h.
64114         * lib/wchar.in.h: Renamed from lib/wchar_.h.
64115         * modules/wchar (Files, Makefile.am): Use wchar.in.h instead of
64116         wchar_.h.
64117         * lib/wctype.in.h: Renamed from lib/wctype_.h.
64118         * modules/wctype (Files, Makefile.am): Use wctype.in.h instead of
64119         wctype_.h.
64120         * build-aux/bootstrap (slurp): Update.
64121         * lib/.cppi-disable: Update.
64122
64123 2007-09-30  Bruno Haible  <bruno@clisp.org>
64124
64125         * tests/test-getaddrinfo.c (AF_UNSPEC): Provide a fallback definition.
64126         Needed on BeOS.
64127
64128 2007-09-30  Bruno Haible  <bruno@clisp.org>
64129
64130         * modules/dirname-tests (check_PROGRAMS): Renamed from noinst_PROGRAMS.
64131
64132 2007-09-29  Bruno Haible  <bruno@clisp.org>
64133
64134         * lib/stdio_.h (getdelim, getline): Add identifiers. Doc tweak.
64135
64136 2007-09-29  Bruno Haible  <bruno@clisp.org>
64137
64138         * lib/xreadlink.c (xreadlink): Simplify to a wrapper around areadlink.
64139         * modules/xreadlink (Depends-on): Add areadlink, remove readlink etc.
64140         * build-aux/install-reloc: Compile also areadlink.c.
64141         * modules/relocatable-prog-wrapper (Files): Add lib/areadlink.[hc].
64142
64143 2007-09-29  Bruno Haible  <bruno@clisp.org>
64144
64145         * gnulib-tool (func_emit_initmacro_done): Indentation.
64146
64147 2007-09-29  Bruno Haible  <bruno@clisp.org>
64148
64149         * README: Add CVS checkout update instructions.
64150         Info from Bob Proulx <bob@proulx.com>.
64151
64152 2007-09-28  Eric Blake  <ebb9@byu.net>
64153
64154         Provide move-if-change.
64155         * build-aux/move-if-change: New file, based on best practice
64156         rather than any canonical upstream location.
64157
64158 2007-09-28  Jim Meyering  <jim@meyering.net>
64159
64160         Fix canonicalize loop-detection corner case.
64161         Do not attempt to stat the symlink values stored via seen_triple.
64162         Without this, coreutils' tests/misc/readlink-fp-loop test would fail
64163         on linux-2.6.18, (but not 2.6.22).
64164         * lib/canonicalize.c (seen_triple): Use triple_compare_ino_str, not
64165         triple_compare.  The former compares dev,ino,filename, while the latter
64166         would actually stat dirname(filename) when dev and ino were equal.
64167         * lib/hash-triple.c: Install <string.h>.
64168         (STREQ): Define.
64169         (triple_compare_ino_str): New function.
64170         * lib/hash-triple.h (triple_compare_ino_str): Declare it.
64171
64172 2007-09-28  Eric Blake  <ebb9@byu.net>
64173
64174         Enforce that AC_REPLACE_FUNCS files exist.
64175         * gnulib-tool (func_emit_initmacro_done): Make AC_LIBSOURCES
64176         override check for typos.
64177
64178         Fix test-closein on Solaris 10.
64179         * tests/test-closein.c (main): Don't assume stdin can be inherited
64180         closed on all systems.
64181         * tests/test-closein.sh: Likewise.
64182         Reported by Piotr Tarnowski.
64183
64184 2007-09-28  Jim Meyering  <jim@meyering.net>
64185
64186         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Fix typo in comment.
64187
64188 2007-09-27  Jim Meyering  <jim@meyering.net>
64189
64190         canonicalize: Avoid a false-positive cycle failure.
64191         * modules/canonicalize (Depends-on): Add file-set and hash-triple.
64192         Sort.  Remove cycle-check.
64193         * lib/canonicalize.c: Include file-set.h and hash-triple.h,
64194         not cycle-check.h.
64195         (seen_triple): New function.
64196         (canonicalize_filename_mode): Use it instead of cycle-check.
64197         * tests/test-canonicalize.c: Add a test for this bug.
64198         * tests/test-canonicalize.sh: Set up and run the test.
64199
64200         New module, file-set, from coreutils.
64201         * modules/file-set: Define it.
64202         * lib/file-set.c, lib/file-set.h: Implement.
64203
64204         New module, hash-triple, from coreutils.
64205         * modules/hash-triple: Define it.
64206         * lib/hash-triple.c, lib/hash-triple.h: Implement.
64207
64208 2007-09-25  Eric Blake  <ebb9@byu.net>
64209
64210         Fix strerror on Interix.
64211         * lib/string_.h (strerror): Declare replacement.
64212         * doc/functions/strerror.texi (strerror): Document the Interix
64213         shortcoming.
64214         * modules/string (Makefile.am): Support new hooks.
64215         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Add new hooks.
64216         * m4/strerror.m4 (gl_FUNC_STRERROR): Defer to
64217         gl_FUNC_STRERROR_SEPARATE.
64218         (gl_FUNC_STRERROR_SEPARATE): Check for Interix bug.
64219         * lib/strerror.c (rpl_strerror): Provide replacement.
64220         * modules/strerror (Depends-on): Add string.
64221         (configure.ac): Detect use of module.
64222         * tests/test-strerror.c: New file.
64223         * modules/strerror-tests: New test module.
64224         * modules/argp (Depends-on): Add strerror.
64225         * modules/error (Depends-on): Likewise.
64226         Reported by Martin Koeppe.
64227
64228 2007-09-24  Bruno Haible  <bruno@clisp.org>
64229
64230         * README: Update git instructions.
64231
64232 2007-09-24  Eric Blake  <ebb9@byu.net>
64233
64234         Revert fpending breakage from 2007-09-08.
64235         * m4/fpending.m4 (gl_FUNC_FPENDING): Don't require existence of
64236         __fpending.c.
64237
64238 2007-09-24  Jim Meyering  <jim@meyering.net>
64239
64240         filenamecat.c: Add a test.
64241         * lib/filenamecat.c (main) [TEST_FILE_NAME_CONCAT]: Add a test
64242         showing how the function works when DIR is the empty string.
64243
64244 2007-09-21  Simon Josefsson  <simon@josefsson.org>
64245
64246         * tests/test-canonicalize.sh: Turn on executable bit.
64247
64248 2007-09-19  Eric Blake  <ebb9@byu.net>
64249
64250         * README: Update CVS instructions.
64251
64252 2007-09-18  Bruno Haible  <bruno@clisp.org>
64253
64254         * modules/areadlink: New file.
64255         * lib/areadlink.h (areadlink): New declaration.
64256         * lib/areadlink.c: New file, based on lib/xreadlink.c.
64257
64258 2007-09-17  Jim Meyering  <jim@meyering.net>
64259
64260         * lib/savewd.c (ESTALE) [!defined]: Define.
64261         Reported to be required on Interix by Martin Koeppe.
64262
64263 2007-09-17  Bruno Haible  <bruno@clisp.org>
64264
64265         * gnulib-tool (func_version): Use $version.
64266
64267 2007-09-16  Bruno Haible  <bruno@clisp.org>
64268
64269         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE, gl_PRINTF_INFINITE,
64270         gl_PRINTF_INFINITE_LONG_DOUBLE): Increase buf's size from 100 to 10000.
64271         Needed on glibc-2.6.1 with -fstack-protector -D_FORTIFY_SOURCE=2.
64272         Reported by Greg Schafer <gschafer@zip.com.au>.
64273
64274 2007-09-15  Bruno Haible  <bruno@clisp.org>
64275
64276         * gnulib-tool (sed): Try a little harder to make bash understand the
64277         alias.
64278         Reported by Bruce Korb <bruce.korb@gmail.com>.
64279
64280 2007-09-13  Eric Blake  <ebb9@byu.net>
64281
64282         * ChangeLog: Remove conflict markers.
64283
64284 2007-09-13  Simon Josefsson  <simon@josefsson.org>
64285
64286         * lib/gc-gnulib.c (gc_hash_open): Catch NULL calloc return value.
64287         Reported by Bruno Haible <bruno@clisp.org>.
64288
64289 2007-09-12  Bruno Haible  <bruno@clisp.org>
64290
64291         * m4/lock.m4: Don't provide an AC_USE_SYSTEM_EXTENSIONS definition.
64292         (gl_LOCK_EARLY_BODY): Use AC_GNU_SOURCE when AC_USE_SYSTEM_EXTENSIONS
64293         is not defined.
64294
64295 2007-09-12  Eric Blake  <ebb9@byu.net>
64296
64297         Track CVS Autoconf on AC_USE_SYSTEM_EXTENSIONS.
64298         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Update to CVS
64299         Autoconf definition.
64300         * modules/euidaccess (Depends-on): Add extensions, for
64301         AC_USE_SYSTEM_EXTENSIONS with autoconf <= 2.59.
64302         * modules/fnmatch (Depends-on): Likewise.
64303         * modules/getaddrinfo (Depends-on): Likewise.
64304         * modules/getdelim (Depends-on): Likewise.
64305         * modules/getline (Depends-on): Likewise.
64306         * modules/getsubopt (Depends-on): Likewise.
64307         * modules/gettext (Depends-on): Likewise.
64308         * modules/group-member (Depends-on): Likewise.
64309         * modules/mbchar (Depends-on): Likewise.
64310         * modules/memmem (Depends-on): Likewise.
64311         * modules/mempcpy (Depends-on): Likewise.
64312         * modules/memrchr (Depends-on): Likewise.
64313         * modules/pagealign_alloc (Depends-on): Likewise.
64314         * modules/readutmp (Depends-on): Likewise.
64315         * modules/stpcpy (Depends-on): Likewise.
64316         * modules/stpncpy (Depends-on): Likewise.
64317         * modules/strchrnul (Depends-on): Likewise.
64318         * modules/strndup (Depends-on): Likewise.
64319         * modules/strsep (Depends-on): Likewise.
64320         * modules/strverscmp (Depends-on): Likewise.
64321         * modules/vasprintf (Depends-on): Likewise.
64322         * modules/wcwidth (Depends-on): Likewise.
64323         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): AC_GNU_SOURCE will be
64324         obsolete in Autoconf 2.62; use AC_USE_SYSTEM_EXTENSIONS instead.
64325         * m4/fnmatch.m4 (gl_FUNC_FNMATCH_GNU): Likewise.
64326         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDR_INFO): Likewise.
64327         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Likewise.
64328         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64329         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Likewise.
64330         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
64331         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER): Likewise.
64332         * m4/mbchar.m4 (gl_MBCHAR): Likewise.
64333         * m4/memmem.m4 (gl_FUNC_MEMMEM): Likewise.
64334         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
64335         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
64336         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Likewise.
64337         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC): Likewise.
64338         * m4/readutmp.m4 (gl_READUTMP): Likewise.
64339         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
64340         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
64341         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
64342         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
64343         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
64344         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
64345         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
64346         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP): Likewise.
64347         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): Likewise.
64348         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
64349         * m4/lock.m4 (gl_LOCK_EARLY_BODY): Likewise, but provide fallback,
64350         so that lock.m4 can be used in gettext without extensions module.
64351
64352 2007-09-11  Bruno Haible  <bruno@clisp.org>
64353
64354         * m4/isc-posix.m4: Remove file.
64355         Suggested by Eric Blake.
64356
64357 2007-09-11  Eric Blake  <ebb9@byu.net>
64358
64359         * ChangeLog: Restore lines accidentally truncated 2007-04-06.
64360
64361 2007-09-10  Bruno Haible  <bruno@clisp.org>
64362
64363         * posix-modules: Fix typo in error message.
64364         Reported by Matt <mkraai@beckman.com>.
64365
64366 2007-09-09  Bruno Haible  <bruno@clisp.org>
64367
64368         * doc/functions/getdelim.texi: Update list of platforms lacking the
64369         function.
64370         * doc/functions/getline.texi: Likewise.
64371
64372 2007-09-09  Jim Meyering  <jim@meyering.net>
64373
64374         * lib/hash.c (hash_initialize): Detect calloc failure.
64375         Reported by Bruno Haible.
64376
64377 2007-09-09  Bruno Haible  <bruno@clisp.org>
64378
64379         * lib/canonicalize-lgpl.c (__realpath): Set errno to ENOMEM when
64380         malloc or realloc fails.
64381
64382 2007-09-09  Bruno Haible  <bruno@clisp.org>
64383
64384         * modules/getcwd (Depends-on): Add malloc-posix.
64385         * modules/glob (Depends-on): Likewise.
64386         * modules/putenv (Depends-on): Likewise.
64387         * modules/strdup (Depends-on): Likewise.
64388         * modules/getdelim (Depends-on): Add realloc-posix.
64389         * modules/read-file (Depends-on): Likewise.
64390
64391 2007-09-09  Bruno Haible  <bruno@clisp.org>
64392
64393         * m4/malloc.m4 (gl_CHECK_MALLOC_POSIX): New macro.
64394         (gl_FUNC_MALLOC_POSIX): Require it.
64395         * m4/realloc.m4 (gl_FUNC_REALLOC_POSIX): Likewise.
64396         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): Likewise.
64397         * modules/realloc (Files): Add m4/malloc.m4.
64398         * modules/calloc (Files): Likewise.
64399
64400 2007-09-09  Bruno Haible  <bruno@clisp.org>
64401
64402         * modules/malloc-posix: New file.
64403         * modules/malloc (Depends-on): Add malloc-posix.
64404         * lib/malloc.c: Include errno.h.
64405         (rpl_malloc): Merge the requirements of a glibc-compatible malloc
64406         and a POSIX-compatible malloc into a single function. Set ENOMEM
64407         when returning NULL.
64408         * m4/malloc.m4: New file.
64409         * doc/functions/malloc.texi: Mention the malloc-posix module.
64410         * lib/stdlib_.h (malloc): New declaration.
64411         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64412         GNULIB_MALLOC_POSIX and HAVE_MALLOC_POSIX.
64413         * modules/stdlib (stdlib.h): Substitute also GNULIB_MALLOC_POSIX
64414         and HAVE_MALLOC_POSIX.
64415
64416 2007-09-09  Bruno Haible  <bruno@clisp.org>
64417
64418         * modules/realloc-posix: New file.
64419         * modules/realloc (Depends-on): Add realloc-posix.
64420         * lib/realloc.c: Include errno.h.
64421         (rpl_realloc): Merge the requirements of a glibc-compatible realloc
64422         and a POSIX-compatible realloc into a single function. Set ENOMEM
64423         when returning NULL.
64424         * m4/realloc.m4: New file.
64425         * doc/functions/realloc.texi: Mention the realloc-posix module.
64426         * lib/stdlib_.h (realloc): New declaration.
64427         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64428         GNULIB_REALLOC_POSIX and HAVE_REALLOC_POSIX.
64429         * modules/stdlib (stdlib.h): Substitute also GNULIB_REALLOC_POSIX
64430         and HAVE_REALLOC_POSIX.
64431
64432 2007-09-09  Bruno Haible  <bruno@clisp.org>
64433
64434         * modules/calloc-posix: New file.
64435         * modules/calloc (Depends-on): Add calloc-posix.
64436         * lib/calloc.c: Include errno.h.
64437         (rpl_calloc): Merge the requirements of a glibc-compatible calloc
64438         and a POSIX-compatible calloc into a single function. Set ENOMEM
64439         when returning NULL.
64440         * m4/calloc.m4 (gl_FUNC_CALLOC_POSIX): New macro.
64441         * doc/functions/calloc.texi: Mention the calloc-posix module.
64442         * lib/stdlib_.h (calloc): New declaration.
64443         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Initialize
64444         GNULIB_CALLOC_POSIX and HAVE_CALLOC_POSIX.
64445         * modules/stdlib (stdlib.h): Substitute also GNULIB_CALLOC_POSIX
64446         and HAVE_CALLOC_POSIX.
64447
64448 2007-09-09  Bruno Haible  <bruno@clisp.org>
64449
64450         Allow for modules to show an arbitrary notice.
64451         * modules/TEMPLATE-EXTENDED: Add 'Notice' field.
64452         * gnulib-tool: New option --extract-notice.
64453         (func_usage): Document it.
64454         (sed_extract_prog): Update.
64455         (func_get_notice): New function.
64456         (func_modules_notice): New function.
64457         (func_import, func_create_testdir): Invoke it.
64458         Suggested by Jim Meyering.
64459
64460 2007-09-09  Bruno Haible  <bruno@clisp.org>
64461
64462         * gnulib-tool: New options --verbose, --quiet.
64463         (func_usage): Document them.
64464         (verbose): New variable.
64465         (func_execute_command): New function.
64466         (func_import): Don't show the module list and the file list if
64467         $verbose < 0.
64468         (func_create_testdir): Likewise. Use func_execute_command.
64469         (func_create_megatestdir): Use func_execute_command.
64470
64471 2007-09-08  Bruno Haible  <bruno@clisp.org>
64472
64473         * gnulib-tool (func_import): Prefer rsync over wget when available,
64474         for fetching the PO files.
64475
64476 2007-09-08  Bruno Haible  <bruno@clisp.org>
64477
64478         * posix-modules: New file. Portions copied from gnulib-tool.
64479         * doc/gnulib.texi (POSIX Substitutes Library): New chapter.
64480
64481 2007-09-08  Jim Meyering  <jim@meyering.net>
64482
64483         Rename __fpending.c -> fpending.c and __fpending.h -> fpending.h
64484         * lib/fpending.h: Rename from __fpending.h.
64485         * lib/fpending.c: Rename from __fpending.c.
64486         Include "fpending.h", not "__fpending.h".
64487         * lib/__fpending.h, lib/__fpending.c: Remove files.
64488         * modules/fpending (Files): Reflect new file names.
64489         * lib/close-stream.c: Include "fpending.h", not "__fpending.h".
64490
64491 2007-09-08  Bruno Haible  <bruno@clisp.org>
64492
64493         * m4/inttypes-h.m4: Remove stub file.
64494
64495 2007-09-07  Simon Josefsson  <simon@josefsson.org>
64496
64497         * doc/headers/stdint.texi: Discuss #include_next issue.
64498
64499 2007-09-06  Paul Eggert  <eggert@cs.ucla.edu>
64500
64501         * build-aux/bootstrap: Remove obsolete comment about wget --help.
64502
64503 2007-09-06  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
64504
64505         * m4/time_h.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Fix misspelling
64506         in variable name.
64507
64508 2007-09-03  Jim Meyering  <jim@meyering.net>
64509
64510         New module: git-version-gen.
64511         * modules/git-version-gen: New file.
64512
64513         Import changes from coreutils for bootstrap script.
64514
64515         * build-aux/bootstrap (WGET_COMMAND): Remove code to set this variable.
64516
64517         bootstrap: uses rsync to download the .po files
64518         * build-aux/bootstrap (po_download_command_format): New global.
64519         (download_po_files): Use rsync.
64520         (update_po_files): Don't remove .po files after download,
64521         so future rsync runs can take advantage of the copies.
64522
64523         * build-aux/bootstrap (gnulib_tool): Make sha1sum check quietly.
64524
64525         Solve the unnecessary-.po-file-regeneration problem once and for all.
64526         * build-aux/bootstrap (download_po_files): New function, renamed from
64527         get_translations.  Now, downloads, but doesn't update LINGUAS.
64528         (update_po_files): New function.
64529
64530         bootstrap: Ignore more.
64531         * build-aux/bootstrap (symlink_to_dir): Add a directory name like
64532         uniwidth to e.g., lib/.gitignore.
64533         (slurp): Handle the sys_stat_.h -> sys mapping, too.
64534
64535         * build-aux/bootstrap: New setting: vc_ignore.
64536         (insert_sorted_if_absent): Create $file if absent.
64537         Adapt to new, possibly empty, list: $vc_ignore.
64538
64539         bootstrap: generate more ignorable names
64540         * build-aux/bootstrap (slurp): When generating ignorable names,
64541         also map .sin to .sed, .gperf to .c, and .y to .c.
64542
64543 2007-09-03  Jim Meyering  <jim@meyering.net>
64544
64545         * build-aux/git-version-gen: New file, from coreutils.  For details, see
64546         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commitdiff;h=bfe49f506
64547
64548 2007-09-02  Bruno Haible  <bruno@clisp.org>
64549
64550         Fix mis-recognition of 'mcs' on QNX 6.
64551         * m4/csharpcomp.m4 (gt_CSHARPCOMP): Test whether the "mcs --version"
64552         output contains the string "Mono".
64553         * lib/csharpcomp.c (compile_csharp_using_mono): Likewise.
64554         Reported by <kraai@ftbfs.org> at <https://savannah.gnu.org/bugs/?18337>.
64555
64556 2007-09-01  Bruno Haible  <bruno@clisp.org>
64557
64558         Fix collision between uniwidth/* and linebreak modules.
64559         * lib/linebreak.h (locale_charset, uc_width, u8_width, u16_width,
64560         u32_width): Remove declarations.
64561         * lib/linebreak.c: Include uniwidth.h, uniwidth/cjk.h, streq.h.
64562         (u32_mbtouc_unsafe, streq9, streq8, streq7, streq6, streq5, streq4,
64563         streq3, streq2, streq1, streq0): Remove functions.
64564         (STREQ): Remove macro.
64565         (is_cjk_encoding): Remove function.
64566         (nonspacing_table_data, nonspacing_table_ind): Remove constants.
64567         (uc_width, u8_width, u16_width, u32_width): Remove functions.
64568         * modules/linebreak (Depends-on): Add streq, uniwidth/width.
64569         * NEWS: Document the change.
64570
64571 2007-09-01  Bruno Haible  <bruno@clisp.org>
64572
64573         * lib/streq.h: Add double-inclusion guard.
64574
64575 2007-09-01  Karl Berry  <karl@gnu.org>
64576
64577         * MODULES.html.sh: Rename mreadlink_with_size to areadlink_with_size.
64578
64579 2007-08-28  Jim Meyering  <jim@meyering.net>
64580
64581         Rename mreadlink_with_size to areadlink_with_size.
64582         * NEWS: Document the change.
64583         * lib/mreadlink-with-size.c (mreadlink_with_size): Rename this to...
64584         * lib/areadlink-with-size.c (areadlink_with_size): ...this.
64585         * lib/mreadlink.h: Rename this to...
64586         * lib/areadlink.h: ...this.
64587         * modules/mreadlink-with-size: Rename this to...
64588         * modules/areadlink-with-size: ...this.
64589         * lib/canonicalize.c: Reflect the renaming.
64590         * modules/canonicalize: Likewise.
64591
64592 2007-08-26  Bruno Haible  <bruno@clisp.org>
64593
64594         * gnulib-tool (func_import): When deciding which files to remove,
64595         consider also dangling symbolic links.
64596         Reported by Eric Blake.
64597
64598 2007-08-26  Bruno Haible  <bruno@clisp.org>
64599
64600         * gnulib-tool (func_ln_if_changed): Use "test -h", not "test -L".
64601
64602 2007-08-23  Simon Josefsson  <simon@josefsson.org>
64603
64604         * lib/readline.c: Don't include getline.h, the prototype is now
64605         found in stdio.h.
64606
64607 2007-08-23  Jim Meyering  <jim@meyering.net>
64608
64609         Getdelim touchup.
64610         * lib/getdelim.c (getdelim): Don't bother to save/restore errno
64611         around the funlockfile call, since funlockfile never sets errno.
64612         Don't set errno upon failed realloc.
64613
64614 2007-08-22  Eric Blake  <ebb9@byu.net>
64615
64616         Getline touchups.
64617         * lib/getdelim.c (getdelim): Revert regression that required *n to
64618         be 0 when *lineptr is NULL.  Preserve errno across funlockfile.
64619         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Check for declaration of
64620         getdelim, rather than whether implementation is missing.
64621         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise for getline.
64622         * lib/stdio_.h (getline): Also declare if replacement is
64623         required.
64624         * doc/functions/getdelim.texi: New file.
64625         * doc/functions/getline.texi: Likewise.
64626         * doc/gnulib.texi (Function Substitutes): Add new files.
64627         Reported by Bruno Haible.
64628
64629 2007-08-22  Ludovic Courtès  <ludo@gnu.org>
64630
64631         * users.txt: Add Guile.
64632
64633 2007-08-22  Eric Blake  <ebb9@byu.net>
64634
64635         * tests/test-getdelim.c (main): Use remove, not unlink.
64636         * tests/test-getline.c (main): Likewise.
64637
64638         Move getline and getdelim into stdio.h, per POSIX 200x.
64639         * modules/getline (Files): Remove getline.h.
64640         (Depends-on): Add stdio.
64641         (configure.ac): Add module indicator.
64642         * modules/getdelim (Files): Remove getdelim.h.
64643         (Depends-on): Add stdio.
64644         (configure.ac): Add module indicator.
64645         * modules/stdio (Makefile.am): Work with new indicators.
64646         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Add new defaults.
64647         * m4/getdelim.m4 (gl_FUNC_GETDELIM): Work with stdio needs.
64648         * m4/getline.m4 (gl_FUNC_GETLINE): Likewise.
64649         * lib/getdelim.h: Delete.
64650         * lib/getline.h: Delete.
64651         * lib/stdio_.h (getdelim, getline): Declare.
64652         * modules/getdelim-tests: New module.
64653         * modules/getline-tests: Likewise.
64654         * tests/test-getdelim.c: New file.
64655         * tests/test-getline.c: Likewise.
64656         * NEWS: Document the change.
64657         * lib/getline.c: Update choice of header.
64658         * lib/csharpcomp.c: Likewise.
64659         * lib/getpass.c: Likewise.
64660         * lib/javacomp.c: Likewise.
64661         * lib/javaversion.c: Likewise.
64662         * lib/yesno.c: Likewise.
64663         * lib/getdelim.c: Likewise.
64664         (getdelim): Set errno on failure, and avoid memory leak.
64665
64666 2007-08-19  Bruno Haible  <bruno@clisp.org>
64667
64668         * modules/closein (Depends-on): Add freadahead.
64669         * lib/closein.c: Include freadahead.h.
64670         (close_stdin): Skip the fseeko and fflush calls if freadahead(stdin)
64671         is zero.
64672
64673 2007-08-19  Bruno Haible  <bruno@clisp.org>
64674
64675         * modules/freadahead-tests: New file.
64676         * tests/test-freadahead.sh: New file.
64677         * tests/test-freadahead.c: New file.
64678
64679         * modules/freadahead: New file.
64680         * lib/freadahead.h: New file.
64681         * lib/freadahead.c: New file.
64682         * MODULES.html.sh (File stream based Input/Output): Add freadahead,
64683         fbufmode, fpurge, freadable, fwritable.
64684
64685 2007-08-19  Eric Blake  <ebb9@byu.net>
64686
64687         Test yesno in combination with closein.
64688         * lib/yesno.c (yesno): Document use of stdin.
64689         * modules/yesno-tests (Files): New module.
64690         * tests/test-yesno.c (main): New file.
64691         * tests/test-yesno.sh: Likewise.
64692
64693 2007-08-19  Bruno Haible  <bruno@clisp.org>
64694
64695         * lib/fbufmode.c (fbufmode): Add tentative support for Solaris/AMD64.
64696         * lib/fseeko.c (rpl_fseeko): Likewise.
64697         * lib/fseterr.c (fseterr): Likewise.
64698
64699 2007-08-19  Bruno Haible  <bruno@clisp.org>
64700
64701         * tests/test-lseek.c (main): Disable a test for BeOS.
64702         * doc/functions/lseek.texi: Document the BeOS bug.
64703
64704 2007-08-19  Bruno Haible  <bruno@clisp.org>
64705             Eric Blake  <ebb9@byu.net>
64706
64707         * lib/lseek.c: Include <sys/stat.h>.
64708         (rpl_lseek): Add workaround code also for Unix platforms.
64709         Needed for BeOS.
64710         * m4/lseek.m4 (gl_FUNC_LSEEK): When cross-compiling, fail on BeOS.
64711         * doc/functions/lseek.texi: Document BeOS definiency.
64712
64713 2007-08-18  Bruno Haible  <bruno@clisp.org>
64714
64715         * modules/fstrcmp-tests: New file.
64716         * tests/test-fstrcmp.c: New file.
64717
64718 2007-08-18  Bruno Haible  <bruno@clisp.org>
64719
64720         * modules/fstrcmp: New file, from GNU gettext with modifications.
64721         * lib/fstrcmp.h: New file, from GNU gettext.
64722         * lib/fstrcmp.c: New file, from GNU gettext.
64723         * MODULES.html.sh (String handling): Add fstrcmp.
64724
64725 2007-08-18  Bruno Haible  <bruno@clisp.org>
64726
64727         * lib/diffseq.h (struct context): Change type of 'heuristic' field to
64728         'bool'.
64729         (diag, compareseq): Remove const from the ctxt argument.
64730         (USE_HEURISTIC): Undefine at the end.
64731
64732 2007-08-18  Jim Meyering  <jim@meyering.net>
64733
64734         New file: lib/idcache.h
64735         * NEWS: Mention the addition.
64736         * modules/idcache (Files): Add lib/idcache.h
64737         * lib/idcache.c: Include "idcache.h".
64738         Don't include <sys/types.h>.
64739         Add a FIXME comment.
64740         Move file-scoped "static" declarations to the top.
64741         * lib/idcache.h: New file.  Include <sys/types.h> here, instead.
64742
64743 2007-08-17  Bruno Haible  <bruno@clisp.org>
64744         and Paul Eggert  <eggert@cs.ucla.edu>
64745
64746         * MODULES.html.sh: Add diffseq.
64747         * modules/diffseq: New file.
64748         * lib/diffseq.h: New file, from GNU gettext with a few minor changes,
64749         extracted from GNU gettext's fstrcmp.c and GNU diff's analyze.c.
64750
64751 2007-08-15  Paul Eggert  <eggert@cs.ucla.edu>
64752
64753         Import changes from coreutils for bootstrap script.
64754
64755         2007-07-21  Paul Eggert  <eggert@cs.ucla.edu>
64756
64757         * build-aux/bootstrap (slurp): Work even in environments where
64758         "ls" defaults to "ls -A".  Put in a FIXME, though, since the
64759         current code does not slurp files whose names start with ".", and
64760         this looks like it might be a troublesome area.
64761
64762         2007-07-11  Jim Meyering  <jim@meyering.net>
64763
64764         If there's a GPL vN copyright comment, require that N == 3.
64765
64766         2007-07-08  Jim Meyering  <jim@meyering.net>
64767
64768         Run the coreutils-specific code only if tests/Makefile.am.in exists.
64769         * build-aux/bootstrap (mam_template): Move definition out of loop.
64770
64771         Create symlinks for gl/{lib,m4}/*, just as for gnulib/{lib,m4}/*.
64772
64773         * build-aux/bootstrap (symlink_to_dir): Rename function from
64774         symlink_to_gnulib.  Add a directory parameter.  Update all
64775         callers.
64776         (cp_mark_as_generated): Also check for -- and link to -- files in
64777         gl/.
64778
64779         2007-07-08  Jim Meyering  <jim@meyering.net>
64780
64781         Adapt to deeper hierarchy in gnulib.
64782         * build-aux/bootstrap (symlink_to_dir): If the destination
64783         directory doesn't exist, create it. This is required at least for
64784         "lib/uniwidth/cjk.h".
64785
64786         2007-05-15  Jim Meyering  <jim@meyering.net>
64787
64788         * build-aux/bootstrap: Now that generated Makefile.am files
64789         are no longer under version control, they must be created at
64790         bootstrap time.
64791
64792 2007-08-14  Ben Pfaff  <blp@gnu.org>
64793
64794         * lib/count-one-bits.h: Add comments.  From Bruno Haible.
64795
64796 2007-08-14  Paul Eggert  <eggert@cs.ucla.edu>
64797
64798         * lib/count-one-bits.h: Don't include <limits.h>; no longer needed
64799         given the changes below.
64800         (COUNT_ONE_BITS): Use 'verify' rather than 'verify_true'.  Work
64801         even on hosts that have padding bits beyond the supported 64.
64802
64803 2007-08-10  Paul Eggert  <eggert@cs.ucla.edu>
64804
64805         * NEWS: In xstrtol, remove STRTOL_FATAL_ERROR and add xstrtol_fatal.
64806         * lib/xstrtol.h: Don't include exitfail.h; that's now internal to
64807         xstrtol.c.  Include getopt.h, since xstrtol_fatal's signature
64808         depends on it.
64809         (xstrtol_error): Remove.
64810         (xstrtol_fatal): New decl, replacing the functionality of xstrtol_error
64811         but with a different signature.
64812         (ATTRIBUTE_NORETURN, __attribute__): New macros.
64813         * lib/xstrtol-error.c: Include exitfail.h.
64814         (xstrtol_fatal): New function, with a different signature from the
64815         old xstrtol_error, so that the caller need not worry about passing
64816         in an exit status, or about storage management of the option argument.
64817         (xstrtol_error): Now a static function.  Redo signature to
64818         implement xstrtol_fatal.  Output the correct number of hyphens in
64819         front of the option so that the caller need not worry about
64820         storage management.
64821         (N_): New macro.
64822         (_): Remove; not used now.
64823         * modules/xstrtol: Depend on getopt.
64824         * tests/test-xstrtol.c (main): Use new xstrtol_error function instead
64825         of old STRTOL_FATAL_ERROR macro.
64826         * tests/test-xstrtol.sh (t-xstrtol.xo): Adjust to match new behavior
64827         of test program.
64828         * tests/test-xstrtoimax.sh (t-xstrtoimax.xo): Likewise.
64829         * tests/test-xstrtoumax.sh (t-xstrtoumax.xo): Likewise.
64830
64831 2007-08-08  Eric Blake  <ebb9@byu.net>
64832
64833         * lib/xstrtol-error.c: Add missing include.
64834
64835         Move xstrtol messages into gnulib domain, when --pobase is used.
64836         * lib/xstrtol.h (_STRTOL_ERROR): Move messages out of macro...
64837         * lib/xstrtol-error.c (xstrtol_error): ...into new file.
64838         * modules/xstrtol (Files): Distribute new file.
64839         * m4/xstrtol.m4 (gl_XSTRTOL): Build new file.
64840         * lib/xstrtol.c (TESTING_XSTRTO): Move tests...
64841         * tests/test-xstrtol.c: ...into new file.
64842         * tests/test-xstrtoul.c: Also test xstrtoul.
64843         * tests/test-xstrtoimax.c: Also test xstrtoimax.
64844         * tests/test-xstrtoumax.c: Also test xstrtoumax.
64845         * tests/test-xstrtol.sh: Drive the tests.
64846         * tests/test-xstrtoimax.sh: Likewise.
64847         * tests/test-xstrtoumax.sh: Likewise.
64848         * modules/xstrtol-tests: New module.
64849         * modules/xstrtoimax-tests: Likewise.
64850         * modules/xstrtoumax-tests: Likewise.
64851
64852 2007-08-08  Jim Meyering  <jim@meyering.net>
64853
64854         New function: mfile_name_concat.
64855         * lib/filenamecat.c (mfile_name_concat): New function, just like
64856         file_name_concat, but return NULL upon failure rather than exiting
64857         with a diagnostic.
64858         * lib/filenamecat.h: Declare it.
64859
64860 2007-08-07  Bruno Haible  <bruno@clisp.org>
64861
64862         * m4/inttypes.m4 (gl_INTTYPES_H): Use GL_TRIGGER_STDC_LIMIT_MACROS
64863         instead of __STDC_LIMIT_MACROS_TRIGGER. This avoids a redefinition
64864         warning from gcc.
64865         Reported by Eric Blake.
64866
64867 2007-08-07  Simon Josefsson  <simon@josefsson.org>
64868
64869         * modules/crypto/arctwo (License): Use the synonymous term "LGPLv2+".
64870         * modules/crypto/arcfour (License): Likewise.
64871         * modules/crypto/des-tests (License): Likewise.
64872         * modules/crypto/gc-arctwo-tests (License): Likewise.
64873         * modules/crypto/gc-des-tests (License): Likewise.
64874         * modules/crypto/gc-hmac-md5-tests (License): Likewise.
64875         * modules/crypto/gc-hmac-sha1-tests (License): Likewise.
64876         * modules/crypto/gc-md2-tests (License): Likewise.
64877         * modules/crypto/gc-md4-tests (License): Likewise.
64878         * modules/crypto/gc-md5-tests (License): Likewise.
64879         * modules/crypto/gc-pbkdf2-sha1-tests (License): Likewise.
64880         * modules/crypto/gc-rijndael-tests (License): Likewise.
64881         * modules/crypto/gc-sha1-tests (License): Likewise.
64882         * modules/crypto/gc-tests (License): Likewise.
64883         * modules/crypto/hmac-md5 (License): Likewise.
64884         * modules/crypto/hmac-sha1 (License): Likewise.
64885         * modules/crypto/md2-tests (License): Likewise.
64886         * modules/crypto/md4-tests (License): Likewise.
64887         * modules/crypto/md5 (License): Likewise.
64888         * modules/crypto/rijndael (License): Likewise.
64889         * modules/crypto/sha1 (License): Likewise.
64890         * modules/memxor (License): Likewise.
64891
64892 2007-08-06  Paul Eggert  <eggert@cs.ucla.edu>
64893         and Bruno Haible  <bruno@clisp.org>
64894
64895         * NEWS: Describe interface changes to human, xstrtol.
64896         * lib/human.h: Include <xstrtol.h>.
64897         (human_options): Return enum strtol_error, not int.  Remove
64898         bool arg; take int * instead.
64899         * lib/human.c: Don't include "gettext.h".
64900         (_): Remove; no longer used.
64901         Don't include <xstrtol.h>, since human.h does it.
64902         (human_options): Adjust to abovementioned interface changes.
64903         Do not report error to stderr; that's now the caller's
64904         responsibility.
64905         * lib/xstrtol.c (main) [defined TESTING_XSTRTO]: Adjust to
64906         interface change.
64907         * lib/xstrtol.h (_STRTOL_ERROR): Take Option, Arg rather than
64908         Str, Argument_type_string.  All uses changed.  Put " argument"
64909         in diagnostics to make them clearer.  Change wording of suffix
64910         message for clarity.
64911         (STRTOL_FATAL_ERROR): Take Option, Arg rather than Str,
64912         Argument_type_string.
64913         (STRTOL_FATAL_WARN): Remove; no longer used.
64914         * modules/human (Depends-on): Remove gettext-h.
64915
64916 2007-08-06  Simon Josefsson  <simon@josefsson.org>
64917
64918         * build-aux/maint.mk, build-aux/GNUmakefile: Relicense to GPLv3+.
64919
64920 2007-07-31  Bruno Haible  <bruno@clisp.org>
64921
64922         * m4/stdint.m4 (gl_STDINT_H): Test whether WCHAR_MIN and WCHAR_MAX
64923         are defined by <stdint.h> (as opposed to <wchar.h>, as on Dragonfly).
64924         Reported by Joerg Sonnenberger <joerg@britannica.bec.de>.
64925
64926 2007-07-31  Bruno Haible  <bruno@clisp.org>
64927
64928         * lib/fflush.c (rpl_fflush): On BSD systems, use the __SNPT flag.
64929         Suggested by Joerg Sonnenberger <joerg@britannica.bec.de>.
64930
64931 2007-07-30  Bruno Haible  <bruno@clisp.org>
64932
64933         * modules/base64 (License): Use the synonymous term "LGPLv2+".
64934         * modules/c-ctype (License): Likewise.
64935         * modules/c-strcase (License): Likewise.
64936         * modules/check-version (License): Likewise.
64937         * modules/iconv (License): Likewise.
64938         * modules/iconv_open (License): Likewise.
64939         * modules/read-file (License): Likewise.
64940         * modules/striconv (License): Likewise.
64941         * modules/strverscmp (License): Likewise.
64942         * modules/vasprintf (License): Likewise.
64943         * modules/crypto/des (License): Likewise.
64944         * modules/crypto/gc (License): Likewise.
64945         * modules/crypto/gc-arcfour (License): Likewise.
64946         * modules/crypto/gc-arctwo (License): Likewise.
64947         * modules/crypto/gc-des (License): Likewise.
64948         * modules/crypto/gc-hmac-md5 (License): Likewise.
64949         * modules/crypto/gc-hmac-sha1 (License): Likewise.
64950         * modules/crypto/gc-md2 (License): Likewise.
64951         * modules/crypto/gc-md4 (License): Likewise.
64952         * modules/crypto/gc-md5 (License): Likewise.
64953         * modules/crypto/gc-pbkdf2-sha1 (License): Likewise.
64954         * modules/crypto/gc-random (License): Likewise.
64955         * modules/crypto/gc-rijndael (License): Likewise.
64956         * modules/crypto/gc-sha1 (License): Likewise.
64957         * modules/crypto/md2 (License): Likewise.
64958         * modules/crypto/md4 (License): Likewise.
64959
64960 2007-07-30  Jim Meyering  <jim@meyering.net>
64961
64962         * lib/fts.c (fts_read): Upon failure to chdir into a subdirectory,
64963         set fts_info to FTS_DNR, not to FTS_ERR, so that the caller knows
64964         it has valid stat data.  This bug would cause du not to count the
64965         sizes of inaccessible directories.
64966         Patch by Bryan Mason <bmason@redhat.com>, via Jose Maria Plans
64967         in <http://bugzilla.redhat.com/250077>.
64968
64969 2007-07-25  Peter O'Gorman  <peter@pogma.com>
64970             Bruno Haible  <bruno@clisp.org>
64971
64972         * m4/include_next.m4 (gl_INCLUDE_NEXT): Test whether #include_next
64973         really works. Needed because AIX 4.3 "xlc -E" doesn't understand
64974         #include_next, gives a diagnostic about it, but reports no error in
64975         the exit code.
64976         Reported by Gary V. Vaughan <gary@thewrittenword.com>.
64977
64978 2007-07-24  Ben Pfaff  <blp@gnu.org>
64979
64980         Improve name: "count-one-bits" is better than "popcount".
64981         * MODULES.html.sh: Update name.
64982         * lib/popcount.h: Renamed lib/count-one-bits.h.
64983         (popcount): Renamed count_one_bits.
64984         (popcountl): Renamed count_one_bits_l.
64985         (popcountll): Renamed count_one_bits_ll.
64986         * m4/popcount.m4: Renamed m4/count-one-bits.m4.
64987         * modules/popcount: Renamed module/count-one-bits.
64988         * modules/popcount-tests: Renamed module/count-one-bits-tests.
64989         * tests/test-popcount.c: Renamed tests/test-count-one-bits.c.
64990
64991 2007-07-23  Ben Pfaff  <blp@gnu.org>
64992
64993         * lib/popcount.h (popcount32): Reduce size of constants, to allow
64994         better code generation, and add U to large constants to avoid
64995         warnings, in non-GCC case.
64996         Suggested by Bruno Haible.
64997
64998 2007-07-23  Ben Pfaff  <blp@gnu.org>
64999
65000         * lib/popcount.h: Use verify_true instead of if...abort.
65001         * modules/popcount: Depend on verify module.
65002         Suggested by Jim Meyering.
65003
65004 2007-07-23  Bruno Haible  <bruno@clisp.org>
65005
65006         * gnulib-tool (func_import): Create a .cvsignore file also when the
65007         directory is not yet in CVS but the toplevel directory is. When
65008         creating a .cvsignore file, add ".deps" and ".dirstamp" to it.
65009         Reported by Karl Berry.
65010
65011 2007-07-22  Ben Pfaff  <blp@gnu.org>
65012
65013         * lib/popcount.h: Use faster, branchless algorithm for non-GCC
65014         case.
65015         Suggested by Eric Blake.
65016
65017 2007-07-22  Ben Pfaff  <blp@gnu.org>
65018
65019         New module: popcount.
65020         * MODULES.html.sh: Add popcount.
65021         * modules/popcount: New file.
65022         * modules/popcount-tests: New file.
65023         * tests/test-popcount.c: New file.
65024         * lib/popcount.h: New file.
65025         * m4/popcount.m4: New file.
65026
65027 2007-07-22  Paul Eggert  <eggert@cs.ucla.edu>
65028
65029         * build-aux/announce-gen: Update to GPLv3.
65030
65031         * build-aux/config.guess: Update from config.
65032
65033 2007-07-21  Bruno Haible  <bruno@clisp.org>
65034
65035         * lib/error.c (_) [ENABLE_NLS]: Define to gettext.
65036         * lib/verror.c (_) [ENABLE_NLS]: Likewise.
65037
65038 2007-07-20  Jim Meyering  <jim@meyering.net>
65039
65040         * check-module: Diagnose a self-dependency.
65041
65042 2007-07-19  Bruno Haible  <bruno@clisp.org>
65043
65044         * gnulib-tool (func_import): Don't abort if pobase or po_domain is
65045         empty.
65046         Reported by Eric Blake.
65047
65048 2007-07-18  Bruno Haible  <bruno@clisp.org>
65049
65050         * gnulib-tool: New options --po-base, --po-domain.
65051         (func_usage): Document them.
65052         (pobase, po_domain): New variables.
65053         (func_emit_lib_Makefile_am): Augment AM_CPPFLAGS, defining
65054         DEFAULT_TEXT_DOMAIN.
65055         (func_emit_po_Makevars, func_emit_po_POTFILES_in): New functions.
65056         (func_import): Consider pobase and po_domain. Create a po/ directory.
65057         (func_create_testdir): Set pobase and po_domain to empty.
65058         * build-aux/po/Makefile.in.in: New file, from GNU gettext 0.16.1.
65059         * build-aux/po/remove-potcdate.sin: New file, from GNU gettext 0.16.1.
65060
65061 2007-07-18  Bruno Haible  <bruno@clisp.org>
65062
65063         * gnulib-tool (func_get_automake_snippet): Synthesize also an
65064         EXTRA_DIST augmentation for files in build-aux/.
65065
65066 2007-07-16  Bruno Haible  <bruno@clisp.org>
65067
65068         * modules/lseek (License): Use the synonymous term "LGPLv2+".
65069         * modules/getdelim (License): Likewise.
65070
65071 2007-07-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
65072
65073         * modules/arpa_inet (License): Use the synonymous term LGPLv2+.
65074         * modules/d-type (License): Likewise.
65075         * modules/extensions (License): Likewise.
65076         * modules/fnmatch (License): Likewise.
65077         * modules/fseeko (License): Likewise.
65078         * modules/getaddrinfo (License): Likewise.
65079         * modules/getline (License): Likewise.
65080         * modules/getlogin_r (License): Likewise.
65081         * modules/getpass (License): Likewise.
65082         * modules/gettimeofday (License): Likewise.
65083         * modules/glob (License): Likewise.
65084         * modules/inet_ntop (License): Likewise.
65085         * modules/malloc (License): Likewise.
65086         * modules/malloca (License): Likewise.
65087         * modules/memmem (License): Likewise.
65088         * modules/mempcpy (License): Likewise.
65089         * modules/memset (License): Likewise.
65090         * modules/minmax (License): Likewise.
65091         * modules/mktime (License): Likewise.
65092         * modules/netinet_in (License): Likewise.
65093         * modules/pathmax (License): Likewise.
65094         * modules/poll (License): Likewise.
65095         * modules/regex (License): Likewise.
65096         * modules/snprintf (License): Likewise.
65097         * modules/stdbool (License): Likewise.
65098         * modules/stdint (License): Likewise.
65099         * modules/stdio (License): Likewise.
65100         * modules/strcase (License): Likewise.
65101         * modules/strcasestr (License): Likewise.
65102         * modules/strdup (License): Likewise.
65103         * modules/string (License): Likewise.
65104         * modules/strndup (License): Likewise.
65105         * modules/strnlen (License): Likewise.
65106         * modules/strpbrk (License): Likewise.
65107         * modules/strptime (License): Likewise.
65108         * modules/strsep (License): Likewise.
65109         * modules/sys_select (License): Likewise.
65110         * modules/sys_socket (License): Likewise.
65111         * modules/sys_stat (License): Likewise.
65112         * modules/sys_time (License): Likewise.
65113         * modules/time (License): Likewise.
65114         * modules/time_r (License): Likewise.
65115         * modules/timegm (License): Likewise.
65116         * modules/unistd (License): Likewise.
65117         * modules/vsnprintf (License): Likewise.
65118         * modules/wctype (License): Likewise.
65119
65120 2007-07-16  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65121
65122         * modules/argz (License): LGPLv2+.
65123
65124 2007-07-15  Karl Berry  <karl@gnu.org>
65125
65126         * doc/gnulib.texi: revise node structure per new fdl.texi.
65127
65128 2007-07-14  Bruno Haible  <bruno@clisp.org>
65129
65130         * lib/uniname/gen-uninames.lisp (main): Emit a "do not edit" line to
65131         the output file.
65132         * lib/uniname/uninames.h: Regenerated.
65133
65134 2007-07-14  Karl Berry  <karl@gnu.org>
65135
65136         * doc/*gpl*.texi, doc/fdl.texi: new versions, consistently
65137         omitting sectioning and index commands.
65138
65139 2007-07-13  Bruno Haible  <bruno@clisp.org>
65140
65141         New gnulib-tool option --more-symlinks.
65142         * gnulib-tool (func_usage): Document --more-symlinks.
65143         (do_copyrights): New variable.
65144         Recognize option --more-symlinks.
65145         (func_import): Don't add a copyright notice transform to
65146         sed_transform_lib_file if do_copyrights is empty.
65147
65148 2007-07-13  Bruno Haible  <bruno@clisp.org>
65149
65150         * lib/vasnprintf.c (decimal_point_char): Define also if
65151         (NEED_PRINTF_LONG_DOUBLE || NEED_PRINTF_INFINITE_DOUBLE)
65152         && !NEED_PRINTF_DIRECTIVE_A.
65153         Reported by Clemens Koller <clemens.koller@anagramm.de> via
65154         Gary V. Vaughan <gary@gnu.org>.
65155
65156 2007-07-13  Paul Eggert  <eggert@cs.ucla.edu>
65157
65158         * lib/inttypes_.h: Undo previous change, since it was fixed
65159         in a different way in the 2007-07-02 fix to m4/inttypes.m4.
65160
65161 2007-07-13  Bruno Haible  <bruno@clisp.org>
65162
65163         * lib/stdint_.h: Fix typo: _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H was
65164         misspelled as _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H.
65165
65166 2007-07-13  Jim Meyering  <jim@meyering.net>
65167
65168         df: Don't fail for Tru64's "file-on-file mount".
65169         * m4/fsusage.m4 (gl_FSUSAGE): Reject Tru64's buggy statvfs,
65170         so we fall through and use statfs instead.  Details here:
65171         <http://thread.gmane.org/gmane.comp.gnu.coreutils.bugs/10878>
65172         Reported by Albert Chin.
65173
65174 2007-07-13  Bruno Haible  <bruno@clisp.org>
65175
65176         * modules/alloca-opt (License): Use the synonymous term "LGPLv2+".
65177         * modules/configmake (License): Likewise.
65178         * modules/gettext (License): Likewise.
65179         * modules/gettext-h (License): Likewise.
65180         * modules/include_next (License): Likewise.
65181         * modules/link-warning (License): Likewise.
65182         * modules/localcharset (License): Likewise.
65183         * modules/localename (License): Likewise.
65184         * modules/lock (License): Likewise.
65185         * modules/relocatable-lib-lgpl (License): Likewise.
65186         * modules/size_max (License): Likewise.
65187         * modules/vasnprintf (License): Likewise.
65188         * modules/wchar (License): Likewise.
65189         * modules/xsize (License): Likewise.
65190
65191 2007-07-13  Bruno Haible  <bruno@clisp.org>
65192
65193         * gnulib-tool (func_import): Treat LGPLv2 as synonymous to LGPL.
65194         (func_create_testdir): Handle copying terms "GPLv2+" and "LGPLv2+".
65195
65196 2007-07-12  Bruno Haible  <bruno@clisp.org>
65197
65198         * doc/gnulib-intro.texi (Copyright): Clarify the license abbreviations
65199         in the modules files.
65200
65201 2007-07-11  Karl Berry  <karl@gnu.org>
65202
65203         * MODULES.html.sh (func_module): use
65204          sed -e '\|^'"${includefile}"'$|d'
65205          instead of /.../d, to avoid errors on $includefile's containing /.
65206
65207 2007-07-10  Sergey Poznyakoff  <gray@gnu.org.ua>
65208
65209         * gnulib-tool (func_import): Avoid duplication of --avoid
65210         statements
65211         (func_dest_tmpfilename,func_create_testdir): Translate `-' in file
65212         names to `_' in variable names.
65213
65214 2007-07-10  Eric Blake  <ebb9@byu.net>
65215
65216         * lib/version-etc.c (version_etc_va): Default to GPLv3+.
65217         * NEWS: Document this change.
65218
65219 2007-07-08  Bruno Haible  <bruno@clisp.org>
65220
65221         Update to Unicode 5.0.
65222         * lib/uniwidth/width.c (nonspacing_table_data): Add U+00AD,
65223         U+0350..U+035F, U+05A2, U+05BA, U+05C5, U+05C7, U+0600..U+0603,
65224         U+0610..U+0615, U+0656..U+065E, U+07EB..U+07F3, U+0A01, U+0AE2..U+0AE3,
65225         U+0CBC. Remove U+0CBF, U+0CC6. Add U+0CE2..U+0CE3, U+135F,
65226         U+17B4..U+17B5, U+17DD. Remove U+180E. Add U+1920..U+1922,
65227         U+1927..U+192B, U+1932, U+1939..U+193B, U+1A17..U+1A18, U+1B00..U+1B03,
65228         U+1B34, U+1B36..U+1B3A, U+1B3C, U+1B42, U+1B6B..U+1B73, U+1DC0..U+1DCA,
65229         U+1DFE..U+1DFF, U+20EB..U+20EF, U+A802, U+A806, U+A80B, U+A825..U+A826,
65230         U+10A01..U+10A03, U+10A05..U+10A06, U+10A0C..U+10A0F, U+10A38..U+10A3A,
65231         U+10A3F, U+1D242..U+1D244.
65232         (nonspacing_table_ind): Update.
65233         (uc_width): Assign width 0 to U+E0100..U+E01EF. Assign width 1 to
65234         U+4DC0..U+4DFF. Assign width 2 to U+2329..U+232A, U+FE10..U+FE1F.
65235
65236 2007-07-08  Bruno Haible  <bruno@clisp.org>
65237
65238         Update to Unicode 5.0.
65239         * lib/uniname/gen-uninames.lisp (main): Add the range 0x12xxx to the
65240         code transform. Extend the name index field of unicode_name_to_code and
65241         unicode_code_to_name from 16 to 24 bits.
65242         * lib/uniname/uniname.c (unicode_character_name,
65243         unicode_name_character): Add the range 0x12xxx to the code transform.
65244         * lib/uniname/uninames.h: Regenerated.
65245         * tests/uniname/UnicodeDataNames.txt: Update to Unicode 5.0.
65246
65247 2007-07-07  Bruno Haible  <bruno@clisp.org>
65248
65249         * modules/wcwidth-tests: New file.
65250         * tests/test-wcwidth.c: New file.
65251
65252         Work around MacOS X wcwidth() bug.
65253         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Test against MacOS X 10.3 bug.
65254         * lib/wcwidth.c: Include localcharset.h, streq.h, uniwidth.h.
65255         (rpl_wcwidth): Special-case the UTF-8 locales. Fall back to the
65256         original wcwidth in non-UTF-8 locales.
65257         * modules/wcwidth (Depends-on): Add localcharset, streq,
65258         uniwidth/width.
65259         * doc/functions/wcwidth.texi: Update.
65260
65261 2007-07-07  Bruno Haible  <bruno@clisp.org>
65262
65263         * lib/wchar_.h: Include the GL_LINK_WARNING macro.
65264         (wcwidth): New declaration.
65265         * m4/wchar.m4 (gl_WCHAR_MODULE_INDICATOR, gl_WCHAR_H_DEFAULTS): New
65266         macros.
65267         (gl_WCHAR_H): Require gl_WCHAR_H_DEFAULTS. Don't set WCHAR_H to empty
65268         here. Prepare for creating <wchar.h> unconditionally.
65269         * modules/wchar (Depends-on): Add link-warning.
65270         (Makefile.am): Substitute also GNULIB_WCWIDTH, HAVE_DECL_WCWIDTH,
65271         REPLACE_WCWIDTH, and GL_LINK_WARNING.
65272         * lib/wcwidth.h: Remove file.
65273         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gl_WCHAR_H_DEFAULTS. Set
65274         HAVE_DECL_WCWIDTH, REPLACE_WCWIDTH, WCHAR_H.
65275         * modules/wcwidth (Files): Remove lib/wcwidth.h.
65276         (configure.ac): Invoke gl_WCHAR_MODULE_INDICATOR.
65277         (Include): Replace wcwidth.h with <wchar.h>.
65278         * lib/wcwidth.c: Include <wchar.h> instead of wcwidth.h.
65279         * lib/mbchar.h: Don't include wcwidth.h.
65280         * lib/mbswidth.c: Likewise.
65281         * NEWS: Mention the change.
65282
65283 2007-07-07  Bruno Haible  <bruno@clisp.org>
65284
65285         * lib/wcwidth.c: New file, extracted from lib/wcwidth.h.
65286         * lib/wcwidth.h: Don't include wctype.h. Replace inline function
65287         definition with an external declaration.
65288         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Use wcwidth.c when wcwidth is not
65289         defined as a function. Remove AC_C_INLINE requirement.
65290         * modules/wcwidth (Files): Add lib/wcwidth.c.
65291         (Makefile.am): Remove redundant statement.
65292
65293 2007-07-07  Bruno Haible  <bruno@clisp.org>
65294
65295         * MODULES.html.sh (Unicode string functions): Add the new modules.
65296
65297         * tests/uniwidth/test-u32-strwidth.c: New file.
65298         * modules/uniwidth/u32-strwidth-tests: New file.
65299
65300         * lib/uniwidth/u32-strwidth.c: New file.
65301         * modules/uniwidth/u32-strwidth: New file.
65302
65303         * tests/uniwidth/test-u16-strwidth.c: New file.
65304         * modules/uniwidth/u16-strwidth-tests: New file.
65305
65306         * lib/uniwidth/u16-strwidth.c: New file.
65307         * modules/uniwidth/u16-strwidth: New file.
65308
65309         * tests/uniwidth/test-u8-strwidth.c: New file.
65310         * modules/uniwidth/u8-strwidth-tests: New file.
65311
65312         * lib/uniwidth/u8-strwidth.c: New file.
65313         * modules/uniwidth/u8-strwidth: New file.
65314
65315         * tests/uniwidth/test-u32-width.c: New file.
65316         * modules/uniwidth/u32-width-tests: New file.
65317
65318         * lib/uniwidth/u32-width.c: New file.
65319         * modules/uniwidth/u32-width: New file.
65320
65321         * tests/uniwidth/test-u16-width.c: New file.
65322         * modules/uniwidth/u16-width-tests: New file.
65323
65324         * lib/uniwidth/u16-width.c: New file.
65325         * modules/uniwidth/u16-width: New file.
65326
65327         * tests/uniwidth/test-u8-width.c: New file.
65328         * modules/uniwidth/u8-width-tests: New file.
65329
65330         * lib/uniwidth/u8-width.c: New file.
65331         * modules/uniwidth/u8-width: New file.
65332
65333         * tests/uniwidth/test-uc_width.c: New file.
65334         * modules/uniwidth/width-tests: New file.
65335
65336         * lib/uniwidth/width.c: New file, from GNU libiconv.
65337         * lib/uniwidth/cjk.h: New file, from GNU libiconv.
65338         * modules/uniwidth/width: New file.
65339
65340         * lib/uniwidth.h: New file, from GNU libiconv.
65341         * modules/uniwidth/base: New file.
65342
65343 2007-07-07  Bruno Haible  <bruno@clisp.org>
65344
65345         * lib/uniname.h: New file, from GNU gettext.
65346         * lib/uniname/gen-uninames.lisp: New file, from GNU gettext.
65347         * lib/uniname/uninames.h: New file, from GNU gettext.
65348         * lib/uniname/uniname.c: New file, from GNU gettext.
65349         * tests/uniname/test-uninames.sh: New file.
65350         * tests/uniname/test-uninames.c: New file, from GNU gettext.
65351         * tests/uniname/UnicodeDataNames.txt: New file, from GNU gettext.
65352         * modules/uniname/base: New file.
65353         * modules/uniname/uniname: New file.
65354         * modules/uniname/uniname-tests: New file.
65355         * MODULES.html.sh (Unicode string functions): Add the new modules.
65356
65357 2007-07-06  Bruno Haible  <bruno@clisp.org>
65358
65359         * doc/Makefile (TEXI2HTML): Specify a --reference-limit.
65360
65361 2007-07-06  Bruno Haible  <bruno@clisp.org>
65362
65363         * lib/sys_time_.h: Use a recursion-safe inclusion guard rather than
65364         a split double-inclusion guard. Needed for cygwin, where <sys/time.h>
65365         includes <cygwin/sys_time.h> which includes <sys/select.h> which
65366         include <sys/time.h>.
65367         Reported by Eric Blake.
65368
65369 2007-07-06  Eric Blake  <ebb9@byu.net>
65370
65371         Fix testing canonicalize on cygwin.
65372         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65373         Revert patch from 2007-06-19.
65374         * tests/test-canonicalize-lgpl.c (main): Instead, skip test when
65375         canonicalize module is also in use.
65376         * tests/test-canonicalize.c: New file.
65377         * tests/test-canonicalize.sh: Likewise.
65378         * modules/canonicalize-tests: Likewise.
65379
65380 2007-07-06  Jim Meyering  <jim@meyering.net>
65381
65382         * lib/getugroups.c (getugroups): Detect getgrent failure.
65383         Adjust comment to reflect reality: this function may return -1.
65384
65385 2007-07-05  Sergey Poznyakoff  <gray@gnu.org.ua>
65386
65387         * build-aux/bootstrap (TP_URL,get_translations): Update to use
65388         the new TP address.
65389         (usage): Fix typo
65390         (gnulib_mk): New variable.
65391
65392 2007-07-05  Jim Meyering  <jim@meyering.net>
65393
65394         Don't let endgrent clobber errno, no matter how improbable.
65395         * lib/getugroups.c (getugroups): Save and restore errno around
65396         endgrent call.
65397
65398         Close the group DB even when failing with 2^31 or more members.
65399         * lib/getugroups.c (getugroups): Don't return without calling endgrent.
65400
65401 2007-07-04  Jim Meyering  <jim@meyering.net>
65402
65403         * lib/getugroups.h: New file.
65404         * lib/getugroups.c: Include "getugroups.h".
65405         Remove uses of "register" keyword.
65406         Move local variable, "cp", down into scope where used.
65407         Give "username" parameter the "const" attribute.
65408         * modules/getugroups (Files): Add lib/getugroups.h
65409
65410 2007-07-04  Karl Berry  <karl@gnu.org>
65411
65412         * MODULES.html.sh (func_all_modules): Complete rename of
65413         gpl/lgpl to gpl-2.0 and lgpl-2.1, and add gpl-3.0.
65414
65415 2007-07-02  Bruno Haible  <bruno@clisp.org>
65416
65417         * m4/inttypes.m4 (gl_INTTYPES_H): Define __STDC_LIMIT_MACROS in C++
65418         mode, when inttypes.h comes from gnulib.
65419         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
65420
65421 2007-07-02  Simon Josefsson  <simon@josefsson.org>
65422
65423         * NEWS: Mention lgpl module name change.
65424
65425         * modules/lgpl-2.1: Renamed from lgpl.
65426
65427         * NEWS: Mention gpl module name change.
65428
65429         * modules/gpl-3.0: New file, based on gpl-2.0.
65430
65431         * modules/gpl-2.0: Renamed from gpl.
65432
65433         * modules/gpl: Fix filename, doc/gpl.texi is now found at
65434         doc/gpl-2.0.texi.
65435
65436 2007-07-02  Paul Eggert  <eggert@cs.ucla.edu>
65437
65438         * lib/inttypes_.h [defined __cplusplus&&!defined __STDC_LIMIT_MACROS]:
65439         #define __STDC_LIMIT_MACROS temporarily while including
65440         <stdint.h>, so that __STDC_LIMIT_MACROS is defined.
65441         Problem reported by Joel E. Denny in
65442         <http://lists.gnu.org/archive/html/bug-gnulib/2007-07/msg00008.html>.
65443
65444 2007-07-01  Bruno Haible  <bruno@clisp.org>
65445
65446         * lib/unistdio.h: New file.
65447         * lib/unistdio/u-asnprintf.h: New file.
65448         * lib/unistdio/u-asprintf.h: New file.
65449         * lib/unistdio/u-printf-args.c: New file.
65450         * lib/unistdio/u-printf-args.h: New file.
65451         * lib/unistdio/u-printf-parse.h: New file.
65452         * lib/unistdio/u-snprintf.h: New file.
65453         * lib/unistdio/u-sprintf.h: New file.
65454         * lib/unistdio/u-vasprintf.h: New file.
65455         * lib/unistdio/u-vsnprintf.h: New file.
65456         * lib/unistdio/u-vsprintf.h: New file.
65457         * lib/unistdio/ulc-asnprintf.c: New file.
65458         * lib/unistdio/ulc-asprintf.c: New file.
65459         * lib/unistdio/ulc-fprintf.c: New file, based on lib/fprintf.c.
65460         * lib/unistdio/ulc-printf-parse.c: New file.
65461         * lib/unistdio/ulc-snprintf.c: New file.
65462         * lib/unistdio/ulc-sprintf.c: New file.
65463         * lib/unistdio/ulc-vasnprintf.c: New file.
65464         * lib/unistdio/ulc-vasprintf.c: New file.
65465         * lib/unistdio/ulc-vfprintf.c: New file, based on lib/vfprintf.c.
65466         * lib/unistdio/ulc-vsnprintf.c: New file.
65467         * lib/unistdio/ulc-vsprintf.c: New file.
65468         * lib/unistdio/u8-asnprintf.c: New file.
65469         * lib/unistdio/u8-asprintf.c: New file.
65470         * lib/unistdio/u8-printf-parse.c: New file.
65471         * lib/unistdio/u8-snprintf.c: New file.
65472         * lib/unistdio/u8-sprintf.c: New file.
65473         * lib/unistdio/u8-vasnprintf.c: New file.
65474         * lib/unistdio/u8-vasprintf.c: New file.
65475         * lib/unistdio/u8-vsnprintf.c: New file.
65476         * lib/unistdio/u8-vsprintf.c: New file.
65477         * lib/unistdio/u8-u8-asnprintf.c: New file.
65478         * lib/unistdio/u8-u8-asprintf.c: New file.
65479         * lib/unistdio/u8-u8-snprintf.c: New file.
65480         * lib/unistdio/u8-u8-sprintf.c: New file.
65481         * lib/unistdio/u8-u8-vasnprintf.c: New file.
65482         * lib/unistdio/u8-u8-vasprintf.c: New file.
65483         * lib/unistdio/u8-u8-vsnprintf.c: New file.
65484         * lib/unistdio/u8-u8-vsprintf.c: New file.
65485         * lib/unistdio/u16-asnprintf.c: New file.
65486         * lib/unistdio/u16-asprintf.c: New file.
65487         * lib/unistdio/u16-printf-parse.c: New file.
65488         * lib/unistdio/u16-snprintf.c: New file.
65489         * lib/unistdio/u16-sprintf.c: New file.
65490         * lib/unistdio/u16-vasnprintf.c: New file.
65491         * lib/unistdio/u16-vasprintf.c: New file.
65492         * lib/unistdio/u16-vsnprintf.c: New file.
65493         * lib/unistdio/u16-vsprintf.c: New file.
65494         * lib/unistdio/u16-u16-asnprintf.c: New file.
65495         * lib/unistdio/u16-u16-asprintf.c: New file.
65496         * lib/unistdio/u16-u16-snprintf.c: New file.
65497         * lib/unistdio/u16-u16-sprintf.c: New file.
65498         * lib/unistdio/u16-u16-vasnprintf.c: New file.
65499         * lib/unistdio/u16-u16-vasprintf.c: New file.
65500         * lib/unistdio/u16-u16-vsnprintf.c: New file.
65501         * lib/unistdio/u16-u16-vsprintf.c: New file.
65502         * lib/unistdio/u32-asnprintf.c: New file.
65503         * lib/unistdio/u32-asprintf.c: New file.
65504         * lib/unistdio/u32-printf-parse.c: New file.
65505         * lib/unistdio/u32-snprintf.c: New file.
65506         * lib/unistdio/u32-sprintf.c: New file.
65507         * lib/unistdio/u32-vasnprintf.c: New file.
65508         * lib/unistdio/u32-vasprintf.c: New file.
65509         * lib/unistdio/u32-vsnprintf.c: New file.
65510         * lib/unistdio/u32-vsprintf.c: New file.
65511         * lib/unistdio/u32-u32-asnprintf.c: New file.
65512         * lib/unistdio/u32-u32-asprintf.c: New file.
65513         * lib/unistdio/u32-u32-snprintf.c: New file.
65514         * lib/unistdio/u32-u32-sprintf.c: New file.
65515         * lib/unistdio/u32-u32-vasnprintf.c: New file.
65516         * lib/unistdio/u32-u32-vasprintf.c: New file.
65517         * lib/unistdio/u32-u32-vsnprintf.c: New file.
65518         * lib/unistdio/u32-u32-vsprintf.c: New file.
65519         * tests/unistdio/test-ulc-asnprintf1.c: New file.
65520         * tests/unistdio/test-ulc-asnprintf1.h: New file.
65521         * tests/unistdio/test-ulc-printf1.h: New file.
65522         * tests/unistdio/test-ulc-vasnprintf1.c: New file.
65523         * tests/unistdio/test-ulc-vasnprintf2.c: New file.
65524         * tests/unistdio/test-ulc-vasnprintf2.sh: New file.
65525         * tests/unistdio/test-ulc-vasnprintf3.c: New file.
65526         * tests/unistdio/test-ulc-vasnprintf3.sh: New file.
65527         * tests/unistdio/test-ulc-vasprintf1.c: New file.
65528         * tests/unistdio/test-ulc-vsnprintf1.c: New file.
65529         * tests/unistdio/test-ulc-vsprintf1.c: New file.
65530         * tests/unistdio/test-u8-asnprintf1.c: New file.
65531         * tests/unistdio/test-u8-asnprintf1.h: New file.
65532         * tests/unistdio/test-u8-printf1.h: New file.
65533         * tests/unistdio/test-u8-vasnprintf1.c: New file.
65534         * tests/unistdio/test-u8-vasnprintf2.c: New file.
65535         * tests/unistdio/test-u8-vasnprintf2.sh: New file.
65536         * tests/unistdio/test-u8-vasnprintf3.c: New file.
65537         * tests/unistdio/test-u8-vasnprintf3.sh: New file.
65538         * tests/unistdio/test-u8-vasprintf1.c: New file.
65539         * tests/unistdio/test-u8-vsnprintf1.c: New file.
65540         * tests/unistdio/test-u8-vsprintf1.c: New file.
65541         * tests/unistdio/test-u16-asnprintf1.c: New file.
65542         * tests/unistdio/test-u16-asnprintf1.h: New file.
65543         * tests/unistdio/test-u16-printf1.h: New file.
65544         * tests/unistdio/test-u16-vasnprintf1.c: New file.
65545         * tests/unistdio/test-u16-vasnprintf2.c: New file.
65546         * tests/unistdio/test-u16-vasnprintf2.sh: New file.
65547         * tests/unistdio/test-u16-vasnprintf3.c: New file.
65548         * tests/unistdio/test-u16-vasnprintf3.sh: New file.
65549         * tests/unistdio/test-u16-vasprintf1.c: New file.
65550         * tests/unistdio/test-u16-vsnprintf1.c: New file.
65551         * tests/unistdio/test-u16-vsprintf1.c: New file.
65552         * tests/unistdio/test-u32-asnprintf1.c: New file.
65553         * tests/unistdio/test-u32-asnprintf1.h: New file.
65554         * tests/unistdio/test-u32-printf1.h: New file.
65555         * tests/unistdio/test-u32-vasnprintf1.c: New file.
65556         * tests/unistdio/test-u32-vasnprintf2.c: New file.
65557         * tests/unistdio/test-u32-vasnprintf2.sh: New file.
65558         * tests/unistdio/test-u32-vasnprintf3.c: New file.
65559         * tests/unistdio/test-u32-vasnprintf3.sh: New file.
65560         * tests/unistdio/test-u32-vasprintf1.c: New file.
65561         * tests/unistdio/test-u32-vsnprintf1.c: New file.
65562         * tests/unistdio/test-u32-vsprintf1.c: New file.
65563         * modules/unistdio/base: New file.
65564         * modules/unistdio/u-printf-args: New file.
65565         * modules/unistdio/ulc-asnprintf: New file.
65566         * modules/unistdio/ulc-asprintf: New file.
65567         * modules/unistdio/ulc-fprintf: New file.
65568         * modules/unistdio/ulc-printf-parse: New file.
65569         * modules/unistdio/ulc-snprintf: New file.
65570         * modules/unistdio/ulc-sprintf: New file.
65571         * modules/unistdio/ulc-vasnprintf: New file.
65572         * modules/unistdio/ulc-vasprintf: New file.
65573         * modules/unistdio/ulc-vfprintf: New file.
65574         * modules/unistdio/ulc-vsnprintf: New file.
65575         * modules/unistdio/ulc-vsprintf: New file.
65576         * modules/unistdio/u8-asnprintf: New file.
65577         * modules/unistdio/u8-asprintf: New file.
65578         * modules/unistdio/u8-printf-parse: New file.
65579         * modules/unistdio/u8-snprintf: New file.
65580         * modules/unistdio/u8-sprintf: New file.
65581         * modules/unistdio/u8-vasnprintf: New file.
65582         * modules/unistdio/u8-vasprintf: New file.
65583         * modules/unistdio/u8-vsnprintf: New file.
65584         * modules/unistdio/u8-vsprintf: New file.
65585         * modules/unistdio/u8-u8-asnprintf: New file.
65586         * modules/unistdio/u8-u8-asprintf: New file.
65587         * modules/unistdio/u8-u8-snprintf: New file.
65588         * modules/unistdio/u8-u8-sprintf: New file.
65589         * modules/unistdio/u8-u8-vasnprintf: New file.
65590         * modules/unistdio/u8-u8-vasprintf: New file.
65591         * modules/unistdio/u8-u8-vsnprintf: New file.
65592         * modules/unistdio/u8-u8-vsprintf: New file.
65593         * modules/unistdio/u16-asnprintf: New file.
65594         * modules/unistdio/u16-asprintf: New file.
65595         * modules/unistdio/u16-printf-parse: New file.
65596         * modules/unistdio/u16-snprintf: New file.
65597         * modules/unistdio/u16-sprintf: New file.
65598         * modules/unistdio/u16-vasnprintf: New file.
65599         * modules/unistdio/u16-vasprintf: New file.
65600         * modules/unistdio/u16-vsnprintf: New file.
65601         * modules/unistdio/u16-vsprintf: New file.
65602         * modules/unistdio/u16-u16-asnprintf: New file.
65603         * modules/unistdio/u16-u16-asprintf: New file.
65604         * modules/unistdio/u16-u16-snprintf: New file.
65605         * modules/unistdio/u16-u16-sprintf: New file.
65606         * modules/unistdio/u16-u16-vasnprintf: New file.
65607         * modules/unistdio/u16-u16-vasprintf: New file.
65608         * modules/unistdio/u16-u16-vsnprintf: New file.
65609         * modules/unistdio/u16-u16-vsprintf: New file.
65610         * modules/unistdio/u32-asnprintf: New file.
65611         * modules/unistdio/u32-asprintf: New file.
65612         * modules/unistdio/u32-printf-parse: New file.
65613         * modules/unistdio/u32-snprintf: New file.
65614         * modules/unistdio/u32-sprintf: New file.
65615         * modules/unistdio/u32-vasnprintf: New file.
65616         * modules/unistdio/u32-vasprintf: New file.
65617         * modules/unistdio/u32-vsnprintf: New file.
65618         * modules/unistdio/u32-vsprintf: New file.
65619         * modules/unistdio/u32-u32-asnprintf: New file.
65620         * modules/unistdio/u32-u32-asprintf: New file.
65621         * modules/unistdio/u32-u32-snprintf: New file.
65622         * modules/unistdio/u32-u32-sprintf: New file.
65623         * modules/unistdio/u32-u32-vasnprintf: New file.
65624         * modules/unistdio/u32-u32-vasprintf: New file.
65625         * modules/unistdio/u32-u32-vsnprintf: New file.
65626         * modules/unistdio/u32-u32-vsprintf: New file.
65627         * modules/unistdio/ulc-asnprintf-tests: New file.
65628         * modules/unistdio/ulc-vasnprintf-tests: New file.
65629         * modules/unistdio/ulc-vasprintf-tests: New file.
65630         * modules/unistdio/ulc-vsnprintf-tests: New file.
65631         * modules/unistdio/ulc-vsprintf-tests: New file.
65632         * modules/unistdio/u8-asnprintf-tests: New file.
65633         * modules/unistdio/u8-vasnprintf-tests: New file.
65634         * modules/unistdio/u8-vasprintf-tests: New file.
65635         * modules/unistdio/u8-vsnprintf-tests: New file.
65636         * modules/unistdio/u8-vsprintf-tests: New file.
65637         * modules/unistdio/u16-asnprintf-tests: New file.
65638         * modules/unistdio/u16-vasnprintf-tests: New file.
65639         * modules/unistdio/u16-vasprintf-tests: New file.
65640         * modules/unistdio/u16-vsnprintf-tests: New file.
65641         * modules/unistdio/u16-vsprintf-tests: New file.
65642         * modules/unistdio/u32-asnprintf-tests: New file.
65643         * modules/unistdio/u32-vasnprintf-tests: New file.
65644         * modules/unistdio/u32-vasprintf-tests: New file.
65645         * modules/unistdio/u32-vsnprintf-tests: New file.
65646         * modules/unistdio/u32-vsprintf-tests: New file.
65647         * MODULES.html.sh (Unicode string functions): Add the new modules.
65648
65649 2007-07-01  Bruno Haible  <bruno@clisp.org>
65650
65651         * lib/sprintf.c (sprintf): Limit the available length estimation,
65652         to avoid address wraparound.
65653         * lib/vsprintf.c (vsprintf): Likewise.
65654         * modules/sprintf-posix (Dependencies): Add stdint.
65655         * modules/vsprintf-posix (Dependencies): Likewise.
65656
65657 2007-07-01  Bruno Haible  <bruno@clisp.org>
65658
65659         * gnulib-tool (self_abspathname): Determine PATH_SEPARATOR and handle
65660         Windows PATH as well. Conservative double-quoting. Comments.
65661
65662 2007-07-01  Bruno Haible  <bruno@clisp.org>
65663             Eric Blake  <ebb9@byu.net>
65664             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65665
65666         * gnulib-tool (self_abspathname): Fix algorithm to cope with
65667         empty components in $PATH, denoting '.'.
65668
65669 2007-07-01  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65670
65671         * gnulib-tool: Fix indentation.
65672         (func_create_megatestdir): Likewise.
65673         Report by Bruno Haible.
65674
65675 2007-06-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65676
65677         Sync from Automake.
65678         * build-aux/gnupload: Fix shell portability issues with for loops.
65679         Report by Karl Berry.
65680
65681 2007-06-29  Simon Josefsson  <simon@josefsson.org>
65682
65683         * build-aux/maint.mk (POURL): Use translationproject.org.
65684
65685 2007-06-27  Simon Josefsson  <simon@josefsson.org>
65686             Bruno Haible  <bruno@clisp.org>
65687
65688         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Require gl_HEADER_SYS_SOCKET
65689         before using HAVE_WS2TCPIP_H. Check for gai_strerror through an
65690         explicit link test, rather than AC_REPLACE_FUNCS - for mingw.
65691         (gl_PREREQ_GETADDRINFO): Require gl_HEADER_SYS_SOCKET before using
65692         HAVE_SYS_SOCKET_H and HAVE_WS2TCPIP_H.
65693
65694 2007-06-27  Bruno Haible  <bruno@clisp.org>
65695
65696         * build-aux/config.rpath: Upgrade to libtool-1.5.24.
65697         * build-aux/config.libpath: Upgrade to libtool-1.5.24.
65698
65699 2007-06-26  Karl Berry  <karl@gnu.org>
65700
65701         * MODULES.html.sh: remove xreadlink-with-size.
65702
65703 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65704
65705         * lib/time_.h: Port to Solaris 8 with Sun Studio 11, using a
65706         method that I hope also handles the double-include problem noted
65707         by Bruno Haible in
65708         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00186.html>.
65709
65710 2007-06-23  Bruno Haible  <bruno@clisp.org>
65711
65712         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
65713         Don't let the 'mostlyclean' target fail if the last subdirectory could
65714         not be removed.
65715         Reported by Karl Berry.
65716
65717 2007-06-23  Bruno Haible  <bruno@clisp.org>
65718
65719         * gnulib-tool (echo): Add a speedier workaround for ksh.
65720         * tests/test-echo.sh: Likewise.
65721
65722 2007-06-23  Bruno Haible  <bruno@clisp.org>
65723
65724         * gnulib-tool (echo): Add workarounds also for bash versions < 2.04.
65725         * tests/test-echo.sh: Likewise.
65726
65727 2007-06-23  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65728
65729         * gnulib-tool (IFS): Initialize early, so we don't set it to
65730         empty later.
65731         (self_abspathname): Rewrite algorithm to set it, reindent.
65732         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am)
65733         (func_create_megatestdir): Merge some sed scripts.
65734
65735 2007-06-23  Paul Eggert  <eggert@cs.ucla.edu>
65736
65737         * m4/include_next.m4 (gl_CHECK_NEXT_HEADERS): Check some typos
65738         exposed by Sun Studio 11 cc on Solaris 8.
65739
65740 2007-06-22  Bruno Haible  <bruno@clisp.org>
65741
65742         * gnulib-tool (echo): Ensure the echo primitive does not interpret
65743         backslashes.
65744         * tests/test-echo.sh: New file.
65745
65746 2007-06-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
65747
65748         * gnulib-tool (func_add_or_update, func_create_testdir): Do not
65749         simplify `sed_replace_build_aux' scripts, they are portable but
65750         echoing them with `echo' is not.
65751         Report and analysis by Fernando Ferreira <fernando.prog@netcabo.pt>.
65752
65753 2007-06-21  Karl Berry  <karl@gnu.org>
65754
65755         * config/srclist.txt: guess we can't handle the licenses via
65756         srclist at the moment.
65757
65758 2007-06-21  Paul Eggert  <eggert@cs.ucla.edu>
65759
65760         * MODULES.html.sh: Add include_next.
65761         * modules/include_next: New file.
65762
65763 2007-06-20  Paul Eggert  <eggert@cs.ucla.edu>
65764
65765         * m4/include_next.m4 (gl_INCLUDE_NEXT): Define and AC_SUBST
65766         INCLUDE_NEXT.
65767         (gl_CHECK_NEXT_HEADERS): New macro.
65768         * m4/fcntl_h.m4 (gl_FCNTL_H): use gl_CHECK_NEXT_HEADERS instead of
65769         the obsolescent gl_ABSOLUTE_HEADER.
65770         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Likewise.
65771         * m4/float_h.m4 (gl_FLOAT_H): Likewise.
65772         * m4/iconv_h.m4 (gl_ICONV_H): Likewise.
65773         * m4/inttypes.m4 (gl_INTTYPES_H): Likewise.
65774         * m4/locale_h.m4 (gl_LOCALE_H): Likewise.
65775         * m4/math_h.m4 (gl_MATH_H): Likewise.
65776         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Likewise.
65777         * m4/search_h.m4 (gl_SEARCH_H): Likewise.
65778         * m4/signal_h.m4 (gl_SIGNAL_H): Likewise.
65779         * m4/stdint.m4 (gl_STDINT_H): Likewise.
65780         * m4/stdio_h.m4 (gl_STDIO_H): Likewise.
65781         * m4/stdlib_h.m4 (gl_STDLIB_H): Likewise.
65782         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Likewise.
65783         * m4/sys_select_h.m4 (gl_HEADER_SYS_SELECT): Likewise.
65784         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Likewise.
65785         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Likewise.
65786         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Likewise.
65787         * m4/sysexits.m4 (gl_SYSEXITS): Likewise.
65788         * m4/time_h.m4 (gl_HEADER_TIME_H_BODY): Likewise.
65789         * m4/unistd_h.m4 (gl_UNISTD_H): Likewise.
65790         * m4/wchar.m4 (gl_WCHAR_H): Likewise.
65791         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
65792         * m4/inttypes.m4 (gl_INTTYPES_H): Define
65793         _GL_JUST_INCLUDE_SYSTEM_INTTYPES_H to avoid the problem of unclean
65794         builds, since ABSOLUTE_INTTYPES_H is no longer being defined.
65795         * m4/stdint.m4 (gl_STDINT_H): Likewise, for
65796         _GL_JUST_INCLUDE_SYSTEM_STDINT_H.
65797         * lib/fcntl_.h: Use @INCLUDE_NEXT@ @NEXT_foo_H@
65798         rather than @HAVE_INCLUDE_NEXT@ and @ABSOLUTE_foo_H@.
65799         * lib/float_.h: Likewise.
65800         * lib/inttypes_.h: Likewise.
65801         * lib/math_.h: Likewise.
65802         * lib/search_.h: Likewise.
65803         * lib/signal_.h: Likewise.
65804         * lib/stdint_.h: Likewise.
65805         * lib/stdio_.h: Likewise.
65806         * lib/stdlib_.h: Likewise.
65807         * lib/string_.h: Likewise.
65808         * lib/sys_stat_.h: Likewise.
65809         * lib/sys_time_.h: Likewise.
65810         * lib/time_.h: Likewise.
65811         * lib/unistd_.h: Likewise.
65812         * lib/wchar_.h: Likewise.
65813         * lib/wctype_.h: Likewise.
65814         * lib/dirent_.h: Likewise.
65815         * lib/iconv_.h: Likewise.
65816         * lib/locale_.h: Likewise.
65817         * lib/netinet_in_.h: Likewise.
65818         * lib/sys_select_.h: Likewise.
65819         * lib/sys_socket_.h: Likewise.
65820         * lib/sysexits_.h: Likewise.
65821         * modules/fcntl (Depends-on): Depend on include_next, not
65822         absolute_header.
65823         (Makefile): Substitute INCLUDE_NEXT and NEXT_foo_H, not
65824         HAVE_INCLUDE_NEXT and ABSOLUTE_foo_H.
65825         * modules/fchdir: Likewise.
65826         * modules/float: Likewise.
65827         * modules/iconv_open: Likewise.
65828         * modules/inttypes: Likewise.
65829         * modules/locale: Likewise.
65830         * modules/math: Likewise.
65831         * modules/netinet_in: Likewise.
65832         * modules/search: Likewise.
65833         * modules/signal: Likewise.
65834         * modules/stdint: Likewise.
65835         * modules/stdio: Likewise.
65836         * modules/stdlib: Likewise.
65837         * modules/string: Likewise.
65838         * modules/sys_select: Likewise.
65839         * modules/sys_socket: Likewise.
65840         * modules/sys_stat: Likewise.
65841         * modules/sys_time: Likewise.
65842         * modules/sysexits: Likewise.
65843         * modules/time: Likewise.
65844         * modules/unistd: Likewise.
65845         * modules/wchar: Likewise.
65846         * modules/wctype: Likewise.
65847         * modules/sys_stat: Change maintainer to "all".
65848         * modules/unistd: Likewise.
65849
65850 2007-06-20  Karl Berry  <karl@gnu.org>
65851
65852         * config/srclist.txt: track www changes in license files.
65853
65854 2007-06-20  Sergey Poznyakoff  <gray@gnu.org.ua>
65855
65856         * build-aux/bootstrap: Remove stray dot.
65857         Make sure build_aux settings are honored when linking
65858         gnulib_extra_files.
65859
65860 2007-06-19  Eric Blake  <ebb9@byu.net>
65861
65862         * modules/canonicalize-lgpl-tests (test_canonicalize_lgpl_LDADD):
65863         Allow compilation on cygwin.
65864
65865 2007-06-19  Jim Meyering  <jim@meyering.net>
65866
65867         xreadlink-with-size: Remove module.  No longer used.
65868         Ex-callers now use xreadlink or mreadlink-with-size.
65869         * modules/xreadlink-with-size: Remove module.
65870         * lib/xreadlink-with-size.c: Remove file.
65871         * lib/xreadlink.h (xreadlink_with_size): Remove prototype.
65872         (xreadlink): Remove inaccurate comment.  The one in xreadlink.c,
65873         just before the function definition *is* accurate.
65874
65875         Eliminate one way canonicalize_filename_mode could exit.
65876         * lib/canonicalize.c (canonicalize_filename_mode):
65877         Use mreadlink_with_size, not xreadlink_with_size.
65878
65879 2007-06-18  Paul Eggert  <eggert@cs.ucla.edu>
65880
65881         Detect porting problems to FreeBSD/arm, which has time_t wider than
65882         long int.  Original problem reported for GNU diff by Xin Li in
65883         <http://lists.gnu.org/archive/html/bug-gnu-utils/2007-06/msg00091.html>.
65884         * modules/getdate (Depends-on): Add intprops, verify.
65885         * lib/getdate.y: Include intprops.h, verify.h.  Verify that time_t
65886         is an integer type no wider than long int.
65887
65888 2007-06-18  Jim Meyering  <jim@meyering.net>
65889
65890         New module: mreadlink-with-size.
65891         * MODULES.html.sh: Add mreadlink-with-size.
65892         * modules/mreadlink-with-size: New module
65893         * modules/canonicalize (Depends-on): Depend on mreadlink-with-size,
65894         not xreadlink-with-size.
65895         * lib/mreadlink-with-size.c, lib/mreadlink.h: New files.
65896
65897 2007-06-16  Bruno Haible  <bruno@clisp.org>
65898
65899         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Catch the MacOS X 10.4 bug.
65900         * doc/functions/frexpl.texi: Document the MacOS X 10.4 bug.
65901         Reported by Gary V. Vaughan <gary@gnu.org>.
65902
65903 2007-06-15  Paul Eggert  <eggert@cs.ucla.edu>
65904
65905         Revamp lchown so that it lives in unistd.h where it belongs.
65906         * lib/lchown.h: Remove.
65907         * lib/dirchownmod.c: Don't include lib/lchown.h.
65908         * lib/fchownat.c: Likewise.
65909         * lib/openat.c: Likewise.
65910         * lib/lchown.c (REPLACE_CHOWN): Define to 0 if the system chown
65911         does not follow symlinks.
65912         (EOPNOTSUPP): Define if not defined.
65913         * lib/unistd_.h (chown): Do not replace if REPLADE_CHOWN
65914         is defined to 0.
65915         (lchown): New decl.
65916         * m4/lchown.m4 (gl_FUNC_LCHOWN): Require gl_UNISTD_H_DEFAULTS.
65917         Do not check for lchown decl.
65918         Set REPLACE_LCHOWN.
65919         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Set GNULIB_LCHOWN,
65920         REPLACE_LCHOWN.
65921         * modules/chown: Make it clear it follows symlinks.
65922         * modules/lchown: Make it clear it doesn't follow symlinks.
65923         (Files): Remove lib/lchown.h
65924         (Depends-on): Add unistd.
65925         (configure.ac): Add gl_UNISTD_MODULE_INDICATOR([lchown]).
65926         (Include): Include <unistd.h>, not "lchown.h".
65927         * modules/unistd (unistd.h): Substitude GNULIB_LCHOWN and
65928         REPLACE_LCHOWN.
65929
65930 2007-06-15  Jim Meyering  <jim@meyering.net>
65931
65932         Change license (GPL to LGPL) of fsusage and dependents.
65933         * modules/fsusage (License): Change to LGPL.
65934         * modules/full-read (License): Likewise.
65935         * modules/full-write (License): Likewise.
65936         * modules/safe-read (License): Likewise.
65937         * modules/safe-write (License): Likewise.
65938
65939 2007-06-14  Ben Pfaff  <blp@gnu.org>
65940
65941         Missing part of allocsa -> malloca transition.
65942         * modules/relocatable-prog-wrapper: gl_ALLOCSA should be
65943         gl_MALLOCA.
65944
65945 2007-06-12  Bruno Haible  <bruno@clisp.org>
65946
65947         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Guess no when cross-compiling
65948         to ia64, x86_64, i386.
65949         Reported by Eric Blake.
65950
65951 2007-06-12  Bruno Haible  <bruno@clisp.org>
65952
65953         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Guess no also when
65954         cross-compiling to x86_64.
65955
65956 2007-06-12  Paul Eggert  <eggert@cs.ucla.edu>
65957
65958         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Fix POSIX sed portability
65959         glitch reported by Ralf Wildenhues in
65960         <http://lists.gnu.org/archive/html/bug-gnulib/2007-06/msg00114.html>.
65961
65962         * m4/regex.m4 (gl_REGEX): Catch a bug with [[:alnum:]_-] reported by
65963         Vin Shelton.
65964
65965 2007-06-11  Bruno Haible  <bruno@clisp.org>
65966
65967         * lib/printf-args.c (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Fix NULL
65968         replacement string.
65969         Reported by Eric Blake.
65970
65971 2007-06-10  Bruno Haible  <bruno@clisp.org>
65972
65973         Prepare vasnprintf code for use with Unicode strings.
65974         * lib/printf-args.h (PRINTF_FETCHARGS): New macro.
65975         (arg_type) [ENABLE_UNISTDIO]: Define TYPE_U8_STRING, TYPE_U16_STRING,
65976         TYPE_U32_STRING.
65977         (argument) [ENABLE_UNISTDIO]: Add a_u8_string, a_u16_string,
65978         a_u32_string variants.
65979         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65980         * lib/printf-args.c: Don't include config.h and the specification
65981         header if PRINTF_FETCHARGS is already defined.
65982         (PRINTF_FETCHARGS): Renamed from printf_fetchargs.
65983         (PRINTF_FETCHARGS) [ENABLE_UNISTDIO]: Add code for TYPE_U8_STRING,
65984         TYPE_U16_STRING, TYPE_U32_STRING.
65985         * lib/printf-parse.h [ENABLE_UNISTDIO] (u8_directive, u8_directives,
65986         u16_directive, u16_directives, u32_directive, u32_directives): New
65987         types.
65988         (ulc_printf_parse, u8_printf_parse, u16_printf_parse, u32_printf_parse):
65989         New declarations.
65990         * lib/printf-parse.c: Don't include config.h and the specification
65991         header if PRINTF_PARSE is already defined. Eliminate the set of
65992         parameters for WIDE_CHAR_VERSION; the user of this file must provide
65993         them now. Include c-ctype.h.
65994         (PRINTF_PARSE) [ENABLE_UNISTDIO]: Add code implementing the 'U'
65995         directive and CHAR_T_ONLY_ASCII.
65996         * lib/vasnprintf.c: Don't include config.h and the specification header
65997         if VASNPRINTF is already defined.
65998         (DCHAR_IS_TCHAR, DCHAR_CPY): New macros.
65999         (VASNPRINTF): Use PRINTF_FETCHARGS instead of printf_fetchargs. Use
66000         DCHAR_CPY. Handle the case that DCHAR_T and FCHAR_T are not the same
66001         type. Handle the case that TCHAR_T and FCHAR_T are not of the same
66002         size. Handle the case that DCHAR_T and TCHAR_T are not the same type,
66003         add a conversion from TCHAR_T[] to DCHAR_T[], and rework the padding
66004         code accordingly.
66005         (VASNPRINTF) [ENABLE_UNISTDIO]: Implement the 'U' directive. Enable
66006         pad_ourselves also in this case, with the 'c' and 's' directives, and
66007         with a different notion of "width".
66008         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_WITH_EXTRAS): New macros.
66009
66010 2007-06-10  Bruno Haible  <bruno@clisp.org>
66011
66012         * modules/unistr/u32-mbsnlen: New file.
66013         * lib/unistr/u32-mbsnlen.c: New file.
66014
66015         * modules/unistr/u16-mbsnlen: New file.
66016         * lib/unistr/u16-mbsnlen.c: New file.
66017
66018         * modules/unistr/u8-mbsnlen: New file.
66019         * lib/unistr/u8-mbsnlen.c: New file.
66020
66021         * lib/unistr.h (u8_mbsnlen, u16_mbsnlen, u32_mbsnlen): New
66022         declarations.
66023
66024 2007-06-10  Bruno Haible  <bruno@clisp.org>
66025
66026         * lib/string_.h (mbsnlen): New declaration.
66027         * lib/mbsnlen.c: New file.
66028         * m4/mbsnlen.m4: New file.
66029         * modules/mbsnlen: New file.
66030         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Set GNULIB_MBSNLEN.
66031         * modules/string (string.h): Substitute GNULIB_MBSNLEN.
66032         * MODULES.html.sh (Internationalization functions): Add mbsnlen.
66033
66034 2007-06-10  Bruno Haible  <bruno@clisp.org>
66035
66036         * lib/mbslen.c: Include <stdlib.h>, needed for MB_CUR_MAX.
66037
66038 2007-06-10  Bruno Haible  <bruno@clisp.org>
66039
66040         * lib/mbiter.h: Include <stddef.h>, needed for ptrdiff_t.
66041         * lib/mbuiter.h: Likewise.
66042
66043 2007-06-10  Bruno Haible  <bruno@clisp.org>
66044
66045         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Check for _snprintf
66046         declaration.
66047
66048 2007-06-10  Karl Berry  <karl@gnu.org>
66049
66050         * config/srclist.txt: remove gettext entries, Bruno prefers
66051         to update individually.
66052
66053 2007-06-10  Bruno Haible  <bruno@clisp.org>
66054
66055         * lib/vasnprintf.c (VASNPRINTF) [!USE_SNPRINTF]: Remove variable
66056         'maxlen'. Ensure only length + width bytes are allocated, not
66057         length + 1 + width.
66058
66059 2007-06-09  Bruno Haible  <bruno@clisp.org>
66060
66061         * lib/vasnprintf.c (FCHAR_T, DCHAR_T, TCHAR_T): New macros.
66062         (CHAR_T): Remove macro.
66063         (VASNPRINTF): Update.
66064
66065 2007-06-09  Bruno Haible  <bruno@clisp.org>
66066
66067         * MODULES.html.sh (Unicode string functions): Add the new modules.
66068
66069         * modules/uniconv/u32-conv-to-enc: New file.
66070         * lib/uniconv/u32-conv-to-enc.c: New file.
66071         * modules/uniconv/u32-conv-to-enc-tests: New file.
66072         * tests/uniconv/test-u32-conv-to-enc.c: New file.
66073
66074         * modules/uniconv/u16-conv-to-enc: New file.
66075         * lib/uniconv/u16-conv-to-enc.c: New file.
66076         * lib/uniconv/u-conv-to-enc.h: New file.
66077         * modules/uniconv/u16-conv-to-enc-tests: New file.
66078         * tests/uniconv/test-u16-conv-to-enc.c: New file.
66079
66080         * modules/uniconv/u8-conv-to-enc: New file.
66081         * lib/uniconv/u8-conv-to-enc.c: New file.
66082         * modules/uniconv/u8-conv-to-enc-tests: New file.
66083         * tests/uniconv/test-u8-conv-to-enc.c: New file.
66084
66085         * lib/uniconv.h (u8_conv_to_encoding, u16_conv_to_encoding,
66086         u32_conv_to_encoding): New declarations.
66087
66088 2007-06-09  Bruno Haible  <bruno@clisp.org>
66089
66090         * tests/uniconv/test-u32-strconv-to-enc.c (main): Remove unused code.
66091
66092 2007-06-09  Bruno Haible  <bruno@clisp.org>
66093
66094         Rename 'allocsa' -> 'malloca', 'freesa' -> 'freea'.
66095         * modules/malloca: Renamed from modules/allocsa, updated.
66096         * lib/malloca.h: Renamed from lib/allocsa.h, updated.
66097         * lib/malloca.c: Renamed from lib/allocsa.c, updated.
66098         * lib/malloca.valgrind: Renamed from lib/allocsa.valgrind, updated.
66099         * m4/malloca.m4: Renamed from m4/allocsa.m4, updated.
66100         * modules/malloca-tests: Renamed from modules/allocsa-tests, updated.
66101         * tests/test-malloca.c: Renamed from tests/test-allocsa.c, updated.
66102         * modules/xmalloca: Renamed from modules/xallocsa, updated.
66103         * lib/xmalloca.h: Renamed from lib/xallocsa.h, updated.
66104         * lib/xmalloca.c: Renamed from lib/xallocsa.c, updated.
66105         * modules/c-strcasestr (Depends-on): Update.
66106         * lib/c-strcasestr.c: Update.
66107         * modules/c-strstr (Depends-on): Update.
66108         * lib/c-strstr.c: Update.
66109         * modules/canonicalize-lgpl (Depends-on): Update.
66110         * lib/canonicalize-lgpl.c: Update.
66111         * modules/clean-temp (Depends-on): Update.
66112         * lib/clean-temp.c: Update.
66113         * modules/csharpcomp (Depends-on): Update.
66114         * lib/csharpcomp.c: Update.
66115         * modules/csharpexec (Depends-on): Update.
66116         * lib/csharpexec.c: Update.
66117         * modules/javacomp (Depends-on): Update.
66118         * lib/javacomp.c: Update.
66119         * modules/javaexec (Depends-on): Update.
66120         * lib/javaexec.c: Update.
66121         * modules/mbscasestr (Depends-on): Update.
66122         * lib/mbscasestr.c: Update.
66123         * modules/mbsstr (Depends-on): Update.
66124         * lib/mbsstr.c: Update.
66125         * modules/setenv (Depends-on): Update.
66126         * lib/setenv.c: Update.
66127         * modules/strcasestr (Depends-on): Update.
66128         * lib/strcasestr.c: Update.
66129         * modules/striconveha (Depends-on): Update.
66130         * lib/striconveha.c: Update.
66131         * modules/relocatable-prog-wrapper (Files): Update.
66132         * lib/relocwrapper.c: Update.
66133         * build-aux/install-reloc: Update.
66134         * MODULES.html.sh (Memory management functions <stdlib.h>): Update.
66135
66136 2007-06-08  Bruno Haible  <bruno@clisp.org>
66137
66138         Port to uClibc.
66139         * lib/fbufmode.c (fbufmode): Add special code for uClibc.
66140         * lib/fpurge.c (fpurge): Likewise.
66141         * lib/freading.c (freading): Likewise.
66142         * lib/fseeko.c (rpl_fseeko): Likewise.
66143         * lib/fseterr.c (fseterr): Likewise.
66144         * lib/fwriting.c (fwriting): Likewise.
66145         * tests/test-fflush.c (main): Avoid a failure on uClibc.
66146
66147 2007-06-08  Bruno Haible  <bruno@clisp.org>
66148
66149         * m4/intlmacosx.m4: New file, extracted from gettext.m4.
66150         * m4/gettext.m4 (gt_INTL_MACOSX): Remove macro, moved to intlmacosx.m4.
66151         * modules/gettext (Files): Add m4/intlmacosx.m4.
66152
66153 2007-06-07  Bruno Haible  <bruno@clisp.org>
66154
66155         * modules/localename-tests: New file.
66156         * tests/test-localename.c: New file.
66157
66158         New module 'localename'.
66159         * lib/localename.h: New file.
66160         * lib/localename.c: New file, from GNU gettext.
66161         * m4/localename.m4: New file.
66162         * modules/localename: New file.
66163
66164 2007-06-07  Bruno Haible  <bruno@clisp.org>
66165
66166         Work around the lack of <wchar.h> on some builds of uClibc.
66167         * doc/headers/wchar.texi: Update.
66168         * lib/wchar_.h: Include <wchar.h> only if it exists.
66169         * m4/wchar.m4 (gl_WCHAR_H): Check for <wchar.h>. Set HAVE_WCHAR_H.
66170         * m4/stdint.m4 (gl_STDINT_H): Check for <wchar.h>.
66171         (gl_STDINT_TYPE_PROPERTIES): Don't try to include <wchar.h> if it
66172         doesn't exist.
66173         * modules/wchar (wchar.h): Substitute HAVE_WCHAR_H.
66174         * modules/mbfile (Depends-on): Add wchar.
66175         * modules/mbiter (Depends-on): Likewise.
66176         * modules/mbuiter (Depends-on): Likewise.
66177         Reported by Simon Josefsson.
66178
66179 2007-06-06  Paul Eggert  <eggert@cs.ucla.edu>
66180
66181         Work around problem reported by Steven M. Schweda in
66182         <http://lists.gnu.org/archive/html/bug-tar/2007-06/msg00002.html>:
66183         Tru64 5.1B with the Compaq compiler environment installed declares
66184         an 'isblank' function but does not define it in the C library.
66185         * lib/fnmatch.c (isblank): Check for HAVE_ISBLANK, too.
66186         * lib/regex_internal.h (isblank): Likewise.
66187         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for isblank existence.
66188         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
66189
66190 2007-06-05  Bruno Haible  <bruno@clisp.org>
66191
66192         Fix *printf so that it recognizes non-IEEE numbers on i386, x86_64,
66193         ia64.
66194         * modules/printf-safe: New file.
66195         * modules/fprintf-posix (Depends-on): Add printf-safe.
66196         * modules/printf-posix (Depends-on): Likewise.
66197         * modules/snprintf-posix (Depends-on): Likewise.
66198         * modules/sprintf-posix (Depends-on): Likewise.
66199         * modules/vasnprintf-posix (Depends-on): Likewise.
66200         * modules/vasprintf-posix (Depends-on): Likewise.
66201         * modules/vfprintf-posix (Depends-on): Likewise.
66202         * modules/vprintf-posix (Depends-on): Likewise.
66203         * modules/vsnprintf-posix (Depends-on): Likewise.
66204         * modules/vsprintf-posix (Depends-on): Likewise.
66205         * m4/printf.m4 (gl_PRINTF_INFINITE_LONG_DOUBLE): Require
66206         AC_C_BIGENDIAN. Define CHECK_PRINTF_SAFE if printf-safe is used. Test
66207         non-IEEE numbers on i386, x86_64, ia64. When cross-compiling, guess
66208         "no" on i386, x86_64, ia64.
66209         * tests/test-snprintf-posix.h (LDBL80_WORDS): New macro.
66210         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66211         on i386, x86_64, ia64.
66212         * tests/test-sprintf-posix.h (LDBL80_WORDS): New macro.
66213         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66214         on i386, x86_64, ia64.
66215         * tests/test-vasnprintf-posix.c: Include float.h.
66216         (LDBL80_WORDS): New macro.
66217         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66218         on i386, x86_64, ia64.
66219         * tests/test-vasprintf-posix.c: Include float.h.
66220         (LDBL80_WORDS): New macro.
66221         (test_function): Check result of %La, %Lf, %Le, %Lg on non-IEEE numbers
66222         on i386, x86_64, ia64.
66223         * tests/test-snprintf-posix.c: Include float.h.
66224         * tests/test-sprintf-posix.c: Likewise.
66225         * tests/test-vsnprintf-posix.c: Likewise.
66226         * tests/test-vsprintf-posix.c: Likewise.
66227
66228 2007-06-05  Bruno Haible  <bruno@clisp.org>
66229
66230         Fix isnanl so that it recognizes non-IEEE numbers on i386, x86_64, ia64.
66231         * m4/isnanl.m4 (gl_FUNC_ISNANL_WORKS): Require AC_C_BIGENDIAN. Test
66232         non-IEEE numbers on i386, x86_64, ia64.
66233         (gl_LONG_DOUBLE_EXPONENT_LOCATION): Require AC_C_BIGENDIAN.
66234         * lib/isnan.c (FUNC): Add special code for i386, x86_64, ia64.
66235         * tests/test-isnanl.h: Include float.h.
66236         (main): Check also non-IEEE numbers on i386, x86_64, ia64.
66237
66238 2007-06-05  Bruno Haible  <bruno@clisp.org>
66239
66240         * lib/vasnprintf.c (VASNPRINTF): Do the extra handling of NaN and Inf
66241         also the %a / %A. Handle the %a / %A code before this extra handling.
66242
66243 2007-06-05  Bruno Haible  <bruno@clisp.org>
66244
66245         * lib/vasnprintf.c [NEED_PRINTF_LONG_DOUBLE ||
66246         NEED_PRINTF_INFINITE_LONG_DOUBLE]: Include fpucw.h.
66247
66248 2007-06-05  Bruno Haible  <bruno@clisp.org>
66249
66250         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): Fix
66251         typo in variable name.
66252
66253 2007-06-05  Eric Blake  <ebb9@byu.net>
66254
66255         * m4/lseek.m4 (gl_FUNC_LSEEK): Work when cross-compiling.
66256         Reported by Simon Josefsson.
66257
66258 2007-06-04  Bruno Haible  <bruno@clisp.org>
66259
66260         Avoid test failures on some PowerPC platforms.
66261         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP):
66262         Define differently for PowerPC.
66263         * tests/test-frexpl.c (MIN_NORMAL_EXP): Likewise.
66264         Reported by Gary V. Vaughan <gary@gnu.org>.
66265
66266 2007-06-02  Bruno Haible  <bruno@clisp.org>
66267
66268         Fix test-stdint failure on FreeBSD/ia64.
66269         * m4/stdint.m4 (gl_STDINT_H): Check the values of PTRDIFF_MIN,
66270         PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN,
66271         WCHAR_MAX, WINT_MIN, WINT_MAX entirely, not only for plausibility.
66272         * doc/headers/stdint.texi: Update.
66273
66274 2007-06-01  Bruno Haible  <bruno@clisp.org>
66275
66276         * tests/test-binary-io.c (main): Pass a third argument to open().
66277         Reported by Gary V. Vaughan <gary@gnu.org>.
66278
66279 2007-06-01  Bruno Haible  <bruno@clisp.org>
66280
66281         * doc/functions/frexpl.texi: Update for mingw.
66282
66283 2007-06-01  Bruno Haible  <bruno@clisp.org>
66284
66285         * tests/test-lseek.c (main): Disable test of errno for invalid third
66286         argument.
66287         * doc/functions/lseek.texi: Update.
66288         Reported by Gary V. Vaughan <gary@gnu.org>.
66289
66290 2007-05-28  Bruno Haible  <bruno@clisp.org>
66291
66292         * m4/intl.m4 (AM_INTL_SUBDIR): Substitute variables WOE32, WINDRES.
66293
66294 2007-05-31  Eric Blake  <ebb9@byu.net>
66295
66296         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Guess no on mingw when
66297         cross compiling.
66298
66299 2007-05-30  Eric Blake  <ebb9@byu.net>
66300         and Bruno Haible  <bruno@clisp.org>
66301
66302         Work around mingw test failures exposed by m4-1.4.9b.
66303         * m4/stdint.m4 (gl_STDINT_H): Detect mingw bug.
66304         * tests/test-unistd.c: Disable uid_t and git_t tests for the
66305         moment.
66306
66307 2007-05-30  Bruno Haible  <bruno@clisp.org>
66308
66309         * tests/test-lseek.c: Explicitly close file descriptors 0 and 1 before
66310         assuming that they are closed. Needed on HP-UX 11.
66311
66312 2007-05-29  Bruno Haible  <bruno@clisp.org>
66313
66314         Fix a problem with #include_next.
66315         * lib/dirent_.h: Split the double-inclusion guard.
66316         * lib/fcntl_.h: Likewise.
66317         * lib/float_.h: Likewise.
66318         * lib/iconv_.h: Likewise.
66319         * lib/inttypes_.h: Likewise.
66320         * lib/locale_.h: Likewise.
66321         * lib/math_.h: Likewise.
66322         * lib/netinet_in_.h: Likewise.
66323         * lib/search_.h: Likewise.
66324         * lib/signal_.h: Likewise.
66325         * lib/stdint_.h: Likewise.
66326         * lib/stdio_.h: Likewise.
66327         * lib/stdlib_.h: Likewise.
66328         * lib/string_.h: Likewise.
66329         * lib/sys_select_.h: Likewise.
66330         * lib/sys_socket_.h: Likewise.
66331         * lib/sys_stat_.h: Likewise.
66332         * lib/sys_time_.h: Likewise.
66333         * lib/sysexits_.h: Likewise.
66334         * lib/time_.h: Likewise.
66335         * lib/unistd_.h: Likewise.
66336         * lib/wchar_.h: Likewise.
66337         * lib/wctype_.h: Likewise.
66338
66339 2007-05-29  Bruno Haible  <bruno@clisp.org>
66340
66341         * tests/test-unistd.c: Disable the tests for useconds_t and intptr_t
66342         for the moment.
66343
66344 2007-05-29  Bruno Haible  <bruno@clisp.org>
66345
66346         * m4/isnan.m4 (gl_DOUBLE_EXPONENT_LOCATION): Silence the AC_C_BIGENDIAN
66347         invocation.
66348         Reported by Eric Blake.
66349
66350 2007-05-29  Bruno Haible  <bruno@clisp.org>
66351
66352         * m4/isnanf.m4 (gl_FLOAT_EXPONENT_LOCATION): Fix typo in cross-
66353         compiling case.
66354
66355 2007-05-29  Eric Blake  <ebb9@byu.net>
66356             Bruno Haible  <bruno@clisp.org>
66357
66358         * m4/isnanf.m4 (gl_FUNC_ISNANF_NO_LIBM): Avoid syntax error on
66359         cross compiles.
66360
66361 2007-05-28  Eric Blake  <ebb9@byu.net>
66362
66363         * modules/closein-tests (test_closein_LDADD): Support test on
66364         cygwin with libtool.
66365
66366 2007-05-28  Bruno Haible  <bruno@clisp.org>
66367
66368         * tests/uniconv/test-u16-conv-from-enc.c: Remove #ifdef HAVE_CONFIG_H.
66369         * tests/uniconv/test-u16-strconv-from-enc.c: Likewise.
66370         * tests/uniconv/test-u16-strconv-to-enc.c: Likewise.
66371         * tests/uniconv/test-u32-conv-from-enc.c: Likewise.
66372         * tests/uniconv/test-u32-strconv-from-enc.c: Likewise.
66373         * tests/uniconv/test-u32-strconv-to-enc.c: Likewise.
66374         * tests/uniconv/test-u8-conv-from-enc.c: Likewise.
66375         * tests/uniconv/test-u8-strconv-from-enc.c: Likewise.
66376         * tests/uniconv/test-u8-strconv-to-enc.c: Likewise.
66377
66378 2007-05-28  Eric Blake  <ebb9@byu.net>
66379
66380         Unconditionally include <config.h> in unit tests.
66381         * tests/test-alloca-opt.c: Remove #ifdef HAVE_CONFIG_H.
66382         * tests/test-allocsa.c, tests/test-arcfour.c,
66383         tests/test-arctwo.c, tests/test-argmatch.c, tests/test-argp.c,
66384         tests/test-array_list.c, tests/test-array_oset.c,
66385         tests/test-atexit.c, test-avltree_list.c, test-avltree_oset.c,
66386         test-avltreehash_list.c, test-base64.c, test-binary-io.c,
66387         test-c-ctype.c, test-c-strcasecmp.c, test-c-strcasestr.c,
66388         test-c-strncasecmp.c, test-c-strstr.c, test-canonicalize-lgpl.c,
66389         test-carray_list.c, test-crc.c, test-des.c, test-dirname.c,
66390         test-fflush.c, test-fprintf-posix.c, test-gc-arcfour.c,
66391         test-gc-arctwo.c, test-gc-des.c, test-gc-hmac-md5.c,
66392         test-gc-hmac-sha1.c, test-gc-md2.c, test-gc-md4.c, test-gc-md5.c,
66393         test-gc-pbkdf2-sha1.c, test-gc-rijndael.c, test-gc-sha1.c,
66394         test-gc.c, test-getpass.c, test-hmac-md5.c, test-hmac-sha1.c,
66395         test-iconv.c, test-linked_list.c, test-linkedhash_list.c,
66396         test-lock.c, test-mbscasecmp.c, test-mbscasestr1.c,
66397         test-mbscasestr2.c, test-mbscasestr3.c, test-mbscasestr4.c,
66398         test-mbschr.c, test-mbscspn.c, test-mbsncasecmp.c, test-mbspbrk.c,
66399         test-mbspcasecmp.c, test-mbsrchr.c, test-mbsspn.c, test-mbsstr1.c,
66400         test-mbsstr2.c, test-mbsstr3.c, test-md2.c, test-md4.c,
66401         test-md5.c, test-memmem.c, test-printf-posix.c,
66402         test-rbtree_list.c, test-rbtree_oset.c, test-rbtreehash_list.c,
66403         test-read-file.c, test-rijndael.c, test-snprintf-posix.c,
66404         test-snprintf.c, test-sprintf-posix.c, test-stdint.c,
66405         test-strcasestr.c, test-striconv.c, test-striconveh.c,
66406         test-striconveha.c, test-tls.c, test-vasnprintf-posix.c,
66407         test-vasnprintf-posix2.c, test-vasnprintf.c,
66408         test-vasprintf-posix.c, test-vasprintf.c, test-verify.c,
66409         test-vfprintf-posix.c, test-vprintf-posix.c,
66410         test-vsnprintf-posix.c, test-vsnprintf.c, test-vsprintf-posix.c,
66411         test-xvasprintf.c: Likewise.
66412
66413 2007-05-28  Bruno Haible  <bruno@clisp.org>
66414
66415         * gnulib-tool (func_import): Remember the --with-tests command-line
66416         option through the macro gl_WITH_TESTS in the gnulib-cache.m4.
66417         Reported by Eric Blake.
66418
66419 2007-05-28  Bruno Haible  <bruno@clisp.org>
66420
66421         * modules/ftell-tests: New file.
66422         * tests/test-ftell.c: New file, based on tests/test-ftello.c.
66423         * tests/test-ftell.sh: New file, based on tests/test-ftello.sh.
66424
66425         * lib/ftell.c: New file.
66426         * modules/ftell: New file.
66427         * m4/ftell.m4: New file.
66428         * doc/functions/ftell.texi: Update.
66429         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELL,
66430         REPLACE_FTELL.
66431         * lib/stdio_.h (rpl_ftell): New declaration.
66432         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELL,
66433         REPLACE_FTELL.
66434
66435 2007-05-28  Eric Blake  <ebb9@byu.net>
66436
66437         * lib/allocsa.h (safe_alloca): Avoid compiler warning.
66438
66439 2007-05-28  Bruno Haible  <bruno@clisp.org>
66440
66441         * modules/fseek-tests: New file.
66442         * tests/test-fseek.c: New file, based on tests/test-fseeko.c.
66443         * tests/test-fseek.sh: New file, based on tests/test-fseeko.sh.
66444
66445         * lib/fseek.c: New file.
66446         * modules/fseek: New file.
66447         * m4/fseek.m4: New file.
66448         * doc/functions/fseek.texi: Update.
66449         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEK,
66450         REPLACE_FSEEK.
66451         * lib/stdio_.h (rpl_fseek): New declaration.
66452         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEK,
66453         REPLACE_FSEEK.
66454
66455 2007-05-28  Bruno Haible  <bruno@clisp.org>
66456
66457         * lib/stdio_.h (fflush): More comments.
66458
66459 2007-05-28  Bruno Haible  <bruno@clisp.org>
66460
66461         * m4/lseek.m4 (gl_FUNC_LSEEK): When not cross-compiling, perform a real
66462         runtime test.
66463
66464 2007-05-28  Eric Blake  <ebb9@byu.net>
66465
66466         Improve lseek module.
66467         * lib/lseek.c (rpl_lseek): Detect EBADF on mingw.
66468         * lib/unistd_.h (lseek): Scale back link warning message.
66469         * tests/test-lseek.c: Beef up test.
66470         * tests/test-lseek.sh: Exercise more facets of lseek.
66471         Reported by Bruno Haible.
66472
66473 2007-05-28  Bruno Haible  <bruno@clisp.org>
66474
66475         * tests/test-unistd.c: Test all the types that <unistd.h> is expected
66476         to define.
66477
66478 2007-05-27  Bruno Haible  <bruno@clisp.org>
66479
66480         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-31 patch.
66481
66482 2007-05-27  Bruno Haible  <bruno@clisp.org>
66483
66484         * modules/openmp: New file.
66485         * m4/openmp.m4: New file, taken from autoconf's CVS with changes by
66486         Noah Misch.
66487
66488 2007-05-26  Bruno Haible  <bruno@clisp.org>
66489
66490         * modules/chdir-long (Depends-on): Add fchdir.
66491         * modules/chdir-safer (Depends-on): Likewise.
66492         * modules/fts (Depends-on): Likewise.
66493         * modules/fts-lgpl (Depends-on): Likewise.
66494         * modules/openat (Depends-on): Likewise.
66495         * modules/savewd (Depends-on): Likewise.
66496
66497 2007-05-24  Eric Blake  <ebb9@byu.net>
66498
66499         Fix lseek on mingw.
66500         * modules/lseek: New module.
66501         * m4/lseek.m4: New file.
66502         * lib/lseek.c: New file.
66503         * modules/lseek-tests: New file.
66504         * tests/test-lseek.c: New file.
66505         * tests/test-lseek.sh: New file.
66506         * MODULES.html.sh: Document lseek module.
66507         * modules/fflush (Depends-on): Add lseek, fseeko.
66508         * modules/fseeko (Depends-on): Likewise.
66509         * modules/ftello (Depends-on): Likewise.
66510         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Replace fseek[o] if lseek is
66511         broken.
66512         * m4/ftello.m4 (gl_FUNC_FTELLO): Replace ftell[o] if lseek is
66513         broken.
66514         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Trigger fseeko module.
66515         * lib/fseeko.c (rpl_fseeko): Quit early on non-seekable files.
66516         * lib/ftello.c (rpl_ftello): Likewise.
66517         * tests/test-fseeko.c (main): Test this.
66518         * tests/test-fseeko.sh: Likewise.
66519         * tests/test-ftello.c (main): Likewise.
66520         * tests/test-ftello.sh: Likewise.
66521         * lib/stdio_.h (fseek, ftell): Simplify, since missing fseeko now
66522         implies replacing fseek.
66523         * modules/stdio (Makefile.am): No longer need HAVE_FSEEKO,
66524         HAVE_FTELLO.
66525         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Add lseek info.
66526         * modules/unistd (Makefile.am): Likewise.
66527         * lib/unistd_.h (lseek): Declare a replacement.
66528         * doc/functions/lseek.texi (lseek): Document this fix.
66529         * doc/functions/fseek.texi (fseek): Likewise.
66530         * doc/functions/ftell.texi (ftell): Likewise.
66531
66532 2007-05-24  Bruno Haible  <bruno@clisp.org>
66533
66534         * tests/test-vasnprintf-posix.c (test_function): Allow up to 50 bytes
66535         in the printed representation of a NaN.
66536         * tests/test-vasprintf-posix.c (test_function): Likewise.
66537         * tests/test-snprintf-posix.h (test_function): Likewise.
66538         * tests/test-sprintf-posix.h (test_function): Likewise.
66539         Reported by Eric Blake.
66540
66541 2007-05-23  Eric Blake  <ebb9@byu.net>
66542
66543         Fix fseeko/ftello on cygwin 1.5.24.
66544         * doc/functions/fseeko.texi (fseeko): Document the fix.
66545         * doc/functions/ftello.texi (ftello): Document the fix.
66546         * doc/functions/stdin.texi (stdin): Document the cygwin bug.
66547         * doc/functions/stdout.text (stdout): New file.
66548         * doc/functions/stderr.text (stderr): New file.
66549         * doc/gnulib.texi (Function Substitutes): Use new files.
66550         * tests/test-fseeko.c (main): Check for broken fseeko on cygwin
66551         prior to 1.7.0.
66552         * tests/test-ftello.c (main): Likewise for ftello.
66553         * tests/test-fseeko.sh: New file.
66554         * tests/test-ftello.sh: New file.
66555         * modules/fseeko-tests (Makefile.am): Ensure test-fseeko is run
66556         with seekable stdin.
66557         * modules/ftello-tests (Makefile.am): Likewise for test-ftello.
66558         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Detect the cygwin bug.
66559         (gl_REPLACE_FSEEKO): New macro.
66560         * m4/ftello.m4 (gl_FUNC_FTELLO, gl_REPLACE_FTELLO): Likewise.
66561         * modules/fseeko (Files): Distribute fseeko.c.
66562         * modules/ftello (Files): Distribute ftello.c.
66563         * lib/fseeko.c (rpl_fseeko) [__CYGWIN__]: Convert stdin to 64-bit
66564         mode.
66565         * lib/ftello.c (rpl_ftello): New file.
66566         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Allow replacement of
66567         fseeko, ftello.
66568         (gl_STDIN_LARGE_OFFSET): New macro.
66569         * modules/stdio (Makefile.am): Perform the replacement.
66570         * lib/stdio_.h (rpl_fseeko, rpl_ftello): Define when needed.
66571
66572 2007-05-23  Bruno Haible  <bruno@clisp.org>
66573
66574         * lib/stdio_.h (fseeko, ftello): Provide a link warning only if
66575         GNULIB_POSIXCHECK is defined.
66576
66577 2007-05-21  Bruno Haible  <bruno@clisp.org>
66578
66579         * m4/printf.m4 (gl_PRINTF_INFINITE, gl_PRINTF_INFINITE_LONG_DOUBLE):
66580         Check also the output for NaN arguments. When cross-compiling, guess
66581         no on IRIX.
66582         * lib/vasnprintf.c: Update comments.
66583         * tests/test-vasnprintf-posix.c (strisnan): New function.
66584         (test_function): Use it.
66585         * tests/test-vasprintf-posix.c (strisnan): New function.
66586         (test_function): Use it.
66587         * tests/test-snprintf-posix.h (strisnan): New function.
66588         (test_function): Use it.
66589         * tests/test-sprintf-posix.h (strisnan): New function.
66590         (test_function): Use it.
66591         Reported by Eric Blake.
66592
66593 2007-05-20  Bruno Haible  <bruno@clisp.org>
66594
66595         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Add test for large finite
66596         numbers that fails on BeOS.
66597         * doc/functions/frexpl.texi: Update.
66598
66599 2007-05-20  Jim Meyering  <jim@meyering.net>
66600
66601         * NEWS: Mention the incompatible change (s/futimens/gl_futimens/)
66602         forced upon us by glibc-2.6.
66603
66604 2007-05-20  Bruno Haible  <bruno@clisp.org>
66605
66606         Fix *printf result for NaN, Inf on AIX, Solaris, OSF/1.
66607         * m4/printf.m4 (gl_PRINTF_INFINITE): Update cross-compiling guesses.
66608         (gl_PRINTF_INFINITE_LONG_DOUBLE): New macro.
66609         * lib/vasnprintf.c: Use NEED_PRINTF_INFINITE_DOUBLE instead of
66610         NEED_PRINTF_INFINITE.
66611         (is_infinitel): New function.
66612         (VASNPRINTF): Handle NEED_PRINTF_INFINITE_LONG_DOUBLE case.
66613         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE): Renamed from
66614         gl_PREREQ_VASNPRINTF_INFINITE.
66615         (gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE): New macro.
66616         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66617         gl_PRINTF_INFINITE_LONG_DOUBLE and test its result. Invoke
66618         gl_PREREQ_VASNPRINTF_INFINITE_DOUBLE and
66619         gl_PREREQ_VASNPRINTF_INFINITE_LONG_DOUBLE instead of
66620         gl_PREREQ_VASNPRINTF_INFINITE.
66621         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66622         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66623         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66624         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66625         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66626         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66627         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66628         * doc/functions/fprintf.texi: Update.
66629         * doc/functions/printf.texi: Update.
66630         * doc/functions/snprintf.texi: Update.
66631         * doc/functions/sprintf.texi: Update.
66632         * doc/functions/vfprintf.texi: Update.
66633         * doc/functions/vprintf.texi: Update.
66634         * doc/functions/vsnprintf.texi: Update.
66635         * doc/functions/vsprintf.texi: Update.
66636
66637 2007-05-20  Bruno Haible  <bruno@clisp.org>
66638
66639         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): Set REPLACE_FREXPL if frexpl
66640         was not found in libc.
66641         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Likewise.
66642
66643 2007-05-20  Bruno Haible  <bruno@clisp.org>
66644
66645         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66646         printed as "-nan" instead of "nan".
66647         * tests/test-vasprintf-posix.c (test_function): Likewise.
66648         * tests/test-snprintf-posix.h (test_function): Likewise.
66649         * tests/test-sprintf-posix.h (test_function): Likewise.
66650         Needed for HP-UX 11.
66651
66652 2007-05-20  Jim Meyering  <jim@meyering.net>
66653
66654         Fix buggy test for the fchownat-deref bug.
66655         * m4/openat.m4 (gl_FUNC_FCHOWNAT_DEREF_BUG): Create the dangling
66656         symlink required for the run-test.  Without it, this test would
66657         always declare that fchownat doesn't work, and client code would
66658         unnecessarily use the replacement function with fixed libc.
66659         (gl_FUNC_FCHOWNAT): Eliminate a variable that wasn't initialized.
66660         Reported by Greg Schafer.
66661
66662 2007-05-19  Bruno Haible  <bruno@clisp.org>
66663
66664         * m4/isnanf.m4 (gl_ISNANF_WORKS): New macro.
66665         (gl_FUNC_ISNANF_NO_LIBM): Invoke it.
66666         * lib/isnan.c (FUNC): Use run-time expressions for SGI compiler.
66667         Needed for IRIX 6.5 and Solaris 2.5.1.
66668
66669 2007-05-19  Bruno Haible  <bruno@clisp.org>
66670
66671         * tests/test-vasnprintf-posix.c (have_minus_zero): New function.
66672         (test_function): Skip tests involving -0.0 on platforms where
66673         -0.0 = 0.0.
66674         * tests/test-vasprintf-posix.c (have_minus_zero): New function.
66675         (test_function): Skip tests involving -0.0 on platforms where
66676         -0.0 = 0.0.
66677         * tests/test-snprintf-posix.h (have_minus_zero): New function.
66678         (test_function): Skip tests involving -0.0 on platforms where
66679         -0.0 = 0.0.
66680         * tests/test-sprintf-posix.h (have_minus_zero): New function.
66681         (test_function): Skip tests involving -0.0 on platforms where
66682         -0.0 = 0.0.
66683         * tests/test-fprintf-posix.h (test_function): Remove all -0.0 related
66684         tests.
66685         * tests/test-printf-posix.h (test_function): Likewise.
66686         * tests/test-printf-posix.output: Remove all -0.0 related results.
66687         Needed for IRIX 6.5.
66688
66689 2007-05-19  Bruno Haible  <bruno@clisp.org>
66690
66691         * tests/test-vasnprintf-posix.c (test_function): Allow NaN to be
66692         printed as "nan0x7fffffff" instead of "nan".
66693         * tests/test-vasprintf-posix.c (test_function): Likewise.
66694         * tests/test-snprintf-posix.h (test_function): Likewise.
66695         * tests/test-sprintf-posix.h (test_function): Likewise.
66696         * tests/test-fprintf-posix.h (NaN): Remove macro.
66697         (test_function): Remove all NaN related tests.
66698         * tests/test-printf-posix.h (NaN): Remove macro.
66699         (test_function): Remove all NaN related tests.
66700         * tests/test-printf-posix.output: Remove all NaN related results.
66701         Needed for IRIX 6.5.
66702
66703 2007-05-19  Bruno Haible  <bruno@clisp.org>
66704
66705         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Fix C89 syntax error in test code.
66706         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Likewise.
66707
66708 2007-05-19  Bruno Haible  <bruno@clisp.org>
66709
66710         * lib/float_.h: New file.
66711         * m4/float_h.m4: New file.
66712         * modules/float: New file.
66713         * modules/isnanl (Dependencies): Add float.
66714         * modules/isnanl-nolibm (Dependencies): Likewise.
66715         * modules/mathl (Dependencies): Likewise.
66716         * modules/printf-frexpl (Dependencies): Likewise.
66717         * modules/signbit (Dependencies): Likewise.
66718         * modules/vasnprintf (Dependencies): Likewise.
66719         * doc/headers/float.texi: Update.
66720
66721 2007-05-19  Jim Meyering  <jim@meyering.net>
66722
66723         * lib/utimens.c (gl_futimens): Rename from futimens,
66724         now that glibc-2.6 declares futimens.
66725         * lib/utimens.h: Likewise.
66726
66727 2007-05-19  Bruno Haible  <bruno@clisp.org>
66728
66729         Avoid test failures on mingw.
66730         * tests/test-fprintf-posix.sh: Convert CR/LF to LF in output.
66731         * tests/test-printf-posix.sh: Likewise.
66732         * tests/test-vfprintf-posix.sh: Likewise.
66733         * tests/test-vprintf-posix.sh: Likewise.
66734
66735 2007-05-19  Bruno Haible  <bruno@clisp.org>
66736
66737         Fix *printf result for NaN, Inf, -0.0 on mingw.
66738         * m4/printf.m4 (gl_PRINTF_INFINITE): New macro.
66739         * lib/vasnprintf.c: Include math.h and isnan.h.
66740         (is_infinite_or_zero): New function.
66741         (VASNPRINTF): Fix also the handling of infinite or zero 'double'
66742         values in the %f, %F, %e, %E, %g, %G directives.
66743         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_INFINITE): New macro.
66744         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66745         gl_PRINTF_INFINITE and test its result. Invoke
66746         gl_PREREQ_VASNPRINTF_INFINITE.
66747         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66748         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66749         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66750         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66751         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66752         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66753         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66754         * doc/functions/fprintf.texi: Update.
66755         * doc/functions/printf.texi: Update.
66756         * doc/functions/snprintf.texi: Update.
66757         * doc/functions/sprintf.texi: Update.
66758         * doc/functions/vfprintf.texi: Update.
66759         * doc/functions/vprintf.texi: Update.
66760         * doc/functions/vsnprintf.texi: Update.
66761         * doc/functions/vsprintf.texi: Update.
66762
66763 2007-05-19  Bruno Haible  <bruno@clisp.org>
66764
66765         * lib/vasnprintf.c (convert_to_decimal): Add an extra_zeroes argument.
66766         (scale10_round_decimal_long_double): Inline scale10_round_long_double.
66767         Instead of multiplying with 10^k, set extra_zeroes to k.
66768         (scale10_round_long_double): Remove function.
66769
66770 2007-05-18  Bruno Haible  <bruno@clisp.org>
66771
66772         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Fix logic bug
66773         introduced on 2007-05-06.
66774
66775 2007-05-18  Bruno Haible  <bruno@clisp.org>
66776
66777         * tests/test-vasnprintf-posix.c (test_function): Also test the %e and
66778         %g directives.
66779         * tests/test-vasprintf-posix.c (test_function): Likewise.
66780         * tests/test-snprintf-posix.h (test_function): Likewise.
66781         * tests/test-sprintf-posix.h (test_function): Likewise.
66782
66783 2007-05-18  Bruno Haible  <bruno@clisp.org>
66784
66785         * tests/test-vasnprintf-posix.c (SIZEOF): New macro.
66786         (strmatch): New function.
66787         (test_function): Test the %f directive on numbers of various exponents.
66788         * tests/test-vasprintf-posix.c (SIZEOF): New macro.
66789         (strmatch): New function.
66790         (test_function): Test the %f directive on numbers of various exponents.
66791         * tests/test-snprintf-posix.h (strmatch): New function.
66792         (test_function): Test the %f directive on numbers of various exponents.
66793         * tests/test-sprintf-posix.h (strmatch): New function.
66794         (test_function): Test the %f directive on numbers of various exponents.
66795         * tests/test-snprintf-posix.c (SIZEOF): New macro.
66796         * tests/test-sprintf-posix.c (SIZEOF): New macro.
66797         * tests/test-vsnprintf-posix.c (SIZEOF): New macro.
66798         * tests/test-vsprintf-posix.c (SIZEOF): New macro.
66799
66800 2007-05-18  Bruno Haible  <bruno@clisp.org>
66801
66802         Add support for 'long double' number output.
66803         * m4/printf.m4 (gl_PRINTF_LONG_DOUBLE): New macro.
66804         * lib/vasnprintf.c: Include math.h and float+.h.
66805         (mp_limb_t): New type.
66806         (GMP_LIMB_BITS): New macro.
66807         (mp_twolimb_t): New type.
66808         (GMP_TWOLIMB_BITS): New macro.
66809         (mpn_t): New type.
66810         (multiply, divide, convert_to_decimal, decode_long_double,
66811         scale10_round_long_double, scale10_round_decimal_long_double,
66812         floorlog10l): New functions.
66813         (VASNPRINTF) [NEED_PRINTF_LONG_DOUBLE]: Implement 'long double' support
66814         for the %f, %F, %e, %E, %g, %G directives.
66815         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_LONG_DOUBLE): New macro.
66816         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
66817         gl_PRINTF_LONG_DOUBLE and test its result. Invoke
66818         gl_PREREQ_VASNPRINTF_LONG_DOUBLE.
66819         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
66820         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66821         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66822         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66823         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66824         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66825         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66826         * modules/fprintf-posix (Depends-on): Add frexpl-nolibm.
66827         * modules/snprintf-posix (Depends-on): Likewise.
66828         * modules/sprintf-posix (Depends-on): Likewise.
66829         * modules/vasnprintf-posix (Depends-on): Likewise.
66830         * modules/vasprintf-posix (Depends-on): Likewise.
66831         * modules/vfprintf-posix (Depends-on): Likewise.
66832         * modules/vsnprintf-posix (Depends-on): Likewise.
66833         * modules/vsprintf-posix (Depends-on): Likewise.
66834         * modules/vasnprintf (Files): Add lib/float+.h.
66835         * doc/functions/fprintf.texi: Update.
66836         * doc/functions/printf.texi: Update.
66837         * doc/functions/snprintf.texi: Update.
66838         * doc/functions/sprintf.texi: Update.
66839         * doc/functions/vfprintf.texi: Update.
66840         * doc/functions/vprintf.texi: Update.
66841         * doc/functions/vsnprintf.texi: Update.
66842         * doc/functions/vsprintf.texi: Update.
66843
66844 2007-05-18  Bruno Haible  <bruno@clisp.org>
66845
66846         * lib/vasnprintf.c (USE_SNPRINTF): Define to 0 on BeOS.
66847
66848 2007-05-18  Bruno Haible  <bruno@clisp.org>
66849
66850         * lib/vasnprintf.c (VASNPRINTF) [WIN32]: Use %I64d instead of %lld
66851         for printing 64-bit integers. Needed for mingw.
66852
66853 2007-05-18  Bruno Haible  <bruno@clisp.org>
66854
66855         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
66856         gl_FUNC_FREXPL_WORKS.
66857         * modules/printf-frexpl (Files): Add m4/frexpl.m4.
66858
66859 2007-05-18  Bruno Haible  <bruno@clisp.org>
66860
66861         * modules/frexpl-nolibm-tests: New file.
66862
66863         * modules/frexpl-nolibm: New file.
66864         * m4/frexpl.m4 (gl_FUNC_FREXPL_NO_LIBM): New macro.
66865
66866 2007-05-17  Paul Eggert  <eggert@cs.ucla.edu>
66867
66868         * lib/dirent_.h: Prefer #include_next <foo.h> to #include
66869         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66870         GCC 4.2, which otherwise issues a lot of warnings.
66871         * lib/iconv_.h, lib/locale_.h, lib/netinet_in_.h, lib/sys_select_.h:
66872         * lib/sys_socket_.h, lib/sys_stat_.h, lib/sysexits_.h, lib/unistd_.h:
66873         Likewise.
66874         * modules/fchdir (dirent.h): Substitute @HAVE_INCLUDE_NEXT@.
66875         * modules/iconv_open (iconv.h): Likewise.
66876         * modules/locale (locale.h): Likewise.
66877         * modules/netinet_in (netinet/in.h): Likewise.
66878         * modules/sys_select (sys_select.h): Likewise.
66879         * modules/sys_socket (sys/socket.h): Likewise.
66880         * modules/sys_stat (sys/stat.h): Likewise.
66881         * modules/sysexits (sysexits.h): Likewise.
66882         * modules/unistd (unistd.h): Likewise.
66883
66884 2007-05-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
66885
66886         * modules/closein-tests (Makefile.am): Distribute
66887         `test-closein.sh'.
66888
66889 2007-05-17  Bruno Haible  <bruno@clisp.org>
66890
66891         * tests/test-printf-posix.output: Renamed from
66892         tests/test-fprintf-posix.out.
66893         * modules/fprintf-posix-tests: Update.
66894         * modules/printf-posix-tests: Update.
66895         * modules/vfprintf-posix-tests: Update.
66896         * modules/vprintf-posix-tests: Update.
66897         * tests/test-fprintf-posix.sh: Update.
66898         * tests/test-printf-posix.sh: Update.
66899         * tests/test-vfprintf-posix.sh: Update.
66900         * tests/test-vprintf-posix.sh: Update.
66901         Reported by Ralf Wildenhues.
66902
66903 2007-05-16  Paul Eggert  <eggert@cs.ucla.edu>
66904
66905         * lib/fcntl_.h: Prefer #include_next <foo.h> to #include
66906         @ABSOLUTE_FOO_H@ if @HAVE_INCLUDE_NEXT@.  This works better with
66907         GCC 4.2, which otherwise issues a lot of warnings.
66908         * lib/inttypes_.h, lib/math_.h, lib/search_.h, lib/signal_.h:
66909         * lib/stdint_.h, lib/stdio_.h, lib/stdlib_.h, lib/string_.h:
66910         * lib/sys_time_.h, lib/time_.h, lib/wchar_.h, lib/wctype_.h: Likewise.
66911         * lib/stdlib_.h: Don't bother with #pragma GCC system_header, as
66912         it should no longer be needed.
66913         * lib/string_.h: Likewise.
66914         * modules/absolute-header (HAVE_INCLUDE_NEXT): New 'make' define.
66915         * modules/fcntl (fcntl.h): Substitute @HAVE_INCLUDE_NEXT@.
66916         * modules/inttypes (inttypes.h): Likewise.
66917         * modules/math (math.h): Likewise.
66918         * modules/search (search.h): Likewise.
66919         * modules/signal (signal.h): Likewise.
66920         * modules/stdint (stdint.h): Likewise.
66921         * modules/stdio (stdio.h): Likewise.
66922         * modules/stdlib (stdlib.h): Likewise.
66923         * modules/string (string.h): Likewise.
66924         * modules/sys_time (sys/time.h): Likewise.
66925         * modules/time (time.h): Likewise.
66926         * modules/wchar (wchar.h): Likewise.
66927         * modules/wctype (wtype.h): Likewise.
66928
66929 2007-05-16  Thien-Thi Nguyen  <ttn@gnuvola.org>  (tiny change)
66930
66931         * doc/gnulib-tool.texi (CVS Issues): Fix typo.
66932
66933 2007-05-13  Bruno Haible  <bruno@clisp.org>
66934
66935         * stpcpy.m4 (gl_FUNC_STPCPY): Require AC_C_RESTRICT.
66936         * stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
66937         * strsep.m4 (gl_FUNC_STRSEP): Likewise.
66938         * strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
66939         (gl_PREREQ_STRTOK_R): Don't require it here.
66940
66941 2007-05-13  Bruno Haible  <bruno@clisp.org>
66942
66943         * lib/stdlib_.h (mkdtemp, mkstemp): Comment out argument name. Needed
66944         when used in C++ mode.
66945
66946 2007-05-12  Bruno Haible  <bruno@clisp.org>
66947
66948         * lib/linebuffer.h: Tweak doc.
66949         * lib/linebuffer.c: Likewise.
66950
66951 2007-05-12  James Youngman  <jay@gnu.org>
66952
66953         * lib/linebuffer.c (readlinebuffer_delim): New function,
66954         like readlinebuffer, but use a caller-specified delimiter.
66955         (readlinebuffer): Just call readlinebuffer_delim with '\n'
66956         as the delimiter.
66957         * lib/linebuffer.h (readlinebuffer_delim): Declare it.
66958
66959 2007-05-12  Sergey Poznyakoff  <gray@gnu.org.ua>
66960
66961         * m4/openat.m4 (gl_FUNC_OPENAT): Do not require openat-die.
66962         * modules/openat (Files): Remove openat-die.c.
66963         (Depends-on): Add openat-die.
66964         * modules/openat-die: New module.
66965
66966 2007-05-06  Bruno Haible  <bruno@clisp.org>
66967
66968         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING, gl_VSNPRINTF_ZEROSIZE_C99):
66969         Update with info about Cygwin.
66970         * doc/functions/fprintf.texi: Update.
66971         * doc/functions/printf.texi: Update.
66972         * doc/functions/snprintf.texi: Update.
66973         * doc/functions/sprintf.texi: Update.
66974         * doc/functions/vfprintf.texi: Update.
66975         * doc/functions/vprintf.texi: Update.
66976         * doc/functions/vsnprintf.texi: Update.
66977         * doc/functions/vsprintf.texi: Update.
66978         Reported by Eric Blake.
66979
66980 2007-05-06  Bruno Haible  <bruno@clisp.org>
66981
66982         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_ZERO]: Perform the
66983         padding ourselves for the floating-point directives.
66984         * m4/printf.m4 (gl_PRINTF_FLAG_ZERO): New macro.
66985         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_ZERO): New macro.
66986         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
66987         gl_PRINTF_FLAG_ZERO and test its result. Invoke
66988         gl_PREREQ_VASNPRINTF_FLAG_ZERO.
66989         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
66990         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
66991         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
66992         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
66993         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
66994         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
66995         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
66996         * tests/test-snprintf-posix.h (test_function): Also check the width
66997         and some flags in the %f directive.
66998         * tests/test-sprintf-posix.h (test_function): Likewise.
66999         * tests/test-vasnprintf-posix.c (test_function): Likewise.
67000         * tests/test-vasprintf-posix.c (test_function): Likewise.
67001         * doc/functions/fprintf.texi: Update.
67002         * doc/functions/printf.texi: Update.
67003         * doc/functions/snprintf.texi: Update.
67004         * doc/functions/sprintf.texi: Update.
67005         * doc/functions/vfprintf.texi: Update.
67006         * doc/functions/vprintf.texi: Update.
67007         * doc/functions/vsnprintf.texi: Update.
67008         * doc/functions/vsprintf.texi: Update.
67009
67010 2007-05-06  Bruno Haible  <bruno@clisp.org>
67011
67012         * lib/vasnprintf.c (VASNPRINTF) [NEED_PRINTF_FLAG_GROUPING]: Don't
67013         pass the ' flag character to sprintf or snprintf.
67014         * m4/printf.m4 (gl_PRINTF_FLAG_GROUPING): New macro.
67015         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_FLAG_GROUPING): New macro.
67016         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67017         gl_PRINTF_FLAG_GROUPING and test its result. Invoke
67018         gl_PREREQ_VASNPRINTF_FLAG_GROUPING.
67019         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
67020         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Likewise.
67021         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
67022         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
67023         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
67024         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67025         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
67026         * tests/test-snprintf-posix.h (test_function): Also check the grouping
67027         flag.
67028         * tests/test-sprintf-posix.h (test_function): Likewise.
67029         * tests/test-vasnprintf-posix.c (test_function): Likewise.
67030         * tests/test-vasprintf-posix.c (test_function): Likewise.
67031         * doc/functions/fprintf.texi: Update.
67032         * doc/functions/printf.texi: Update.
67033         * doc/functions/snprintf.texi: Update.
67034         * doc/functions/sprintf.texi: Update.
67035         * doc/functions/vfprintf.texi: Update.
67036         * doc/functions/vprintf.texi: Update.
67037         * doc/functions/vsnprintf.texi: Update.
67038         * doc/functions/vsprintf.texi: Update.
67039
67040 2007-05-01  Bruno Haible  <bruno@clisp.org>
67041
67042         * tests/test-argp-2.sh (func_compare): Drop .exe suffix.
67043
67044 2007-05-03  Paul Eggert  <eggert@cs.ucla.edu>
67045
67046         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Use better
67047         comment for D_INO_IN_DIRENT.  Problem reported by James Youngman.
67048
67049 2007-05-02  Paul Eggert  <eggert@cs.ucla.edu>
67050
67051         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Test whether
67052         readdir returns garbage in d_ino.  Problem reported by Kaz Sasayama in
67053         <http://lists.gnu.org/archive/html/bug-gnulib/2007-05/msg00021.html>.
67054
67055 2007-05-02  Sergey Poznyakoff  <gray@gnu.org.ua>
67056
67057         * lib/argp-help.c (struct hol_entry): New member `ord'.
67058         (HOL_ENTRY_PTRCMP): Use ord for comparison
67059         (hol_sort): Initialize ord.
67060
67061 2007-05-01  Bruno Haible  <bruno@clisp.org>
67062
67063         * doc/functions/_Exit_C99.texi: Renamed from doc/functions/_Exit.texi.
67064         Reported by Eric Blake.
67065         * doc/gnulib.texi (Function Substitutes): Update.
67066
67067 2007-05-01  Bruno Haible  <bruno@clisp.org>
67068
67069         * doc/functions.texi: Remove file, now redundant through
67070         doc/functions/*.texi.
67071
67072 2007-05-01  Bruno Haible  <bruno@clisp.org>
67073
67074         * modules/argp (Depends-on): Add sleep.
67075
67076 2007-05-01  Bruno Haible  <bruno@clisp.org>
67077
67078         * modules/sleep-tests: New file.
67079         * tests/test-sleep.c: New file.
67080
67081         * modules/sleep: New file.
67082         * lib/sleep.c: New file.
67083         * m4/sleep.m4: New file.
67084         * lib/unistd_.h (sleep): New declaration.
67085         * m4/unistd_h.m4 (gl_UNISTD_H_DEFAULTS): Initialize GNULIB_SLEEP,
67086         HAVE_SLEEP.
67087         * modules/unistd (Makefile.am): Substitute GNULIB_SLEEP, HAVE_SLEEP.
67088         * doc/functions/sleep.texi: Document the sleep module.
67089
67090 2007-05-01  Bruno Haible  <bruno@clisp.org>
67091
67092         * lib/sigprocmask.h: Remove file.
67093         * lib/signal_.h: Incorporate the previous contents of sigprocmask.h.
67094         * lib/sigprocmask.c: Include <signal.h> instead of sigprocmask.h.
67095         * m4/signal_h.m4 (gl_SIGNAL_H_DEFAULTS): Substitute GNULIB_SIGPROCMASK,
67096         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T.
67097         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Require
67098         gl_SIGNAL_H_DEFAULTS. Set HAVE_POSIX_SIGNALBLOCKING as a shell variable.
67099         (gl_PREREQ_SIGPROCMASK): Require gl_SIGNAL_H_DEFAULTS. Set
67100         HAVE_SIGSET_T as a shell variable.
67101         * modules/signal (Makefile.am): Substitute GNULIB_SIGPROCMASK,
67102         HAVE_POSIX_SIGNALBLOCKING, HAVE_SIGSET_T into signal.h.
67103         * modules/sigprocmask (Files): Remove lib/sigprocmask.h.
67104         (Depends-on): Add signal. Remove verify.
67105         (configure.ac): Invoke gl_SIGNAL_MODULE_INDICATOR.
67106         (Include): Mention <signal.h> instead of sigprocmask.h.
67107         * NEWS: Mention the change.
67108         * lib/fatal-signal.c: Don't include sigprocmask.h.
67109
67110 2007-05-01  Bruno Haible  <bruno@clisp.org>
67111
67112         * modules/signal: New file.
67113         * lib/signal_.h: New file.
67114         * m4/signal_h.m4: New file.
67115
67116 2007-05-01  Bruno Haible  <bruno@clisp.org>
67117
67118         * lib/wctype_.h: Test HAVE_ISWCNTRL at configure time.
67119         * m4/wctype.m4 (gl_WCTYPE_H): Substitute HAVE_ISWCNTRL.
67120         * modules/wctype (Makefile.am): Substitute HAVE_ISWCNTRL instead of
67121         HAVE_WCTYPE_CTMP_BUG into wctype.h.
67122
67123 2007-05-01  Bruno Haible  <bruno@clisp.org>
67124
67125         * lib/sys_stat_.h: Test HAVE_LSTAT, HAVE_DECL_MKDIR, HAVE_IO_H at
67126         configure time.
67127         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Substitute HAVE_LSTAT,
67128         HAVE_DECL_MKDIR, HAVE_IO_H via AC_SUBST.
67129         * modules/sys_stat (Makefile.am): Substitute their values into
67130         sys/stat.h.
67131
67132 2007-05-01  Bruno Haible  <bruno@clisp.org>
67133
67134         * lib/glob_.h: Test HAVE_SYS_CDEFS_H at configure time.
67135         * m4/glob.m4 (gl_PREREQ_GLOB): Substitute HAVE_SYS_CDEFS_H via AC_SUBST.
67136         * modules/glob (Makefile.am): Put HAVE_SYS_CDEFS_H value into glob.h.
67137
67138 2007-05-01  Bruno Haible  <bruno@clisp.org>
67139
67140         * doc/header/assert.texi: Undo last change: don't mention the gnulib
67141         'assert' module here.
67142
67143 2007-05-01  Bruno Haible  <bruno@clisp.org>
67144
67145         * doc/functions/*.texi: New files.
67146         * doc/functions/google-ranking.txt: New file.
67147         * doc/gnulib.texi (Function Substitutes): New chapter.
67148         (ctime, inet_ntoa): Remove sections.
67149         * doc/ctime.texi: Remove file.
67150         * doc/inet_ntoa.texi: Remove file.
67151         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Update
67152         dependencies.
67153         (%.info): New rule, specifying a --reference-limit.
67154
67155 2007-05-01  Bruno Haible  <bruno@clisp.org>
67156
67157         * MODULES.html.sh (posix_functions): Remove 'exec', 'toc'.
67158
67159 2007-05-01  Bruno Haible  <bruno@clisp.org>
67160
67161         * modules/mkdir (Depends-on): Add sys_stat, because sys_stat provides
67162         the portability of 'mkdir' to mingw systems.
67163
67164 2007-05-01  Bruno Haible  <bruno@clisp.org>
67165
67166         * doc/headers/google-ranking.txt: New file.
67167
67168 2007-04-30  Eric Blake  <ebb9@byu.net>
67169
67170         Prefer fseeko to fseek.
67171         * modules/getpass (Depends-on): Add fseeko.
67172         * lib/getpass.c (getpass): Use fseeko, not fseek.
67173
67174 2007-04-30  Sergey Poznyakoff  <gray@gnu.org.ua>
67175
67176         * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm
67177         assumes the sorting is stable, while most qsort implementations
67178         are not.  Use argument addresses to ensure they never compare as
67179         equal.
67180
67181         * tests/test-argp-2.sh (usage-indent test): Fix output
67182         (func_compare): Restore diff options
67183         * tests/test-argp.c: Restore #include "progname.h"
67184
67185 2007-04-29  Bruno Haible  <bruno@clisp.org>
67186
67187         * m4/printf.m4 (gl_VSNPRINTF_ZEROSIZE_C99): New macro.
67188         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67189         gl_VSNPRINTF_ZEROSIZE_C99. Test gl_cv_func_vsnprintf_zerosize_c99.
67190         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
67191         * modules/snprintf-posix-tests (Files): Add tests/test-snprintf.c.
67192         (configure.ac): Define CHECK_SNPRINTF_POSIX.
67193         (TESTS, check_PROGRAMS): Add test-snprintf.
67194         * modules/vsnprintf-posix-tests (Files): Add tests/test-vsnprintf.c.
67195         (configure.ac): Define CHECK_VSNPRINTF_POSIX.
67196         (TESTS, check_PROGRAMS): Add test-vsnprintf.
67197         * tests/test-snprintf.c (main) [!CHECK_SNPRINTF_POSIX]: Disable
67198         assertions that fail on HP-UX, OSF/1, or IRIX.
67199         * tests/test-vsnprintf.c (main) [!CHECK_VSNPRINTF_POSIX]: Likewise.
67200
67201 2007-04-29  Bruno Haible  <bruno@clisp.org>
67202
67203         * MODULES.html.sh (posix_functions): Remove 'contents'.
67204
67205 2007-04-29  Karl Berry  <karl@gnu.org>
67206
67207         * config/srclist.txt (gendocs_template_min): new entry.
67208
67209 2007-04-29  Bruno Haible  <bruno@clisp.org>
67210
67211         Work around fpurge bug on BSD systems.
67212         * modules/fpurge (Makefile.am): Compile fpurge.c unconditionally.
67213         * m4/fpurge.m4 (gl_FUNC_FPURGE): Don't invoke AC_LIBOBJ.
67214         * lib/fpurge.h (fpurge): Don't handle __fpurge wrapper here. Define
67215         fpurge to rpl_fpurge if the system already has this function.
67216         * lib/fpurge.c (fpurge): Handle also the __fpurge wrapper case and
67217         the case where the system already has this function. Correct invariants
67218         on BSD systems.
67219         * lib/fseeko.c (rpl_fseeko): Update recognition of preceding fflush on
67220         BSD systems.
67221
67222 2007-04-29  Sergey Poznyakoff  <gray@gnu.org.ua>
67223
67224         * lib/argp-help.c (hol_cluster_cmp): Reverse comparison.  Change
67225         proposed by Sven Verdoolaege.
67226
67227         * tests/test-argp.c: Fix option ordering.  Test deeply clustered
67228         options.
67229         * tests/test-argp-2.sh (func_compare): Use diff instead of cmp.
67230         (usage and help tests): Update
67231
67232 2007-04-29  Bruno Haible  <bruno@clisp.org>
67233
67234         * tests/test-fflush.c (main): Use a file of size 17, not 10.
67235         Print more information in case of failure. Disable a test on BeOS.
67236
67237 2007-04-29  Bruno Haible  <bruno@clisp.org>
67238
67239         * tests/**/test-*.[hc] (ASSERT): Use fprintf to show the line number.
67240         This helps debugging on systems on which no gdb is available.
67241
67242 2007-04-29  Bruno Haible  <bruno@clisp.org>
67243
67244         * lib/freading.h: Improve comments.
67245         * lib/fwriting.h: Likewise.
67246         * tests/test-freading.c (main): Don't check freading immediately after
67247         repositioning. Needed for glibc.
67248
67249 2007-04-29  Bruno Haible  <bruno@clisp.org>
67250
67251         * lib/freading.c (freading): Trivial simplification.
67252
67253 2007-04-28  Bruno Haible  <bruno@clisp.org>
67254
67255         * tests/test-fwriting.c (main): Also test the interaction between
67256         fflush and fwriting.
67257         * modules/fwriting-tests (Depends-on): Add fflush.
67258
67259         * tests/test-freading.c (main): Also test the interaction between
67260         fflush and freading.
67261         * modules/freading-tests (Depends-on): Add fflush.
67262
67263 2007-04-28  Bruno Haible  <bruno@clisp.org>
67264
67265         * lib/stdio_.h (fseek, ftell): Provide link warnings suggesting to use
67266         fseeko and ftello.
67267         Suggested by Eric Blake.
67268
67269 2007-04-28  Jim Meyering  <jim@meyering.net>
67270
67271         Avoid false-negative in gl_STDINT_H's C99 conformance test.
67272         * m4/stdint.m4 (gl_STDINT_H): When checking whether stdint.h conforms
67273         to C99, include all of gl_STDINT_INCLUDES, not just <stddef.h>.
67274
67275 2007-04-27  Eric Blake  <ebb9@byu.net>
67276
67277         * doc/headers/assert.texi (assert.h): Document assert module use.
67278
67279 2007-04-27  Bruno Haible  <bruno@clisp.org>
67280
67281         * doc/headers/*.texi: New files.
67282         * doc/gnulib.texi (Header File Substitutes): New chapter.
67283         * doc/Makefile (gnulib.info, gnulib.html, gnulib.dvi): Specify
67284         dependencies.
67285         (standards.info ,standards.html, standards.dvi): Update dependencies.
67286         (mostlyclean, clean): New targets.
67287
67288 2007-04-27  Bruno Haible  <bruno@clisp.org>
67289
67290         * lib/sysexits_.h: Renamed from lib/sysexit_.h.
67291         * modules/sysexits (Files, Makefile.am): Update.
67292
67293         * lib/sys_socket_.h: Renamed from lib/socket_.h.
67294         * modules/sys_socket (Files, Makefile.am): Update.
67295
67296         * lib/sys_stat_.h: Renamed from lib/stat_.h.
67297         * modules/sys_stat (Files, Makefile.am): Update.
67298
67299 2007-04-27  Eric Blake  <ebb9@byu.net>
67300
67301         * lib/freading.h: Improve comments.
67302         * lib/fwriting.h: Likewise.
67303         * lib/fflush.c: Likewise.
67304
67305         Fix closein for mingw.
67306         * modules/closein-tests: Add tests for closein.
67307         * tests/test-closein.c: New file.
67308         * tests/test-closein.sh: Likewise.
67309         * lib/unistd_.h [!SEEK_CUR]: Mingw also needs stdlib.h for _exit.
67310         * lib/closein.c (close_stdin): Don't fflush non-seekable streams.
67311
67312 2007-04-27  Bruno Haible  <bruno@clisp.org>
67313
67314         * lib/inttypes_.h [_DECC]: Don't use #include_next if the compiler
67315         version is < 6.
67316         * lib/math_.h [__DECC]: Likewise.
67317         * lib/stdio_.h [__DECC]: Likewise.
67318         * lib/stdlib_.h [__DECC]: Likewise.
67319         * lib/string_.h [__DECC]: Likewise.
67320         * lib/time_.h [__DECC]: Likewise.
67321         * lib/wchar_.h [__DECC]: Likewise.
67322         * lib/wctype_.h [__DECC]: Likewise.
67323
67324 2007-04-27  Bruno Haible  <bruno@clisp.org>
67325
67326         * tests/test-fbufmode.c (main): Relax test, to avoid failure on mingw.
67327
67328 2007-04-27  Bruno Haible  <bruno@clisp.org>
67329
67330         * lib/fflush.c: Add comments.
67331         * modules/fpurge-tests (Depends-on): Add fflush.
67332         * modules/freadable-tests (Depends-on): Likewise.
67333         * modules/fwritable-tests (Depends-on): Likewise.
67334
67335 2007-04-27  Charles Wilson  <libtool@cwilson.fastmail.fm>
67336
67337         * m4/argz.m4 (gl_FUNC_ARGZ): Use !HAVE_WORKING_ARGZ instead of
67338         SYSTEM_ARGZ_IS_BROKEN.  Also, minor stylistic improvements.
67339         Report by Bruno Haible <bruno@clisp.org>.
67340
67341 2007-04-26  Eric Blake  <ebb9@byu.net>
67342
67343         Fix fflush on mingw.
67344         * modules/fflush (Depends-on): Add freading.
67345         * lib/fflush.c (rpl_fflush): Use freading to avoid losing buffered
67346         but unread data.
67347
67348 2007-04-26  Eric Blake  <ebb9@byu.net>
67349         and Bruno Haible  <bruno@clisp.org>
67350
67351         Implement freading and fwriting.
67352         * lib/freading.c: New file.
67353         * lib/freading.h: Likewise.
67354         * m4/freading.m4: Likewise.
67355         * modules/freading: Likewise.
67356         * modules/freading-tests: Likewise.
67357         * tests/test-freading.c: Likewise.
67358         * lib/fwriting.c: New file.
67359         * lib/fwriting.h: Likewise.
67360         * m4/fwriting.m4: Likewise.
67361         * modules/fwriting: Likewise.
67362         * modules/fwriting-tests: Likewise.
67363         * tests/test-fwriting.c: Likewise.
67364         * MODULES.html.sh (File stream based Input/Output): Mention them.
67365
67366 2007-04-26  Bruno Haible  <bruno@clisp.org>
67367
67368         * lib/stdio_.h (fseeko, ftello): Check that off_t has the same size as
67369         'long' when we assume it.
67370         Suggested by Eric Blake.
67371
67372 2007-04-26  Bruno Haible  <bruno@clisp.org>
67373
67374         Ensure fseeko, ftello are declared on glibc systems.
67375         * modules/fflush (configure.ac-early): Require AC_FUNC_FSEEKO.
67376         * modules/fseeko (configure.ac-early): Likewise.
67377         * modules/ftello (configure.ac-early): Likewise.
67378         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Don't define HAVE_FSEEKO, rely on
67379         AC_FUNC_FSEEKO for this.
67380         * m4/fseeko.m4 (gl_FUNC_FSEEKO): Inline gl_CHECK_FSEEKO.
67381         (gl_CHECK_FSEEKO): Remove macro.
67382
67383 2007-04-26  Bruno Haible  <bruno@clisp.org>
67384
67385         * tests/test-fflush.c (main): Also check the ftell result after
67386         fflush and fseek/fseeko.
67387         * lib/fflush.c (rpl_fflush): For BSD implementations, update the
67388         file descriptor position cache in the stream.
67389         * lib/fseeko.c (rpl_fseeko): Likewise.
67390
67391 2007-04-26  Bruno Haible  <bruno@clisp.org>
67392
67393         * modules/fflush-tests (Depends-on): Add fseeko.
67394
67395 2007-04-25  Charles Wilson  <libtool@cwilson.fastmail.fm>
67396             Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
67397
67398         * lib/argz_.h: ensure error_t definition is obtained in same
67399         mechanism system argz.h would have.
67400         * m4/argz.m4 (gl_FUNC_ARGZ): add new test to check if $host's
67401         argz facilities are known bad.  Err on the side of caution if
67402         cross-compiling.
67403
67404 2007-04-25  Eric Blake  <ebb9@byu.net>
67405
67406         * lib/fpurge.c (includes): Use stdlib.h for free.
67407         * tests/test-fflush.c (main): Also test fflush-fseeko.
67408
67409 2007-04-25  Bruno Haible  <bruno@clisp.org>
67410
67411         Make fflush+fseek POSIX-compliant on FreeBSD and MacOS X.
67412         * lib/fseeko.c: New file.
67413         * lib/stdio_.h: Include <sys/types.h> when off_t is needed.
67414         (fseeko, fseek): Define to replacements if REPLACE_FFLUSH.
67415         * m4/fseeko.m4 (gl_CHECK_FSEEKO): New macro, extracted from
67416         gl_FUNC_FSEEKO.
67417         (gl_FUNC_FSEEKO): Invoke it.
67418         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Arrange to compile fseeko.c. Invoke
67419         gl_CHECK_FSEEKO. Define HAVE_FSEEKO.
67420         * modules/fflush (Files): Add lib/fseeko.c, m4/fseeko.m4.
67421
67422 2007-04-25  Bruno Haible  <bruno@clisp.org>
67423
67424         * modules/fflush (Depends-on): Add ftello.
67425
67426 2007-04-25  Bruno Haible  <bruno@clisp.org>
67427
67428         * modules/ftello-tests: New file.
67429         * tests/test-ftello.c: New file.
67430
67431         * modules/ftello: New file.
67432         * m4/ftello.m4: New file.
67433         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FTELLO,
67434         HAVE_FTELLO.
67435         * lib/stdio_.h (ftello): New declaration.
67436         * modules/stdio (Makefile.am): Substitute also GNULIB_FTELLO,
67437         HAVE_FTELLO.
67438
67439 2007-04-25  Bruno Haible  <bruno@clisp.org>
67440
67441         * modules/fseeko-tests: New file.
67442         * tests/test-fseeko.c: New file.
67443
67444         * modules/fseeko: New file.
67445         * m4/fseeko.m4: New file.
67446         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FSEEKO,
67447         HAVE_FSEEKO.
67448         * lib/stdio_.h (fseeko): New declaration.
67449         * modules/stdio (Makefile.am): Substitute also GNULIB_FSEEKO,
67450         HAVE_FSEEKO.
67451
67452 2007-04-25  Bruno Haible  <bruno@clisp.org>
67453
67454         * lib/stdio_.h (fflush): Add support for GNULIB_POSIXCHECK.
67455
67456 2007-04-25  Bruno Haible  <bruno@clisp.org>
67457
67458         * lib/unistd_.h: Include <stdio.h> if needed to get the SEEK_* macros.
67459         * tests/test-stdio.c: Check that the various SEEK_* macros are defined.
67460         * tests/test-unistd.c: Likewise.
67461         * tests/test-fcntl.c: Likewise.
67462
67463 2007-04-23  Eric Blake  <ebb9@byu.net>
67464
67465         * lib/fflush.c: Fix missing include.
67466         Reported by Bruno Haible.
67467
67468 2007-04-23  Bruno Haible  <bruno@clisp.org>
67469
67470         * lib/fpurge.c (fpurge) [glibc, BSD]: Free a malloc()ed ungetc buffer.
67471         Reported by Eric Blake.
67472
67473 2007-04-23  Bruno Haible  <bruno@clisp.org>
67474
67475         * lib/fbufmode.c (fbufmode): Port to Solaris/SPARC64.
67476
67477 2007-04-23  Bruno Haible  <bruno@clisp.org>
67478
67479         * lib/fseterr.c (fseterr): Don't hardcode the value of _IOERR.
67480
67481 2007-04-23  Bruno Haible  <bruno@clisp.org>
67482
67483         * tests/test-fbufmode.c (main): Be prepared to a failure of setvbuf.
67484         Needed on HP-UX 11.
67485
67486 2007-04-16  Eric Blake  <ebb9@byu.net>
67487
67488         Make fflush rely on fpurge.
67489         * lib/fflush.c (rpl_fflush): Rely on fpurge module, rather than
67490         open coding all variants.
67491         * modules/fflush (Depends-on): Add fpurge and unistd.
67492         * modules/fflush-tests (Depends-on): Unistd is no longer extra.
67493         * m4/fflush.m4 (gl_REPLACE_FFLUSH): Simplify.
67494
67495         Fix --with-tests compilation on cygwin.
67496         * modules/argmatch-tests (Makefile.am): List gnulib library first
67497         in LDADD.
67498         * modules/argp-tests (Makefile.am): Likewise.
67499         * modules/array-list-tests (Makefile.am): Likewise.
67500         * modules/array-oset-tests (Makefile.am): Likewise.
67501         * modules/avltree-list-tests (Makefile.am): Likewise.
67502         * modules/avltree-oset-tests (Makefile.am): Likewise.
67503         * modules/avltreehash-list-tests (Makefile.am): Likewise.
67504         * modules/carray-list-tests (Makefile.am): Likewise.
67505         * modules/dirname-tests (Makefile.am): Likewise.
67506         * modules/frexp-tests (Makefile.am): Likewise.
67507         * modules/isnanl-tests (Makefile.am): Likewise.
67508         * modules/linked-list-tests (Makefile.am): Likewise.
67509         * modules/linkedhash-list-tests (Makefile.am): Likewise.
67510         * modules/lock-tests (Makefile.am): Likewise.
67511         * modules/rbtree-list-tests (Makefile.am): Likewise.
67512         * modules/rbtree-oset-tests (Makefile.am): Likewise.
67513         * modules/rbtreehash-list-tests (Makefile.am): Likewise.
67514         * modules/tls-tests (Makefile.am): Likewise.
67515         * modules/tsearch-tests (Makefile.am): Likewise.
67516         * modules/xvasprintf-tests (Makefile.am): Likewise.
67517
67518         Fix fpurge for cygwin.
67519         * lib/fpurge.c (fpurge): Fix order of operation flub, and return a
67520         value.
67521         * modules/fpurge-tests (Depends-on): Clean up trash.
67522
67523 2007-04-16  Simon Josefsson  <simon@josefsson.org>
67524
67525         * lib/gc-libgcrypt.c (gc_hash_open): Shut up compiler warnings.
67526
67527         * m4/autobuild.m4: Re-indent.
67528
67529 2007-04-13  Bruno Haible  <bruno@clisp.org>
67530
67531         * modules/fpurge-tests: New file.
67532         * tests/test-fpurge.c: New file.
67533
67534         * modules/fpurge: New file.
67535         * lib/fpurge.h: New file.
67536         * lib/fpurge.c: New file.
67537         * m4/fpurge.m4: New file.
67538
67539 2007-04-13  Bruno Haible  <bruno@clisp.org>
67540
67541         * modules/fbufmode-tests: New file.
67542         * tests/test-fbufmode.c: New file.
67543
67544         * modules/fbufmode: New file.
67545         * lib/fbufmode.h: New file.
67546         * lib/fbufmode.c: New file.
67547         * m4/fbufmode.m4: New file.
67548
67549 2007-04-13  Bruno Haible  <bruno@clisp.org>
67550
67551         * modules/fwritable-tests: New file.
67552         * tests/test-fwritable.c: New file.
67553
67554         * modules/fwritable: New file.
67555         * lib/fwritable.h: New file.
67556         * lib/fwritable.c: New file.
67557         * m4/fwritable.m4: New file.
67558
67559 2007-04-13  Bruno Haible  <bruno@clisp.org>
67560
67561         * modules/freadable-tests: New file.
67562         * tests/test-freadable.c: New file.
67563
67564         * modules/freadable: New file.
67565         * lib/freadable.h: New file.
67566         * lib/freadable.c: New file.
67567         * m4/freadable.m4: New file.
67568
67569 2007-04-13  Bruno Haible  <bruno@clisp.org>
67570
67571         * modules/fflush-tests (Makefile.am): Remove EXTRA_DIST. Augment
67572         MOSTLYCLEANFILES.
67573
67574 2007-04-13  Paul Eggert  <eggert@cs.ucla.edu>
67575
67576         * build-aux/bootstrap (gnulib_tool_option_extras): New var, used by
67577         gzip bootstrap.conf to avoid dragging in i18n machinery.
67578         (gnulib_tool_option): Use it.
67579
67580 2007-04-13  Bruno Haible  <bruno@clisp.org>
67581
67582         * tests/test-vasnprintf-posix.c (test_function): Add tests for %f and
67583         %F directives.
67584         * tests/test-vasprintf-posix.c (test_function): Likewise.
67585         * tests/test-snprintf-posix.h (test_function): Likewise.
67586         * tests/test-sprintf-posix.h (test_function): Likewise.
67587         * tests/test-fprintf-posix.h (test_function): Likewise.
67588         * tests/test-printf-posix.h (test_function): Likewise.
67589         * tests/test-fprintf-posix.out: Likewise.
67590
67591 2007-04-13  Bruno Haible  <bruno@clisp.org>
67592
67593         * modules/lock-tests (configure.ac): For LIBSCHED, try also -lposix4.
67594         * modules/tls-tests (configure.ac): Likewise.
67595         Reported by Arto C. Nirkko <anirkko@insel.ch>.
67596
67597 2007-04-13  Bruno Haible  <bruno@clisp.org>
67598
67599         * lib/tls.c (glthread_tls_get): Fix return type.
67600         Patch by Arto C. Nirkko <anirkko@insel.ch>.
67601
67602 2007-04-12  Eric Blake  <ebb9@byu.net>
67603
67604         * modules/gettime (Depends-on): Remove gettime.
67605         Reported by Dmitry V. Levin.
67606
67607 2007-04-12  Bruno Haible  <bruno@clisp.org>
67608
67609         * modules/fflush (Include): Mention <stdio.h>.
67610         * modules/strtoimax (Include): Mention <inttypes.h>.
67611         * modules/strtoumax (Include): Likewise.
67612
67613 2007-04-12  Eric Blake  <ebb9@byu.net>
67614
67615         * .cvsignore: New file.
67616         * .gitignore: Likewise.
67617
67618 2007-04-12  Bruno Haible  <bruno@clisp.org>
67619
67620         * modules/iconv-tests (test_iconv_LDADD): Mention -liconv after LDADD,
67621         not before, since $(LDADD) often contains libgnu.a.
67622         * modules/striconv-tests (test_striconv_LDADD): Likewise.
67623         * modules/striconveh-tests (test_striconveh_LDADD): Likewise.
67624         * modules/striconveha-tests (test_striconveha_LDADD): Likewise.
67625         Needed on Cygwin.
67626
67627 2007-04-12  Eric Blake  <ebb9@byu.net>
67628
67629         Work around glibc's failure to flush stdin on fclose.
67630         * lib/closein.c (close_stdin): Flush stdin before closing.
67631
67632         Work around glibc's failure to reset seekable stdin on exit.
67633         * modules/closein: New module.
67634         * lib/closein.c: New file.
67635         * lib/closein.h: Likewise.
67636         * m4/closein.m4: Likewise.
67637         * MODULES.html.sh (File stream based Input/Output): Document it.
67638
67639 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67640
67641         * gnulib-tool: Rename generated 'autobuild' script to
67642         'do-autobuild' in --create-megatestdir output.
67643
67644         * doc/gnulib.texi (Build robot for gnulib): Fix.
67645
67646 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67647
67648         * modules/sysexits (Depends-on): Add absolute-header.
67649
67650 2007-04-12  Eric Blake  <ebb9@byu.net>
67651
67652         No need to preserve errno on success.
67653         * lib/fflush.c (rpl_fflush): Simplify errno tracking.
67654         Reported by Bruno Haible.
67655
67656 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67657
67658         * MODULES.html.sh (Support for maintaining and releasing
67659         projects): Add autobuild.  Suggested by Eric Blake <ebb9@byu.net>.
67660
67661 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67662
67663         * gnulib-tool (func_modules_add_dummy): Respect --avoid=dummy.
67664
67665 2007-04-12  Simon Josefsson  <simon@josefsson.org>
67666
67667         * modules/autobuild: New module.
67668
67669         * m4/autobuild.m4: New file.
67670
67671 2007-04-11  Bruno Haible  <bruno@clisp.org>
67672
67673         * lib/vasnprintf.c (VASNPRINTF): Implement the %F directive using the
67674         %f directive, if NEED_PRINTF_DIRECTIVE_F is defined.
67675         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_F): New macro.
67676         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_F): New macro.
67677         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke
67678         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67679         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67680         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Invoke
67681         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67682         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67683         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Invoke
67684         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67685         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67686         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Invoke
67687         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67688         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67689         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Invoke
67690         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67691         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67692         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Invoke
67693         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67694         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67695         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Invoke
67696         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67697         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67698         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Invoke
67699         gl_PRINTF_DIRECTIVE_F. Test gl_cv_func_printf_directive_f. Invoke
67700         gl_PREREQ_VASNPRINTF_DIRECTIVE_F for the replacement.
67701         Reported by Eric Blake.
67702
67703 2007-04-11  Bruno Haible  <bruno@clisp.org>
67704
67705         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Fix test. It always failed.
67706
67707 2007-04-10  Bruno Haible  <bruno@clisp.org>
67708
67709         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct result
67710         for NaN and Infinity. Needed on FreeBSD 6.1.
67711         * tests/test-vasnprintf-posix.c (test_function): Undo last change
67712         regarding results for "%010a" of Infinity and NaN.
67713         * tests/test-vasprintf-posix.c (test_function): Likewise.
67714         * tests/test-snprintf-posix.h (test_function): Likewise.
67715         * tests/test-sprintf-posix.h (test_function): Likewise.
67716         * tests/test-fprintf-posix.h (test_function): Likewise.
67717         * tests/test-printf-posix.h (test_function): Likewise.
67718         * tests/test-fprintf-posix.out: Likewise.
67719
67720 2007-04-10  Bruno Haible  <bruno@clisp.org>
67721
67722         * modules/locale-tests: New file.
67723         * tests/test-locale.c: New file.
67724
67725         * modules/locale: New file.
67726         * lib/locale_.h: New file.
67727         * m4/locale_h.m4: New file.
67728
67729 2007-04-10  Paul Eggert  <eggert@cs.ucla.edu>
67730             Bruno Haible  <bruno@clisp.org>
67731
67732         * m4/signbit.m4 (gl_SIGNBIT): When the sign bit position could not
67733         be determined, test for availability of the copysignf, copysign,
67734         copysignl functions.
67735         * lib/signbitf.c (gl_signbitf): Use copysignf if available in libc.
67736         * lib/signbitd.c (gl_signbitd): Use copysign if available in libc.
67737         * lib/signbitl.c (gl_signbitl): Use copysignl if available in libc.
67738
67739 2007-04-09  Eric Blake  <ebb9@byu.net>
67740
67741         * lib/stdio_.h [REPLACE_FFLUSH]: Declare rpl_fflush.
67742         * modules/stdio (Makefile.am): Support fflush.
67743         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Likewise.
67744         * modules/fflush: New file.
67745         * lib/fflush.c: Likewise.
67746         * m4/fflush.m4: Likewise.
67747         * modules/fflush-tests: New test.
67748         * tests/test-fflush.c: Likewise.
67749         * MODULES.html.sh (Input/output <stdio.h>): Document new module.
67750
67751 2007-04-06  Bruno Haible  <bruno@clisp.org>
67752
67753         * lib/vasnprintf.c: Include <math.h>. Don't include float+.h.
67754         (VASNPRINTF): Use signbit for faster determination whether to print a
67755         minus sign.
67756         * modules/vasnprintf (Files): Remove lib/float+.h.
67757         * modules/fprintf-posix (Depends-on): Add signbit.
67758         * modules/snprintf-posix (Depends-on): Likewise.
67759         * modules/sprintf-posix (Depends-on): Likewise.
67760         * modules/vasnprintf-posix (Depends-on): Likewise.
67761         * modules/vasprintf-posix (Depends-on): Likewise.
67762         * modules/vfprintf-posix (Depends-on): Likewise.
67763         * modules/vsnprintf-posix (Depends-on): Likewise.
67764         * modules/vsprintf-posix (Depends-on): Likewise.
67765
67766 2007-04-06  Bruno Haible  <bruno@clisp.org>
67767
67768         * tests/test-frexp.c (main): Test also the sign bit of zero results.
67769         * tests/test-frexpl.c (main): Likewise.
67770         * tests/test-ldexpl.c (main): Likewise.
67771         * modules/frexp-tests (Depends-on): Add signbit.
67772         * modules/frexpl-tests (Depdends-on): Likewise.
67773         * modules/ldexpl-tests (Depdends-on): Likewise.
67774
67775 2007-04-06  Bruno Haible  <bruno@clisp.org>
67776
67777         * modules/signbit-tests: New file.
67778         * tests/test-signbit.c: New file.
67779
67780         * modules/signbit: New file.
67781         * lib/signbitf.c: New file.
67782         * lib/signbitd.c: New file.
67783         * lib/signbitl.c: New file.
67784         * m4/signbit.m4: New file.
67785         * lib/math_.h (gl_signbitf, gl_signbitd, gl_signbitl): New declarations.
67786         (signbit): New macro.
67787         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_SIGNBIT and
67788         REPLACE_SIGNBIT.
67789         * modules/math (Makefile.am): Substibute also GNULIB_SIGNBIT and
67790         REPLACE_FREXPL into math.h.
67791
67792 2007-04-06  Bruno Haible  <bruno@clisp.org>
67793
67794         * modules/isnanf-nolibm-tests: New file.
67795         * tests/test-isnanf.c: New file.
67796
67797         * modules/isnanf-nolibm: New file.
67798         * lib/isnanf.h: New file.
67799         * lib/isnanf.c: New file.
67800         * lib/isnan.c: Consider the USE_FLOAT macro.
67801         * m4/isnanf.m4: New file.
67802
67803 2007-04-06  Bruno Haible  <bruno@clisp.org>
67804
67805         * modules/gettext-h (configure.ac): AC_SUBST LIBINTL and LTLIBINTL.
67806         (Link): New section.
67807
67808         * modules/canonicalize-lgpl-tests (Makefile.am): Undo last change.
67809
67810 2007-04-06  Bruno Haible  <bruno@clisp.org>
67811
67812         Assume the 'long double' type.
67813         * m4/longdouble.m4: Remove file.
67814         * config/srclist.txt: Don't mention longdouble.m4.
67815         * lib/allocsa.h: Assume HAVE_LONG_DOUBLE to be true.
67816         * lib/float+.h: Likewise.
67817         * lib/frexp.c: Likewise.
67818         * lib/printf-args.h: Likewise.
67819         * lib/printf-args.c: Likewise.
67820         * lib/printf-frexp.c: Likewise.
67821         * lib/printf-parse.c: Likewise.
67822         * lib/vasnprintf.c: Likewise.
67823         * m4/allocsa.m4: Remove gt_TYPE_LONGDOUBLE invocation.
67824         * m4/intl.m4: Likewise.
67825         * m4/isnanl.m4: Likewise.
67826         * m4/printf.m4: Likewise.
67827         * m4/printf-frexpl.m4: Likewise.
67828         * m4/vasnprintf.m4: Likewise.
67829         * modules/allocsa (Files): Remove m4/longdouble.m4.
67830         * modules/gettext (Files): Likewise.
67831         * modules/relocatable-prog-wrapper (Files): Likewise.
67832         * modules/vasnprintf (Files): Likewise.
67833         * modules/isnanl (Files): Likewise.
67834         (Include): Simplify.
67835         * modules/isnanl-nolibm (Files): Remove m4/longdouble.m4.
67836         (Include): Simplify.
67837         * modules/printf-frexpl (Files): Remove m4/longdouble.m4.
67838         (Include): Simplify.
67839         * modules/snprintf-posix-tests (Files): Remove m4/longdouble.m4.
67840         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67841         * modules/sprintf-posix-tests (Files): Remove m4/longdouble.m4.
67842         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67843         * modules/vasnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67844         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67845         * modules/vasprintf-posix-tests (Files): Remove m4/longdouble.m4.
67846         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67847         * modules/vsnprintf-posix-tests (Files): Remove m4/longdouble.m4.
67848         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67849         * modules/vsprintf-posix-tests (Files): Remove m4/longdouble.m4.
67850         (configure.ac): Remove gt_TYPE_LONGDOUBLE invocation.
67851         * tests/test-isnanl-nolibm.c: Assume HAVE_LONG_DOUBLE to be true.
67852         * tests/test-isnanl.c: Likewise.
67853         * tests/test-snprintf-posix.h: Likewise.
67854         * tests/test-sprintf-posix.h: Likewise.
67855         * tests/test-vasnprintf-posix.c: Likewise.
67856         * tests/test-vasnprintf-posix2.c: Likewise.
67857         * tests/test-vasprintf-posix.c: Likewise.
67858
67859 2007-04-06  Bruno Haible  <bruno@clisp.org>
67860
67861         Fix problem with Compaq (ex-DEC) Desktop C compiler on Tru64.
67862         * lib/math_.h [__DECC]: Include the overridden include file through
67863         #include_next, outside the double-inclusion guard.
67864         * lib/stdio_.h [__DECC]: Likewise.
67865         * lib/stdlib_.h [__DECC]: Likewise.
67866         * lib/string_.h [__DECC]: Likewise.
67867         * lib/time_.h [__DECC]: Likewise.
67868         * lib/wchar_.h [__DECC]: Likewise.
67869         * lib/wctype_.h [__DECC]: Likewise.
67870         * lib/inttypes_.h [__DECC]: Likewise.
67871         Reported by Albert Chin <china@thewrittenword.com> in
67872         <http://lists.gnu.org/archive/html/bug-gnulib/2007-04/msg00088.html>.
67873
67874 2007-04-04  Eric Blake  <ebb9@byu.net>
67875
67876         * m4/stdint.m4 (gl_STDINT_H): Detect WINT_MAX bug in cygwin
67877         1.5.x.
67878
67879 2007-04-04  Bruno Haible  <bruno@clisp.org>
67880
67881         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Add a test for correct
67882         rounding. Don't assume that FreeBSD 6 and NetBSD 4 pass this test.
67883
67884 2007-04-04  Bruno Haible  <bruno@clisp.org>
67885
67886         * tests/test-vasnprintf-posix.c (test_function): Allow two possible
67887         results for "%010a" of Infinity and NaN.
67888         * tests/test-vasprintf-posix.c (test_function): Likewise.
67889         * tests/test-snprintf-posix.h (test_function): Likewise.
67890         * tests/test-sprintf-posix.h (test_function): Likewise.
67891         * tests/test-fprintf-posix.h (test_function): Remove these tests.
67892         * tests/test-printf-posix.h (test_function): Likewise.
67893         * tests/test-fprintf-posix.out: Update.
67894         Needed for FreeBSD 6.1.
67895
67896 2007-04-04  Bruno Haible  <bruno@clisp.org>
67897
67898         * DEPENDENCIES: Remove mentions of tar and gzip, since they are not
67899         directly used by the gnulib modules nor by gnulib-tool.
67900
67901 2007-04-04  Paul Eggert  <eggert@cs.ucla.edu>
67902
67903         * DEPENDENCIES: Give overall description of version dependency
67904         desirability.  Use more-typical names for apps.
67905         Add shell, coreutils, diffutils, grep, tar, gzip.
67906
67907 2007-04-04  Simon Josefsson  <simon@josefsson.org>
67908
67909         * MODULES.html.sh: Rename crypto modules.  Remove iconvme.
67910
67911 2007-04-04  Karl Berry  <karl@gnu.org>
67912
67913         * MODULES.html.sh (func_module): missing '.
67914
67915 2007-04-03  Bruno Haible  <bruno@clisp.org>
67916
67917         * modules/argmatch-tests (Makefile.am): New variable
67918         test_argmatch_LDADD.
67919         * modules/argp-tests (Makefile.am): New variable test_argp_LDADD.
67920         * modules/array-list-tests (Makefile.am): New variable
67921         test_array_list_LDADD.
67922         * modules/array-oset-tests (Makefile.am): New variable
67923         test_array_oset_LDADD.
67924         * modules/avltree-list-tests (Makefile.am): New variable
67925         test_avltree_list_LDADD.
67926         * modules/avltree-oset-tests (Makefile.am): New variable
67927         test_avltree_oset_LDADD.
67928         * modules/avltreehash-list-tests (Makefile.am): New variable
67929         test_avltreehash_list_LDADD.
67930         * modules/canonicalize-lgpl-tests (Makefile.am): New variable
67931         test_canonicalize_lgpl_LDADD.
67932         * modules/carray-list-tests (Makefile.am): New variable
67933         test_carray_list_LDADD.
67934         * modules/dirname-tests (Makefile.am): New variable
67935         test_dirname_LDADD.
67936         * modules/linked-list-tests (Makefile.am): New variable
67937         test_linked_list_LDADD.
67938         * modules/linkedhash-list-tests (Makefile.am): New variable
67939         test_linkedhash_list_LDADD.
67940         * modules/rbtree-list-tests (Makefile.am): New variable
67941         test_rbtree_list_LDADD.
67942         * modules/rbtree-oset-tests (Makefile.am): New variable
67943         test_rbtree_oset_LDADD.
67944         * modules/rbtreehash-list-tests (Makefile.am): New variable
67945         test_rbtreehash_list_LDADD.
67946         * modules/xvasprintf-tests (Makefile.am): New variable
67947         test_xvasprintf_LDADD.
67948         Reported by Eric Blake.
67949
67950 2007-04-03  Eric Blake  <ebb9@byu.net>
67951
67952         * DEPENDENCIES: Weaken m4 requirements.
67953
67954 2007-04-03  Bruno Haible  <bruno@clisp.org>
67955
67956         * modules/frexp-tests (configure.ac): Remove AC_SUBST.
67957         * modules/isnanl-tests (configure.ac): Likewise.
67958
67959 2007-04-03  Ben Pfaff  <blp@gnu.org>
67960
67961         * modules/iconv_open: Add $(srcdir)/ to source directory
67962         references in Makefile fragments that call gperf, to fix VPATH
67963         builds.
67964
67965 2007-04-03  Bruno Haible  <bruno@clisp.org>
67966
67967         * modules/ldexpl (Depends-on): Add isnanl, remove isnanl-nolibm.
67968         * lib/ldexpl.c: Undo last change.
67969
67970 2007-04-03  Bruno Haible  <bruno@clisp.org>
67971
67972         * modules/printf-frexpl (Depends-on): Undo last change.
67973         (Files): Add m4/ldexpl.m4.
67974
67975 2007-04-03  Bruno Haible  <bruno@clisp.org>
67976
67977         * m4/isnanl.m4 (gl_FUNC_ISNANL): Substitute ISNANL_LIBM.
67978         * modules/isnanl (Link): New section.
67979
67980         * m4/frexp.m4 (gl_FUNC_FREXP): Substitute FREXP_LIBM.
67981         * modules/frexp (Link): New section.
67982
67983         * m4/frexpl.m4 (gl_FUNC_FREXPL): Substitute FREXPL_LIBM.
67984         * modules/frexpl (Link): New section.
67985
67986         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Substitute LDEXPL_LIBM.
67987         * modules/ldexpl (Link): New section.
67988
67989 2007-04-03  Bruno Haible  <bruno@clisp.org>
67990
67991         * modules/TEMPLATE-EXTENDED: New file.
67992         * gnulib-tool (func_all_modules, func_verify_module): Exclude it.
67993
67994 2007-04-03  Bruno Haible  <bruno@clisp.org>
67995
67996         * DEPENDENCIES: New file.
67997         Suggested by Simon Josefsson.
67998
67999 2007-04-03  Bruno Haible  <bruno@clisp.org>
68000
68001         * doc/gnulib.texi: Escape @.
68002
68003 2007-04-03  James Youngman  <jay@gnu.org>
68004         and Paul Eggert  <eggert@cs.ucla.edu>
68005
68006         * lib/stat-time.h (get_stat_birthtime): Check for zero-valued
68007         birthtime on all systems that have birthtime, not just those which
68008         use st_birthtimensec rather than st_birthtim.  Putting zero in
68009         st_birthtim.tv_sec is how (for example) FreeBSD/x86 6.1 indicates
68010         that the birth time is not available for files on an NFS mount.
68011
68012 2007-04-03  Simon Josefsson  <simon@josefsson.org>
68013
68014         * modules/memxor: Move back from crypto/, suggested by Bruno.
68015         * modules/crypto/hmac-sha1: Fix memxor dependency.
68016
68017         * modules/crypto/gc: Moved from ../.
68018
68019 2007-04-02  Eric Blake  <ebb9@byu.net>
68020
68021         * lib/ldexpl.c (includes): Avoid libm.
68022
68023         * modules/printf-frexpl (Depends-on): Depend on ldexpl.
68024
68025 2007-04-02  Bruno Haible  <bruno@clisp.org>
68026
68027         * lib/sysexit_.h (EX_OK): Disable the EX_OK definition from <unistd.h>
68028         on IRIX.
68029
68030 2007-04-02  Bruno Haible  <bruno@clisp.org>
68031
68032         * m4/intdiv0.m4 (gt_INTDIV0): Avoid performing the test for real on
68033         x86 or x86_64 platforms running MacOS X.
68034         Reported by Ryan Schmidt <@ryandesign.com>.
68035
68036 2007-04-02  Bruno Haible  <bruno@clisp.org>
68037
68038         * m4/intdiv0.m4 (gt_INTDIV0): When cross-compiling, treat x86_64 like
68039         i386.
68040
68041 2007-04-01  Simon Josefsson  <simon@josefsson.org>
68042
68043         * modules/crypto/arcfour: Moved from ../.
68044         * modules/crypto/arcfour-tests: Moved from ../.
68045         * modules/crypto/arctwo: Moved from ../.
68046         * modules/crypto/arctwo-tests: Moved from ../.
68047         * modules/crypto/des: Moved from ../.
68048         * modules/crypto/des-tests: Moved from ../.
68049         * modules/crypto/gc-arcfour: Moved from ../.
68050         * modules/crypto/gc-arcfour-tests: Moved from ../.
68051         * modules/crypto/gc-arctwo: Moved from ../.
68052         * modules/crypto/gc-arctwo-tests: Moved from ../.
68053         * modules/crypto/gc-des: Moved from ../.
68054         * modules/crypto/gc-des-tests: Moved from ../.
68055         * modules/crypto/gc-hmac-md5: Moved from ../.
68056         * modules/crypto/gc-hmac-md5-tests: Moved from ../.
68057         * modules/crypto/gc-hmac-sha1: Moved from ../.
68058         * modules/crypto/gc-hmac-sha1-tests: Moved from ../.
68059         * modules/crypto/gc-md2: Moved from ../.
68060         * modules/crypto/gc-md2-tests: Moved from ../.
68061         * modules/crypto/gc-md4: Moved from ../.
68062         * modules/crypto/gc-md4-tests: Moved from ../.
68063         * modules/crypto/gc-md5: Moved from ../.
68064         * modules/crypto/gc-md5-tests: Moved from ../.
68065         * modules/crypto/gc-pbkdf2-sha1: Moved from ../.
68066         * modules/crypto/gc-pbkdf2-sha1-tests: Moved from ../.
68067         * modules/crypto/gc-random: Moved from ../.
68068         * modules/crypto/gc-rijndael: Moved from ../.
68069         * modules/crypto/gc-rijndael-tests: Moved from ../.
68070         * modules/crypto/gc-sha1: Moved from ../.
68071         * modules/crypto/gc-sha1-tests: Moved from ../.
68072         * modules/crypto/gc-tests: Moved from ../.
68073         * modules/crypto/hmac-md5: Moved from ../.
68074         * modules/crypto/hmac-md5-tests: Moved from ../.
68075         * modules/crypto/hmac-sha1: Moved from ../.
68076         * modules/crypto/hmac-sha1-tests: Moved from ../.
68077         * modules/crypto/md2: Moved from ../.
68078         * modules/crypto/md2-tests: Moved from ../.
68079         * modules/crypto/md4: Moved from ../.
68080         * modules/crypto/md4-tests: Moved from ../.
68081         * modules/crypto/md5: Moved from ../.
68082         * modules/crypto/md5-tests: Moved from ../.
68083         * modules/crypto/memxor: Moved from ../.
68084         * modules/crypto/rijndael: Moved from ../.
68085         * modules/crypto/rijndael-tests: Moved from ../.
68086         * modules/crypto/sha1: Moved from ../.
68087
68088 2007-03-30  James Youngman  <jay@gnu.org>
68089
68090         * tests/test-stat-time.c (prepare_test): use chmod() rather than
68091         rename() to change the ctime of a file (because ctime is unaffected
68092         by rename on jfs2 on AIX 5.1).
68093         (main): Start by doing cleanup, in case a previous run failed leaving
68094         test files behind.
68095
68096 2007-03-31  Bruno Haible  <bruno@clisp.org>
68097
68098         Support old proprietary implementations of iconv.
68099         * modules/iconv_open: New file.
68100         * lib/iconv_.h: New file.
68101         * m4/iconv_h.m4: New file.
68102         * lib/iconv_open.c: New file.
68103         * lib/iconv_open-aix.gperf: New file.
68104         * lib/iconv_open-hpux.gperf: New file.
68105         * lib/iconv_open-irix.gperf: New file.
68106         * lib/iconv_open-osf.gperf: New file.
68107         * m4/iconv_open.m4: New file.
68108         * modules/linebreak (Depends-on): Add iconv_open.
68109         * modules/striconv (Depends-on): Likewise.
68110         * modules/striconveh (Depends-on): Likewise.
68111         * modules/unicodeio (Depends-on): Likewise.
68112         * lib/striconveh.h (mem_cd_iconveh, str_cd_iconveh): Allow cd to be
68113         (iconv_t)(-1).
68114         * lib/striconveh.c (mem_cd_iconveh_internal): Use an indirect
68115         conversion if cd is (iconv_t)(-1).
68116         (mem_iconveh, str_iconveh): Don't fail just because a direct conversion
68117         is not possible.
68118
68119 2007-03-31  Bruno Haible  <bruno@clisp.org>
68120
68121         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68122         work on Solaris either. Protect also second use of "autodetect_jp".
68123
68124 2007-03-31  Bruno Haible  <bruno@clisp.org>
68125
68126         * m4/frexpl.m4 (gl_FUNC_FREXPL): Set HAVE_DECL_FREXPL to 0 when
68127         the function is not present.
68128
68129 2007-03-31  Bruno Haible  <bruno@clisp.org>
68130
68131         * m4/ldexpl.m4 (gl_FUNC_LDEXPL): Set HAVE_DECL_LDEXPL to 0 when
68132         the function is not present.
68133
68134 2007-03-31  Bruno Haible  <bruno@clisp.org>
68135
68136         * m4/iconv.m4 (AM_ICONV_LINK): Fix 2007-03-29 patch. Test also against
68137         a bug in HP-UX iconv_open().
68138
68139 2007-03-31  Bruno Haible  <bruno@clisp.org>
68140
68141         * MODULES.html.sh (func_module): Don't show gnulib-common.m4.
68142         (Mathematics <math.h>): New section, add fpieee.
68143         (Input/output <stdio.h>): Add fseterr.
68144         (Mathematics <math.h>): New section, add printf-frexp.
68145         (Container data structures): Add sublist.
68146         (Core language properties): Add fpucw, inline.
68147         (Functions for greatest-width integer types <inttypes.h>): Add
68148         imaxabs, imaxdiv, inttypes.
68149         (Mathematics <math.h>): Add frexp, frexpl, isnan-nolibm, isnanl,
68150         isnanl-nolibm, ldexp.
68151         (Mathematics <math.h>): New section, add printf-frexpl.
68152         (Support for systems lacking POSIX:2001): Add fprintf-posix,
68153         printf-posix, snprintf-posix, sprintf-posix, string, search, socklen,
68154         sys_select, sys_socket, vasnprintf-posix, vasprintf-posix,
68155         vfprintf-posix, vprintf-posix, vsnprintf-posix, vsprintf-posix.
68156         (Unicode string functions): Add unistr/u*-mbtoucr.
68157         (Java): Add javacomp-script, javaexec-script.
68158         (C#): Add csharpcomp-script, csharpexec-script.
68159         (Support for building libraries and executables): Add havelib,
68160         relocatable-*.
68161         (Support for maintaining and releasing projects): Renamed from
68162         'Support for maintaining and release projects'. Add announce-gen.
68163
68164 2007-03-31  Bruno Haible  <bruno@clisp.org>
68165
68166         * README: Talk primarily about git.
68167         (git and CVS): Renamed from CVS.
68168         * doc/gnulib.texi (Introduction, Build robot for gnulib): Mention that
68169         gnulib is available through git.
68170         * doc/gnulib-tool.texi (CVS Issues): Mention git and svn as well.
68171
68172 2007-03-30  Bruno Haible  <bruno@clisp.org>
68173
68174         * lib/alloca_.h: Change prefix of double-inclusion guard macro to _GL_.
68175         * lib/poll_.h: Likewise.
68176         * lib/stat_.h: Likewise.
68177         * lib/sys_time_.h: Likewise.
68178         * lib/sysexit_.h: Likewise.
68179         * lib/glob_.h: Prefix double-inclusion guard macro with _GL_.
68180         * lib/stdbool_.h: Likewise.
68181         * lib/byteswap_.h: Add double-inclusion guard.
68182
68183 2007-03-30  Sergey Poznyakoff  <gray@mirddin.farlep.net>
68184
68185         * lib/sysexit_.h: Prefix double-inclusion guard macro with _GNULIB.
68186
68187 2007-03-30  Karl Berry  <karl@gnu.org>
68188
68189         * config/srclist-update: double space after USA in the license
68190         substitution, since that's how it's usually (?) written.
68191
68192 2007-03-30  Paul Eggert  <eggert@cs.ucla.edu>
68193
68194         * lib/write-any-file.c (can_write_any_file): Fix else-else bug
68195         reported by Bruno Haible.
68196
68197 2007-03-29  Bruno Haible  <bruno@clisp.org>
68198
68199         * m4/iconv.m4 (AM_ICONV_LINK): Require AC_CANONICAL_HOST. Test against
68200         a bug in AIX iconv().
68201
68202 2007-03-29  Bruno Haible  <bruno@clisp.org>
68203
68204         * modules/ldexpl-tests: New file.
68205         * tests/test-ldexpl.c: New file.
68206
68207 2007-03-29  Bruno Haible  <bruno@clisp.org>
68208
68209         * lib/ldexpl.c: Include fpucw.h.
68210         (ldexpl): Use BEGIN/END_LONG_DOUBLE_ROUNDING. Skip the last unneeded
68211         multiplication.
68212         * modules/ldexpl (Depends-on): Add fpucw.
68213
68214 2007-03-29  Bruno Haible  <bruno@clisp.org>
68215
68216         * modules/ldexpl: New file.
68217         * m4/ldexpl.m4: New file.
68218         * lib/math_.h (ldexpl): Define to a replacement if REPLACE_LDEXPL is
68219         set.
68220         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize also GNULIB_LDEXPL,
68221         REPLACE_LDEXPL.
68222         * modules/math (Makefile.am): Substitute also GNULIB_LDEXPL,
68223         REPLACE_LDEXPL.
68224         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Invoke
68225         gl_FUNC_LDEXPL_WORKS.
68226         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Remove test for ldexpl.
68227         * modules/mathl (Files): Remove lib/ldexpl.c.
68228         (Depends-on): Add ldexpl.
68229
68230 2007-03-29  Bruno Haible  <bruno@clisp.org>
68231
68232         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Declare frexpl.
68233
68234 2007-03-29  Bruno Haible  <bruno@clisp.org>
68235
68236         * tests/test-striconveh.c (main): Don't assume that a direct conversion
68237         between ISO-8859-1 and ISO-8859-2 is possible. Needed for OSF/1, IRIX
68238         and possibly also HP-UX.
68239         * tests/test-striconveha.c (main): Don't expect "autodetect_jp" to
68240         work on AIX, IRIX, HP-UX, OSF/1.
68241         * tests/uniconv/test-u16-conv-from-enc.c (main): Likewise.
68242         * tests/uniconv/test-u16-strconv-from-enc.c (main): Likewise.
68243         * tests/uniconv/test-u32-conv-from-enc.c (main): Likewise.
68244         * tests/uniconv/test-u32-strconv-from-enc.c (main): Likewise.
68245         * tests/uniconv/test-u8-conv-from-enc.c (main): Likewise.
68246         * tests/uniconv/test-u8-strconv-from-enc.c (main): Likewise.
68247
68248 2007-03-29  Bruno Haible  <bruno@clisp.org>
68249
68250         * tests/test-stat-time.c: Include <fcntl.h>, not <sys/fcntl.h>.
68251
68252 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68253
68254         * lib/acl-internal.h (acl_get_fd, acl_set_fd): undef before defining,
68255         to work around a problem on OSF/1 5.1 reported by Bruno Haible.
68256
68257 2007-03-29  Eric Blake  <ebb9@byu.net>
68258
68259         * lib/acl-internal.h: Remove redundant include.
68260         (ACL_NOT_WELL_SUPPORTED): Also filter on EBUSY, returned by
68261         Cygwin when a file is locked.
68262
68263 2007-03-29  Bruno Haible  <bruno@clisp.org>
68264
68265         * lib/vasprintf.c [IN_LIBASPRINTF]: Include different specification
68266         file.
68267         * lib/asprintf.c [IN_LIBASPRINTF]: Likewise.
68268
68269 2007-03-29  Paul Eggert  <eggert@cs.ucla.edu>
68270
68271         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Don't bother to
68272         try to remove a parent directory if the child couldn't be removed
68273         (except for the first rmdir, which could fail because the child
68274         doesn't exist).  Problem reported by Jeff Blaine in
68275         <http://lists.gnu.org/archive/html/bug-tar/2007-03/msg00014.html>.
68276
68277 2007-03-28  Bruno Haible  <bruno@clisp.org>
68278
68279         * lib/striconveh.c (utf8conv_carefully): New function.
68280         (mem_cd_iconveh_internal): Invoke it.
68281
68282 2007-03-28  Bruno Haible  <bruno@clisp.org>
68283
68284         * lib/striconveh.c (mem_cd_iconveh_internal): Use u8_mbtoucr instead
68285         of u8_mbtouc in order to distinguish invalid and incomplete UTF-8
68286         input.
68287         * modules/striconveh (Depends-on): Add unistr/u8-mbtoucr. Replace
68288         utf8-ucs4 with unistr/u8-mbtouc. Replace ucs4-utf8 with
68289         unistr/u8-uctomb.
68290
68291 2007-03-28  Bruno Haible  <bruno@clisp.org>
68292
68293         * modules/unistr/u8-mbtoucr: New file.
68294         * lib/unistr/u8-mbtoucr.c: New file.
68295         * modules/unistr/u16-mbtoucr: New file.
68296         * lib/unistr/u16-mbtoucr.c: New file.
68297         * modules/unistr/u16-mbtoucr: New file.
68298         * lib/unistr/u16-mbtoucr.c: New file.
68299         * lib/unistr.h (u8_mbtoucr, u16_mbtoucr, u32_mbtoucr): New declarations.
68300
68301 2007-03-27  Simon Josefsson  <simon@josefsson.org>
68302             Bruno Haible  <bruno@clisp.org>
68303
68304         * m4/vasprintf.m4: Convert AC_SUBST into shell variable for
68305         REPLACE_VASPRINTF.  Set HAVE_VASPRINTF.  Add
68306         AC_REQUIRE([gl_STDIO_H_DEFAULTS]).
68307
68308         * m4/stdio_h.m4: Add stubs for vasprintf too.
68309
68310         * modules/stdio: Support vasprintf in sed command.
68311
68312         * modules/vasprintf: Depend on stdio for prototypes.  Remove
68313         vasprintf.h.  Add stdio module indicator.
68314
68315         * lib/stdio_.h: Declare asprintf and vasprintf, based on
68316         vasprintf.h.
68317
68318         * lib/vasprintf.h: File removed.
68319
68320         * lib/asprintf.c: Use stdio.h instead of vasprintf.h.
68321         * lib/vasprintf.c: Ditto.
68322         * lib/xvasprintf.c: Ditto.
68323         * tests/test-vasprintf-posix.c: Ditto.
68324         * tests/test-vasprintf.c: Ditto.
68325
68326 2007-03-27  Bruno Haible  <bruno@clisp.org>
68327
68328         Make vasnprintf multithread-safe.
68329         * lib/vasnprintf.c (decimal_point_char): New function.
68330         (VASNPRINTF): Use it.
68331         Suggested by Simon Josefsson.
68332
68333 2007-03-27  Eric Blake  <ebb9@byu.net>
68334
68335         Support sub-second birthtime on cygwin.
68336         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Also check for st_birthtim.
68337         * lib/stat-time.h (STAT_TIMESPEC): Adjust comments.
68338         (get_stat_birthtime): Also work with st_birthtim.
68339
68340 2007-03-27  Paul Eggert  <eggert@cs.ucla.edu>
68341
68342         * lib/stat-time.h (USE_BIRTHTIME): Remove.
68343         (get_stat_atime_ns, get_stat_ctime_ns, get_stat_mtime_ns):
68344         (get_stat_birthtime_ns): Do not try to use "spare" fields.
68345         (get_stat_birthtime_ns): Simplify compile-time tests.
68346         (get_stat_birthtime): Change the API to look like
68347         get_stat_mtime etc., except return a negative tv_nsec on error.
68348         * m4/stat-time.m4 (gl_STAT_TIME, gl_STAT_BIRTHTIME):
68349         Don't check for "spare" fields.
68350         (gl_STAT_BIRTHTIME): Don't check for struct stat.st_birthtimespec.tv_sec
68351         or for struct stat.st_birthtime, as these tests aren't used.
68352         * tests/test-stat-time.c (test_birthtime): Adjust to new API.
68353
68354 2007-03-27  Bruno Haible  <bruno@clisp.org>
68355
68356         * lib/stat-time.h: Include <sys/stat.h>.
68357
68358 2007-03-27  James Youngman  <jay@gnu.org>
68359
68360         * lib/stat-time.h (get_stat_birthtime): New function for
68361           retrieving st_birthtime as provided by UFS2 (hence *BSD).
68362         * m4/stat-time.m4 (gl_STAT_BIRTHTIME): Probe for st_birthtime
68363           and its variants.
68364         * modules/stat-time (configure.ac): call gl_STAT_BIRTHTIME.
68365         * modules/stat-time-test: New file.
68366         * tests/test-stat-time.c: New test, devised by Bruno Haible.
68367
68368 2007-03-26  Bruno Haible  <bruno@clisp.org>
68369
68370         Better support of signalling NaNs.
68371         * lib/atanl.c: Include isnanl.h.
68372         (atanl): Perform test for NaN at the beginning of the function and
68373         through a call to isnanl.
68374         * lib/cosl.c: Include isnanl.h.
68375         (cosl): Perform test for NaN at the beginning of the function and
68376         through a call to isnanl.
68377         * lib/ldexpl.c: Include isnanl.h.
68378         (ldexpl): Perform test for NaN through a call to isnanl.
68379         * lib/logl.c: Include isnanl.h.
68380         (logl): Perform test for NaN at the beginning of the function and
68381         through a call to isnanl.
68382         * lib/sinl.c: Include isnanl.h.
68383         (sinl): Perform test for NaN at the beginning of the function and
68384         through a call to isnanl.
68385         * lib/sqrtl.c: Include isnanl.h.
68386         (sqrtl): Perform test for NaN at the beginning of the function and
68387         through a call to isnanl.
68388         * lib/tanl.c: Include isnanl.h.
68389         (tanl): Perform test for NaN at the beginning of the function and
68390         through a call to isnanl.
68391         * lib/trigl.c (ieee754_rem_pio2l): Remove test for NaN.
68392         * modules/mathl (Depends-on): Add isnanl.
68393
68394 2007-03-26  Eric Blake  <ebb9@byu.net>
68395
68396         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Fix
68397         regression in logic sense of previous patch.
68398
68399 2007-03-26  Bruno Haible  <bruno@clisp.org>
68400
68401         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): Don't use
68402         unportable shell command "if ! ...".
68403         Reported by Ralf Wildenhues.
68404
68405 2007-03-25  Bruno Haible  <bruno@clisp.org>
68406
68407         * lib/sysexit_,h: If HAVE_SYSEXITS_H is defined, include the original
68408         <sysexits.h> file, and only add EX_CONFIG.
68409         * m4/sysexits.m4 (gl_SYSEXITS): If <sysexits.h> exists, check its
68410         absolute file name and whether it is sufficient. Substitute also
68411         HAVE_SYSEXITS_H and ABSOLUTE_SYSEXITS_H.
68412         * modules/sysexits (Makefile.am): Substitute HAVE_SYSEXITS_H and
68413         ABSOLUTE_SYSEXITS_H into sysexits.h.
68414
68415 2007-03-25  Bruno Haible  <bruno@clisp.org>
68416
68417         * lib/getaddrinfo.c (getaddrinfo): Don't access hints->ai_flags when
68418         hints is NULL.
68419
68420 2007-03-25  Bruno Haible  <bruno@clisp.org>
68421
68422         * lib/uniconv/u8-conv-from-enc.c (u8_conv_from_encoding): Add a cast.
68423         * lib/uniconv/u8-strconv-to-enc.c (u8_strconv_to_encoding): Likewise.
68424
68425 2007-03-25  Bruno Haible  <bruno@clisp.org>
68426
68427         * lib/vasnprintf.c: Include langinfo.h.
68428         (VASNPRINTF): Prefer nl_langinfo over localeconv, since it's more
68429         multithread-safe.
68430         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF_DIRECTIVE_A): New macro.
68431         * m4/fprintf-posix.m4 (gl_FUNC_FPRINTF_POSIX): Invoke it.
68432         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Likewise.
68433         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
68434         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
68435         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
68436         * m4/vfprintf-posix.m4 (gl_FUNC_VFPRINTF_POSIX): Likewise.
68437         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX: Likewise.
68438         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
68439         Reported by Simon Josefsson.
68440
68441 2007-03-25  Bruno Haible  <bruno@clisp.org>
68442
68443         * lib/printf-parse.c [!IN_LIBINTL]: Include <stdint.h>, for intmax_t.
68444         (PRINTF_PARSE): Make the support for size specifier 'j' unconditional.
68445         * modules/vasnprintf (Depends-on): Add stdint.
68446
68447 2007-03-25  Bruno Haible  <bruno@clisp.org>
68448
68449         * modules/fpieee: New file.
68450         * m4/fpieee.m4: New file.
68451         * modules/isnan-nolibm (Depends-on): Add fpieee.
68452         * modules/isnanl-nolibm (Depends-on): Add fpieee.
68453         * modules/isnanl (Depends-on): Add fpieee.
68454
68455 2007-03-25  Bruno Haible  <bruno@clisp.org>
68456
68457         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): Test also finite numbers.
68458
68459 2007-03-25  Bruno Haible  <bruno@clisp.org>
68460
68461         Avoid test failures on IRIX 6.5.
68462         * tests/test-frexpl.c (MIN_NORMAL_EXP): New macro.
68463         (main): Use it.
68464         * tests/test-printf-frexpl.c (MIN_NORMAL_EXP, MIN_SUBNORMAL_EXP): New
68465         macros.
68466         (main): Use them.
68467
68468 2007-03-25  Bruno Haible  <bruno@clisp.org>
68469
68470         * m4/frexpl.m4 (gl_FUNC_FREXPL_WORKS): New macro.
68471         (gl_FUNC_FREXPL): Invoke it. Set REPLACE_FREXPL to 1 if it frexpl
68472         exists but doesn't work.
68473         * lib/math_.h (frexpl): Define as a replacement macro if REPLACE_FREXPL
68474         is set. Don't provide a prototype if REPLACE_FREXPL is not set.
68475         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize REPLACE_FREXPL.
68476         * modules/math (Makefile.am): Substibute also REPLACE_FREXPL into
68477         math.h.
68478
68479 2007-03-25  Bruno Haible  <bruno@clisp.org>
68480
68481         * m4/frexp.m4 (gl_FUNC_FREXP_WORKS): Add check whether frexp(inf)
68482         returns inf. Needed on IRIX 6.5.
68483
68484 2007-03-25  Bruno Haible  <bruno@clisp.org>
68485
68486         * tests/test-frexpl.c: Include isnanl-nolibm.h.
68487         (main): Use isnanl instead of x != x idiom.
68488         * modules/frexpl-tests (Depends-on): Add isnanl-nolibm.
68489
68490         * tests/test-frexp.c: Include isnan.h.
68491         (main): Use isnan instead of x != x idiom.
68492         * modules/frexp-tests (Depends-on): Add isnan-nolibm.
68493
68494 2007-03-25  Bruno Haible  <bruno@clisp.org>
68495
68496         * tests/test-frexp.c (NaN): New function/macro.
68497         (main): Use it instead of 0.0 / 0.0.
68498         * tests/test-isnan.c (NaN): New function/macro.
68499         (main): Use it instead of 0.0 / 0.0.
68500         * tests/test-vasnprintf-posix.c (NaN): New function/macro.
68501         (test_function): Use it instead of 0.0 / 0.0.
68502         * tests/test-vasprintf-posix.c (NaN): New function/macro.
68503         (test_function): Use it instead of 0.0 / 0.0.
68504         * tests/test-snprintf-posix.h (NaN): New function/macro.
68505         (test_function): Use it instead of 0.0 / 0.0.
68506         * tests/test-sprintf-posix.h (NaN): New function/macro.
68507         (test_function): Use it instead of 0.0 / 0.0.
68508         * tests/test-fprintf-posix.h (NaN): New function/macro.
68509         (test_function): Use it instead of 0.0 / 0.0.
68510         * tests/test-printf-posix.h (NaN): New function/macro.
68511         (test_function): Use it instead of 0.0 / 0.0.
68512
68513         * lib/isnan.c (FUNC): Work around a DEC C compiler bug.
68514
68515 2007-03-25  Bruno Haible  <bruno@clisp.org>
68516
68517         * lib/glob_.h: Include <sys/stat.h>. Avoids warnings on AIX 5.1.
68518
68519 2007-03-25  Bruno Haible  <bruno@clisp.org>
68520
68521         * lib/regexec.c (merge_state_with_log): Make static.
68522
68523 2007-03-25  Bruno Haible  <bruno@clisp.org>
68524
68525         * lib/trigl.c (kernel_rem_pio2): Make static.
68526
68527 2007-03-25  Bruno Haible  <bruno@clisp.org>
68528
68529         * lib/sincosl.c (sincosl_table): Make static.
68530
68531 2007-03-25  Bruno Haible  <bruno@clisp.org>
68532
68533         * lib/argp.h (__restrict): Define to empty, rather than to 'restrict',
68534         if the compiler does not support C99.
68535
68536 2007-03-25  Bruno Haible  <bruno@clisp.org>
68537
68538         * modules/time (Makefile.am): Ensure all rule action lines start with a
68539         tab.
68540
68541 2007-03-24  Bruno Haible  <bruno@clisp.org>
68542
68543         * modules/tsearch-tests: New file.
68544         * tests/test-tsearch.sh: New file.
68545         * tests/test-tsearch.c: New file, mostly copied from glibc.
68546
68547         * modules/search-tests: New file.
68548         * tests/test-search.c: New file.
68549
68550         * modules/search: New file.
68551         * lib/search_.h: New file, incorporating lib/tsearch.h.
68552         * m4/search_h.m4: New file.
68553         * lib/tsearch.h: Remove file.
68554         * lib/tsearch.c: Include search.h instead of tsearch.h.
68555         * m4/tsearch.m4 (gl_FUNC_TSEARCH): Require gl_SEARCH_H_DEFAULTS. Set
68556         HAVE_TSEARCH.
68557         * modules/tsearch (Files): Remove lib/tsearch.h.
68558         (Depends-on): Add search.
68559         (configure.ac): Invoke gl_SEARCH_MODULE_INDICATOR.
68560         (Include): Change tsearch.h into search.h.
68561
68562 2007-03-24  Bruno Haible  <bruno@clisp.org>
68563
68564         * modules/fpucw: New file.
68565         * lib/fpucw.h: New file.
68566         * lib/frexp.c: Include fpucw.h.
68567         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68568         (FUNC): Use them.
68569         * lib/printf-frexp.c: Include fpucw.h.
68570         (DECL_ROUNDING, BEGIN_ROUNDING, END_ROUNDING): New macros.
68571         (FUNC): Use them.
68572         * lib/vasnprintf.c: Include fpucw.h.
68573         (VASNPRINTF): Invoke BEGIN/END_LONG_DOUBLE_ROUNDING around the
68574         'long double' calculations.
68575         * tests/test-frexpl.c: Include fpucw.h.
68576         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68577         * tests/test-printf-frexpl.c: Include fpucw.h.
68578         (main): Invoke BEGIN_LONG_DOUBLE_ROUNDING.
68579         * modules/frexpl (Depends-on): Add fpucw.
68580         * modules/printf-frexpl (Depends-on): Likewise.
68581         * modules/fprintf-posix (Depends-on): Likewise.
68582         * modules/snprintf-posix (Depends-on): Likewise.
68583         * modules/sprintf-posix (Depends-on): Likewise.
68584         * modules/vasnprintf-posix (Depends-on): Likewise.
68585         * modules/vasprintf-posix (Depends-on): Likewise.
68586         * modules/vfprintf-posix (Depends-on): Likewise.
68587         * modules/vsnprintf-posix (Depends-on): Likewise.
68588         * modules/vsprintf-posix (Depends-on): Likewise.
68589         * modules/frexpl-tests (Depends-on): Likewise.
68590         * modules/printf-frexpl-tests (Depends-on): Likewise.
68591
68592 2007-03-24  Bruno Haible  <bruno@clisp.org>
68593
68594         * lib/float+.h: New file.
68595         * lib/isnan.c: Include float+.h.
68596         (SIZE): New macro.
68597         (FUNC): Compare only SIZE bytes of the value.
68598         * lib/vasnprintf.c: Include float+.h.
68599         (VASNPRINTF): When comparing against +0.0L or +0.0, compare only
68600         SIZEOF_LDBL or SIZEOF_DBL bytes.
68601         * modules/isnan-nolibm (Files): Add lib/float+.h.
68602         * modules/isnanl-nolibm (Files): Add lib/float+.h.
68603         * modules/isnanl (Files): Add lib/float+.h.
68604         * modules/vasnprintf (Files): Add lib/float+.h.
68605
68606 2007-03-24  Bruno Haible  <bruno@clisp.org>
68607
68608         * lib/vasnprintf.c [!HAVE_LONG_DOUBLE]: Include printf-frexp.h. Don't
68609         include isnanl-nolibm.h.
68610
68611 2007-03-24  Bruno Haible  <bruno@clisp.org>
68612
68613         * tests/test-read-file.c (main): Don't produce spurious output for
68614         expected situations. Make the test fail if it encountered unexpected
68615         results.
68616
68617 2007-03-24  Bruno Haible  <bruno@clisp.org>
68618
68619         * m4/locale-fr.m4 (gt_LOCALE_FR): Remove the special-casing of NetBSD,
68620         since its fr_FR.ISO8859-1 locale wouldn't pass the tests.
68621
68622 2007-03-24  Bruno Haible  <bruno@clisp.org>
68623
68624         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Fix last change.
68625
68626 2007-03-24  Bruno Haible  <bruno@clisp.org>
68627
68628         * modules/unistr/base (Depends-on): Remove utf8-ucs4-unsafe,
68629         utf16-ucs4-unsafe, utf8-ucs4, utf16-ucs4, ucs4-utf8, ucs4-utf16.
68630
68631         * modules/unistr/u8-mbtouc: Add source files from module utf8-ucs4.
68632         * modules/utf8-ucs4: Turn into a symbolic link to module
68633         unistr/u8-mbtouc.
68634
68635         * modules/unistr/u8-mbtouc-unsafe: Add source files from module
68636         utf8-ucs4-unsafe.
68637         * modules/utf8-ucs4-unsafe: Turn into a symbolic link to module
68638         unistr/u8-mbtouc-unsafe.
68639
68640         * modules/unistr/u16-mbtouc: Add source files from module utf16-ucs4.
68641         * modules/utf16-ucs4: Turn into a symbolic link to module
68642         unistr/u16-mbtouc.
68643
68644         * modules/unistr/u16-mbtouc-unsafe: Add source files from module
68645         utf16-ucs4-unsafe.
68646         * modules/utf16-ucs4-unsafe: Turn into a symbolic link to module
68647         unistr/u16-mbtouc-unsafe.
68648
68649         * modules/unistr/u8-uctomb: Add source files from module utf4-utf8.
68650         * modules/ucs4-utf8: Turn into a symbolic link to module
68651         unistr/u8-ubtomb.
68652
68653         * modules/unistr/u16-uctomb: Add source files from module utf4-utf16.
68654         * modules/ucs4-utf16: Turn into a symbolic link to module
68655         unistr/u16-ubtomb.
68656
68657 2007-03-24  Bruno Haible  <bruno@clisp.org>
68658
68659         * lib/unistr/u8-mbtouc-aux.c: Renamed from lib/unistr/utf8-ucs4.c.
68660         Enable the function only if HAVE_INLINE.
68661         * lib/unistr/u8-mbtouc-unsafe-aux.c: Renamed from
68662         lib/unistr/utf8-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68663         * lib/unistr/u16-mbtouc-aux.c: Renamed from lib/unistr/utf16-ucs4.c.
68664         Enable the function only if HAVE_INLINE.
68665         * lib/unistr/u16-mbtouc-unsafe-aux.c: Renamed from
68666         lib/unistr/utf16-ucs4-unsafe.c. Enable the function only if HAVE_INLINE.
68667         * lib/unistr/u8-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf8.c.
68668         Enable the function only if HAVE_INLINE.
68669         * lib/unistr/u16-uctomb-aux.c: Renamed from lib/unistr/ucs4-utf16.c.
68670         Enable the function only if HAVE_INLINE.
68671         * modules/utf8-ucs4: Update.
68672         * modules/utf8-ucs4-unsafe: Update.
68673         * modules/utf16-ucs4: Update.
68674         * modules/utf16-ucs4-unsafe: Update.
68675         * modules/ucs4-utf8: Update.
68676         * modules/ucs4-utf16: Update.
68677
68678 2007-03-24  Bruno Haible  <bruno@clisp.org>
68679
68680         * lib/utf8-ucs4.h: Remove file.
68681         * lib/utf8-ucs4-unsafe.h: Remove file.
68682         * lib/utf16-ucs4.h: Remove file.
68683         * lib/utf16-ucs4-unsafe.h: Remove file.
68684         * lib/ucs4-utf8.h: Remove file.
68685         * lib/ucs4-utf16.h: Remove file.
68686         * lib/unistr.h: Include their previous contents.
68687         * m4/utf-ucs4.m4: Remove file.
68688         * m4/ucs4-utf.m4: Remove file.
68689         * modules/utf8-ucs4 (Files): Remove lib/utf8-ucs4.h.
68690         (Depends-on): Add unistr/base.
68691         (configure.ac): Remove gl_UTF_UCS4.
68692         (Makefile.am): Update.
68693         (Include): Change to unistr.h.
68694         * modules/utf8-ucs4-unsafe (Files): Remove lib/utf8-ucs4-unsafe.h.
68695         (Depends-on): Add unistr/base.
68696         (configure.ac): Remove gl_UTF_UCS4.
68697         (Makefile.am): Update.
68698         (Include): Change to unistr.h.
68699         * modules/utf16-ucs4 (Files): Remove lib/utf16-ucs4.h.
68700         (Depends-on): Add unistr/base.
68701         (configure.ac): Remove gl_UTF_UCS4.
68702         (Makefile.am): Update.
68703         (Include): Change to unistr.h.
68704         * modules/utf16-ucs4-unsafe (Files): Remove lib/utf16-ucs4-unsafe.h.
68705         (Depends-on): Add unistr/base.
68706         (configure.ac): Remove gl_UTF_UCS4.
68707         (Makefile.am): Update.
68708         (Include): Change to unistr.h.
68709         * modules/ucs4-utf8 (Files): Remove lib/ucs4-utf8.h.
68710         (Depends-on): Add unistr/base.
68711         (configure.ac): Remove gl_UCS4_UTF.
68712         (Makefile.am): Update.
68713         (Include): Change to unistr.h.
68714         * modules/ucs4-utf16 (Files): Remove lib/ucs4-utf16.h.
68715         (Depends-on): Add unistr/base.
68716         (configure.ac): Remove gl_UCS4_UTF.
68717         (Makefile.am): Update.
68718         (Include): Change to unistr.h.
68719         * lib/unistr/utf8-ucs4.c: Include unistr.h instead of utf8-ucs4.h.
68720         * lib/unistr/utf8-ucs4-unsafe.c: Include unistr.h instead of
68721         utf8-ucs4-unsafe.h.
68722         * lib/unistr/utf16-ucs4.c: Include unistr.h instead of utf16-ucs4.h.
68723         * lib/unistr/utf16-ucs4-unsafe.c: Include unistr.h instead of
68724         utf16-ucs4-unsafe.h.
68725         * lib/unistr/ucs4-utf8.c: Include unistr.h instead of ucs4-utf8.h.
68726         * lib/unistr/ucs4-utf16.c: Include unistr.h instead of ucs4-utf16.h.
68727         * lib/unistr/u8-chr.c: Don't include ucs4-utf8.h.
68728         * lib/unistr/u8-strchr.c: Likewise.
68729         * lib/unistr/u8-strrchr.c: Likewise.
68730         * lib/unistr/u16-chr.c: Don't include ucs4-utf16.h.
68731         * lib/unistr/u16-strchr.c: Likewise.
68732         * lib/unistr/u16-strrchr.c: Likewise.
68733         * lib/striconveh.c: Update.
68734         * lib/linebreak.c: Update.
68735
68736 2007-03-24  Bruno Haible  <bruno@clisp.org>
68737
68738         * lib/argp-help.c (fill_in_uparams, canon_doc_option): Cast the
68739         arguments of isspace, isalpha, isalnum, isdigit to 'unsigned char'.
68740
68741 2007-03-22  Bruno Haible  <bruno@clisp.org>
68742
68743         * lib/strptime.c (__strptime_internal): Use ANSI C syntax.
68744
68745 2007-03-23  Paul Eggert  <eggert@cs.ucla.edu>
68746
68747         * MODULES.html.sh (File system functions): New module write-any-file.
68748         * modules/write-any-file, lib/write-any-file.c, lib/write-any-file.h:
68749         * m4/write-any-file.m4: New files.
68750
68751 2007-03-23  Eric Blake  <ebb9@byu.net>
68752
68753         * gnulib-tool: Rearrange space-tab sequences, since some editors
68754         like to eat them.
68755
68756 2007-03-23  Eric Blake  <ebb9@byu.net>
68757
68758         * lib/version-etc.c (version_etc_va): Update license wording to
68759         be more concise.  Recommended by Richard Stallman.
68760
68761 2007-03-22  Bruno Haible  <bruno@clisp.org>
68762
68763         * lib/poll.c (MSG_PEEK): New fallback definition.
68764
68765 2007-03-22  Bruno Haible  <bruno@clisp.org>
68766
68767         * modules/sys_socket-tests (configure.ac): Check for shutdown function.
68768         * tests/test-sys_socket.c (a): Test only if shutdown() exists.
68769         (main): Update.
68770         Fixes a compilation error on BeOS.
68771
68772 2007-03-22  Bruno Haible  <bruno@clisp.org>
68773
68774         * modules/frexpl-tests: New file.
68775         * tests/test-frexpl.c: New file.
68776
68777         * modules/frexpl: New file.
68778         * m4/frexpl.m4: New file.
68779         * modules/math (Makefile.am): Also substitute GNULIB_FREXPL into math.h.
68780         * lib/math_.h (frexpl): Test GNULIB_FREXPL instead of GNULIB_MATHL.
68781         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Initialize GNULIB_FREXPL.
68782         * modules/mathl (Files): Remove lib/frexpl.c, lib/frexp.c.
68783         (Depends-on): Add frexpl. Remove isnanl-nolibm.
68784         * m4/mathl.m4 (gl_FUNC_LONG_DOUBLE_MATH): Don't test for frexpl.
68785
68786 2007-03-22  Bruno Haible  <bruno@clisp.org>
68787
68788         * lib/frexpl.c: Share code with lib/frexp.c.
68789         * modules/mathl (Files): Add lib/frexp.c.
68790         (Depends-on): Add isnanl-nolibm.
68791
68792 2007-03-22  Bruno Haible  <bruno@clisp.org>
68793
68794         * modules/printf-frexp (Files): Add m4/frexp.m4.
68795         * m4/printf-frexp.m4 (gl_FUNC_PRINTF_FREXP): Define HAVE_FREXP_IN_LIBC
68796         only if the found frexp function actually works.
68797
68798 2007-03-22  Bruno Haible  <bruno@clisp.org>
68799
68800         * lib/frexp.c: Remove older implementation that uses divisions.
68801
68802 2007-03-21  Bruno Haible  <bruno@clisp.org>
68803
68804         * modules/frexp-tests: New file.
68805         * tests/test-frexp.c: New file.
68806
68807         * modules/frexp: New file.
68808         * lib/frexp.c: New file.
68809         * m4/frexp.m4: New file.
68810         * lib/math_.h (frexp): New declaration.
68811         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Also initialize GNULIB_FREXP and
68812         REPLACE_FREXP.
68813         * modules/math (math.h): Also substitute GNULIB_FREXP, REPLACE_FREXP.
68814
68815 2007-03-21  Bruno Haible  <bruno@clisp.org>
68816
68817         * modules/isnanl-tests: New file.
68818         * tests/test-isnanl.c: New file.
68819
68820         * modules/isnanl: New file.
68821         * lib/isnanl.h: New file.
68822         * m4/isnanl.m4 (gl_FUNC_ISNANL): New macro.
68823         (gl_FUNC_ISNANL_NO_LIBM): Invoke gl_HAVE_ISNANL_NO_LIBM,
68824         gl_FUNC_ISNANL_WORKS.
68825         (gl_HAVE_ISNANL_NO_LIBM, gl_HAVE_ISNANL_IN_LIBM, gl_FUNC_ISNANL_WORKS):
68826         New macros.
68827
68828 2007-03-21  Bruno Haible  <bruno@clisp.org>
68829
68830         * modules/isnanl-nolibm (Files): Add lib/isnanl-nolibm.h, remove
68831         lib/isnanl.h.
68832         (Include): Update.
68833         * lib/isnanl-nolibm.h: Renamed from lib/isnanl.h.
68834         * lib/vasnprintf.c: Update.
68835         * modules/isnanl-nolibm-tests (Files): Add tests/test-isnanl-nolibm.c,
68836         tests/test-isnanl.h, remove tests/test-isnanl.c.
68837         (Makefile.am): Update.
68838         * tests/test-isnanl-nolibm.c: New file.
68839         * tests/test-isnanl.h: New file.
68840         * tests/test-isnanl.c: Remove file.
68841
68842 2007-03-21  Jim Meyering  <jim@meyering.net>
68843
68844         When trying to open ".", treat ESTALE like EACCES.
68845         * lib/savewd.c (savewd_save): Resort to forking not just upon
68846         failure with EACCES, but also when errno is ESTALE.
68847
68848 2007-03-20  Bruno Haible  <bruno@clisp.org>
68849
68850         * lib/string_.h (strndup): Enable declaration also if HAVE_STRNDUP.
68851         Needed on AIX 5.1. Reported by Matthew Woehlke.
68852
68853 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68854
68855         Suggestions by Bruno Haible:
68856         * lib/acl-internal.h: Include "gettext.h" rather than rolling
68857         our own.
68858         (ACL_NOT_WELL_SUPPORTED): Parenthesize arg when used.
68859         * modules/acl (Depends-on): Add gettext.
68860
68861 2007-03-19  Bruno Haible  <bruno@clisp.org>
68862
68863         * modules/iconvme: Remove file.
68864         * lib/iconvme.h: Remove file.
68865         * lib/iconvme.c: Remove file.
68866         * m4/iconvme.m4: Remove file.
68867
68868 2007-03-19  Bruno Haible  <bruno@clisp.org>
68869
68870         * doc/relocatable-maint.texi: Break long shell script line.
68871         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68872
68873 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68874
68875         Add limited support for Solaris 10 ZFS-style ACLs: just enough to
68876         handle file_has_acl.
68877         * lib/acl-internal.h, lib/acl_entries.c, lib/file-has-acl.c: New files.
68878         * lib/acl.c: Move header inclusions and related macro defns into
68879         lib/acl-internal.h.
68880         (S_ISLNK): Remove defn, since that's now done for us.
68881         (file_has_acl): Move to lib/file-has-acl.c.
68882         Call acl_trivial if available.  This is the crucial part of the fix.
68883         (acl_entries): Move to lib/acl_entries.c.  Now extern, since it's
68884         shared within the library.  Rewrite a bit, partly to make it compatible
68885         with the GNU coding style.
68886         * m4/acl.m4 (AC_FUNC_ACL): Add AC_LIBOBJ([file-has-acl]).
68887         Remove unnecessary double-quotes.
68888         Don't test for acl_to_text; the build will catch that.
68889         Replace acl_entries if it doesn't exist and it is needed.
68890         Check for -lsec and acl_trivial (as used on Solaris 10).
68891         * modules/acl (Files): Add lib/acl-internal.h, lib/acl_entries.c,
68892         lib/file-has-acl.c.
68893         (Depends-on): Add sys_stat, for S_ISLNK.
68894
68895 2007-03-19  Ben Pfaff  <blp@gnu.org>
68896
68897         * doc/gnulib.texi: Fix typos.
68898         Suggested by Thien-Thi Nguyen <ttn@gnuvola.org>.
68899
68900 2007-03-19  Paul Eggert  <eggert@cs.ucla.edu>
68901
68902         * lib/getcwd.c (__getcwd): Remove redundant comparison of buf to NULL.
68903         If size is zero here, buf must be zero.
68904
68905 2007-03-19  Simon Josefsson  <simon@josefsson.org>
68906
68907         * des.c: Remove weak_keys_chksum.  Reported by Bruno Haible
68908         <bruno@clisp.org>.
68909
68910 2007-03-18  Bruno Haible  <bruno@clisp.org>
68911
68912         * lib/vasnprintf.c (VASNPRINTF): Undo first part of last patch.
68913         Suggested by Eric Blake.
68914
68915 2007-03-18  Ben Pfaff  <blp@gnu.org>
68916
68917         * doc/relocatable.texi: Recommend using as prefix a directory
68918         that does not exist and will never be created.  Based on
68919         discussion with Bruno Haible, Ralf Wildenhues, Matthew Woehlke,
68920         and others.
68921
68922 2007-03-17  Bruno Haible  <bruno@clisp.org>
68923
68924         * lib/fchownat.c: Include lchown.h.
68925
68926 2007-03-17  Bruno Haible  <bruno@clisp.org>
68927
68928         Fix endless loop when the given allocated size was > INT_MAX.
68929         * lib/vasnprintf.c (EOVERFLOW): New fallback definition.
68930         (VASNPRINTF): Fail with EOVERFLOW when the given allocated size is
68931         larger than INT_MAX, or when it grow to a value larger than INT_MAX.
68932         * lib/vsprintf.c (vsprintf): Don't pass a size > INT_MAX to vasnprintf.
68933         * lib/sprintf.c (sprintf): Likewise.
68934
68935 2007-03-17  Bruno Haible  <bruno@clisp.org>
68936
68937         * tests/test-argp-2.sh (func_compare): Output a context diff.
68938
68939 2007-03-17  Bruno Haible  <bruno@clisp.org>
68940
68941         * m4/locale-fr.m4 (gt_LOCALE_FR, gt_LOCALE_FR_UTF8): Check also the
68942         locale's decimal-point character.
68943
68944 2007-03-17  Bruno Haible  <bruno@clisp.org>
68945
68946         * lib/vasnprintf.c (VASNPRINTF): Clear out the memory used for arg_mem
68947         before comparing it. Needed because on some platforms (e.g. x86) a
68948         'long double' occupies less bytes than sizeof (long double).
68949
68950 2007-03-17  Bruno Haible  <bruno@clisp.org>
68951
68952         * tests/test-crc.c (main): Make printf statements 64-bit clean.
68953         * tests/test-gc-pbkdf2-sha1.c (main): Likewise.
68954         * tests/test-getaddrinfo.c (simple): Likewise.
68955         * tests/test-read-file.c (main): Likewise.
68956
68957 2007-03-17  Bruno Haible  <bruno@clisp.org>
68958
68959         * tests/test-dirname.c (main): Make printf statements 64-bit clean.
68960
68961 2007-03-17  Bruno Haible  <bruno@clisp.org>
68962
68963         * tests/test-xvasprintf.c (test_xvasprintf, test_xasprintf): Remove
68964         unused variable.
68965
68966 2007-03-17  Bruno Haible  <bruno@clisp.org>
68967
68968         * tests/test-c-strcasecmp.c: Include c-strcase.h.
68969         * tests/test-c-strncasecmp.c: Likewise.
68970
68971 2007-03-17  Bruno Haible  <bruno@clisp.org>
68972
68973         * modules/stdlib (Depends-on): Add unistd.
68974         * lib/stdlib_.h: Include <unistd.h> if mkstemp is desired.
68975         Needed for MacOS X 10.3.
68976
68977 2007-03-17  Bruno Haible  <bruno@clisp.org>
68978
68979         * lib/unistr/u-strdup.h: Include <stdlib.h>.
68980
68981 2007-03-17  Bruno Haible  <bruno@clisp.org>
68982
68983         * lib/unistr/u-cpy-alloc.h: Include <stdlib.h>.
68984
68985 2007-03-17  Bruno Haible  <bruno@clisp.org>
68986
68987         * gnulib-tool (func_import): Update .cvsignore and .gitignore files
68988         to reflect files copied from gnulib (with or without modifications).
68989         Suggested by Jim Meyering.
68990
68991 2007-03-17  Eric Blake  <ebb9@byu.net>
68992
68993         * NEWS: Document stdlib change from 2007-02-18.
68994
68995 2007-03-17  Jim Meyering  <jim@meyering.net>
68996
68997         Detect use of AC_CONFIG_AUX_DIR also when its argument is quoted.
68998         * build-aux/bootstrap: Put ""s around use of $build_aux, in case
68999         someone uses a name containing shell meta-characters.
69000         Reported by Alfred M. Szmidt.
69001
69002         * build-aux/bootstrap: Don't use \> in grep regexp.  For HP-UX.
69003
69004 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
69005
69006         * build-aux/bootstrap (with_gettext): New variable.  Run autopoint
69007         and copy gettext configuration files only if configure.ac contains
69008         a use of AM_GNU_GETTEXT_VERSION.
69009
69010 2007-03-16  Alfred M. Szmidt  <ams@gnu.org>
69011
69012         * build-aux/bootstrap (gnulib_name): New variable.
69013         (gnulib_tool_options): Use it.
69014
69015 2007-03-13  Simon Josefsson  <simon@josefsson.org>
69016
69017         * tests/test-des.c: Use new namespace.
69018
69019 2007-03-15  Bruno Haible  <bruno@clisp.org>
69020
69021         * lib/dummy.c (gl_dummy_symbol): Renamed from 'dummy'.
69022         Reported by James Youngman <jay@gnu.org>.
69023
69024 2007-03-15  Bruno Haible  <bruno@clisp.org>
69025
69026         * lib/glob.c (glob): Add 'restrict' so that prototype matches the
69027         declared prototype. Needed with cc on OSF/1 5.1.
69028
69029 2007-03-15  Bruno Haible  <bruno@clisp.org>
69030
69031         * lib/gl_list.h (gl_listelement_dispose_fn): New type.
69032         (gl_list_create_empty, gl_list_create): Add dispose_fn argument.
69033         (struct gl_list_implementation): Add dispose_fn argument to the
69034         'create_empty', 'create' methods.
69035         (struct gl_list_impl_base): Add field 'dispose_fn'.
69036         * lib/gl_list.c (gl_list_create_empty, gl_list_create): Add dispose_fn
69037         argument.
69038         * lib/gl_array_list.c (gl_array_create_empty, gl_array_create): Add
69039         dispose_fn argument.
69040         (gl_array_remove_node, gl_array_remove_at, gl_array_list_free): Call
69041         dispose_fn on the dropped values.
69042         * lib/gl_carray_list.c (gl_carray_create_empty, gl_carray_create): Add
69043         dispose_fn argument.
69044         (gl_carray_remove_at, gl_carray_list_free): Call dispose_fn on the
69045         dropped values.
69046         * lib/gl_anyavltree_list2.h (gl_tree_create): Add dispose_fn argument.
69047         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69048         * lib/gl_anyrbtree_list2.h (gl_tree_create): Add dispose_fn argument.
69049         (gl_tree_remove_node): Call dispose_fn on the dropped value.
69050         * lib/gl_anytree_list2.h (gl_tree_create_empty): Add dispose_fn
69051         argument.
69052         (gl_tree_list_free): Call dispose_fn on the dropped values.
69053         * lib/gl_anytreehash_list2.h (gl_tree_list_free): Call dispose_fn on
69054         the dropped values.
69055         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
69056         Add dispose_fn argument.
69057         (gl_linked_remove_node, gl_linked_remove_at, gl_linked_list_free):
69058         Call dispose_fn on the dropped values.
69059         * lib/gl_sublist.c (gl_sublist_create_empty, gl_sublist_create_fill):
69060         Add dispose_fn argument.
69061         (gl_sublist_create): Initialize the 'dispose_fn' field.
69062         * lib/clean-temp.c (create_temp_dir, register_fd): Update.
69063         * tests/test-array_list.c (main): Update.
69064         * tests/test-carray_list.c (main): Update.
69065         * tests/test-avltree_list.c (main): Update.
69066         * tests/test-rbtree_list.c (main): Update.
69067         * tests/test-avltreehash_list.c (main): Update.
69068         * tests/test-rbtreehash_list.c (main): Update.
69069         * tests/test-linked_list.c (main): Update.
69070         * tests/test-linkedhash_list.c (main): Update.
69071         * tests/test-array_oset.c (main): Update.
69072
69073 2007-03-15  Bruno Haible  <bruno@clisp.org>
69074
69075         * lib/gl_oset.h (gl_setelement_dispose_fn): New type.
69076         (gl_oset_create_empty): Add dispose_fn argument.
69077         (struct gl_oset_implementation): Add dispose_fn argument to
69078         'create_empty' method.
69079         (struct gl_oset_impl_base): Add dispose_fn field.
69080         * lib/gl_oset.c (gl_oset_create_empty): Add dispose_fn argument.
69081         * lib/gl_array_oset.c (gl_array_create_empty): Add dispose_fn argument.
69082         (gl_array_remove_at, gl_array_free): Call dispose_fn on the dropped
69083         values.
69084         * lib/gl_anytree_oset.h (gl_tree_create_empty): Add dispose_fn argument.
69085         (gl_tree_oset_free): Call dispose_fn on the dropped values.
69086         * lib/gl_avltree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69087         dropped value.
69088         * lib/gl_rbtree_oset.c (gl_tree_remove_node): Call dispose_fn on the
69089         dropped value.
69090         * tests/test-array_oset.c (main): Update.
69091         * tests/test-avltree_oset.c (main): Update.
69092         * tests/test-rbtree_oset.c (main): Update.
69093         * lib/gl_anytreehash_list1.h (add_to_bucket): Update.
69094
69095 2007-03-13  Bruno Haible  <bruno@clisp.org>
69096
69097         * tests/test-stdbool.c (i): Update after last patch.
69098
69099 2007-03-12  Bruno Haible  <bruno@clisp.org>
69100
69101         * lib/quotearg.c: Include <wctype.h> early, before the definition of
69102         the iswprint macro. Needed on Solaris 2.5.1.
69103
69104 2007-03-12  Bruno Haible  <bruno@clisp.org>
69105
69106         * tests/test-printf-frexp.c (main): Declare x as volatile.
69107
69108 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69109
69110         * doc/gnulib.texi (Build robot for gnulib): New section.
69111
69112 2007-03-12  Jim Meyering  <jim@meyering.net>
69113
69114         * build-aux/bootstrap: New file.
69115         * build-aux/bootstrap.conf: New file, from coreutils.
69116
69117 2007-03-11  Bruno Haible  <bruno@clisp.org>
69118
69119         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Require AC_C_INLINE.
69120
69121 2007-03-12  Simon Josefsson  <simon@josefsson.org>
69122
69123         * lib/des.h, lib/des.c, lib/gc-gnulib.c: Use gl_ namespace, to
69124         avoid collisions with 'des_setkey'.  Reported by Bruno Haible
69125         <bruno@clisp.org>.  Also change 'tripledes_' to '3des_'.
69126
69127 2007-03-11  Bruno Haible  <bruno@clisp.org>
69128
69129         * m4/locale-tr.m4 (gt_LOCALE_TR_UTF8): If the test program fails to
69130         compile, set LOCALE_TR_UTF8 to 'none' instead of empty.
69131
69132 2007-03-11  Bruno Haible  <bruno@clisp.org>
69133
69134         * lib/stdint_.h (INT64_MIN, INTMAX_MIN): Avoid using the ~INT..._MAX
69135         formula. Needed for SunPRO C 5.0.
69136
69137 2007-03-11  Bruno Haible  <bruno@clisp.org>
69138
69139         * modules/long-options (Depends-on): Add getopt.
69140
69141 2007-03-11  Bruno Haible  <bruno@clisp.org>
69142
69143         * modules/modechange (Depends-on): Add stdbool.
69144
69145 2007-03-11  Bruno Haible  <bruno@clisp.org>
69146
69147         * modules/i-ring (Depends-on): Add stdbool.
69148
69149 2007-03-11  Bruno Haible  <bruno@clisp.org>
69150
69151         * modules/gc-des (Depends-on): Add stdbool.
69152
69153 2007-03-11  Bruno Haible  <bruno@clisp.org>
69154
69155         * m4/mktime.m4 (gl_PREREQ_MKTIME): Require AC_C_INLINE.
69156
69157 2007-03-11  Bruno Haible  <bruno@clisp.org>
69158
69159         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Require AC_C_RESTRICT.
69160
69161 2007-03-11  Bruno Haible  <bruno@clisp.org>
69162
69163         * lib/unistr/u32-mbtouc-unsafe.c (u32_mbtouc_unsafe): Fix syntax error.
69164
69165 2007-03-11  Bruno Haible  <bruno@clisp.org>
69166
69167         * lib/vasnprintf.c (sprintf): Undefine.
69168
69169 2007-03-11  Bruno Haible  <bruno@clisp.org>
69170
69171         * lib/isnan.c (rpl_isnan, rpl_isnanl): Work around bug regarding
69172         initializers in SunPRO C and Compaq C compilers.
69173
69174 2007-03-11  Bruno Haible  <bruno@clisp.org>
69175
69176         * lib/gl_array_oset.c (gl_array_iterator_next): Make pointer
69177         decrementing code ANSI C compliant.
69178
69179 2007-03-11  Bruno Haible  <bruno@clisp.org>
69180
69181         * lib/dummy.c [__sun]: Define a dummy variable, not just a typedef.
69182         Needed for Solaris 2.5.1 ranlib and SunPRO C 5.0.
69183
69184 2007-03-11  Bruno Haible  <bruno@clisp.org>
69185
69186         * tests/test-stdbool.c (s, d, e, xlcbug): Disable checks that gnulib's
69187         <stdbool.h> substitute doesn't pass.
69188
69189 2007-03-11  Bruno Haible  <bruno@clisp.org>
69190
69191         * lib/vasnprintf.c (snprintf): Undefine. Avoids an endless recursion.
69192
69193 2007-03-11  Bruno Haible  <bruno@clisp.org>
69194
69195         * gnulib-tool (func_create_megatestdir): Create also an autobuild
69196         script, for submission to autobuild.josefsson.org.
69197
69198 2007-03-10  Bruno Haible  <bruno@clisp.org>
69199
69200         * modules/canonicalize-lgpl-tests: New file.
69201         * tests/test-canonicalize-lgpl.sh: New file.
69202         * tests/test-canonicalize-lgpl.c: New file.
69203
69204         * modules/c-strcase-tests: New file.
69205         * tests/test-c-strcase.sh: New file.
69206         * tests/test-c-strcasecmp.c: New file.
69207         * tests/test-c-strncasecmp.c: New file.
69208
69209         * modules/atexit-tests: New file.
69210         * tests/test-atexit.sh: New file.
69211         * tests/test-atexit.c: New file.
69212
69213 2007-03-10  Bruno Haible  <bruno@clisp.org>
69214
69215         * tests/test-binary-io.sh: Use temporary filenames that are not so
69216         likely to clash with those of other tests (in a parallel make).
69217         * tests/test-binary-io.c: Likewise.
69218
69219 2007-03-10  Bruno Haible  <bruno@clisp.org>
69220
69221         * lib/fseterr.c (fseterr): Port to Solaris/SPARC64. Deactivate the
69222         fallback; use #error instead.
69223         Suggested by Simon Josefsson.
69224
69225 2007-03-10  Bruno Haible  <bruno@clisp.org>
69226
69227         * gnulib-tool (func_create_testdir): Treat MOSTLYCLEANFILES like
69228         CLEANFILES. Put spaces in each line of $cleaned_files, not only the
69229         first and the last.
69230
69231 2007-03-10  Bruno Haible  <bruno@clisp.org>
69232
69233         * lib/stdint_.h (uint_least64_t): Fix typo in last patch.
69234
69235 2007-03-10  Bruno Haible  <bruno@clisp.org>
69236
69237         * modules/snprintf-posix-tests (EXTRA_DIST): New variable. Needed for
69238         "make distcheck".
69239         * modules/sprintf-posix-tests (EXTRA_DIST): Likewise.
69240         * modules/vsnprintf-posix-tests (EXTRA_DIST): Likewise.
69241         * modules/vsprintf-posix-tests (EXTRA_DIST): Likewise.
69242
69243 2007-03-10  Bruno Haible  <bruno@clisp.org>
69244
69245         * modules/allocsa-tests (test_allocsa_SOURCES): Remove redundant
69246         variable.
69247         * modules/dirname-tests (test_dirname_SOURCES): Remove redundant
69248         variable.
69249
69250 2007-03-09  Eric Blake  <ebb9@byu.net>
69251         and Matthew Woehlke  <mw_triad@users.sourceforge.net>  (tiny change)
69252
69253         * lib/stdint_.h (int64_t, uint64_t): Don't undefine if 64-bit
69254         types are not being provided by gnulib.
69255         (GL_INT64_T, GL_UINT64_T): New witnesses of whether gnulib 64-bit
69256         types are supported.
69257
69258 2007-03-10  Bruno Haible  <bruno@clisp.org>
69259
69260         * lib/stdio_.h (__attribute__): New macro.
69261         (fprintf, vfprintf, printf, vprintf, snprintf, vsnprintf, sprintf,
69262         vsprintf): Specify __attribute__ __format__ for GCC.
69263         Suggested by Eric Blake.
69264
69265 2007-03-09  Bruno Haible  <bruno@clisp.org>
69266
69267         * modules/printf-posix-tests: New file.
69268         * tests/test-printf-posix.sh: New file.
69269         * tests/test-printf-posix.c: New file.
69270
69271         * modules/printf-posix: New file.
69272         * lib/printf.c: New file.
69273         * m4/printf-posix-rpl.m4: New file.
69274         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_PRINTF_POSIX,
69275         REPLACE_PRINTF.
69276         * lib/stdio_.h (printf): New declaration.
69277         (format, __format__, ____printf____, ____scanf____, ____strftime____,
69278         ____strfmon____): New macros.
69279         * modules/stdio (Makefile.am): Substitute also GNULIB_PRINTF_POSIX,
69280         REPLACE_PRINTF.
69281
69282 2007-03-09  Bruno Haible  <bruno@clisp.org>
69283
69284         * tests/test-vasnprintf-posix2.sh: New file.
69285         * tests/test-vasnprintf-posix2.c: New file.
69286         * modules/vasnprintf-posix-tests (Files): Add them and m4/locale-fr.m4.
69287         (configure.ac): Invoke gt_LOCALE_FR and gt_LOCALE_FR_UTF8.
69288         (Makefile.am): Activate test-vasnprintf-posix2.sh.
69289
69290         * lib/vasnprintf.c (VASNPRINTF): For the 'a' and 'A' directives, use
69291         a locale dependent decimal point, rather than always '.'.
69292
69293 2007-03-09  Eric Blake  <ebb9@byu.net>
69294
69295         * lib/stdlib_.h (EXIT_FAILURE): GNU code expects this to be 1, in
69296         spite of platforms like Tandem/NSK that define it to -1.
69297
69298 2007-03-08  Bruno Haible  <bruno@clisp.org>
69299
69300         * modules/vprintf-posix-tests: New file.
69301         * tests/test-vprintf-posix.sh: New file.
69302         * tests/test-vprintf-posix.c: New file.
69303         * tests/test-printf-posix.h: New file.
69304
69305         * modules/vprintf-posix: New file.
69306         * lib/vprintf.c: New file.
69307         * m4/vprintf-posix.m4: New file.
69308         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VPRINTF_POSIX,
69309         REPLACE_VPRINTF.
69310         * lib/stdio_.h (vprintf): New declaration.
69311         * modules/stdio (Makefile.am): Substitute also GNULIB_VPRINTF_POSIX,
69312         REPLACE_VPRINTF.
69313
69314 2007-03-08  Bruno Haible  <bruno@clisp.org>
69315
69316         * modules/fprintf-posix-tests: New file.
69317         * tests/test-fprintf-posix.sh: New file.
69318         * tests/test-fprintf-posix.c: New file.
69319
69320         * modules/fprintf-posix: New file.
69321         * lib/fprintf.c: New file.
69322         * m4/fprintf-posix.m4: New file.
69323         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_FPRINTF_POSIX,
69324         REPLACE_FPRINTF.
69325         * lib/stdio_.h (fprintf): New declaration.
69326         * modules/stdio (Makefile.am): Substitute also GNULIB_FPRINTF_POSIX,
69327         REPLACE_FPRINTF.
69328
69329 2007-03-08  Bruno Haible  <bruno@clisp.org>
69330
69331         * modules/vfprintf-posix-tests: New file.
69332         * tests/test-vfprintf-posix.sh: New file.
69333         * tests/test-vfprintf-posix.c: New file.
69334         * tests/test-fprintf-posix.h: New file.
69335         * tests/test-fprintf-posix.out: New file.
69336
69337         * modules/vfprintf-posix: New file.
69338         * lib/vfprintf.c: New file.
69339         * m4/vfprintf-posix.m4: New file.
69340         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VFPRINTF_POSIX,
69341         REPLACE_VFPRINTF.
69342         * lib/stdio_.h (vfprintf): New declaration.
69343         * modules/stdio (Makefile.am): Substitute also GNULIB_VFPRINTF_POSIX,
69344         REPLACE_VFPRINTF.
69345
69346 2007-03-08  Bruno Haible  <bruno@clisp.org>
69347
69348         * lib/stdio_.h: Treat __need___FILE like __need_FILE.
69349
69350 2007-03-08  Bruno Haible  <bruno@clisp.org>
69351
69352         * m4/snprintf-posix.m4 (gl_FUNC_SNPRINTF_POSIX): Use 'case' statements
69353         instead of 'expr' invocations.
69354         * m4/sprintf-posix.m4 (gl_FUNC_SPRINTF_POSIX): Likewise.
69355         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Likewise.
69356         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): Likewise.
69357         * m4/vsnprintf-posix.m4 (gl_FUNC_VSNPRINTF_POSIX): Likewise.
69358         * m4/vsprintf-posix.m4 (gl_FUNC_VSPRINTF_POSIX): Likewise.
69359         Suggested by Paul Eggert.
69360
69361 2007-03-08  Bruno Haible  <bruno@clisp.org>
69362
69363         * modules/fseterr-tests: New file.
69364         * tests/test-fseterr.c: New file.
69365
69366         * modules/fseterr: New file.
69367         * lib/fseterr.h: New file.
69368         * lib/fseterr.c: New file.
69369
69370 2007-03-08  Bruno Haible  <bruno@clisp.org>
69371
69372         * lib/fnmatch_.h: Convert tabs in the middle of lines to spaces.
69373         * lib/getopt_.h: Likewise.
69374         * lib/mbswidth.h: Likewise.
69375         * lib/setenv.h: Likewise.
69376         * lib/vasnprintf.h: Likewise.
69377         * lib/vasprintf.h: Likewise.
69378         * lib/verror.h: Likewise.
69379         * lib/xsetenv.h: Likewise.
69380         * lib/xvasprintf.h: Likewise.
69381
69382 2007-03-08  Jim Meyering  <jim@meyering.net>
69383
69384         * users.txt: Add parted.
69385
69386         * ChangeLog: Restore 1500 lines mistakenly removed from the end.
69387
69388 2007-03-07  Bruno Haible  <bruno@clisp.org>
69389
69390         * m4/printf.m4: Make the shell script snippets copy&pastable.
69391
69392 2007-03-02  Bruno Haible  <bruno@clisp.org>
69393
69394         * lib/netinet_in_.h: New file.
69395         * m4/netinet_in_h.m4 (gl_HEADER_NETINET_IN): Test whether netinet/in.h
69396         is self-contained. Set ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H.
69397         * modules/netinet_in (Files): Add lib/netinet_in_.h.
69398         (Depends-on): Add absolute-header.
69399         (Makefile.am): Substitute ABSOLUTE_NETINET_IN_H, HAVE_NETINET_IN_H
69400         into netinet/in.h.
69401
69402 2007-03-03  Bruno Haible  <bruno@clisp.org>
69403
69404         * lib/sys_select_.h: New file.
69405         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SELECT): Test whether sys/select.h
69406         is self-contained. Set ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H.
69407         * modules/sys_select (Files): Add lib/sys_select_.h.
69408         (Depends-on): Add absolute-header.
69409         (Makefile.am): Substitute ABSOLUTE_SYS_SELECT_H, HAVE_SYS_SELECT_H
69410         into sys/select.h.
69411
69412 2007-03-02  Bruno Haible  <bruno@clisp.org>
69413
69414         * lib/socket_.h: If sys/socket.h exists, include that and <sys/types.h>
69415         before it. Turn HAVE_WINSOCK2_H and HAVE_WS2TCPIP_H into configute-time
69416         values.
69417         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Test also whether
69418         <sys/socket.h> is self-contained. Set ABSOLUTE_SYS_SOCKET_H,
69419         HAVE_SYS_SOCKET_H, HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H.
69420         * modules/sys_socket (Depends-on): Add absolute-header.
69421         (Makefile.am): Substitute ABSOLUTE_SYS_SOCKET_H, HAVE_SYS_SOCKET_H,
69422         HAVE_WINSOCK2_H, HAVE_WS2TCPIP_H into sys/socket.h.
69423         (Include): Remove requirement of inclusion of <sys/types.h>.
69424
69425 2007-03-02  Bruno Haible  <bruno@clisp.org>
69426
69427         * lib/byteswap_.h (bswap_32): Fix formula.
69428
69429 2007-03-06  Bruno Haible  <bruno@clisp.org>
69430
69431         * modules/sprintf-posix-tests: New file.
69432         * tests/test-sprintf-posix.c: New file.
69433
69434         * modules/sprintf-posix: New file.
69435         * lib/sprintf.c: New file.
69436         * m4/sprintf-posix.m4: New file.
69437         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_SPRINTF_POSIX,
69438         REPLACE_SPRINTF.
69439         * lib/stdio_.h (sprintf): New declaration.
69440         * modules/stdio (Makefile.am): Substitute also GNULIB_SPRINTF_POSIX,
69441         REPLACE_SPRINTF.
69442
69443 2007-03-06  Bruno Haible  <bruno@clisp.org>
69444
69445         * modules/vsprintf-posix-tests: New file.
69446         * tests/test-vsprintf-posix.c: New file.
69447         * tests/test-sprintf-posix.h: New file.
69448
69449         * modules/vsprintf-posix: New file.
69450         * lib/vsprintf.c: New file.
69451         * m4/vsprintf-posix.m4: New file.
69452         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also GNULIB_VSPRINTF_POSIX,
69453         REPLACE_VSPRINTF.
69454         * lib/stdio_.h (vsprintf): New declaration.
69455         * modules/stdio (Makefile.am): Substitute also GNULIB_VSPRINTF_POSIX,
69456         REPLACE_VSPRINTF.
69457
69458 2007-03-06  Bruno Haible  <bruno@clisp.org>
69459
69460         * modules/vsnprintf (Depend-on): Remove minmax.
69461
69462 2007-03-06  Bruno Haible  <bruno@clisp.org>
69463
69464         * modules/snprintf-posix-tests: New file.
69465         * tests/test-snprintf-posix.c: New file.
69466
69467         * modules/snprintf-posix: New file.
69468         * m4/snprintf-posix.m4: New file.
69469         * m4/snprintf.m4 (gl_REPLACE_SNPRINTF): New macro, extracted from
69470         gl_FUNC_SNPRINTF.
69471         (gl_FUNC_SNPRINTF): Invoke it.
69472         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_SNPRINTF.
69473         * lib/stdio_.h (snprintf): Define as a replacement if REPLACE_SNPRINTF
69474         is set.
69475         * modules/stdio (Makefile.am): Substitute also REPLACE_SNPRINTF.
69476
69477 2007-03-06  Bruno Haible  <bruno@clisp.org>
69478
69479         * modules/vsnprintf-posix-tests: New file.
69480         * tests/test-vsnprintf-posix.c: New file.
69481         * tests/test-snprintf-posix.h: New file.
69482
69483         * modules/vsnprintf-posix: New file.
69484         * m4/vsnprintf-posix.m4: New file.
69485         * m4/vsnprintf.m4 (gl_REPLACE_VSNPRINTF): New macro, extracted from
69486         gl_FUNC_VSNPRINTF.
69487         (gl_FUNC_VSNPRINTF): Invoke it.
69488         * m4/stdio_h.m4 (gl_STDIO_H_DEFAULTS): Set also REPLACE_VSNPRINTF.
69489         * lib/stdio_.h (vsnprintf): Define as a replacement if
69490         REPLACE_VSNPRINTF is set.
69491         * modules/stdio (Makefile.am): Substitute also REPLACE_VSNPRINTF.
69492
69493 2007-03-06  Bruno Haible  <bruno@clisp.org>
69494
69495         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Test for vasnprintf here.
69496         * m4/vasprintf-posix.m4 (gl_FUNC_VASPRINTF_POSIX): ... not here.
69497
69498 2007-03-06  Bruno Haible  <bruno@clisp.org>
69499
69500         * lib/math_.h (acosl): Declare also if HAVE_DECL_ACOSL is set.
69501         (asinl): Declare also if HAVE_DECL_ASINL is set.
69502         (atanl): Declare also if HAVE_DECL_ATANL is set.
69503         (ceill): Declare also if HAVE_DECL_CEILL is set.
69504         (cosl): Declare also if HAVE_DECL_COSL is set.
69505         (expl): Declare also if HAVE_DECL_EXPL is set.
69506         (floorl): Declare also if HAVE_DECL_FLOORL is set.
69507         (frexpl): Declare also if HAVE_DECL_FREXPL is set.
69508         (ldexpl): Declare also if HAVE_DECL_LDEXPL is set.
69509         (logl): Declare also if HAVE_DECL_LOGL is set.
69510         (sinl): Declare also if HAVE_DECL_SINL is set.
69511         (sqrtl): Declare also if HAVE_DECL_SQRTL is set.
69512         (tanl): Declare also if HAVE_DECL_TANL is set.
69513         * modules/math (Makefile.am): Substitute the values of HAVE_DECL_*.
69514         * m4/math_h.m4 (gl_MATH_H_DEFAULTS): Set HAVE_DECL_* to 1.
69515         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Fix tests for the
69516         declaration of frexpl, ldexpl.
69517         * modules/printf-frexpl (Depends-on): Add math.
69518         * lib/printf-frexp.c (frexpl, ldexpl): Undo last change.
69519
69520 2007-03-05  Bruno Haible  <bruno@clisp.org>
69521
69522         * m4/printf-frexpl.m4 (gl_FUNC_PRINTF_FREXPL): Also test whether
69523         frexpl and ldexpl are declared.
69524         * lib/printf-frexp.c (frexpl, ldexpl): Provide fallback declarations.
69525
69526 2007-03-05  Bruno Haible  <bruno@clisp.org>
69527
69528         * gnulib-tool (func_get_automake_snippet): Don't synthesize an
69529         EXTRA_lib_SOURCES augmentation for the relocatable-prog-wrapper module.
69530
69531 2007-03-05  Bruno Haible  <bruno@clisp.org>
69532
69533         * lib/stdio_.h: Include <stddef.h>.
69534
69535 2007-03-05  Bruno Haible  <bruno@clisp.org>
69536
69537         * m4/printf.m4 (gl_SNPRINTF_DIRECTIVE_N): New macro.
69538
69539 2007-03-05  Bruno Haible  <bruno@clisp.org>
69540
69541         * m4/printf.m4: Update with info about OpenBSD 3.9, HP-UX 10.20,
69542         NetBSD 4, from Ralf Wildenhues.
69543
69544 2007-03-04  Bruno Haible  <bruno@clisp.org>
69545
69546         * lib/vasprintf.h: Update #if logic for the case when the functions
69547         exist but are overridden.
69548
69549 2007-03-04  Bruno Haible  <bruno@clisp.org>
69550
69551         * m4/printf.m4 (gl_PRINTF_DIRECTIVE_A): Exclude two buggy
69552         implementations: glibc-2.4 and MacOS X 10.3.
69553         * tests/test-vasnprintf-posix.c (test_function): Test also the case
69554         that exhibits the bugs in glibc-2.4 and MacOS X 10.3.
69555         * tests/test-vasprintf-posix.c (test_function): Likewise.
69556
69557 2007-03-04  Bruno Haible  <bruno@clisp.org>
69558
69559         * modules/vasprintf-posix-tests: New file.
69560         * tests/test-vasprintf-posix.c: New file.
69561
69562         * modules/vasprintf-posix: New file.
69563         * lib/vasprintf.h (asprintf, vasprintf): Rename if REPLACE_VASPRINTF is
69564         defined.
69565         * m4/vasprintf-posix.m4: New file.
69566         * m4/vasprintf.m4 (gl_REPLACE_VASPRINTF): New macro, extracted from
69567         gl_FUNC_VASPRINTF.
69568         (gl_FUNC_VASPRINTF): Invoke it.
69569         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): Define REPLACE_VASNPRINTF
69570         here.
69571         * m4/vasnprintf-posix.m4 (gl_FUNC_VASNPRINTF_POSIX): Not here.
69572
69573 2007-03-04  Bruno Haible  <bruno@clisp.org>
69574
69575         * lib/sys_time_.h: Rename GETTIMEOFDAY_REPLACEMENT to
69576         REPLACE_GETTIMEOFDAY.
69577         * modules/sys_time (Makefile.am): Likewise.
69578         * m4/sys_time_h.m4: Likewise.
69579         * m4/gettimeofday.m4: Likewise.
69580
69581 2007-03-04  Bruno Haible  <bruno@clisp.org>
69582
69583         * modules/vasnprintf-posix-tests: New file.
69584         * tests/test-vasnprintf-posix.c: New file.
69585
69586         * modules/vasnprintf-posix: New file.
69587         * lib/vasnprintf.c: Include isnan.h, isnanl.h, printf-frexp.h,
69588         printf-frexpl.h.
69589         (VASNPRINTF): Handle the 'a' and 'A' directives here, if needed.
69590         * lib/vasnprintf.h (asnprintf, vasnprintf): Rename if
69591         REPLACE_VASNPRINTF is defined.
69592         * m4/vasnprintf.m4 (gl_REPLACE_VASNPRINTF): New macro, extracted from
69593         gl_FUNC_VASNPRINTF.
69594         (gl_FUNC_VASNPRINTF): Invoke it.
69595         * m4/vasnprintf-posix.m4: New file.
69596         * m4/printf.m4: New file.
69597
69598 2007-03-04  Bruno Haible  <bruno@clisp.org>
69599
69600         Compile progreloc.c only if --enable-relocatable is specified.
69601         * m4/relocatable.m4 (gl_RELOCATABLE): Arrange to compile progreloc.c
69602         if --enable-relocatable was specified.
69603         * modules/relocatable-prog (Makefile.am): Remove progreloc.c from
69604         lib_SOURCES.
69605
69606 2007-03-04  Jim Meyering  <jim@meyering.net>
69607
69608         * lib/acl.c (ACL_NOT_WELL_SUPPORTED): New macro.
69609         Use it consistently, rather than enumerating errno constants.
69610
69611 2007-03-04  Bruno Haible  <bruno@clisp.org>
69612
69613         * modules/xvasprintf-tests: New file.
69614         * tests/test-xvasprintf.c: New file.
69615
69616         * modules/vasprintf-tests: New file.
69617         * tests/test-vasprintf.c: New file.
69618
69619         * modules/vasnprintf-tests: New file.
69620         * tests/test-vasnprintf.c: New file.
69621
69622         * modules/vsnprintf-tests: New file.
69623         * tests/test-vsnprintf.c: New file.
69624
69625         * modules/snprintf-tests: New file.
69626         * tests/test-snprintf.c: New file.
69627
69628 2007-03-04  Bruno Haible  <bruno@clisp.org>
69629
69630         Compile relocatable.c only if --enable-relocatable is specified.
69631         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY_BODY): Renamed from
69632         gl_RELOCATABLE_LIBRARY.
69633         (gl_RELOCATABLE_LIBRARY, gl_RELOCATABLE_LIBRARY_SEPARATE): New macros.
69634         * m4/relocatable.m4 (gl_RELOCATABLE): Invoke gl_RELOCATABLE_LIBRARY.
69635         (gl_RELOCATABLE_BODY): Require gl_RELOCATABLE_LIBRARY_BODY instead of
69636         gl_RELOCATABLE_LIBRARY.
69637         * modules/relocatable-lib (configure.ac): Invoke gl_RELOCATABLE_LIBRARY.
69638         (Makefile.am): Remove lib_SOURCES.
69639         * modules/relocatable-lib-lgpl (configure.ac): Invoke
69640         gl_RELOCATABLE_LIBRARY.
69641         (Makefile.am): Remove lib_SOURCES.
69642         * modules/relocatable-prog (Makefile.am): Don't compile relocatable.c
69643         always.
69644         * modules/relocatable-prog-wrapper (configure.ac): Invoke
69645         gl_RELOCATABLE_LIBRARY_SEPARATE instead of gl_RELOCATABLE_LIBRARY.
69646
69647 2007-03-04  Bruno Haible  <bruno@clisp.org>
69648
69649         * modules/argmatch-tests: New file.
69650         * tests/test-argmatch.c: New file.
69651
69652         * tests/test-allocsa.c (main): Halve the number of loop runs.
69653
69654         * modules/alloca-opt-tests: New file.
69655         * tests/test-alloca-opt.c: New file.
69656
69657 2007-03-04  Jim Meyering  <jim@meyering.net>
69658
69659         Work around difference between Linux ACLs and Solaris 10 ZFS.
69660         * lib/acl.c (set_acl): Revert to using chmod_or_fchmod also
69661         for EINVAL.
69662
69663 2007-03-03  Bruno Haible  <bruno@clisp.org>
69664
69665         * modules/relocatable-prog (Depends-on): Add back progreloc's
69666         dependencies: canonicalize-lgpl, xalloc, xreadlink, stdbool, unistd.
69667
69668 2007-03-03  Bruno Haible  <bruno@clisp.org>
69669
69670         * modules/relocatable-lib-lgpl: Renamed from modules/relocatable-lib.
69671         * modules/relocatable-lib: New file.
69672
69673 2007-03-03  Bruno Haible  <bruno@clisp.org>
69674
69675         * modules/relocatable-prog: Renamed from modules/relocatable.
69676         * doc/relocatable-maint.texi: Talk about module 'relocatable-prog'.
69677
69678 2007-03-03  Bruno Haible  <bruno@clisp.org>
69679
69680         * modules/relocatable-script (Files): Add doc/relocatable.texi,
69681         m4/relocatable-lib.m4.
69682         (Depends-on): Remove 'relocatable'.
69683         (configure.ac): Add gl_RELOCATABLE_NOP.
69684
69685 2007-03-03  Bruno Haible  <bruno@clisp.org>
69686
69687         * modules/relocatable-prog-wrapper: New file.
69688         * modules/relocatable (Depends-on): Add it. Remove all other
69689         dependencies except progname.
69690         (Files): Remove build-aux/install-reloc, lib/relocwrapper.c.
69691
69692         * m4/strerror.m4 (gl_FUNC_STRERROR_SEPARATE): New macro.
69693         (gl_FUNC_STRERROR): Nop.
69694         * lib/strerror.c: Compile the file only if !HAVE_STRERROR.
69695
69696         * m4/setenv.m4 (gl_FUNC_SETENV_SEPARATE): New macro.
69697         * lib/setenv.c: Compile the file only if _LIBC || !HAVE_SETENV.
69698
69699         * m4/readlink.m4 (gl_FUNC_READLINK_SEPARATE): New macro.
69700         (gl_FUNC_READLINK): Update.
69701
69702         * m4/canonicalize-lgpl.m4 (gl_CANONICALIZE_LGPL_SEPARATE): New macro.
69703
69704 2007-03-03  Bruno Haible  <bruno@clisp.org>
69705
69706         * lib/xreadlink.c: Include <unistd.h> unconditionally.
69707         * modules/xreadlink (Depends-on): Add unistd.
69708         * modules/xreadlink-with-size (Depends-on): Likewise.
69709
69710 2007-03-03  Bruno Haible  <bruno@clisp.org>
69711
69712         * m4/setenv.m4 (gl_FUNC_SETENV, gl_FUNC_UNSETENV): New macros,
69713         extracted from gt_FUNC_SETENV.
69714         (gt_FUNC_SETENV): Remove macro.
69715         * modules/setenv (configure.ac): Add gl_FUNC_SETENV, gl_FUNC_UNSETENV,
69716         remove gt_FUNC_SETENV.
69717
69718 2007-03-03  Bruno Haible  <bruno@clisp.org>
69719
69720         * m4/relocatable-lib.m4 (gl_RELOCATABLE_LIBRARY): Define
69721         ENABLE_RELOCATABLE here.
69722         * m4/relocatable.m4 (gl_RELOCATABLE_BODY): Don't define it here.
69723
69724 2007-03-03  Bruno Haible  <bruno@clisp.org>
69725
69726         * modules/rbtreehash-list-tests (Depends-on): Add progname.
69727         * tests/test-rbtreehash_list.c: Include progname.h.
69728         (main): Call set_program_name.
69729
69730         * modules/rbtree-oset-tests (Depends-on): Add progname.
69731         * tests/test-rbtree_oset.c: Include progname.h.
69732         (main): Call set_program_name.
69733
69734         * modules/rbtree-list-tests (Depends-on): Add progname.
69735         * tests/test-rbtree_list.c: Include progname.h.
69736         (main): Call set_program_name.
69737
69738         * modules/linked-list-tests (Depends-on): Add progname.
69739         * tests/test-linked_list.c: Include progname.h.
69740         (main): Call set_program_name.
69741
69742 2007-03-03  Bruno Haible  <bruno@clisp.org>
69743
69744         * lib/glob-libc.h (_Restrict_): New macro, copied from lib/regex.h.
69745         All uses of __restrict changed to _Restrict_.
69746         * lib/glob_.h (__restrict): Remove macro.
69747
69748 2007-03-02  Bruno Haible  <bruno@clisp.org>
69749
69750         * modules/gettext (configure.ac): Require gettext infrastructure
69751         from version 0.16.1.
69752
69753 2007-03-02  Bruno Haible  <bruno@clisp.org>
69754
69755         * modules/linkedhash-list-tests (Depends-on): Add progname.
69756         * tests/test-linkedhash_list.c: Include progname.h.
69757         (main): Call set_program_name.
69758
69759         * modules/carray-list-tests (Depends-on): Add progname.
69760         * tests/test-carray_list.c: Include progname.h.
69761         (main): Call set_program_name.
69762
69763         * modules/avltreehash-list-tests (Depends-on): Add progname.
69764         * tests/test-avltreehash_list.c: Include progname.h.
69765         (main): Call set_program_name.
69766
69767         * modules/avltree-oset-tests (Depends-on): Add progname.
69768         * tests/test-avltree_oset.c: Include progname.h.
69769         (main): Call set_program_name.
69770
69771         * modules/avltree-list-tests (Depends-on): Add progname.
69772         * tests/test-avltree_list.c: Include progname.h.
69773         (main): Call set_program_name.
69774
69775         * modules/array-oset-tests (Depends-on): Add progname.
69776         * tests/test-array_oset.c: Include progname.h.
69777         (main): Call set_program_name.
69778
69779         * modules/array-list-tests (Depends-on): Add progname.
69780         * tests/test-array_list.c: Include progname.h.
69781         (main): Call set_program_name.
69782
69783         * modules/argp-tests (Depends-on): Add progname.
69784         * tests/test-argp.c: Include argp.h first. Include progname.h.
69785         (main): Call set_program_name.
69786
69787 2007-03-02  Paul Eggert  <eggert@cs.ucla.edu>
69788
69789         * doc/gnulib-tool.texi (Initial import): Reword description of
69790         _FILE_OFFSET_BITS and _GNU_SOURCE, since they sometimes have a
69791         limited effect even if defined after the first system include.
69792
69793 2007-03-01  Bruno Haible  <bruno@clisp.org>
69794
69795         * build-aux/config.libpath: Update to libtool-1.5.22.
69796         Reported by Albert Chin <bug-gnulib@mlists.thewrittenword.com>.
69797
69798 2007-03-01  Bruno Haible  <bruno@clisp.org>
69799
69800         * doc/relocatable-maint.texi: Recommend to set foo_CPPFLAGS, not
69801         foo_CFLAGS.
69802         Reported by Ralf Wildenhues.
69803
69804 2007-03-01  Bruno Haible  <bruno@clisp.org>
69805
69806         * build-aux/install-reloc: Remove object files left over by some
69807         compilers.
69808         Reported by Ralf Wildenhues.
69809
69810 2007-03-01  Bruno Haible  <bruno@clisp.org>
69811
69812         * build-aux/install-reloc: Break long lines.
69813
69814 2007-03-01  Bruno Haible  <bruno@clisp.org>
69815
69816         * doc/relocatable.texi: Document that it may not work on OpenBSD.
69817         Reported by Ralf Wildenhues.
69818
69819 2007-03-01  Bruno Haible  <bruno@clisp.org>
69820
69821         * doc/gnulib-tool.texi (Initial import): Remove paragraph about
69822         include ordering constraints.
69823
69824 2007-03-01  Paul Eggert  <eggert@cs.ucla.edu>
69825
69826         Followup to the 2007-02-12 patch, using suggestions from Bruno Haible in
69827         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00136.html>.
69828         * doc/gnulib-tool.texi (Initial import): Mention _FILE_OFFSET_BITS
69829         as another example.
69830         * lib/time_.h: Fix misspelling.
69831         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
69832         Require gl_HEADER_TIME_H_DEFAULTS.
69833         * m4/strptime.m4 (gl_FUNC_STRPTIME): Likewise.
69834         * m4/time_r.m4 (gl_TIME_R): Likewise.
69835         * m4/timegm.m4 (gl_FUNC_TIMEGM): Likewise.
69836
69837 2007-03-01  Bruno Haible  <bruno@clisp.org>
69838
69839         * m4/utimecmp.m4 (gl_UTIMECMP): Don't require gl_TIMESPEC.
69840         * m4/utimens.m4 (gl_UTIMENS): Likewise.
69841
69842 2007-03-01  Jim Meyering  <jim@meyering.net>
69843
69844         * modules/xreadlink (Maintainer): Add my name.
69845         * modules/xreadlink-with-size (Depends-on): Alphabetize.
69846
69847 2007-02-26  Ben Pfaff  <blp@cs.stanford.edu>
69848             Bruno Haible  <bruno@clisp.org>
69849
69850         * build-aux/install-reloc: Compile also c-ctype.c.
69851         * build-aux/relocatable.sh.in: New file.
69852         * doc/relocatable.texi: New file.
69853         * doc/relocatable-maint.texi: New file.
69854         * doc/gnulib.texi: Include relocatable-maint.texi.
69855         * lib/progreloc.c: Include unistd.h unconditionally.
69856         * lib/relocwrapper.c: Include unistd.h unconditionally.
69857         Include c-ctype.h.
69858         (add_dotbin): Use c_tolower.
69859         * m4/relocatable-lib.m4: New file, extracted from m4/relocatable.m4.
69860         (gl_RELOCATABLE_LIBRARY): Renamed from AC_RELOCATABLE_LIBRARY.
69861         (gl_RELOCATABLE_NOP): Renamed from AC_RELOCATABLE_NOP.
69862         * m4/relocatable.m4 (AC_RELOCATABLE_LIBRARY, AC_RELOCATABLE_NOP): Move
69863         to m4/relocatable-lib.m4.
69864         (gl_RELOCATABLE): Renamed from AC_RELOCATABLE. Set also
69865         RELOCATABLE_CONFIG_H_DIR, RELOCATABLE_SRC_DIR, RELOCATABLE_BUILD_DIR.
69866         (gl_RELOCATABLE_BODY): Renamed from AC_RELOCATABLE_BODY. Don't
69867         require obsolete macro AC_EXEEXT. Don't check for unistd.h. Don't set
69868         SET_RELOCATABLE. Instead set RELOCATABLE_LDFLAGS, INSTALL_PROGRAM_ENV.
69869         * modules/relocatable: New file.
69870         * modules/relocatable-lib: New file.
69871         * modules/relocatable-script: New file.
69872
69873 2007-02-28  Bruno Haible  <bruno@clisp.org>
69874
69875         Import --enable-relocatable infrastructure.
69876         * build-aux/config.libpath: New file, from GNU gettext.
69877         * build-aux/install-reloc: New file, from GNU gettext.
69878         * build-aux/reloc-ldflags: New file, from GNU gettext.
69879         * lib/relocatable.h: New file, from GNU gettext.
69880         * lib/relocatable.c: New file, from GNU gettext.
69881         * lib/relocwrapper.c: New file, from GNU gettext.
69882         * m4/relocatable.m4: New file, from GNU gettext.
69883
69884 2007-02-28  Bruno Haible  <bruno@clisp.org>
69885
69886         * MODULES.html.sh (File system functions): Add xreadlink-with-size.
69887
69888         * modules/xreadlink: New file, from GNU gettext with modifications.
69889         * lib/xreadlink.c: New file, from GNU gettext.
69890         * lib/xreadlink.h: Add comments.
69891         (xreadlink): New declaration.
69892
69893         * modules/xreadlink-with-size: Renamed from modules/xreadlink.
69894         (Files): Remove m4/xreadlink.m4. Replace lib/xreadlink.c with
69895         lib/xreadlink-with-size.c.
69896         (configure.ac): Remove gl_XREADLINK invocation.
69897         (Makefile.am): Augment lib_SOURCES.
69898         * m4/xreadlink.m4: Remove file.
69899         * lib/xreadlink-with-size.c: Renamed from lib/xreadlink.c.
69900         (xreadlink_with_size): Renamed from xreadink.
69901         * lib/xreadlink.h (xreadlink_with_size): Renamed from xreadink.
69902         * modules/canonicalize (Depends-on): Replace xreadlink with
69903         xreadlink-with-size.
69904         * lib/canonicalize.c (canonicalize_filename_mode): Update.
69905
69906 2007-02-25  Jim Meyering  <jim@meyering.net>
69907
69908         * build-aux/announce-gen: When complaining about excess arguments,
69909         list them.
69910
69911 2007-02-25  Paul Eggert  <eggert@cs.ucla.edu>
69912
69913         * README: Document signed integer overflow situation more
69914         accurately.
69915
69916 2007-02-25  Bruno Haible  <bruno@clisp.org>
69917
69918         * lib/vasnprintf.c (VASNPRINTF): Fix estimate of size needed for a
69919         'a' or 'A' conversion.
69920
69921 2007-02-25  Bruno Haible  <bruno@clisp.org>
69922
69923         * modules/filename: Renamed from modules/pathname.
69924         (Files): Replace lib/pathname.h with lib/filename.h. Replace
69925         lib/concatpath.c with lib/concat-filename.c.
69926         (Makefile.am): Update.
69927         (Include): Replace pathname.h with filename.h.
69928         * lib/filename.h: Renamed from lib/pathname.h.
69929         (concatenated_filename): Renamed from concatenated_pathname.
69930         * lib/concat-filename.c: Renamed from lib/concatpath.c.
69931         (concatenated_filename): Renamed from concatenated_pathname.
69932         * lib/findprog.c: Include filename.h instead of pathname.h.
69933         (find_in_path): Update.
69934         * lib/javacomp.c: Include filename.h instead of pathname.h.
69935         (is_envjavac_gcj43_usable, is_envjavac_oldgcj_14_14_usable,
69936         is_envjavac_oldgcj_14_13_usable, is_envjavac_nongcj_usable,
69937         is_gcj_present, is_gcj43_usable, is_oldgcj_14_14_usable,
69938         is_oldgcj_14_13_usable, is_javac_usable): Update.
69939         * lib/javaexec.c: Include filename.h instead of pathname.h.
69940         (execute_java_class): Update.
69941         * modules/findprog: Update.
69942         * modules/javacomp: Update.
69943         * modules/javaexec: Update.
69944         * MODULES.html.sh (File system functions): Add 'filename', remove
69945         'pathname'.
69946
69947 2007-02-25  Bruno Haible  <bruno@clisp.org>
69948
69949         * modules/printf-frexpl-tests: New file.
69950         * tests/test-printf-frexpl.c: New file.
69951
69952         * modules/printf-frexpl: New file.
69953         * lib/printf-frexpl.h: New file.
69954         * lib/printf-frexpl.c: New file.
69955         * m4/printf-frexpl.m4: New file.
69956
69957 2007-02-25  Bruno Haible  <bruno@clisp.org>
69958
69959         * modules/printf-frexp-tests: New file.
69960         * tests/test-printf-frexp.c: New file.
69961
69962         * modules/printf-frexp: New file.
69963         * lib/printf-frexp.h: New file.
69964         * lib/printf-frexp.c: New file.
69965         * m4/printf-frexp.m4: New file.
69966
69967 2007-02-25  Bruno Haible  <bruno@clisp.org>
69968
69969         Assume automake >= 1.10 for the tests.
69970         * modules/arcfour-tests (TESTS): Remove $(EXEEXT) suffix.
69971         * modules/arctwo-tests: Likewise.
69972         * modules/argp-tests: Likewise.
69973         * modules/avltree-list-tests: Likewise.
69974         * modules/avltree-oset-tests: Likewise.
69975         * modules/avltreehash-list-tests: Likewise.
69976         * modules/carray-list-tests: Likewise.
69977         * modules/crc-tests: Likewise.
69978         * modules/des-tests: Likewise.
69979         * modules/gc-arcfour-tests: Likewise.
69980         * modules/gc-arctwo-tests: Likewise.
69981         * modules/gc-des-tests: Likewise.
69982         * modules/gc-hmac-md5-tests: Likewise.
69983         * modules/gc-hmac-sha1-tests: Likewise.
69984         * modules/gc-md2-tests: Likewise.
69985         * modules/gc-md4-tests: Likewise.
69986         * modules/gc-md5-tests: Likewise.
69987         * modules/gc-pbkdf2-sha1-tests: Likewise.
69988         * modules/gc-rijndael-tests: Likewise.
69989         * modules/gc-sha1-tests: Likewise.
69990         * modules/gc-tests: Likewise.
69991         * modules/getaddrinfo-tests: Likewise.
69992         * modules/hmac-md5-tests: Likewise.
69993         * modules/hmac-sha1-tests: Likewise.
69994         * modules/linked-list-tests: Likewise.
69995         * modules/linkedhash-list-tests: Likewise.
69996         * modules/lock-tests: Likewise.
69997         * modules/md2-tests: Likewise.
69998         * modules/md4-tests: Likewise.
69999         * modules/md5-tests: Likewise.
70000         * modules/rbtree-list-tests: Likewise.
70001         * modules/rbtree-oset-tests: Likewise.
70002         * modules/rbtreehash-list-tests: Likewise.
70003         * modules/read-file-tests: Likewise.
70004         * modules/rijndael-tests: Likewise.
70005         * modules/stdint-tests: Likewise.
70006         * modules/tls-tests: Likewise.
70007
70008 2007-02-24  Bruno Haible  <bruno@clisp.org>
70009
70010         * lib/isnanl.h (isnanl): Define through isnan if isnan is a macro.
70011         * m4/isnan.m4 (gl_FUNC_ISNAN_NO_LIBM): Don't check for isnan as a
70012         function; instead check whether isnan with a double argument links.
70013         * m4/isnanl.m4 (gl_FUNC_ISNANL_NO_LIBM): Don't check for isnanl as a
70014         function; instead check whether isnan with a 'long double' argument
70015         links.
70016         Reported by Eric Blake <ebb9@byu.net>.
70017
70018 2007-02-24  Bruno Haible  <bruno@clisp.org>
70019
70020         * lib/isnan.c: Support the 'long double' case if USE_LONG_DOUBLE is
70021         defined.
70022         * lib/isnanl.c: Remove all code. Just include isnan.c.
70023         * modules/isnanl-nolibm (Files): Add lib/isnan.c.
70024
70025 2007-02-25  Jim Meyering  <jim@meyering.net>
70026
70027         Avoid conflicting types for 'unsetenv' on FreeBSD.
70028         * lib/putenv.c (_unsetenv): Rename from "unsetenv", to avoid
70029         conflicting with FreeBSD's (5.0 and 6.1) function declaration
70030         in stdlib.h.
70031
70032 2007-02-24  Bruno Haible  <bruno@clisp.org>
70033
70034         * modules/isnanl-nolibm-tests: New file.
70035         * tests/test-isnanl.c: New file.
70036
70037         * modules/isnanl-nolibm: New file.
70038         * lib/isnanl.h: New file.
70039         * lib/isnanl.c: New file.
70040         * m4/isnanl.m4: New file.
70041
70042 2007-02-24  Bruno Haible  <bruno@clisp.org>
70043
70044         * modules/isnan-nolibm-tests: New file.
70045         * tests/test-isnan.c: New file.
70046
70047         * modules/isnan-nolibm: New file.
70048         * lib/isnan.h: New file.
70049         * lib/isnan.c: New file.
70050         * m4/isnan.m4: New file.
70051
70052 2007-02-24  Bruno Haible  <bruno@clisp.org>
70053
70054         * lib/frexpl.c (frexpl): Correct return values for x = 1.0L. Don't
70055         assume that an exponent fits in 20 bits.
70056
70057 2007-02-24  Jim Meyering  <jim@meyering.net>
70058
70059         * m4/regex.m4: Update the description of the configure-time option,
70060         --without-included-regex, to state accurately what the defaults are,
70061         and perhaps to give people an idea why using this option is risky.
70062
70063 2007-02-24  Paul Eggert  <eggert@cs.ucla.edu>
70064
70065         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check for a nanosleep that
70066         loops on small arguments.  This attempts to avoid the problem
70067         Bruno Haible reported for AIX 4.3.2 in
70068         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00309.html>.
70069
70070 2007-02-23  Bruno Haible  <bruno@clisp.org>
70071
70072         * m4/perl.m4 (gl_PERL): Require version 5.005, not 5.003.
70073         Needed for help2man.
70074
70075 2007-02-23  Karl Berry  <karl@gnu.org>
70076
70077         * doc/gnulib-tool.texi (CVS Issues): mention that when foo_.h
70078         exists, foo.h should be cvs-ignored, not committed.
70079
70080 2007-02-23  Eric Blake  <ebb9@byu.net>
70081
70082         * lib/getdate.h (includes):  Include <time.h>, not "timespec.h".
70083         * lib/stat-time.h (includes): Likewise.
70084         * lib/utimecmp.c (includes): Likewise.
70085         * lib/utimens.h (includes): Likewise.
70086         * lib/getdate.y (includes): Also include "timespec.h" for use
70087         internal to the module.
70088         * modules/utimens (Depends-on): Revert yesterday's patch.
70089         * modules/nanosleep (Depends-on): Add missing dependency.
70090
70091 2007-02-22  Bruno Haible  <bruno@clisp.org>
70092
70093         * lib/glob.c: Don't include getlogin_r.h.
70094
70095 2007-02-22  Jim Meyering  <jim@meyering.net>
70096
70097         * modules/utimens (Depends-on): Add timespec, required for
70098         utimens.h's inclusion of timespec.h.
70099
70100 2007-02-21  Paul Eggert  <eggert@cs.ucla.edu>
70101
70102         * lib/getcwd.c (__getcwd): Undo previous change; it mishandled
70103         long unreadable paths in GNU/Linux.  Problem reported by Andreas
70104         Schwab in
70105         <http://lists.gnu.org/archive/html/bug-gnulib/2007-02/msg00261.html>.
70106         I'll try to think of a better way to fix the Solaris problem.
70107
70108         * lib/getcwd.c (__getcwd): Don't assume getcwd (NULL, 0) works
70109         like glibc; on Solaris 10, it fails with errno == EINVAL.
70110         POSIX says the behavior is unspecified if the first argument is NULL,
70111         so play it safe and never pass NULL to the system getcwd.
70112
70113 2007-02-21  Jim Meyering  <jim@meyering.net>
70114
70115         * lib/gettimeofday.c (rpl_gettimeofday): Remove declaration
70116         of gettimeofday.  It would conflict with the one now always
70117         provided via sys_time_.h.  Reported by Matthew Woehlke, as
70118         an IRIX 6.5 build failure.
70119
70120 2007-02-20  Paul Eggert  <eggert@cs.ucla.edu>
70121
70122         Minor fixups to port to Solaris 10 with Sun C 5.8.
70123         * lib/getcwd.c [!_LIBC]: Include dirfd.h, since we use dirfd.
70124         * modules/getcwd (Depends-on): Add dirfd.
70125         * lib/putenv.c (putenv): #undef it.
70126         (rpl_putenv): New decl.
70127         (malloc, free): Include <stdlib.h> rather than prototyping separately.
70128
70129 2007-02-20  Bruno Haible  <bruno@clisp.org>
70130
70131         * modules/stdio-tests: New file.
70132         * tests/test-stdio.c: New file.
70133
70134         * modules/vsnprintf (Files): Remove lib/vsnprintf.h.
70135         (Depends-on): Add stdio.
70136         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70137         (Include): Use <stdio.h> instead of vsnprintf.h.
70138         * m4/vsnprintf.m4 (gl_FUNC_VSNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70139         HAVE_DECL_VSNPRINTF.
70140         * lib/vsnprintf.c: Include <stdio.h> instead of vsnprintf.h.
70141
70142         * modules/snprintf (Files): Remove lib/snprintf.h.
70143         (Depends-on): Add stdio.
70144         (configure.ac): Invoke gl_STDIO_MODULE_INDICATOR.
70145         (Include): Use <stdio.h> instead of snprintf.h.
70146         * m4/snprintf.m4 (gl_FUNC_SNPRINTF): Require gl_STDIO_H_DEFAULTS. Set
70147         HAVE_DECL_SNPRINTF.
70148         * lib/snprintf.c: Include <stdio.h> instead of snprintf.h.
70149         * lib/getaddrinfo.c: Likewise.
70150
70151         * modules/stdio: New file.
70152         * lib/stdio_.h: New file, incorporating snprintf.h and vsnprintf.h.
70153         * lib/snprintf.h: Remove file.
70154         * lib/vsnprintf.h: Remove file.
70155         * lib/.cppi-disable: Remove snprintf.h.
70156         * m4/stdio_h.m4: New file.
70157         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdio.
70158
70159 2007-02-20  Jim Meyering  <jim@meyering.net>
70160
70161         * lib/ftruncate.c [HAVE_CHSIZE]: Document that this code is
70162         used by e.g., mingw.  From Bruno Haible.
70163
70164 2007-02-19  Bruno Haible  <bruno@clisp.org>
70165
70166         * lib/string_.h: Use "#pragma GCC system_header" to suppress some gcc
70167         warnings.
70168         Reported by Ben Pfaff <blp@cs.stanford.edu>.
70169
70170 2007-02-19  Bruno Haible  <bruno@clisp.org>
70171
70172         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Don't request a complaint mail
70173         from mingw users.
70174
70175 2007-02-19  Bruno Haible  <bruno@clisp.org>
70176
70177         * lib/stdlib_.h: Use "#pragma GCC system_header" to suppress some gcc
70178         warnings.
70179         Reported by Joel E. Denny <jdenny@ces.clemson.edu> via Paul Eggert.
70180
70181 2007-02-19  Jim Meyering  <jim@meyering.net>
70182
70183         Don't use FD after a successful "fdopendir (fd)".
70184         * lib/getcwd.c (__getcwd) [AT_FDCWD]: fdopendir (fd) usually closes fd.
70185         Reset it by calling dirfd on the just-obtained DIR*.
70186
70187         * m4/ftruncate.m4: Adjust comment to give this module a 3-year reprieve.
70188         Prompted by a report from Bruno Haible that mingw lacks ftruncate.
70189
70190 2007-02-18  Bruno Haible  <bruno@clisp.org>
70191
70192         * lib/readlink.c: Include <unistd.h>.
70193         * m4/readlink.m4 (gl_FUNC_READLINK): Require gl_UNISTD_H_DEFAULTS. Set
70194         HAVE_READLINK.
70195         * modules/readlink (Depends-on): Add unistd.
70196         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70197         (Include): Add <unistd.h>.
70198
70199         * lib/getlogin_r.h: Remove file.
70200         * lib/getlogin_r.c: Include <unistd.h> instead of getlogin_r.h.
70201         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE): Remove macro.
70202         (gl_GETLOGIN_R): Inline it here. Require gl_UNISTD_H_DEFAULTS. Set
70203         HAVE_DECL_GETLOGIN_R.
70204         * modules/getlogin_r (Files): Remove lib/getlogin_r.h.
70205         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70206         (Include): Use <unistd.h> instead of getlogin_r.h.
70207
70208         * lib/getcwd.h: Remove file.
70209         * lib/getcwd.c: Include <unistd.h> instead of getcwd.h.
70210         * lib/xgetcwd.c: Likewise.
70211         * m4/getcwd.m4 (gl_FUNC_GETCWD): Require gl_UNISTD_H_DEFAULTS. Set
70212         REPLACE_GETCWD. Don't define __GETCWD_PREFIX.
70213         * modules/getcwd (Files): Remove lib/getcwd.h.
70214         (Depends-on): Add unistd.
70215         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70216         (Include): Use <unistd.h> instad of getcwd.h.
70217
70218         * lib/ftruncate.c: Include <unistd.h> first.
70219         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): Require gl_UNISTD_H_DEFAULTS.
70220         Set HAVE_FTRUNCATE.
70221         * modules/ftruncate (Depends-on): Add unistd.
70222         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70223
70224         * lib/fchdir.c: Include <unistd.h> first.
70225         * lib/dirent_.h: Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT.
70226         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_UNISTD_H_DEFAULTS instead
70227         of gl_HEADER_UNISTD_DEFAULTS. Set REPLACE_FCHDIR. Don't set UNISTD_H.
70228         * modules/fchdir (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70229         (Makefile.am): Substitute also REPLACE_FCHDIR into dirent.h.
70230
70231         * lib/dup2.c: Include <unistd.h> first.
70232         * m4/dup2.m4 (gl_FUNC_DUP2): Require gl_UNISTD_H_DEFAULTS. Set
70233         HAVE_DUP2.
70234         * modules/dup2 (Depends-on): Add unistd.
70235         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70236
70237         * lib/chown.c: Include <unistd.h> first. Undefine chown later.
70238         * m4/chown.m4 (gl_FUNC_CHOWN): Require gl_UNISTD_H_DEFAULTS. Set
70239         REPLACE_CHOWN. Don't define chown as a macro here.
70240         * modules/chown (Depends-on): Add unistd.
70241         (configure.ac): Invoke gl_UNISTD_MODULE_INDICATOR.
70242
70243         * lib/unistd_.h: Test HAVE_UNISTD_H determined at configure time.
70244         Add definition for GL_LINK_WARNING.
70245         (chown, dup2): New declarations.
70246         (fchdir): Test REPLACE_FCHDIR, not FCHDIR_REPLACEMENT. Provide optional
70247         link warning.
70248         (ftruncate): New declaration.
70249         (getcwd): New declaration, taken from old getcwd.h.
70250         (getlogin_r): New declaration, taken from old getlogin_r.h.
70251         (readlink): New declaration.
70252         * m4/unistd_h.m4 (gl_UNISTD_H): Renamed from gl_HEADER_UNISTD. Don't
70253         set UNISTD_H. Inline gl_PREREQ_UNISTD. Set HAVE_UNISTD_H.
70254         (gl_PREREQ_UNISTD): Remove macro.
70255         (gl_UNISTD_MODULE_INDICATOR): New macro.
70256         (gl_UNISTD_H_DEFAULTS): Renamed from gl_HEADER_UNISTD_DEFAULTS. Set
70257         many new variables. Don't set UNISTD_H.
70258         * modules/unistd (Description): Change.
70259         (Depends-on): Add link-warning.
70260         (configure.ac): Update.
70261         (Makefile.am): Create unistd.h always. Substitute many new variables
70262         into it.
70263
70264 2007-02-18  Bruno Haible  <bruno@clisp.org>
70265
70266         * lib/stdlib_.h (getsubopt): New declaration, copied from getsubopt.h.
70267         * modules/stdlib (stdlib.h): Also substitute GNULIB_GETSUBOPT and
70268         HAVE_GETSUBOPT.
70269         * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Also initialize
70270         GNULIB_GETSUBOPT and HAVE_GETSUBOPT.
70271         * lib/getsubopt.h: Remove file.
70272         * modules/getsubopt (Files): Remove lib/getsubopt.h.
70273         (Depends-on): Add stdlib.
70274         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70275         (Includes): Use <stdlib.h> instead of getsubopt.h.
70276         * m4/getsubopt.m4 (gl_FUNC_GETSUBOPT): Require gl_STDLIB_H_DEFAULTS.
70277         Set HAVE_GETSUBOPT.
70278         * lib/getsubopt.c: Don't include getsubopt.h.
70279
70280 2007-02-18  Bruno Haible  <bruno@clisp.org>
70281
70282         * modules/fchdir (Depends-on): Add dup2.
70283
70284 2007-02-18  Bruno Haible  <bruno@clisp.org>
70285
70286         * lib/stdlib_.h: Handle glibc's special invocation convention
70287         specially.
70288
70289 2007-02-18  Bruno Haible  <bruno@clisp.org>
70290
70291         * modules/stdlib-tests: New file.
70292         * tests/test-stdlib.c: New file.
70293
70294         * modules/mkstemp (Files): Remove lib/mkstemp.h.
70295         (Depends-on): Add stdlib.
70296         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70297         (Includes): Use <stdlib.h> instead of mkstemp.h.
70298         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70299         REPLACE_MKSTEMP. Remove definition of __MKSTEMP_PREFIX.
70300         * lib/mkstemp.c: Don't include mkstemp.h.
70301         * lib/mkstemp-safer.c: Include <stdlib.h> instead of mkstemp.h.
70302         * lib/stdlib--.h: Don't include mkstemp.h.
70303
70304         * modules/mkdtemp (Files): Remove lib/mkdtemp.h.
70305         (Depends-on): Add stdlib.
70306         (configure.ac): Invoke gl_STDLIB_MODULE_INDICATOR.
70307         (Includes): Use <stdlib.h> instead of mkdtemp.h.
70308         * m4/mkdtemp.m4 (gt_FUNC_MKDTEMP): Require gl_STDLIB_H_DEFAULTS. Set
70309         HAVE_MKDTEMP.
70310         * lib/mkdtemp.c: Don't include mkdtemp.h.
70311         * lib/clean-temp.c: Don't include mkdtemp.h.
70312
70313         * modules/exit (Files): Remove lib/exit.h.
70314         (Depends-on): Add stdlib.
70315         (Makefile.am): Remove lib_SOURCES.
70316         (Include): Use <stdlib.h> instead of exit.h.
70317         * lib/argmatch.c: Don't include exit.h.
70318         * lib/execute.c: Likewise.
70319         * lib/pagealign_alloc.c: Likewise.
70320         * lib/pipe.c: Likewise.
70321         * lib/wait-process.c: Likewise.
70322         * lib/copy-file.c: Include <stdlib.h> instead of exit.h.
70323         * lib/exitfail.c: Likewise.
70324         * lib/savewd.c: Likewise.
70325         * lib/xsetenv.c: Likewise.
70326
70327         * modules/stdlib: New file.
70328         * lib/stdlib_.h: New file, incorporating exit.h, mkdtemp.h, mkstemp.h
70329         and extra comments about mkstemp().
70330         * lib/exit.h: Remove file.
70331         * lib/mkdtemp.h: Remove file.
70332         * lib/mkstemp.h: Remove file.
70333         * m4/stdlib_h.m4: New file.
70334         * MODULES.html.sh (Support for systems lacking ANSI C 89): Add stdlib.
70335
70336 2007-02-18  Bruno Haible  <bruno@clisp.org>
70337
70338         * modules/math-tests: New file.
70339         * tests/test-math.c: New file.
70340
70341         * modules/math: New file.
70342         * modules/mathl (Files): Remove lib/mathl.h.
70343         (Depends-on): Add math.
70344         (Makefile.am): Don't mention mathl.h.
70345         (Include): Use <math.h> instead of mathl.h.
70346         * lib/math_.h: New file.
70347         * lib/mathl.h: Remove file.
70348         * lib/acosl.c: Include <config.h> and <math.h> first. Don't include
70349         mathl.h.
70350         * lib/asinl.c: Likewise.
70351         * lib/atanl.c: Likewise.
70352         * lib/ceill.c: Likewise.
70353         * lib/cosl.c: Likewise.
70354         * lib/expl.c: Likewise.
70355         * lib/floorl.c: Likewise.
70356         * lib/frexpl.c: Likewise.
70357         * lib/ldexpl.c: Likewise.
70358         * lib/logl.c: Likewise.
70359         * lib/sincosl.c: Likewise.
70360         * lib/sinl.c: Likewise.
70361         * lib/sqrtl.c: Likewise.
70362         * lib/tanl.c: Likewise.
70363         * lib/trigl.c: Likewise.
70364         * m4/math_h.m4: New file.
70365         * MODULES.html.sh (Mathematics): Add math.
70366
70367 2007-02-17  Bruno Haible  <bruno@clisp.org>
70368
70369         * modules/wctype-tests: New file.
70370         * tests/test-wctype.c: New file.
70371
70372         * modules/wchar-tests: New file.
70373         * tests/test-wchar.c: New file.
70374
70375         * modules/unistd-tests: New file.
70376         * tests/test-unistd.c: New file.
70377
70378         * modules/time-tests: New file.
70379         * tests/test-time.c: New file.
70380
70381         * modules/sysexits-tests: New file.
70382         * tests/test-sysexits.c: New file.
70383
70384         * modules/sys_time-tests: New file.
70385         * tests/test-sys_time.c: New file.
70386
70387         * modules/sys_stat-tests: New file.
70388         * tests/test-sys_stat.c: New file.
70389
70390         * modules/sys_socket-tests: New file.
70391         * tests/test-sys_socket.c: New file.
70392
70393         * modules/sys_select-tests: New file.
70394         * tests/test-sys_select.c: New file.
70395
70396         * modules/string-tests: New file.
70397         * tests/test-string.c: New file.
70398
70399         * modules/stdbool-tests: New file.
70400         * tests/test-stdbool.c: New file.
70401
70402         * modules/netinet_in-tests: New file.
70403         * tests/test-netinet_in.c: New file.
70404
70405         * modules/inttypes-tests: New file.
70406         * tests/test-inttypes.c: New file.
70407
70408         * modules/fcntl-tests: New file.
70409         * tests/test-fcntl.c: New file.
70410
70411         * modules/byteswap-tests: New file.
70412         * tests/test-byteswap.c: New file.
70413
70414         * modules/arpa_inet-tests: New file.
70415         * tests/test-arpa_inet.c: New file.
70416
70417 2007-02-17  Bruno Haible  <bruno@clisp.org>
70418
70419         * lib/inttypes_.h: Add definition for GL_LINK_WARNING.
70420         (imaxabs, imaxdiv, strtoimax, strtoumax): Don't declare the function
70421         if the corresponding module is not enabled. Emit link warnings if
70422         the function is used nevertheless.
70423         * m4/inttypes.m4 (gl_INTTYPES_H): Never use the existing <inttypes.h>.
70424         Don't AC_SUBST HAVE_DECL_IMAXABS, HAVE_DECL_IMAXDIV,
70425         HAVE_DECL_STRTOIMAX, HAVE_DECL_STRTOUMAX.
70426         (gl_INTTYPES_MODULE_INDICATOR, gl_INTTYPES_H_DEFAULTS): New macros.
70427         * modules/inttypes (Depends-on): Add link-warning.
70428         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70429         inttypes.h. Substitute also GNULIB_IMAXABS, GNULIB_IMAXDIV,
70430         GNULIB_STRTOIMAX, GNULIB_STRTOUMAX.
70431         * modules/imaxabs (configure.ac): Invoke gl_INTTYPES_MODULE_INDICATOR.
70432         * modules/imaxdiv (configure.ac): Likewise.
70433         * modules/strtoimax (configure.ac): Likewise.
70434         * modules/strtoumax (configure.ac): Likewise.
70435
70436 2007-02-17  Bruno Haible  <bruno@clisp.org>
70437
70438         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Include the contents of
70439         gl_STRING_MODULE_INDICATOR_DEFAULTS.
70440         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Remove macro.
70441         (gl_HEADER_STRING_H_BODY, gl_STRING_MODULE_INDICATOR): Update.
70442
70443 2007-02-17  Bruno Haible  <bruno@clisp.org>
70444
70445         * modules/link-warning: New file.
70446         * build-aux/link-warning.h: New file, extracted from lib/string_.h.
70447         * lib/string_.h (GL_LINK_WARNING): Remove definition.
70448         * modules/string (Depends-on): Add link-warning.
70449         (Makefile.am): Copy the contents of build-aux/link-warning.h into
70450         string.h.
70451         * MODULES.html.sh (Support for building libraries and executables): Add
70452         link-warning.
70453
70454 2007-02-17  Bruno Haible  <bruno@clisp.org>
70455
70456         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strcasecmp,
70457         strncasecmp, strchr, strchrnul, strdup, strndup, strnlen, strcspn,
70458         strpbrk, strspn, strrchr, strsep, strstr, strcasestr, strtok_r): Break
70459         long lines.
70460
70461 2007-02-17  Ben Pfaff  <blp@cs.stanford.edu>
70462             Bruno Haible  <bruno@clisp.org>
70463
70464         * modules/tmpfile: New file.
70465         * lib/tmpfile.c: New file.
70466         * m4/tmpfile.m4: New file.
70467         * MODULES.html.sh (func_all_modules): New section "Input/output".
70468
70469 2007-02-15  Bruno Haible  <bruno@clisp.org>
70470
70471         * lib/clean-temp.c [WIN32 && !CYGWIN]: Include <windows.h>.
70472         (supports_delete_on_close): New function.
70473         (open_temp, fopen_temp): Use _O_TEMPORARY when supported.
70474
70475 2007-02-14  Bruno Haible  <bruno@clisp.org>
70476
70477         * modules/mbspcasecmp-tests: New file.
70478         * tests/test-mbspcasecmp.sh: New file.
70479         * tests/test-mbspcasecmp.c: New file.
70480
70481         New module mbspcasecmp.
70482         * modules/mbspcasecmp: New file.
70483         * lib/mbspcasecmp.c: New file.
70484         * lib/string_.h (strncasecmp): Change warning message.
70485         (mbspcasecmp): New declaration.
70486         * m4/mbspcasecmp.m4: New file.
70487         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70488         GNULIB_MBSPCASECMP.
70489         * modules/string (string.h): Also substitute GNULIB_MBSPCASECMP.
70490         * MODULES.html.sh (Internationalization functions): Add mbspcasecmp.
70491
70492 2007-02-14  Bruno Haible  <bruno@clisp.org>
70493
70494         * modules/mbsncasecmp-tests: New file.
70495         * tests/test-mbsncasecmp.sh: New file.
70496         * tests/test-mbsncasecmp.c: New file.
70497
70498         New module mbsncasecmp.
70499         * modules/mbsncasecmp: New file.
70500         * lib/mbsncasecmp.c: New file.
70501         * lib/string_.h (mbsncasecmp): New declaration.
70502         * m4/mbsncasecmp.m4: New file.
70503         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70504         GNULIB_MBSNCASECMP.
70505         * modules/string (string.h): Also substitute GNULIB_MBSNCASECMP.
70506         * MODULES.html.sh (Internationalization functions): Add mbsncasecmp.
70507
70508 2007-02-14  Paul Eggert  <eggert@cs.ucla.edu>
70509
70510         * lib/exclude.c (FNM_EXTMATCH): Define if system does not.
70511         Verify that it doesn't overlap with our flags.
70512         (fnmatch_no_wildcards): Don't use strcasecmp or strncasecmp, which
70513         do not have the desired effect in multibyte locales; instead, use
70514         mbscasecmp.
70515         * modules/exclude (Depends-on): Depend on mbscasecmp, not strcase.
70516         Add dependency on xalloc.  Depend on fnmatch, not fnmatch-gnu, since
70517         we don't require GNU fnmatch ourselves (if our users require it, they
70518         should do so explicitly).
70519
70520         Fix regex code so it doesn't rely on strcasecmp.
70521         * lib/regex_internal.h: Include <langinfo.h> only if _LIBC is defined.
70522         Otherwise, include gnulib's langinfo.h.
70523         * lib/regcomp.c (init_dfa): Don't use strcasecmp, as it can have
70524         undesirable behavior in non-C locales.  Instead, rely on localecharset.
70525         * m4/regex.m4 (gl_PREREQ_REGEX): Don't require AM_LANGINFO_CODESET.
70526         * modules/regex (FILES): Remove m4/codeset.m4.
70527         (Depends-on): Add localcharset.  Remove strcase.
70528
70529 2007-02-13  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
70530
70531         * m4/unlinkdir.m4 (gl_UNLINKDIR): Fix m4 quoting bug.
70532         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Likewise.
70533
70534 2007-02-13  Bruno Haible  <bruno@clisp.org>
70535
70536         * m4/intdiv0.m4 (gt_INTDIV0): Assume ANSI C. Fix underquoting bug.
70537         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70538
70539 2007-02-12  Bruno Haible  <bruno@clisp.org>
70540
70541         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
70542         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): If
70543         GNULIB_POSIXCHECK and the gnulib module not enabled, provoke a link-
70544         time warning rather than a link error.
70545
70546 2007-02-12  Bruno Haible  <bruno@clisp.org>
70547
70548         * m4/locale-fr.m4 (gt_LOCALE_FR): Fix m4 quoting bug.
70549         * m4/locale-zh.m4 (gt_LOCALE_ZH_CN): Likewise.
70550         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
70551
70552 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70553
70554         * lib/string_.h (strncasecmp): Fix typo: this macro takes 3
70555         args, not 2.
70556
70557 2007-02-12  Paul Eggert  <eggert@cs.ucla.edu>
70558
70559         New module 'time', so that apps can include <time.h> as per
70560         POSIX and GNU instead of separate include files like time_r.h
70561         and timegm.h.  This implementation tries out a simpler approach
70562         for replacing decls in standard include files (as compared to
70563         the string module), somewhat as an experiment.
70564
70565         * config/srclist.txt: Comment out mktime.c for now.
70566         * doc/gnulib-tool.texi (Initial import): Don't use time_r as an example
70567         since it doesn't apply any more.  Use generic wording instead.
70568         * MODULES.html.sh (Support for systems lacking POSIX:2001): New module
70569         'time'.
70570         * lib/time_.h, m4/time_h.m4, modules/time: New files.
70571         * lib/strptime.h, lib/time_r.h, lib/timegm.h: Remove.
70572         * lib/mktime.c: Include config.h depending on _LIBC, not HAVE_CONFIG_H.
70573         Don't include <sys/types.h>; no longer needed since we assume C89.
70574         * lib/mktime.c: Don't include "time_r.h"; no longer needed.
70575         * lib/strftime.c: Likewise.
70576         * lib/time_r.c: Likewise.
70577         * lib/nanosleep.c (nanosleep): #undef after include files, not before.
70578         * lib/nanosleep.c: Include <time.h> first, to check interface.
70579         * lib/strptime.c: Likewise.
70580         * lib/time_r.c: Likewise.
70581         * lib/timegm.c: Likewise.
70582         * lib/strptime.c: Don't include strptime.h or time_r.h; no longer
70583         needed.
70584         * lib/timegm.c: Don't include timegm.h; no longer needed.
70585         * lib/timespec.h: Don't include <sys/time.h> before <time.h>;
70586         time.h now handles any problems in that area.
70587         (struct timespec, nanosleep): Remove; time.h now arranges for these.
70588         * lib/xnanosleep.c: Don't include timespec.h; no longer needed now
70589         that time.h defines struct timespec.
70590         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Check that nanosleep is declared.
70591         Set REPLACE_NANOSLEEP.  Don't AC_DEFINE nanosleep; the time module now
70592         handles that.
70593         * m4/strptime.m4 (gl_FUNC_STPRTIME): Set REPLACE_STRPTIME.
70594         * m4/time_r.m4 (gl_TIME_R): Don't define HAVE_TIME_R_POSIX; no longer
70595         needed.  Set REPLACE_LOCALTIME.
70596         * m4/timegm.m4 (gl_FUNC_TIMEGM): Set REPLACE_TIMEGM.
70597         * m4/timespec.m4 (gl_CHECK_TYPE_STRUCT_TIMESPEC): Move to time_h.m4.
70598         (gl_TIMESPEC): Don't check for sys/time.h or struct timespec or
70599         nanosleep; time_h.m4 now does that.  Don't require
70600         gl_USE_SYSTEM_EXTENSIONS; no longer needed directly, and the time
70601         module handles this now.
70602         * modules/getdate (Depends-on): Remove timespec.  Add time.
70603         * modules/nanosleep (Depends-on): Likewise.
70604         * modules/stat-time (Depends-on): Likewise.
70605         * modules/nanosleep (Include): Include time.h, not timespec.h.
70606         * modules/strptime (Files): Remove lib/strptime.h.
70607         (Depends-on): Add extensions, time.
70608         (Include): Include time.h, not strptime.h.
70609         * modules/time_r (Files): Remove lib/time_r.h.
70610         (Depends-on): Add time.
70611         (Include): Include time.h, not time_r.h.
70612         * modules/timegm: Likewise.
70613         * modules/timespec (Description): Now does timespec-related decls
70614         of our own, instead of struct timespec itself.
70615         (Depends-on): Add time; remove extensions.
70616         (Maintainer): Add self.
70617         * modules/utimecmp (Depends-on): Add time; remove timespec.
70618         * modules/utimens (Depends-on): Likewise.
70619         * modules/xnanosleep (Depends-on): Likewise.
70620
70621 2007-02-11  Bruno Haible  <bruno@clisp.org>
70622
70623         * lib/c-strstr.c: Include allocsa.h.
70624         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70625         * lib/c-strcasestr.c: Include allocsa.h.
70626         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70627         * lib/strcasestr.c: Include allocsa.h.
70628         (knuth_morris_pratt): Use allocsa/freesa instead of malloc/free.
70629         * lib/mbsstr.c: Include allocsa.h.
70630         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70631         allocsa/freesa instead of malloc/free.
70632         * lib/mbscasestr.c: Include allocsa.h.
70633         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): Use
70634         allocsa/freesa instead of malloc/free.
70635         * modules/c-strstr (Depends-on): Add allocsa.
70636         * modules/c-strcasestr (Depends-on): Likewise.
70637         * modules/strcasestr (Depends-on): Likewise.
70638         * modules/mbsstr (Depends-on): Likewise.
70639         * modules/mbscasestr (Depends-on): Likewise.
70640
70641 2007-02-11  Bruno Haible  <bruno@clisp.org>
70642
70643         * lib/mbsspn.c (mbsspn): Fix bug. Remove unnecessary strlen call.
70644
70645         * modules/mbsspn-tests: New file.
70646         * tests/test-mbsspn.sh: New file.
70647         * tests/test-mbsspn.c: New file.
70648
70649 2007-02-11  Bruno Haible  <bruno@clisp.org>
70650
70651         * lib/mbspbrk.c (mbspbrk): Remove unneeded cast.
70652
70653         * modules/mbspbrk-tests: New file.
70654         * tests/test-mbspbrk.sh: New file.
70655         * tests/test-mbspbrk.c: New file.
70656
70657 2007-02-11  Bruno Haible  <bruno@clisp.org>
70658
70659         * lib/mbscspn.c (mbscspn): Remove unnecessary strlen call and
70660         unneeded cast.
70661
70662         * modules/mbscspn-tests: New file.
70663         * tests/test-mbscspn.sh: New file.
70664         * tests/test-mbscspn.c: New file.
70665
70666 2007-02-11  Bruno Haible  <bruno@clisp.org>
70667
70668         * modules/mbscasecmp-tests: New file.
70669         * tests/test-mbscasecmp.sh: New file.
70670         * tests/test-mbscasecmp.c: New file.
70671
70672 2007-02-11  Bruno Haible  <bruno@clisp.org>
70673
70674         Ensure O(n) worst-case complexity of mbscasestr.
70675         * lib/mbscasestr.c: Include stdbool.h.
70676         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70677         functions.
70678         (mbscasestr): Add some bookkeeping. Invoke knuth_morris_pratt_* when
70679         the bookkeeping indicates that it's worth it.
70680         * modules/mbscasestr (Depends-on): Add stdbool, mbslen, strnlen.
70681
70682         * modules/mbscasestr-tests: New file.
70683         * tests/test-mbscasestr1.c: New file.
70684         * tests/test-mbscasestr2.sh: New file.
70685         * tests/test-mbscasestr2.c: New file.
70686         * tests/test-mbscasestr3.sh: New file.
70687         * tests/test-mbscasestr3.c: New file.
70688         * tests/test-mbscasestr4.sh: New file.
70689         * tests/test-mbscasestr4.c: New file.
70690         * m4/locale-tr.m4: New file.
70691
70692 2007-02-11  Bruno Haible  <bruno@clisp.org>
70693
70694         Ensure O(n) worst-case complexity of mbsstr.
70695         * lib/mbsstr.c: Include stdbool.h.
70696         (knuth_morris_pratt_unibyte, knuth_morris_pratt_multibyte): New
70697         functions.
70698         (mbsstr): Add some bookkeeping. Invoke knuth_morris_pratt_* when the
70699         bookkeeping indicates that it's worth it.
70700         * modules/mbsstr (Depends-on): Add stdbool, mbslen, strnlen.
70701
70702         * modules/mbsstr-tests: New file.
70703         * tests/test-mbsstr1.c: New file.
70704         * tests/test-mbsstr2.sh: New file.
70705         * tests/test-mbsstr2.c: New file.
70706         * tests/test-mbsstr3.sh: New file.
70707         * tests/test-mbsstr3.c: New file.
70708         * m4/locale-fr.m4: New file.
70709
70710 2007-02-11  Bruno Haible  <bruno@clisp.org>
70711
70712         * lib/mbsrchr.c (mbsrchr): Fix bug.
70713
70714         * modules/mbsrchr-tests: New file.
70715         * tests/test-mbsrchr.sh: New file.
70716         * tests/test-mbsrchr.c: New file.
70717
70718 2007-02-11  Bruno Haible  <bruno@clisp.org>
70719
70720         * lib/mbschr.c (mbschr): Fix bug.
70721
70722         * modules/mbschr-tests: New file.
70723         * tests/test-mbschr.sh: New file.
70724         * tests/test-mbschr.c: New file.
70725         * m4/locale-zh.m4: New file.
70726
70727 2007-02-11  Bruno Haible  <bruno@clisp.org>
70728
70729         Support for copying multibyte string iterators.
70730         * lib/mbiter.h: Include <string.h>.
70731         (mbiter_multi_copy): New function.
70732         (mbi_copy): New macro.
70733         * lib/mbuiter.h: Include <string.h>.
70734         (mbuiter_multi_copy): New function.
70735         (mbui_copy): New macro.
70736
70737 2007-02-11  Bruno Haible  <bruno@clisp.org>
70738
70739         New module mbslen.
70740         * modules/mbslen: New file.
70741         * lib/mbslen.c: New file.
70742         * lib/string_.h (mbslen): New declaration.
70743         * m4/mbslen.m4: New file.
70744         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70745         GNULIB_MBSLEN.
70746         * modules/string (string.h): Also substitute GNULIB_MBSLEN.
70747         * MODULES.html.sh (Internationalization functions): Add mbslen.
70748
70749 2007-02-11  Bruno Haible  <bruno@clisp.org>
70750
70751         Ensure O(n) worst-case complexity of strcasestr substitute.
70752         * lib/strcasestr.c: Include stdbool.h.
70753         (knuth_morris_pratt): New function.
70754         (strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70755         bookkeeping indicates that it's worth it.
70756         * modules/strcasestr (Depends-on): Add stdbool, strnlen.
70757
70758         * modules/strcasestr-tests: New file.
70759         * tests/test-strcasestr.c: New file.
70760
70761 2007-02-11  Bruno Haible  <bruno@clisp.org>
70762
70763         Ensure O(n) worst-case complexity of c_strcasestr.
70764         * lib/c-strcasestr.c: Include stdbool.h, string.h.
70765         (knuth_morris_pratt): New function.
70766         (c_strcasestr): Add some bookkeeping. Invoke knuth_morris_pratt when
70767         the bookkeeping indicates that it's worth it.
70768         * modules/c-strcasestr (Depends-on): Add stdbool, strnlen.
70769
70770         * modules/c-strcasestr-tests: New file.
70771         * tests/test-c-strcasestr.c: New file.
70772
70773 2007-02-11  Bruno Haible  <bruno@clisp.org>
70774
70775         Ensure O(n) worst-case complexity of c_strstr.
70776         * lib/c-strstr.c: Include stdbool.h, string.h.
70777         (knuth_morris_pratt): New function.
70778         (c_strstr): Add some bookkeeping. Invoke knuth_morris_pratt when the
70779         bookkeeping indicates that it's worth it.
70780         * modules/c-strstr (Depends-on): Add stdbool, strnlen.
70781
70782         * lib/c-strstr.c: Complete rewrite for maintainability.
70783
70784         * modules/c-strstr-tests: New file.
70785         * tests/test-c-strstr.c: New file.
70786
70787 2007-02-11  Bruno Haible  <bruno@clisp.org>
70788
70789         * m4/javacomp.m4 (gt_JAVACOMP): Work around a 'tr' bug in coreutils
70790         5.2.1 and earlier, whereby \055 was treated just like the range
70791         delimiter '-'.
70792         Reported by Joel E. Denny <jdenny@ces.clemson.edu>.
70793
70794 2007-02-08  Bruno Haible  <bruno@clisp.org>
70795
70796         * modules/regex (Depends-on): Add stdbool.
70797         Reported by Dalibor Topic <robilad@kaffe.org>.
70798
70799 2007-02-05  Paul Eggert  <eggert@cs.ucla.edu>
70800
70801         * m4/regex.m4 (gl_REGEX): Check for glibc bug #3957.
70802         Prefer returning from main to exiting from it.
70803         Remove unnecessary parens after sizeof.
70804
70805 2007-02-05  Bruno Haible  <bruno@clisp.org>
70806
70807         New module mbssep.
70808         * modules/mbssep: New file.
70809         * lib/mbssep.c: New file.
70810         * lib/string_.h (strsep): Add a conditional link warning.
70811         (mbssep): New declaration.
70812         * m4/mbssep.m4: New file.
70813         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70814         GNULIB_MBSSEP.
70815         * modules/string (string.h): Also substitute GNULIB_MBSSEP.
70816         * MODULES.html.sh (Internationalization functions): Add mbssep.
70817
70818 2007-02-05  Bruno Haible  <bruno@clisp.org>
70819
70820         * lib/strsep.c (strsep): Fix actions in case of no delimiters.
70821         Optimize search in case of 1 delimiter.
70822
70823 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70824
70825         * lib/acl.h: Include sys/types.h before sys/acl.h.
70826
70827 2007-02-05  Paolo Bonzini  <bonzini@gnu.org>
70828
70829         Merge upstream fix for glibc bugzilla #3957:
70830
70831         2007-02-05  Jakub Jelinek  <jakub@redhat.com>
70832
70833         * lib/regcomp.c (parse_bracket_exp): Set '\n' bit rather than '\0'
70834         bit for RE_HAT_LISTS_NOT_NEWLINE.
70835         (build_charclass_op): Remove bogus comment.
70836
70837 2007-02-05  Simon Josefsson  <simon@josefsson.org>
70838
70839         * lib/gc.h, lib/gc-libgcrypt.c: Support SHA-256/384/512.
70840
70841 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
70842
70843         * lib/getsubopt.c [!_LIBC]: Include config.h and getsubopt.h.
70844         * lib/memmem.c [!defined _LIBC]: Include config.h.
70845
70846 2007-02-04  Bruno Haible  <bruno@clisp.org>
70847
70848         * lib/string_.h (GL_LINK_WARNING2): Put the word "warning:" into the
70849         warning message.
70850
70851 2007-02-04  Bruno Haible  <bruno@clisp.org>
70852
70853         New module mbstok_r.
70854         * modules/mbstok_r: New file.
70855         * lib/mbstok_r.c: New file.
70856         * lib/string_.h (strtok_r): Change argument names to match the
70857         comments. Add a conditional link warning.
70858         (mbstok_r): New declaration.
70859         * m4/mbstok_r.m4: New file.
70860         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70861         GNULIB_MBSTOK_R.
70862         * modules/string (string.h): Also substitute GNULIB_MBSTOK_R.
70863         * MODULES.html.sh (Internationalization functions): Add mbstok_r.
70864
70865 2007-02-04  Bruno Haible  <bruno@clisp.org>
70866
70867         New module mbsspn.
70868         * modules/mbsspn: New file.
70869         * lib/mbsspn.c: New file.
70870         * lib/string_.h (strspn): Add a conditional link warning.
70871         (mbsspn): New declaration.
70872         * m4/mbsspn.m4: New file.
70873         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70874         GNULIB_MBSSPN.
70875         * modules/string (string.h): Also substitute GNULIB_MBSSPN.
70876         * MODULES.html.sh (Internationalization functions): Add mbsspn.
70877
70878 2007-02-04  Bruno Haible  <bruno@clisp.org>
70879
70880         New module mbspbrk.
70881         * modules/mbspbrk: New file.
70882         * lib/mbspbrk.c: New file.
70883         * lib/string_.h (strpbrk): Add a conditional link warning.
70884         (mbspbrk): New declaration.
70885         * m4/mbspbrk.m4: New file.
70886         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70887         GNULIB_MBSPBRK.
70888         * modules/string (string.h): Also substitute GNULIB_MBSPBRK.
70889         * MODULES.html.sh (Internationalization functions): Add mbspbrk.
70890
70891 2007-02-04  Bruno Haible  <bruno@clisp.org>
70892
70893         New module mbscspn.
70894         * modules/mbscspn: New file.
70895         * lib/mbscspn.c: New file.
70896         * lib/string_.h (strcspn): Add a conditional link warning.
70897         (mbscspn): New declaration.
70898         * m4/mbscspn.m4: New file.
70899         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70900         GNULIB_MBSCSPN.
70901         * modules/string (string.h): Also substitute GNULIB_MBSCSPN.
70902         * MODULES.html.sh (Internationalization functions): Add mbscspn.
70903
70904 2007-02-04  Bruno Haible  <bruno@clisp.org>
70905
70906         New module mbscasestr, reduced goal of strcasestr.
70907         * modules/mbscasestr: New file.
70908         * lib/mbscasestr.c: New file, copied from lib/strcasestr.c.
70909         (mbscasestr): Renamed from strcasestr.
70910         * lib/strcasestr.c: Don't include mbuiter.h.
70911         (strcasestr): Remove support for multibyte locales.
70912         * lib/string_.h (strcasestr): Don`t rename. Declare only if missing.
70913         Change the conditional link warning.
70914         (mbscasestr): New declaration.
70915         * m4/mbscasestr.m4: New file.
70916         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Enable the replacement only if
70917         the system does not have strcasestr. Set HAVE_STRCASESTR instead of
70918         REPLACE_STRCASESTR.
70919         (gl_PREREQ_STRCASESTR): Don't require gl_FUNC_MBRTOWC.
70920         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70921         HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70922         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSCASESTR.
70923         * modules/string (string.h): Also substitute GNULIB_MBSCASESTR.
70924         Substitute HAVE_STRCASESTR instead of REPLACE_STRCASESTR.
70925         * modules/strcasestr (Files): Remove m4/mbrtowc.m4.
70926         (Depends-on): Remove mbuiter.
70927         * MODULES.html.sh (Internationalization functions): Add mbscasestr.
70928
70929 2007-02-04  Bruno Haible  <bruno@clisp.org>
70930
70931         Simplify handling of strncasecmp.
70932         * lib/string_.h (strncasecmp): Remove test for GNULIB_STRCASE. Change
70933         the conditional link warning.
70934         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Initialize
70935         HAVE_STRCASECMP, not REPLACE_STRCASECMP.
70936         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Don't initialize GNULIB_STRCASE.
70937         * modules/strcase (configure.ac): Don't invoke
70938         gl_STRING_MODULE_INDICATOR.
70939         * modules/string (string.h): Don't substitute GNULIB_STRCASE.
70940
70941 2007-02-04  Bruno Haible  <bruno@clisp.org>
70942
70943         New module mbscasecmp, reduced goal of strcasecmp.
70944         * modules/mbscasecmp: New file.
70945         * lib/mbscasecmp.c: New file, copied from lib/strcasecmp.c.
70946         (mbscasecmp): Renamed from strcasecmp.
70947         * lib/strcasecmp.c: Don't include mbuiter.h.
70948         (strcasecmp): Remove support for multibyte locales.
70949         * lib/string_.h (strcasecmp): Don`t rename. Declare only if missing.
70950         Change the conditional link warning.
70951         (mbscasecmp): New declaration.
70952         * m4/mbscasecmp.m4: New file.
70953         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Enable the replacement only if
70954         the system lacks strcasecmp. Set HAVE_STRCASECMP instead of
70955         REPLACE_STRCASECMP.
70956         (gl_PREREQ_STRCASECMP): Don't require gl_FUNC_MBRTOWC.
70957         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70958         GNULIB_MBSCASECMP.
70959         * modules/string (string.h): Also substitute GNULIB_MBSCASECMP.
70960         Substitute HAVE_STRCASECMP instead of REPLACE_STRCASECMP.
70961         * modules/strcase (Files): Remove m4/mbrtowc.m4.
70962         (Depends-on): Remove mbuiter.
70963         * MODULES.html.sh (Internationalization functions): Add mbscasecmp.
70964
70965 2007-02-04  Bruno Haible  <bruno@clisp.org>
70966
70967         New module mbsstr. Remove module strstr.
70968         * modules/mbsstr: New file.
70969         * modules/strstr: Remove file.
70970         * lib/mbsstr.c: Renamed from lib/strstr.c.
70971         (mbsstr): Renamed from strstr.
70972         * lib/string_.h (strstr): Remove declaration. Change the conditional
70973         link warning.
70974         (mbsstr): New declaration.
70975         * m4/mbsstr.m4: New file.
70976         * m4/strstr.m4: Remove file.
70977         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): Don't initialize
70978         REPLACE_STRSTR.
70979         (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize GNULIB_MBSSTR.
70980         Don't initialize GNULIB_STRSTR.
70981         * modules/string (string.h): Also substitute GNULIB_MBSSTR. Don't
70982         substitute GNULIB_STRSTR and REPLACE_STRSTR.
70983         * MODULES.html.sh (Internationalization functions): Add mbsstr.
70984         (Support for systems lacking ANSI C 89): Remove strstr.
70985
70986 2007-02-04  Bruno Haible  <bruno@clisp.org>
70987
70988         New module mbsrchr.
70989         * modules/mbsrchr: New file.
70990         * lib/mbsrchr.c: New file.
70991         * lib/string_.h (strrchr): Add a conditional link warning.
70992         (mbsrchr): New declaration.
70993         * m4/mbsrchr.m4: New file.
70994         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
70995         GNULIB_MBSRCHR.
70996         * modules/string (string.h): Also substitute GNULIB_MBSRCHR.
70997         * MODULES.html.sh (Internationalization functions): Add mbsrchr.
70998
70999 2007-02-04  Bruno Haible  <bruno@clisp.org>
71000
71001         New module mbschr.
71002         * modules/mbschr: New file.
71003         * lib/mbschr.c: New file.
71004         * lib/string_.h (strchr): Add a conditional link warning.
71005         (mbschr): New declaration.
71006         * m4/mbschr.m4: New file.
71007         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR_DEFAULTS): Initialize
71008         GNULIB_MBSCHR.
71009         * modules/string (string.h): Also substitute GNULIB_MBSCHR.
71010         * MODULES.html.sh (Internationalization functions): Add mbschr.
71011
71012 2007-02-04  Paul Eggert  <eggert@cs.ucla.edu>
71013
71014         * lib/stdbool_.h: Mention that bool bit-fields aren't supported.
71015
71016         * modules/stdarg (configure.ac-early): Require AC_PROG_CC_STDC.
71017
71018 2007-02-04  Bruno Haible  <bruno@clisp.org>
71019
71020         New module description section 'configure.ac-early'.
71021         * gnulib-tool (sed_extract_prog): Recognize configure.ac-early.
71022         (func_get_autoconf_early_snippet): New function.
71023         (func_import, func_create_testdir): Use it. Remove special cases for
71024         modules 'extensions' and 'lock'.
71025         * modules/extensions (configure.ac-early): Require
71026         gl_USE_SYSTEM_EXTENSIONS.
71027         * modules/lock (configure.ac-early): Require gl_LOCK_EARLY.
71028
71029 2007-02-04  Bruno Haible  <bruno@clisp.org>
71030
71031         Make use of gcj-4.3's -fsource and -ftarget option.
71032         * m4/javacomp.m4 (gt_JAVACOMP): Test whether gcj is in version >= 4.3,
71033         and if so try the options -fsource and -ftarget.
71034         * lib/javacomp.c (compile_using_gcj): Add fsource_option,
71035         source_version, ftarget_option, target_version arguments.
71036         (is_envjavac_gcj43, is_envjavac_gcj43_usable): New functions.
71037         (is_envjavac_oldgcj_14_14_usable): Renamed from
71038         is_envjavac_gcj_14_14_usable.
71039         (is_envjavac_oldgcj_14_13_usable): Renamed from
71040         is_envjavac_gcj_14_13_usable.
71041         (is_gcj_present): Update.
71042         (is_gcj_43, is_gcj43_usable): New functions.
71043         (is_oldgcj_14_14_usable): Renamed from is_gcj_14_14_usable. Update.
71044         (is_oldgcj_14_13_usable): Renamed from is_gcj_14_13_usable. Update.
71045         (compile_java_class): Test whether gcj is in version >= 4.3, and if so
71046         try the options -fsource and -ftarget.
71047
71048 2007-02-03  Paul Eggert  <eggert@cs.ucla.edu>
71049
71050         * lib/xalloc.h (x2nrealloc): Fix an unlikely bug in the overflow
71051         checking code.  Set N = ceil (1.5 * N) rather than to a slightly
71052         larger value.
71053
71054 2007-02-03  Jim Meyering  <jim@meyering.net>
71055
71056         Give tools a better chance to allocate space for very large buffers.
71057         * lib/xalloc.h (x2nrealloc): Use 3/2, not 2, as buffer size factor.
71058
71059         Make pwd and readlink work also when run with an unreadable parent dir
71060         on systems with openat support.
71061         * lib/getcwd.c (__getcwd) [HAVE_PARTLY_WORKING_GETCWD]: Use the system
71062         provided getcwd function, even when we have openat support.
71063         Reported by Dmitry V. Levin in <http://bugzilla.redhat.com/227168>.
71064
71065 2007-02-02  Bruno Haible  <bruno@clisp.org>
71066
71067         * lib/string_.h (memmem, mempcpy, memrchr, stpcpy, stpncpy, strchrnul,
71068         strdup, strndup, strnlen, strpbrk, strsep, strtok_r): Provoke a link
71069         error only if GNULIB_POSIXCHECK is defined. Needed to avoid artificial
71070         portability problems if one of these functions is only used on specific
71071         platforms.
71072         Reported by Paul Eggert.
71073
71074 2007-02-02  Paul Eggert  <eggert@cs.ucla.edu>
71075
71076         Avoid mempcpy in the regex code, as the string.h mempcpy stuff
71077         is causing more trouble than it's curing.
71078         * lib/regex_internal.h (__mempcpy): Remove.
71079         * lib/regcomp.c (regerror): Rewrite to avoid the need for mempcpy
71080         (and make the code a tad smaller to boot).
71081         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for mempcpy.
71082
71083 2007-02-02  Jim Meyering  <jim@meyering.net>
71084
71085         * modules/arpa_inet: Put AC_PROG_MKDIR_P in the configure.ac:
71086         section, not in the Makefile.am: one.
71087
71088 2007-02-02  Eric Blake  <ebb9@byu.net>
71089
71090         * lib/strchrnul.c: Always include config.h first.
71091
71092         * modules/mountlist (Depends-on): Revert 2007-01-31 change,
71093         gnulib strstr is not necessary here.
71094
71095 2007-02-02  Simon Josefsson  <simon@josefsson.org>
71096
71097         * m4/socklen.m4: Fix typo.
71098
71099 2007-02-02  Eric Blake  <ebb9@byu.net>
71100
71101         * modules/arpa_inet (Makefile.am): Use MKDIR_P to avoid races.
71102         * modules/netinet_in (Makefile.am): Likewise.
71103
71104 2007-02-01  Bruno Haible  <bruno@clisp.org>
71105
71106         * lib/string_.h (GL_LINK_WARNING): New macro.
71107         (strcasecmp, strstr, strcasestr): If provided by the system,
71108         conditionally define as a macro that leads to a warning instead of to
71109         an error.
71110         (strncasecmp): Conditionally define as a macro that leads to a warning.
71111
71112 2007-02-01  Karl Berry  <karl@gnu.org>
71113
71114         * config/srclist.txt (strtok_r.c): lose sync, no more strtok_r.h.
71115
71116 2007-02-01  Bruno Haible  <bruno@clisp.org>
71117
71118         * MODULES.html.sh (Unicode string functions): Update after 2007-01-27
71119         renamings.
71120
71121 2007-02-01  Eric Blake  <ebb9@byu.net>
71122
71123         * modules/regex (Depends-on): Revert dependence on mempcpy.
71124         * lib/regex_internal.h [! _LIBC && !__mempcpy]: Undo string
71125         module's definition of mempcpy.
71126         Reported by Paul Eggert.
71127
71128 2007-02-01  Paul Eggert  <eggert@cs.ucla.edu>
71129
71130         * lib/string_.h: If the gnulib module XYZ is not present, undefine
71131         the symbol XYZ before redefining it.  This fixes a problem with
71132         programs that don't use XYZ, when compiled on systems that define
71133         XYZ to something else.
71134
71135 2007-01-31  Paul Eggert  <eggert@cs.ucla.edu>
71136
71137         * lib/mkdir-p.c (make_dir_parents): Close a race condition that
71138         occurs when "mkdir -m foo" creates a setgid directory that is (1)
71139         writeable to group or other and (2) is intended to have a special
71140         mode bit that is set or cleared.  In such a case, the directory
71141         should be neither group- nor other-writeable until the special
71142         mode bits are right.
71143
71144 2007-01-31  Eric Blake  <ebb9@byu.net>
71145
71146         * modules/mountlist (Depends-on): Add strstr.
71147
71148         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): Correct m4 usage
71149         bug.
71150         * modules/string (Makefile.am): Remove redundant replacement.
71151         * modules/regex (Depends-on): Add mempcpy.
71152
71153 2007-01-31  Bruno Haible  <bruno@clisp.org>
71154
71155         New module description field 'Link'.
71156         * gnulib-tool (func_usage): Document --extract-link-directive.
71157         (sed_extract_prog): Recognize 'Link' directive.
71158         (func_get_link_directive): New function.
71159         (func_import): Show summary of link directives.
71160         Handle --extract-link-directive option.
71161         * modules/acl (Link): New section.
71162         * modules/clock-time (Link): New section.
71163         * modules/euidaccess (Link): New section.
71164         * modules/gettext (Link): New section.
71165         * modules/iconv (Link): New section.
71166         * modules/lock (Link): New section.
71167         * modules/nanosleep (Link): New section.
71168         * modules/readline (Link): New section.
71169
71170 2007-01-27  Bruno Haible  <bruno@clisp.org>
71171
71172         Enforce the use of gnulib modules for unportable <string.h> functions.
71173         * m4/string_h.m4 (gl_STRING_MODULE_INDICATOR): New macro.
71174         (gl_STRING_MODULE_INDICATOR_DEFAULTS): New macro.
71175         (gl_HEADER_STRING_H_BODY): Require it.
71176         * lib/string_.h: If the gnulib module XYZ is not present, redefine
71177         the symbol XYZ to one that gives a link error.
71178         * modules/string (Makefile.am): Also substitute the GNULIB_* variables.
71179         * modules/memmem (configure.ac): Invoke gl_STRING_MODULE_INDICATOR.
71180         * modules/mempcpy (configure.ac): Likewise.
71181         * modules/memrchr (configure.ac): Likewise.
71182         * modules/stpcpy (configure.ac): Likewise.
71183         * modules/stpncpy (configure.ac): Likewise.
71184         * modules/strcase (configure.ac): Likewise.
71185         * modules/strcasestr (configure.ac): Likewise.
71186         * modules/strchrnul (configure.ac): Likewise.
71187         * modules/strdup (configure.ac): Likewise.
71188         * modules/strndup (configure.ac): Likewise.
71189         * modules/strnlen (configure.ac): Likewise.
71190         * modules/strpbrk (configure.ac): Likewise.
71191         * modules/strsep (configure.ac): Likewise.
71192         * modules/strstr (configure.ac): Likewise.
71193         * modules/strtok_r (configure.ac): Likewise.
71194
71195 2007-01-31  Jean-Louis Martineau  <martineau@zmanda.com>  (tiny change)
71196
71197         * lib/gai_strerror.c (values): Add EAI_OVERFLOW.
71198
71199 2007-01-30  Jim Meyering  <jim@meyering.net>
71200
71201         * lib/mpsort.c (mpsort): Remove spurious "return" in void function.
71202
71203 2007-01-29  Bruno Haible  <bruno@clisp.org>
71204
71205         * lib/allocsa.h: Use '#if HAVE_*' instead of '#ifdef HAVE_*'.
71206         * lib/execute.c: Likewise.
71207         * lib/pipe.c: Likewise.
71208         * lib/printf-args.h: Likewise.
71209         * lib/printf-args.c: Likewise.
71210         * lib/printf-parse.c: Likewise.
71211         * lib/vasnprintf.c: Likewise.
71212
71213 2007-01-29  Eric Blake  <ebb9@byu.net>
71214
71215         * lib/memrchr.c: Assume <string.h> unconditionally, to pull in
71216         declaration.
71217
71218 2007-01-29  Paul Eggert  <eggert@cs.ucla.edu>
71219
71220         * lib/strptime.h (strptime): Use 'restrict' for args where
71221         POSIX requires this.
71222         * lib/strptime.c (strptime): Likewise.
71223         Change license notice from LGPL to GPL, since gnulib-tool will
71224         change this as needed.
71225         Include <config.h> if _LIBC is not defined, not if HAVE_CONFIG_H is
71226         defined.
71227         Include "strptime.h" first, to check interface.
71228         Do not #undef _LIBC and _NL_CURRENT.
71229         Do not include <stdlib.h>; no longer needed.
71230         Include "time_r.h" and declare ptime_locale_status
71231         only if _LIBC is not defined.
71232         (__P): Remove unused macro.
71233         (match_string): Bring back glibc version, but use it only if _LIBC
71234         is defined.
71235         (__strptime_internal): Compile tm_gmtoff code if _LIBC is defined, too.
71236         Remove unnecessary assertion and abort() call.
71237         Use #ifdef _NL_CURRENT rather than #if 0, for benefit of glibc.
71238         * m4/strptime.m4: Fix serial number comment.
71239         (gl_FUNC_STRPTIME): Require AC_C_RESTRICT, gl_TM_GMTOFF.
71240         * modules/strptime (Files): Add m4/tm_gmtoff.m4.
71241         (Depends-on): Add time_r.
71242
71243 2007-01-29  Bruno Haible  <bruno@clisp.org>
71244
71245         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
71246         strptime.
71247         * modules/strptime (Depends-on): Add stdbool.
71248         * lib/strptime.h: Include <time.h> always. Add comments.
71249
71250 2007-01-29  Yoann Vandoorselaere  <yoann@prelude-ids.org>
71251
71252         * modules/strptime: New file.
71253         * lib/strptime.h: New file.
71254         * lib/strptime.c: New file.
71255         * m4/strptime.m4: New file.
71256
71257 2007-01-28  Paul Eggert  <eggert@cs.ucla.edu>
71258
71259         * MODULES.html.sh: New module mpsort.
71260         * lib/mpsort.c, lib/mpsort.h, m4/mpsort.m4, modules/mpsort: New files.
71261
71262         * lib/regex.h (_Restrict_): Renamed from __restrict, to avoid
71263         a circularity problem with HP-UX ia64 reported by Bob Proulx in
71264         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00394.html>.
71265         All uses changed.
71266         (_Restrict_arr_): Renamed from __restrict_arr, for similar reasons.
71267         All uses changed.
71268         * lib/regcomp.c, lib/regexec.c: Change all uses from __restrict
71269         to _Restrict_.
71270         * lib/regexec.c (regexec): Declare pmatch with _Restrict_arr_, so that
71271         the parameter matches the prototype.
71272
71273 2007-01-28  Jim Meyering  <jim@meyering.net>
71274
71275         * modules/sys_time (Makefile.am) [MOSTLYCLEANFILES]: Do use
71276         sys/time.h here, reverting that part of the previous patch:
71277         <http://thread.gmane.org/gmane.comp.lib.gnulib.bugs/8959>.
71278
71279 2007-01-28  Bruno Haible  <bruno@clisp.org>
71280
71281         * modules/sys_time (Makefile.am): Build sys/time.h only when it's the
71282         value of $(SYS_TIME_H).
71283         [MOSTLYCLEANFILES]: Now that sys/time.h is created only when needed,
71284         remove it conditionally, too. [added by Jim Meyering]
71285         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Set SYS_TIME_H.
71286         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71287         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Set SYS_TIME_H when setting
71288         GETTIMEOFDAY_REPLACEMENT to 1.
71289
71290 2007-01-28  Bruno Haible  <bruno@clisp.org>
71291
71292         * m4/unistd_h.m4 (gl_HEADER_UNISTD_DEFAULTS): New macro.
71293         (gl_HEADER_UNISTD): Require it. Don't set UNISTD_H to empty here.
71294         * m4/fchdir.m4 (gl_FUNC_FCHDIR): Require gl_HEADER_UNISTD_DEFAULTS.
71295         Set UNISTD_H instead of UNISTD_H2.
71296         * modules/fchdir (BUILT_SOURCES): Drop $(UNISTD_H2).
71297
71298 2007-01-28  Bruno Haible  <bruno@clisp.org>
71299
71300         * modules/mbchar (Makefile.am): Add mbchar.c to lib_SOURCES.
71301         * m4/mbchar.m4 (gl_MBCHAR): Remove AC_LIBOBJ invocation.
71302
71303 2007-01-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71304
71305         * gnulib-tool (func_emit_lib_Makefile_am, func_add_or_update)
71306         (func_create_testdir): Ensure C locale for `grep' and `tr'
71307         character ranges.
71308         (func_create_megatestdir): Avoid one `grep'.  Fix bug in
71309         ACLOCAL_AMFLAGS parsing state machine.
71310
71311 2007-01-27  Bruno Haible  <bruno@clisp.org>
71312
71313         * modules/unistr/base: Update.
71314
71315 2007-01-27  Bruno Haible  <bruno@clisp.org>
71316
71317         Rename u32-mbtouc -> u32-mbtouc-unsafe, u32-mbtouc-safe -> u32-mbtouc,
71318         u32_mbtouc -> u32_mbtouc_unsafe, u32_mbtouc_safe -> u32_mbtouc.
71319         * modules/unistr/u32-mbtouc-unsafe: Renamed from
71320         modules/unistr/u32-mbtouc.
71321         * lib/unistr/u32-mbtouc-unsafe.c: Renamed from lib/unistr/u32-mbtouc.c.
71322         * lib/unistr.h: Update.
71323         * lib/linebreak.c: Update.
71324         * modules/unistr/u32-mbtouc: Renamed from
71325         modules/unistr/u32-mbtouc-safe.
71326         * lib/unistr/u32-mbtouc.c: Renamed from lib/unistr/u32-mbtouc-safe.c.
71327         * lib/unistr.h: Update.
71328         * lib/unistr/u32-to-u8.c: Update.
71329         * lib/unistr/u32-to-u16.c: Update.
71330
71331 2007-01-27  Bruno Haible  <bruno@clisp.org>
71332
71333         Rename utf16-ucs4 -> utf16-ucs4-unsafe, utf16-ucs4-safe -> utf16-ucs4,
71334         u16_mbtouc -> u16_mbtouc_unsafe, u16_mbtouc_safe -> u16_mbtouc.
71335         * modules/utf16-ucs4-unsafe: Renamed from modules/utf16-ucs4.
71336         * lib/utf16-ucs4-unsafe.h: Renamed from lib/utf16-ucs4.h.
71337         * lib/unistr/utf16-ucs4-unsafe.c: Renamed from lib/unistr/utf16-ucs4.c.
71338         * modules/unistr/u16-mbtouc-unsafe: Renamed from
71339         modules/unistr/u16-mbtouc.
71340         * lib/unistr/u16-mbtouc-unsafe.c: Renamed from lib/unistr/u16-mbtouc.c.
71341         * lib/unistr.h: Update.
71342         * lib/linebreak.c: Update.
71343         * modules/linebreak: Update.
71344         * modules/utf16-ucs4: Renamed from modules/utf16-ucs4-safe.
71345         * lib/utf16-ucs4.h: Renamed from lib/utf16-ucs4-safe.h.
71346         * lib/unistr/utf16-ucs4.c: Renamed from lib/unistr/utf16-ucs4-safe.c.
71347         * modules/unistr/u16-mbtouc: Renamed from
71348         modules/unistr/u16-mbtouc-safe.
71349         * lib/unistr/u16-mbtouc.c: Renamed from lib/unistr/u16-mbtouc-safe.c.
71350         * lib/unistr.h: Update.
71351         * lib/unistr/u16-to-u8.c: Update.
71352         * modules/unistr/u16-to-u8: Update.
71353         * lib/unistr/u16-to-u32.c: Update.
71354         * modules/unistr/u16-to-u32: Update.
71355
71356 2007-01-27  Bruno Haible  <bruno@clisp.org>
71357
71358         Rename utf8-ucs4 -> utf8-ucs4-unsafe, utf8-ucs4-safe -> utf8-ucs4,
71359         u8_mbtouc -> u8_mbtouc_unsafe, u8_mbtouc_safe -> u8_mbtouc.
71360         * modules/utf8-ucs4-unsafe: Renamed from modules/utf8-ucs4.
71361         * lib/utf8-ucs4-unsafe.h: Renamed from lib/utf8-ucs4.h.
71362         * lib/unistr/utf8-ucs4-unsafe.c: Renamed from lib/unistr/utf8-ucs4.c.
71363         * modules/unistr/u8-mbtouc-unsafe: Renamed from
71364         modules/unistr/u8-mbtouc.
71365         * lib/unistr/u8-mbtouc-unsafe.c: Renamed from lib/unistr/u8-mbtouc.c.
71366         * lib/unistr.h: Update.
71367         * lib/striconveh.c: Update.
71368         * modules/striconveh: Update.
71369         * lib/linebreak.c: Update.
71370         * modules/linebreak: Update.
71371         * modules/utf8-ucs4: Renamed from modules/utf8-ucs4-safe.
71372         * lib/utf8-ucs4.h: Renamed from lib/utf8-ucs4-safe.h.
71373         * lib/unistr/utf8-ucs4.c: Renamed from lib/unistr/utf8-ucs4-safe.c.
71374         * modules/unistr/u8-mbtouc: Renamed from modules/unistr/u8-mbtouc-safe.
71375         * lib/unistr/u8-mbtouc.c: Renamed from lib/unistr/u8-mbtouc-safe.c.
71376         * lib/unistr.h: Update.
71377         * lib/striconveh.c: Update.
71378         * modules/striconveh: Update.
71379         * lib/unistr/u8-to-u16.c: Update.
71380         * modules/unistr/u8-to-u16: Update.
71381         * lib/unistr/u8-to-u32.c: Update.
71382         * modules/unistr/u8-to-u32: Update.
71383
71384 2007-01-27  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
71385
71386         Sync from Libtool.
71387         * lib/argz.c: Do not include strings.h nor memory.h, include
71388         string.h unconditionally.  Patch by Simon Josefsson.
71389
71390 2007-01-27  Bruno Haible  <bruno@clisp.org>
71391
71392         * m4/string_h.m4 (gl_HEADER_STRING_H_DEFAULTS): New macro, extracted
71393         from gl_HEADER_STRING_H_BODY.
71394         (gl_HEADER_STRING_H_BODY): Require it.
71395         * m4/memmem.m4 (gl_FUNC_MEMMEM): Require gl_HEADER_STRING_H_DEFAULTS.
71396         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Likewise.
71397         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Likewise.
71398         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Likewise.
71399         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Likewise.
71400         * m4/strcase.m4 (gl_FUNC_STRCASECMP, gl_FUNC_STRNCASECMP): Likewise.
71401         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Likewise.
71402         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Likewise.
71403         * m4/strdup.m4 (gl_FUNC_STRDUP): Likewise.
71404         * m4/strndup.m4 (gl_FUNC_STRNDUP): Likewise.
71405         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Likewise.
71406         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Likewise.
71407         * m4/strsep.m4 (gl_FUNC_STRSEP): Likewise.
71408         * m4/strstr.m4 (gl_FUNC_STRSTR): Likewise.
71409         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
71410
71411 2007-01-27  Bruno Haible  <bruno@clisp.org>
71412
71413         * gnulib-tool (func_emit_lib_Makefile_am): If $for_test is true, turn
71414         check_PROGRAMS into noinst_PROGRAMS.
71415         (func_emit_tests_Makefile_am): Likewise. Also don't initialize
71416         check_PROGRAMS in this case.
71417         (func_import): Set for_test to false.
71418         (func_create_testdir): Set for_test to true.
71419
71420 2007-01-27  Yoann Vandoorselaere <yoann.v@prelude-ids.com>
71421             Bruno Haible  <bruno@clisp.org>
71422
71423         * modules/strcasestr (Files): Remove lib/strcasestr.h.
71424         (Depends-on): Add string.
71425         (Includes): Use <string.h> instead of strcasestr.h.
71426         * modules/string (Makefile.am): Also substitute the value of
71427         REPLACE_STRCASESTR.
71428         * m4/strcasestr.m4 (gl_FUNC_STRCASESTR): Don't define strcasestr here;
71429         assume strcasestr is declared in <string.h> not <strings.h>. Also
71430         set REPLACE_STRCASESTR.
71431         * m4/string_h.m4 (gl_HEADER_STRING_H_BODY): Provide a default value for
71432         REPLACE_STRCASESTR.
71433         * lib/strcasestr.h: Remove file.
71434         * lib/strcasestr.c: Include <string.h> instead of strcasestr.h.
71435         * lib/string_.h (strcasestr): New declaration.
71436
71437 2007-01-27  Bruno Haible  <bruno@clisp.org>
71438
71439         * lib/string_.h: Use 'extern'.
71440
71441 2007-01-27  Jim Meyering  <jim@meyering.net>
71442
71443         * lib/regex_internal.c (re_string_reconstruct): Remove declaration
71444         of set-but-not-used local, "q".
71445
71446         * lib/mempcpy.c: Include <config.h> before <string.h>.
71447         This fixes a compilation error on HP-UX, due to the system's
71448         "restrict"-using mempcpy prototype.
71449
71450 2007-01-26  Bruno Haible  <bruno@clisp.org>
71451
71452         Small optimization.
71453         * lib/javacomp.c: Include c-strstr.h.
71454          (is_envjavac_gcj): Use c_strstr instead of strstr.
71455         * modules/javacomp (Depends-on): Add c-strstr, remove strstr.
71456
71457 2007-01-26  Bruno Haible  <bruno@clisp.org>
71458
71459         * MODULES.html.sh (Unicode string functions): Add the new modules.
71460
71461         * modules/uniconv/u32-strconv-to-locale: New file.
71462         * lib/uniconv/u32-strconv-to-locale.c: New file.
71463
71464         * modules/uniconv/u16-strconv-to-locale: New file.
71465         * lib/uniconv/u16-strconv-to-locale.c: New file.
71466
71467         * modules/uniconv/u8-strconv-to-locale: New file.
71468         * lib/uniconv/u8-strconv-to-locale.c: New file.
71469
71470         * modules/uniconv/u32-strconv-from-locale: New file.
71471         * lib/uniconv/u32-strconv-from-locale.c: New file.
71472
71473         * modules/uniconv/u16-strconv-from-locale: New file.
71474         * lib/uniconv/u16-strconv-from-locale.c: New file.
71475
71476         * modules/uniconv/u8-strconv-from-locale: New file.
71477         * lib/uniconv/u8-strconv-from-locale.c: New file.
71478
71479         * modules/uniconv/u32-strconv-to-enc: New file.
71480         * lib/uniconv/u32-strconv-to-enc.c: New file.
71481         * modules/uniconv/u32-strconv-to-enc-tests: New file.
71482         * tests/uniconv/test-u32-strconv-to-enc.c: New file.
71483
71484         * modules/uniconv/u16-strconv-to-enc: New file.
71485         * lib/uniconv/u16-strconv-to-enc.c: New file.
71486         * lib/uniconv/u-strconv-to-enc.h: New file.
71487         * modules/uniconv/u16-strconv-to-enc-tests: New file.
71488         * tests/uniconv/test-u16-strconv-to-enc.c: New file.
71489
71490         * modules/uniconv/u8-strconv-to-enc: New file.
71491         * lib/uniconv/u8-strconv-to-enc.c: New file.
71492         * modules/uniconv/u8-strconv-to-enc-tests: New file.
71493         * tests/uniconv/test-u8-strconv-to-enc.c: New file.
71494
71495         * modules/uniconv/u32-strconv-from-enc: New file.
71496         * lib/uniconv/u32-strconv-from-enc.c: New file.
71497         * modules/uniconv/u32-strconv-from-enc-tests: New file.
71498         * tests/uniconv/test-u32-strconv-from-enc.c: New file.
71499
71500         * modules/uniconv/u16-strconv-from-enc: New file.
71501         * lib/uniconv/u16-strconv-from-enc.c: New file.
71502         * modules/uniconv/u16-strconv-from-enc-tests: New file.
71503         * tests/uniconv/test-u16-strconv-from-enc.c: New file.
71504
71505         * modules/uniconv/u8-strconv-from-enc: New file.
71506         * lib/uniconv/u8-strconv-from-enc.c: New file.
71507         * lib/uniconv/u-strconv-from-enc.h: New file.
71508         * modules/uniconv/u8-strconv-from-enc-tests: New file.
71509         * tests/uniconv/test-u8-strconv-from-enc.c: New file.
71510
71511         * modules/uniconv/u32-conv-from-enc: New file.
71512         * lib/uniconv/u32-conv-from-enc.c: New file.
71513         * modules/uniconv/u32-conv-from-enc-tests: New file.
71514         * tests/uniconv/test-u32-conv-from-enc.c: New file.
71515
71516         * modules/uniconv/u16-conv-from-enc: New file.
71517         * lib/uniconv/u16-conv-from-enc.c: New file.
71518         * lib/uniconv/u-conv-from-enc.h: New file.
71519         * modules/uniconv/u16-conv-from-enc-tests: New file.
71520         * tests/uniconv/test-u16-conv-from-enc.c: New file.
71521
71522         * modules/uniconv/u8-conv-from-enc: New file.
71523         * lib/uniconv/u8-conv-from-enc.c: New file.
71524         * modules/uniconv/u8-conv-from-enc-tests: New file.
71525         * tests/uniconv/test-u8-conv-from-enc.c: New file.
71526
71527         * modules/uniconv/base: New file.
71528         * lib/uniconv.h: New file.
71529
71530 2007-01-26  Paul Eggert  <eggert@cs.ucla.edu>
71531
71532         * doc/gnulib-tool.texi (Initial import): Update to match current
71533         behavior with strdup module.
71534         * lib/.cppi-disable: Remove strcase.h, strdup.h, strndup.h, strnlen.h.
71535         * lib/memmem.h: Remove; all uses removed.  This is now done
71536         by <string.h>.
71537         * lib/mempcpy.h: Likewise.
71538         * lib/memrchr.h: Likewise.
71539         * lib/stpcpy.h: Likewise.
71540         * lib/stpncpy.h: Likewise.
71541         * lib/strcase.h: Likewise.
71542         * lib/strchrnul.h: Likewise.
71543         * lib/strdup.h: Likewise.
71544         * lib/strndup.h: Likewise.
71545         * lib/strnlen.h: Likewise.
71546         * lib/strpbrk.h: Likewise.
71547         * lib/strsep.h: Likewise.
71548         * lib/strstr.h: Likewise.
71549         * lib/strtok_r.h: Likewise.
71550         * lib/string_.h: New file.
71551         * lib/argp-namefrob.h: Don't include no-longer-existent include files.
71552         Rely on <string.h> instead.
71553         * lib/canon-host.c: Likewise.
71554         * lib/chdir-long.c: Likewise.
71555         * lib/concatpath.c: Likewise.
71556         * lib/exclude.c: Likewise.
71557         * lib/fchdir.c: Likewise.
71558         * lib/getaddrinfo.c: Likewise.
71559         * lib/getcwd.c: Likewise.
71560         * lib/getsubopt.c: Likewise.
71561         * lib/glob.c: Likewise.
71562         * lib/hard-locale.c: Likewise.
71563         * lib/iconvme.c: Likewise.
71564         * lib/javacomp.c: Likewise.
71565         * lib/mempcpy.c: Likewise.
71566         * lib/memrchr.c: Likewise.
71567         * lib/regex_internal.h: Likewise.
71568         * lib/stpncpy.c: Likewise.
71569         * lib/strcasecmp.c: Likewise.
71570         * lib/strchrnul.c: Likewise.
71571         * lib/strdup.c: Likewise.
71572         * lib/striconv.c: Likewise.
71573         * lib/striconveh.c: Likewise.
71574         * lib/striconveha.c: Likewise.
71575         * lib/strncasecmp.c: Likewise.
71576         * lib/strndup.c: Likewise.
71577         * lib/strnlen.c: Likewise.
71578         * lib/strsep.c: Likewise.
71579         * lib/strstr.c: Likewise.
71580         * lib/strtok_r.c: Likewise.
71581         * lib/userspec.c: Likewise.
71582         * lib/w32spawn.h: Likewise.
71583         * lib/xstrndup.c: Likewise.
71584         * lib/mountlist.c (strstr): Remove decl.
71585         * m4/string_h.m4: New file.
71586         * m4/memmem.m4 (gl_FUNC_MEMMEM): Set HAVE_DECL_MEMMEM if necessary.
71587         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY): Set HAVE_MEMPCPY if necessary.
71588         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Set HAVE_MEMRCHR
71589         * m4/stpcpy.m4 (gl_FUNC_STPCPY): Set HAVE_STPCPY if necessary.
71590         * m4/stpncpy.m4 (gl_PREREQ_STPNCPY): Set HAVE_STPNCPY if necessary.
71591         * m4/strcase.m4 (gl_FUNC_STRCASECMP):
71592         Set REPLACE_STRCASECMP if necessary.
71593         (gl_FUNC_STRNCASECMP): Set HAVE_DECL_STRNCASECMP if necessary.
71594         * m4/strchrnul.m4 (gl_FUNC_STRCHRNUL): Set HAVE_STRCHRNUL if necessary.
71595         * m4/strdup.m4 (gl_FUNC_STRDUP): Set HAVE_DECL_STRDUP if necessary.
71596         * m4/strndup.m4 (gl_FUNC_STRNDUP): Set HAVE_DECL_STRNLEN and
71597         HAVE_DECL_STRDUP if necessary.
71598         (gl_PREREQ_STRNLEN): Don't bother to check for strnlen decl,
71599         since gl_FUNC_STRNDUP does that now.
71600         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Set HAVE_DECL_STRNLEN if necessary.
71601         Check for decl here...
71602         (gl_PREREQ_STRNLEN): ... not here.
71603         * m4/strpbrk.m4 (gl_FUNC_STRPBRK): Set HAVE_STRPBRK if necessary.
71604         * m4/strsep.m4 (gl_FUNC_STRSEP): Set HAVE_STRSEP if necessary.
71605         * m4/strstr.m4 (gl_FUNC_STRSTR): Set REPLACE_STRSTR if necessary.
71606         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Set HAVE_DECL_STRTOK_R if
71607         necessary.
71608         * modules/string: New file.
71609         * modules/memmem (Files): Remove special-purpose include file.
71610         (Depends-on): Add string.
71611         (Include): Include <string.h>, not the removed file.
71612         * modules/mempcpy: Likewise.
71613         * modules/memrchr: Likewise.
71614         * modules/stpcpy: Likewise.
71615         * modules/stpncpy: Likewise.
71616         * modules/strcase: Likewise.
71617         * modules/strchrnul: Likewise.
71618         * modules/strdup: Likewise.
71619         * modules/strndup: Likewise.
71620         * modules/strnlen: Likewise.
71621         * modules/strpbrk: Likewise.
71622         * modules/strsep: Likewise.
71623         * modules/strstr: Likewise.
71624         * modules/strtok_r: Likewise.
71625         * tests/test-dirname.c: Don't include "strdup.h", since
71626         <string.h> now suffices.
71627         * tests/test-memmem.c: Don't include "memmem.h", since
71628         <string.h> now suffices.
71629
71630 2007-01-25  Bruno Haible  <bruno@clisp.org>
71631
71632         * lib/striconveh.c (mem_cd_iconveh_internal): Ignore *lengthp if
71633         *resultp is 0.
71634
71635         * lib/unistr/u16-to-u8.c (u16_to_u8): Fix u8_uctomb invocation.
71636         * lib/unistr/u32-to-u8.c (u32_to_u8): Likewise.
71637         * lib/unistr/u8-to-u16.c (u8_to_u16): Fix u16_uctomb invocation.
71638         * lib/unistr/u32-to-u16.c (u32_to_u16): Likewise.
71639
71640         * modules/unistr/u8-to-u16 (Depends-on): Add missing modules.
71641         * modules/unistr/u8-to-u32 (Depends-on): Add missing modules.
71642         * modules/unistr/u16-to-u8 (Depends-on): Add missing modules.
71643         * modules/unistr/u16-to-u32 (Depends-on): Add missing modules.
71644         * modules/unistr/u32-to-u8 (Depends-on): Add missing modules.
71645         * modules/unistr/u32-to-u16 (Depends-on): Add missing modules.
71646
71647 2007-01-24  Bruno Haible  <bruno@clisp.org>
71648
71649         Don't AC_REQUIRE autoconf macros that invoke AC_LIBOBJ. See
71650         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00279.html>.
71651         * m4/argp.m4 (gl_ARGP): Invoke, don't require, gl_GETOPT_SUBSTITUTE.
71652         * m4/fts.m4 (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): Invoke, don't require,
71653         gl_FUNC_FTS_CORE.
71654         (gl_FUNC_FTS_CORE): Invoke, don't require, gl_FUNC_OPENAT.
71655         * m4/lstat.m4 (gl_FUNC_LSTAT): Invoke, don't require,
71656         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
71657         * m4/memcmp.m4 (gl_FUNC_MEMCMP): Invoke, don't require, AC_FUNC_MEMCMP.
71658         * m4/mktime.m4 (gl_FUNC_MKTIME): Invoke, don't require, AC_FUNC_MKTIME.
71659         * m4/openat.m4 (gl_FUNC_OPENAT): Invoke, don't require,
71660         gl_FUNC_FCHOWNAT.
71661         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Invoke, don't require,
71662         gl_FUNC_STRFTIME.
71663         * m4/strtod.m4 (gl_FUNC_STRTOD): Invoke, don't require, AC_FUNC_STRTOD.
71664         Reported by Ralf Wildenhues.
71665
71666 2007-01-24  Bruno Haible  <bruno@clisp.org>
71667
71668         Drop AC_REQUIRE calls that are redundant with the module dependencies.
71669         * m4/canon-host.m4 (gl_PREREQ_CANON_HOST): Don't require
71670         gl_GETADDRINFO.
71671         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Don't require AM_STDBOOL_H,
71672         gl_FUNC_MEMPCPY, gl_FUNC_OPENAT, gl_FUNC_MEMRCHR.
71673         * m4/openat.m4 (gl_PREREQ_OPENAT): Don't require gl_SAVE_CWD.
71674
71675 2007-01-24  Paul Eggert  <eggert@cs.ucla.edu>
71676
71677         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Add test for glibc bug 361.
71678         Don't use 'exit'; just return from 'main'.
71679         (_AC_LIBOBJ_FNMATCH): Check for headers and functions just once.
71680
71681         * lib/fnmatch_.h: Readjust white space and comments to match
71682         glibc, to avoid spurious diffs.
71683
71684 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71685
71686         * lib/fnmatch_loop.c (internal_fnmatch) [!_LIBC]: #if-out the
71687         2004-12-01 change by Jakub Jelinek, since this code won't compile
71688         if !LIBC.  Problem reported by Bob Proulx.
71689
71690 2007-01-23  Bruno Haible  <bruno@clisp.org>
71691
71692         * lib/striconveh.c: Include c-strcaseeq.h.
71693         (mem_iconveh, str_iconveh): Use STRCASEEQ instead of c_strcasecmp.
71694         * modules/striconveh (Depends-on): Add c-strcaseeq.
71695
71696 2007-01-23  Bruno Haible  <bruno@clisp.org>
71697
71698         * MODULES.html.sh (String handling): Add streq, c-strcaseeq.
71699
71700         * modules/c-strcaseeq: New file.
71701         * lib/c-strcaseeq.h: New file.
71702
71703         * modules/streq: New file.
71704         * lib/streq.h: New file.
71705
71706 2007-01-23  Bruno Haible  <bruno@clisp.org>
71707
71708         * modules/striconveha-tests: New file.
71709         * tests/test-striconveha.c: New file.
71710
71711         * lib/striconveha.h: Include <stdbool.h>.
71712         (mem_iconveha, str_iconveha): Add 'transliterate' argument.
71713         * lib/striconveha.c: Include allocsa.h, strdup.h, c-strcase.h.
71714         (mem_iconveha_notranslit): Renamed from mem_iconveha.
71715         (mem_iconveha): New function.
71716         (str_iconveha_notranslit): Renamed from str_iconveha.
71717         (str_iconveha): New function.
71718         * modules/striconveha (Depends-on): Add stdbool, allocsa, strdup,
71719         c-strcase.
71720
71721 2007-01-23  Bruno Haible  <bruno@clisp.org>
71722
71723         * lib/striconveha.c (mem_iconveha): Fix endless recursion. Try all
71724         encodings without forgiving before trying any encoding with handler.
71725         (str_iconveha): Try all encodings without forgiving before trying any
71726         encoding with handler.
71727
71728 2007-01-23  Paul Eggert  <eggert@cs.ucla.edu>
71729
71730         Import the following changes from libc.
71731
71732         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
71733
71734         * lib/fnmatch_loop.c: Adjust for changed secondary hash function.
71735
71736         2004-12-01  Jakub Jelinek  <jakub@redhat.com>
71737
71738         * lib/fnmatch_loop.c (internal_fnmatch): Clear is_seqval after
71739         normal_bracket label.
71740
71741         2004-09-01  Jakub Jelinek  <jakub@redhat.com>
71742
71743         [BZ #361]
71744         * lib/fnmatch_loop.c (FCT): For backslash between brackets, branch
71745         to normal_bracket after fetching the next character.
71746
71747 2007-01-22  Bruno Haible  <bruno@clisp.org>
71748
71749         * lib/striconveh.h (mem_cd_iconveh, mem_iconveh): Add 'offsets'
71750         argument.
71751         * lib/striconveh.c (iconv_carefully_1): New function.
71752         (mem_cd_iconveh_internal, mem_cd_iconveh, mem_iconveh): Add 'offsets'
71753         argument.
71754         (str_cd_iconveh): Update.
71755         * lib/striconveha.h (mem_iconveha): Add 'offsets' argument.
71756         * lib/striconveha.c (mem_iconveha): Add 'offsets' argument.
71757         * tests/test-striconveh.c (MAGIC): New macro.
71758         (new_offsets): New function.
71759         (main): Test call with and without offsets.
71760
71761 2007-01-22  Bruno Haible  <bruno@clisp.org>
71762
71763         * modules/sys_stat (Makefile.am): Use @MKDIR_P@ instead of $(MKDIR_P).
71764         * modules/sys_select (Makefile.am): Likewise.
71765         * modules/sys_socket (Makefile.am): Likewise.
71766         * modules/sys_time (Makefile.am): Likewise.
71767
71768 2007-01-22  Paul Eggert  <eggert@cs.ucla.edu>
71769
71770         * modules/gettimeofday (License): Change from GPL to LGPL, since
71771         gettimeofday is a library function.
71772
71773 2007-01-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
71774
71775         * lib/poll.c (rpl_poll): Don't check against FD_SETSIZE under Win32.
71776
71777 2007-01-21  Bruno Haible  <bruno@clisp.org>
71778
71779         * m4/gnulib-common.m4 (AC_PROG_MKDIR_P): New macro.
71780
71781 2007-01-21  Bruno Haible  <bruno@clisp.org>
71782
71783         * modules/striconveha: New file.
71784         * lib/striconveha.h: New file.
71785         * lib/striconveha.c: New file.
71786         * MODULES.html.sh (Internationalization functions): Add striconveha.
71787         * lib/striconv.c (str_iconv): Optimize the case of an empty input
71788         string.
71789         * lib/striconveh.c (mem_iconveh, str_iconveh): Likewise.
71790
71791 2007-01-21  Bruno Haible  <bruno@clisp.org>
71792
71793         * lib/striconv.c (str_iconv): Guarantee errno is set when strdup fails.
71794         * lib/striconveh.c (str_iconveh): Likewise.
71795
71796 2007-01-21  Bruno Haible  <bruno@clisp.org>
71797
71798         * lib/striconveh.h (mem_iconveh): New declaration.
71799         * lib/striconveh.c (mem_iconveh): New function.
71800         * tests/test-striconveh.c (main): Add tests for mem_iconveh.
71801
71802 2007-01-21  Bruno Haible  <bruno@clisp.org>
71803
71804         * lib/xstriconv.h (xmem_cd_iconv): Change specification.
71805
71806         * lib/striconveh.h (mem_cd_iconveh): Change specification.
71807         * lib/striconveh.c (mem_cd_iconveh): Don't free the user-supplied
71808         original result buffer.
71809         (str_cd_iconveh): Update.
71810         * tests/test-striconveh.c (main): Update.
71811
71812         * lib/striconv.h (mem_cd_iconv): Change specification.
71813         * lib/striconv.c (mem_cd_iconv): Don't free the user-supplied original
71814         result buffer.
71815         (str_cd_iconv): Update.
71816         * tests/test-striconv.c (main): Update.
71817
71818 2007-01-21  Bruno Haible  <bruno@clisp.org>
71819
71820         * gnulib-tool: Fix test whether sed is GNU sed supporting --posix.
71821
71822 2007-01-20  Jim Meyering  <jim@meyering.net>
71823
71824         * lib/userspec.c (parse_with_separator): If a user or group string
71825         starts with "+", skip the corresponding name-to-ID look-up, since
71826         such a look-up must fail: user and group names may not include "+".
71827
71828 2007-01-19  Paul Eggert  <eggert@cs.ucla.edu>
71829
71830         * lib/poll.c: Include sys/time.h and time.h unconditionally,
71831         since we now assume the sys_time module.
71832         * m4/poll.m4 (gl_PREREQ_POLL): Don't require AC_HEADER_TIME or
71833         check for sys/time.h; no longer needed.
71834         * modules/poll (Depends-on): Depend on sys_time.
71835
71836 2007-01-18  Bruno Haible  <bruno@clisp.org>
71837
71838         * m4/mktime.m4 (AC_FUNC_MKTIME): Remove test for <sys/time.h>.
71839         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71840
71841         * m4/tempname.m4 (gl_PREREQ_TEMPNAME): Remove tests for sys/time.h and
71842         gettimeofday.
71843
71844         * tests/test-gettimeofday.c: Include <time.h>.
71845         (dummy): Remove variable.
71846
71847         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H_BODY): Renamed from
71848         gl_HEADER_SYS_TIME_H.
71849         (gl_HEADER_SYS_TIME_H): New macro.
71850
71851         * lib/sys_time_.h: Test GETTIMEOFDAY_REPLACEMENT instead of
71852         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71853         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY,
71854         gl_FUNC_GETTIMEOFDAY_CLOBBER): Set GETTIMEOFDAY_REPLACEMENT instead of
71855         HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71856         * m4/sys_time_h.m4 (gl_HEADER_SYS_TIME_H): Initialize
71857         GETTIMEOFDAY_REPLACEMENT instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE
71858         and GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71859         * modules/sys_time (sys/time.h): Substitute GETTIMEOFDAY_REPLACEMENT
71860         instead of HAVE_GETTIMEOFDAY_POSIX_SIGNATURE and
71861         GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71862
71863         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Undo the
71864         last change; it caused a compilation error when cross-compiling to
71865         Cygwin.
71866
71867 2007-01-18  Jim Meyering  <jim@meyering.net>
71868
71869         Use "$(MKDIR_P) sys", not race-prone "test -d sys || mkdir sys".
71870         * modules/sys_stat (Makefile.am): Use "$(MKDIR_P) sys", rather
71871         than the race-prone "test -d sys || mkdir sys".
71872         (configure.ac): Use AC_PROG_MKDIR_P.
71873         * modules/sys_select: Likewise.
71874         * modules/sys_socket: Likewise.
71875         * modules/sys_time: Likewise.
71876
71877 2007-01-18  Eric Blake  <ebb9@byu.net>
71878
71879         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Also
71880         replace gettimeofday.
71881         * lib/gettimeofday.c (rpl_gettimeofday): Declare with replacement
71882         name, to avoid infinite recursion.
71883
71884 2007-01-17  Paul Eggert  <eggert@cs.ucla.edu>
71885
71886         * MODULES.html.sh (Support for systems lacking POSIX:2001): New
71887         module sys_time.
71888         * lib/gethrxtime.c: Include <sys/time.h>, since we can no longer
71889         assume timespec.h defines struct timeval.
71890         * lib/settime.c: Likewise.
71891         * lib/utimens.c: Likewise.
71892         * lib/gettime.c (gettime): Remove test against HAVE_GETTIMEOFDAY,
71893         since we now assume the gettimeofday module.
71894         * lib/tempname.c (__gen_tempname): Likewise.
71895         * lib/gettimeofday.h: Remove.
71896         * lib/gettimeofday.c: Include <sys/time.h> instead of "gettimeofday.h".
71897         Don't include <sys/types.h> and <stdlib.h>; shouldn't be needed.
71898         Include <time.h>, for 'time()'.
71899         (localtime_buffer_addr): Also use this workaround if
71900         TZSET_CLOBBERS_LOCALTIME.  Set to a dummy static variable by default,
71901         to simplify the uses.  All uses changed.
71902         (localtime, gmtime, tzset, gettimeofday): Reformat slightly so
71903         that #undef is inside {}, and 'const' follows type name consistently.
71904         (tzset): Define replacement only if TZSET_CLOBBERS_LOCALTIME.
71905         (gettimeofday): Do not use the maximum possible value for
71906         tv->tv_usec, since that might break usages other than ls.c.
71907         Instead, we'll leave ls.c alone.  This undoes today's patch
71908         by Bruno.  Add a compile-time warning for 1s-clock resolution;
71909         we've never observed the problem but might as well keep the
71910         canary.
71911         * lib/nanosleep.c: Include timespec.h first, for interface check.
71912         * lib/nanosleep.c: Include <sys/time.h> unconditionally, since we
71913         now assume the sys_time module.
71914         * lib/tempname.c: Likewise.
71915         * lib/timespec.h: Likewise.
71916         * lib/nanosleep.c: Don't worry about TIME_WITH_SYS_TIME; no longer
71917         needed.
71918         * lib/strftime.c: Likewise.
71919         * lib/timespec.h: Likewise.
71920         * lib/posixtm.c: Include posixtm.h first, for interface check.
71921         Don't worry about TM_IN_SYS_TIME; that's wayyy obsolete.
71922         * lib/posixtm.h: Include stdbool.h and time.h, for proper interface.
71923         * lib/strftime.c: Don't include <sys/types.h>; shouldn't be needed.
71924         * lib/sys_time_.h: New file.
71925         * lib/timespec.h (struct timespec): Use long int, not long.
71926         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY):
71927         (gl_FUNC_GETTIMEOFDAY_CLOBBER, gl_PREREQ_GETTIMEOFDAY):
71928         Remove obsolescent call to AC_HEADER_TIME.
71929         * m4/mktime.m4 (AC_FUNC_MKTIME): Likewise.
71930         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
71931         * m4/strftime.m4 (gl_FUNC_STRFTIME): Likewise.
71932         * m4/timespec.m4 (gl_TIMESPEC, gl_CHECK_TYPE_STRUCT_TIMESPEC):
71933         Likewise.
71934         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Likewise.
71935         * m4/utimbuf.m4 (gl_CHECK_TYPE_STRUCT_UTIMBUF): Likewise.
71936         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): Move sys/time.h tests
71937         into the sys_time module.  Check for gettimeofday just once.
71938         Prefix our variables with gl_, not with ac_ or jm_.  Tighten test
71939         for gettimeofday signature to just check the signature.  Merely
71940         compile it, since linking doesn't test signature.  Improve test for
71941         whether gettimeofday.o is actually needed.
71942         (gl_FUNC_GETTIMEOFDAY_CLOBBER): Renamed from
71943         AC_FUNC_GETTIMEOFDAY_CLOBBER.  All uses changed.  Use
71944         AC_RUN_IFELSE rather than AC_TRY_RUN.  If clobbering, set
71945         and define GETTIMEOFDAY_CLOBBERS_LOCALTIME.
71946         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Don't define
71947         GETTIMEOFDAY_CLOBBERS_LOCALTIME; that's gl_FUNC_GETTIMEOFDAY_CLOBBER's
71948         job.  Don't define tzset; that's gl_FUNC_TZSET_CLOBBER's job.
71949         * m4/mktime.m4 (AC_FUNC_MKTIME): Just include <time.h> rather
71950         than worrying about sys/time.h.
71951         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
71952         Don't bother worrying about TIME_WITH_SYS_TIME.
71953         * m4/stat-time.m4 (gl_STAT_TIME): Likewise.
71954         * m4/posixtm.m4 (gl_POSIXTM): Remove obsolescent call to AC_STRUCT_TM.
71955         * m4/sys_time_h.m4: New file.
71956         * m4/tzset.m4 (gl_FUNC_TZSET_CLOBBER): Require gl_HEADER_SYS_TIME_H.
71957         Don't include sys/time.h.  Return from main rather than exiting.
71958         Define TZSET_CLOBBERS_LOCALTIME, for consistency with other names;
71959         all uses changed.
71960         * modules/gethrxtime (Depends-on): Add sys_time.
71961         * modules/gettime (Depends-on): Likewise.
71962         * modules/gettimeofday (Depends-on): Likewise.
71963         * modules/nanosleep (Depends-on): Likewise.
71964         * modules/settime (Depends-on): Likewise.
71965         * modules/tempname (Depends-on): Likewise.
71966         * modules/utimens (Depends-on): Likewise.
71967         * modules/gettimeofday (Files): Remove lib/gettimeofday.h.
71968         (Include): Change back to <sys/time.h>.
71969         (Maintainer): Add self.
71970         * modules/sys_time: New file.
71971         * modules/tempname (Depends-on): Add gettimeofday.
71972         * tests/test-gettimeofday.c: Include <sys/time.h>
71973         rather than gettimeofday.h.
71974
71975 2007-01-17  Bruno Haible  <bruno@clisp.org>
71976
71977         * gnulib-tool (func_get_license): Revert last patch. Instead, let
71978         the license default to GPL.
71979         (func_create_testdir): Don't complain if a module is LGPL and its
71980         tests module depends on GPLed modules.
71981
71982 2007-01-17  Bruno Haible  <bruno@clisp.org>
71983
71984         * lib/gettimeofday.c (gettimeofday): Add code for the case
71985         HAVE_GETTIMEOFDAY && !GETTIMEOFDAY_CLOBBERS_LOCALTIME. Use the
71986         maximum possible value for tv->tv_usec, rather than the minimum one.
71987
71988 2005-10-08  Martin Lambers  <marlam@marlam.de>
71989 2005-10-08  Paul Eggert  <eggert@cs.ucla.edu>
71990 2007-01-16  Bruno Haible  <bruno@clisp.org>
71991
71992         * modules/gettimeofday (Files): Add lib/gettimeofday.h.
71993         (configure.ac): Remove AC_FUNC_GETTIMEOFDAY_CLOBBER. Add
71994         gl_FUNC_GETTIMEOFDAY.
71995         (Include): Add gettimeofday.h.
71996         * m4/gettimeofday.m4 (gl_FUNC_GETTIMEOFDAY): New macro.
71997         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't invoke gl_PREREQ_GETTIMEOFDAY.
71998         (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): Define
71999         GETTIMEOFDAY_CLOBBERS_LOCALTIME. Invoke gl_PREREQ_GETTIMEOFDAY here.
72000         (gl_PREREQ_GETTIMEOFDAY): Check for <sys/timeb.h> and _ftime.
72001         * lib/gettimeofday.h: New file.
72002         * lib/gettimeofday.c: Include <sys/timeb.h>.
72003         (localtime_buffer_addr, rpl_localtime, rpl_gmtime, rpl_tzset): Define
72004         only if GETTIMEOFDAY_CLOBBERS_LOCALTIME.
72005         (rpl_gettimeofday) [!HAVE_GETTIMEOFDAY]: Use _ftime() when available;
72006         fall back on time().
72007
72008         * tests/test-gettimeofday.c: New file.
72009         * modules/gettimeofday-tests: New file.
72010
72011 2007-01-16  Eric Blake  <ebb9@byu.net>
72012
72013         * modules/fnmatch (Depends-on): Depend on wchar.
72014         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Assume <wchar.h>.
72015         * m4/fnmatch.m4: Likewise.
72016         * modules/mbchar (Makefile.am): Assume <wchar.h>.
72017         * m4/mbchar.m4: Likewise.
72018         * modules/mbswidth (Depends-on): Depend on wchar.
72019         * lib/mbswidth.c: Assume <wchar.h>.
72020         * m4/mbswidth.m4: Likewise.
72021         * modules/quotearg (Depends-on): Depend on wchar.
72022         * lib/quotearg.c: Assume <wchar.h>.
72023         * m4/quotearg.m4: Likewise.
72024         * modules/regex (Depends-on): Depend on wchar.
72025         * lib/regex_internal.h: Assume <wchar.h>.
72026         * m4/regex.m4: Likewise.
72027         * modules/stdint (Depends-on): Depend on wchar.
72028         * lib/stdint_.h [!defined WCHAR_MIN]: Assume <wchar.h>.
72029         * m4/stdint.m4: Likewise.
72030         * tests/test-stdint.c [HAVE_WINT_T]: Likewise.
72031         * modules/strftime (Depends-on): Depend on wchar.
72032         * lib/strftime.c (DO_MULTIBYTE): Assume <wchar.h>.
72033         * modules/strtol (Depends-on): Depend on wchar.
72034         * lib/strtol.c: Assume <wchar.h>.
72035         * modules/wcwidth (Depends-on): Depend on wchar.
72036         * lib/wcwidth.h: Assume <wchar.h>.
72037         * m4/wcwidth.m4: Likewise.
72038
72039 2007-01-16  Bruno Haible  <bruno@clisp.org>
72040
72041         * modules/csharpexec-script: New, created from...
72042         * modules/csharpexec: ... this.
72043
72044 2007-01-16  Paolo Bonzini  <bonzini@gnu.org>
72045
72046         * modules/javaexec-script: New, created from...
72047         * modules/javaexec: ... this.
72048
72049 2007-01-16  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
72050
72051         * modules/poll (Dependencies): Add sys_select.
72052
72053 2007-01-15  Jim Meyering  <jim@meyering.net>
72054
72055         * m4/readutmp.m4 (gl_READUTMP): Work around AIX 4.3 struct-
72056         redefinition bug when using both <utmp.h> and <utmpx.h> headers.
72057         * lib/readutmp.h: Likewise.  Reported by Daniel Richard G. in
72058         <http://article.gmane.org/gmane.comp.gnu.core-utils.bugs/9415>.
72059
72060 2007-01-15  Bruno Haible  <bruno@clisp.org>
72061
72062         * modules/striconveh: New file.
72063         * lib/striconveh.h: New file.
72064         * lib/striconveh.c: New file.
72065         * MODULES.html.sh (Internationalization functions): Add striconveh.
72066
72067         * modules/striconveh-tests: New file.
72068         * tests/test-striconveh.c: New file.
72069
72070 2007-01-15  Bruno Haible  <bruno@clisp.org>
72071
72072         * lib/striconv.c (str_cd_iconv): Use the first algorithm if iconv is
72073         not from GNU libiconv or GNU libc.
72074
72075 2007-01-15  Bruno Haible  <bruno@clisp.org>
72076
72077         * doc/gnulib-intro.texi (Copyright): Explain the different license
72078         terms for module descriptions, autoconf macros, tests, documentation.
72079
72080 2007-01-14  Bruno Haible  <bruno@clisp.org>
72081
72082         * modules/striconv-tests: New file.
72083         * tests/test-striconv.c: New file.
72084
72085 2007-01-14  Bruno Haible  <bruno@clisp.org>
72086
72087         * modules/iconv-tests: New file.
72088         * tests/test-iconv.c: New file.
72089
72090 2007-01-14  Bruno Haible  <bruno@clisp.org>
72091
72092         * gnulib-tool (func_get_license): For test modules, use the license of
72093         the main module.
72094
72095 2007-01-14  Bruno Haible  <bruno@clisp.org>
72096
72097         * modules/iconv (Include): Clarify that <iconv.h> can only be included
72098         if iconv is found to exist.
72099
72100 2007-01-14  Bruno Haible  <bruno@clisp.org>
72101
72102         * modules/c-ctype-tests: New file.
72103         * tests/test-c-ctype.c: New file.
72104
72105 2007-01-14  Bruno Haible  <bruno@clisp.org>
72106
72107         * modules/binary-io-tests: New file.
72108         * tests/test-binary-io.sh: New file.
72109         * tests/test-binary-io.c: New file.
72110
72111 2007-01-14  Bruno Haible  <bruno@clisp.org>
72112
72113         * modules/array-oset-tests: New file.
72114         * tests/test-array_oset.c: New file.
72115
72116 2007-01-14  Bruno Haible  <bruno@clisp.org>
72117
72118         * modules/array-list-tests: New file.
72119         * tests/test-array_list.c: New file.
72120
72121 2007-01-14  Bruno Haible  <bruno@clisp.org>
72122
72123         * gnulib-tool (func_create_testdir): Don't unnecessarily run configure
72124         and make.
72125         Reported by Simon Josefsson in
72126         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00139.html>
72127
72128 2007-01-14  Bruno Haible  <bruno@clisp.org>
72129
72130         * modules/allocsa-tests: New file.
72131         * tests/test-allocsa.c: New file.
72132
72133 2007-01-14  Bruno Haible  <bruno@clisp.org>
72134
72135         * modules/fchdir (Depends-on): Add absolute-header.
72136         * modules/unistd (Depends-on): Likewise.
72137
72138 2006-12-30  Bruno Haible  <bruno@clisp.org>
72139
72140         * modules/fchdir: New file.
72141         * modules/unistd (Files): Add lib/unistd_.h.
72142         (Makefile.am): Generate unistd.h from unistd_.h.
72143         * lib/fchdir.c: New file.
72144         * lib/dirent_.h: New file.
72145         * lib/unistd_.h: New file.
72146         * lib/fcntl_.h (open) [FCHDIR_REPLACEMENT]: New replacement.
72147         * m4/fchdir.m4: New file.
72148         * m4/unistd_h.m4 (gl_PREREQ_UNISTD): New macro.
72149         (gl_HEADER_UNISTD): Invoke it.
72150         * lib/dup-safer.c (dup_safer) [FCHDIR_REPLACEMENT]: Use the dup
72151         function.
72152         * lib/backupfile.c (opendir, closedir): Undefine.
72153         * lib/chown.c (open, close): Undefine.
72154         * lib/clean-temp.c (open, close): Undefine.
72155         * lib/copy-file.c (open, close): Undefine.
72156         * lib/execute.c (open, close): Undefine.
72157         * lib/fsusage.c (open, close): Undefine.
72158         * lib/gc-gnulib.c (open, close): Undefine.
72159         * lib/getcwd.c (opendir, closedir): Undefine.
72160         * lib/glob.c (opendir, closedir): Undefine.
72161         * lib/javacomp.c (open, close): Undefine.
72162         * lib/mountlist.c (open, close, opendir, closedir): Undefine.
72163         * lib/openat-proc.c (open, close): Undefine.
72164         * lib/pagealign_alloc.c (open, close): Undefine.
72165         * lib/pipe.c (open, close): Undefine.
72166         * lib/progreloc.c (open, close): Undefine.
72167         * lib/savedir.c (opendir, closedir): Undefine.
72168         * lib/utime.c (open, close): Undefine.
72169         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add fchdir.
72170
72171 2007-01-10  Bruno Haible  <bruno@clisp.org>
72172
72173         * lib/striconv.c (mem_cd_iconv): Align the temporary buffer.
72174
72175 2007-01-12  Eric Blake  <ebb9@byu.net>
72176
72177         Provide a robust <wchar.h>.  Further simplifications are now
72178         possible in other modules, but not included here.
72179         * modules/wchar: New module.
72180         * m4/wchar.m4: New file.
72181         * lib/wchar_.h: Likewise.
72182         * modules/mbchar (Depends-on): Depend on wchar, as the first use
72183         of the new module.
72184         * MODULES.html.sh (Extended multibyte and wide character utilities):
72185         New section.
72186
72187 2007-01-12  Paul Eggert  <eggert@cs.ucla.edu>
72188
72189         * lib/xreadlink.c (SYMLINK_MAX) [!defined SYMLINK_MAX]: Define
72190         to a reasonable default for memory allocation.
72191         (xreadlink): Don't allocate a huge buffer, to work around a buggy
72192         file system that reports garbage st_size values for symlinks.
72193         Problem reported by Liyang Hu.
72194
72195 2007-01-11  Simon Josefsson  <simon@josefsson.org>
72196
72197         * gnulib-tool (func_all_modules): Exclude all .* files (e.g.,
72198         Emacs .#* auto-save files).
72199
72200 2007-01-11  Bruno Haible  <bruno@clisp.org>
72201
72202         * gnulib-tool (func_all_modules): Exclude all files inside the CVS
72203         directory.
72204
72205 2007-01-10  Paul Eggert  <eggert@cs.ucla.edu>
72206
72207         Use @...@ consistently in lib/wctype_.h.
72208         * lib/wctype_.h [HAVE_WINT_T]: Go back to using @...@, but rely
72209         on it being set to 1 or 0.
72210         * m4/wctype.m4 (gl_WCTYPE_H): Set HAVE_WINT_T to 1 or 0, and
72211         go back to AC_SUBSTing it.
72212         * modules/wctype (Makefile.am): Undo previous change.
72213
72214 2007-01-10  Eric Blake  <ebb9@byu.net>
72215
72216         * lib/wctype_.h [HAVE_WINT_T]: Rely on AC_DEFINE.
72217         * m4/wctype.m4 (gl_WCTYPE_H): No need to AC_SUBST(HAVE_WINT_T).
72218         * modules/wctype (Makefile.am): Likewise.
72219         Reported by Chris McGuire.
72220
72221 2007-01-10  Jim Meyering  <jim@meyering.net>
72222
72223         fts.c: a small readability/maintainability improvement
72224         * lib/fts.c (fts_read): Make this code slightly more readable and
72225         maintainable by hoisting the "sp->fts_cur = p" assignments to
72226         immediately follow the statements that set P.  Derived from
72227         the patch by Miloslav Trmac in http://bugzilla.redhat.com/222089.
72228
72229 2007-01-10  Eric Blake  <ebb9@byu.net>
72230
72231         * lib/wctype_.h [HAVE_WINT_T]: Include <stddef.h> before
72232         <wchar.h>, to work around BSDI bug in BSD/OS 4.0.1.
72233         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72234         * m4/wint_t.m4 (gt_TYPE_WINT_T): Likewise.
72235         Reported by Chris McGuire.
72236
72237 2007-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72238
72239         * gnulib-tool (func_all_modules): Use POSIX conforming escaping
72240         in sed script.
72241
72242 2007-01-09  Bruno Haible  <bruno@clisp.org>
72243
72244         * MODULES.html.sh: Accept options --cvs-urls, --git-urls.
72245         (repo_url_prefix, repo_url_suffix, repo_url_suffix_repl): New
72246         variables.
72247         (func_module): Use them.
72248
72249 2007-01-09  Bruno Haible  <bruno@clisp.org>
72250
72251         * modules/unistr/base: New file.
72252         * lib/unistr.h: New file.
72253
72254         * modules/unistr/u8-to-u16: New file.
72255         * lib/unistr/u8-to-u16.c: New file.
72256
72257         * modules/unistr/u8-to-u32: New file.
72258         * lib/unistr/u8-to-u32.c: New file.
72259
72260         * modules/unistr/u16-to-u8: New file.
72261         * lib/unistr/u16-to-u8.c: New file.
72262
72263         * modules/unistr/u16-to-u32: New file.
72264         * lib/unistr/u16-to-u32.c: New file.
72265
72266         * modules/unistr/u32-to-u8: New file.
72267         * lib/unistr/u32-to-u8.c: New file.
72268
72269         * modules/unistr/u32-to-u16: New file.
72270         * lib/unistr/u32-to-u16.c: New file.
72271
72272         * modules/unistr/u8-check: New file.
72273         * modules/unistr/u16-check: New file.
72274         * modules/unistr/u32-check: New file.
72275         * lib/unistr/u8-check.c: New file.
72276         * lib/unistr/u16-check.c: New file.
72277         * lib/unistr/u32-check.c: New file.
72278
72279         * modules/unistr/u8-chr: New file.
72280         * modules/unistr/u16-chr: New file.
72281         * modules/unistr/u32-chr: New file.
72282         * lib/unistr/u8-chr.c: New file.
72283         * lib/unistr/u16-chr.c: New file.
72284         * lib/unistr/u32-chr.c: New file.
72285
72286         * modules/unistr/u8-cmp: New file.
72287         * modules/unistr/u16-cmp: New file.
72288         * modules/unistr/u32-cmp: New file.
72289         * lib/unistr/u8-cmp.c: New file.
72290         * lib/unistr/u16-cmp.c: New file.
72291         * lib/unistr/u32-cmp.c: New file.
72292
72293         * modules/unistr/u8-cpy: New file.
72294         * modules/unistr/u16-cpy: New file.
72295         * modules/unistr/u32-cpy: New file.
72296         * lib/unistr/u8-cpy.c: New file.
72297         * lib/unistr/u16-cpy.c: New file.
72298         * lib/unistr/u32-cpy.c: New file.
72299         * lib/unistr/u-cpy.h: New file.
72300
72301         * modules/unistr/u8-cpy-alloc: New file.
72302         * modules/unistr/u16-cpy-alloc: New file.
72303         * modules/unistr/u32-cpy-alloc: New file.
72304         * lib/unistr/u8-cpy-alloc.c: New file.
72305         * lib/unistr/u16-cpy-alloc.c: New file.
72306         * lib/unistr/u32-cpy-alloc.c: New file.
72307         * lib/unistr/u-cpy-alloc.h: New file.
72308
72309         * modules/unistr/u8-endswith: New file.
72310         * modules/unistr/u16-endswith: New file.
72311         * modules/unistr/u32-endswith: New file.
72312         * lib/unistr/u8-endswith.c: New file.
72313         * lib/unistr/u16-endswith.c: New file.
72314         * lib/unistr/u32-endswith.c: New file.
72315         * lib/unistr/u-endswith.h: New file.
72316
72317         * modules/unistr/u8-mblen: New file.
72318         * modules/unistr/u16-mblen: New file.
72319         * modules/unistr/u32-mblen: New file.
72320         * lib/unistr/u8-mblen.c: New file.
72321         * lib/unistr/u16-mblen.c: New file.
72322         * lib/unistr/u32-mblen.c: New file.
72323
72324         * modules/unistr/u8-mbtouc: New file.
72325         * modules/unistr/u16-mbtouc: New file.
72326         * modules/unistr/u32-mbtouc: New file.
72327         * lib/unistr/u8-mbtouc.c: New file.
72328         * lib/unistr/u16-mbtouc.c: New file.
72329         * lib/unistr/u32-mbtouc.c: New file.
72330
72331         * modules/unistr/u8-mbtouc-safe: New file.
72332         * modules/unistr/u16-mbtouc-safe: New file.
72333         * modules/unistr/u32-mbtouc-safe: New file.
72334         * lib/unistr/u8-mbtouc-safe.c: New file.
72335         * lib/unistr/u16-mbtouc-safe.c: New file.
72336         * lib/unistr/u32-mbtouc-safe.c: New file.
72337
72338         * modules/unistr/u8-move: New file.
72339         * modules/unistr/u16-move: New file.
72340         * modules/unistr/u32-move: New file.
72341         * lib/unistr/u8-move.c: New file.
72342         * lib/unistr/u16-move.c: New file.
72343         * lib/unistr/u32-move.c: New file.
72344         * lib/unistr/u-move.h: New file.
72345
72346         * modules/unistr/u8-next: New file.
72347         * modules/unistr/u16-next: New file.
72348         * modules/unistr/u32-next: New file.
72349         * lib/unistr/u8-next.c: New file.
72350         * lib/unistr/u16-next.c: New file.
72351         * lib/unistr/u32-next.c: New file.
72352
72353         * modules/unistr/u8-prev: New file.
72354         * modules/unistr/u16-prev: New file.
72355         * modules/unistr/u32-prev: New file.
72356         * lib/unistr/u8-prev.c: New file.
72357         * lib/unistr/u16-prev.c: New file.
72358         * lib/unistr/u32-prev.c: New file.
72359
72360         * modules/unistr/u8-set: New file.
72361         * modules/unistr/u16-set: New file.
72362         * modules/unistr/u32-set: New file.
72363         * lib/unistr/u8-set.c: New file.
72364         * lib/unistr/u16-set.c: New file.
72365         * lib/unistr/u32-set.c: New file.
72366         * lib/unistr/u-set.h: New file.
72367
72368         * modules/unistr/u8-startswith: New file.
72369         * modules/unistr/u16-startswith: New file.
72370         * modules/unistr/u32-startswith: New file.
72371         * lib/unistr/u8-startswith.c: New file.
72372         * lib/unistr/u16-startswith.c: New file.
72373         * lib/unistr/u32-startswith.c: New file.
72374         * lib/unistr/u-startswith.h: New file.
72375
72376         * modules/unistr/u8-stpcpy: New file.
72377         * modules/unistr/u16-stpcpy: New file.
72378         * modules/unistr/u32-stpcpy: New file.
72379         * lib/unistr/u8-stpcpy.c: New file.
72380         * lib/unistr/u16-stpcpy.c: New file.
72381         * lib/unistr/u32-stpcpy.c: New file.
72382         * lib/unistr/u-stpcpy.h: New file.
72383
72384         * modules/unistr/u8-stpncpy: New file.
72385         * modules/unistr/u16-stpncpy: New file.
72386         * modules/unistr/u32-stpncpy: New file.
72387         * lib/unistr/u8-stpncpy.c: New file.
72388         * lib/unistr/u16-stpncpy.c: New file.
72389         * lib/unistr/u32-stpncpy.c: New file.
72390         * lib/unistr/u-stpncpy.h: New file.
72391
72392         * modules/unistr/u8-strcat: New file.
72393         * modules/unistr/u16-strcat: New file.
72394         * modules/unistr/u32-strcat: New file.
72395         * lib/unistr/u8-strcat.c: New file.
72396         * lib/unistr/u16-strcat.c: New file.
72397         * lib/unistr/u32-strcat.c: New file.
72398         * lib/unistr/u-strcat.h: New file.
72399
72400         * modules/unistr/u8-strchr: New file.
72401         * modules/unistr/u16-strchr: New file.
72402         * modules/unistr/u32-strchr: New file.
72403         * lib/unistr/u8-strchr.c: New file.
72404         * lib/unistr/u16-strchr.c: New file.
72405         * lib/unistr/u32-strchr.c: New file.
72406
72407         * modules/unistr/u8-strcmp: New file.
72408         * modules/unistr/u16-strcmp: New file.
72409         * modules/unistr/u32-strcmp: New file.
72410         * lib/unistr/u8-strcmp.c: New file.
72411         * lib/unistr/u16-strcmp.c: New file.
72412         * lib/unistr/u32-strcmp.c: New file.
72413
72414         * modules/unistr/u8-strcpy: New file.
72415         * modules/unistr/u16-strcpy: New file.
72416         * modules/unistr/u32-strcpy: New file.
72417         * lib/unistr/u8-strcpy.c: New file.
72418         * lib/unistr/u16-strcpy.c: New file.
72419         * lib/unistr/u32-strcpy.c: New file.
72420         * lib/unistr/u-strcpy.h: New file.
72421
72422         * modules/unistr/u8-strcspn: New file.
72423         * modules/unistr/u16-strcspn: New file.
72424         * modules/unistr/u32-strcspn: New file.
72425         * lib/unistr/u8-strcspn.c: New file.
72426         * lib/unistr/u16-strcspn.c: New file.
72427         * lib/unistr/u32-strcspn.c: New file.
72428         * lib/unistr/u-strcspn.h: New file.
72429
72430         * modules/unistr/u8-strdup: New file.
72431         * modules/unistr/u16-strdup: New file.
72432         * modules/unistr/u32-strdup: New file.
72433         * lib/unistr/u8-strdup.c: New file.
72434         * lib/unistr/u16-strdup.c: New file.
72435         * lib/unistr/u32-strdup.c: New file.
72436         * lib/unistr/u-strdup.h: New file.
72437
72438         * modules/unistr/u8-strlen: New file.
72439         * modules/unistr/u16-strlen: New file.
72440         * modules/unistr/u32-strlen: New file.
72441         * lib/unistr/u8-strlen.c: New file.
72442         * lib/unistr/u16-strlen.c: New file.
72443         * lib/unistr/u32-strlen.c: New file.
72444         * lib/unistr/u-strlen.h: New file.
72445
72446         * modules/unistr/u8-strmblen: New file.
72447         * modules/unistr/u16-strmblen: New file.
72448         * modules/unistr/u32-strmblen: New file.
72449         * lib/unistr/u8-strmblen.c: New file.
72450         * lib/unistr/u16-strmblen.c: New file.
72451         * lib/unistr/u32-strmblen.c: New file.
72452
72453         * modules/unistr/u8-strmbtouc: New file.
72454         * modules/unistr/u16-strmbtouc: New file.
72455         * modules/unistr/u32-strmbtouc: New file.
72456         * lib/unistr/u8-strmbtouc.c: New file.
72457         * lib/unistr/u16-strmbtouc.c: New file.
72458         * lib/unistr/u32-strmbtouc.c: New file.
72459
72460         * modules/unistr/u8-strncat: New file.
72461         * modules/unistr/u16-strncat: New file.
72462         * modules/unistr/u32-strncat: New file.
72463         * lib/unistr/u8-strncat.c: New file.
72464         * lib/unistr/u16-strncat.c: New file.
72465         * lib/unistr/u32-strncat.c: New file.
72466         * lib/unistr/u-strncat.h: New file.
72467
72468         * modules/unistr/u8-strncmp: New file.
72469         * modules/unistr/u16-strncmp: New file.
72470         * modules/unistr/u32-strncmp: New file.
72471         * lib/unistr/u8-strncmp.c: New file.
72472         * lib/unistr/u16-strncmp.c: New file.
72473         * lib/unistr/u32-strncmp.c: New file.
72474
72475         * modules/unistr/u8-strncpy: New file.
72476         * modules/unistr/u16-strncpy: New file.
72477         * modules/unistr/u32-strncpy: New file.
72478         * lib/unistr/u8-strncpy.c: New file.
72479         * lib/unistr/u16-strncpy.c: New file.
72480         * lib/unistr/u32-strncpy.c: New file.
72481         * lib/unistr/u-strncpy.h: New file.
72482
72483         * modules/unistr/u8-strnlen: New file.
72484         * modules/unistr/u16-strnlen: New file.
72485         * modules/unistr/u32-strnlen: New file.
72486         * lib/unistr/u8-strnlen.c: New file.
72487         * lib/unistr/u16-strnlen.c: New file.
72488         * lib/unistr/u32-strnlen.c: New file.
72489         * lib/unistr/u-strnlen.h: New file.
72490
72491         * modules/unistr/u8-strpbrk: New file.
72492         * modules/unistr/u16-strpbrk: New file.
72493         * modules/unistr/u32-strpbrk: New file.
72494         * lib/unistr/u8-strpbrk.c: New file.
72495         * lib/unistr/u16-strpbrk.c: New file.
72496         * lib/unistr/u32-strpbrk.c: New file.
72497         * lib/unistr/u-strpbrk.h: New file.
72498
72499         * modules/unistr/u8-strrchr: New file.
72500         * modules/unistr/u16-strrchr: New file.
72501         * modules/unistr/u32-strrchr: New file.
72502         * lib/unistr/u8-strrchr.c: New file.
72503         * lib/unistr/u16-strrchr.c: New file.
72504         * lib/unistr/u32-strrchr.c: New file.
72505
72506         * modules/unistr/u8-strspn: New file.
72507         * modules/unistr/u16-strspn: New file.
72508         * modules/unistr/u32-strspn: New file.
72509         * lib/unistr/u8-strspn.c: New file.
72510         * lib/unistr/u16-strspn.c: New file.
72511         * lib/unistr/u32-strspn.c: New file.
72512         * lib/unistr/u-strspn.h: New file.
72513
72514         * modules/unistr/u8-strstr: New file.
72515         * modules/unistr/u16-strstr: New file.
72516         * modules/unistr/u32-strstr: New file.
72517         * lib/unistr/u8-strstr.c: New file.
72518         * lib/unistr/u16-strstr.c: New file.
72519         * lib/unistr/u32-strstr.c: New file.
72520         * lib/unistr/u-strstr.h: New file.
72521
72522         * modules/unistr/u8-strtok: New file.
72523         * modules/unistr/u16-strtok: New file.
72524         * modules/unistr/u32-strtok: New file.
72525         * lib/unistr/u8-strtok.c: New file.
72526         * lib/unistr/u16-strtok.c: New file.
72527         * lib/unistr/u32-strtok.c: New file.
72528         * lib/unistr/u-strtok.h: New file.
72529
72530         * modules/unistr/u8-uctomb: New file.
72531         * modules/unistr/u16-uctomb: New file.
72532         * modules/unistr/u32-uctomb: New file.
72533         * lib/unistr/u8-uctomb.c: New file.
72534         * lib/unistr/u16-uctomb.c: New file.
72535         * lib/unistr/u32-uctomb.c: New file.
72536
72537         * MODULES.html.sh (Unicode string functions): Add the new modules.
72538
72539 2007-01-08  Bruno Haible  <bruno@clisp.org>
72540
72541         * gnulib-tool (func_all_modules): Use find, not ls, to traverse the
72542         modules directory. Filter out CVS, ChangeLog, COPYING, README also from
72543         subdirectories.
72544
72545 2007-01-08  Karl Berry  <karl@gnu.org>
72546
72547         * doc/error.texi: mention that main() fns must set program_name
72548         when progname is used.
72549
72550 2007-01-08  Paul Eggert  <eggert@cs.ucla.edu>
72551
72552         * m4/wctype.m4 (gl_WCTYPE_H): Compute ABSOLUTE_WCTYPE_H even if
72553         WCTYPE_H is empty, for the benefit of builds from non-distclean
72554         directories.  Problem reported by Eric Blake in
72555         <http://lists.gnu.org/archive/html/bug-gnulib/2007-01/msg00157.html>.
72556
72557 2007-01-08  Bruno Haible  <bruno@clisp.org>
72558
72559         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Remove
72560         PROVIDE_CANONICALIZE_FILENAME_MODE macro definition.
72561         * lib/canonicalize.h: Test GNULIB_CANONICALIZE instead of
72562         PROVIDE_CANONICALIZE_FILENAME_MODE.
72563         * modules/canonicalize (configure.ac): Use gl_MODULE_INDICATOR.
72564
72565 2007-01-08  Bruno Haible  <bruno@clisp.org>
72566
72567         * m4/fts.m4 (gl_FUNC_FTS_LGPL): Remove _LGPL_PACKAGE macro definition.
72568         * lib/fts_.h (_LGPL_PACKAGE): Remove macro.
72569         Use !GNULIB_FTS instead of _LGPL_PACKAGE.
72570         * lib/fts.c: Likewise.
72571         * modules/fts (configure.ac): Use gl_MODULE_INDICATOR.
72572
72573 2006-12-25  Bruno Haible  <bruno@clisp.org>
72574
72575         * modules/utf8-ucs4-safe: New file.
72576         * lib/utf8-ucs4-safe.h: New file.
72577         * lib/unistr/utf8-ucs4-safe.c: New file.
72578
72579         * modules/utf16-ucs4-safe: New file.
72580         * lib/utf16-ucs4-safe.h: New file.
72581         * lib/unistr/utf16-ucs4-safe.c: New file.
72582
72583         * MODULES.html.sh (Unicode string functions): Add the new modules.
72584
72585 2007-01-08  Bruno Haible  <bruno@clisp.org>
72586
72587         * modules/utf8-ucs4 (Files, lib_SOURCES): Add unistr/utf8-ucs4.c.
72588         (Depends-on): Add unitypes.
72589         * lib/utf8-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72590         (u8_mbtouc_aux): Move out to separate file.
72591         (u8_mbtouc): Use ucs4_t, uint8_t types.
72592         * lib/unistr/utf8-ucs4.c: New file.
72593
72594         * modules/utf16-ucs4 (Files, lib_SOURCES): Add unistr/utf16-ucs4.c.
72595         (Depends-on): Add unitypes.
72596         * lib/utf16-ucs4.h: Add double-inclusion guard. Include unitypes.h.
72597         (u16_mbtouc_aux): Move out to separate file.
72598         (u16_mbtouc): Use ucs4_t, uint16_t types.
72599         * lib/unistr/utf16-ucs4.c: New file.
72600
72601         * modules/ucs4-utf8 (Files, lib_SOURCES): Add unistr/ucs4-utf8.c.
72602         (Depends-on): Add unitypes.
72603         * lib/ucs4-utf8.h: Add double-inclusion guard. Include unitypes.h.
72604         (u8_uctomb_aux): Move out to separate file.
72605         (u8_uctomb): Use ucs4_t, uint8_t types.
72606         * lib/unistr/ucs4-utf8.c: New file.
72607
72608         * modules/ucs4-utf16 (Files, lib_SOURCES): Add unistr/ucs4-utf16.c.
72609         (Depends-on): Add unitypes.
72610         * lib/ucs4-utf16.h: Add double-inclusion guard. Include unitypes.h.
72611         (u16_uctomb_aux): Move out to separate file.
72612         (u16_uctomb): Use ucs4_t, uint16_t types.
72613         * lib/unistr/ucs4-utf16.c: New file.
72614
72615 2006-12-25  Bruno Haible  <bruno@clisp.org>
72616
72617         * modules/unitypes: New file.
72618         * lib/unitypes.h: New file.
72619         * MODULES.html.sh (func_all_modules): New section "Unicode string
72620         functions". Move ucs4-utf8, ucs4-utf16, utf8-ucs4, utf16-ucs4 to
72621         this section. Add unitypes.
72622
72623 2007-01-08  Bruno Haible  <bruno@clisp.org>
72624
72625         Avoid variable names that conflict with those from libtool.
72626         * m4/lib-link.m4 (AC_LIB_RPATH, AC_LIB_LINKFLAGS_BODY,
72627         AC_LIB_LINKFLAGS_FROM_LIBS): Rename libext to acl_libext,
72628         shlibext to acl_shlibext, libname_spec to acl_libname_spec,
72629         library_names_spec to acl_library_names_spec, hardcode_* to
72630         acl_hardcode_*.
72631         Reported by Ralf Wildenhues.
72632
72633 2007-01-08  Bruno Haible  <bruno@clisp.org>
72634
72635         * m4/gc-arcfour.m4 (gl_GC_ARCFOUR): Remove GC_USE_ARCFOUR macro
72636         definition.
72637         * m4/gc-arctwo.m4 (gl_GC_ARCTWO): Remove GC_USE_ARCTWO macro
72638         definition.
72639         * m4/gc-des.m4 (gl_GC_DES): Remove GC_USE_DES macro definition.
72640         * m4/gc-hmac-md5.m4 (gl_GC_HMAC_MD5): Remove GC_USE_HMAC_MD5 macro
72641         definition.
72642         * m4/gc-hmac-sha1.m4 (gl_GC_HMAC_SHA1): Remove GC_USE_HMAC_SHA1 macro
72643         definition.
72644         * m4/gc-md2.m4 (gl_GC_MD2): Remove GC_USE_MD2 macro definition.
72645         * m4/gc-md4.m4 (gl_GC_MD4): Remove GC_USE_MD4 macro definition.
72646         * m4/gc-md5.m4 (gl_GC_MD5): Remove GC_USE_MD5 macro definition.
72647         * m4/gc-random.m4 (gl_GC_RANDOM): Remove GC_USE_RANDOM macro
72648         definition.
72649         * m4/gc-rijndael.m4 (gl_GC_RIJNDAEL): Remove GC_USE_RIJNDAEL macro
72650         definition.
72651         * m4/gc-sha1.m4 (gl_GC_SHA1): Remove GC_USE_SHA1 macro definition.
72652         * lib/gc-gnulib.c: Use GNULIB_GC_<algorithm> instead of
72653         GC_USE_<algorithm>.
72654         * lib/gc-libgcrypt.c: Likewise.
72655         * modules/gc-arcfour (configure.ac): Use gl_MODULE_INDICATOR.
72656         * modules/gc-arctwo (configure.ac): Likewise.
72657         * modules/gc-des (configure.ac): Likewise.
72658         * modules/gc-hmac-md5 (configure.ac): Likewise.
72659         * modules/gc-hmac-sha1 (configure.ac): Likewise.
72660         * modules/gc-md2 (configure.ac): Likewise.
72661         * modules/gc-md4 (configure.ac): Likewise.
72662         * modules/gc-md5 (configure.ac): Likewise.
72663         * modules/gc-random (configure.ac): Likewise.
72664         * modules/gc-rijndael (configure.ac): Likewise.
72665         * modules/gc-sha1 (configure.ac): Likewise.
72666
72667 2007-01-08  Bruno Haible  <bruno@clisp.org>
72668
72669         * m4/close-stream.m4 (gl_CLOSE_STREAM): Remove GNULIB_CLOSE_STREAM
72670         macro definition.
72671         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Remove GNULIB_FCNTL_SAFER macro
72672         definition.
72673         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Remove GNULIB_FOPEN_SAFER macro
72674         definition.
72675         * modules/close-stream (configure.ac): Invoke gl_MODULE_INDICATOR.
72676         * modules/fcntl-safer (configure.ac): Likewise.
72677         * modules/fopen-safer (configure.ac): Likewise.
72678         * modules/fwriteerror (configure.ac): Likewise. Remove explicit
72679         GNULIB_FWRITEERROR macro definition.
72680
72681 2007-01-08  Bruno Haible  <bruno@clisp.org>
72682
72683         * m4/gnulib-common.m4: New file.
72684         * gnulib-tool (func_get_autoconf_snippet): Undo last change.
72685         (func_get_filelist): Add m4/gnulib-common.m4.
72686
72687 2007-01-08  Bruno Haible  <bruno@clisp.org>
72688
72689         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Simplify the sorting
72690         command.
72691
72692 2007-01-08  Jim Meyering  <jim@meyering.net>
72693
72694         Use a more robust test for a "can't happen" condition.
72695         * lib/fts.c (fts_read): Revert the change of 2006-11-22, since it
72696         narrowed the st_size value.  Presuming the "can't happen" condition
72697         is true, that narrowing could conceivably convert an invalid st_size
72698         value into a valid one.  Instead, use a change based on Matthew
72699         Woehlke's original patch.
72700
72701         Slight readability improvement: use an assert-like macro
72702         in place of literal "abort ()" uses.
72703         * lib/fts.c (fts_assert): Define.
72704         (fts_set_stat_required, cwd_advance_fd, fts_read, fd_ring_check):
72705         Use this macro instead of a bare 'abort'.
72706
72707 2007-01-05  Paul Eggert  <eggert@cs.ucla.edu>
72708
72709         Don't worry about using IRIX 5.3's wctype.h broken definitions;
72710         simply work around them.
72711         * lib/wctype_.h: Remove test for HAVE_WCTYPE_CTMP_BUG.
72712         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph, iswlower):
72713         (iswprint, iswpunct, iswspace, iswupper, iswxdigit): Undef before
72714         declaring.
72715         Don't bother to define as macros, since the standard doesn't require it.
72716         * m4/wctype.m4 (WCTYPE_H, ABSOLUTE_WCTYPE_H): Simplify, since we no
72717         longer worry about IRIX 5.3.
72718         (HAVE_WCTYPE_CTMP_BUG): Remove.
72719
72720 2007-01-04  Paul Eggert  <eggert@cs.ucla.edu>
72721
72722         * lib/wctype_.h (_ctmp_) [HAVE_WCTYPE_CTMP_BUG]: Now of type wchar_t,
72723         not wint_t.  Also, include <ctype.h>, to fix another IRIX bug.
72724         * m4/wctype.m4 (gl_WCTYPE_H): Likewise.
72725         Problems reported by Georg Schwarz for IRIX 5.3.
72726
72727         * gnulib-tool (autoconf_minversion): Take the maximum version number
72728         found, not the minimum.  Problem reported by James Youngman.
72729
72730 2007-01-03  Karl Berry  <karl@gnu.org>
72731
72732         * doc/error.texi: new file, explaining interaction with progname.
72733         * doc/gnulib.texi: include it.  Update copyright.
72734
72735 2007-01-03  Simon Josefsson  <simon@josefsson.org>
72736
72737         * gnulib-tool (func_create_testdir): Run AC_CANONICAL_BUILD and
72738         AC_CANONICAL_HOST, to improve autobuild outputs.
72739
72740 2007-01-03  Paolo Bonzini  <bonzini@gnu.org>
72741             Yoann Vandoorselaere <yoann.v@prelude-ids.com>
72742
72743         * lib/poll.c (poll): Use recv on Mac OS X to distinguish connected
72744         sockets, server sockets, and other file descriptors.  Count errors
72745         to compute the return value.  Reorder the code a bit to be easier
72746         to follow.  Don't set event bits that were not requested (except
72747         POLLERR and POLLHUP).
72748
72749 2007-01-01  Bruno Haible  <bruno@clisp.org>
72750
72751         * modules/lchmod (Include): Require lchmod.h, not lchown.h.
72752
72753 2007-01-03  Jim Meyering  <jim@meyering.net>
72754
72755         * modules/fts-lgpl (Depends-on): Add i-ring.  Reported by Bruno Haible.
72756
72757 2007-01-02  Bruno Haible  <bruno@clisp.org>
72758
72759         * modules/settime (Include): Require timespec.h.
72760         * modules/nanosleep (Include): Likewise.
72761
72762 2007-01-01  Bruno Haible  <bruno@clisp.org>
72763
72764         * gnulib-tool (func_emit_copyright_notice): Bump year.
72765         (func_get_autoconf_snippet): Emit a GNULIB_<modulename> macro.
72766
72767 2007-01-01  Bruno Haible  <bruno@clisp.org>
72768
72769         Improve support for OpenBSD.
72770         * build-aux/config.rpath (libname_spec): Export.
72771         (library_names_spec): New variable. Export.
72772         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Extract libname_spec and
72773         library_names_spec from the config.rpath output. Locate shared library
72774         through the name pattern in library_names_spec.
72775
72776 2007-01-01  Eric Blake  <ebb9@byu.net>
72777
72778         * lib/version-etc.c (COPYRIGHT_YEAR): Bump for new year.
72779
72780 2006-12-30  Paul Eggert  <eggert@cs.ucla.edu>
72781
72782         * gnulib-tool (SORT): Remove, since we no longer assume GNU sort.
72783         Rewrite so as not to assume GNU sort or "tail -1".  Also, don't
72784         assume the C locale, and avoid an "eval" that could cause trouble.
72785         Problem with SORT reported by Bob Proulx.
72786
72787         * lib/getpagesize.h (getpagesize) [defined __amigaos4__]:
72788         Define.  Trivial patch from Henning Nielsen Lund, originally
72789         sent to bug-grep@gnu.org today.
72790
72791 2006-12-29  Paul Eggert  <eggert@cs.ucla.edu>
72792
72793         * lib/acl.h: Include sys/types.h and sys/stat.h, for mode_t and
72794         struct stat.  Problem reported by Henning Nielsen Lund.
72795         * lib/acl.c: Include acl.h first, to check interface.  Don't
72796         bother to include sys/types.h and sys/stat.h again.
72797
72798 2006-12-28  Paul Eggert  <eggert@cs.ucla.edu>
72799
72800         Import the following change from libc; problem reported by
72801         Sven Verdoolaege.
72802
72803         2005-10-13  Ulrich Drepper  <drepper@redhat.com>
72804
72805         [BZ #1373]
72806         * lib/argp.h: Remove __NTH for __argp_usage inline function.
72807
72808 2006-12-28  Jim Meyering  <jim@meyering.net>
72809
72810         * build-aux/announce-gen: Do not assume that the package
72811         builds any of tar.gz, tar.bz2, and .xdelta files.
72812         Suggestion from Simon Josefsson.
72813
72814 2006-12-28  Simon Josefsson  <simon@josefsson.org>
72815
72816         * modules/announce-gen: New file.
72817
72818 2006-12-27  Paul Eggert  <eggert@cs.ucla.edu>
72819
72820         * lib/mbchar.h: Just include <wctype.h>; the wctype module
72821         handles its gotchas now.
72822         * lib/mbswidth.c: Likewise.
72823         * lib/wcwidth.h: Likewise.
72824         * m4/mbchar.m4 (gl_MBCHAR): Don't bother checking for wctype.h
72825         and iswcntrl; the wctype module does this stuff now.
72826         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
72827         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Likewise.
72828         * modules/mbchar (Depends-on): Add wctype.
72829         * modules/mbswidth (Depends-on): Likewise.
72830         * modules/wcwidth (Depends-on): Likewise.
72831
72832 2006-12-27  Eric Blake  <ebb9@byu.net>
72833
72834         * lib/fnmatch.c: Reinstate inclusion of <wchar.h>, since this
72835         module uses more than what <wctype.h> is required to provide.
72836
72837 2006-12-26  Eric Blake  <ebb9@byu.net>
72838
72839         * gnulib-tool (sed_extract_prog): Avoid space-tab.
72840
72841 2006-12-26  Eric Blake  <ebb9@byu.net>
72842
72843         * modules/absolute-header: New module.
72844         * modules/fcntl (Depends-on): Depend on it.
72845         * modules/inttypes (Depends-on): Likewise.
72846         * modules/stdint (Depends-on): Likewise.
72847         * modules/sys_stat (Depends-on): Likewise.
72848         * modules/wctype (Depends-on): Likewise.
72849         * MODULES.html.sh (Support for building libraries and
72850         executables): Document it.
72851
72852 2006-12-25  Paul Eggert  <eggert@cs.ucla.edu>
72853
72854         * gnulib-tool (SED): Remove, undoing previous change.
72855         The problem was that it broke coreutils on Solaris, because
72856         "sed --posix" leaked into a makefile.
72857         (sed): New alias, if 'alias' and GNU sed.
72858
72859 2006-12-24  Jim Meyering  <jim@meyering.net>
72860
72861         Work around an fchownat bug in glibc-2.4:
72862         http://lists.ubuntu.com/archives/ubuntu-users/2006-September/093218.html
72863         This bug would cause "chown -RP ... DIR" to follow symlinks in DIR,
72864         in spite of the -P option.
72865         * m4/openat.m4 (gl_FUNC_FCHOWNAT, gl_FUNC_FCHOWNAT_DEREF_BUG):
72866         New macros.
72867         (gl_PREREQ_OPENAT): Require gl_FUNC_FCHOWNAT.
72868         * modules/openat (Files): Add lib/fchownat.c.
72869         * lib/openat.c (fchownat): Don't define here.  Move to...
72870         * lib/fchownat.c: ...this new file.
72871
72872 2006-12-23  Paul Eggert  <eggert@cs.ucla.edu>
72873
72874         Fix bug reported by Bruno Haible in
72875         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00228.html>
72876         where quotearg.c didn't compile on Mac OS X 10.2 because it
72877         lacks <wchar.h> and wint_t.
72878         * lib/wctype_.h (__wctype_wint_t): New type.
72879         Include <stdio.h>, <time.h>, <wchar.h> only if HAVE_WINT_T.
72880         (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit, iswgraph):
72881         (iswlower, iswprint, iswpunct, iswspace, iswupper, ixwxdigit):
72882         Arg is now of type __wctype_wint_t, not wint_t.
72883         * m4/wctype.m4 (gl_WCTYPE_H): Require gt_TYPE_WINT_T, and
72884         substitute HAVE_WINT_T.
72885         * modules/wctype (Files): Add m4/wint_t.m4.
72886         (wctype.h): Substitute HAVE_WINT_T.
72887
72888 2006-12-23  Bruno Haible  <bruno@clisp.org>
72889
72890         * lib/safe-read.h [C++]: Wrap declarations in extern "C".
72891
72892 2006-12-23  Bruno Haible  <bruno@clisp.org>
72893
72894         * lib/canonicalize-lgpl.c (__realpath): Test HAVE_READLINK instead of
72895         S_ISLNK.
72896         Needed because gnulib's sys/stat.h replacement defines S_ISLNK on
72897         mingw.
72898
72899 2006-12-22  Bruno Haible  <bruno@clisp.org>
72900
72901         * lib/copy-file.c: Include acl.h.
72902         (copy_file_preserving) [USE_ACL]: Use copy_acl instead of chmod.
72903         Close the file descriptors only after being done with copy_acl.
72904         * modules/copy-file (Depends-on): Add acl.
72905
72906 2006-12-22  Bruno Haible  <bruno@clisp.org>
72907
72908         * gnulib-tool (SED): New variable.
72909         Use $SED instead of sed everywhere.
72910
72911 2006-12-22  Bruno Haible  <bruno@clisp.org>
72912
72913         * modules/no-c++: New file.
72914         * m4/no-c++.m4: New file.
72915         * MODULES.html.sh (Support for building libraries and executables):
72916         Add no-c++.
72917
72918 2006-12-22  Paul Eggert  <eggert@cs.ucla.edu>
72919
72920         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
72921         Include <limits.h>, and use its INT_MAX to rewrite the
72922         j loop so that it does not overflow 'int'.  Problem reported by
72923         Ralf Wildenhues in
72924         <http://lists.gnu.org/archive/html/bug-gnulib/2006-12/msg00084.html>.
72925         Play it safe by shifting left by 1 rather than multiplying by 2,
72926         as GCC is less likely to optimize this away when the value
72927         is signed (when it assumes overflow leads to undefined behavior).
72928         Also, don't assume time_t uses two's complement.
72929
72930 2006-12-21  Paul Eggert  <eggert@cs.ucla.edu>
72931
72932         * MODULES.html.sh: New module wctype.
72933         * lib/wctype_.h, m4/wctype.m4, modules/wctype: New files.
72934         * lib/fnmatch.c: Don't bother to include <wchar.h> before
72935         <wctype.h>, since the new wctype module should fix this.
72936         * lib/quotearg.c: Include <wctype.h> unconditionally, since
72937         the wctype module should arrange for it.
72938         * lib/regex_internal.h: Likewise.
72939         * m4/quotearg.m4 (gl_QUOTEARG): Don't check for wctype.h or iswprint,
72940         since the wctype module should handle this now.
72941         * m4/regex.m4 (gl_PREREQ_REGEX): Don't check for wctype.h.
72942         * modules/fnmatch (Depends-on): Add wctype.
72943         * modules/quotearg (Depends-on): Likewise.
72944         * modules/regex (Depends-on): Likewise.
72945
72946 2006-12-19  Bruno Haible  <bruno@clisp.org>
72947
72948         * lib/strdup.h [C++]: Wrap definitions in extern "C".
72949         Suggested by Lorenzo Bettini <bettini@dsi.unifi.it>.
72950
72951 2006-12-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
72952
72953         * modules/savewd (Depends-on): Fix dependency on fcntl.
72954
72955 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72956
72957         * m4/stdint.m4 (gl_STDINT_H): Set STDINT_H to empty if stdint.h
72958         conforms to C99, rather than relying on the user's environment
72959         setting of STDINT_H.
72960
72961 2006-12-18  Paul Eggert  <eggert@cs.ucla.edu>
72962         and Eric Blake  <ebb9@byu.net>
72963
72964         * lib/dirname.h (DOUBLE_SLASH_IS_DISTINCT_ROOT): Default to 0, not 1.
72965         This is more consistent with the other defines here.
72966         * m4/double-slash-root.m4 (gl_DOUBLE_SLASH_ROOT):
72967         Port to z/OS.  Problem reported by Paul Gilmartin.
72968         Change local vars to use gl_ prefix rather than ac_.
72969         Don't define DOUBLE_SLASH_IS_DISTINCT_ROOT to 0, for consistency
72970         with other defines.
72971         * modules/double-slash-root: New module.
72972         * modules/dirname (Files): Remove m4/double-slash-root.m4.
72973         (Depends-on): Add double-slash-root.
72974         * MODULES.html.sh (File system functions): Mention new module.
72975
72976 2006-12-14  Paul Eggert  <eggert@cs.ucla.edu>
72977
72978         * lib/yesno.c [!ENABLE_NLS]: Don't include getline.h.
72979         (yesno) [!ENABLE_NLS]: Don't invoke getline or rpmatch.
72980         This is for the benefit of gzip, which doesn't do i18n.
72981
72982 2006-12-12  Jim Meyering  <jim@meyering.net>
72983
72984         * m4/acl.m4 (gl_ACL_GET_FILE): Fix logic error.
72985         Reported by Andreas Schwab <schwab@suse.de>.
72986
72987 2006-12-12  Bruno Haible  <bruno@clisp.org>
72988
72989         Merge these changes.
72990         2006-09-05  Bruno Haible  <bruno@clisp.org>
72991         * lib/iconvme.c (iconv_string): No need to save and restore errno when
72992         iconv_alloc succeeded.
72993         (iconv_alloc): Don't assume that malloc() or realloc(), when failing,
72994         sets errno to ENOMEM. (malloc on GNU/kFreeBSD doesn't.) No need to
72995         test for " && dest " at the end - dest is always != NULL there. Call
72996         iconv with 4xNULL arguments initially, to reset the state. Call iconv
72997         with 2xNULL arguments, also to flush the state storage. Handle the
72998         IRIX iconv behaviour. Realloc the final result, to throw away unused
72999         memory.
73000
73001 2006-12-11  Paul Eggert  <eggert@cs.ucla.edu>
73002
73003         * m4/openat.m4 (gl_FUNC_OPENAT): Don't compile mkdirat
73004         and fchmodat unconditionally, since glibc 2.4 has them.
73005         Problem reported by Arkadiusz Miskiewicz.
73006
73007 2006-12-10  Bruno Haible  <bruno@clisp.org>
73008
73009         * gnulib-tool (func_import): Show the include files only for those
73010         modules that are copied and specified.
73011         Reported by Karl Berry.
73012
73013 2006-12-08  Jim Meyering  <jim@meyering.net>
73014
73015         * build-aux/announce-gen ($VERSION): Don't use of $Revision...$.
73016         Instead, use Emacs' time-stamp write hook.  Note that the time is UTC.
73017
73018         * build-aux/announce-gen: Add two new options, both optional:
73019         --bootstrap-tools=TOOL_LIST
73020               a comma-separated list of tools, e.g.,
73021               autoconf,automake,bison,gnulib
73022         --gnulib-snapshot-date=DATE
73023               if gnulib is in the bootstrap tool list,
73024               then report this as the snapshot date.
73025               If not specified, use the current date/time.
73026               If you specify a date here, be sure it's UTC.
73027
73028 2006-12-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73029
73030         * tests/test-argp-2.sh: Fix test to match actual output.
73031         (func_compare): Fix sed script to be portable.
73032
73033 2006-12-05  Paul Eggert  <eggert@cs.ucla.edu>
73034
73035         * lib/utimens.c (futimens) [HAVE_BUGGY_NFS_TIME_STAMPS]: Add a
73036         workaround for this case.  It is not autoconfigured now; offhand
73037         it's hard to see how to autoconfigure it.
73038
73039 2006-12-03  Paul Eggert  <eggert@cs.ucla.edu>
73040
73041         * lib/mkdir-p.c (make_dir_parents): Fix race condition when making
73042         a directory that is about to be chowned.  Such a directory's
73043         initial file permissions should permit the owner only and this
73044         should not be changed until after the chown, since the group and
73045         other bits would be incorrect if they granted permission before
73046         the chown.
73047
73048         Fix porting problem for iswctype reported by Georg Schwarz in:
73049         http://lists.gnu.org/archive/html/bug-coreutils/2006-12/msg00017.html
73050         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Require HAVE_ISWCTYPE, too.
73051         * lib/regex_internal.h (RE_ENABLE_I18N): Likewise.
73052         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for iswctype, too.
73053         * m4/regex.m4 (gl_PREREQ_REGEX): Likewise.
73054
73055 2006-12-03  Jim Meyering  <jim@meyering.net>
73056
73057         * lib/fts.c (fts_load): Don't set sp->fts_dev here, since
73058         p->fts_statp may not yet be defined.
73059         (fts_read): Instead, set it in the caller, once p->fts_statp is
73060         sure to be defined, and corresponds to a top-level directory.
73061         This bug made du -x fail.  Here's the coreutils test case:
73062         http://git.sv.gnu.org/gitweb/?p=coreutils.git;a=commit;h=ba45154d8e9f
73063         Reported by Mike Frysinger.
73064
73065 2006-12-01  Jim Meyering  <jim@meyering.net>
73066
73067         * modules/savewd (Depends-on): Add fcntl_h to avoid self-test
73068         build failure due to missing definition of HAVE_WORKING_O_NOFOLLOW.
73069         Reported by Simon Josefsson.
73070
73071 2006-11-30  Jim Meyering  <jim@meyering.net>
73072
73073         * m4/warning.m4: Use the all-permissive copyright notice
73074         recommended by RMS (rather than LGPL).
73075         * m4/vararrays.m4: Likewise.
73076         * m4/flexmember.m4: Likewise.
73077
73078 2006-11-29  Bruno Haible  <bruno@clisp.org>
73079
73080         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73081         noinst_LIBRARIES. Augment noinst_LIBRARIES and noinst_LTLIBRARIES
73082         using +=.
73083         Reported by Simon Josefsson <simon@josefsson.org>.
73084
73085 2006-11-28  James Youngman <jay@gnu.org>
73086
73087         * README: Advise users that they might find the bug-gnulib@gnu.org
73088         and autotools-announce@gnu.org mailing lists useful.
73089
73090 2006-11-28  Bruno Haible  <bruno@clisp.org>
73091
73092         * m4/ptrdiff_max.m4: Remove file.
73093
73094 2006-11-21  Bruno Haible  <bruno@clisp.org>
73095
73096         * m4/eoverflow.m4 (gl_EOVERFLOW): Use AC_COMPUTE_INT instead of
73097         _AC_COMPUTE_INT.
73098         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73099         * m4/ptrdiff_max.m4 (gl_PTRDIFF_MAX): Use AC_COMPUTE_INT instead of
73100         _AC_COMPUTE_INT.
73101         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73102         * m4/size_max.m4 (gl_SIZE_MAX): Use AC_COMPUTE_INT instead of
73103         _AC_COMPUTE_INT.
73104         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73105
73106 2006-11-28  Jim Meyering  <jim@meyering.net>
73107
73108         * lib/regcomp.c (parse_branch): Rename local, exp->expr, to avoid
73109         warning from "gcc -Wshadow" about shadowing the builtin.
73110
73111 2006-11-27  Bruno Haible  <bruno@clisp.org>
73112
73113         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): Use AC_COMPUTE_INT instead of
73114         _AC_COMPUTE_INT.
73115         (AC_COMPUTE_INT): Add fallback definition for autoconf < 2.61.
73116
73117 2006-11-27  Bruno Haible  <bruno@clisp.org>
73118             Paul Eggert  <eggert@cs.ucla.edu>
73119
73120         * lib/regex.h (__restrict_arr): Redo logic of #if, for clarity.
73121
73122 2006-11-26  Bruno Haible  <bruno@clisp.org>
73123
73124         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
73125         noinst_LTLIBRARIES.
73126
73127 2006-11-27  Paul Eggert  <eggert@cs.ucla.edu>
73128             Bruno Haible  <bruno@clisp.org>
73129
73130         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to 0
73131         if compiling with "gcc -ansi".
73132
73133 2006-11-26  Paul Eggert  <eggert@cs.ucla.edu>
73134
73135         Fix some incompatibilities with gcc -ansi -pedantic.
73136         * lib/regex.h (__restrict_arr): Don't use the [restrict] syntax
73137         if compiling pedantically with GCC, unless it's C99 or later.
73138         Don't trust sys/cdefs.h's definition of __restrict_arr, either, as
73139         it mishandles gcc -ansi -pedantic as well.
73140         * lib/regex_internal.h (re_token_t): Don't use enum bitfields
73141         if gcc -pedantic.
73142         * lib/regexec.c (check_node_accept_bytes): Don't use auto
73143         initializers for struct if -pedantic, unless it's C99 or later.
73144
73145 2006-11-25  Nix  <nix@esperi.org.uk>  (tiny change)
73146
73147         * m4/fcntl_h.m4 (gl_FCNTL_H): Test the atime, not the mtime.
73148         Don't close an fd more than once. Identical atimes indicate
73149         success, not failure.
73150
73151 2006-11-22  Robinson Mittmann <bob@hoplon.com>  (tiny change)
73152
73153         * lib/sincosl.c (kernel_sinl): Fix typo in threshold.
73154
73155 2006-11-23  Jim Meyering  <jim@meyering.net>
73156
73157         * build-aux/announce-gen: New file.  From coreutils.
73158
73159 2006-11-22  Jim Meyering  <jim@meyering.net>
73160
73161         Work around a compile-time error from the HP-UX 11.00 /bin/cc.
73162         * lib/fts.c (enum Fts_stat): Give this previously-anon enum a name.
73163         (fts_read): Use a temporary to narrow the overused st_size member
73164         before using it in a switch statement.  Reported by Matthew Woehlke.
73165
73166         * m4/clock_time.m4 (gl_CLOCK_TIME): Quote AC_SUBST argument.
73167         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Likewise.
73168
73169 2006-11-20  Bruno Haible  <bruno@clisp.org>
73170
73171         * gettext.m4 (AM_GNU_GETTEXT): Revert 2005-07-28 patch: Use
73172         changequote instead of pairs of brackets.
73173         Reported by Andreas Schwab <schwab@suse.de>.
73174
73175 2006-11-21  Jim Meyering  <jim@meyering.net>
73176
73177         * lib/fts.c (fts_safe_changedir): Move a declaration "up",
73178         so as to remain compatible with older compilers.
73179         Patch from Michael Deutschmann.
73180
73181 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73182
73183         * MODULES.html.sh (File system functions): Add openat.
73184
73185         * lib/openat.h (rpl_fstatat): New macro, if
73186         [HAVE_OPENAT && ! LSTAT_FOLLOWS_SLASHED_SYMLINK.
73187         (fstatat): Define to rpl_fstatat under the same conditions,
73188         unless COMPILING_FSTATAT.
73189         * m4/openat.m4 (gl_FUNC_OPENAT): Compile fstatat.c too, if fstatat
73190         seems to have the bug.
73191         * lib/fstatat.c: New file.
73192         * modules/openat (Files): Add it.
73193
73194 2006-11-20  Bruno Haible  <bruno@clisp.org>
73195
73196         * Makefile: New file.
73197
73198 2006-11-20  Jim Meyering  <jim@meyering.net>
73199
73200         The beginnings of syntax-related checks for gnulib.
73201         * lib/Makefile: New file.
73202         * lib/t-idcache: New script.  Ensure that the two halves of
73203         idcache.c stay in sync.
73204
73205         * lib/idcache.c: Adjust comments in user- and group- portions to
73206         be more accurate, and to be consistent with one another.
73207
73208 2006-11-20  Jim Meyering  <jim@meyering.net>
73209
73210         * lib/idcache.c: Restore most of the 2006-11-06 patch, so as to
73211         continue using the flexible array member (thus, this module performs
73212         half as many malloc calls), with the addition that...
73213         (getgroup, getuser): Consistently record a non-match via an empty
73214         "name" string, and map an empty string match to a NULL return value.
73215         * modules/idcache (Depends-on): Re-add flexmember.
73216
73217         * lib/idcache.c (getuser): Remove all uses of the register keyword.
73218         (getuidbyname, getgroup, getgidbyname): Likewise.
73219
73220         Use cleaner syntax: NULL rather than 0.
73221         * lib/idcache.c (getuidbyname, getgidbyname): Return NULL, not 0.
73222
73223 2006-11-20  Paul Eggert  <eggert@cs.ucla.edu>
73224
73225         * lib/idcache.c: Undo most recent patch, dated 2006-11-06.
73226         It mishandled the case where the group was missing.
73227         Problem reported by Greg Schafer.
73228         * modules/idcache: Likewise.
73229
73230 2006-11-18  Jim Meyering  <jim@meyering.net>
73231
73232         * check-module (%exempt_header): Add exception for some
73233         conditionally-included headers.
73234
73235         * modules/i-ring (Depends-on): Add verify.
73236         (License): Change to LGPL.
73237
73238 2006-11-16  Paul Eggert  <eggert@cs.ucla.edu>
73239
73240         * modules/getaddinfo (Depends-on): Remove inttostr; add snprintf.
73241         * lib/getaddrinfo.c: Include snprintf.h rather than intprops.h
73242         and inttostr.h.  Use snprintf rather than uinttostr, so that
73243         LGPLed code doesn't depend on GPLed.
73244
73245 2006-11-17  Paul Eggert  <eggert@cs.ucla.edu>
73246
73247         * modules/inline (License): Change from GPL to LGPL.
73248
73249 2006-11-17  Jim Meyering  <jim@meyering.net>
73250
73251         * modules/d-type (License): Switch to LGPL.
73252
73253 2006-11-15  Bruno Haible  <bruno@clisp.org>
73254
73255         * m4/alloca.m4 (gl_FUNC_ALLOCA): Fix the AC_CACHE_CHECK message.
73256
73257 2006-11-15  Eric Blake  <ebb9@byu.net>
73258
73259         * m4/allocsa.m4 (gl_ALLOCSA): Don't invoke macro already picked up by
73260         the module dependency.
73261
73262 2006-11-15  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
73263             Bruno Haible  <bruno@clisp.org>
73264
73265         * gnulib-tool (func_create_testdir): Add license consistency check.
73266
73267 2006-11-15  Eric Blake  <ebb9@byu.net>
73268
73269         * m4/alloca.m4 (gl_FUNC_ALLOCA): Use AC_CACHE_CHECK to avoid a
73270         random "(cached)" in configure output.
73271
73272 2006-11-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73273
73274         * m4/inttypes.m4 (gl_INTTYPES_H): Use AC_CACHE_CHECK so that the
73275         test for conforming inttypes.h is both announced and cached.
73276
73277         * MODULES.html.sh (seen_modules, seen_files): New variables.
73278         (func_module): Rewrite to use a few less gnulib-tool and sed
73279         invocations.  Avoid a couple of quadratic algorithms for ...
73280         (missed_modules, missed_files): ... these, with ...
73281         (func_append, func_tmpdir): ... these new functions, from
73282         gnulib-tool.  Analogously, install traps for cleanup.
73283
73284         * tests/test-gc.c (main): Remove unused variables.
73285         * tests/test-read-file.c: Include stdlib.h, for 'free'.
73286
73287 2006-11-14  Paul Eggert  <eggert@cs.ucla.edu>
73288
73289         * modules/inttostr (License): Change to LGPL.
73290
73291 2006-11-14  Eric Blake  <ebb9@byu.net>
73292
73293         * modules/tempname (License): Change to LGPL.
73294
73295 2006-11-14  Eric Blake  <ebb9@byu.net>
73296
73297         * doc/functions.texi (Function Portability): *printf functions on
73298         Cygwin now understand all POSIX size specifiers.
73299
73300 2006-11-14  Bruno Haible  <bruno@clisp.org>
73301
73302         * modules/c-ctype (License): Change to LGPL.
73303
73304 2006-11-12  Bruno Haible  <bruno@clisp.org>
73305
73306         * m4/lib-link.m4 (AC_LIB_LINKFLAGS, AC_LIB_HAVE_LINKFLAGS,
73307         AC_LIB_LINKFLAGS_BODY): Also set a LIB${NAME}_PREFIX variable. Needed
73308         for GNOME libraries, for which the include files are installed in
73309         subdirectories of $prefix/include.
73310
73311 2006-11-12  Bruno Haible  <bruno@clisp.org>
73312
73313         * m4/lib-link.m4: Require at least autoconf-2.54.
73314         (AC_LIB_LINKFLAGS_BODY) [autoconf < 2.61]: Turn dots into the library
73315         name to underscores for the --with option.
73316
73317 2006-11-13  Bruno Haible  <bruno@clisp.org>
73318
73319         * gnulib-tool (func_create_testdir): Set gl_source_base correctly in
73320         the tests directory.
73321         Reported by Ralf Wildenhues.
73322
73323 2006-11-13  Bruno Haible  <bruno@clisp.org>
73324
73325         * gnulib-tool (func_emit_initmacro_start): Also override AC_LIBSOURCES.
73326         (func_emit_initmacro_end): Undo the override here.
73327         (func_emit_initmacro_done): Emit a definition for gl_LIBSOURCES.
73328         Works around the famous automake error in coreutils.
73329
73330 2006-11-13  Eric Blake  <ebb9@byu.net>
73331
73332         * lib/gl_anytree_oset.h (gl_tree_search_atleast): Return the
73333         element, not its node.
73334
73335 2006-11-12  Bruno Haible  <bruno@clisp.org>
73336
73337         * gnulib-tool (func_emit_lib_Makefile_am): Replace occurrences of
73338         '$(top_srcdir)/build-aux/', taking into account the real auxdir.
73339
73340 2006-11-12  Bruno Haible  <bruno@clisp.org>
73341
73342         * gnulib-tool: New option --local-symlink.
73343         (func_usage): Document it.
73344         (lsymbolic): New variable.
73345         (func_import, func_create_testdir): If --symlink was not specified,
73346         test whether --local-symlink was specified and the file comes from
73347         the local_gnulib_dir.
73348
73349 2006-11-12  Bruno Haible  <bruno@clisp.org>
73350
73351         * gnulib-tool (func_ln): New function.
73352         (func_ln_if_changed, func_create_testdir): Use it instead of "ln -s".
73353
73354 2006-11-12  Bruno Haible  <bruno@clisp.org>
73355
73356         Finish support for source files in subdirectories.
73357         * gnulib-tool (func_emit_lib_Makefile_am): If some of the source files
73358         are in subdirectories, set uses_subdirs and add 'subdir-objects' to
73359         AUTOMAKE_OPTIONS.
73360         (func_import, func_create_testdir): Invoke AM_PROG_CC_C_O in this case.
73361
73362 2006-11-12  Bruno Haible  <bruno@clisp.org>
73363
73364         * gnulib-tool (func_get_automake_snippet): Synthesize also an
73365         EXTRA_lib_SOURCES augmentation.
73366         (func_emit_lib_Makefile_am): Initialize EXTRA_lib..._SOURCES to empty.
73367
73368 2006-11-12  Jim Meyering  <jim@meyering.net>
73369
73370         Make fts (in FTS_CWDFD mode) more efficient by caching a few open
73371         file descriptors.  This also averts a failure on systems with
73372         native openat support when a traversed directory lacks "x" access.
73373         * lib/fts_.h: Include "i-ring.h"
73374         (struct FTS) [fts_fd_ring]: New member.
73375         * lib/fts.c (RESTORE_INITIAL_CWD): Also call fd_ring_clear.
73376         (FCHDIR): Add parentheses.
73377         (fd_ring_check, fd_ring_print) [!FTS_DEBUG]: Define away.
73378         (cwd_advance_fd): Add a 3rd parameter.  Adjust all callers.
73379         When descending, rather than simply closing the previous
73380         fts_cwd_fd value, push that file descriptor onto the ring.
73381         (same_fd, fd_ring_print, fd_ring_check) [FTS_DEBUG]: New functions.
73382         (fts_open): Initialize the new fd_ring member.
73383         (fts_close): Clear the ring.
73384         (fts_safe_changedir): When possible, use our new fd_ring to skip
73385         the diropen and fstat and dev/ino comparison that would normally
73386         accompany a virtual `chdir ("..")'.
73387
73388         * modules/fts (Depends-on): Add i-ring.
73389         * modules/i-ring: New module.
73390         * lib/i-ring.c, lib/i-ring.h, lib/i-ring-test.c: New files.
73391         * m4/i-ring.m4: New file.
73392
73393 2006-11-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73394
73395         * gnulib-tool (func_create_testdir): Fix replacement of
73396         `build-aux' in configure.ac.  Run autotools in gltests
73397         subdirectory.
73398         (func_create_testdir, func_create_megatestdir, test): There is
73399         no need for '--force' in most autotool invocations in a new
73400         tree.  Actually fail the whole test if any of the tools, or the
73401         configure or make stages fail.
73402
73403         Sync from Automake.
73404         * build-aux/gnupload: Revert last change.  Add pointer to upload
73405         instructions of the GNU Maintenance Instructions.
73406         Suggestion by Karl Berry.
73407
73408 2006-11-10  Jim Meyering  <jim@meyering.net>
73409
73410         * lib/fts.c [FTS_DEBUG]: Don't try to print a pointer via %s.
73411
73412 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73413
73414         * lib/gettext.h (dgettext, dcgettext, ngettext) [! ENABLE_NLS]:
73415         (dngettext, dcngettext, bindtextdomain) [! ENABLE_NLS]:
73416         (bind_textdomain_codeset) [! ENABLE_NLS]:
73417         Evaluate all the arguments.  That way, callers get compatible behavior
73418         if the arguments have side effects.  Also, it avoids some GCC
73419         diagnostics in some cases; Joel E. Denny reported problems when Bison
73420         was configured with --enable-gcc-warnigs.
73421
73422 2006-11-10  Jim Meyering  <jim@meyering.net>
73423
73424         * m4/inline.m4 (gl_INLINE): Check with the compiler, not cpp, so that
73425         relevant options in CFLAGS (like -O, -fno-inline) are taken into
73426         account.
73427
73428 2006-11-10  Jim Meyering  <jim@meyering.net>
73429
73430         * modules/inline: New file/module.
73431         * modules/xalloc (Files): Remove m4/inline.m4.
73432         (Depends-on): Add inline, instead.
73433         * modules/oset: Likewise.
73434         * modules/list: Likewise.
73435
73436 2006-11-09  Paul Eggert  <eggert@cs.ucla.edu>
73437
73438         * lib/stdint_.h (uintmax_t): Fix typo: int64_t -> uint64_t.
73439         Problem reported by Matthew Woehlke.
73440
73441 2006-11-09  Bruno Haible  <bruno@clisp.org>
73442
73443         * lib/tempname.c (gen_tempname): Remove variant that invokes
73444         __gen_tempname.
73445         * m4/tempname.m4 (gl_FUNC_GEN_TEMPNAME): Don't test for
73446         __gen_tempname.
73447
73448 2006-11-08  Bruno Haible  <bruno@clisp.org>
73449
73450         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Set ac_cv_type_long_long_int
73451         to 'yes' instead of 'cross-compiling'.
73452
73453 2006-11-08  Paul Eggert  <eggert@cs.ucla.edu>
73454
73455         * lib/quotearg.h (quotearg_free): New decl.
73456         * lib/quotearg.c (quotearg_free): New function.
73457         (slot0, nslots, slotvec0, slotvec):
73458         Now file-scope so that quotearg_free can get at them.
73459
73460 2006-11-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73461
73462         Sync from Automake.
73463         * build-aux/gnupload: Add missing 'gnu' to example URL.
73464         Report by Karl Berry.
73465
73466 2006-11-08  Bruno Haible  <bruno@clisp.org>
73467
73468         * m4/inline.m4 (gl_INLINE): Also test __NO_INLINE__.
73469         Suggested by Paul Eggert.
73470
73471 2006-11-08  Jim Meyering  <jim@meyering.net>
73472
73473         * lib/fts.c [!_LGPL_PACKAGE]: Don't include fcntl--.h twice.
73474         It's already included if !_LIBC.
73475         (fts_safe_changedir): Add a comment.
73476
73477 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73478
73479         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Detect bug in
73480         Tandem NonStop Kernel (OSS) cc -O circa 2004, reported by
73481         Matthew Woehlke.
73482
73483         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Move
73484         definitions up, to avoid colliding with change below.
73485         (static_inline) [HAVE_INLINE]: New macro.
73486         (xnmalloc, xnrealloc, x2nrealloc, xcharalloc):
73487         Provide extern decls when !HAVE_INLINE.  Do not define unless
73488         static_inline is defined, either by us or by xmalloc.c.  Use
73489         static_inline rather than static inline.
73490         (XCALLOC): Optimize sizeof(T) = 1 case.
73491         * lib/xmalloc.c (static_inline) [!HAVE_INLINE]: New macro.
73492
73493 2006-11-07  Bruno Haible  <bruno@clisp.org>
73494
73495         * lib/xalloc.h (XNMALLOC): Restore optimization of sizeof(T) = 1 case.
73496         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require gl_INLINE instead of
73497         AC_C_INLINE.
73498         * modules/xalloc (Files): Add m4/inline.m4.
73499
73500 2006-11-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73501
73502         * README: Fix typo.
73503         * doc/gnulib.texi (Miscellaneous Notes): Likewise, rename...
73504         (Miscellanous Notes): ...from this.
73505
73506 2006-11-07  Paul Eggert  <eggert@cs.ucla.edu>
73507
73508         * m4/flexmember.m4 (AC_C_FLEXIBLE_ARRAY_MEMBER):
73509         Mention that offsetof should be used instead of sizeof.
73510         From Bruno Haible.
73511
73512 2006-11-07  Bruno Haible  <bruno@clisp.org>
73513
73514         * lib/w32spawn.h (prepare_spawn): Use XNMALLOC instead of xmalloc.
73515
73516 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73517
73518         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73519         * lib/gl_anyavltree_list2.h (create_subtree_with_contents):
73520         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73521         (gl_tree_add_before, gl_tree_add_after):
73522         Use XMALLOC instead of xmalloc, and XCALLOC instead of xzalloc.
73523         * lib/gl_anyhash_list2.h (hash_resize): Likewise.
73524         * lib/gl_anylinked_list2.h (gl_linked_create_empty, gl_linked_create):
73525         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before):
73526         (gl_linked_add_after, gl_linked_add_at): Likewise.
73527         * lib/gl_anyrbtree_list2.h (create_subtree_with_contents):
73528         (gl_tree_create, gl_tree_add_first, gl_tree_add_last):
73529         (gl_tree_add_before, gl_tree_add_after): Likewise.
73530         * lib/gl_anytree_list2.h (gl_tree_create_empty): Likewise.
73531         * lib/gl_anytree_oset.h (gl_tree_create_empty): Likewise.
73532         * lib/gl_anytreehash_list1.h (add_to_bucket): Likewise.
73533
73534 2006-11-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73535
73536         * lib/gl_oset.h: Use C comment style, not C++ comment style.
73537
73538 2006-11-06  Bruno Haible  <bruno@clisp.org>
73539
73540         * m4/inline.m4: New file.
73541         * m4/gl_list.m4 (gl_LIST): Require gl_INLINE.
73542         * modules/list (Files): Add m4/inline.m4.
73543         * modules/oset (Files): Likewise.
73544
73545 2006-11-06  Paul Eggert  <eggert@cs.ucla.edu>
73546
73547         * lib/idcache.c: Include <stddef.h>, for offsetof.
73548         (struct userid.name): Change from char * to a flexible array member.
73549         All uses changed.
73550         * modules/idcache (Depends-on): Add flexmember.
73551
73552         * MODULES.html.sh (Core language properties): New module flexmember.
73553         * modules/flexmember, m4/flexmember.m4: New files.
73554
73555         * lib/xalloc.h (xnmalloc, xnrealloc, x2nrealloc): Now static
73556         inline functions that are identical with the old xnmalloc_inline,
73557         xnrealloc_inline, x2nrealloc_inline of lib/xmalloc.c.  This is so
73558         that we can avoid some unnecessary integer multiplications and
73559         divisions in the common case where the element size is known at
73560         compile time.
73561         (XNMALLOC) [HAVE_INLINE]: Remove special case, which is no longer
73562         needed.
73563         (xnboundedmalloc): Remove.
73564         (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): Use lower-case letters for
73565         arguments, for consistency with rest of this header.
73566         (xcharalloc): Rewrite using XNMALLOC.
73567         * lib/xmalloc.c (xnmalloc_inline, xnmalloc, xnrealloc_inline):
73568         (xnrealloc, x2nrealloc_inline, x2nrealloc): Remove.  The *_inline
73569         versions have been moved to lib/xalloc.h and renamed to be the
73570         non-*_inline versions.
73571         (xmalloc, xrealloc): Implement without reference to the xnmalloc
73572         and xnrealloc functions, since those functions are now inline and
73573         now call us.
73574         (x2realloc): Invoke x2realloc, not x2realloc_inline, to accommodate
73575         renaming described above.
73576         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Remove AC_C_INLINE since
73577         xmalloc.c no longer uses inline directly.  gl_PREREQ_XALLOC now
73578         captures the dependency in AC_C_INLINE.
73579
73580         New module canonicalize-lgpl, proposed by Charles Wilson in
73581         <http://lists.gnu.org/archive/html/bug-gnulib/2006-11/msg00020.html>
73582         with a few small changes afterwards.
73583         * MODULES.html.sh (File system functions): New module
73584         canonicalize-lgpl.
73585         * lib/canonicalize.h: Add comments for canonicalize_filename_mode
73586         and canonicalize_file_name.
73587         * lib/canonicalize-lgpl.c, m4/canonicalize-lgpl.m4:
73588         * modules/canonicalize-lgpl: New files.
73589
73590 2006-11-05  Bruno Haible  <bruno@clisp.org>
73591
73592         * gnulib-tool (func_import, func_create_testdir): Create directories
73593         also for files in subdirectories of lib/.
73594
73595 2006-11-05  Bruno Haible  <bruno@clisp.org>
73596
73597         * lib/gl_array_list.c (gl_array_iterator_next): Make pointer decrement
73598         ANSI C compliant.
73599
73600 2006-11-03  Bruno Haible  <bruno@clisp.org>
73601
73602         Simplify xmalloc expressions. Add overflow check in xmalloc arguments.
73603         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Require AC_C_INLINE.
73604         * lib/xalloc.h (XMALLOC, XNMALLOC, XZALLOC, XCALLOC): New macros.
73605         (xnboundedmalloc): New inline function.
73606         * lib/classpath.c (new_classpath): Use XNMALLOC instead of xmalloc.
73607         * lib/clean-temp.c (create_temp_dir): Use XNMALLOC, XMALLOC instead of
73608         xmalloc.
73609         * lib/concatpath.c (concatenated_pathname): Use XNMALLOC instead of
73610         xmalloc.
73611         * lib/fatal-signal.c (at_fatal_signal): Use XNMALLOC instead of xmalloc.
73612         * lib/findprog.c (find_in_path): Use XNMALLOC instead of xmalloc.
73613         * lib/gl_array_list.c (gl_array_create_empty): Use XMALLOC instead of
73614         xmalloc.
73615         (gl_array_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73616         * lib/gl_array_oset.c (gl_array_create_empty): Use XNMALLOC instead of
73617         xmalloc.
73618         * lib/gl_avltree_oset.c (gl_tree_add_first, gl_tree_add_before,
73619         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73620         * lib/gl_carray_list.c (gl_carray_create_empty): Use XMALLOC instead of
73621         xmalloc.
73622         (gl_carray_create): Use XNMALLOC, XMALLOC instead of xmalloc.
73623         * lib/gl_rbtree_oset.c (gl_tree_add_first, gl_tree_add_before,
73624         gl_tree_add_after): Use XMALLOC instead of xmalloc.
73625         * lib/gl_sublist.c (gl_sublist_create): Use XMALLOC instead of xmalloc.
73626         * lib/pagealign_alloc.c (new_memnode): Use XMALLOC instead of xmalloc.
73627         * lib/sh-quote.c (shell_quote_argv): Use XNMALLOC instead of xmalloc.
73628         * lib/xvasprintf.c (xstrcat): Use XNMALLOC instead of xmalloc.
73629
73630 2006-11-03  Bruno Haible  <bruno@clisp.org>
73631
73632         * lib/c-ctype.h [C++]: Define functions without name mangling.
73633         * lib/fwriteerror.h [C++]: Likewise.
73634         * lib/gcd.h [C++]: Likewise.
73635         * lib/linebreak.h [C++]: Likewise.
73636
73637 2006-11-03  Paul Eggert  <eggert@cs.ucla.edu>
73638
73639         * lib/canonicalize.h: (canonicalize_mode_t, CAN_EXISTING):
73640         (CAN_ALL_BUT_LAST, CAN_MISSING, canonicalize_filename_mode):
73641         Define only if PROVIDE_CANONICALIZE_FILENAME_MODE is defined.
73642         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
73643         Check for functions and headers just once.
73644         Check for declaration of canonicalize_file_name.
73645         Define PROVIDE_CANONICALIZE_FILENAME_MODE.
73646
73647 2006-11-02  Charles Wilson  <cygwin@cwilson.fastmail.fm>
73648
73649         * gnulib-tool (func_import): Fix typo in actioncmd.
73650
73651 2006-11-02  Bruno Haible  <bruno@clisp.org>
73652
73653         * gnulib-tool (func_get_automake_snippet): Interpret a backslash-
73654         newline sequence in the Makefile.am snippet as a space, like "make"
73655         does.
73656         Reported by Roger Persson <perrog@gmail.com>.
73657
73658 2006-11-01  Bruno Haible  <bruno@clisp.org>
73659
73660         * m4/strcase.m4 (gl_FUNC_STRNCASECMP): Check whether strncasecmp is
73661         already declared in <string.h>.
73662         * lib/strcase.h (strncasecmp): Don't declare it if yes.
73663
73664 2006-11-01  Bruno Haible  <bruno@clisp.org>
73665
73666         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Don't define strcasecmp here.
73667         * lib/strcase.h: Include <string.h>.
73668         (strcasecmp): Define to rpl_strcasecmp here.
73669
73670 2006-11-01  Bruno Haible  <bruno@clisp.org>
73671
73672         * lib/printf-parse.c (PRINTF_PARSE): Cast malloc/realloc results.
73673
73674 2006-11-01  Eric Blake  <ebb9@byu.net>
73675
73676         * lib/mkstemp-safer.c (mkstemp_safer): Allow C++ compilation.
73677
73678         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Allow C++ configuration.
73679
73680 2006-10-29  Bruno Haible  <bruno@clisp.org>
73681
73682         Make it compile in C++ mode.
73683         * lib/full-write.c (full_rw): Add a cast.
73684
73685 2006-11-01  Bruno Haible  <bruno@clisp.org>
73686
73687         * gnulib-tool (func_get_automake_snippet): Change sed_combine_lines to
73688         be POSIX compliant.
73689         Reported by Roger Persson <perrog@gmail.com>.
73690
73691 2006-11-01  Eric Blake  <ebb9@byu.net>
73692
73693         * lib/getopt_.h: Fix comments.
73694
73695 2006-10-31  Eric Blake  <ebb9@byu.net>
73696
73697         * modules/tmpdir (Depends-on): Add sys_stat.
73698         * modules/mkdtemp (Depends-on): Add tempname, drop unistd.
73699         * lib/mkdtemp.c (gen_tempname): Remove; tempname covers this.
73700         * lib/tmpdir.c (S_ISDIR): Simplify, thanks to sys_stat.
73701         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Simplify, thanks to
73702         tempname.
73703
73704 2006-10-31  Paul Eggert  <eggert@cs.ucla.edu>
73705
73706         Avoid some C++ diagnostics reported by Bruno Haible.
73707         * lib/quotearg.c (clone_quoting_options): Use xmemdup rather than
73708         xmalloc.
73709         (quotearg_alloc): Use xcharalloc rather than xmalloc.
73710         (struct slotvec): Move to top level.
73711         (quotearg_n_options): Rewrite to avoid xmalloc.
73712         * lib/xalloc.h (xcharalloc): New function.
73713         * (xrealloc, xnrealloc, x2realloc, x2nrealloc, xmemdup):
73714         [defined __cplusplus]: Add function template that provides result
73715         type propagation.  This part of the change is from Bruno Haible.
73716
73717 2006-10-29  Bruno Haible  <bruno@clisp.org>
73718
73719         Make it compile in C++ mode.
73720         * lib/striconv.c (mem_cd_iconv): Cast malloc/realloc result.
73721         * lib/strnlen1.c (strnlen1): Cast memchr result.
73722         * lib/mbchar.h (mb_copy): Rename arguments to 'new_mbc', 'old_mbc'.
73723         * lib/clean-temp.c (string_equals, string_hash): Add casts.
73724         (create_temp_dir): Rename local variable 'template'.
73725         (compile_csharp_using_sscli): Add cast.
73726         * lib/fatal-signal.c (at_fatal_signal): Cast xmalloc result.
73727         * lib/findprog.c (find_in_path): Likewise.
73728         * lib/linebreak.c (mbs_width_linebreaks): Cast malloc result.
73729         * lib/wait-process.c (register_slave_subprocess): Likewise.
73730
73731 2006-10-22  Bruno Haible  <bruno@clisp.org>
73732
73733         * modules/tsearch: New file.
73734         * lib/tsearch.h: New file.
73735         * lib/tsearch.c: New file, from glibc-2.5 with small modifications.
73736         * m4/tsearch.m4: New file.
73737         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add tsearch.
73738
73739 2006-10-29  Eric Blake  <ebb9@byu.net>
73740
73741         * lib/arcfour.c: Assume config.h.
73742         * lib/arctwo.c: Likewise.
73743         * lib/base64.c: Likewise.
73744         * lib/check-version.c: Likewise.
73745         * lib/crc.c: Likewise.
73746         * lib/des.c: Likewise.
73747         * lib/gc-gnulib.c: Likewise.
73748         * lib/gc-libgcrypt.c: Likewise.
73749         * lib/gc-pbkdf2-sha1.c: Likewise.
73750         * lib/getaddrinfo.c: Likewise.
73751         * lib/getdelim.c: Likewise.
73752         * lib/getline.c: Likewise.
73753         * lib/hmac-md5.c: Likewise.
73754         * lib/hmac-sha1.c: Likewise.
73755         * lib/iconvme.c: Likewise.
73756         * lib/md2.c: Likewise.
73757         * lib/md4.c: Likewise.
73758         * lib/memxor.c: Likewise.
73759         * lib/read-file.c: Likewise.
73760         * lib/readline.c: Likewise.
73761         * lib/rijndael-alg-fst.c: Likewise.
73762         * lib/rijndael-api-fst.c: Likewise.
73763         * lib/xgetdomainname.c: Likewise.
73764
73765 2006-10-28  Eric Blake  <ebb9@byu.net>
73766
73767         * lib/xstrndup.c: Assume config.h.
73768
73769 2006-10-27  Paul Eggert  <eggert@cs.ucla.edu>
73770
73771         Move stat.h-substitute stuff from lib/stat-macros.h to lib/stat_.h.
73772         stat-macros.h is now for our own macros, whereas stat_h is for
73773         macros in the <sys/stat.h> name space.
73774         * lib/stat-macros.h: Remove copyright notice, as this file is now tiny.
73775         (STAT_MACROS_H): Remove.
73776         (S_IFMT, S_ISBLK, S_ISCHR, S_ISDIR, S_ISFIFO, S_ISLNK, S_ISNAM):
73777         (S_ISMPB, S_ISMPC, S_ISNWK, S_ISREG, S_ISSOCK, S_ISDOOR, S_ISPORT):
73778         (S_TYPEISMQ, S_TYPEISTMO, S_TYPEISSEM, S_TYPEISSHM, S_ISCTG, S_ISOFD):
73779         (S_ISOFL, S_ISWHT, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IRGRP):
73780         (S_IROTH, S_IWUSR, S_IWGRP, S_IWOTH, S_IXUSR, S_IXGRP, S_IXOTH):
73781         (S_IRWXU, S_IRWXG, S_IRWXO, S_IXUGO, S_IRWXUGO):
73782         Move these macros to ...
73783         * lib/stat_.h: here.  Don't include stat-macros.h.
73784         * lib/canonicalize.c: Don't include stat-macros.h.
73785         * lib/chown.c: Likewise.
73786         * lib/euidaccess.c: Likewise.
73787         * lib/file-type.c: Likewise.
73788         * lib/filemode.c: Likewise.
73789         * lib/glob.c: Likewise.
73790         * lib/isapipe.c: Likewise.
73791         * lib/lchown.c: Likewise.
73792         * lib/lstat.c: Likewise.
73793         * lib/mkdir-p.c: Likewise.
73794         * lib/rmdir.c: Likewise.
73795         * m4/lchown.m4 (gl_FUNC_LCHOWN): Don't require gl_STAT_MACROS.
73796         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Don't check for io.h
73797         unless mkdir isn't declared, to speed up 'configure'.
73798         Always create sys/stat.h, since it's unlikely any real sys/stat.h
73799         would define all the S_* symbols.
73800         * modules/canonicalize (Depends-on):
73801         Depend on sys_stat, not stat-macros.
73802         * modules/chown: Likewise.
73803         * modules/euidaccess: Likewise.
73804         * modules/filemode: Likewise.
73805         * modules/file-type: Likewise.
73806         * modules/glob: Likewise.
73807         * modules/isapipe: Likewise.
73808         * modules/lchown: Likewise.
73809         * modules/lstat: Likewise.
73810         * modules/mkancesdirs: Likewise.
73811         * modules/rmdir: Likewise.
73812         * modules/mkdir-p (Depends-on): Also depend on sys_stat.
73813         * modules/modechange: Likewise.
73814         * modules/stat-macros (Files): Remove m4/stat-macros.m4.
73815         (configure.ac): Remove gl_STAT_MACROS.
73816         * modules/sys_stat (Depends-on): Remove stat-macros.
73817
73818 2006-10-27  Bruno Haible  <bruno@clisp.org>
73819
73820         * m4/signed.m4: Remove file.
73821         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS_: Remove bh_C_SIGNED
73822         invocation.
73823         * modules/vasnprintf (Files): Remove m4/signed.m4.
73824
73825 2006-10-27  Bruno Haible  <bruno@clisp.org>
73826
73827         Update to GNU gettext 0.16.
73828         * modules/gettext (Files): Add m4/intl.m4, m4/intldir.m4. Remove
73829         m4/inttypes-h.m4, m4/signed.m4.
73830         * m4/gettext.m4: Update to GNU gettext 0.16.
73831         * m4/intl.m4: New file, from GNU gettext.
73832         * m4/intldir.m4: New file, from GNU gettext.
73833         * config/srclist.txt: Update
73834
73835 2006-10-27  Eric Blake  <ebb9@byu.net>
73836
73837         * MODULES.html.sh: Document tempname.
73838         * modules/mkstemp (Depends-on): Add tempname, and drop transitive
73839         dependencies.
73840         (Files): Move lib/tempname.c...
73841         * modules/tempname: ...to this new module.
73842         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Remove tempname checks.
73843         (gl_PREREQ_TEMPNAME): Move...
73844         * m4/tempname.m4: ...to this new file.
73845         * lib/mkstemp.c (includes) [!_LIBC]: Use tempname.h.
73846         * modules/sys_stat (Depends-on): Add stat-macros.
73847         * lib/stat_.h (includes): Pick up stat macros.
73848         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Replace <sys/stat.h>
73849         if stat macros are broken.
73850         * lib/tempname.c (includes): No need to include "stat-macros.h".
73851         (__gen_tempname) [!_LIBC]: Expose as gen_tempname.
73852         (direxists, __path_search) [!_LIBC]: Don't compile these in
73853         gnulib; the tmpdir module covers that.
73854         * lib/tempname.h: New file.
73855
73856 2006-10-26  Paul Eggert  <eggert@cs.ucla.edu>
73857
73858         * COPYING: Explain how gnulib-tool converts licence headers.
73859         Almost all wording by Eric Blake.
73860
73861 2006-10-25  Paul Eggert  <eggert@cs.ucla.edu>
73862
73863         * lib/mbchar.h (is_basic_table): Make read-only.
73864         * lib/mbchar.c (is_basic_table): Likewise.
73865         Reported by John Darrington.
73866
73867 2006-10-25  Bruno Haible  <bruno@clisp.org>
73868
73869         * lib/progname.h (set_program_name): Undefine before defining.
73870
73871 2006-10-25  Bruno Haible  <bruno@clisp.org>
73872
73873         * lib/gettext.h (_LIBGETTEXT_HAVE_VARIABLE_SIZE_ARRAYS): Define to
73874         false for non-gcc C++ compilers.
73875         Reported by Nelson H. F. Beebe <beebe@math.utah.edu>.
73876
73877 2006-10-24  Bruno Haible  <bruno@clisp.org>
73878
73879         * lib/striconv.c (mem_cd_iconv, str_cd_iconv): Treat all non-GNU
73880         iconv implementations like Irix iconv.
73881
73882 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73883
73884         * modules/vararrays: New file.
73885         * m4/vararrays.m4: New file, taken from diffutils.
73886         * MODULES.html.sh: New module vararrays.
73887
73888 2006-10-24  Karl Berry  <karl@gnu.org>
73889
73890         * doc/gnulib-intro.texi: --- instead of --; non-naive naive.
73891         Don't call GNU Unix.
73892
73893 2006-10-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
73894
73895         * users.txt: Add Libtool.
73896
73897         Sync from Libtool:
73898
73899         2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73900
73901         * lib/argz.c: Remove check for HAVE_CONFIG_H, to conform
73902         to gnulib's policy of including config.h unconditionally.
73903
73904 2006-10-24  Bruno Haible  <bruno@clisp.org>
73905
73906         * modules/wcwidth (Files): Add m4/wint_t.m4.
73907         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Require gt_TYPE_WINT_T.
73908         * lib/wcwidth.h (iswprint): Use 'int' if 'wint_t' is not defined.
73909
73910 2006-10-24  Paul Eggert  <eggert@cs.ucla.edu>
73911
73912         * lib/getdate.y (yyerror): Make the arguments pointer-to-const,
73913         to pacify GCC with some -W flags enabled.  Problem reported by
73914         Bruno Haible.
73915
73916 2006-10-24  Jim Meyering  <jim@meyering.net>
73917
73918         * MODULES.html.sh: Remove uinttostr.  It's not a module.
73919         Reported by Karl Berry.
73920
73921 2006-10-23  Bruno Haible  <bruno@clisp.org>
73922
73923         * lib/fts.c (fts_build): Move variable declaration, for C89 compliance.
73924
73925 2006-10-24  Bruno Haible  <bruno@clisp.org>
73926
73927         * lib/gl_list.h: Use C comment style, not C++ comment style.
73928
73929 2006-10-23  Eric Blake  <ebb9@byu.net>
73930
73931         * lib/getaddrinfo.c (includes): Add missing include.
73932
73933 2006-10-23  Bruno Haible  <bruno@clisp.org>
73934             Paul Eggert  <eggert@cs.ucla.edu>
73935
73936         Ability to rename obstack_free.
73937         * lib/obstack.h (__obstack_free): New macro. Declare instead of
73938         obstack_free.
73939         (obstack_free): Invoke the __obstack_free macro.
73940         * lib/obstack.c (obstack_free): Use __obstack_free macro.
73941
73942 2006-10-23  Bruno Haible  <bruno@clisp.org>
73943             Paul Eggert  <eggert@cs.ucla.edu>
73944
73945         * lib/argp.h (argp_parse, __argp_parse): Comment out the identifiers
73946         __argc, __argv from the declaration. (They are defined as macros on
73947         mingw.)
73948
73949 2006-10-22  Bruno Haible  <bruno@clisp.org>
73950
73951         * doc/gnulib-intro.texi: New file.
73952         * doc/gnulib.texi: Include it.
73953
73954 2006-10-21  Bruno Haible  <bruno@clisp.org>
73955
73956         * doc/gnulib.texi: Split the chapter "Gnulib" into 3 chapters
73957         "Introduction", "Miscellanous Notes", "Particular Modules".
73958
73959 2006-10-21  Bruno Haible  <bruno@clisp.org>
73960
73961         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
73962         Change mostlyclean-local rule to avoid sh syntax error from bash
73963         versions 2.00..2.05 when $(MOSTLYCLEANDIRS) is empty.
73964
73965 2006-10-23  Jim Meyering  <jim@meyering.net>
73966
73967         * lib/getaddrinfo.c (getnameinfo): Use new lightweight uinttostr,
73968         in place of snprintf.
73969
73970         * modules/inttostr (Files): Add lib/uinttostr.c.
73971         * lib/uinttostr.c (inttostr): New file/function.
73972         * lib/inttostr.h (uinttostr): Declare.
73973         * m4/inttostr.m4: Add AC_LIBOBJ([uinttostr]).
73974         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
73975         Add uinttostr.
73976         * modules/getaddrinfo (Depends-on): Remove snprintf.  Add inttostr.
73977
73978 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73979
73980         * lib/canonicalize.c (ELOOP): Define if not already defined.
73981         Problem reported by Bruno Haible in
73982         <http://lists.gnu.org/archive/html/bug-gnulib/2006-10/msg00282.html>.
73983
73984 2006-10-21  Paul Eggert  <eggert@cs.ucla.edu>
73985
73986         * lib/stdint_.h [defined _AIX]: Don't include <sys/types.h>.
73987         Problem reported by Perry Smith and Ville Laurikari.
73988
73989         * lib/getndelim2.c (SSIZE_MAX): Use same defn that getdelim.c
73990         uses.
73991
73992 2006-10-19  Bruno Haible  <bruno@clisp.org>
73993
73994         * lib/getndelim2.c (SSIZE_MAX): Provide fallback definition. Needed
73995         for mingw.
73996
73997 2006-10-19  Bruno Haible  <bruno@clisp.org>
73998
73999         * lib/openat-priv.h (EOPNOTSUPP): Provide fallback definition.
74000         Needed for mingw.
74001
74002 2006-10-19  Bruno Haible  <bruno@clisp.org>
74003
74004         * m4/size_max.m4 (gl_SIZE_MAX): Cache the result.
74005
74006 2006-10-19  Bruno Haible  <bruno@clisp.org>
74007
74008         * m4/allocsa.m4 (gl_ALLOCSA): Invoke gl_FUNC_ALLOCA, don't AC_REQUIRE
74009         it.
74010
74011 2006-10-19  Bruno Haible  <bruno@clisp.org>
74012
74013         * m4/alloca.m4 (gl_FUNC_ALLOCA): Cache the result of the AC_EGREP_CPP
74014         invocation.
74015
74016 2006-10-19  Bruno Haible  <bruno@clisp.org>
74017
74018         * gnulib-tool (func_create_testdir): Don't include ftruncate and
74019         mountlist by default.
74020
74021 2006-10-16  Bruno Haible  <bruno@clisp.org>
74022
74023         * lib/c-strstr.c: Include c-strstr.h.
74024
74025 2006-10-18  Charles Wilson  <cygwin@cwilson.fastmail.fm>
74026
74027         * gnulib-tool: Don't clobber $sourcebase when $local_gnulib_dir ends
74028         in a slash.
74029
74030 2006-10-18  Bruno Haible  <bruno@clisp.org>
74031
74032         * lib/lock.h [C++]: Wrap definitions in extern "C".
74033
74034 2006-10-18  Bruno Haible  <bruno@clisp.org>
74035
74036         * gnulib-tool (func_emit_initmacro_end): Remove duplicates from the
74037         gl_LIBOBJS list.
74038
74039 2006-10-18  Bruno Haible  <bruno@clisp.org>
74040
74041         * lib/findprog.c (find_in_path): Avoid "gcc -Wwrite-strings" warning.
74042
74043 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>
74044
74045         * lib/xstrtol.h: Include gettext.h.
74046         (_STRTOL_ERROR): Wrap English-language formats inside gettext.
74047         Problem reported by Eric Blake.
74048         * modules/xstrtol (Depends-on): Add gettext-h.
74049
74050 2006-10-19  Paul Eggert  <eggert@cs.ucla.edu>  (tiny change)
74051
74052         * lib/strftime.c (advance): New macro.
74053         (add): Use it to avoid adding 0 to a FILE *.  FILE can be an
74054         incomplete type, so you can't add 0 to it.  Problem and patch
74055         reported by Eelco Dolstra for dietlibc.
74056
74057 2006-10-18  Jim Meyering  <jim@meyering.net>
74058
74059         * lib/readutmp.c (desirable_utmp_entry): Use "bool" as the
74060         type for a local, and rename it: s/up/user_proc/.
74061
74062 2006-10-18  Sergey Poznyakoff  <gray@gnu.org.ua>
74063
74064         * lib/readutmp.c (desirable_utmp_entry): Implement new flag:
74065         READ_UTMP_USER_PROCESS.
74066         * lib/readutmp.h (READ_UTMP_USER_PROCESS): New flag
74067
74068 2006-10-17  Paul Eggert  <eggert@cs.ucla.edu>
74069
74070         * lib/localcharset.c: Do not check HAVE_SETLOCALE.
74071         * m4/localcharset.m4 (gl_LOCALCHARSET): Don't check for setlocale.
74072
74073 2006-10-17  Eric Blake  <ebb9@byu.net>
74074
74075         * lib/sigprocmask.c (sigprocmask): Fix typo.
74076
74077         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Fix typo.
74078
74079         * modules/clean-temp (Makefile.am): Don't add to make output...
74080         (configure.ac): ...instead define SIGNAL_SAFE_LIST inside
74081         config.h.
74082
74083 2006-10-17  Bruno Haible  <bruno@clisp.org>
74084
74085         * lib/gettext.h (gettext, ngettext, pgettext, npgettext): Define
74086         differently if DEFAULT_TEXT_DOMAIN is set.
74087
74088 2006-10-16  Bruno Haible  <bruno@clisp.org>
74089
74090         * lib/clean-temp.c: Include fwriteerror.h.
74091
74092 2006-10-16  Bruno Haible  <bruno@clisp.org>
74093
74094         * getndelim2.m4 (gl_GETNDELIM2): Remove 2003-10-23 hack.
74095
74096 2006-10-16  Bruno Haible  <bruno@clisp.org>
74097
74098         * m4/signalblocking.m4 (gl_PREREQ_SIGPROCMASK): Also test for sigset_t.
74099         * lib/sigprocmask.h: Include <sys/types.h>.
74100         (sigset_t): Use the system's definition if present.
74101
74102 2006-10-17  Eric Blake  <ebb9@byu.net>
74103
74104         * lib/xvasprintf.c (includes): Assume config.h.
74105         * lib/xasprintf.c (includes): Likewise.
74106
74107 2006-10-16  Paul Eggert  <eggert@cs.ucla.edu>
74108
74109         * lib/fsusage.c (PROPAGATE_ALL_ONES): Don't assume uintmax_t is
74110         at least as wide as intmax_t.
74111
74112 2006-10-16  Alexandre Duret-Lutz  <adl@gnu.org>
74113
74114         (Imported from Automake.)
74115         * build-aux/gnupload: Update to version 1.1 of directive file.
74116
74117 2006-10-16  Eric Blake  <ebb9@byu.net>
74118
74119         * modules/configmake (Makefile.am): Add pkglibexecdir support, to
74120         match Automake 1.10a.
74121
74122 2006-10-14  Bruno Haible  <bruno@clisp.org>
74123
74124         * modules/sigprocmask: New file.
74125         * lib/sigprocmask.h: New file.
74126         * lib/sigprocmask.c: New file.
74127         * m4/signalblocking.m4 (gl_SIGNALBLOCKING): Renamed from
74128         gt_SIGNALBLOCKING. When not defining HAVE_POSIX_SIGNALBLOCKING,
74129         request sigprocmask.o.
74130         (gl_PREREQ_SIGPROCMASK): New macro.
74131         * modules/fatal-signal (Files): Remove m4/signalblocking.m4.
74132         (Depends-on): Add sigprocmask.
74133         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Don't require
74134         gt_SIGNALBLOCKING. Test for 'raise' only once.
74135         * lib/fatal-signal.c: Include sigprocmask.h.
74136         (fatal_signal_set, init_fatal_signal_set, block_fatal_signals,
74137         unblock_fatal_signals): Define always.
74138         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
74139         sigprocmask.
74140
74141 2006-10-14  Paul Eggert  <eggert@cs.ucla.edu>
74142
74143         Sync from Automake.
74144         * build-aux/install-sh (posix_mkdir): Reject FreeBSD 6.1 mkdir -p -m,
74145         which incorrectly sets the mode of an existing destination
74146         directory.  In some cases the unpatched install-sh could do the
74147         equivalent of "chmod 777 /" or "chmod 0 /" on a buggy FreeBSD
74148         system.  We hope this is rare in practice, but it's clearly worth
74149         fixing.  Problem reported by Alex Unleashed in
74150         <http://lists.gnu.org/archive/html/bug-autoconf/2006-10/msg00012.html>.
74151         Also, don't bother to check for -m bugs unless we're using -m;
74152         suggested by Stepan Kasal.
74153
74154 2006-10-14  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
74155
74156         Sync from Automake.
74157         * build-aux/depcomp (gcc3): Put dependency extraction flags before the
74158         `-c' flag, so they appear at the same position as in %FASTDEP%
74159         mode in depend2.am.  Fixes build failure for FreeBSD's c89,
74160         which ignores unknown options only after the first non-option.
74161         Bug report against M4 by Nelson H. F. Beebe.
74162
74163 2006-10-13  Jim Meyering  <jim@meyering.net>
74164
74165         Fix a bug in yesterday's change.
74166         * lib/fts.c (fts_open): When using FTS_XDEV|FTS_NOSTAT,
74167         p->fts_statp->st_dev would be used uninitialized.
74168         Ensures that we always call fts_stat on the very first entry.
74169         Miklos Szeredi reported that find -xdev stopped working.
74170
74171 2006-10-12  Bruno Haible  <bruno@clisp.org>
74172
74173         * gnulib-tool (func_get_automake_snippet): Append an automatically
74174         computed EXTRA_DIST augmentation.
74175         * modules/acl (Makefile.am): Remove EXTRA_DIST augmentation.
74176         * modules/alloca-opt (Makefile.am): Likewise.
74177         * modules/allocsa (Makefile.am): Likewise.
74178         * modules/arcfour (Makefile.am): Likewise.
74179         * modules/arctwo (Makefile.am): Likewise.
74180         * modules/argmatch (Makefile.am): Likewise.
74181         * modules/argz (Makefile.am): Likewise.
74182         * modules/atexit (Makefile.am): Likewise.
74183         * modules/backupfile (Makefile.am): Likewise.
74184         * modules/byteswap (Makefile.am): Likewise.
74185         * modules/c-strtod (Makefile.am): Likewise.
74186         * modules/c-strtold (Makefile.am): Likewise.
74187         * modules/calloc (Makefile.am): Likewise.
74188         * modules/canon-host (Makefile.am): Likewise.
74189         * modules/canonicalize (Makefile.am): Likewise.
74190         * modules/chdir-long (Makefile.am): Likewise.
74191         * modules/chdir-safer (Makefile.am): Likewise.
74192         * modules/check-version (Makefile.am): Likewise.
74193         * modules/chown (Makefile.am): Likewise.
74194         * modules/cloexec (Makefile.am): Likewise.
74195         * modules/close-stream (Makefile.am): Likewise.
74196         * modules/closeout (Makefile.am): Likewise.
74197         * modules/crc (Makefile.am): Likewise.
74198         * modules/csharpexec (Makefile.am): Likewise.
74199         * modules/cycle-check (Makefile.am): Likewise.
74200         * modules/des (Makefile.am): Likewise.
74201         * modules/dev-ino (Makefile.am): Likewise.
74202         * modules/dirfd (Makefile.am): Likewise.
74203         * modules/dirname (Makefile.am): Likewise.
74204         * modules/dup2 (Makefile.am): Likewise.
74205         * modules/eealloc (Makefile.am): Likewise.
74206         * modules/error (Makefile.am): Likewise.
74207         * modules/euidaccess (Makefile.am): Likewise.
74208         * modules/exclude (Makefile.am): Likewise.
74209         * modules/exitfail (Makefile.am): Likewise.
74210         * modules/fcntl-safer (Makefile.am): Likewise.
74211         * modules/fcntl (Makefile.am): Likewise.
74212         * modules/file-type (Makefile.am): Likewise.
74213         * modules/fileblocks (Makefile.am): Likewise.
74214         * modules/filemode (Makefile.am): Likewise.
74215         * modules/filenamecat (Makefile.am): Likewise.
74216         * modules/fnmatch (Makefile.am): Likewise.
74217         * modules/fopen-safer (Makefile.am): Likewise.
74218         * modules/fpending (Makefile.am): Likewise.
74219         * modules/fprintftime (Makefile.am): Likewise.
74220         * modules/free (Makefile.am): Likewise.
74221         * modules/fsusage (Makefile.am): Likewise.
74222         * modules/ftruncate (Makefile.am): Likewise.
74223         * modules/fts (Makefile.am): Likewise.
74224         * modules/gc-arcfour (Makefile.am): Likewise.
74225         * modules/gc-des (Makefile.am): Likewise.
74226         * modules/gc-hmac-md5 (Makefile.am): Likewise.
74227         * modules/gc-hmac-sha1 (Makefile.am): Likewise.
74228         * modules/gc-md4 (Makefile.am): Likewise.
74229         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74230         * modules/gc-sha1 (Makefile.am): Likewise.
74231         * modules/gc (Makefile.am): Likewise.
74232         * modules/getaddrinfo (Makefile.am): Likewise.
74233         * modules/getcwd (Makefile.am): Likewise.
74234         * modules/getdelim (Makefile.am): Likewise.
74235         * modules/getdomainname (Makefile.am): Likewise.
74236         * modules/getgroups (Makefile.am): Likewise.
74237         * modules/gethostname (Makefile.am): Likewise.
74238         * modules/gethrxtime (Makefile.am): Likewise.
74239         * modules/getline (Makefile.am): Likewise.
74240         * modules/getloadavg (Makefile.am): Likewise.
74241         * modules/getlogin_r (Makefile.am): Likewise.
74242         * modules/getndelim2 (Makefile.am): Likewise.
74243         * modules/getopt (Makefile.am): Likewise.
74244         * modules/getpagesize (Makefile.am): Likewise.
74245         * modules/getpass-gnu (Makefile.am): Likewise.
74246         * modules/getpass (Makefile.am): Likewise.
74247         * modules/getsubopt (Makefile.am): Likewise.
74248         * modules/gettime (Makefile.am): Likewise.
74249         * modules/gettimeofday (Makefile.am): Likewise.
74250         * modules/getugroups (Makefile.am): Likewise.
74251         * modules/getusershell (Makefile.am): Likewise.
74252         * modules/glob (Makefile.am): Likewise.
74253         * modules/group-member (Makefile.am): Likewise.
74254         * modules/hard-locale (Makefile.am): Likewise.
74255         * modules/hash (Makefile.am): Likewise.
74256         * modules/hmac-md5 (Makefile.am): Likewise.
74257         * modules/hmac-sha1 (Makefile.am): Likewise.
74258         * modules/human (Makefile.am): Likewise.
74259         * modules/idcache (Makefile.am): Likewise.
74260         * modules/imaxabs (Makefile.am): Likewise.
74261         * modules/imaxdiv (Makefile.am): Likewise.
74262         * modules/inet_ntop (Makefile.am): Likewise.
74263         * modules/inet_pton (Makefile.am): Likewise.
74264         * modules/intprops (Makefile.am): Likewise.
74265         * modules/inttostr (Makefile.am): Likewise.
74266         * modules/inttypes (Makefile.am): Likewise.
74267         * modules/isapipe (Makefile.am): Likewise.
74268         * modules/javaversion (Makefile.am): Likewise.
74269         * modules/lchmod (Makefile.am): Likewise.
74270         * modules/lchown (Makefile.am): Likewise.
74271         * modules/localcharset (Makefile.am): Likewise.
74272         * modules/long-options (Makefile.am): Likewise.
74273         * modules/lstat (Makefile.am): Likewise.
74274         * modules/malloc (Makefile.am): Likewise.
74275         * modules/mathl (Makefile.am): Likewise.
74276         * modules/mbchar (Makefile.am): Likewise.
74277         * modules/md2 (Makefile.am): Likewise.
74278         * modules/md4 (Makefile.am): Likewise.
74279         * modules/md5 (Makefile.am): Likewise.
74280         * modules/memcasecmp (Makefile.am): Likewise.
74281         * modules/memchr (Makefile.am): Likewise.
74282         * modules/memcmp (Makefile.am): Likewise.
74283         * modules/memcoll (Makefile.am): Likewise.
74284         * modules/memcpy (Makefile.am): Likewise.
74285         * modules/memmem (Makefile.am): Likewise.
74286         * modules/memmove (Makefile.am): Likewise.
74287         * modules/mempcpy (Makefile.am): Likewise.
74288         * modules/memrchr (Makefile.am): Likewise.
74289         * modules/memset (Makefile.am): Likewise.
74290         * modules/memxor (Makefile.am): Likewise.
74291         * modules/mkancesdirs (Makefile.am): Likewise.
74292         * modules/mkdir-p (Makefile.am): Likewise.
74293         * modules/mkdir (Makefile.am): Likewise.
74294         * modules/mkdtemp (Makefile.am): Likewise.
74295         * modules/mkstemp (Makefile.am): Likewise.
74296         * modules/mktime (Makefile.am): Likewise.
74297         * modules/modechange (Makefile.am): Likewise.
74298         * modules/mountlist (Makefile.am): Likewise.
74299         * modules/nanosleep (Makefile.am): Likewise.
74300         * modules/obstack (Makefile.am): Likewise.
74301         * modules/openat (Makefile.am): Likewise.
74302         * modules/pagealign_alloc (Makefile.am): Likewise.
74303         * modules/pathmax (Makefile.am): Likewise.
74304         * modules/physmem (Makefile.am): Likewise.
74305         * modules/poll (Makefile.am): Likewise.
74306         * modules/posixtm (Makefile.am): Likewise.
74307         * modules/posixver (Makefile.am): Likewise.
74308         * modules/putenv (Makefile.am): Likewise.
74309         * modules/quote (Makefile.am): Likewise.
74310         * modules/quotearg (Makefile.am): Likewise.
74311         * modules/raise (Makefile.am): Likewise.
74312         * modules/read-file (Makefile.am): Likewise.
74313         * modules/readline (Makefile.am): Likewise.
74314         * modules/readlink (Makefile.am): Likewise.
74315         * modules/readtokens (Makefile.am): Likewise.
74316         * modules/readutmp (Makefile.am): Likewise.
74317         * modules/realloc (Makefile.am): Likewise.
74318         * modules/regex (Makefile.am): Likewise.
74319         * modules/rename-dest-slash (Makefile.am): Likewise.
74320         * modules/rename (Makefile.am): Likewise.
74321         * modules/rijndael (Makefile.am): Likewise.
74322         * modules/rmdir (Makefile.am): Likewise.
74323         * modules/rpmatch (Makefile.am): Likewise.
74324         * modules/safe-read (Makefile.am): Likewise.
74325         * modules/safe-write (Makefile.am): Likewise.
74326         * modules/same-inode (Makefile.am): Likewise.
74327         * modules/same (Makefile.am): Likewise.
74328         * modules/save-cwd (Makefile.am): Likewise.
74329         * modules/savedir (Makefile.am): Likewise.
74330         * modules/setenv (Makefile.am): Likewise.
74331         * modules/settime (Makefile.am): Likewise.
74332         * modules/sha1 (Makefile.am): Likewise.
74333         * modules/sig2str (Makefile.am): Likewise.
74334         * modules/snprintf (Makefile.am): Likewise.
74335         * modules/stat-macros (Makefile.am): Likewise.
74336         * modules/stat-time (Makefile.am): Likewise.
74337         * modules/stdbool (Makefile.am): Likewise.
74338         * modules/stdint (Makefile.am): Likewise.
74339         * modules/stdlib-safer (Makefile.am): Likewise.
74340         * modules/stpcpy (Makefile.am): Likewise.
74341         * modules/stpncpy (Makefile.am): Likewise.
74342         * modules/strcase (Makefile.am): Likewise.
74343         * modules/strcasestr (Makefile.am): Likewise.
74344         * modules/strchrnul (Makefile.am): Likewise.
74345         * modules/strcspn (Makefile.am): Likewise.
74346         * modules/strdup (Makefile.am): Likewise.
74347         * modules/strerror (Makefile.am): Likewise.
74348         * modules/strftime (Makefile.am): Likewise.
74349         * modules/strndup (Makefile.am): Likewise.
74350         * modules/strnlen (Makefile.am): Likewise.
74351         * modules/strpbrk (Makefile.am): Likewise.
74352         * modules/strsep (Makefile.am): Likewise.
74353         * modules/strstr (Makefile.am): Likewise.
74354         * modules/strtod (Makefile.am): Likewise.
74355         * modules/strtoimax (Makefile.am): Likewise.
74356         * modules/strtok_r (Makefile.am): Likewise.
74357         * modules/strtol (Makefile.am): Likewise.
74358         * modules/strtoll (Makefile.am): Likewise.
74359         * modules/strtoul (Makefile.am): Likewise.
74360         * modules/strtoull (Makefile.am): Likewise.
74361         * modules/strtoumax (Makefile.am): Likewise.
74362         * modules/strverscmp (Makefile.am): Likewise.
74363         * modules/sys_socket (Makefile.am): Likewise.
74364         * modules/sys_stat (Makefile.am): Likewise.
74365         * modules/sysexits (Makefile.am): Likewise.
74366         * modules/time_r (Makefile.am): Likewise.
74367         * modules/timegm (Makefile.am): Likewise.
74368         * modules/timespec (Makefile.am): Likewise.
74369         * modules/tmpfile-safer (Makefile.am): Likewise.
74370         * modules/trim (Makefile.am): Likewise.
74371         * modules/unistd-safer (Makefile.am): Likewise.
74372         * modules/unlinkdir (Makefile.am): Likewise.
74373         * modules/unlocked-io (Makefile.am): Likewise.
74374         * modules/userspec (Makefile.am): Likewise.
74375         * modules/utime (Makefile.am): Likewise.
74376         * modules/utimecmp (Makefile.am): Likewise.
74377         * modules/utimens (Makefile.am): Likewise.
74378         * modules/vasnprintf (Makefile.am): Likewise.
74379         * modules/vasprintf (Makefile.am): Likewise.
74380         * modules/vsnprintf (Makefile.am): Likewise.
74381         * modules/xalloc (Makefile.am): Likewise.
74382         * modules/xgetcwd (Makefile.am): Likewise.
74383         * modules/xnanosleep (Makefile.am): Likewise.
74384         * modules/xreadlink (Makefile.am): Likewise.
74385         * modules/xstrtod (Makefile.am): Likewise.
74386         * modules/xstrtol (Makefile.am): Likewise.
74387         * modules/xstrtold (Makefile.am): Likewise.
74388         * modules/yesno (Makefile.am): Likewise.
74389         * modules/getdate (Makefile.am): Don't add getdate.h to EXTRA_DIST.
74390
74391 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74392
74393         * modules/error (Makefile.am): Distribute files through
74394         EXTRA_DIST, not lib_SOURCES.
74395
74396 2006-10-12  Eric Blake  <ebb9@byu.net>
74397
74398         * modules/error (Makefile.am): Distribute files in /lib.
74399         * modules/obstack (Makefile.am): Likewise.
74400
74401 2006-10-12  Bruno Haible  <bruno@clisp.org>
74402
74403         * modules/acl (Makefile.am): Distribute all files in lib/ through
74404         EXTRA_DIST.
74405         * modules/arcfour (Makefile.am): Likewise.
74406         * modules/arctwo (Makefile.am): Likewise.
74407         * modules/argmatch (Makefile.am): Likewise.
74408         * modules/argz (Makefile.am): Likewise.
74409         * modules/atexit (Makefile.am): Likewise.
74410         * modules/backupfile (Makefile.am): Likewise.
74411         * modules/c-strtod (Makefile.am): Likewise.
74412         * modules/c-strtold (Makefile.am): Likewise.
74413         * modules/calloc (Makefile.am): Likewise.
74414         * modules/canon-host (Makefile.am): Likewise.
74415         * modules/canonicalize (Makefile.am): Likewise.
74416         * modules/chdir-long (Makefile.am): Likewise.
74417         * modules/chdir-safer (Makefile.am): Likewise.
74418         * modules/check-version (Makefile.am): Likewise.
74419         * modules/chown (Makefile.am): Likewise.
74420         * modules/cloexec (Makefile.am): Likewise.
74421         * modules/close-stream (Makefile.am): Likewise.
74422         * modules/closeout (Makefile.am): Likewise.
74423         * modules/crc (Makefile.am): Likewise.
74424         * modules/cycle-check (Makefile.am): Likewise.
74425         * modules/des (Makefile.am): Likewise.
74426         * modules/dirfd (Makefile.am): Likewise.
74427         * modules/dirname (Makefile.am): Likewise.
74428         * modules/dup2 (Makefile.am): Likewise.
74429         * modules/euidaccess (Makefile.am): Likewise.
74430         * modules/exclude (Makefile.am): Likewise.
74431         * modules/exitfail (Makefile.am): Likewise.
74432         * modules/fcntl-safer (Makefile.am): Likewise.
74433         * modules/file-type (Makefile.am): Likewise.
74434         * modules/fileblocks (Makefile.am): Likewise.
74435         * modules/filemode (Makefile.am): Likewise.
74436         * modules/filenamecat (Makefile.am): Likewise.
74437         * modules/fnmatch (Makefile.am): Likewise.
74438         * modules/fopen-safer (Makefile.am): Likewise.
74439         * modules/fpending (Makefile.am): Likewise.
74440         * modules/fprintftime (Makefile.am): Likewise.
74441         * modules/free (Makefile.am): Likewise.
74442         * modules/fsusage (Makefile.am): Likewise.
74443         * modules/ftruncate (Makefile.am): Likewise.
74444         * modules/fts (Makefile.am): Likewise.
74445         * modules/gc (Makefile.am): Likewise.
74446         * modules/gc-pbkdf2-sha1 (Makefile.am): Likewise.
74447         * modules/getaddrinfo (Makefile.am): Likewise.
74448         * modules/getcwd (Makefile.am): Likewise.
74449         * modules/getdelim (Makefile.am): Likewise.
74450         * modules/getdomainname (Makefile.am): Likewise.
74451         * modules/getgroups (Makefile.am): Likewise.
74452         * modules/gethostname (Makefile.am): Likewise.
74453         * modules/gethrxtime (Makefile.am): Likewise.
74454         * modules/getline (Makefile.am): Likewise.
74455         * modules/getloadavg (Makefile.am): Likewise.
74456         * modules/getlogin_r (Makefile.am): Likewise.
74457         * modules/getopt (Makefile.am): Likewise.
74458         * modules/getpass (Makefile.am): Likewise.
74459         * modules/getpass-gnu (Makefile.am): Likewise.
74460         * modules/getsubopt (Makefile.am): Likewise.
74461         * modules/gettime (Makefile.am): Likewise.
74462         * modules/gettimeofday (Makefile.am): Likewise.
74463         * modules/getugroups (Makefile.am): Likewise.
74464         * modules/getusershell (Makefile.am): Likewise.
74465         * modules/glob (Makefile.am): Likewise.
74466         * modules/group-member (Makefile.am): Likewise.
74467         * modules/hard-locale (Makefile.am): Likewise.
74468         * modules/hash (Makefile.am): Likewise.
74469         * modules/hmac-md5 (Makefile.am): Likewise.
74470         * modules/hmac-sha1 (Makefile.am): Likewise.
74471         * modules/human (Makefile.am): Likewise.
74472         * modules/idcache (Makefile.am): Likewise.
74473         * modules/imaxabs (Makefile.am): Likewise.
74474         * modules/imaxdiv (Makefile.am): Likewise.
74475         * modules/inet_ntop (Makefile.am): Likewise.
74476         * modules/inet_pton (Makefile.am): Likewise.
74477         * modules/inttostr (Makefile.am): Likewise.
74478         * modules/isapipe (Makefile.am): Likewise.
74479         * modules/lchown (Makefile.am): Likewise.
74480         * modules/long-options (Makefile.am): Likewise.
74481         * modules/lstat (Makefile.am): Likewise.
74482         * modules/malloc (Makefile.am): Likewise.
74483         * modules/mathl (Makefile.am): Likewise.
74484         * modules/mbchar (Makefile.am): Likewise.
74485         * modules/md2 (Makefile.am): Likewise.
74486         * modules/md4 (Makefile.am): Likewise.
74487         * modules/md5 (Makefile.am): Likewise.
74488         * modules/memcasecmp (Makefile.am): Likewise.
74489         * modules/memchr (Makefile.am): Likewise.
74490         * modules/memcmp (Makefile.am): Likewise.
74491         * modules/memcoll (Makefile.am): Likewise.
74492         * modules/memcpy (Makefile.am): Likewise.
74493         * modules/memmem (Makefile.am): Likewise.
74494         * modules/memmove (Makefile.am): Likewise.
74495         * modules/mempcpy (Makefile.am): Likewise.
74496         * modules/memrchr (Makefile.am): Likewise.
74497         * modules/memset (Makefile.am): Likewise.
74498         * modules/memxor (Makefile.am): Likewise.
74499         * modules/mkancesdirs (Makefile.am): Likewise.
74500         * modules/mkdir (Makefile.am): Likewise.
74501         * modules/mkdir-p (Makefile.am): Likewise.
74502         * modules/mkdtemp (Makefile.am): Likewise.
74503         * modules/mkstemp (Makefile.am): Likewise.
74504         * modules/mktime (Makefile.am): Likewise.
74505         * modules/modechange (Makefile.am): Likewise.
74506         * modules/mountlist (Makefile.am): Likewise.
74507         * modules/nanosleep (Makefile.am): Likewise.
74508         * modules/openat (Makefile.am): Likewise.
74509         * modules/pagealign_alloc (Makefile.am): Likewise.
74510         * modules/physmem (Makefile.am): Likewise.
74511         * modules/poll (Makefile.am): Likewise.
74512         * modules/posixtm (Makefile.am): Likewise.
74513         * modules/posixver (Makefile.am): Likewise.
74514         * modules/putenv (Makefile.am): Likewise.
74515         * modules/quote (Makefile.am): Likewise.
74516         * modules/quotearg (Makefile.am): Likewise.
74517         * modules/raise (Makefile.am): Likewise.
74518         * modules/read-file (Makefile.am): Likewise.
74519         * modules/readline (Makefile.am): Likewise.
74520         * modules/readlink (Makefile.am): Likewise.
74521         * modules/readtokens (Makefile.am): Likewise.
74522         * modules/readutmp (Makefile.am): Likewise.
74523         * modules/realloc (Makefile.am): Likewise.
74524         * modules/regex (Makefile.am): Likewise.
74525         * modules/rename (Makefile.am): Likewise.
74526         * modules/rename-dest-slash (Makefile.am): Likewise.
74527         * modules/rijndael (Makefile.am): Likewise.
74528         * modules/rmdir (Makefile.am): Likewise.
74529         * modules/rpmatch (Makefile.am): Likewise.
74530         * modules/safe-read (Makefile.am): Likewise.
74531         * modules/safe-write (Makefile.am): Likewise.
74532         * modules/same (Makefile.am): Likewise.
74533         * modules/save-cwd (Makefile.am): Likewise.
74534         * modules/savedir (Makefile.am): Likewise.
74535         * modules/setenv (Makefile.am): Likewise.
74536         * modules/settime (Makefile.am): Likewise.
74537         * modules/sha1 (Makefile.am): Likewise.
74538         * modules/sig2str (Makefile.am): Likewise.
74539         * modules/snprintf (Makefile.am): Likewise.
74540         * modules/stdlib-safer (Makefile.am): Likewise.
74541         * modules/stpcpy (Makefile.am): Likewise.
74542         * modules/stpncpy (Makefile.am): Likewise.
74543         * modules/strcase (Makefile.am): Likewise.
74544         * modules/strcasestr (Makefile.am): Likewise.
74545         * modules/strchrnul (Makefile.am): Likewise.
74546         * modules/strcspn (Makefile.am): Likewise.
74547         * modules/strdup (Makefile.am): Likewise.
74548         * modules/strerror (Makefile.am): Likewise.
74549         * modules/strftime (Makefile.am): Likewise.
74550         * modules/strndup (Makefile.am): Likewise.
74551         * modules/strnlen (Makefile.am): Likewise.
74552         * modules/strpbrk (Makefile.am): Likewise.
74553         * modules/strsep (Makefile.am): Likewise.
74554         * modules/strstr (Makefile.am): Likewise.
74555         * modules/strtod (Makefile.am): Likewise.
74556         * modules/strtoimax (Makefile.am): Likewise.
74557         * modules/strtok_r (Makefile.am): Likewise.
74558         * modules/strtol (Makefile.am): Likewise.
74559         * modules/strtoll (Makefile.am): Likewise.
74560         * modules/strtoul (Makefile.am): Likewise.
74561         * modules/strtoull (Makefile.am): Likewise.
74562         * modules/strtoumax (Makefile.am): Likewise.
74563         * modules/strverscmp (Makefile.am): Likewise.
74564         * modules/time_r (Makefile.am): Likewise.
74565         * modules/timegm (Makefile.am): Likewise.
74566         * modules/tmpfile-safer (Makefile.am): Likewise.
74567         * modules/unistd-safer (Makefile.am): Likewise.
74568         * modules/unlinkdir (Makefile.am): Likewise.
74569         * modules/userspec (Makefile.am): Likewise.
74570         * modules/utime (Makefile.am): Likewise.
74571         * modules/utimecmp (Makefile.am): Likewise.
74572         * modules/utimens (Makefile.am): Likewise.
74573         * modules/vasnprintf (Makefile.am): Likewise.
74574         * modules/vasprintf (Makefile.am): Likewise.
74575         * modules/vsnprintf (Makefile.am): Likewise.
74576         * modules/xalloc (Makefile.am): Likewise.
74577         * modules/xgetcwd (Makefile.am): Likewise.
74578         * modules/xnanosleep (Makefile.am): Likewise.
74579         * modules/xreadlink (Makefile.am): Likewise.
74580         * modules/xstrtod (Makefile.am): Likewise.
74581         * modules/xstrtol (Makefile.am): Likewise.
74582         * modules/xstrtold (Makefile.am): Likewise.
74583         * modules/yesno (Makefile.am): Likewise.
74584
74585 2006-10-12  Jim Meyering  <jim@meyering.net>
74586
74587         * m4/getloadavg.m4: Revert the change below.
74588
74589         * m4/getloadavg.m4 (gl_GETLOADAVG): Test for the existence of
74590         lib/getloadavg.c using "ls -L", not "test -f".  The latter would
74591         fail with a symlink, which is what coreutils' ./bootstrap now
74592         creates by default.
74593
74594 2006-10-12  Bruno Haible  <bruno@clisp.org>
74595
74596         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): Don't define for MSVC or
74597         mingw.
74598         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX): Handle
74599         MSVC and mingw explicitly.
74600
74601 2006-10-11  Simon Josefsson  <jas@extundo.com>
74602             Bruno Haible  <bruno@clisp.org>
74603
74604         Add support for multiple gnulib-tool invocations in the scope of a
74605         single configure.ac file.
74606         * gnulib-tool (func_emit_lib_Makefile_am): In the _LIBADD variable,
74607         use a private [LT]LIBOBJS variant. Define a _DEPENDENCIES variable
74608         with the same contents as the _LIBADD variable.
74609         (func_emit_initmacro_start, func_emit_initmacro_end,
74610         func_emit_initmacro_done): New functions.
74611         (func_import, func_create_testdir): Invoke them. Allow the identifiers
74612         gl_LIBOBJS and gl_LTLIBOBJS.
74613
74614 2006-10-11  Bruno Haible  <bruno@clisp.org>
74615
74616         * gnulib-tool (GETTEXTPATH, AUTOHEADER, AUTOPOINT): New variables.
74617         (func_create_testdir): Don't create po/Makefile.am, don't invoke
74618         autoreconf. Instead, invoke autopoint explicitly but move back the
74619         *.m4 files from gnulib.
74620
74621 2006-10-11  Bruno Haible  <bruno@clisp.org>
74622
74623         * gnulib-tool (func_usage): Make module names after --create-testdir
74624         optional.
74625         (func_create_testdir): If no module was specified, use nearly all
74626         modules.
74627
74628 2006-10-12  Jim Meyering  <jim@meyering.net>
74629
74630         Big performance improvement for fts-based tools that use FTS_NOSTAT.
74631         Avoid spurious inode-mismatch problems on non-POSIX file systems.
74632         Details: http://article.gmane.org/gmane.comp.lib.gnulib.bugs/7416
74633         * lib/fts_.h (FTS_DEFER_STAT): Define new flag.
74634         (FTS_OPTIONMASK): Extend the mask to reflect this addition.
74635         * lib/fts.c (DT_IS_KNOWN, DT_MUST_BE): Define.
74636         (FTS_NO_STAT_REQUIRED, FTS_STAT_REQUIRED): Define.
74637         (fts_set_stat_required): New function.
74638         (fts_open): Defer the calls to fts_stat, if possible or requested.
74639         Move the code that maps a command-line fts_info value FTS_DOT to FTS_D
74640         into fts_stat itself.
74641         (fts_read): Perform any required (deferred) fts_stat call.
74642         (fts_build): Likewise, for the directory we're about to open and read.
74643         In the readdir loop, carefully decide whether each entry will require
74644         an eventual call to fts_stat, using dirent.d_type info if available.
74645         (fts_stat): Move the test for whether to honor FTS_COMFOLLOW on
74646         a command line argument into this function.  Update all callers.
74647         Map a return value of FTS_DOT to FTS_D for a command line argument.
74648         * modules/fts (Depends-on): Add d-type.  Alphabetize.
74649         Thanks to Miklos Szeredi for his tenacity and for the initial
74650         bug report about "find" failing on a FUSE-based file system.
74651
74652         * lib/fts.c (fts_open): Use consistent indentation.
74653
74654 2006-10-12  Paul Eggert  <eggert@cs.ucla.edu>
74655
74656         * m4/extensions.m4 (AC_USE_SYSTEM_EXTENSIONS): Renamed from
74657         gl_USE_SYSTEM_EXTENSIONS, to fix a coreutils bootstrap failure
74658         reported by Jim Meyering.  All uses of cache variables renamed
74659         to match Autoconf's.
74660         (gl_USE_SYSTEM_EXTENSIONS): New macro, which simply requires
74661         the other one.
74662
74663         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH):
74664         Fix misspelling in diagnostic.
74665
74666 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74667
74668         * lib/mkdir-p.c (HAVE_FCHMOD): Define to false if not already
74669         defined.  Problem reported by Matthew Woehlke.
74670
74671         * lib/inttypes_.h (_LONG_LONG_FORMAT_PREFIX): New macro.
74672         Add support for Tandem NonStop R series.
74673         (_PRI64_PREFIX, _PRIu64_PREFIX, _SCN64_PREFIX, _SCNu64_PREFIX):
74674         Use new macro.
74675
74676         * lib/rename-dest-slash.c: Include stdbool.h but not string.h.
74677         (has_trailing_slash): Omit size arg; all callers changed.
74678         Omit 'inline', since it doesn't help performance and we'd
74679         need to configure it.
74680         Don't count //, ///, etc. as having a trailing slash.
74681         As a side effect, this removes a C99ism reported by Matthew Woehlke.
74682         (rpl_rename_dest_slash): On failure, use rename's errno rather
74683         than (in some cases) an incorrect or junk errno.
74684         Simplify code by removing need to compute length; this does
74685         cause it to make two passes instead of one over the file name,
74686         but it's worth it.
74687
74688         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Undo previous
74689         change, since Autoconf's version may no longer be appropriate now
74690         that we are using CVS Autoconf's version.  Add support for Tandem.
74691
74692 2006-10-11  Paul Eggert  <eggert@cs.ucla.edu>
74693             Bruno Haible  <bruno@clisp.org>
74694
74695         * lib/allocsa.h (sa_alignment_longlong, sa_alignment_max): Test
74696         HAVE_LONG_LONG_INT instead of HAVE_LONG_LONG.
74697         * m4/allocsa.m4 (gl_ALLOCSA): Invoke AC_TYPE_LONG_LONG_INT instead of
74698         gl_AC_TYPE_LONG_LONG.
74699
74700         * lib/printf-args.h (arg_type, argument): Test HAVE_LONG_LONG_INT
74701         instead of HAVE_LONG_LONG.
74702         * lib/printf-args.c (printf_fetchargs): Likewise.
74703         * lib/printf-parse.c (PRINTF_PARSE): Likewise.
74704         * lib/vasnprintf.c (VASNPRINTF): Likewise.
74705         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_ARGS, gl_PREREQ_PRINTF_PARSE,
74706         gl_PREREQ_VASNPRINTF): Invoke AC_TYPE_LONG_LONG_INT instead of
74707         gl_AC_TYPE_LONG_LONG.
74708
74709 2006-10-11  Bruno Haible  <bruno@clisp.org>
74710
74711         * m4/longlong.m4: Add comments.
74712         * m4/ulonglong.m4: Likewise.
74713
74714 2006-10-10  Bruno Haible  <bruno@clisp.org>
74715
74716         Make it possible to #define stpcpy, strdup to aliases.
74717         * lib/stpcpy.c (stpcpy) [!_LIBC]: Don't undefine.
74718         * lib/strdup.c (strdup) [!_LIBC]: Don't undefine.
74719
74720 2006-10-10  Bruno Haible  <bruno@clisp.org>
74721
74722         Make it possible to #define gcd to an alias.
74723         * lib/gcd.c: Include config.h.
74724
74725 2006-10-10  Bruno Haible  <bruno@clisp.org>
74726
74727         Make it possible to #define c_isascii to an alias.
74728         * lib/c-ctype.h: Don't define the macros if NO_C_CTYPE_MACROS is
74729         defined. Undefine the macros before defining them, to avoid gcc
74730         warnings.
74731         * lib/c-ctype.c: Include config.h. Don't undefine the macros; instead,
74732         define NO_C_CTYPE_MACROS early.
74733
74734 2006-10-10  Bruno Haible  <bruno@clisp.org>
74735
74736         Make it possible to #define set_program_name to an alias.
74737         * lib/progname.c: Don't undefine set_program_name; instead, undefine
74738         ENABLE_RELOCATABLE early.
74739
74740 2006-10-10  Paul Eggert  <eggert@cs.ucla.edu>
74741
74742         Port to Tandem NSK OSS, which has 64-bit signed int but at most
74743         32-bit unsigned int.  Problem reported by Matthew Woehlke in:
74744         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00062.html
74745         More generally, don't assume that 64-bit signed int is available
74746         if unsigned int is, and vice versa.
74747         * lib/inttypes_.h (_PRIu64_PREFIX, _SCNu64_PREFIX): Depend on
74748         unsigned symbols, not on their signed counterparts.
74749         * lib/stdint_.h (uint64_t, uint_least64_t, uint_fast64_t, uintmax_t):
74750         (UINT64_MAX, UINT_LEAST64_MAX, UINT_FAST64_MAX, UINTMAX_MAX):
74751         (UINT64_C, UINTMAX_C):
74752         Likewise.
74753         * lib/strtoimax.c (strtoll): Depend on signed symbols, not their
74754         unsigned counterparts.
74755         (Have_long_long, Unsigned): New macros.
74756         (Int): Renamed from INT.
74757         (strtoimax): Use the new macros.
74758         * m4/stdint.m4 (gl_STDINT_H): Require AC_TYPE_UNSIGNED_LONG_LONG_INT
74759         and substitute HAVE_UNSIGNED_LONG_LONG_INT.
74760         * modules/inttypes (inttypes.h): Substitute
74761         HAVE_UNSIGNED_LONG_LONG_INT.
74762         * modules/stdint (stdint.h): Likewise.
74763         (Files): Add m4/ulonglong.m4.
74764
74765 2006-10-10  Bruno Haible  <bruno@clisp.org>
74766
74767         Fix a gcc -Wshadow warning.
74768         * lib/gl_anyhash_list2.h (hash_resize): Rename local variable 'index'
74769         to 'bucket'.
74770         * lib/gl_anylinked_list2.h (gl_linked_search_from_to,
74771         gl_linked_indexof_from_to): Likewise.
74772         * lib/gl_linkedhash_list.c (add_to_bucket, remove_from_bucket):
74773         Likewise.
74774         * lib/gl_anytreehash_list1.h (add_to_bucket, remove_from_bucket):
74775         Likewise.
74776         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Likewise.
74777         Reported by Eric Blake.
74778
74779 2006-10-09  Paul Eggert  <eggert@cs.ucla.edu>
74780
74781         * lib/filemode.h [HAVE_DECL_STRMODE]: Include unistd.h too,
74782         for NetBSD.  Problem reported by Bruno Haible.
74783
74784 2006-10-09  Jim Meyering  <jim@meyering.net>
74785
74786         * lib/lchown.c: Include <sys/stat.h> before "stat-macros.h".
74787         Patch from Bruno Haible.
74788
74789 2006-10-09  Jim Meyering  <jim@meyering.net>
74790
74791         * lib/fts-cycle.c (leave_dir): When "leaving" a top level directory due
74792         to FTS_SKIP, don't copy the parent's uninitialized dev/ino values.
74793         Trigger with e.g., mkdir d && valgrind ./chmod u+rwx d d
74794
74795 2006-10-08  Paul Eggert  <eggert@cs.ucla.edu>
74796
74797         Don't include <config.h> twice; this doesn't work in some cases,
74798         e.g., when config.h has "#define intmax_t long long int" and
74799         we include <config.h>, <inttypes.h>, <config.h> in that order.
74800         Problem reported by Matthew Woehlke in:
74801         http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00073.html
74802         * lib/fprintftime.c: Don't include config.h or fprintftime.h.
74803         * lib/fts-cycle.c: Don't include config.h.
74804         * lib/strftime.c: Include fprintftime.h if FPRINTFTIME is defined.
74805         * lib/xstrtoimax.c: Remove copyright notice since it's short tnow.
74806         Don't include config.h or xstrtol.h.  Define STRTOL_T_MINIMUM
74807         and STRTOL_T_MAXIMUM unconditionally, since we now assume gnulib
74808         inttypes.h.
74809         * lib/xstrtoumax.c: Likewise.
74810         * lib/xstrtol.c: Include config.h and xstrtol.h after defining
74811         __strtol and the like, so that this module is more like its siblings.
74812         (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [! defined STRTOL_T_MINIMUM]:
74813         Remove; no longer needed now that we assume gnulib inttypes.h.
74814
74815 2006-10-08  Bruno Haible  <bruno@clisp.org>
74816
74817         * doc/gnulib-tool.texi: Emphasize the drawbacks of the --symlink
74818         option.
74819
74820 2006-10-07  Jim Meyering  <jim@meyering.net>
74821
74822         * modules/inttypes (inttypes.h): Revert what seems to have been
74823         an inadvertent part of today's change: use "|", not "/" in the
74824         substitution for the "/"-containing string, $(ABSOLUTE_INTTYPES_H).
74825
74826 2006-10-07  Bruno Haible  <bruno@clisp.org>
74827
74828         * modules/sublist: New file.
74829
74830 2006-10-07  Bruno Haible  <bruno@clisp.org>
74831
74832         * modules/alloca-opt (alloca.h): Add a "DO NOT EDIT" comment.
74833         * modules/argz (argz.h): Likewise.
74834         * modules/arpa_inet (arpa/inet.h): Likewise.
74835         * modules/byteswap (byteswap.h): Likewise.
74836         * modules/configmake (configmake.h): Likewise.
74837         * modules/fcntl (fcntl.h): Likewise.
74838         * modules/fnmatch (fnmatch.h): Likewise.
74839         * modules/getopt (getopt.h): Likewise.
74840         * modules/glob (glob.h): Likewise.
74841         * modules/inttypes (inttypes.h): Likewise.
74842         * modules/netinet_in (netinet/in.h): Likewise.
74843         * modules/poll (poll.h): Likewise.
74844         * modules/stdbool (stdbool.h): Likewise.
74845         * modules/stdint (stdint.h): Likewise.
74846         * modules/sys_select (sys/select.h): Likewise.
74847         * modules/sys_socket (sys/socket.h): Likewise.
74848         * modules/sys_stat (sys/stat.h): Likewise.
74849         * modules/sysexits (sysexits.h): Likewise.
74850         * modules/unistd (unistd.h): Likewise.
74851         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
74852         Add a "DO NOT EDIT" comment to the generated file.
74853         (func_import): Likewise for gnulib-comp.m4.
74854
74855 2006-10-07  Bruno Haible  <bruno@clisp.org>
74856
74857         * lib/gl_sublist.h: New file.
74858         * lib/gl_sublist.c: New file.
74859
74860 2006-10-06  Paul Eggert  <eggert@cs.ucla.edu>
74861
74862         * lib/mkancesdirs.c (mkancesdirs): Pass to MAKE_DIR both the full file
74863         name (relative to the original working directory) and the file
74864         name component (relative to the temporary working directory).  All
74865         callers changed.
74866         * lib/mkancesdirs.h (mkancesdirs): Adjust prototype to match.
74867         * lib/mkdir-p.c (make_dir_parents): Likewise.
74868         * lib/mkdir-p.h (make_dir_parents): Likewise.
74869
74870 2006-10-06  Eric Blake  <ebb9@byu.net>
74871
74872         Define several macros for use by the clean-temp module.
74873         * m4/close-stream.m4 (gl_CLOSE_STREAM): Define GNULIB_CLOSE_STREAM.
74874         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Define GNULIB_FCNTL_SAFER.
74875         * m4/stdio-safer.m4 (gl_FOPEN_SAFER): Define GNULIB_FOPEN_SAFER.
74876
74877         * lib/clean-temp.h (close_stream_temp): New declaration.
74878         * lib/clean-temp.c (includes): Pull in headers according to what
74879         other modules are in use.
74880         (close_stream_temp) [GNULIB_CLOSE_STREAM]: New function.
74881
74882 2006-10-06  Bruno Haible  <bruno@clisp.org>
74883
74884         * lib/javacomp.c (write_temp_file): Use fopen_temp, fwriteerror_temp
74885         instead of fopen, fwriteerror.
74886
74887 2006-10-06  Bruno Haible  <bruno@clisp.org>
74888
74889         * lib/clean-temp.h (cleanup_temp_file, cleanup_temp_subdir,
74890         cleanup_temp_dir_contents, cleanup_temp_dir): Change return type to
74891         int.
74892         * lib/clean-temp.c (do_unlink, do_rmdir, cleanup_temp_file,
74893         cleanup_temp_subdir, cleanup_temp_dir_contents, cleanup_temp_dir):
74894         Return an error indicator.
74895         Suggested by Eric Blake.
74896
74897 2006-10-06  Bruno Haible  <bruno@clisp.org>
74898
74899         * lib/clean-temp.c (PATH_MAX): Provide a fallback for GNU Hurd.
74900         Reported by Eric Blake.
74901
74902 2006-10-06  Bruno Haible  <bruno@clisp.org>
74903
74904         * modules/closeout (Description): Mention stderr too.
74905
74906 2006-10-06  Bruno Haible  <bruno@clisp.org>
74907         and Paul Eggert  <eggert@cs.ucla.edu>
74908
74909         * lib/closeout.c (close_stdout): Also close stderr.
74910         * lib/closeout.h: Update comment.
74911
74912 2006-10-05  Paul Eggert  <eggert@cs.ucla.edu>
74913
74914         Fix some Darwin-7.9.0 porting problems reported by Bruno Haible in
74915         <http://lists.gnu.org/archive/html/bug-coreutils/2006-10/msg00063.html>.
74916         * lib/dirchownmod.c: Include lchown.h.
74917         * lib/lchown.c: Don't include files that lchown.h now includes.
74918         Don't declare chown, since lchown.h now does that.
74919         * lib/lchown.h: Include errno.h, sys/types.h, unistd.h.
74920         (lchown): Define to rpl_chown if lchown is declared but
74921         does not exist.  Declare using a prototype if lchown is not
74922         declared.  Add a copyright notice.
74923         * lib/mkstemp.h: Include <unistd.h>.
74924         * lib/openat.c: Include lchown.h.
74925
74926         * lib/fcntl_.h (O_NOFOLLOW): Don't depend on O_NOFOLLOW_IS_INEFFECTIVE;
74927         we now test for that separately.
74928         * lib/fts.c (fts_safe_changedir): Inspect HAVE_WORKING_O_NOFOLLOW
74929         rather than O_NOFOLLOW, when testing whether it's possible to
74930         avoid a race condition reliably.
74931         * lib/savewd.c (savewd_chdir): Likewise.
74932
74933         Remove macros that are no longer needed now that stdint.h is
74934         reliable.
74935         * lib/fsusage.c (UINTMAX_MAX): Remove.
74936         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Remove.
74937         * lib/utimecmp.c (SIZE_MAX): Remove.
74938
74939         * m4/lchown.m4 (gl_FUNC_LCHOWN): Check whether lchown is declared.
74940
74941         * m4/fcntl_h.m4 (gl_FCNTL_H): Define HAVE_WORKING_O_NOFOLLOW instead
74942         of O_NOFOLLOW_IS_INEFFECTIVE.  Define HAVE_WORKING_O_NOATIME if
74943         O_NOATIME works.
74944
74945 2006-10-05  Bruno Haible  <bruno@clisp.org>
74946
74947         * lib/gl_list.h (gl_sortedlist_search_from_to,
74948         gl_sortedlist_indexof_from_to): New declarations.
74949         (gl_list_implementation): New fields sortedlist_search_from_to,
74950         sortedlist_indexof_from_to.
74951         (gl_sortedlist_search_from_to, gl_sortedlist_indexof_from_to): New
74952         inline functions.
74953         * lib/gl_list.c (gl_sortedlist_search_from_to,
74954         gl_sortedlist_indexof_from_to): New functions.
74955         * lib/gl_array_list.c (gl_array_sortedlist_indexof_from_to): New
74956         function.
74957         (gl_array_sortedlist_indexof, gl_array_sortedlist_search): Use it.
74958         (gl_array_sortedlist_search_from_to): New function.
74959         (gl_array_list_implementation): Update.
74960         * lib/gl_carray_list.c (gl_carray_sortedlist_indexof_from_to): New
74961         function.
74962         (gl_carray_sortedlist_indexof, gl_carray_sortedlist_search): Use it.
74963         (gl_carray_sortedlist_search_from_to): New function.
74964         (gl_carray_list_implementation): Update.
74965         * lib/gl_anylinked_list2.h (gl_linked_sortedlist_search_from_to,
74966         gl_linked_sortedlist_indexof_from_to): New functions.
74967         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
74968         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
74969         * lib/gl_anytree_list2.h (gl_tree_sortedlist_search_from_to,
74970         gl_tree_sortedlist_indexof_from_to): New functions.
74971         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
74972         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
74973         Update.
74974         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
74975         * lib/gl_rbtreehash_list.c (gl_avltreehash_list_implementation):
74976         Update.
74977
74978 2006-10-05  Bruno Haible  <bruno@clisp.org>
74979
74980         * lib/gl_list.h (gl_list_search_from, gl_list_search_from_to,
74981         gl_list_indexof_from, gl_list_indexof_from_to): New declarations.
74982         (struct gl_list_implementation): Add fields search_from_to,
74983         indexof_from_to. Remove fields search, indexof.
74984         (gl_list_search): Use the search_from_to method.
74985         (gl_list_search_from, gl_list_search_from_to): New functions.
74986         (gl_list_indexof): Use the indexof_from_to method.
74987         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74988         * lib/gl_list.c (gl_list_search): Use the search_from_to method.
74989         (gl_list_search_from, gl_list_search_from_to): New functions.
74990         (gl_list_indexof): Use the indexof_from_to method.
74991         (gl_list_indexof_from, gl_list_indexof_from_to): New functions.
74992         * lib/gl_array_list.c (gl_array_indexof_from_to): Renamed from
74993         gl_array_indexof. Add start_index, end_index arguments.
74994         (gl_array_search_from_to): Renamed from gl_array_search. Add
74995         start_index, end_index arguments.
74996         (gl_array_remove, gl_array_list_implementation): Update.
74997         * lib/gl_carray_list.c (gl_carray_indexof_from_to): Renamed from
74998         gl_carray_indexof. Add start_index, end_index arguments.
74999         (gl_carray_search_from_to): Renamed from gl_carray_search. Add
75000         start_index, end_index arguments.
75001         (gl_carray_remove, gl_carray_list_implementation): Update.
75002         * lib/gl_anylinked_list2.h (gl_linked_search_from_to): Renamed from
75003         gl_linked_search. Add start_index, end_index arguments.
75004         (gl_linked_indexof_from_to): Renamed from gl_linked_indexof. Add
75005         start_index, end_index arguments.
75006         (gl_linked_remove): Update.
75007         * lib/gl_linked_list.c (gl_linked_list_implementation): Update.
75008         * lib/gl_linkedhash_list.c (gl_linkedhash_list_implementation): Update.
75009         * lib/gl_anytree_list1.h (iterstack_item_t): Change type of 'rightp'
75010         field to 'size_t'.
75011         * lib/gl_anytree_list2.h (gl_tree_search_from_to): Renamed from
75012         gl_tree_search. Add start_index, end_index arguments.
75013         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
75014         start_index, end_index arguments.
75015         (gl_tree_remove): Update.
75016         * lib/gl_avltree_list.c (gl_avltree_list_implementation): Update.
75017         * lib/gl_rbtree_list.c (gl_rbtree_list_implementation): Update.
75018         * lib/gl_anytreehash_list1.h (compare_position_threshold): New
75019         function.
75020         * lib/gl_anytreehash_list2.h (gl_tree_search_from_to): Renamed from
75021         gl_tree_search. Add start_index, end_index arguments.
75022         (gl_tree_indexof_from_to): Renamed from gl_tree_indexof. Add
75023         start_index, end_index arguments.
75024         * lib/gl_avltreehash_list.c (gl_avltreehash_list_implementation):
75025         Update.
75026         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Update.
75027
75028 2006-10-05  Bruno Haible  <bruno@clisp.org>
75029
75030         * modules/fwriteerror (configure.ac): Define GNULIB_FWRITEERROR.
75031
75032         * lib/clean-temp.h (open_temp, fopen_temp, close_temp, fclose_temp,
75033         fwriteerror_temp): New declarations.
75034         * lib/clean-temp.c (uintptr_t): Provide fallback definition.
75035         (descriptors): New variable.
75036         (cleanup): First, close the descriptors.
75037         (register_fd, unregister_fd, open_temp, fopen_temp, close_temp,
75038         fclose_temp, fwriteerror_temp): New functions.
75039
75040 2006-10-04  Jim Meyering  <jim@meyering.net>
75041
75042         * lib/fts.c (fts_open): Tiny comment change.
75043
75044 2006-10-04  Bruno Haible  <bruno@clisp.org>
75045
75046         Make it possible to invoke AC_GNU_SOURCE after gl_LOCK_EARLY.
75047         * m4/lock.m4 (gl_LOCK_EARLY_BODY): New macro, extracted code from
75048         gl_LOCK_BODY.
75049         (gl_LOCK_EARLY): Require gl_LOCK_EARLY_BODY, not gl_LOCK_BODY.
75050         (gl_LOCK_BODY): Remove settings of CPPFLAGS, now done in
75051         gl_LOCK_EARLY_BODY.
75052         (gl_LOCK): Require gl_LOCK_BODY.
75053
75054 2006-10-04  Bruno Haible  <bruno@clisp.org>
75055
75056         * lib/gl_oset.h (gl_setelement_threshold_fn): New type.
75057         (gl_oset_search_atleast): New declaration.
75058         (struct gl_oset_implementation): Add field 'search_atleast'.
75059         (gl_oset_search_atleast): New inline function.
75060         * lib/gl_oset.c (gl_oset_search_atleast): New function.
75061         * lib/gl_array_oset.c (gl_array_search_atleast): New function.
75062         (gl_array_oset_implementation): Update.
75063         * lib/gl_anytree_oset.h (gl_tree_search_atleast): New function.
75064         * lib/gl_avltree_oset.c (gl_avltree_oset_implementation): Update.
75065         * lib/gl_rbtree_oset.c (gl_rbtree_oset_implementation): Update.
75066
75067 2006-10-04  Bruno Haible  <bruno@clisp.org>
75068
75069         * lib/fatal-signal.c (fatal_signals) [WOE32]: Add the SIGBREAK signal.
75070
75071 2006-10-03  Bruno Haible  <bruno@clisp.org>
75072
75073         * lib/gl_rbtreehash_list.c (gl_rbtreehash_list_implementation): Renamed
75074         from gl_avltreehash_list_implementation.
75075
75076 2006-10-03  Bruno Haible  <bruno@clisp.org>
75077
75078         * lib/gl_oset.c (gl_oset_add): Fix return type.
75079
75080 2006-10-02  Paolo Bonzini  <bonzini@gnu.org>  (tiny change)
75081
75082         * lib/quotearg.c (mbstate_t) [!HAVE_MBRTOWC]: #define to int.
75083
75084 2006-10-02  Eric Blake  <ebb9@byu.net>
75085
75086         * modules/strnlen (Depends-on): Add extensions.
75087
75088 2006-10-02  Eric Blake  <ebb9@byu.net>
75089
75090         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use autoconf's
75091         definition in 2.60+.
75092
75093 2006-10-02  Dmitry V. Levin  <ldv@altlinux.org>
75094
75095         * lib/fts.c (fts_close, fts_build, fts_palloc): Remove redundant
75096         checks.
75097
75098 2006-10-02  Bruno Haible  <bruno@clisp.org>
75099
75100         * gnulib-tool (func_emit_lib_Makefile_am): Don't add no-dependencies
75101         to the AUTOMAKE_OPTIONS.
75102         Reported by Jim Meyering.
75103
75104 2006-09-29  Paul Eggert  <eggert@cs.ucla.edu>
75105
75106         Work around bug in Solaris 10 /proc file system:
75107         /proc/self/fd/NNN/.. isn't the parent directory of
75108         the directory whose file descriptor is NNN.  This needs to
75109         be worked around at run time, not compile time, since a
75110         program might be built on Solaris 8, where things work, and
75111         run on Solaris 10.
75112         * lib/openat-priv.h (BUILD_PROC_NAME): Remove.  All callers changed
75113         to use the following interface instead:
75114         (OPENAT_BUFFER_SIZE): New macro.
75115         (openat_proc_name): New function.
75116         * lib/at-func.c (AT_FUNC_NAME): Adjust to above changes.
75117         * lib/openat.c (openat_permissive, openat_needs_fchdir, fdopendir):
75118         Likewise.
75119         * lib/openat-proc.c: New file.
75120         * modules/openat (Files): Add lib/openat-proc.c.
75121         (Depends-on): Add same-inode, stdbool.
75122         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBOBJ(openat-proc).
75123
75124 2006-09-29  Bruno Haible  <bruno@clisp.org>
75125
75126         * lib/fwriteerror.h (fwriteerror_no_ebadf): New declaration.
75127         * lib/(do_fwriteerror): Renamed from fwriteerror. Add ignore_ebadf
75128         argument. Set stdout_closed before testing for ferror, not after.
75129         (fwriteerror, fwriteerror_no_ebadf): New functions.
75130
75131 2006-09-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75132
75133         * m4/intmax.m4 (gt_TYPE_INTMAX_T): Avoid unused variables warning.
75134
75135 2006-09-28  Paolo Bonzini  <bonzini@gnu.org>
75136
75137         * lib/poll.c (rpl_poll) [__APPLE__]: Use FIONREAD instead of MSG_PEEK.
75138         * m4/poll.m4: Look for sys/ioctl.h and sys/filio.h.
75139
75140 2006-09-28  Jim Meyering  <jim@meyering.net>
75141
75142         * lib/mkdir-p.c: Include "dirchownmod.h", not "dirchownmod.c".
75143         Include <unistd.h>.
75144
75145 2006-09-28  Bruno Haible  <bruno@clisp.org>
75146
75147         * modules/avltreehash-list (Depends-on): Add stdint, remove size_max.
75148         * modules/linkedhash-list (Depends-on): Likewise.
75149         * modules/rbtreehash-list (Depends-on): Likewise.
75150
75151 2006-09-28  Bruno Haible  <bruno@clisp.org>
75152
75153         * lib/strndup.h: Simplify the redefinition of strndup.
75154         (_GL_CONCAT, _GL_XCONCAT, __STRNDUP_ID): Remove macros.
75155         * m4/strndup.m4 (gl_FUNC_STRNDUP): Don't define __STRNDUP_PREFIX.
75156
75157 2006-09-28  Bruno Haible  <bruno@clisp.org>
75158
75159         * lib/gl_avltreehash_list.c: Include <stdint.h> instead of size_max.h.
75160         * lib/gl_linkedhash_list.c: Likewise.
75161         * lib/gl_rbtreehash_list.c: Likewise.
75162
75163 2006-09-27  Paul Eggert  <eggert@cs.ucla.edu>
75164
75165         * lib/canon-host.c (canon_host_r): Work around bug in Darwin 7.9.0
75166         getaddrinfo.
75167
75168         * lib/__fpending.h: Don't include <stdio_ext.h> unless
75169         HAVE_DECL___FPENDING.  This avoids a bug with lsbcc, where
75170         it causes <stdio_ext.h> to cause a compile-time error.
75171         Problem reported by Nelson H. F. Beebe.
75172         * lib/getpass.c: Likewise, except for HAVE_DECL___FSETLOCKING instead
75173         of HAVE_DECL___PENDING.
75174
75175         * m4/fpending.m4 (gl_FUNC_FPENDING): Check for stdio_ext at most once.
75176         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for __fsetlocking's
75177         declaration.
75178
75179 2006-09-27  Jim Meyering  <jim@meyering.net>
75180
75181         This file could end up with a definition for a function
75182         named __strndup, rather than rpl_strndup on a system with
75183         incomplete weak_alias support.
75184         * lib/strndup.c (strndup): Rename from __strndup.
75185         Remove #defines that used to map __strndup to strndup.
75186         Don't use K&R prototypes.
75187         Remove LIBC-related code, since this file is not sync'd with glibc.
75188         * lib/strndup.h: Revamp, accordingly.
75189         * m4/strndup.m4: Modernize.
75190
75191 2006-09-26  Paul Eggert  <eggert@cs.ucla.edu>
75192
75193         * modules/savewd (Depends-on): Add 'raise'.
75194         * lib/savewd.c: Include <signal.h>, for 'raise'.
75195
75196 2006-09-26  Jim Meyering  <jim@meyering.net>
75197
75198         * m4/acl.m4 (AC_FUNC_ACL): Disable ACL support altogether
75199         when we detect Darwin 8.7.0's acl_get_file bug.
75200         Rearrange to perform the new (below) run-test while $LIBS
75201         contains any acl-related library.  Set USE_ACL at the end.
75202         (gl_ACL_GET_FILE): New function.
75203
75204 2006-09-26  Eric Blake  <ebb9@byu.net>
75205
75206         * lib/verror.c: Include <config.h> unconditionally.
75207
75208 2006-09-25  Paul Eggert  <eggert@cs.ucla.edu>
75209
75210         * modules/clock-time (Maintainer): Add self.
75211         * modules/getlogin_r (Depends-on): Add extensions.
75212
75213 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75214
75215         * modules/clock-time: New module.
75216         * modules/nanosleep (Depends-on): Add clock-time.
75217         * modules/gethrxtime (Depends-on): Likewise.
75218         * modules/gettime (Depends-on): Likewise.
75219         * modules/settime (Depends-on): Likewise.
75220
75221         * modules/fts-lgpl: Depend on openat.
75222         * modules/mkancesdirs: Depend on savewd.
75223         * modules/mkdir-p: Likewise.
75224
75225 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75226
75227         * m4/host-os.m4 (gl_HOST_OS): Require AC_CANONICAL_HOST.
75228
75229         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Rename cache variable from
75230         `gl_have_arbitrary_file_name_length_limit' to
75231         `gl_cv_have_arbitrary_file_name_length_limit', so that caching
75232         actually works between configure runs.
75233
75234 2006-09-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75235             Bruno Haible  <bruno@clisp.org>
75236
75237         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Include <string.h>.
75238
75239 2006-09-25  Jim Meyering  <jim@meyering.net>
75240
75241         * m4/fcntl_h.m4 (gl_FCNTL_H): Fix typo in test for failed open.
75242         This typo caused coreutils/tests/dd/misc to fail on Darwin 8.7.0.
75243
75244 2006-09-25  Eric Blake  <ebb9@byu.net>
75245
75246         * gnulib-tool (func_import, func_create_testdir): Fix typos in
75247         exec's in 2006-09-18 patch when shuffling fds.
75248
75249 2006-09-25  Bruno Haible  <bruno@clisp.org>
75250
75251         * m4/getloadavg.m4 (gl_GETLOADAVG): Fix directory in error message.
75252         Reported by Jim Meyering.
75253
75254 2006-09-24  Jim Meyering  <jim@meyering.net>
75255
75256         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Don't use '>' to
75257         compare a pointer against a literal "0".  That caused failures with
75258         at least HP-UX's hpcc.
75259
75260 2006-09-22  Simon Josefsson  <jas@extundo.com>
75261
75262         * modules/gc-sha1:
75263         * modules/gc-md4:
75264         * modules/gc-hmac-sha1:
75265         * modules/gc-hmac-md5:
75266         * modules/gc-des:
75267         * modules/gc-arcfour: Distribute more files.
75268
75269 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75270
75271         * lib/gl_anylinked_list2.h [lint] (gl_linked_iterator)
75272         (gl_linked_iterator_from_to): Initialize struct completely.
75273         * lib/gl_anytree_list2.h [lint] (gl_tree_iterator): Likewise.
75274         (gl_tree_iterator_from_to): Likewise
75275         * lib/gl_anytree_oset.h [lint] (gl_tree_iterator): Likewise.
75276         * lib/gl_array_list.c [lint] (gl_array_iterator)
75277         (gl_array_iterator_from_to): Likewise.
75278         * lib/gl_array_oset.c [lint] (gl_array_iterator): Likewise.
75279         * lib/gl_carray_list.c [lint] (gl_carray_iterator)
75280         (gl_carray_iterator_from_to): Likewise.
75281
75282         * lib/gc-gnulib.c [GC_USE_HMAC_SHA1]: include hmac.h for hmac_sha1.
75283         * lib/md4.c (md4_process_block): Remove unused variable.
75284         * lib/rijndael-api-fst.c (rijndaelBlockDecrypt): GCC suggests
75285         parentheses for clarity.
75286
75287 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75288
75289         * modules/bison-i18n (Depends-on): Add gettext.
75290
75291 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75292
75293         * m4/fsusage.m4 (gl_STATFS_TRUNCATES): Avoid unused variable.
75294         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): Likewise.
75295         * m4/jm-winsz1.m4 (gl_HEADER_TIOCGWINSZ_IN_TERMIOS_H): Likewise;
75296         also add missing comma that caused broken test.
75297         * m4/link-follow.m4 (gl_AC_FUNC_LINK_FOLLOWS_SYMLINK): Include
75298         stdlib.h, for `abort'.
75299         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Avoid unused
75300         variables.
75301         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Check for and
75302         include unistd.h if present, for `rmdir'.
75303         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): Avoid unused
75304         variables.
75305         * m4/putenv.m4 (gl_FUNC_PUTENV): Rewrite using AC_RUN_IFELSE, and
75306         in the process include standard headers for prototypes.
75307         * m4/readutmp.m4 (gl_READUTMP): Require AC_GNU_SOURCE, so utmpxname
75308         gets declared on GNU/Linux.
75309         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Check for and include
75310         unistd.h, for `rmdir'.
75311         * m4/time_r.m4 (gl_TIME_R): Avoid unused variables.
75312
75313         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Avoid expression that is
75314         always true.
75315         * m4/strndup.m4 (gl_FUNC_STRNDUP): include stdlib.h, for `free'.
75316
75317         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Avoid gcc -Wall warnings.
75318
75319 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75320
75321         * gnulib-tool (func_version): Create output all at once.  This
75322         may help avoid triggering unnecessary SIGPIPEs, and at any
75323         rate it doesn't hurt.
75324
75325 2006-09-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75326             Bruno Haible  <bruno@clisp.org>
75327
75328         * m4/lock.m4 (gl_LOCK_BODY): Avoid unused variables warning.
75329         * m4/mbswidth.m4 (gl_MBSWIDTH): Likewise.
75330         * m4/signed.m4 (bh_C_SIGNED): Likewise.
75331
75332         * m4/vasprintf.m4 (gl_PREREQ_VASPRINTF_H): New macro.
75333         (gl_FUNC_VASPRINTF): Invoke it.
75334
75335 2006-09-22  Bruno Haible  <bruno@clisp.org>
75336
75337         * m4/getloadavg.m4 (gl_GETLOADAVG): Expect the directory of
75338         getloadavg.c as first argument.
75339
75340 2006-09-22  Bruno Haible  <bruno@clisp.org>
75341
75342         * gnulib-tool (func_import, func_create_testdir): Set gl_source_base
75343         at the beginning of the gl_INIT macro.
75344         * modules/getloadavg (configure.ac): Pass $gl_source_base to
75345         gl_GETLOADAVG.
75346
75347 2006-09-22  Bruno Haible  <bruno@clisp.org>
75348
75349         * gnulib-tool (func_create_megatestdir): Don't include the config-h
75350         module.
75351         Suggested by Ralf Wildenhues.
75352
75353 2006-09-20  Paul Eggert  <eggert@cs.ucla.edu>
75354
75355         Import this patch from libc:
75356
75357         2006-09-06  Jakub Jelinek  <jakub@redhat.com>
75358
75359         * lib/regex_internal.c (re_string_reconstruct): Handle
75360         offset < pstr->valid_raw_len && pstr->offsets_needed case.
75361         Ensure no bytes read before raw_mbs array.  Pass a saved copy of
75362         pstr->valid_len - 1 rather than pstr->valid_raw_len - 1 to
75363         re_string_context_at.
75364
75365         * m4/regex.m4 (gl_REGEX): Check for locale.h, since the test
75366         now requires it.
75367         (gl_PREREQ_REGEX): Don't check for locale.h any more, since
75368         gl_REGEX now does it for us.
75369         (gl_REGEX): Add test taken from
75370         http://sourceware.org/ml/libc-hacker/2006-09/msg00008.html.
75371
75372         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Require AC_SYS_LARGEFILE.
75373         Check that large offsets work.  Modernize Autoconf usages.
75374         Prefer "yes" to mean a good thing rather than a bad.
75375         Don't put "#define mkstemp" in config.h, as this might interfere
75376         with standard system headers that "#define mkstemp mkstemp64".
75377
75378         * modules/mkstemp (Depends-on): Add extensions, so that
75379         mkstemp is visible on some platforms.
75380         (Makefile.am): Add mkstemp.h to EXTRA_DIST.
75381         (Include): Change to "mkstemp.h" from <stdlib.h>.
75382         (Files): Add mkstemp.h.
75383
75384         * lib/mkstemp.h: New file, since some standard headers
75385         #define mkstemp.
75386         * lib/mkstemp.c: Revamp to put the !_LIBC code together.
75387         Include "mkstemp.h".
75388         Make the _LIBC code resemble glibc original more,
75389         e.g., use K&R style.
75390         * lib/mkstemp-safer.c: Include "mkstemp.h" instead of <stdlib.h>.
75391         (mkstemp): Remove, since mkstemp.h does this for us.
75392         * lib/stdlib--.h: Include mkstemp.h.
75393
75394         Import this patch from libc:
75395
75396         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75397
75398         * lib/tempname.c (__gen_tempname): Change attempts_min
75399         into a macro.  Use preprocessor to decide how to initialize
75400         attempts [Coverity CID 67].
75401
75402 2006-09-20  Bruno Haible  <bruno@clisp.org>
75403
75404         * lib/mkdtemp.c: Import from libc.
75405         2006-04-07  Ulrich Drepper  <drepper@redhat.com>
75406                 * sysdeps/posix/tempname.c (__gen_tempname): Change
75407                 attempts_min into a macro.  Use preprocessor to decide how to
75408                 initialize attempts [Coverity CID 67].
75409         2001-11-27  Paul Eggert  <eggert@twinsun.com>
75410                 * sysdeps/posix/tempname.c (__gen_tempname): Try at least
75411                 ATTEMPTS_MIN or TMP_MAX times, whichever is greater.
75412
75413 2006-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75414
75415         * gnulib-tool (func_exit): New function, to allow to pass the
75416         exit status portably through the trap.  Use everywhere.
75417         (--help, --version): Signal a write error.
75418         (trap): catch SIGPIPE, for write errors.
75419         Exit at the end of the trap, with the correct exit status.
75420
75421 2006-09-19  Karl Berry  <karl@gnu.org>
75422
75423         * doc/gnulib.texi: note about the license texinfo files.
75424
75425 2006-09-19  Eric Blake  <ebb9@byu.net>
75426
75427         * gnulib-tool: Avoid space-tab.
75428
75429 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75430
75431         * lib/getaddrinfo.c (getaddrinfo) [defined HAVE_IPV6]: Fix typo
75432         that prevented coreutils 6.1 from building.  Problem reported
75433         by Petter Reinholdtsen.
75434
75435 2006-09-18  Paul Eggert  <eggert@cs.ucla.edu>
75436
75437         * gnulib-tool (avoidlist): Fix typo that broke options like
75438         --avoid=lock that are used by coreutils bootstrap.
75439
75440 2006-09-18  Mark D. Baushke  <mdb@gnu.org>
75441
75442         * m4/inttypes.m4 (gl_INTTYPES_H): Quote "test" args
75443         more systematically.
75444
75445 2006-09-18  Jim Meyering  <jim@meyering.net>
75446
75447         * lib/savewd.c (savewd_restore): Don't shadow: s/status/child_status/.
75448
75449 2006-09-18  Bruno Haible  <bruno@clisp.org>
75450
75451         * modules/inttypes (Files): Remove m4/inttypes-h.m4.
75452
75453 2006-09-18  Bruno Haible  <bruno@clisp.org>
75454
75455         * m4/inttypes-h.m4 (gl_HEADER_INTTYPES_H): Remove macro.
75456         * m4/inttypes-pri.m4: Require autoconf >= 2.52.
75457         (gt_INTTYPES_PRI): Invoke AC_CHECK_HEADERS on inttypes.h. Test
75458         ac_cv_header_inttypes_h instead of gl_cv_header_inttypes_h.
75459         * m4/gettext.m4: Require autoconf >= 2.52.
75460         (gt_INTL_SUBDIR_CORE): Invoke AC_CHECK_HEADERS on inttypes.h.
75461         * m4/inttypes.m4 (gl_INTTYPES_H): Test ac_cv_header_inttypes_h instead
75462         of gl_cv_header_inttypes_h.
75463
75464 2006-09-18  Bruno Haible  <bruno@clisp.org>
75465
75466         * lib/javaversion.c: Include configmake.h.
75467
75468 2006-09-18  Bruno Haible  <bruno@clisp.org>
75469
75470         * gnulib-tool (func_import, func_create_testdir): Use exec tricks to
75471         avoid that the while loops be executed in a subshell.
75472
75473 2006-09-18  Bruno Haible  <bruno@clisp.org>
75474
75475         * MODULES.html.sh (func_module): Break long lines.
75476         Suggested by Bruce Korb <bkorb@gnu.org>.
75477
75478 2006-09-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75479
75480         Speed up by a factor of 1.12.
75481         * gnulib-tool (nl): New variable.
75482         (func_import): Rewrite include directive extraction to only read each
75483         directive once.
75484
75485 2006-09-17  Bruno Haible  <bruno@clisp.org>
75486
75487         * modules/javaversion (Makefile.am): Remove DEFS setting.
75488         (Depends-on): Add configmake, for PKGDATADIR definition.
75489
75490 2006-09-17  Bruno Haible  <bruno@clisp.org>
75491
75492         * gnulib-tool (func_create_testdir): Rewrite all files at once.
75493
75494 2006-09-17  Bruno Haible  <bruno@clisp.org>
75495
75496         * gnulib-tool (func_append): New function, stolen from libtool.m4.
75497         (func_modules_transitive_closure, func_modules_add_dummy,
75498         func_modules_to_filelist, func_import, func_create_testdir,
75499         func_create_megatestdir, ...): Use it wherever possible.
75500         Suggested by Ralf Wildenhues.
75501
75502 2006-09-16  Karl Berry  <karl@gnu.org>
75503
75504         * doc/fdl.texi (ADDENDUM): switch to @heading from @appendixsubsec,
75505         to avoid sectioning errors.
75506         * doc/lgpl.texi, gpl.texi (Copying): downcase @unnumbered title.
75507         [ifinfo]: blank line after @center-ed titles.
75508         * doc/lgpl.texi (Library Copying): Rename main node to GNU LGPL.
75509         Spell FSF address consistently with others.
75510         (These changes approved by rms.)
75511
75512 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75513
75514         Speed up by a factor of 1.61.
75515         * gnulib-tool (func_modules_transitive_closure): Rewrite to not check
75516         already checked module names again.
75517
75518 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75519
75520         Speed up by a factor of 1.13.
75521         * gnulib-tool (func_import): Rewrite all old_files at once; likewise
75522         for new_files, and the input to func_add_or_update.
75523
75524 2006-09-15  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75525
75526         * gnulib-tool (func_all_modules, func_modules_to_filelist, func_import,
75527         func_create_testdir, ...): Change 'sort | uniq' to 'sort -u'.
75528
75529 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75530
75531         * modules/mkancesdirs (Depends-on): Add fcntl.
75532         * modules/savewd: New file.
75533         * MODULES.html.sh (File system functions): Add savewd.
75534
75535         * modules/configmake (Makefile.am): Add support for the
75536         Automake-supplied PKGLIBDIR, PKGINCLUDEDIR, PKGDATADIR.
75537
75538 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75539
75540         * m4/savewd.m4: New file.
75541
75542 2006-09-15  Paul Eggert  <eggert@cs.ucla.edu>
75543
75544         * lib/dirchownmod.c: Don't include fcntl.h; no longer needed.
75545         (dirchownmod): New arg FD.  All callers changed.
75546         Use FD rather than opening the directory ourself, as opening is
75547         now the caller's responsibility.
75548         * lib/dirchownmod.h: Likewise.
75549         * lib/mkancesdirs.c: Include <sys/types.h>, for portability to older
75550         hosts that require <sys/types.h> before <sys/stat.h>.  Include
75551         fcntl.h, savewd.h, and unistd.h, not dirname.h and stat-macros.h.
75552         (test_dir): Remove.
75553         (mkancesdirs): Return length of prefix of FILE that has already
75554         been made, or -2 if there is a child doing the work.  Redo
75555         algorithm so that it is O(N) rather than O(N**2).  Optimize away
75556         ".", and treat ".." specially since it might stray back into
75557         already-created areas.  Use a subprocess if necessary.  New arg
75558         WD; all users changed.  MAKE_DIR function should now return 1
75559         if it creates a directory that is not readable.  Return -2 if
75560         a child process is spun off.
75561         * lib/mkancesdirs.h: Include <stddef.h>, for ptrdiff_t.
75562         Adjust signature to match code.
75563         * lib/mkdir-p.c: Include dirname.h, for IS_ABSOLUTE_FILE_NAME.
75564         (make_dir_parents): Use a subprocess if necessary.  New arg WD;
75565         all users changed.
75566         * lib/savewd.c, lib/savewd.h: New files.
75567
75568 2006-09-15  Jim Meyering  <jim@meyering.net>
75569
75570         * modules/rename-dest-slash: New module.
75571         * MODULES.html.sh (posix_compat): Add it here.
75572
75573         * modules/rename: Reflect vb_FUNC_RENAME -> gl_FUNC_RENAME change.
75574
75575 2006-09-15  Jim Meyering  <jim@meyering.net>
75576
75577         * m4/rename-dest-slash.m4 (gl_FUNC_RENAME_TRAILING_DEST_SLASH): New
75578         file.
75579
75580         * m4/rename.m4 (gl_FUNC_RENAME): Rename from vb_FUNC_RENAME.
75581
75582 2006-09-15  Jim Meyering  <jim@meyering.net>
75583
75584         * lib/rename-dest-slash.c (has_trailing_slash): Use
75585         FILE_SYSTEM_PREFIX_LEN, for non-POSIX systems.
75586         (rpl_rename_dest_slash): Perform the cheaper trailing slash
75587         test before testing whether SRC is a directory.
75588         Suggestions from Bruno Haible.
75589
75590         Avoid a warning about an unused variable.
75591         * lib/regex_internal.c (re_dfa_add_node): Move declaration of "type"
75592         into the #ifdef block where it's used.
75593
75594         * lib/rename-dest-slash.c: New file.
75595
75596 2006-09-14  Bruno Haible  <bruno@clisp.org>
75597
75598         * lib/allocsa.c: Include <config.h> unconditionally.
75599         * lib/asnprintf.c: Likewise.
75600         * lib/asprintf.c: Likewise.
75601         * lib/c-strcasecmp.c: Likewise.
75602         * lib/c-strcasestr.c: Likewise.
75603         * lib/c-strncasecmp.c: Likewise.
75604         * lib/c-strstr.c: Likewise.
75605         * lib/classpath.c: Likewise.
75606         * lib/clean-temp.c: Likewise.
75607         * lib/concatpath.c: Likewise.
75608         * lib/copy-file.c: Likewise.
75609         * lib/csharpcomp.c: Likewise.
75610         * lib/csharpexec.c: Likewise.
75611         * lib/execute.c: Likewise.
75612         * lib/fatal-signal.c: Likewise.
75613         * lib/findprog.c: Likewise.
75614         * lib/fwriteerror.c: Likewise.
75615         * lib/gl_array_list.c: Likewise.
75616         * lib/gl_array_oset.c: Likewise.
75617         * lib/gl_avltree_list.c: Likewise.
75618         * lib/gl_avltree_oset.c: Likewise.
75619         * lib/gl_avltreehash_list.c: Likewise.
75620         * lib/gl_carray_list.c: Likewise.
75621         * lib/gl_linked_list.c: Likewise.
75622         * lib/gl_linkedhash_list.c: Likewise.
75623         * lib/gl_list.c: Likewise.
75624         * lib/gl_oset.c: Likewise.
75625         * lib/gl_rbtree_list.c: Likewise.
75626         * lib/gl_rbtree_oset.c: Likewise.
75627         * lib/gl_rbtreehash_list.c: Likewise.
75628         * lib/imaxabs.c: Likewise.
75629         * lib/imaxdiv.c: Likewise.
75630         * lib/javacomp.c: Likewise.
75631         * lib/javaexec.c: Likewise.
75632         * lib/javaversion.c: Likewise.
75633         * lib/linebreak.c: Likewise.
75634         * lib/localcharset.c: Likewise.
75635         * lib/lock.c: Likewise.
75636         * lib/mbchar.c: Likewise.
75637         * lib/mbswidth.c: Likewise.
75638         * lib/mkdtemp.c: Likewise.
75639         * lib/pipe.c: Likewise.
75640         * lib/printf-args.c: Likewise.
75641         * lib/printf-parse.c: Likewise.
75642         * lib/progname.c: Likewise.
75643         * lib/progreloc.c: Likewise.
75644         * lib/readlink.c: Likewise.
75645         * lib/sh-quote.c: Likewise.
75646         * lib/stpcpy.c: Likewise.
75647         * lib/stpncpy.c: Likewise.
75648         * lib/strcasecmp.c: Likewise.
75649         * lib/strcasestr.c: Likewise.
75650         * lib/strcspn.c: Likewise.
75651         * lib/striconv.c: Likewise.
75652         * lib/strncasecmp.c: Likewise.
75653         * lib/strnlen1.c: Likewise.
75654         * lib/strstr.c: Likewise.
75655         * lib/strtok_r.c: Likewise.
75656         * lib/tls.c: Likewise.
75657         * lib/tmpdir.c: Likewise.
75658         * lib/unicodeio.c: Likewise.
75659         * lib/unsetenv.c: Likewise.
75660         * lib/vasnprintf.c: Likewise.
75661         * lib/vasprintf.c: Likewise.
75662         * lib/wait-process.c: Likewise.
75663         * lib/xallocsa.c: Likewise.
75664         * lib/xsetenv.c: Likewise.
75665         * lib/xstriconv.c: Likewise.
75666
75667 2006-09-13  Simon Josefsson  <jas@extundo.com>
75668
75669         * m4/getdate.m4: Don't AC_LIBOBJ([getdate]), automake takes care of
75670         that internally, suggested by Ralf Wildenhues
75671         <Ralf.Wildenhues@gmx.de>.
75672
75673 2006-09-13  Simon Josefsson  <jas@extundo.com>
75674
75675         * gnulib-tool (func_emit_lib_Makefile_am): Use $(LIBOBJS), not
75676         @LIBOBJS@.
75677         Suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
75678
75679 2006-09-13  Paul Eggert  <eggert@cs.ucla.edu>
75680
75681         * lib/_fpending.c: Include <config.h> unconditionally, since we no
75682         longer worry about uses that don't define HAVE_CONFIG_H.
75683         * lib/acl.c, lib/alloca.c, lib/argmatch.c, lib/atexit.c:
75684         * lib/backupfile.c, lib/basename.c, lib/c-stack.c, lib/c-strtod.c:
75685         * lib/calloc.c,lib/ canon-host.c, lib/canonicalize.c, lib/chdir-long.c:
75686         * lib/chdir-safer.c, lib/chown.c, lib/cloexec.c, lib/close-stream.c:
75687         * lib/closeout.c, lib/creat-safer.c, lib/cycle-check.c, lib/diacrit.c:
75688         * lib/dirchownmod.c, lib/dirfd.c, lib/dirname.c, lib/dup-safer.c:
75689         * lib/dup2.c, lib/error.c, lib/euidaccess.c, lib/exclude.c:
75690         * lib/exitfail.c, lib/fchmodat.c, lib/fchown-stub.c, lib/fd-safer.c:
75691         * lib/file-type.c, lib/fileblocks.c, lib/filemode.c, lib/filenamecat.c:
75692         * lib/fnmatch.c, lib/fopen-safer.c, lib/fprintftime.c, lib/free.c:
75693         * lib/fsusage.c, lib/ftruncate.c, lib/fts-cycle.c, lib/fts.c:
75694         * lib/full-write.c, lib/gai_strerror.c, lib/getcwd.c, lib/getdate.y:
75695         * lib/getdomainname.c, lib/getgroups.c, lib/gethostname.c:
75696         * lib/gethrxtime.c, lib/getloadavg.c, lib/getlogin_r.c:
75697         * lib/getndelim2.c, lib/getnline.c, lib/getopt.c, lib/getopt1.c:
75698         * lib/getpass.c, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c:
75699         * lib/getusershell.c, lib/glob.c, lib/group-member.c:
75700         * lib/hard-locale.c, lib/hash-pjw.c, lib/hash.c, lib/human.c:
75701         * lib/idcache.c, lib/inet_ntop.c, lib/inet_pton.c, lib/inttostr.c:
75702         * lib/isdir.c, lib/lchown.c, lib/linebuffer.c, lib/long-options.c:
75703         * lib/lstat.c, lib/malloc.c, lib/md5.c, lib/memcasecmp.c, lib/memchr.c:
75704         * lib/memcmp.c, lib/memcoll.c, lib/memcpy.c, lib/memmove.c:
75705         * lib/memrchr.c, lib/mkancesdirs.c, lib/mkdir-p.c, lib/mkdir.c:
75706         * lib/mkdirat.c, lib/mkstemp-safer.c, lib/mkstemp.c, lib/modechange.c:
75707         * lib/mountlist.c, lib/nanosleep.c, lib/obstack.c, lib/open-safer.c:
75708         * lib/openat-die.c, lib/openat.c, lib/pagealign_alloc.c, lib/physmem.c:
75709         * lib/pipe-safer.c, lib/posixtm.c, lib/posixver.c, lib/putenv.c:
75710         * lib/quote.c, lib/quotearg.c, lib/raise.c, lib/readtokens.c:
75711         * lib/readtokens0.c, lib/readutmp.c, lib/realloc.c, lib/regex.c:
75712         * lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c:
75713         * lib/same.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c:
75714         * lib/settime.c, lib/sha1.c, lib/sig2str.c, lib/snprintf.c:
75715         * lib/strdup.c, lib/strerror.c, lib/strftime.c, lib/stripslash.c:
75716         * lib/strndup.c, lib/strnlen.c, lib/strpbrk.c, lib/strtod.c:
75717         * lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c:
75718         * lib/time_r.c, lib/timegm.c, lib/tmpfile-safer.c, lib/unlinkdir.c:
75719         * lib/userspec.c, lib/utime.c, lib/utimecmp.c, lib/utimens.c:
75720         * lib/version-etc-fsf.c, lib/version-etc.c, lib/xalloc-die.c:
75721         * lib/xgetcwd.c, lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c:
75722         * lib/xnanosleep.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtoimax.c:
75723         * lib/xstrtol.c, lib/xstrtoumax.c, lib/yesno.c:
75724         Likewise.
75725
75726 2006-09-13  Eric Blake  <ebb9@byu.net>
75727
75728         * lib/getopt.c: Fix typo in last commit.
75729
75730 2006-09-12  Sergey Poznyakoff  <gray@gnu.org.ua>
75731
75732         * lib/argp-help.c (argp_doc): Make sure NULL is not passed to
75733         dgettext.
75734
75735 2006-09-12  Jim Meyering  <jim@meyering.net>
75736
75737         * lib/nanosleep.c: Include <sys/types.h> before sys/select.h, to avoid
75738         compilation failure (due to use of pid_t in latter) on NetBSD 1.6.
75739         Reported by Nelson H. F. Beebe.
75740
75741 2006-09-10  Sergey Poznyakoff  <gray@gnu.org.ua>
75742
75743         * lib/argp-parse.c (__argp_parse) [!_LIBC]: Make sure
75744         program_invocation_name and program_invocation_short_name are
75745         initialized.
75746         * lib/argp-namefrob.h: Move declarations of program_invocation_name
75747         and program_invocation_short_name to argp.h, so they are visible
75748         to user programs.
75749         * lib/argp.h: Likewise
75750
75751 2006-09-10  Bruno Haible  <bruno@clisp.org>
75752
75753         * modules/mkdtemp (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
75754         m4/inttypes_h.m4, m4/uintmax_t.m4.
75755
75756 2006-09-10  Bruno Haible  <bruno@clisp.org>
75757
75758         * m4/mkdtemp.m4 (gl_PREREQ_MKDTEMP): Don't require
75759         gl_AC_TYPE_UINTMAX_T.
75760
75761 2006-09-10  Bruno Haible  <bruno@clisp.org>
75762
75763         * lib/mkdtemp.c: Include <stdint.h> always. Don't include <inttypes.h>.
75764
75765 2006-09-09  Sergey Poznyakoff  <gray@gnu.org.ua>
75766
75767         * lib/argp.h (struct argp): Document the N_("..") "\v" N_("..")
75768         convention.  Text proposed by Bruno Haible.
75769         (struct argp_option): Document the use of N_() wrappers.
75770
75771         * lib/argp-help.c (argp_doc): Split the untranslated doc string on
75772         '\v', and translate the two parts separately, instead of feeding
75773         the whole string to gettext.  This allows to exclude
75774         '\v' from the strings visible to the translator by writing doc
75775         strings as N_("..") "\v" N_("..").
75776
75777 2006-09-09  Paul Eggert  <eggert@cs.ucla.edu>
75778
75779         * config/srclist.txt: Undo latest change; the bug was fixed.
75780
75781 2006-09-09  Bruno Haible  <bruno@clisp.org>
75782
75783         * gnulib-tool (func_emit_lib_Makefile_am): Eliminate lib_LDFLAGS
75784         assignments if building a library without libtool.
75785         (func_emit_tests_Makefile_am): Likewise. Handle lib_* variables as
75786         in func_emit_lib_Makefile_am.
75787         (func_import): When building a static library libfoo.a, arrange to
75788         define variables LIBFOO_LIBDEPS and LIBFOO_LTLIBDEPS.
75789         (func_create_testdir): Likewise.
75790         * modules/gc (configure.ac, Makefile.am): If building statically,
75791         augment gl_libdeps and gl_ltlibdeps instead of lib_LDFLAGS.
75792         * modules/iconvme (configure.ac, Makefile.am): Likewise.
75793         * modules/striconv (configure.ac, Makefile.am): Likewise.
75794         Based on a suggestion by Ralf Wildenhues.
75795
75796 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75797
75798         * m4/mktime.m4 (AC_FUNC_MKTIME): Sync from Autoconf.
75799         Check for unistd.h too, since Autoconf doesn't assume POSIX.
75800         Also:
75801
75802         2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75803         Add year_2050_test to catch glibc bug 2821
75804         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75805
75806         2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
75807         Prefer #ifdef to #if.
75808
75809         2006-04-02  Paul Eggert  <eggert@cs.ucla.edu>
75810         Return from 'main' instead of calling 'exit'.
75811
75812 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75813
75814         * lib/mktime.c (guess_time_tm): Fix bug where mktime
75815         returned the maximum time_t value rather than (time_t) -1.
75816         Problem originally reported by William Bardwell
75817         <http://sourceware.org/bugzilla/show_bug.cgi?id=2821>.
75818
75819         * lib/isapipe.h (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75820         Moved to here ...
75821         * lib/isapipe.c (HAVE_FIFO_PIPES) [!defined HAVE_FIFO_PIPES]:
75822         ... from here.
75823
75824 2006-09-08  Paul Eggert  <eggert@cs.ucla.edu>
75825
75826         * config/srclist.txt: Temporarily comment out mktime.c until glibc bug
75827         2821 is fixed.
75828
75829 2006-09-08  Jim Meyering  <jim@meyering.net>
75830
75831         Don't make generated files read-only.  That would bother too many
75832         people.  However, do retain the ability to work when targets are
75833         read-only: remove the destination and temporary files before writing
75834         them (when generated via sed or echo), or by using the -f option for
75835         both cp and mv commands.  Suggestion to use -f from Paul Eggert.
75836         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75837         * modules/byteswap, modules/configmake, modules/fcntl:
75838         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75839         * modules/localcharset, modules/netinet_in, modules/poll:
75840         * modules/stdbool, modules/stdint, modules/sys_select:
75841         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75842
75843 2006-09-08  Jim Meyering  <jim@meyering.net>
75844
75845         Avoid new build failure on FreeBSD 6.0.
75846         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Include
75847         <sys/param.h> when testing whether getmntinfo uses statvfs.  Patch by
75848         Pavel Tsekov, in <http://savannah.gnu.org/bugs/?17643>.
75849
75850 2006-09-07  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75851
75852         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't use plain echo.
75853
75854 2006-09-07  Jim Meyering  <jim@meyering.net>
75855
75856         Fix global typo in last change: use chmod u-w, not chmod u-x.
75857         Spotted by Paul Eggert and Bruce Korb.
75858         * modules/alloca-opt, modules/argz, modules/arpa_inet:
75859         * modules/byteswap, modules/configmake, modules/fcntl:
75860         * modules/fnmatch, modules/getopt, modules/glob, modules/inttypes:
75861         * modules/localcharset, modules/netinet_in, modules/poll:
75862         * modules/stdbool, modules/stdint, modules/sys_select:
75863         * modules/sys_socket, modules/sys_stat, modules/sysexits:
75864
75865 2006-09-06  Jim Meyering  <jim@meyering.net>
75866
75867         Make generated files be read-only.
75868         * modules/alloca-opt (Makefile.am): Work also when $@ is read-only.
75869         Ensure that each generated file is now read-only.
75870         * modules/argz: Likewise.
75871         * modules/arpa_inet: Likewise.
75872         * modules/byteswap: Likewise.
75873         * modules/configmake: Likewise.
75874         * modules/fcntl: Likewise.
75875         * modules/fnmatch: Likewise.
75876         * modules/getopt: Likewise.
75877         * modules/glob: Likewise.
75878         * modules/inttypes: Likewise.
75879         * modules/netinet_in: Likewise.
75880         * modules/poll: Likewise.
75881         * modules/stdbool: Likewise.
75882         * modules/stdint: Likewise.
75883         * modules/sys_select: Likewise.
75884         * modules/sys_socket: Likewise.
75885         * modules/sys_stat: Likewise.
75886         * modules/sysexits: Likewise.
75887         * modules/localcharset: Same as above, but continue using temporary
75888         file named "t-$@" (why different?) rather than the "$@-t" used
75889         everywhere else.
75890
75891         * modules/sysexits (Makefile.am): Replace literal occurrences
75892         of "sysexit.h" more readable, and more consistent, "$@".
75893
75894 2006-09-06  Bruno Haible  <bruno@clisp.org>
75895
75896         * modules/striconv: New file.
75897         * modules/xstriconv: New file.
75898         * MODULES.html.sh (Internationalization functions): Add striconv,
75899         xstriconv.
75900
75901 2006-09-06  Bruno Haible  <bruno@clisp.org>
75902
75903         * modules/gc (Makefile.am): Augment lib_LDFLAGS, not lib_LIBADD.
75904         * modules/iconvme (Makefile.am): Likewise. Also handle the case of
75905         not using libtool correctly.
75906
75907 2006-09-06  Bruno Haible  <bruno@clisp.org>
75908
75909         * lib/striconv.h: New file.
75910         * lib/striconv.c: New file, merging iconvme.c with GNU gettext's
75911         iconvstring.c.
75912         * lib/xstriconv.h: New file.
75913         * lib/xstriconv.c: New file.
75914
75915 2006-09-06  Bruno Haible  <bruno@clisp.org>
75916
75917         * gnulib-tool (func_emit_lib_Makefile_am): Initialize also
75918         lib_..._LDFLAGS.
75919
75920 2006-09-05  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
75921
75922         * lib/argz_.h: Sync from Libtool.
75923
75924         2006-09-04  George Bosilca <bosilca@cs.utk.edu>
75925                 and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
75926
75927         * lib/libltdl/argz_.h: It's __cplusplus, not _cplusplus.
75928
75929 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75930
75931         * modules/trim: New file.
75932
75933 2006-09-05  Davide Angelocola  <davide.angelocola@tiscali.it>
75934
75935         * lib/trim.h: New file.
75936         * lib/trim.c: New file.
75937
75938 2006-09-05  Bruno Haible  <bruno@clisp.org>
75939
75940         * MODULES.html.sh (String handling): Add trim.
75941
75942 2006-09-04  Karl Berry  <karl@gnu.org>
75943
75944         * config/srclist.txt (signed.m4, gettext.m4): changes not propagated
75945         until next release.
75946
75947 2006-09-03  Bruno Haible  <bruno@clisp.org>
75948
75949         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Locate mingw shared libraries
75950         correctly.
75951
75952 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75953
75954         * m4/getloadavg.m4 (gl_GETLOADAVG): Use CONFIGURING_GETLOADAVG,
75955         not gl_GETLOADAVG.  Omit unneeded semicolons.
75956         Problems reported by Ralf Wildenhues in
75957         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75958         (gl_PREREQ_GETLOADAVG): Use AC_DEFUN, not m4_define.  Put
75959         at the end, which is the usual gnulib style.
75960
75961         * m4/fstypename.m4 (gl_FSTYPENAME): Use AC_CHECK_MEMBERS instead
75962         of doing all the work ourselves.
75963         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Don't check for
75964         sys/statvfs.h since the code doesn't use HAVE_SYS_STATVFS_H.
75965
75966 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75967
75968         * lib/getloadavg.c: Use CONFIGURING_GETLOADAVG, not gl_GETLOADAVG.
75969         Problem reported by Ralf Wildenhues in
75970         <http://lists.gnu.org/archive/html/bug-gnulib/2006-09/msg00000.html>.
75971
75972         * lib/mountlist.c: All uses of HAVE_F_FSTYPENAME_IN_STATFS replaced by
75973         HAVE_STRUCT_STATFS_F_FSTYPENAME.
75974
75975 2006-09-01  Paul Eggert  <eggert@cs.ucla.edu>
75976
75977         * gnulib-tool (func_emit_lib_Makefile_am): Fix typos in
75978         yesterday's patch by changing test -n to test -z.
75979
75980 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75981
75982         * modules/getloadavg (Files): Add m4/getloadavg.m4.
75983         (configure.ac): AC_FUNC_GETLOADAVG -> gl_GETLOADAVG, as
75984         the former is now obsolescent.
75985
75986         * modules/chdir-long (Depends-on): Add fcntl.
75987
75988 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75989
75990         * m4/fnmatch.m4: Add comment that Autoconf AC_FUNC_FNMATCH is
75991         obsolescent, and programs should use gnulib instead.
75992         * m4/getloadavg.m4: New file, with contents taken from Autoconf
75993         but with prefixes changed.
75994
75995 2006-08-31  Paul Eggert  <eggert@cs.ucla.edu>
75996
75997         * lib/getloadavg.c [defined gl_GETLOADAVG]: Don't include config.h
75998         or stdbool.h, because they might not exist while configuring.
75999
76000         * lib/chdir-long.c: Include <fcntl.h>, for O_DIRECTORY.
76001         Don't include unistd.h or limits.h; not needed, since chdir-long.h
76002         does that for us.
76003         (O_DIRECTORY): Remove.
76004
76005 2006-08-31  Eric Blake  <ebb9@byu.net>
76006
76007         * gnulib-tool: Don't let emacs change spaces to TAB.
76008
76009 2006-08-31  Bruno Haible  <bruno@clisp.org>
76010
76011         * gnulib-tool: When calling func_import more than once, do it in a
76012         subshell.
76013         Reported by Eric Blake <ebb9@byu.net>.
76014
76015 2006-08-31  Bruno Haible  <bruno@clisp.org>
76016
76017         * gnulib-tool (nl): Remove variable.
76018         (sed_transform_lib_file): Use more robust test for config-h module.
76019         (func_import): Fix typo in 2006-08-25 patch.
76020
76021 2006-08-31  Bruno Haible  <bruno@clisp.org>
76022
76023         * gnulib-tool (func_emit_lib_Makefile_am): When --makefile-name was
76024         specified, augment Makefile.am variables instead of assigning them.
76025
76026 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76027
76028         Work around a bug in both the Linux and SunOS 64-bit kernels:
76029         nanosleep mishandles sleeps for longer than 2**31 seconds.
76030         Problem reported by Frank v Waveren in
76031         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
76032         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Require gl_CLOCK_TIME.
76033         Check for nanosleep bug.
76034         (LIB_NANOSLEEP): Append clock_gettime library if needed.
76035
76036 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76037
76038         Work around a bug in both the Linux and SunOS 64-bit kernels:
76039         nanosleep mishandles sleeps for longer than 2**31 seconds.
76040         Problem reported by Frank v Waveren in
76041         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00298.html>.
76042         * lib/nanosleep.c (BILLION): New constant.
76043         (getnow) [HAVE_BUG_BIG_NANOSLEEP]: New functions.
76044         (rpl_nanosleep) [HAVE_BUG_BIG_NANOSLEEP]: Completely new
76045         implementation.
76046
76047 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76048
76049         * modules/nanosleep (Depends-on): Add gettime.
76050
76051 2006-08-30  Paul Eggert  <eggert@cs.ucla.edu>
76052         and Simon Josefsson  <jas@extundo.com>
76053         and Oskar Liljeblad  <oskar@osk.mine.nu>
76054
76055         * MODULES.html.sh (Support for building documentation): Add gpl, lgpl.
76056         * gnulib-tool (func_import): New license type 'unmodifiable license
76057         text'.
76058         * modules/fdl: Use it.  Longer description.
76059         * module/gpl, module/lgpl: New files.
76060
76061 2006-08-30  Jim Meyering  <jim@meyering.net>
76062
76063         * lib/isapipe.c (isapipe): Rename local s/fd/fd_pair/ to avoid
76064         shadowing the parameter.
76065
76066 2006-08-29  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76067
76068         Sync from Libtool:
76069
76070         2006-08-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
76071
76072         * lib/libltdl/argz.c: Use `#ifdef HAVE_CONFIG_H', to facilitate code
76073         sharing with gnulib.  Report by Eric Blake.
76074
76075 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76076
76077         * modules/isapipe: New file.
76078         * MODULES.html.sh (File descriptor based Input/Output): Add isapipe.
76079
76080 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76081
76082         * modules/configmake (Makefile.am): Add a comment, and omit
76083         the CONFIGMAKE_ prefix from generated macro names.  Suggested
76084         by Bruno Haible.
76085
76086 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76087
76088         * m4/isapipe.m4: New file.
76089
76090 2006-08-29  Paul Eggert  <eggert@cs.ucla.edu>
76091
76092         * lib/isapipe.c, lib/isapipe.h: New files.
76093
76094 2006-08-29  Jim Meyering  <jim@meyering.net>
76095
76096         * modules/configmake (Makefile.am): Make configmake.h depend on
76097         Makefile.  Otherwise, a stale configmake.h could hang around.
76098
76099 2006-08-29  Eric Blake  <ebb9@byu.net>
76100
76101         * lib/error.c (error_at_line, print_errno_message): Match libc, after
76102         resolution of upstream bug 3044.
76103
76104 2006-08-29  Bruno Haible  <bruno@clisp.org>
76105
76106         * modules/localcharset (Depends-on): Add configmake.
76107         (Makefile.am): Remove setting of LIBDIR through DEFS.
76108
76109 2006-08-29  Bruno Haible  <bruno@clisp.org>
76110
76111         * lib/localcharset.c: Include configmake.h in order to get LIBDIR
76112         defined.
76113
76114 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76115
76116         * modules/fcntl: New file.
76117         * modules/chdir-safer (Depends-on): Add fcntl.
76118         * modules/fts: Likewise.
76119         * modules/mkdir-p: Likewise.
76120
76121         * modules/stdint (Makefile.am): Do not substitute ABSOLUTE_INTTYPES_H.
76122         This undoes the most recent change, since we're now addressing the
76123         problem in a different way.
76124
76125         * gnulib-tool (emit_lib_Makefile_am): Don't put $makefile_name
76126         into output, since the output might be called Makefile.am even
76127         if $makefile_name is something different.
76128         (func_import): Use $makefile_am rather than
76129         ${makefile_name-Makefile.am}, to fix a bug where makefile_name was
76130         empty.
76131
76132         * modules/inttypes (Files): Add m4/inttypes-h.m4.
76133
76134 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76135
76136         * m4/inttypes.m4 (gl_INTTYPES_H): Move ABSOLUTE_INTTYPES_H code here...
76137         * m4/stdint.m4 (gl_STDINT_H): ... from here.  This undoes the most
76138         recent change to stdint.m4, since we're now addressing the problem in a
76139         different way.
76140
76141 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76142
76143         * m4/fcntl_h.m4: New file.
76144
76145 2006-08-28  Paul Eggert  <eggert@cs.ucla.edu>
76146
76147         * lib/fcntl_.h: New file.
76148         * lib/chdir-safer.c (O_DIRECTORY, O_NOFOLLOW): Remove, now that we have
76149         the fcntl module.
76150         * lib/dirchownmod.c: Likewise.
76151         * lib/fts.c: Likewise.
76152
76153         * lib/inttypes_.h [defined _GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H]:
76154         Include @ABSOLUTE_INTTYPES_H@ if available, but do nothing else.
76155         * lib/stdint_.h (_GL_JUST_INCLUDE_ABSOLUTE_INTTYPES_H): Define
76156         just before including <inttypes.h>, to avoid circular inclusion.
76157
76158 2006-08-28  Jim Meyering  <jim@meyering.net>
76159
76160         * doc/visibility.texi: Actually read and correct the grammar of the
76161         sentence affected by yesterday's change.
76162
76163 2006-08-28  Eric Blake  <ebb9@byu.net>
76164
76165         * modules/inttypes (Makefile.am): Fix sed error when inttypes.h
76166         needs wrapper.
76167
76168 2006-08-28  Eric Blake  <ebb9@byu.net>
76169
76170         * m4/inttypes.m4 (gl_INTTYPES_H): Fix missing #endif.
76171
76172 2006-08-28  Eric Blake  <ebb9@byu.net>
76173
76174         * m4/codeset.m4 (AM_LANGINFO_CODESET): Avoid compiler warning.
76175
76176 2006-08-28  Bruno Haible  <bruno@clisp.org>
76177
76178         * modules/c-strstr: New file, from GNU gettext.
76179         * MODULES.html.sh (String handling): Add c-strstr.
76180
76181 2006-08-28  Bruno Haible  <bruno@clisp.org>
76182
76183         * m4/inttypes.m4 (gl_INTTYPES_H): Don't test for the existence of SCNX*
76184         macros.
76185         Reported by Eric Blake.
76186
76187 2006-08-28  Bruno Haible  <bruno@clisp.org>
76188
76189         * lib/vasnprintf.c (EOVERFLOW): Remove definition.
76190         (VASNPRINTF): Return a string of length > INT_MAX without failing.
76191         * lib/vasprintf.c: Include errno.h, limits.h.
76192         (EOVERFLOW): New fallback definition.
76193         (vasprintf): Test here whether the string length is > INT_MAX.
76194         * lib/vsnprintf.c: Include errno.h, limits.h.
76195         (EOVERFLOW): New fallback definition.
76196         (vsnprintf): Fix bug when generated string was too long for the buffer.
76197         Test here whether the string length is > INT_MAX.
76198
76199 2006-08-28  Bruno Haible  <bruno@clisp.org>
76200
76201         * lib/inttypes_.h (SCNX*): Remove definitions.
76202         Reported by Eric Blake.
76203
76204 2006-08-28  Bruno Haible  <bruno@clisp.org>
76205
76206         * lib/c-strstr.h: New file, from GNU gettext.
76207         * lib/c-strstr.c: New file, from GNU gettext.
76208
76209 2006-08-28  Bruno Haible  <bruno@clisp.org>
76210
76211         * gnulib-tool: Reorder some statements.
76212
76213 2006-08-28  Bruno Haible  <bruno@clisp.org>
76214
76215         * gnulib-tool: New option --makefile-name.
76216         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Use
76217         $makefile_name.
76218         (func_import): Write $makefile_name to the cache file, and read it from
76219         there unless explicitly specified. Use $makefile_name as file name
76220         instead of Makefile.am. Adjust the recommendations accordingly.
76221
76222 2006-08-28  Bruno Haible  <bruno@clisp.org>
76223
76224         * gnulib-tool (func_verify_module): Check against misapplying patch.
76225
76226 2006-08-28  Bruno Haible  <bruno@clisp.org>
76227
76228         * gnulib-tool (func_relativize, func_relconcat): New functions.
76229         Give an error if --local-dir is given with --update.
76230         Remove trailing slashes from $local_gnulib_dir.
76231         (func_import): Store the relativized $local_gnulib_dir in
76232         gnulib-cache.m4, and read it from there if not specified explicitly.
76233
76234 2006-08-28  Bruno Haible  <bruno@clisp.org>
76235
76236         * gnulib-tool (func_get_tests_module): Don't assume that $gnulib_dir
76237         is the current directory. Respect also $local_gnulib_dir.
76238
76239 2006-08-28  Bruno Haible  <bruno@clisp.org>
76240             Simon Josefsson  <jas@extundo.com>
76241
76242         BeOS portability.
76243         * lib/getaddrinfo.c (PF_INET, PF_UNSPEC): New macros.
76244
76245 2006-08-27  Jim Meyering  <jim@meyering.net>
76246
76247         * doc/visibility.texi: Remove duplicate word: "pointer".
76248
76249 2006-08-26  Bruno Haible  <bruno@clisp.org>
76250
76251         * modules/inttypes (Files): Add lib/inttypes_.h, remove lib/inttypes.h.
76252         Add m4/inttypes.m4, remove m4/_inttypes_h.m4 and m4/include_next.m4.
76253         (Makefile.am): Create inttypes.h from inttypes_.h.
76254         * modules/stdint (Makefile.am): Substitute also ABSOLUTE_INTTYPES_H.
76255
76256         * modules/imaxabs: New file.
76257
76258         * modules/imaxdiv: New file.
76259
76260 2006-08-26  Bruno Haible  <bruno@clisp.org>
76261
76262         * m4/inttypes.m4: New file.
76263         * m4/_inttypes_h.m4: Remove file.
76264         * m4/inttypes-pri.m4 (gt_INTTYPES_PRI): Also AC_SUBST
76265         PRI_MACROS_BROKEN.
76266         * m4/stdint.m4 (gl_STDINT_H): Define also ABSOLUTE_INTTYPES_H.
76267
76268         * m4/imaxabs.m4: New file.
76269
76270         * m4/imaxdiv.m4: New file.
76271
76272 2006-08-26  Bruno Haible  <bruno@clisp.org>
76273
76274         * lib/inttypes_.h: New file.
76275         * lib/inttypes.h: Remove file.
76276         * lib/stdint_.h: Include <inttypes.h> through its absolute filename.
76277
76278         * lib/imaxabs.c: New file.
76279
76280         * lib/imaxdiv.c: New file.
76281
76282 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76283
76284         New config-h module, so that "make" output needn't be cluttered
76285         by -DHAVE_CONFIG_H.
76286         * MODULES.html.sh (Support for building libraries and executables):
76287         Add config-h.
76288         * modules/config-h: New file.
76289         * gnulib-tool (nl, sed_transform_lib_file): New vars.
76290         (func_import): Turn "#ifdef HAVE_CONFIG_H" to "#if 1" if
76291         the config-h module is used.
76292
76293         New configmake module, so that "make" output needn't be cluttered
76294         by fluff like '-DLIBDIR=\"/usr/local/lib\"'.
76295         * MODULES.html.sh (Support for building libraries and executables):
76296         Add configmake.
76297         * modules/configmake: New file.
76298
76299 2006-08-25  Paul Eggert  <eggert@cs.ucla.edu>
76300
76301         * m4/config-h.m4: New file.
76302
76303 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76304
76305         * config/srclist.txt: Add elisp-comp.
76306
76307 2006-08-24  Paul Eggert  <eggert@cs.ucla.edu>
76308
76309         * MODULES.html.sh (Support for building libraries and executables):
76310         Add elisp-comp.
76311         * build-aux/elisp-comp: New file.
76312         * modules/elisp-comp: New file.
76313
76314 2006-08-24  Bruno Haible  <bruno@clisp.org>
76315
76316         * gnulib-tool (func_create_testdir): Use non-default values of
76317         sourcebase and m4base.
76318
76319 2006-08-24  Bruno Haible  <bruno@clisp.org>
76320
76321         * MODULES.html.sh (Compatibility checks for POSIX:2001 functions: Fix
76322         HTML structure.
76323
76324 2006-08-23  Paul Eggert  <eggert@cs.ucla.edu>
76325
76326         * modules/openat (Depends-on): Add lchown.
76327
76328 2006-08-23  Bruno Haible  <bruno@clisp.org>
76329
76330         * gnulib-tool (func_import, func_create_testdir): Emit an invocation
76331         of gl_LOCK_EARLY instead of gl_LOCK.
76332
76333 2006-08-23  Bruno Haible  <bruno@clisp.org>
76334
76335         * m4/lock.m4 (gl_LOCK_BODY): Change the default value of gl_use_threads
76336         on OSF/1 to no.
76337         Reported by Stephen Cartwright <sgcartwr@ucalgary.ca>.
76338
76339 2006-08-23  Bruno Haible  <bruno@clisp.org>
76340
76341         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Don't consider BeOS statvfs
76342         as unusable.
76343
76344         * m4/lock.m4 (gl_LOCK_EARLY): Renamed from gl_LOCK.
76345         (gl_LOCK_BODY): Remove gl_PREREQ_LOCK invocation.
76346         (gl_LOCK): New macro.
76347
76348 2006-08-22  Simon Josefsson  <jas@extundo.com>
76349
76350         * modules/gc-md5 (Makefile.am): Need to add md5.h, after changes
76351         to md5 module.
76352
76353 2006-08-22  Simon Josefsson  <jas@extundo.com>
76354
76355         * MODULES.html.sh: Add "Support for maintaining and release
76356         projects".
76357
76358         * build-aux/gnupload: New file, from coreutils.
76359
76360 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76361
76362         Avoid the need for AC_LIBSOURCES in m4 macros.
76363         * modules/arcfour (EXTRA_DIST): Add arcfour.h.
76364         * modules/arctwo (EXTRA_DIST): Add arctwo.h.
76365         * modules/check-version (EXTRA_DIST): Add check-version.h.
76366         * modules/crc (EXTRA_DIST): Add crc.h.
76367         * modules/des (EXTRA_DIST): Add des.h.
76368         * modules/gc (EXTRA_DIST): Add gc.h.
76369         * modules/getdelim (EXTRA_DIST): Add getdelim.h.
76370         * modules/getline (EXTRA_DIST): Add getline.h.
76371         * modules/getlogin_r (EXTRA_DIST): Add getlogin_r.h.
76372         * modules/hmac-md5 (EXTRA_DIST): Add hmac.h.
76373         * modules/hmac-sha1 (EXTRA_DIST): Add hmac.h.
76374         * modules/md2 (EXTRA_DIST): Add md2.h.
76375         * modules/md4 (EXTRA_DIST): Add md4.h.
76376         * modules/pagealign_alloc (EXTRA_DIST): Add pagealign_alloc.h.
76377         * modules/read-file (EXTRA_DIST): Add read-file.h.
76378         * modules/readline (EXTRA_DIST): Add readline.h.
76379         * modules/rijndael (EXTRA_DIST): Add rijndael-alg-fst.h,
76380         rijndael-api-fst.h.
76381
76382 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76383
76384         * m4/rijndael.m4 (gl_ARCFOUR):
76385         * m4/arctwo.m4 (gl_ARCTWO):
76386         * m4/check-version.m4 (gl_CHECK_VERSION):
76387         * m4/crc.m4 (gl_CRC):
76388         * m4/des.m4 (gl_DES):
76389         * m4/gc-pbkdf2-sha1.m4 (gl_GC_PBKDF2_SHA1):
76390         * m4/gc.m4 (gl_GC):
76391         * m4/getdelim.m4 (gl_FUNC_GETDELIM):
76392         * m4/getline.m4 (gl_FUNC_GETLINE):
76393         * m4/getlogin_r.m4 (gl_GETLOGIN_R_SUBSTITUTE):
76394         * m4/hmac-md5.m4 (gl_HMAC_MD5):
76395         * m4/hmac-sha1.m4 (gl_HMAC_SHA1):
76396         * m4/md2.m4 (gl_MD2):
76397         * m4/md4.m4 (gl_MD4):
76398         * m4/pagealign_alloc.m4 (gl_PAGEALIGN_ALLOC):
76399         * m4/read-file.m4 (gl_FUNC_READ_FILE):
76400         * m4/readline.m4 (gl_FUNC_READLINE):
76401         * m4/rijndael.m4 (gl_RIJNDAEL):
76402         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76403         to get the necessary .h files and whatnot.
76404
76405 2006-08-22  Paul Eggert  <eggert@cs.ucla.edu>
76406
76407         * config/srclist.txt: Remove gnupload, since coreutils now syncs from
76408         gnulib rather than the other way around.
76409         * config/srclistvars.sh (COREUTILS): Remove.
76410
76411 2006-08-22  Jim Meyering  <jim@meyering.net>
76412
76413         * modules/mkdir-p (Makefile.am): Fix typo: s/lib+SOURCES/lib_SOURCES/.
76414
76415         * modules/getpass-gnu (Makefile.am): Add getpass.h to EXTRA_DIST.
76416
76417 2006-08-22  Eric Blake  <ebb9@byu.net>
76418
76419         * modules/regexprops-generic: New file.
76420         * MODULES.html.sh (Support for building documentation): List it.
76421
76422 2006-08-22  Eric Blake  <ebb9@byu.net>
76423
76424         * m4/stdint_h.m4 (gl_AC_HEADER_STDINT_H): Avoid compiler warning.
76425         * m4/inttypes_h.m4 (gl_AC_HEADER_INTTYPES_H): Likewise.
76426         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Likewise.
76427         * m4/intmax_t.m4 (gt_AC_TYPE_INTMAX_T): Likewise.
76428
76429 2006-08-22  Bruno Haible  <bruno@clisp.org>
76430
76431         * gnulib-tool (func_emit_lib_Makefile_am): Don't treat lib_LIBRARIES
76432         and lib_LTLIBRARIES like the other lib_* variables.
76433
76434 2006-08-22  Bruno Haible  <bruno@clisp.org>
76435
76436         * build-aux/x-to-1.in: New file, from GNU gettext.
76437
76438 2006-08-22  Bruno Haible  <bruno@clisp.org>
76439
76440         * m4/readutmp.m4 (gl_READUTMP): Compile readutmp.c only if <utmp.h> or
76441         <utmpx.h> exists.
76442
76443 2006-08-22  Bruno Haible  <bruno@clisp.org>
76444
76445         * lib/readutmp.h: Skip most definitions if neither <utmp.h> nor
76446         <utmpx.h> exists.
76447
76448 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76449
76450         BeOS portability.
76451         * lib/dirchownmod.c (dirchownmod): Don't use fchmod if it doesn't
76452         exist.
76453         Problem reported by Bruno Haible.
76454
76455 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76456
76457         Avoid the need for AC_LIBSOURCES in m4 macros.
76458         * modules/acl (EXTRA_DIST): Add acl.h.
76459         * modules/argmatch (Files): Add m4/argmatch.m4.
76460         (configure.ac): Add gl_ARGMATCH.
76461         (EXTRA_DIST): Renamed from lib_SOURCES, for
76462         consistency with the other modules.  Remove argmatch.c.
76463         * modules/backupfile (EXTRA_DIST): Add backupfile.h.
76464         * modules/c-strtod (EXTRA_DIST): Add c-strtod.h.
76465         * modules/c-strtold (EXTRA_DIST): Add c-strtod.c, c-strtod.h.
76466         * modules/canonhost (EXTRA_DIST): Add c-canonhost.h.
76467         * modules/canonicalize (EXTRA_DIST): Add canonicalize.h.
76468         * modules/chdir-long (EXTRA_DIST): Add chdir-long.h.
76469         * modules/chdir-safer (EXTRA_DIST): Add chdir-safer.h.
76470         * modules/cloexec (EXTRA_DIST): Add cloexec.h.
76471         * modules/close-stream (EXTRA_DIST): Add close-stream.h.
76472         * modules/closeout (EXTRA_DIST): Add closeout.h.
76473         * modules/cycle-check (EXTRA_DIST): Add cycle-check.h.
76474         * modules/dev-ino (EXTRA_DIST): Add dev-ino.h.
76475         * modules/dirfd (EXTRA_DIST): Add dirfd.h.
76476         * modules/dirname (EXTRA_DIST): Renamed from lib_SOURCES.  Add
76477         dirname.h; remove basename.c and stripslash.c.
76478         * modules/exclude (EXTRA_DIST): Add exclude.h.
76479         * modules/exitfail (EXTRA_DIST): Add exitfail.h.
76480         * modules/fcntl-safer (EXTRA_DIST): Add fcntl-safer.h fcntl--.h.
76481         * modules/file-type (EXTRA_DIST): Add file-type.h.
76482         * modules/filemode (EXTRA_DIST): Add filemode.h.
76483         * modules/filenamecat (EXTRA_DIST): Add filenamecat.h.
76484         * modules/fopen-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76485         * modules/fpending (EXTRA_DIST): Add __fpending.h.
76486         * modules/fprintftime (EXTRA_DIST): Add fprintftime.h.
76487         * modules/fsusage (EXTRA_DIST): Add fsusage.h.
76488         * modules/fts (EXTRA_DIST): Add fts_.h fts-cycle.c.
76489         * modules/getcwd (EXTRA_DIST): Add getcwd.h.
76490         * modules/getdate (EXTRA_DIST): Add getdate.c.
76491         * modules/gethrxtime (EXTRA_DIST): Add gethrxtime.h xtime.h.
76492         * modules/getpagesize (EXTRA_DIST): Add getpagesize.h.
76493         * modules/getpass (EXTRA_DIST): Add getpass.h.
76494         * modules/glob (EXTRA_DIST): Add glob_.h glob-libc.h.
76495         * modules/group-member (EXTRA_DIST): Add group-member.h.
76496         * modules/hard-locale (EXTRA_DIST): Add hard-locale.h.
76497         * modules/hash (EXTRA_DIST): Add hash.h.
76498         * modules/human (EXTRA_DIST): Add human.h.
76499         * modules/inttypes (EXTRA_DIST): Add inttypes.h.
76500         * modules/lchmod (EXTRA_DIST): Add lchmod.h.
76501         * modules/lchown (EXTRA_DIST): Add lchown.h.
76502         * modules/long-options (EXTRA_DIST): Add long-options.h.
76503         * modules/lstat (EXTRA_DIST): Add lstat.h.
76504         * modules/md5 (EXTRA_DIST): Add memcasecmp.h.
76505         * modules/memcoll (EXTRA_DIST): Add memcoll.h.
76506         * modules/mempcpy (EXTRA_DIST): Add mempcpy.h.
76507         * modules/memrchr (EXTRA_DIST): Add memrchr.h.
76508         * modules/memxor (EXTRA_DIST): Add memxor.h.
76509         * modules/mkancesdirs (EXTRA_DIST): Add mkancesdirs.h.
76510         * modules/mkdir-p (EXTRA_DIST): Add modechange.h.
76511         * modules/mountlist (EXTRA_DIST): Add mountlist.h.
76512         * modules/openat (EXTRA_DIST): Add at-func.c openat.h openat-priv.h.
76513         * modules/pathmax (EXTRA_DIST): Add pathmax.h.
76514         * modules/physmem (EXTRA_DIST): Add physmem.h.
76515         * modules/posixtm (EXTRA_DIST): Add posixtm.h.
76516         * modules/posixver (EXTRA_DIST): Add posixver.h.
76517         * modules/quote (EXTRA_DIST): Add quote.h.
76518         * modules/quotearg (EXTRA_DIST): Add quotearg.h.
76519         * modules/readtokens (EXTRA_DIST): Add readtokens.h.
76520         * modules/readutmp (EXTRA_DIST): Add readutmp.h.
76521         * modules/regex (EXTRA_DIST): Add regcomp.c regex.h regex_internal.c
76522         regex_internal.h regexec.c.
76523         * modules/safe-read (EXTRA_DIST): Add safe-read.h.
76524         * modules/safe-write (EXTRA_DIST): Add safe-write.h.
76525         * modules/same (EXTRA_DIST): Add same.h.
76526         * modules/same-inode (EXTRA_DIST): Add same-inode.h.
76527         * modules/save-cwd (EXTRA_DIST): Add save-cwd.h.
76528         * modules/savedir (EXTRA_DIST): Add savedir.h.
76529         * modules/sha1 (EXTRA_DIST): Add sha1.h.
76530         * modules/sig2str (EXTRA_DIST): Add sig2str.h.
76531         * modules/stat-macros (EXTRA_DIST): Add stat-macros.h.
76532         * modules/stat-time (EXTRA_DIST): Add stat-time.h.
76533         * modules/stdlib-safer (EXTRA_DIST): Add stdlib-safer.h stdlib--.h.
76534         * modules/strdup (EXTRA_DIST): Add strdup.h.
76535         * modules/strftime (EXTRA_DIST): Add strftime.h.
76536         * modules/strndup (EXTRA_DIST): Add strndup.h.
76537         * modules/strnlen (EXTRA_DIST): Add strnlen.h.
76538         * modules/strverscmp (EXTRA_DIST): Add strverscmp.h.
76539         * modules/time_r (EXTRA_DIST): Add time_r.h.
76540         * modules/timespec (EXTRA_DIST): Add timespec.h.
76541         * modules/tmpfile-safer (EXTRA_DIST): Add stdio-safer.h stdio--.h.
76542         * modules/unistd-safer (EXTRA_DIST): Add unistd-safer.h unistd--.h.
76543         * modules/unlinkdir (EXTRA_DIST): Add unlinkdir.h.
76544         * modules/unlocked-io (EXTRA_DIST): Add unlocked-io.h.
76545         * modules/userspec (EXTRA_DIST): Add userspec.h.
76546         * modules/utimecmp (EXTRA_DIST): Add utimecmp.h.
76547         * modules/utimens (EXTRA_DIST): Add utimens.h.
76548         * modules/xalloc (EXTRA_DIST): Add xalloc.h.
76549         * modules/xgetcwd (EXTRA_DIST): Add xgetcwd.h.
76550         * modules/xnanosleep (EXTRA_DIST): Add xnanosleep.h.
76551         * modules/xreadlink (EXTRA_DIST): Add xreadlink.h.
76552         * modules/xstrtod (EXTRA_DIST): Add xstrtod.h.
76553         * modules/xstrtol (EXTRA_DIST): Add xstrtol.h.
76554         * modules/xstrtold (EXTRA_DIST): Add xstrtod.c xstrtod.h.
76555         * modules/yesno (EXTRA_DIST): Add yesno.h.
76556
76557 2006-08-21  Paul Eggert  <eggert@cs.ucla.edu>
76558
76559         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Check for fchmod.
76560
76561         * m4/argmatch.m4: New file, from coreutils with AC_LIBSOURCES removed.
76562         * m4/dev-ino.m4, same-inode.m4: Remove.
76563
76564         * m4/_inttypes_h.m4 (gl_INTTYPES_H):
76565         * m4/acl.m4 (AC_FUNC_ACL):
76566         * m4/backupfile.m4 (gl_BACKUPFILE):
76567         * m4/c-strtod.m4 (gl_C99_STRTOLD):
76568         * m4/canon-host.m4 (gl_CANON_HOST):
76569         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME):
76570         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG):
76571         * m4/chdir-safer.m4 (gl_CHDIR_SAFER):
76572         * m4/cloexec.m4 (gl_CLOEXEC):
76573         * m4/close-stream.m4 (gl_CLOSE_STREAM):
76574         * m4/closeout.m4 (gl_CLOSEOUT):
76575         * m4/dirfd.m4 (gl_FUNC_DIRFD):
76576         * m4/dirname.m4 (gl_DIRNAME):
76577         * m4/exclude.m4 (gl_EXCLUDE):
76578         * m4/exitfail.m4 (gl_EXITFAIL):
76579         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER):
76580         * m4/file-type.m4 (gl_FILE_TYPE):
76581         * m4/filemode.m4 (gl_FILEMODE):
76582         * m4/filenamecat.m4 (gl_FILE_NAME_CONCAT):
76583         * m4/fpending.m4 (gl_FUNC_FPENDING):
76584         * m4/fprintftime.m4 (gl_FPRINTFTIME):
76585         * m4/fts.m4 (gl_FUNC_FTS):
76586         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL):
76587         * m4/getdate.m4 (gl_GETDATE):
76588         * m4/gethrxtime.m4 (gl_GETHRXTIME):
76589         * m4/getpagesize.m4 (gl_GETPAGESIZE):
76590         * m4/getpass.m4 (gl_FUNC_GETPASS):
76591         * m4/gettime.m4 (gl_GETTIME):
76592         * m4/getugroups.m4 (gl_GETUGROUPS):
76593         * m4/glob.m4 (gl_GLOB_SUBSTITUTE):
76594         * m4/group-member.m4 (gl_FUNC_GROUP_MEMBER):
76595         * m4/hard-locale.m4 (gl_HARD_LOCALE):
76596         * m4/hash.m4 (gl_HASH):
76597         * m4/idcache.m4 (gl_IDCACHE):
76598         * m4/lchmod.m4 (gl_FUNC_LCHMOD):
76599         * m4/lchown.m4 (gl_FUNC_LCHOWN):
76600         * m4/long-options.m4 (gl_LONG_OPTIONS):
76601         * m4/lstat.m4 (gl_FUNC_LSTAT):
76602         * m4/md5.m4 (gl_MD5):
76603         * m4/memcasecmp.m4 (gl_MEMCASECMP):
76604         * m4/memcoll.m4 (gl_MEMCOLL):
76605         * m4/mempcpy.m4 (gl_FUNC_MEMPCPY):
76606         * m4/memrchr.m4 (gl_FUNC_MEMRCHR):
76607         * m4/memxor.m4 (gl_MEMXOR):
76608         * m4/mkancesdirs.m4 (gl_MKANCESDIRS):
76609         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS):
76610         * m4/modechange.m4 (gl_MODECHANGE):
76611         * m4/mountlist.m4 (gl_MOUNTLIST):
76612         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP):
76613         * m4/openat.m4 (gl_FUNC_OPENAT):
76614         * m4/pathmax.m4 (gl_PATHMAX):
76615         * m4/physmem.m4 (gl_PHYSMEM):
76616         * m4/posixtm.m4 (gl_POSIXTM):
76617         * m4/posixver.m4 (gl_POSIXVER):
76618         * m4/quote.m4 (gl_QUOTE):
76619         * m4/quotearg.m4 (gl_QUOTEARG):
76620         * m4/readtokens.m4 (gl_READTOKENS):
76621         * m4/readutmp.m4 (gl_READUTMP):
76622         * m4/regex.m4 (gl_REGEX):
76623         * m4/safe-read.m4 (gl_SAFE_READ):
76624         * m4/safe-write.m4 (gl_SAFE_WRITE):
76625         * m4/same.m4 (gl_SAME):
76626         * m4/save-cwd.m4 (gl_SAVE_CWD):
76627         * m4/savedir.m4 (gl_SAVEDIR):
76628         * m4/settime.m4 (gl_SETTIME):
76629         * m4/sha1.m4 (gl_SHA1):
76630         * m4/sig2str.m4 (gl_FUNC_SIG2STR):
76631         * m4/stat-macros.m4 (gl_STAT_MACROS):
76632         * m4/stat-time.m4 (gl_STAT_TIME):
76633         * m4/stdio-safer.m4 (gl_FOPEN_SAFER):
76634         * m4/stdlib-safer.m4 (gl_STDLIB_SAFER):
76635         * m4/strdup.m4 (gl_FUNC_STRDUP):
76636         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME):
76637         * m4/strndup.m4 (gl_FUNC_STRNDUP):
76638         * m4/strnlen.m4 (gl_FUNC_STRNLEN):
76639         * m4/strverscmp.m4 (gl_FUNC_STRVERSCMP):
76640         * m4/time_r.m4 (gl_TIME_R):
76641         * m4/timespec.m4 (gl_TIMESPEC):
76642         * m4/unistd-safer.m4 (gl_UNISTD_SAFER):
76643         * m4/unlinkdir.m4 (gl_UNLINKDIR):
76644         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO):
76645         * m4/userspec.m4 (gl_USERSPEC):
76646         * m4/utimecmp.m4 (gl_UTIMECMP):
76647         * m4/utimens.m4 (gl_UTIMENS):
76648         * m4/xalloc.m4 (gl_XALLOC):
76649         * m4/xgetcwd.m4 (gl_XGETCWD):
76650         * m4/xnanosleep.m4 (gl_XNANOSLEEP):
76651         * m4/xreadlink.m4 (gl_XREADLINK):
76652         * m4/xstrtod.m4 (gl_XSTRTOD):
76653         * m4/yesno.m4 (gl_YESNO):
76654         Don't use AC_LIBSOURCES; instead, rely on the files in ../modules/
76655         to get the necessary .h files and whatnot.
76656
76657 2006-08-21  Mark D. Baushke  <mdb@gnu.org>
76658             Bruno Haible  <bruno@clisp.org>
76659
76660         * gnulib-tool (func_verify_module): Work around Sun's non-POSIX 1003.2
76661         /bin/sh understanding of '!' conditional negation.
76662
76663 2006-08-21  Jim Meyering  <jim@meyering.net>
76664
76665         * modules/openat (Depends-on): Really alphabetize.
76666
76667         * modules/acl (Depends-on): Add error and quote.
76668
76669         * check-module (find_included_lib_files): Add at-func.c to the
76670         ok-to-include-more-than-once white list.
76671
76672         * modules/openat (Depends-on): Add lstat.  Alphabetize.
76673
76674 2006-08-21  Bruno Haible  <bruno@clisp.org>
76675
76676         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
76677         Emit a pkgdata_DATA variable only if some snippets add contents to it.
76678         Reported by Martin Lambers <marlam@marlam.de>.
76679
76680 2006-08-21  Bruno Haible  <bruno@clisp.org>
76681
76682         * gnulib-tool (func_emit_lib_Makefile_am): If the snippets already
76683         specify an installation location, don't emit a noinst_LIBRARIES or
76684         noinst_LTLIBRARIES assignment.
76685
76686 2006-08-21  Bruno Haible  <bruno@clisp.org>
76687
76688         BeOS portability.
76689         * modules/mbchar (Include): Don't test HAVE_WCTYPE_H any more, since
76690         BeOS has mbrtowc() but no <wctype.h>.
76691
76692 2006-08-21  Bruno Haible  <bruno@clisp.org>
76693
76694         BeOS portability.
76695         * m4/mbchar.m4 (gl_MBCHAR): Compile mbchar.c also if <wctype.h> doesn't
76696         exist.
76697
76698 2006-08-21  Bruno Haible  <bruno@clisp.org>
76699
76700         BeOS portability.
76701         * lib/mbchar.h: Include <wctype.h> only if it exists.
76702
76703 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76704
76705         Remove files that are no longer needed by their respective modules.
76706         * m4/obstack.m4: Remove.
76707         * m4/strerror_r.m4: Remove.
76708         * m4/uint32_t.m4: Remove.
76709         * m4/uintptr_t.m4: Remove.
76710         * m4/ullong_max.m4: Remove.
76711         * m4/xstrtoimax.m4: Remove.
76712         * m4/xstrtoumax.m4: Remove.
76713
76714         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Do not require
76715         gl_AC_TYPE_UINTMAX_T, gl_STRUCT_DEV_INO, or gl_SAME_INODE, since gnulib
76716         dependencies now capture this.
76717
76718         * m4/cycle-check.m4 (gl_CYCLE_CHECK):
76719         Do not use AC_LIBSOURCES, since gnulib modules now do this.
76720         * m4/fsusage.m4 (gl_FSUSAGE): Likewise.
76721         * m4/human.m4 (gl_HUMAN): Likewise.
76722         * m4/inttostr.m4 (gl_INTTOSTR): Likewise.
76723         * m4/xstrtol.m4 (gl_XSTRTOL): Likewise.
76724
76725         * m4/filemode.m4 (gl_FILEMODE): Require AC_STRUCT_ST_DM_MODE.
76726
76727         * m4/filemode.m4 (gl_PREREQ_FSUSAGE_EXTRA): Do not require
76728         gl_AC_TYPE_INTMAX_T or gl_AC_TYPE_UINTMAX_T, since we now require
76729         stdint.
76730         * m4/human.m4 (gl_HUMAN): Likewise.
76731         * m4/inttostr.m4 (gl_PREREQ_INTTOSTR): Likewise.
76732         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Likewise.
76733         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76734         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76735         * m4/xstrtol (gl_XSTRTOL): Likewise.
76736
76737         * m4/gethrxtime.m4 (gl_XTIME): gl_AC_TYPE_LONG_LONG ->
76738         AC_TYPE_LONG_LONG_INT.
76739         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Likewise.
76740         * m4/strtoll.m4 (gl_FUNC_STRTOLL): Likewise.
76741         * m4/strtoull.m4 (gl_FUNC_STRTOULL): Likewise, for unsigned long.
76742         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Likewise.
76743
76744         * m4/human.m4 (gl_HUMAN): Do not require AM_STDBOOL_H since we depend
76745         on stdbool.
76746
76747         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL_H, gl_PREREQ_XSTRTOL): Remove.
76748         (gl_PREREQ_XSTRTOUL): Remove.
76749
76750         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Check for hasmntopt.
76751
76752         * m4/posixver.m4: Fix comment since head -1 now works even in POSIX
76753         mode.
76754
76755 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76756
76757         Add and change modules to make it easier for coreutils to use
76758         gnulib-tool.
76759         * modules/backupfile (Files): Remove m4/d-ino.m4.
76760         (Depends-on): Add d-ino.
76761         * modules/cycle-check (Depends-on): Add stdint.
76762         (lib_SOURCES): Add cycle-check.h.
76763         * modules/d-ino: New module.
76764         * modules/d-type: New module.
76765         * modules/error (Files): Remove m4/strerror_r.m4.
76766         * modules/filemode (Files): Add m4/st_dm_mode.m4.
76767         * modules/fsuage (Files): Remove m4/ulonglong.m4, m4/stdint_h.m4,
76768         m4/inttypes_h.m4, m4/uintmax_t.m4.
76769         (Depends-on): Add stdint.
76770         (lib_SOURCES): Add fsusage.h.
76771         * modules/getcwd (Files): Remove d-ino.m4.
76772         (Depends-on): Add d-ino.
76773         * modules/getndelim2 (Depends-on): Add stdint.
76774         * modules/glob (Files): Remove m4/d-type.m4.
76775         (Depends-on): Add d-type.
76776         * modules/host-os: New module.
76777         * modules/human (Files):  Remove m4/ulonglong.m4, m4/stdint_h.m4,
76778         m4/inttypes_h.m4, m4/uintmax_t.m4.
76779         * Depends-on: Add stdint.
76780         (lib_SOURCES): Add human.h.
76781         * modules/inttostr (Files): Remove m4/intmax_t.m4,
76782         m4/inttostr.m4, m4/inttypes_h.m4, m4/longlong.m4, m4/stdint_h.m4,
76783         m4/uintmax_t.m4, m4/ulonglong.m4.
76784         (Depends-on): Add stdint.
76785         (EXTRA_DIST): Add inttostr.h.
76786         * modules/lchmod: New module.
76787         * modules/link-follow: New module.
76788         * modules/mkdir-p (Files): Remove lib/lchmod.h, m4/lchmod.m4.
76789         (Depends-on): Add lchmod.
76790         * modules/mkstemp (Files): Remove m4/ulonglong.m4,
76791         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4.
76792         (Depends-on): Add stdint.
76793         * modules/obstack (Files): Remove m4/inttypes_h.m4, m4/obstack.m4,
76794         m4/stdint_h.m4, m4/uintmax_t.m4, m4/ulonglong.m4.
76795         (Depends-on): Add stdint.
76796         (configure.ac): Change gl_OBSTACK to AC_FUNC_OBSTACK.
76797         * modules/perl: New module.
76798         * modules/regex (Depends-on): Add stdint.
76799         * modules/rmdir-errno: New module.
76800         * modules/strtoimax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76801         m4/intmax_t.m4.
76802         (Depends-on): Add stdint.
76803         * modules/strtoumax (Files): Remove m4/stdint_h.m4, m4/inttypes_h.m4,
76804         m4/uintmax_t.m4.
76805         (Depends-on): Add stdint.
76806         * modules/unlink-busy: New module.
76807         * modules/utimecmp (Depends-on): Add stdint.
76808         * modules/uptime: New module.
76809         * modules/winsz-ioctl: New module.
76810         * modules/winsz-termios: New module.
76811         * modules/xnanosleep (Depends-on): Add nanosleep.
76812         * modules/ullong_max: Remove.
76813         * modules/xstrtoimax (Files): Remove m4/xstrtoimax.m4.
76814         (configure.ac): Remove gl_XSTRTOIMAX; no action needed now.
76815         * modules/xstrtol (Files): Remove m4/ulonglong.m4, m4/longlong.m4,
76816         m4/stdint_h.m4, m4/inttypes_h.m4, m4/uintmax_t.m4, m4/intmax_t.m4.
76817         (Depends-on): Add inttypes.
76818         (lib_SOURCES): Add xstrtol.h.
76819         * modules/xstrtoumax (Files): Remove m4/xstrtoumax.m4.
76820         (configure.ac): Remove gl_XSTRTOUMAX; no action needed now.
76821         * MODULES.html.sh: Move 'assert' into the assert section.
76822         Move 'dummy' into the linking section.
76823         Remove ullong_max.
76824         Add section for compatibility checks for POSIX:2001 functions,
76825         and put d-ino, d-type, link-follow, rmdir-errno, unlink-busy,
76826         winsz-ioctl, and winsz-termios into it.
76827         Add lchmod.
76828         Add top-level Misc section and put host-os, perl, and uptime
76829         into it.
76830
76831 2006-08-20  Paul Eggert  <eggert@cs.ucla.edu>
76832
76833         * lib/cycle-check.h: Include <stdint.h> unconditionally, since we
76834         now assume the stdint module.  Do not include inttypes.h.
76835         * lib/fsusage.h: Likewise.
76836         * lib/getndelim2.c: Likewise.
76837         * lib/human.h: Likewise.
76838         * lib/inttostr.h: Likewise.
76839         * lib/obstack.c: Likewise.
76840         * lib/regex_internal.h: Likewise.
76841         * lib/tempname.c: Likewise.
76842         * lib/utimecmp.c: Likewise.
76843         * lib/xstrtol.h: Likewise.
76844
76845         * lib/stat_.h: Fix typo: HAVE_FUNC_LSTAT -> HAVE_LSTAT.
76846
76847         * lib/strtoimax.c: Adjust to macro name changes in Autoconf,
76848         e.g., HAVE_LONG_LONG -> HAVE_LONG_LONG_INT.
76849         * lib/xtime.h: Likewise.
76850
76851 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76852
76853         * modules/openat (Files): Add lib/fchmodat.c.
76854         Fixes problem reported by Jay Youngman.
76855
76856 2006-08-19  Paul Eggert  <eggert@cs.ucla.edu>
76857
76858         * lib/fchmodat.c: New file, from coreutils.  This was inadvertently
76859         omitted in the 2006-08-17 update.  Problem reported by Jay Youngman.
76860
76861 2006-08-18  Paul Eggert  <eggert@cs.ucla.edu>
76862             Bruno Haible  <bruno@clisp.org>
76863
76864         * m4/bison-i18n.m4 (BISON_I18N): Also handle the case where yacc exists
76865         and is a script that invokes bison. Tighten the code. Add comments.
76866
76867 2006-08-18  Jim Meyering  <jim@meyering.net>
76868
76869         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Also check for
76870         CLOCK_REALTIME, since gethrxtime may revert to using clock_gettime via
76871         gettime.c.  Gabor Z. Papp reported that gethrxtime-using programs
76872         failed to link due to unresolved clock_gettime on a linux-2.4.x system.
76873
76874 2006-08-18  Bruno Haible  <bruno@clisp.org>
76875
76876         * modules/bison-i18n: New file.
76877         * MODULES.html.sh (Internationalization functions): Add it.
76878
76879 2006-08-18  Bruno Haible  <bruno@clisp.org>
76880
76881         * m4/ls-mntd-fs.m4 (gl_LIST_MOUNTED_FILE_SYSTEMS): Also check for
76882         sys/statvfs.h. When getmntinfo was found, check its declaration and
76883         set either MOUNTED_GETMNTINFO or MOUNTED_GETMNTINFO2 depending on it.
76884
76885 2006-08-18  Bruno Haible  <bruno@clisp.org>
76886
76887         * m4/bison-i18n.m4: New file, from bison.
76888
76889 2006-08-18  Bruno Haible  <bruno@clisp.org>
76890
76891         * lib/mountlist.c [MOUNTED_GETMNTINFO2]: Include sys/statvfs.h.
76892         (ME_DUMMY): Treat "kernfs" as a dummy.
76893         (read_file_system_list) [MOUNTED_GETMNTINFO2]: Implement.
76894
76895 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76896
76897         Update from coreutils.
76898
76899         2006-08-15  Jim Meyering  <jim@meyering.net>
76900
76901         * m4/openat.m4 (gl_FUNC_OPENAT): Add at-func.c via AC_LIBSOURCES.
76902
76903         2006-01-17  Jim Meyering  <jim@meyering.net>
76904
76905         * m4/fts.m4 (gl_FUNC_FTS_CORE): Depend on gl_FUNC_OPENAT.
76906
76907         2006-01-11  Jim Meyering  <jim@meyering.net>
76908
76909         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile fchmodat.c.
76910         Check for the lchmod function.
76911
76912 2006-08-17  Paul Eggert  <eggert@cs.ucla.edu>
76913
76914         Update from coreutils.
76915
76916         * lib/__fpending.h: Add copyright notice.
76917         * lib/fprintftime.h: Likewise.
76918         * lib/savedir.c: Use (C) in copyright notice.
76919         * lib/savedir.h: Likewise.
76920
76921         2006-08-15  Jim Meyering  <jim@meyering.net>
76922
76923         * lib/at-func.c: New file, with the logic of all emulated at-functions.
76924         * lib/openat-priv.h: Include <errno.h> and define ENOSYS,
76925         in support of the EXPECTED_ERRNO macro.
76926         * lib/openat.c (fstatat, unlinkat, fchownat): Remove function
76927         definitions.  Instead, define the appropriate symbols and include
76928         "at-func.c".
76929         * lib/mkdirat.c (mkdirat): Likewise.
76930         * lib/fchmodat.c (fchmodat): Likewise.
76931         (ENOSYS): Remove definition.
76932         * lib/openat.c: Don't include <errno.h>, now that "openat-priv.h" does
76933         it.  Don't include "unistd--.h" -- it wasn't ever used.
76934
76935         2006-01-17  Jim Meyering  <jim@meyering.net>
76936
76937         Rewrite fts.c not to change the current working directory,
76938         by using openat, fstatat, fdopendir, etc..
76939
76940         * lib/fts.c [! _LIBC]: Include "openat.h" and "unistd--.h".
76941         (HAVE_OPENAT_SUPPORT): Define.
76942         [_LIBC] (fchdir): Don't undef or define; no longer used.
76943         (FCHDIR): Define in terms of cwd_advance_fd rather than fchdir.
76944         Now, this `function' always succeeds, and consumes its file descriptor
76945         parameter -- so callers must not close such FDs.  Update callers.
76946         (diropen_fd, opendirat, cwd_advance_fd): New functions.
76947         (diropen): Add parameter, SP.  Adjust all callers.
76948         Implement using diropen_fd, rather than open.
76949         (fts_open): Initialize new member, fts_cwd_fd.
76950         Remove fts_rft-setting code.
76951         (fts_close): Close fts_cwd_fd, if necessary.
76952         (__opendir2): Define in terms of opendir or opendirat,
76953         depending on whether the FST_NOCHDIR flag is set.
76954         (fts_build): Since fts_safe_changedir consumes its FD, and since
76955         this code must do `closedir(dirp)', dup the dirfd(dirp) argument,
76956         and close the dup'd file descriptor upon failure.
76957         (fts_stat): Use fstatat(...AT_SYMLINK_NOFOLLOW) in place of lstat.
76958         (fts_safe_changedir): Tweak semantics to reflect that this function
76959         now calls cwd_advance_fd and hence consumes its FD argument.
76960         * lib/fts_.h [struct FTS] (fts_cwd_fd): New member.
76961         [struct FTS] (fts_rft): Remove now-unused member.
76962         [struct FTS] (fts_cycle.state): Improve comment.
76963
76964         * lib/openat.c (openat_needs_fchdir): New function.
76965         * lib/openat.h (openat_needs_fchdir): Declare it.
76966
76967 2006-08-16  Paul Eggert  <eggert@cs.ucla.edu>
76968
76969         * lib/memcoll.c (memcoll): Set errno = 0 in the shortcut case, too.
76970         Problem and fix reported by Pádraig Brady in
76971         <http://lists.gnu.org/archive/html/bug-coreutils/2006-08/msg00099.html>.
76972
76973 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76974
76975         * modules/cycle-check (configure.ac): Add gl_CYCLE_CHECK.
76976
76977 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76978
76979         * lib/memcoll.c (memcoll): Optimize for the common case where the
76980         arguments are bytewise equal.
76981
76982 2006-08-15  Paul Eggert  <eggert@cs.ucla.edu>
76983
76984         * doc/regexprops-generic.texi: Add a copyright notice.
76985
76986 2006-08-15  Bruno Haible  <bruno@clisp.org>
76987
76988         * modules/tmpdir (License): Change to LGPL.
76989
76990 2006-08-15  Bruno Haible  <bruno@clisp.org>
76991
76992         * gnulib-tool (func_all_modules, func_verify_module): COPYING is not a
76993         module.
76994
76995 2006-08-14  Simon Josefsson  <jas@extundo.com>
76996
76997         * config/srclist.txt: Add gnupload.
76998
76999 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77000
77001         Change copyright notice from LGPL 2 to GPL 2, since that's the
77002         standard form used in the gnulib repository.
77003         * tests/test-lock.c: Likewise.
77004         * tests/test-stdint.c: Likewise.
77005         * tests/test-tls.c: Likewise.
77006
77007         * users.txt: Add bison, diffutils, libprelude, prelude-lml,
77008         prelude-manager.  User shorter URLs for GNU projects, without '?'.
77009         Add copyright notice.
77010
77011         * check-module: Add copyright notice.  Output a copyright
77012         notice if "--version" is specified.
77013         * modules/COPYING: New file.
77014         * tests/test-getaddrinfo.c: Add copyright notice.
77015         * tests/test-verify.c: Likewise.
77016
77017 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77018
77019         Change copyright notice from LGPL 2 to GPL 2, since that's the
77020         standard form used in the gnulib repository.
77021         * lib/lock.c: LGPL -> GPL.
77022         * lib/lock.h: Likewise.
77023         * lib/strnlen1.c: Likewise.
77024         * lib/strnlen1.h: Likewise.
77025         * lib/tls.c: Likewise.
77026         * lib/tls.h: Likewise.
77027         * lib/tmpdir.c: Likewise.
77028
77029         * lib/TODO: Remove; this belongs only in coreutils.
77030
77031 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77032
77033         Add copyright notices to long-enough files that lack them, since
77034         otherwise the files aren't clearly free.  Use the same notice that
77035         getdate.texi already uses.
77036         * doc/alloca-opt.texi: Add copyright notice.
77037         * doc/alloca.texi: Likewise.
77038         * doc/ctime.texi: Likewise.
77039         * doc/functions.texi: Likewise.
77040         * doc/gcd.texi: Likewise.
77041         * doc/gnulib-tool.texi: Likewise.
77042         * doc/inet_ntoa.texi: Likewise.
77043         * doc/visibility.texi: Likewise.
77044
77045         * doc/getdate.texi: Update FDL version from 1.1 to 1.2.
77046         * doc/quote.texi: Add copyright notice.
77047
77048         * doc/solaris-versions: Add SunOS 5.10, SunOS 1.x, SunOS 4.0, SunOS
77049         4.0.x, SunOS 4.1.1.1, SunOS 4.1.1_U1, SunOS 4.1.3B.  SunOS 4.1.3
77050         was Solaris 1.1A.  Remove space before B in Solaris 1.1.1B.
77051         Mention SunOS 5.11.  Mention that everything before SunOS 5.7
77052         is now obsolete, and give a pointer to the Sun list.
77053         Add copyright notice.
77054
77055 2006-08-14  Paul Eggert  <eggert@cs.ucla.edu>
77056
77057         * config/srclistvars.sh: Add copyright notice.
77058
77059 2006-08-14  Eric Blake  <ebb9@byu.net>
77060
77061         Import the following change from libc:
77062
77063         2006-08-12  Ulrich Drepper  <drepper@redhat.com>
77064
77065         Upstream bug 2997.
77066         * lib/misc/error.c: Add space between program name and message if file
77067         name is missing.
77068
77069 2006-08-12  Karl Berry  <karl@gnu.org>
77070
77071         * config/srclist.txt (ssize_t.m4, sig_atomic_t.m4, signalblocking.m4):
77072         remove, these originate in gnulib now.
77073
77074 2006-08-11  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77075
77076         * doc/Makefile (standards.info standards.html standards.dvi):
77077         Also depend on make-stds.texi.
77078
77079 2006-08-11  Paul Eggert  <eggert@cs.ucla.edu>
77080
77081         * lib/pipe-safer.c (pipe_safer): Fix misspelling: HAVE_FUNC_PIPE ->
77082         HAVE_PIPE.  Fix a file descriptor leak when fd_safer fails.
77083
77084         * lib/regex_internal.c (re_string_skip_chars): Don't assume WEOF fits
77085         in wchar_t.  Problem reported by Eric Blake.
77086
77087         * lib/snprintf.c (snprintf): memcpy LEN bytes, not SIZE - 1, when
77088         LEN is smaller than SIZE.  Suggested by Bruno Haible.
77089         Also, help the compiler to keep LEN in a register.
77090
77091 2006-08-11  Eric Blake  <ebb9@byu.net>
77092
77093         * users.txt: Sort.  Add tar.
77094
77095 2006-08-11  Bruno Haible  <bruno@clisp.org>
77096
77097         * users.txt: New file.
77098
77099 2006-08-11  Bruno Haible  <bruno@clisp.org>
77100
77101         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Include <stdio.h> and <time.h>
77102         before <wchar.h>. Needed for OSF/1 and BSD/OS.
77103
77104 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77105
77106         * modules/snprintf (Depends-on): Remove minmax.
77107         (Maintainer): Add self and Bruno.
77108
77109 2006-08-10  Paul Eggert  <eggert@cs.ucla.edu>
77110
77111         * lib/.cppi-disable: Add snprintf.h, socket_.h.
77112         * lib/snprintf.c: Include <errno.h> and <limits.h>.
77113         (EOVERFLOW): Define if the system does not.
77114         Do not include "minmax.h"; it wasn't used.
77115         (snprintf): Don't assume size_t promotes to an unsigned type.
77116         Fix bug when generated string was too long for the buffer: the
77117         buffer's contents are supposed to be the initial prefix of the
77118         output.  Don't assume vasnprintf returns EOVERFLOW if the size
77119         exceeds INT_MAX; do the check ourselves.
77120
77121         Import the following changes from libc:
77122
77123         2006-06-02  Jakub Jelinek  <jakub@redhat.com>
77124
77125         * lib/posix/regex_internal.c (re_string_skip_chars): If no character
77126         has been converted at all, set *last_wc to WEOF.  If mbrtowc failed,
77127         set wc to the byte which couldn't be converted.
77128         (re_string_reconstruct): Don't clear valid_raw_len before calling
77129         re_string_skip_chars.  If wc is WEOF after re_string_skip_chars, set
77130         tip_context using re_string_context_at.
77131
77132         2006-05-02  Ulrich Drepper  <drepper@redhat.com>
77133
77134         * lib/posix/regex.h: g++ still cannot handled [restrict].
77135
77136         2006-04-21  Ulrich Drepper  <drepper@redhat.com>
77137
77138         * lib/posix/regex.h: Remove special handling for VMS.
77139
77140 2006-08-10  Jim Meyering  <jim@meyering.net>
77141
77142         * modules/same-inode: New module.
77143         * modules/dev-ino: New module.
77144         * modules/cycle-check: Depend on these modules, rather than simply
77145         including their .h files.
77146         (Makefile.am): Don't list cycle-check.[ch] here, now that they're
77147         required via m4/cycle-check.m4.
77148         * modules/same: Depend on new same-inode module, rather than
77149         including same-inode.h.
77150         * modules/chdir-safer: New file.
77151
77152         * modules/chown (Depends-on): Add stat-macros.
77153
77154 2006-08-10  Jim Meyering  <jim@meyering.net>
77155
77156         * m4/cycle-check.m4: New file.
77157         Require gl_STRUCT_DEV_INO and gl_SAME_INODE.
77158         * m4/dev-ino.m4, m4/same-inode.m4: New files.
77159
77160 2006-08-10  Eric Blake  <ebb9@byu.net>
77161
77162         * modules/verror (Depends-on): Remove bogus gl_VERROR that snuck
77163         in from original proposal.
77164
77165 2006-08-10  Eric Blake  <ebb9@byu.net>
77166         and Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
77167
77168         * gnulib-tool (func_import): Detect unexpanded macros in gnulib
77169         namespace.
77170
77171 2006-08-10  Bruno Haible  <bruno@clisp.org>
77172
77173         * gnulib-tool (func_create_testdir): Detect unexpanded macros here
77174         as well.
77175
77176 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77177
77178         Sync from coreutils.
77179
77180         2006-07-19  Mike Frysinger  <vapier@gentoo.org>
77181
77182         * lib/mountlist.c [ME_REMOTE]: Filter out cifs.
77183         Reported by Toralf Förster in <http://bugs.gentoo.org/141012>.
77184
77185 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77186
77187         * modules/restrict: Remove; no longer needed now that we assume
77188         Autoconf 2.59 or later.
77189         * MODULES.html.sh: Remove 'restrict'.
77190         * modules/argp (Depends-on): Remove 'restrict'.
77191         * modules/base64 (Depends-on): Likewise.
77192         * modules/gc (Depends-on): Likewise.
77193         * modules/getaddrinfo (Depends-on): Likewise.
77194         * modules/glob (Depends-on): Likewise.
77195         * modules/inet_ntop (Depends-on): Likewise.
77196         * modules/inet_pton (Depends-on): Likewise.
77197         * modules/memxor (Depends-on): Likewise.
77198         * modules/regex (Depends-on): Likewise.
77199         * modules/strtok_r (Depends-on): Likewise.
77200         * modules/time_r (Depends-on): Likewise.
77201
77202 2006-08-09  Paul Eggert  <eggert@cs.ucla.edu>
77203
77204         * m4/argp.m4 (gl_ARGP): Require AC_C_RESTRICT.
77205         * m4/gc.m4 (gl_PREREQ_GC): Likewise.
77206         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
77207         * m4/inet_ntop.m4 (gl_PREREQ_INET_NTOP): Likewise.
77208         * m4/inet_pton.m4 (gl_PREREQ_INET_PTON): Likewise.
77209         * m4/memxor.m4 (gl_MEMXOR): Likewise.
77210         * m4/restrict.m4: Remove; no longer needed.  All remaining uses of
77211         gl_C_RESTRICT replaced by AC_C_RESTRICT.
77212
77213         Merge from coreutils.
77214         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_C_RESTRICT, not
77215         gl_C_RESTRICT, now that we assume Autoconf 2.59 or later.
77216         * m4/strtok_r.m4 (gl_FUNC_STRTOK_R): Likewise.
77217         * m4/time_r.m4 (gl_TIME_R): Likewise.
77218
77219 2006-08-09  Karl Berry  <karl@gnu.org>
77220
77221         * config/srclist.txt: no more gettext-tools, per Bruno.
77222
77223 2006-08-08  Eric Blake  <ebb9@byu.net>
77224
77225         * modules/verror: New module.
77226         * MODULES.html.sh: Document it.
77227
77228 2006-08-08  Eric Blake  <ebb9@byu.net>
77229
77230         * lib/verror.h, lib/verror.c: New files.
77231
77232 2006-08-08  Eric Blake  <ebb9@byu.net>
77233
77234         * lib/verror.c (verror_at_line): Work around glibc bug 2997, so that
77235         verror_at_line output complies with GNU Coding Standards even when
77236         file is NULL.
77237
77238 2006-08-07  Bruno Haible  <bruno@clisp.org>
77239
77240         * lib/allocsa.h (sa_alignof) [_AIX]: Also consider 'long long' in newer
77241         versions of AIX.
77242         Reported by Ralf Wildenhues.
77243
77244 2006-08-07  Bruno Haible  <bruno@clisp.org>
77245
77246         * gnulib-tool (func_create_testdir): Wrap the set of autoconf snippets
77247         in an AC_DEFUN. Needed so that the autoconf snippets can use
77248         AC_REQUIRE.
77249
77250 2006-08-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
77251
77252         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77253         Initialize pkgdata_DATA.
77254         * modules/javaversion (Makefile.am): Add to pkgdata_DATA, rather than
77255         overriding it.
77256
77257 2006-08-06  Eric Blake  <ebb9@byu.net>
77258
77259         * lib/error.h: Fold in some upstream changes from glibc.
77260         * lib/error.c: Likewise.
77261
77262 2006-08-04  Bruno Haible  <bruno@clisp.org>
77263
77264         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77265         Make the mostlyclean-local rule depend on mostlyclean-generic.
77266         Reported by Jim Meyering. Solution suggested by Ralf Wildenhues.
77267
77268 2006-07-31  Bruno Haible  <bruno@clisp.org>
77269
77270         * m4/localcharset.m4 (gl_LOCALCHARSET): Remove tests for <stddef.h>,
77271         <stdlib.h>, <string.h>.
77272
77273 2006-07-30  Bruno Haible  <bruno@clisp.org>
77274
77275         * modules/readlink (License): Change to LGPL.
77276
77277 2006-07-30  Bruno Haible  <bruno@clisp.org>
77278
77279         * modules/javaversion (Makefile.am): Distribute javaversion.java and
77280         javaversion.class. Also install javaversion.class in $(pkgdatadir) and
77281         set PKGDATADIR to point to it.
77282
77283 2006-07-30  Bruno Haible  <bruno@clisp.org>
77284
77285         * modules/csharpexec (configure.ac): Comment out macro invocation.
77286         * modules/javaexec (configure.ac): Likewise.
77287         * modules/javacomp-script (configure.ac): Likewise.
77288
77289         * modules/csharpcomp-script (configure.ac): Use AC_REQUIRE.
77290
77291 2006-07-30  Bruno Haible  <bruno@clisp.org>
77292
77293         * modules/clean-temp (Depends-on): Add linkedhash-list, remove
77294         linked-list.
77295
77296 2006-07-30  Bruno Haible  <bruno@clisp.org>
77297
77298         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Assume <string.h> exists.
77299
77300 2006-07-30  Bruno Haible  <bruno@clisp.org>
77301
77302         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
77303         Initialize MOSTLYCLEANFILES to core and *.stackdump, so that core dumps
77304         get removed.
77305
77306 2006-07-29  Bruno Haible  <bruno@clisp.org>
77307
77308         Make it possible for gnulib-tool to work with locally modified or
77309         augmented gnulib repositories.
77310         * gnulib-tool (func_usage): Document --local-dir option.
77311         (local_gnulib_dir): New variable.
77312         Handle --local-dir option.
77313         (func_lookup_file): New function.
77314         (func_all_modules, func_verify_module): Look also in $local_gnulib_dir.
77315         (func_get_description, func_get_filelist, func_get_description,
77316         func_get_filelist, func_get_dependencies, func_get_autoconf_snippet,
77317         func_get_automake_snippet, func_get_include_directive,
77318         func_get_license, func_get_maintainer): Use func_lookup_file.
77319         (func_import, func_create_testdir): Use func_lookup_file.
77320
77321 2006-07-29  Bruno Haible  <bruno@clisp.org>
77322
77323         * modules/setenv (Depends-on): Add unistd.
77324
77325 2006-07-29  Bruno Haible  <bruno@clisp.org>
77326
77327         * lib/setenv.c: Undo unintended modification done on 2006-02-27.
77328
77329 2006-07-29  Bruno Haible  <bruno@clisp.org>
77330
77331         * lib/localcharset.c: Assume <stddef.h>, <stdlib.h>, <string.h> exist.
77332
77333 2006-07-29  Bruno Haible  <bruno@clisp.org>
77334
77335         * gnulib-tool (import, update): If there is no Makefile.am, look at
77336         aclocal.m4, instead of bailing out.
77337
77338 2006-07-29  Bruno Haible  <bruno@clisp.org>
77339
77340         * gnulib-tool (func_usage): Revert most of the 2006-07-15 change.
77341         Categorize the options by when they are useful.
77342
77343 2006-07-29  Bruno Haible  <bruno@clisp.org>
77344
77345         * gnulib-tool (func_usage): Document option --no-libtool.
77346         Handle option --no-libtool.
77347         (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am): Update
77348         for changed semantics of $libtool variable.
77349         (func_import): Likewise. If libtool is not used, show this through
77350         an option --no-libtool.
77351         (func_create_testdir): Update.
77352
77353 2006-07-29  Bruno Haible  <bruno@clisp.org>
77354
77355         * gnulib-tool (func_import): Extend error message about missing
77356         --doc-base.
77357
77358 2006-07-29  Bruno Haible  <bruno@clisp.org>
77359
77360         * gnulib-tool (func_import): Don't create the $docbase directory if
77361         there is no file to store there.
77362
77363 2006-07-29  Bruno Haible  <bruno@clisp.org>
77364
77365         * gnulib-tool (autoconf_minversion): If a --dir option is given and
77366         relevant, look for configure.ac there, not in the current directory.
77367         Also use a simple search for AC_PREREQ, not "autoconf --trace".
77368
77369 2006-07-29  Bruno Haible  <bruno@clisp.org>
77370
77371         * gnulib-tool (SORT): New variable.
77372         (func_usage): Undocument --assume-autoconf option.
77373         Remove --assume-autoconf option handling.
77374         (autoconf_minversion): Determine from the contents of configure.ac.
77375         (func_import): Remove autoconf_minversion handling.
77376         Suggested by Eric Blake.
77377
77378 2006-07-29  Bruno Haible  <bruno@clisp.org>
77379
77380         * doc/gnulib-tool.texi (gl_LIBTOOL): Mention --no-libtool option.
77381
77382 2006-07-29  Bruno Haible  <bruno@clisp.org>
77383
77384         * config/srclist.txt (*setenv.[ch]): Remove rules.
77385
77386 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77387
77388         * m4/inet_pton.m4, inet_ntop.m4: Check for netinet/in.h too.
77389
77390 2006-07-28  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77391
77392         * lib/inet_ntop.h, inet_pton.h: Need to include netinet/in.h before
77393         arpa/inet.h.
77394
77395 2006-07-28  Simon Josefsson  <jas@extundo.com>
77396
77397         * modules/inet_ntop (Depends-on): Depend on arpa_inet.
77398         * modules/inet_pton (Depends-on): Likewise.
77399
77400 2006-07-28  Simon Josefsson  <jas@extundo.com>
77401
77402         * m4/netinet_in_h.m4: New file.
77403
77404 2006-07-28  Simon Josefsson  <jas@extundo.com>
77405
77406         * lib/inet_ntop.h, inet_pton.h: No need to guard netinet/in.h
77407         #include's.
77408
77409 2006-07-28  Simon Josefsson  <jas@extundo.com>
77410
77411         * lib/inet_ntop.h, inet_pton.h: No need to guard arpa/inet.h
77412         #include's.
77413
77414 2006-07-28  Paul Eggert  <eggert@cs.ucla.edu>
77415
77416         * lib/modechange.c (mode_compile): Numeric modes now affect setuid and
77417         setgid on directories only if they set these bits.
77418         * lib/modechange.h: Remove obsolete comment about masks.
77419
77420 2006-07-28  Eric Blake  <ebb9@byu.net>
77421
77422         * lib/regex_internal.h (struct re_dfa_t) [!_LIBC]: Avoid invalid C89
77423         macro expansion.
77424
77425 2006-07-28  Bruno Haible  <bruno@clisp.org>
77426
77427         * lib/inet_ntop.h, inet_pton.h: Use #if HAVE* instead of #ifdef HAVE*.
77428
77429 2006-07-28  Bruno Haible  <bruno@clisp.org>
77430
77431         * m4/mbchar.m4 (gl_MBCHAR): Also test for iswcntrl.
77432
77433 2006-07-28  Bruno Haible  <bruno@clisp.org>
77434
77435         * lib/mbchar.h (iswalnum, iswalpha, iswblank, iswcntrl, iswdigit,
77436         iswgraph, iswlower, iswprint, iswpunct, iswspace, iswupper, iswxdigit):
77437         Define fallbacks.
77438         Avoids link error on FreeBSD 4.x.
77439         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
77440
77441         * lib/wcwidth.h (iswprint): Assume an ASCII compatible wide character
77442         encoding.
77443         * lib/mbswidth.c (iswcntrl): Likewise.
77444
77445 2006-07-27  Bruno Haible  <bruno@clisp.org>
77446
77447         * m4/stdint.m4 (gl_STDINT_H): Define __STDC_CONSTANT_MACROS during the
77448         test.
77449
77450 2006-07-27  Bruno Haible  <bruno@clisp.org>
77451
77452         * lib/stdint_.h (INT*_C, UINT*_C) [C++]: Define these if
77453         __STDC_CONSTANT_MACROS is defined, not if __STDC_LIMIT_MACROS is
77454         defined.
77455
77456 2006-07-26  Eric Blake  <ebb9@byu.net>
77457
77458         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Check for missing pipe.
77459
77460 2006-07-26  Eric Blake  <ebb9@byu.net>
77461
77462         * lib/mkstemp-safer.c [! HAVE_MKSTEMP]: Add prototype for platforms
77463         like mingw that lack mkstemp.
77464         * lib/pipe-safer.c (pipe_safer) [!HAVE_FUNC_PIPE]: Provide fallback to
77465         avoid compilation warning on mingw.
77466
77467 2006-07-26  Bruno Haible  <bruno@clisp.org>
77468
77469         * m4/stdint.m4 (gl_STDINT_H): Also verify the existence of the macros
77470         INT*_MIN, INT_LEAST*_MAX, INT_LEAST*_MIN, UINT_LEAST*_MAX,
77471         INT_FAST*_MIN, INTPTR_MIN.
77472
77473 2006-07-25  Bruno Haible  <bruno@clisp.org>
77474
77475         * modules/version-etc (Depends-on): Add stdarg.
77476
77477 2006-07-25  Bruno Haible  <bruno@clisp.org>
77478
77479         * m4/stdint.m4 (gl_INTEGER_TYPE_SUFFIX): Avoid 'eval' in front of
77480         complex commands.
77481
77482 2006-07-25  Bruno Haible  <bruno@clisp.org>
77483
77484         * lib/version-etc.c (version_etc_va): Use va_copy, assumed to be
77485         defined in <stdarg.h> or config.h.
77486
77487 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77488
77489         * m4/stdio-safer.m4 (gl_FOPEN_SAFER, gl_TMPFILE_SAFER): New macros.
77490         (gl_STDIO_SAFER): Remove.
77491
77492 2006-07-24  Paul Eggert  <eggert@cs.ucla.edu>
77493
77494         * MODULES.html.sh (File stream based Input/Output):
77495         Add fopen-safer, tmpfile-safer; remove stdio-safer.
77496         * modules/getusershell (Depends-on): Change stdio-safer to fopen-safer.
77497         * modules/fopen-safer, modules/tmpfile-safer: New files.
77498         * modules/stdio-safer: Remove.
77499
77500 2006-07-24  Bruno Haible  <bruno@clisp.org>
77501
77502         * modules/tmpdir: New file.
77503         * MODULES.html.sh (File system functions): Add it.
77504
77505 2006-07-24  Bruno Haible  <bruno@clisp.org>
77506
77507         * modules/javacomp (Depends-on): Add unistd, javaversion, binary-io,
77508         getline, pathname, fwriteerror, clean-temp, xvasprintf, strstr.
77509
77510 2006-07-24  Bruno Haible  <bruno@clisp.org>
77511
77512         * modules/clean-temp: New file.
77513
77514 2006-07-24  Bruno Haible  <bruno@clisp.org>
77515
77516         * m4/tmpdir.m4: New file, from GNU gettext.
77517
77518 2006-07-24  Bruno Haible  <bruno@clisp.org>
77519
77520         * lib/tmpdir.h: New file, from GNU gettext.
77521         * lib/tmpdir.c: New file, from GNU gettext.
77522
77523 2006-07-24  Bruno Haible  <bruno@clisp.org>
77524
77525         * lib/clean-temp.h: New file, from GNU gettext.
77526         * lib/clean-temp.c: New file, from GNU gettext.
77527
77528 2006-07-23  Eric Blake  <ebb9@byu.net>
77529
77530         * modules/stdio-safer (Files): Add tmpfile-safer.c.
77531         (Depends-on): Add binary-io.
77532
77533 2006-07-23  Eric Blake  <ebb9@byu.net>
77534
77535         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add tmpfile-safer.c.
77536
77537 2006-07-23  Eric Blake  <ebb9@byu.net>
77538
77539         * lib/tmpfile-safer.c: New file.
77540         * lib/stdio-safer.h (fopen_safer): Add prototype.
77541         * lib/stdio--.h (tmpfile): Make safer.
77542
77543 2006-07-23  Bruno Haible  <bruno@clisp.org>
77544
77545         * lib/gl_anylinked_list2.h (ASYNCSAFE): New macro.
77546         (gl_linked_add_first, gl_linked_add_last, gl_linked_add_before,
77547         gl_linked_add_after, gl_linked_add_at, gl_linked_remove_node,
77548         gl_linked_remove_at): Use it.
77549
77550 2006-07-22  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
77551         and Simon Josefsson <jas@extundo.com>
77552
77553         * lib/getaddrinfo.h (AI_PASSIVE): Make sure it is defined.
77554
77555         * lib/getaddrinfo.c (getaddrinfo): Support AI_PASSIVE.
77556
77557 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77558
77559         * modules/close-stream: New file.
77560         * modules/closeout (Description): Make it clear that it exits
77561         with a diagnostic on error.
77562         (Depends-on): Add close-stream.  Remove fpending, stdbool.
77563         * MODULES.html.sh (File stream based Input/Output): Add close-stream.
77564
77565 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77566
77567         * m4/close-stream.m4: New file.
77568
77569 2006-07-22  Paul Eggert  <eggert@cs.ucla.edu>
77570
77571         * lib/close-stream.c, lib/close-stream.h: New files.
77572
77573 2006-07-22  Bruno Haible  <bruno@clisp.org>
77574
77575         Merge from GNU gettext 0.15.
77576
77577         2006-05-01  Bruno Haible  <bruno@clisp.org>
77578
77579                 * build-aux/javacomp.sh.in: Update for changed javacomp.m4.
77580
77581         2006-07-22  Bruno Haible  <bruno@clisp.org>
77582
77583                 * modules/javaversion: New file.
77584                 * MODULES.html.sh (Java): Add javaversion.
77585
77586         2006-03-12  Bruno Haible  <bruno@clisp.org>
77587
77588                 * build-aux/javaexec.sh.in: Update for changed javaexec.m4.
77589
77590         2005-12-04  Bruno Haible  <bruno@clisp.org>
77591
77592                 * build-aux/csharpexec.sh.in: Add support for 'clix' launcher
77593                 (untested).
77594
77595         2006-06-21  Bruno Haible  <bruno@clisp.org>
77596
77597                 Avoid warnings from recent versions of mcs.
77598                 * build-aux/csharpcomp.sh.in (options_mcs): Don't use options
77599                 -o, -L, -r any more. Use options documented since mcs-1.0
77600                 instead. Similarly for -g.
77601
77602         2005-12-04  Bruno Haible  <bruno@clisp.org>
77603
77604                 * build-aux/csharpcomp.sh.in: Suffix for resources is
77605                 .resources, not .resource.
77606
77607         2005-07-09  Bruno Haible  <bruno@clisp.org>
77608
77609                 * build-aux/csharpcomp.sh.in (options_csc): For -l option,
77610                 add a .dll suffix.
77611                 Reported by Mark Junker <mjscod@gmx.de>.
77612
77613         2006-07-22  Bruno Haible  <bruno@clisp.org>
77614
77615                 * modules/gettext: Upgrade to gettext-0.15.
77616                 (Files): Remove m4/isc-posix.m4. Add m4/lock.m4,
77617                 m4/visibility.m4.
77618                 Replace m4/inttypes.m4 with m4/inttypes-h.m4.
77619
77620 2006-07-22  Bruno Haible  <bruno@clisp.org>
77621
77622         Merge from GNU gettext 0.15.
77623
77624         2006-03-25  Bruno Haible  <bruno@clisp.org>
77625
77626                 * lib-link.m4 (AC_LIB_LINKFLAGS_FROM_LIBS): New macro.
77627
77628         2006-07-21  Bruno Haible  <bruno@clisp.org>
77629
77630                 * javacomp.m4 (gt_JAVACOMP): Convert target_version "null" to
77631                 "1.1".
77632
77633         2006-05-09  Bruno Haible  <bruno@clisp.org>
77634
77635                 * javacomp.m4 (gt_JAVACOMP): On Cygwin, set
77636                 CLASSPATH_SEPARATOR to a semicolon. Use CLASSPATH_SEPARATOR
77637                 for the conftestver execution.
77638
77639         2006-05-01  Bruno Haible  <bruno@clisp.org>
77640
77641                 * javacomp.m4 (gt_JAVACOMP): Accept a source-version and an
77642                 optional target-version argument. Verify that the compiler
77643                 groks source of the specified source-version, or add -source
77644                 option as necessary. Verify that the compiler produces
77645                 bytecode in the specified target-version, or add -target and
77646                 -source options as necessary. Make the result of the test
77647                 available as variable CONF_JAVAC. Also log error output in
77648                 config.log.
77649
77650         2006-03-11  Bruno Haible  <bruno@clisp.org>
77651
77652                 * javacomp.m4 (gt_JAVACOMP): Treat gcj-4.x like gcj-3.x.
77653
77654         2006-05-09  Bruno Haible  <bruno@clisp.org>
77655
77656                 * javaexec.m4 (gt_JAVAEXEC): On Cygwin, set
77657                 CLASSPATH_SEPARATOR to a semicolon.
77658
77659         2006-03-12  Bruno Haible  <bruno@clisp.org>
77660
77661                 * javaexec.m4 (gt_JAVAEXEC): Make the result of the test
77662                 available as variable CONF_JAVA, for subsequent autoconf
77663                 tests. Also log error output in config.log.
77664
77665         2006-07-19  Bruno Haible  <bruno@clisp.org>
77666
77667                 * getline.m4 (AM_FUNC_GETLINE): When cross-compiling, assume
77668                 that getline works on glibc2 systems. Needed to avoid trouble
77669                 in relocatable.c.
77670                 Reported by Nils Magnus Larsgard <nmlarsgaard@atmel.no>.
77671
77672         2005-12-04  Bruno Haible  <bruno@clisp.org>
77673
77674                 * csharpexec.m4 (gt_CSHARPEXEC): Add support for 'clix'
77675                 launcher (untested).
77676
77677         2005-12-04  Bruno Haible  <bruno@clisp.org>
77678
77679                 * csharpcomp.m4 (gt_CSHARPCOMP): Also set CSHARPCOMPFLAGS.
77680
77681         2006-07-22  Bruno Haible  <bruno@clisp.org>
77682
77683                 * gettext.m4: Update from GNU gettext-0.15.
77684                 * nls.m4: Likewise.
77685                 * po.m4: Likewise.
77686                 * inttypes-pri.m4: Likewise.
77687                 * inttypes-h.m4: Renamed from inttypes.m4.
77688                 (gl_HEADER_INTTYPES_H): Renamed from gt_HEADER_INTTYPES_H.
77689
77690 2006-07-22  Bruno Haible  <bruno@clisp.org>
77691
77692         Merge from GNU gettext 0.15.
77693
77694         2005-07-05  Bruno Haible  <bruno@clisp.org>
77695
77696                 * printf-args.c (printf_fetchargs): Work around broken
77697                 definition of wint_t on mingw.
77698
77699         2005-02-12  Bruno Haible  <bruno@clisp.org>
77700
77701                 * xallocsa.h: Add extern "C" for C++.
77702
77703         2006-05-17  Bruno Haible  <bruno@clisp.org>
77704
77705                 Cygwin portability.
77706                 * progreloc.c (WIN32_NATIVE): Renamed from WIN32.
77707
77708         2006-04-30  Bruno Haible  <bruno@clisp.org>
77709
77710                 * progreloc.c: Include <mach-o/dyld.h> if available.
77711                 (find_executable): Use _NSGetExecutablePath when possible.
77712
77713         2006-05-06  Charles Wilson  <cygwin@cwilson.fastmail.fm>
77714
77715                 * progreloc.c (maybe_executable) [CYGWIN]: Use the access()
77716                 function.
77717
77718         2005-12-29  Bruno Haible  <bruno@clisp.org>
77719
77720                 * progreloc.c (set_program_name_and_installdir): Fix
77721                 compilation error.
77722
77723         2005-12-04  Bruno Haible  <bruno@clisp.org>
77724
77725                 Cygwin portability.
77726                 * progreloc.c: Include <windows.h> also on Cygwin.
77727                 (find_executable): Add support for Cygwin.
77728                 (set_program_name_and_installdir): Handle also platforms with
77729                 nonempty EXEEXT.
77730
77731         2006-07-11  Bruno Haible  <bruno@clisp.org>
77732
77733                 * javacomp.c: Fix a comment.
77734                 Reported by Jim Meyering.
77735
77736         2006-04-30  Bruno Haible  <bruno@clisp.org>
77737
77738                 * javacomp.h (compile_java_class): Add source_version,
77739                 target_version arguments.
77740                 * javacomp.c: Rewritten to choose only a compiler that
77741                 respects the specified source_version and target_version.
77742
77743         2006-06-27  Bruno Haible  <bruno@clisp.org>
77744
77745                 Assume correct S_ISDIR macro.
77746                 * mkdtemp.c: Remove test of STAT_MACROS_BROKEN.
77747
77748         2006-07-22  Bruno Haible  <bruno@clisp.org>
77749
77750                 * javaversion.h: New file, from GNU gettext.
77751                 * javaversion.c: New file, from GNU gettext.
77752                 * javaversion.java: New file, from GNU gettext.
77753                 * javaversion.class: New file, from GNU gettext.
77754
77755         2006-05-17  Bruno Haible  <bruno@clisp.org>
77756
77757                 Cygwin portability.
77758                 * javaexec.c (execute_java_class): Test for jview program
77759                 also on Cygwin.
77760
77761         2006-04-09  Bruno Haible  <bruno@clisp.org>
77762
77763                 * fatal-signal.c: Don't include string.h.
77764                 (at_fatal_signal): Use a copying loop instead of memcpy.
77765
77766         2005-12-04  Bruno Haible  <bruno@clisp.org>
77767
77768                 * csharpexec.c: Add support for 'clix' launcher (untested).
77769                 (execute_csharp_using_sscli): New function.
77770                 (execute_csharp_program): Call it.
77771
77772         2006-06-21  Bruno Haible  <bruno@clisp.org>
77773
77774                 Avoid warnings from recent versions of mcs.
77775                 * csharpcomp.c (compile_csharp_using_mono): Don't use options
77776                 -o, -L, -r any more. Use options documented since mcs-1.0
77777                 instead. Similarly for -g.
77778
77779         2005-07-09  Bruno Haible  <bruno@clisp.org>
77780
77781                 * csharpcomp.c (compile_csharp_using_sscli): For -l option,
77782                 add a .dll suffix.
77783                 Reported by Mark Junker <mjscod@gmx.de>.
77784
77785         2006-06-17  Bruno Haible  <bruno@clisp.org>
77786
77787                 * config.charset: Update for NetBSD 3.0.
77788
77789         2006-05-17  Bruno Haible  <bruno@clisp.org>
77790
77791                 Cygwin portability.
77792                 * localcharset.c (WIN32_NATIVE): Renamed from WIN32.
77793
77794         2006-05-16  Bruno Haible  <bruno@clisp.org>
77795
77796                 * localcharset.c [CYGWIN]: Include <windows.h>.
77797                 (get_charset_aliases): For Cygwin, return the same CPxxx
77798                 aliases list as under WIN32.
77799                 (locale_charset) [CYGWIN]: Try to retrieve the encoding from
77800                 the environment variables. Fall back to GetACP().
77801
77802         2006-04-05  Bruno Haible  <bruno@clisp.org>
77803
77804                 * config.charset: Update Juan Manuel Guerrero's address.
77805
77806         2005-02-12  Bruno Haible  <bruno@clisp.org>
77807
77808                 * allocsa.h: Add extern "C" for C++.
77809
77810         2005-02-10  Bruno Haible  <bruno@clisp.org>
77811
77812                 * allocsa.h (sa_alignof): Define differently with AIX xlc, to
77813                 avoid a bug of this compiler on AIX 3.2.5 dealing with enums.
77814
77815         2006-07-22  Bruno Haible  <bruno@clisp.org>
77816
77817                 * gettext.h: Update to GNU gettext-0.15.
77818
77819 2006-07-22  Bruno Haible  <bruno@clisp.org>
77820
77821         * config/srclist.txt: Resync printf-args.c, vasnprintf.c,
77822         localcharset.c, mkdtemp.c, config.rpath, lib-ld.m4, lib-link.m4,
77823         lib-prefix.m4, longdouble.m4, ssize_t.m4.
77824
77825 2006-07-21  Eric Blake  <ebb9@byu.net>
77826
77827         * modules/stdlib-safer: New file.
77828         * MODULES.html.sh (File stream based Input/Output): Add
77829         stdlib-safer.
77830
77831 2006-07-21  Eric Blake  <ebb9@byu.net>
77832
77833         * lib/stdlib-safer.h: New file from coreutils, required by
77834         stdlib--.h.
77835
77836 2006-07-20  Paul Eggert  <eggert@cs.ucla.edu>
77837
77838         * gnulib-tool (func_usage): Document --assume-autoconf='latest-stable'.
77839
77840 2006-07-20  Bruno Haible  <bruno@clisp.org>
77841
77842         * gnulib-tool: Recognize new option --assume-autoconf.
77843         (autoconf_minversion): New variable.
77844         (func_get_filelist): Use it to decide whether to add onceonly_2_57.m4.
77845
77846 2006-07-20  Bruno Haible  <bruno@clisp.org>
77847
77848         * MODULES.html.sh (func_all_modules): Add a missing func_begin_table.
77849
77850 2006-07-19  Derek R. Price  <derek@ximbiot.com>
77851
77852         * lib/getaddrinfo.h: Don't define unimplemented AI_* flags.
77853         Reindent and repaginate.
77854
77855 2006-07-19  Derek Price  <derek@ximbiot.com>
77856
77857         * doc/gnulib.texi (Libtool and Windows):  Eliminate passive voice.
77858         Correct grammar.
77859
77860 2006-07-17  Bruno Haible  <bruno@clisp.org>
77861
77862         * modules/list: New file.
77863         * modules/array-list: New file.
77864         * modules/carray-list, modules/carray-list-tests: New files.
77865         * modules/linked-list, modules/linked-list-tests: New files.
77866         * modules/avltree-list, modules/avltree-list-tests: New files.
77867         * modules/rbtree-list, modules/rbtree-list-tests: New files.
77868         * modules/linkedhash-list, modules/linkedhash-list-tests: New files.
77869         * modules/avltreehash-list, modules/avltreehash-list-tests: New files.
77870         * modules/rbtreehash-list, modules/rbtreehash-list-tests: New files.
77871         * modules/oset: New file.
77872         * modules/array-oset: New file.
77873         * modules/avltree-oset, modules/avltree-oset-tests: New files.
77874         * modules/rbtree-oset, modules/rbtree-oset-tests: New files.
77875         * tests/test-carray_list.c: New file.
77876         * tests/test-linked_list.c: New file.
77877         * tests/test-avltree_list.c: New file.
77878         * tests/test-rbtree_list.c: New file.
77879         * tests/test-linkedhash_list.c: New file.
77880         * tests/test-avltreehash_list.c: New file.
77881         * tests/test-rbtreehash_list.c: New file.
77882         * tests/test-avltree_oset.c: New file.
77883         * tests/test-rbtree_oset.c: New file.
77884         * MODULES.html.sh (Container data structures): New section.
77885
77886 2006-07-17  Bruno Haible  <bruno@clisp.org>
77887
77888         * m4/gl_list.m4: New file.
77889
77890 2006-07-17  Bruno Haible  <bruno@clisp.org>
77891
77892         * lib/gl_list.h: New file.
77893         * lib/gl_list.c: New file.
77894         * lib/gl_array_list.h: New file.
77895         * lib/gl_array_list.c: New file.
77896         * lib/gl_carray_list.h: New file.
77897         * lib/gl_carray_list.c: New file.
77898         * lib/gl_linked_list.h: New file.
77899         * lib/gl_linked_list.c: New file.
77900         * lib/gl_anylinked_list1.h: New file.
77901         * lib/gl_anylinked_list2.h: New file.
77902         * lib/gl_avltree_list.h: New file.
77903         * lib/gl_avltree_list.c: New file.
77904         * lib/gl_anyavltree_list1.h: New file.
77905         * lib/gl_anyavltree_list2.h: New file.
77906         * lib/gl_rbtree_list.h: New file.
77907         * lib/gl_rbtree_list.c: New file.
77908         * lib/gl_anyrbtree_list1.h: New file.
77909         * lib/gl_anyrbtree_list2.h: New file.
77910         * lib/gl_anytree_list1.h: New file.
77911         * lib/gl_anytree_list2.h: New file.
77912         * lib/gl_linkedhash_list.h: New file.
77913         * lib/gl_linkedhash_list.c: New file.
77914         * lib/gl_anyhash_list1.h: New file.
77915         * lib/gl_anyhash_list2.h: New file.
77916         * lib/gl_avltreehash_list.h: New file.
77917         * lib/gl_avltreehash_list.c: New file.
77918         * lib/gl_rbtreehash_list.h: New file.
77919         * lib/gl_rbtreehash_list.c: New file.
77920         * lib/gl_anytreehash_list1.h: New file.
77921         * lib/gl_anytreehash_list2.h: New file.
77922
77923         * lib/gl_oset.h: New file.
77924         * lib/gl_oset.c: New file.
77925         * lib/gl_array_oset.h: New file.
77926         * lib/gl_array_oset.c: New file.
77927         * lib/gl_avltree_oset.h: New file.
77928         * lib/gl_avltree_oset.c: New file.
77929         * lib/gl_rbtree_oset.h: New file.
77930         * lib/gl_rbtree_oset.c: New file.
77931         * lib/gl_anytree_oset.h: New file.
77932
77933 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77934
77935         * m4/mkancesdirs.m4: New file.
77936         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Mention dirchownmod.c,
77937         dirchownmod.h.  Don't require AC_FUNC_ALLOCA, gl_AFS, gl_CHDIR_SAFER;
77938         no longer needed.  Require gl_FUNC_LCHOWN, since dirchownmod.c needs
77939         it.
77940
77941 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77942
77943         * lib/dirchownmod.c, lib/dirchownmod.h, lib/mkancesdirs.c:
77944         * lib/mkancesdirs.h: New files.
77945         * lib/mkdir-p.c: Don't include alloca.h, stdio.h, sys/types.h,
77946         unistd.h, string.h, chdir-safer.h, dirname.h, lchmod.h, lchown.h,
77947         save-cwd.h.  Instead, include dirchownmod.h and mkancesdirs.h.
77948         (make_dir_parents): New args MAKE_ANCESTOR, OPTIONS, ANNOUNCE,
77949         MODE_BITS.  Remove options VERBOSE_FMT_STRING, CWD_ERRNO.  All
77950         callers changed.  Revamp internals significantly, by not
77951         attempting to create directories that are temporarily more
77952         permissive than the final results.  Do not attempt to use
77953         save_cwd/restore_cwd; it isn't worth it for mkdir and install.
77954         This removes some race conditions, fixes some bugs, and simplifies
77955         things.  Use new dirchownmod function to do owner and mode changes.
77956         * lib/mkdir-p.h: Likewise.
77957         * lib/modechange.c (octal_to_mode): New function.
77958         (struct mode_change): New member mentioned.
77959         (make_node_op_equals): New arg mentioned.  All callers changed.
77960         (mode_compile): Keep track of which mode bits the user has explicitly
77961         mentioned.
77962         (mode_adjust): New arg DIR, so that we implement the X op correctly.
77963         New arg PMODE_BITS, to keep track of which mode bits the user
77964         mentioned; it treats S_ISUID and S_ISGID speciall.
77965         All callers changed.
77966         * lib/modechange.h: Likewise.
77967
77968 2006-07-16  Paul Eggert  <eggert@cs.ucla.edu>
77969
77970         * MODULES.html.sh: Add mkancestors.
77971         * modules/mkancesdirs: New module.
77972         * modules/mkdir-p (Files): Remove lib/chdir-safer.c, lib/chdir-safer.h,
77973         lib/same-inode.h, m4/afs.m4, m4/chdir-safer.m4.
77974         The chdir-safer and afs files are now orphans; I'll remove them
77975         unless someone speaks up.
77976         Add lib/dirchownmod.c, lib/dirchownmod.h.
77977         (Depends-on): Remove alloca, chown, save-cwd, dirname.
77978         Add lchown, mkancesdirs.
77979         (Maintainer): Add self.
77980
77981 2006-07-15  Karl Berry  <karl@gnu.org>
77982
77983         * gnulib-tool: help message wording/arrangement.
77984
77985 2006-07-14  Simon Josefsson  <jas@extundo.com>
77986
77987         * doc/gnulib.texi (Libtool and Windows): New section.
77988
77989 2006-07-12  Simon Josefsson  <jas@extundo.com>
77990
77991         * modules/gendocs (License): Fix license, approved by Karl.
77992
77993 2006-07-12  Eric Blake  <ebb9@byu.net>
77994
77995         * MODULES.html.sh: Add gendocs.
77996
77997 2006-07-11  Eric Blake  <ebb9@byu.net>
77998
77999         * modules/fdl: New module, to install doc/fdl.texi.
78000         * MODULES.html.sh: Add new section for documentation modules.
78001         * gnulib-tool: Avoid space-tab.
78002         (--doc-base): New option, to manage files from doc.
78003
78004 2006-07-11  Eric Blake  <ebb9@byu.net>
78005
78006         * m4/absolute-header.m4: Fix comments to match recent change.
78007
78008 2006-07-11  Eric Blake  <ebb9@byu.net>
78009
78010         * gnulib-tool: List --doc-base before --tests-base.
78011
78012 2006-07-11  Derek R. Price  <derek@ximbiot.com>
78013
78014         * lib/glob.c: s/NAMLEN/_D_EXACT_NAMLEN/.
78015
78016 2006-07-11  Bruno Haible  <bruno@clisp.org>
78017
78018         * README: Mention where to put documentation.
78019
78020 2006-07-10  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78021
78022         * doc/functions.texi, gnulib-tool.texi, gnulib.texi: Fix some typos.
78023
78024 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
78025
78026         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Like today's change
78027         to stdint.m4.
78028
78029 2006-07-10  Paul Eggert  <eggert@cs.ucla.edu>
78030
78031         * m4/stdint.m4 (gl_STDINT_H): Like yesterday's change to
78032         absolute-header.m4.  Also, set ABSOLUTE_STDINT_H to a string
78033         "no/such/file/stdint.h" when there is no such file, so that
78034         the resulting C code can be parsed by dodgy compilers.
78035         Problems reported by Bob Proulx.
78036
78037 2006-07-10  Derek R. Price  <derek@ximbiot.com>
78038
78039         * lib/backupfile.c, dirfd.h, fts.c, getcwd.c, glob.c, glob_.h:
78040         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78041         macros into the GNU _D_EXACT_NAMLEN.
78042         * lib/savedir.c:  Likewise.
78043         (savedirstream): Use _D_EXACT_NAMLEN in preference to strlen.
78044
78045 2006-07-10  Derek R. Price  <derek@ximbiot.com>
78046         and Paul Eggert  <eggert@cs.ucla.edu>
78047
78048         * m4/backupfile.m4, d-ino.m4, d-type.m4, dirfd.m4, fts.m4, getcwd.m4:
78049         * m4/savedir.m4:
78050         Ignore the obsolescent !HAVE_DIRENT_H case.  Consolidate NAMLEN
78051         macros into the GNU _D_EXACT_NAMLEN.
78052
78053 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78054
78055         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Use "" rather than <>
78056         around the absolute name, to work around a problem with the HP-UX
78057         11.23 native C compiler, reported by Bob Proulx.
78058
78059 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78060
78061         * doc/maintain.texi, make-stds.texi: Sync from
78062         <http://savannah.gnu.org/projects/gnustandards>.
78063
78064 2006-07-09  Paul Eggert  <eggert@cs.ucla.edu>
78065
78066         * build-aux/depcomp, build-aux/install-sh: Sync from Automake.
78067
78068 2006-07-09  Jim Meyering  <jim@meyering.net>
78069
78070         * m4/glob.m4: Remove a doubled word in a comment.
78071
78072 2006-07-09  Jim Meyering  <jim@meyering.net>
78073
78074         * lib/argp-pv.c: Remove a doubled word in a comment.
78075         * lib/check-version.c (check_version): Likewise.
78076         * lib/javacomp.c (compile_java_class): Likewise.
78077
78078 2006-07-08  Paul Eggert  <eggert@cs.ucla.edu>
78079
78080         * gnulib-tool (func_get_filelist): Don't echo m4/onceonly_2_57.m4,
78081         for the benefit of people using Autoconf 2.60.  If you want to
78082         support older Autoconf versions you can copy m4/onceonly_2_57.m4
78083         (or m4/onceonly.m4, if pre-2.57) manually.
78084
78085 2006-07-08  Jim Meyering  <jim@meyering.net>
78086
78087         * m4/link-follow.m4: Remove one of two adjacent "whether"s in a
78088         comment.
78089         * m4/getopt.m4: Remove one of two adjacent "your"s in a comment.
78090         * m4/regex.m4 (gl_REGEX): Remove one of two adjacent "the"s in a
78091         comment.
78092
78093 2006-07-08  Jim Meyering  <jim@meyering.net>
78094
78095         * lib/getndelim2.h (getndelim2): Remove doubled "after" in comment.
78096
78097 2006-07-07  Simon Josefsson  <jas@extundo.com>
78098
78099         * tests/test-crc.c: Change expected crc value, the test vector
78100         were probably computed using the old broken crc.c?
78101
78102 2006-07-06  Simon Josefsson  <jas@extundo.com>
78103
78104         * modules/sys_socket (Files): Add m4/sockpfaf.m4 (this module is
78105         now the canonical place for the M4 file).
78106
78107         * modules/getaddrinfo (Files): Remove m4/sockpfaf.m4, we get it
78108         from the sys_socket dependency now.
78109
78110         * modules/inet_pton (Files): Ditto.
78111
78112         * modules/inet_ntop (Files): Ditto.
78113
78114 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
78115
78116         * modules/getusershell (configure.ac): Use gl_FUNC_GETUSERSHELL,
78117         not gl_PREREQ_GETUSERSHELL.
78118
78119 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78120
78121         * m4/_inttypes_h.m4 (gl_INTTYPES_H): Use AC_CHECK_DECLS_ONCE
78122         with only one argument, for Autoconf 2.60.
78123         * m4/fileblocks.m4 (gl_PREREQ_FILEBLOCKS): AC_CHECK_DECLS_ONCE may
78124         expand to nothing, so add a shell command to avoid syntax error.
78125         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
78126
78127 2006-07-06  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
78128
78129         * lib/strtod.c (strtod): cast the argument of tolower to unsigned char.
78130
78131 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78132
78133         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't check for getenv decl;
78134         no longer needed.  Check for isblank decl.
78135         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Don't check for getenv decl.
78136         * m4/regex.m4 (gl_PREREQ_REGEX): Dheck for isblank decl instead
78137         of existence.
78138
78139 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78140
78141         * lib/getloadavg.c: Use __VMS, not VMS.
78142         * lib/getopt.c: Likewise.
78143         * lib/getpagesize.h: Likewise.
78144         * lib/glob.c: Remove most VMS cruft; it hasn't been tested for a while
78145         and probably does not work.
78146
78147 2006-07-06  Paul Eggert  <eggert@cs.ucla.edu>
78148
78149         * lib/.cppi-disable: Add wcwidth.
78150         * lib/fnmatch.c (ISBLANK): Remove.  All uses changed to isblank.
78151         (isblank) [! (defined isblank || HAVE_DECL_ISBLANK)]: New macro.
78152         (ISGRAPH): Remove.  All uses changed to isgraph.
78153         (FOLD) [!defined _LIBC]: Remove special case.
78154         * lib/getdate.y (lookup_word): Remove no-longer-needed call to islower.
78155         * lib/regex_internal.h (isblank): Depend on HAVE_DECL_ISBLANK, not
78156         HAVE_ISBLANK.
78157         * lib/strftime.c (TOLOWER, TOUPPER) [!defined _LIBC]: Remove special
78158         case.
78159
78160 2006-07-06  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78161
78162         * lib/getaddrinfo.c: Changes to compile under MSVC6: changed
78163         '#if WIN32_NATIVE' to '#ifdef' & moved WSAAPI macro inside
78164         brackets.  Other minor changes to suppress some compiler
78165         warnings.
78166
78167 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78168         and Paul Eggert  <eggert@cs.ucla.edu>
78169
78170         * m4/backupfile.m4 (gl_BACKUPFILE): Check for dirent.h, instead
78171         of invoking obsolescent AC_HEADER_DIRENT macro.
78172         * m4/d-ino.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_INO): Likewise.
78173         * m4/d-type.m4 (gl_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Likewise.
78174         * m4/dirfd.m4 (gl_FUNC_DIRFD): Likewise.
78175         * m4/fts.m4 (gl_FUNC_FTS_CORE): Likewise.
78176         * m4/getcwd.m4 (gl_PREREQ_GETCWD): Likewise.
78177         * m4/glob.m4 (gl_PREREQ_GLOB): Likewise.
78178         * m4/savedir.m4 (gl_SAVEDIR): Likewise.
78179         * m4/readdir.m4: Remove; no longer needed.
78180
78181 2006-07-06  Derek R. Price  <derek@ximbiot.com>
78182         and Paul Eggert  <eggert@cs.ucla.edu>
78183
78184         * lib/backupfile.c [HAVE_DIRENT_H && ! HAVE_NDIR_H]:
78185         Don't worry about this obsolete case any more.
78186         (HAVE_DIR): Remove.  All uses removed; we now assume you can read
78187         directories.
78188         * lib/dirfd.h [HAVE_DIRENT_H && ! HAVE_NDIR_H]: Don't
78189         worry about this obsolete case any more.
78190         * lib/fts.c: Likewise.
78191         * lib/getcwd.c: Likewise.
78192         * lib/glob.h: Likewise.
78193         * lib/savedir.c: Likewise.
78194
78195 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78196
78197         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Use AC_CHECK_DECLS_ONCE
78198         rather than AC_CHECK_DECLS for strtoimax and strtoumax.
78199         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Remove; no longer
78200         needed.
78201         All uses removed.
78202         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78203         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78204         * m4/exclude.m4 (gl_EXCLUDE): Don't check for isascii; no longer
78205         needed.
78206         * m4/getdate.m4 (gl_GETDATE): Likewise.
78207         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78208         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78209         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78210         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78211         * m4/strtoul.m4 (gl_PREREQ_STRTOUL): Likewise.
78212         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78213         * m4/exclude.m4 (gl_EXCLUDE): Don't require AC_C_INLINE; no longer
78214         needed.
78215
78216 2006-07-05  Paul Eggert  <eggert@cs.ucla.edu>
78217
78218         * lib/memcasecmp.c: Include <limits.h>.
78219         (memcasecmp): Don't assume UCHAR_MAX <= INT_MAX.
78220         * lib/strtod.c (strtod): Don't assume isspace works on negative chars.
78221         Don't assume isdigit succeeds only on '0' through '9'.
78222
78223 2006-07-05  Eric Blake  <ebb9@byu.net>
78224
78225         * modules/getaddrinfo (Depends-on): Add snprintf.
78226
78227 2006-07-05  Eric Blake  <ebb9@byu.net>
78228
78229         * m4/sockpfaf.m4 (gl_SOCKET_FAMILIES): Use gl_HEADER_SYS_SOCKET
78230         to avoid 'header present but could not be compiled' on cygwin.
78231
78232 2006-07-05  Eric Blake  <ebb9@byu.net>
78233
78234         * lib/getaddrinfo.h (NI_NUMERICHOST, NI_NUMERICSERV): Define if
78235         missing from netdb.h.
78236         * lib/getaddrinfo.c (includes): Include inet_ntop and snprintf.
78237
78238 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78239
78240         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Don't require AC_HEADER_STDC;
78241         no longer needed.
78242         * m4/exclude.m4 (gl_EXCLUDE): Likewise.
78243         * m4/getdate.m4 (gl_GETDATE): Likewise.
78244         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Likewise.
78245         * m4/memcasecmp.m4 (gl_MEMCASECMP): Likewise.
78246         * m4/strtod.m4 (gl_FUNC_STRTOD): Likewise.
78247         * m4/strtol.m4 (gl_PREREQ_STRTOL): Likewise.
78248         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
78249
78250 2006-07-05  Derek R. Price  <derek@ximbiot.com>
78251
78252         * lib/exclude.c (IN_CTYPE_DOMAIN, is_space): Remove; no longer needed.
78253         All uses of is_space replaced by isspace.
78254         * lib/exit.h: Don't talk about STDC_HEADERS.
78255         * lib/fnmatch.c (ISASCII): Remove; no longer needed.  All uses removed.
78256         (ISPRINT, ISDIGIT, ISALNUM, ISALPHA, ISCNTRL, ISLOWER, ISPUNCT):
78257         (ISSPACE, ISUPPER, ISXDIGIT): Remove; no longer needed.  All uses
78258         replaced by isprint etc.
78259         * lib/getdate.y (IN_CTYPE_DOMAIN, ISSPACE, ISALPHA, ISLOWER): Likewise.
78260         * lib/getusershell.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78261         * lib/memcasecmp.c (IN_CTYPE_DOMAIN, ISLOWER, TOUPPER): Likewise.
78262         * lib/strtod.c (IN_CTYPE_DOMAIN, ISSPACE, ISDIGIT, TOLOWER): Likewise.
78263         * lib/strtol.c (IN_CTYPE_DOMAIN): Likewise.
78264         * lib/xstrtol.c (IN_CTYPE_DOMAIN, ISSPACE): Likewise.
78265
78266 2006-07-05  Bruno Haible  <bruno@clisp.org>
78267
78268         * m4/strndup.m4 (gl_FUNC_STRNDUP): When cross-compiling, check whether
78269         the function exists, before testing against AIX.
78270         Reported by Martin Lambers <marlam@marlam.de>.
78271
78272 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78273
78274         * modules/cycle-check (lib_SOURCES): Add same-inode.h.
78275         From Mark D. Baushke.
78276
78277 2006-07-04  Paul Eggert  <eggert@cs.ucla.edu>
78278
78279         * m4/absolute-header.m4 (gl_ABSOLUTE_HEADER): Prepend three slashes
78280         to the absolute name, not just one, to bypass Sun C 5.8's
78281         "warning: #include of /usr/include/... may be non-portable".
78282
78283 2006-07-04  Eric Blake  <ebb9@byu.net>
78284
78285         * modules/dirname-tests: New test module.
78286         * tests/test-dirname.c: New file, replacing dirname.c
78287         TEST_DIRNAME section that was recently deleted.
78288
78289 2006-07-04  Bruno Haible  <bruno@clisp.org>
78290
78291         Assume ANSI C header files and <ctype.h> functions.
78292         * lib/mbswidth.c (IN_CTYPE_DOMAIN, ISPRINT, ISCNTRL): Remove macros.
78293         (mbsnwidth): Use isprint, iscntrl instead.
78294
78295 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78296
78297         Merge from coreutils.
78298         * MODULES.html.sh: Add xstrtold.
78299         * modules/xstrtold: New file.
78300         * modules/cycle-check (Files): Add lib/same-inode.h.
78301         * modules/dirname (Files): Add m4/double-slash-root.m4.
78302         * modules/getcwd (Files): Add m4/getcwd-abort-bug.m4.
78303         * modules/mkdir-p (Files): Add lib/same-inode.h.
78304         * modules/same (Files): Add lib/same-inode.h.
78305
78306 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78307
78308         * m4/absolute-header.m4: Renamed from full-header-path.m4.
78309         This is to keep the terminology clean; POSIX talks about
78310         "absolute pathnames", not "full pathnames", but the GNU
78311         Coding Standards say to use "path" for something else;
78312         so use "absolute" to keep both sides happy.
78313         (gl_ABSOLUTE_HEADER): Renamed from gl_FULL_HEADER_PATH.
78314         Set gl_absolute_header, not gl_full_header_path.
78315         Set gl_cv_absolute_<header>, not gl_full_path_<header>.
78316         Define ABSOLUTE_<HEADER>, not FULL_PATH_<HEADER>.
78317         All uses changed.
78318
78319         Merge from coreutils.
78320
78321         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78322
78323         * m4/c-strtod.m4 (gl_C_STRTOLD): Add c-strtod.c to LIBSOURCES.
78324         Require gl_USE_SYSTEM_EXTENSIONS, not gl_C_STRTOD, since we don't
78325         want to require the building of c-strtod.o.
78326         * m4/lib-check.m4 (cu_LIB_CHECK): Remove SEQ_LIBM, since seq no longer
78327         needs -lm directly.
78328         * m4/xstrtod.m4 (gl_XSTRTOLD): New macro.
78329
78330         2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78331
78332         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Prefer binutils's
78333         --as-needed option if available.  Problem reported by Albert Chin in
78334         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00114.html>.
78335         However, use -Wl,--as-needed, not bare --as-needed, since HP-UX 11.11
78336         cc merely issues a bunch of annoying warnings for --as-needed
78337         (this problem was reported by Bob Proulx).  Also, try linking with
78338         -lm to detect a bug in binutils 2.16 (this problem was reported
78339         by Ralf Wildenhues).
78340
78341         2006-06-18  Jim Meyering  <jim@meyering.net>
78342
78343         Test for a bug that causes glibc's getcwd to suffer a failed assertion.
78344         * m4/getcwd-abort-bug.m4 (gl_FUNC_GETCWD_ABORT_BUG): New file and
78345         macro.
78346         * m4/getcwd.m4 (gl_FUNC_GETCWD): If we detect support for getcwd_null,
78347         also check for glibc-2.4's abort-inducing bug.
78348
78349         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Fix typo.
78350         Low-probability clean-up should be to use rmdir to get rid of
78351         the just-created directory, not unlink.
78352
78353         * m4/ftruncate.m4 (gl_FUNC_FTRUNCATE): If ftruncate is missing, make
78354         configure fail, and request a bug report to inform us about it.
78355         Add a comment that, barring reports to the contrary, in 2007 we'll
78356         assume ftruncate is universally available.
78357
78358         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78359
78360         * m4/filemode.m4 (gl_FILEMODE): Check for strmode declaration.
78361
78362         2006-03-12  Jim Meyering  <jim@meyering.net>
78363
78364         * m4/chdir-safer.m4 (gl_CHDIR_SAFER): Add same-inode.h to the list.
78365         * m4/cycle-check.m4 (gl_CYCLE_CHECK): Likewise.
78366         * m4/same.m4 (gl_SAME): Likewise.
78367         * m4/root-dev-ino.m4 (gl_ROOT_DEV_INO): Likewise.
78368
78369         2006-03-11  Eric Blake  <ebb9@byu.net>
78370
78371         * m4/double-slash-root.m4: New file, provides gl_DOUBLE_SLASH_ROOT.
78372         * m4/dirname.m4 (gl_DIRNAME): Use gl_DOUBLE_SLASH_ROOT.
78373         * m4/dos.m4 (FILE_SYSTEM_PREFIX_LEN): Move from here to dirname.h.
78374         (FILE_SYSTEM_DRIVE_PREFIX_CAN_BE_RELATIVE): New define.
78375
78376 2006-07-03  Paul Eggert  <eggert@cs.ucla.edu>
78377
78378         * lib/stdint_.h: Include <sys/types.h> after @FULL_PATH_STDINT_H@, for
78379         MacOS X 10.4.6.  Don't mention <sys/int_types.h>.  Problems
78380         reported by Mark D. Baushke, one in
78381         <http://lists.gnu.org/archive/html/bug-gnulib/2006-07/msg00015.html>.
78382
78383         Merge from coreutils.
78384
78385         * lib/.cppi-disable: Add stdint_.h.
78386         * lib/.cvsignore: Add stdint.h.
78387
78388         2006-06-30  Paul Eggert  <eggert@cs.ucla.edu>
78389
78390         * lib/xstrtod.c (XSTRTOD, DOUBLE): New macros, so that we can support
78391         both double and long double versions.
78392         (XSTRTOD): Renamed from xstrtod.  Use DOUBLE internally.
78393         * lib/xstrtold.c: New file.
78394         * lib/xstrtod.h (xstrtold): New decl.
78395
78396         2006-05-22  Paul Eggert  <eggert@cs.ucla.edu>
78397
78398         * lib/filemode.c (setst): Remove.
78399         (strmode): Rewrite to avoid setst.  This makes the code shorter,
78400         (arguably) clearer, and the generated code is a bit smaller on my
78401         Debian GNU/Linux stable x86 host.
78402
78403         2006-04-17  Paul Eggert  <eggert@cs.ucla.edu>
78404
78405         * lib/filemode.c: Include "filemode.h" first, to test the interface.
78406         Assume that filemode.h includes sys/types.h and sys/stat.h.
78407         (HAVE_ST_DM_MODE): New macro, moved here from ls.c.
78408         (ftypelet): Reorder to put common cases first, for efficiency.
78409         Add 'P', 'w'.  Remove 'M', since it's now the caller's responsibility
78410         to do 'M'.
78411         (strmode): Renamed from mode_string, and now stores 12 bytes instead
78412         of 10, for compatibility with FreeBSD.  All callers changed.
78413         (filemodestring): Now stores 12 bytes instead of 10, and sets file
78414         types that can't be deduced solely from st_mode.  First arg is now a
78415         const pointer.
78416         * lib/filemode.h (HAVE_DECL_STRMODE): Include <string.h> for strmode.
78417         (strmode): Renamed from mode_string.
78418         (filemodestring): New decl.
78419         * lib/stat-macros.h: Don't undef S_ISDOOR, since it's never buggy.
78420         (S_ISDOOR): Don't bother with S_IFDOOR, since that code is never
78421         needed.
78422         (S_ISPORT, S_ISWHT): New macros, if not already defined.
78423
78424         2006-04-12  Paul Eggert  <eggert@cs.ucla.edu>
78425
78426         * lib/fsusage.c: Don't include <inttypes.h> or <stdint.h>, since
78427         fsusage.h now does that.  Include fsusage.h first, to test interface.
78428         Prefer statvfs if it works, since it's blessed by POSIX.  Attempt
78429         at most one method (the old code could have generated decls that
78430         didn't conform to C89, not that this was ever exercised).
78431         * lib/fsusage.h: Include <inttypes.h> and <stdint.h> if they exist.
78432
78433         2006-03-19  Jim Meyering  <jim@meyering.net>
78434
78435         Work even in a chroot where d_ino values for entries in "/"
78436         don't match the stat.st_ino values for the same names.
78437         * lib/getcwd.c (__getcwd): When no d_ino value matches the target inode
78438         number, iterate through all entries again, using lstat instead.
78439         Reported by Kenshi Muto in http://bugs.debian.org/355810, and by
78440         Zouhir Hafidi in https://bugzilla.redhat.com/bugzilla/190656.
78441
78442         * lib/getcwd.c (__getcwd): Clarify a comment.
78443         Use memcpy in place of a call to strcpy.
78444
78445         2006-03-12  Jim Meyering  <jim@meyering.net>
78446
78447         * lib/fts-cycle.c (leave_dir): If cycle-check's saved dev-ino pair
78448         matches that of the current directory (which we're about to chdir ".."
78449         out of), then save the dev-ino of the parent, instead.
78450
78451         * lib/same-inode.h (SAME_INODE): New file/macro.
78452         * lib/chdir-safer.c (SAME_INODE): Remove definition.
78453         Include "same-inode.h", instead.
78454         * lib/same.c: Likewise.
78455         * lib/cycle-check.h: Include "same-inode.h".
78456         (CYCLE_CHECK_REFLECT_CHDIR_UP): Define.
78457         * lib/cycle-check.c (SAME_INODE): Remove definition.
78458         * lib/root-dev-ino.h: Include "same-inode.h".
78459
78460         2006-03-11  Eric Blake  <ebb9@byu.net>
78461
78462         * lib/same.c (same_name): s/base_name/last_component/
78463         * lib/backupfile.c (check_extension, numbered_backup): Likewise.
78464         * lib/filenamecat.c (file_name_concat): Likewise.
78465
78466         2006-03-11  Eric Blake  <ebb9@byu.net>,
78467                     Paul Eggert  <eggert@cs.ucla.edu>
78468
78469         * lib/dirname.h (FILE_SYSTEM_PREFIX_LEN): Move here from dos.m4.
78470         [FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't treat 1: as a
78471         drive prefix.
78472         (IS_ABSOLUTE_FILE_NAME): Treat all drive letters as absolute on
78473         platforms like cygwin with FILE_SYSTEM_DRIVE_PREFIX_IS_ABSOLUTE.
78474         (last_component): New method.
78475         * lib/dirname.c (dir_len): Determine when drive letters need a
78476         subsequent slash.  Preserve // when it is special.
78477         (dir_name): Don't append dot when drive letter is absolute.
78478         [TEST_DIRNAME]: Move into a full-blown gnulib test.
78479         * lib/basename.c (base_name): New semantics - malloc the result.
78480         Preserve // when it is special.  Preserve relative files that look
78481         like drive letters.
78482         (base_len): Preserve // when it is special.
78483         (last_component): New method, similar to old base_name semantics.
78484         * lib/stripslash.c (strip_trailing_slashes): Use last_component, not
78485         base_name.  Strip redundant slashes from ///.
78486
78487 2006-07-03  Jim Meyering  <jim@meyering.net>
78488
78489         * lib/cycle-check.h (CYCLE_CHECK_REFLECT_CHDIR_UP): Abort if this
78490         macro is used before the first cycle_check call.
78491
78492 2006-07-03  Eric Blake  <ebb9@byu.net>
78493
78494         * modules/dirname (Depends-on): Add xstrndup.
78495
78496 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78497
78498         * m4/stdint.m4 (gl_STDINT_H): Use more-mnemonic identifiers for
78499         test cases, so that config.log is a bit easier to follow.
78500
78501 2006-07-02  Paul Eggert  <eggert@cs.ucla.edu>
78502
78503         * lib/stdint_.h (intmax_t, uintmax_t): Prefer long to long long if
78504         both are 64 bits, since this seems to be the tradition, and this
78505         prevents gcc -Wformat from warning about usages with PRIuMAX.  If
78506         we ever run into a host that prefers long long to long in this
78507         case, we'll need another configure-time test.  Problem reported by
78508         Jim Meyering.
78509
78510 2006-07-02  Eric Blake  <ebb9@byu.net>
78511
78512         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Simplify by using AC_CHECK_DECLS.
78513
78514 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78515
78516         * modules/inttypes (Depends-on): No longer depends on stdint.
78517         * modules/stdint (Description): Say more about assumptions.
78518         Say that the fast types might differ.  Say macros are used.
78519         (Files): Remove m4/size_max.m4, m4/wchar_t.m4.  Add m4/longlong.m4.
78520         (Makefile.am): Revise list of substituted symbols to match
78521         new stdint.m4.
78522         * modules/stdint-tests (Files): Add m4/wchar_t.m4, m4/wint_t.m4.
78523         (configure.ac): Add gt_TYPE_WCHAR_T, gt_TYPE_WINT_T.
78524         * tests/test-stdint.c (verify_same_types)
78525         [! (__GNUC__ >= 2 && DO_PEDANTIC)]: Put in a decl, so that
78526         the code conforms to C99/C89.
78527         Test for WCHAR_MIN and WCHAR_MAX only if HAVE_WCHAR_T.
78528         Test for WINT_MIN and WINT_MAX only if HAVE_WINT_T.
78529
78530 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78531
78532         * m4/longlong.m4 (AC_TYPE_LONG_LONG_INT): Backport from Autoconf 2.60,
78533         but fix a bug, by requiring at least 64 bits.
78534         * m4/ulonglong.m4 (AC_TYPE_UNSIGNED_LONG_LONG_INT): Likewise.
78535         * m4/longlong.m4 (gl_AC_TYPE_LONG_LONG): Now just call
78536         AC_TYPE_LONG_LONG_INT.  This macro is obsolete and will go soon.
78537         * m4/ulonglong.m4 (gl_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
78538
78539         * m4/stdint.m4 (gl_STDINT_H): Rewrite to accommodate stdint_.h
78540         changes.  Make 2.59 a prerequisite.  Check and substitute for
78541         HAVE_LONG_LONG_INT.  Rely on Autoconf to check for stdint.h and
78542         inttypes.h.  Do not use special include files; just use the
78543         defaults.  Check for sys/inttypes.h and sys/bitypes.h in the usual
78544         way now.  Remove no-longer-needed tests for HAVE_LONG_64BIT,
78545         HAVE_LONG_LONG_64BIT, int8_t, int16_t, int32_t, int64_t, uint8_t,
78546         uint16_t, uint32_t uint64_t, int_least8_t, int_least16_t,
78547         int_least32_t, int_least64_t, uint_least8_t, uint_least16_t,
78548         uint_least32_t, uint_least64_t, int_fast8_t, int_fast16_t,
78549         int_fast32_t, int_fast64_t, uint_fast8_t uint_fast16_t,
78550         uint_fast32_t, uint_fast64_t, intptr_t, uintptr_t, intmax_t,
78551         uintmax_t, INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX,
78552         UINT16_MAX, INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN,
78553         INT64_MAX, UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX,
78554         UINT_LEAST8_MAX, INT_LEAST16_MIN, INT_LEAST16_MAX,
78555         UINT_LEAST16_MAX, INT_LEAST32_MIN, INT_LEAST32_MAX,
78556         UINT_LEAST32_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX,
78557         UINT_LEAST64_MAX, INT_FAST8_MIN, INT_FAST8_MAX, UINT_FAST8_MAX,
78558         INT_FAST16_MIN, INT_FAST16_MAX, UINT_FAST16_MAX, INT_FAST32_MIN,
78559         INT_FAST32_MAX, UINT_FAST32_MAX, INT_FAST64_MIN, INT_FAST64_MAX,
78560         UINT_FAST64_MAX, INTPTR_MIN, INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN,
78561         INTMAX_MAX, UINTMAX_MAX, PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN,
78562         SIG_ATOMIC_MAX, SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN,
78563         WINT_MAX.  Check for C99 conformance more strictly, by detecting
78564         bugs in glibc 2.4, Solaris 10, and OpenBSD 3.9.  On the other hand do
78565         not check for things that C99 does not require, e.g., int8_t.  If
78566         a test isn't needed unless <stdint.h> isn't working, and is
78567         unlikely to be needed for any other reason, then don't do it
78568         unless <stdint.h> isn't working.  Do not check for ptrdiff_t or
78569         size_t, since we assume C89 freestanding at least.  Do not check
78570         for sig_atomic_t, wchar_t, or wint_t, since the code now does
78571         the right thing even if the types are not defined.  Instead use:
78572         (gl_STDINT_TYPE_PROPERTIES): New macro.
78573         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H): Remove.  Don't bother
78574         testing whether <sys/types.h> clashes, as Autoconf does this for
78575         us now.  All uses removed.
78576         (gl_STDINT_CHECK_TYPES, gl_STDINT_MISSING_BOUND):
78577         (gl_STDINT_MISSING_BOUNDS, gl_STDINT_MISSING_BOUNDS2):
78578         (gl_CHECK_TYPE_SAME):
78579         Remove; no longer needed.
78580         (gl_STDINT_BITSIZEOF): Don't bother to check whether the type
78581         exists, since we'll return 0 anyway in that case.
78582         (gl_INTEGER_TYPE_SUFFIX, gl_STDINT_INCLUDES): New macros.
78583
78584 2006-07-01  Paul Eggert  <eggert@cs.ucla.edu>
78585
78586         * lib/stdint_.h (_GL_STDINT_H): Renamed from _STDINT_H, to avoid
78587         possible collision with system files.
78588         (<stdio.h>, <time.h>, <wchar.h>) [defined __cplusplus && ! defined
78589         __STDC_CONSTANT_MACROS)]: Do not include, since we don't need
78590         WCHAR_MIN and WCHAR_MAX in this case.
78591         (<stddef.h>): Do not include; no longer needed.
78592         (<sys/types.h>): Include if @HAVE_SYS_TYPES_H@, not if
78593         (defined(__OpenBSD__) || defined(__bsdi__) || defined(__sgi)).
78594         (<sys/inttypes.h>): Include if @HAVE_SYS_INTTYPES_H@ &&
78595         !@HAVE_INTTYPES_H@, not if (defined(__FreeBSD__)
78596         && (__FreeBSD__ >= 3) && (__FreeBSD__ <= 4)).
78597         (__STDINT_H__) [@HAVE_STDINT_H@ && defined __sgi && ! defined
78598         __c99]: Define, to work around IRIX <stdint.h> incompatibility.
78599         (@FULL_PATH_STDINT_H@) [!(defined(__sgi) && @HAVE_INTTYPES_H@ &&
78600         !defined(__c99))]: Include in this case too, since it's harmless
78601         now.
78602         (<inttypes.h>) [@HAVE_INTTYPES_H@]: Include, since it's no longer
78603         dangerous to do so.
78604         (@FULL_PATH_INTTYPES_H@) [(defined(__hpux) || defined(_AIX)) &&
78605         @HAVE_INTTYPES_H@]: Do not include, since we now include <inttypes.h>.
78606         (_STDINT_MIN, _STDINT_MAX): New macros.
78607         (int8_t, uint8_t, int16_t, uint16_t, int32_t, uint32_t, int64_t):
78608         (uint64_t, int_least8_t, uint_least8_t, int_least16_t):
78609         (uint_least16_t, int_least32_t, uint_least32_t, int_least64_t):
78610         (uint_least64_t, int_fast8_t, uint_fast8_t, int_fast16_t):
78611         (uint_fast16_t, int_fast32_t, uint_fast32_t, int_fast64_t):
78612         (uint_fast64_t, intptr_t, uintptr_t, intmax_t, uintmax_t): Now
78613         macros, not typedefs; this simplifies things quite a bit.
78614         Use long int for all types narrower than int64_t.
78615         (intmax_t, uintmax_t, INTMAX_C, UINTMAX_C):
78616         Define in terms of long long int or int64_t or long int,
78617         not int64_t or int32_t.  This saves some compile-time testing.
78618         (INT8_MIN, INT8_MAX, UINT8_MAX, INT16_MIN, INT16_MAX, UINT16_MAX):
78619         (INT32_MIN, INT32_MAX, UINT32_MAX, INT64_MIN, INT64_MAX):
78620         (UINT64_MAX, INT_LEAST8_MIN, INT_LEAST8_MAX, UINT_LEAST8_MAX):
78621         (INT_LEAST16_MIN, INT_LEAST16_MAX, UINT_LEAST16_MAX):
78622         (INT_LEAST32_MIN, INT_LEAST32_MAX, UINT_LEAST32_MAX):
78623         (INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX, INT_FAST8_MIN):
78624         (INT_FAST8_MAX, UINT_FAST8_MAX, INT_FAST16_MIN, INT_FAST16_MAX):
78625         (UINT_FAST16_MAX, INT_FAST32_MIN, INT_FAST32_MAX, UINT_FAST32_MAX):
78626         (INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTPTR_MIN):
78627         (INTPTR_MAX, UINTPTR_MAX, INTMAX_MIN, INTMAX_MAX, UINTMAX_MAX):
78628         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78629         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78630         undef any previous version and define our own version, for
78631         simplicity and consistency with the new macros for types.
78632         (PTRDIFF_MIN, PTRDIFF_MAX, SIG_ATOMIC_MIN, SIG_ATOMIC_MAX):
78633         (SIZE_MAX, WCHAR_MIN, WCHAR_MAX, WINT_MIN, WINT_MAX):
78634         Simplify definitions by using _STDINT_MIN and _STDINT_MAX
78635         where appropriate.  Rely on new symbols @PTRDIFF_T_SUFFIX@,
78636         @SIG_ATOMIC_T_SUFFIX@, @SIZE_T_SUFFIX@, @WCHAR_T_SUFFIX@,
78637         @WINT_T_SUFFIX@ to keep things simple here.
78638         (UINT8_C, UINT16_C, UINT32_C, INT64_C, UINT64_C):
78639         Simplify by assuming typical 8/16/32/64 host, since we're
78640         already doing that elsewhere anyway.
78641         Use (LONG_MAX >> 31 >> 31 == 1) rather than @HAVE_LONG_64BIT@,
78642         and assume long long int is 64 bits if available.  This
78643         speeds up 'configure'.
78644
78645 2006-07-01  Eric Blake  <ebb9@byu.net>
78646
78647         * m4/stdarg.m4 (gl_STDARG_H): Use proper AH_VERBATIM.
78648         Reported by Andreas Buening.
78649
78650 2006-07-01  Eric Blake  <ebb9@byu.net>
78651
78652         * m4/stdarg.m4 (gl_STDARG_H): Properly parenthesize gl_va_copy.
78653
78654 2006-06-30  Jim Hyslop  <jhyslop@dreampossible.ca>  (tiny change)
78655
78656         * lib/getaddrinfo.c: fixed typo
78657
78658 2006-06-29  Jim Meyering  <jim@meyering.net>
78659
78660         * modules/strftime (Maintainer): Add my name, since with the
78661         FPRINTFTIME changes strftime.c has forked from glibc.
78662
78663 2006-06-29  Eric Blake  <ebb9@byu.net>
78664
78665         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): Use AC_C_INLINE.
78666
78667 2006-06-29  Eric Blake  <ebb9@byu.net>
78668
78669         * m4/sys_stat_h.m4 (gl_HEADER_SYS_STAT_H): New file.
78670
78671 2006-06-29  Eric Blake  <ebb9@byu.net>
78672
78673         * lib/stat_.h: New file.
78674
78675 2006-06-29  Eric Blake  <ebb9@byu.net>
78676
78677         * lib/stat_.h (rpl_mkdir): Declare inline, to avoid warnings about
78678         unused static function.
78679
78680 2006-06-29  Eric Blake  <ebb9@byu.net>
78681
78682         * doc/functions.texi (Function Portability): Document missing lstat
78683         on mingw.
78684
78685 2006-06-29  Eric Blake  <ebb9@byu.net>
78686
78687         * MODULES.html.sh: Add sys_stat.
78688         * modules/sys_stat: New module.
78689         * modules/mkstemp (Depends-on): Add sys_stat.
78690
78691 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78692
78693         * m4/strftime.m4: Don't call AC_FUNC_STRFTIME.
78694
78695 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78696
78697         * m4/c-bs-a.m4: Removed.
78698
78699 2006-06-29  Derek R. Price  <derek@ximbiot.com>
78700
78701         * lib/strftime.c: Assume strftime() exists.
78702
78703 2006-06-29  Derek Price  <derek@ximbiot.com>
78704
78705         * modules/c-bs-a: Removed - \a is C89.
78706         * MODULES.html.sh: Remove c-bs-a.
78707
78708 2006-06-29  Bruno Haible  <bruno@clisp.org>
78709
78710         * modules/wcwidth (License): Change to LGPL.
78711
78712 2006-06-28  Simon Josefsson  <jas@extundo.com>
78713
78714         * tests/test-getaddrinfo.c: Test getnameinfo too.  Call WSAStartup
78715         on _WIN32.
78716
78717         * modules/getaddrinfo (Depends-on): Add inet_ntop, needed by
78718         getnameinfo.
78719
78720 2006-06-28  Simon Josefsson  <jas@extundo.com>
78721
78722         * m4/getaddrinfo.m4: Look for getnameinfo prototypes too.
78723
78724 2006-06-28  Simon Josefsson  <jas@extundo.com>
78725
78726         * lib/getaddrinfo.c: Try to load ws2_32.dll on Windows, to find the
78727         functions there.  It will succeed on Windows XP, but on Windows
78728         2000 and (presumably) earlier, it will fail, and use the internal
78729         re-implementation.
78730         (use_win32_p): New function.
78731         (getaddrinfo): Use strtoul on servname, to support numeric ports.
78732         Support AI_NUMERICSERV to disable getservbyname.
78733         (getnameinfo): New function, only supports
78734         NI_NUMERICHOST|NI_NUMERICSERV for now.
78735
78736         * lib/getaddrinfo.h: Test and check for AI_* flags separately, MinGW
78737         only have some of them.  Add AI_NUMERICSERV.  Add prototype for
78738         getnameinfo.
78739
78740 2006-06-28  Eric Blake  <ebb9@byu.net>
78741
78742         * modules/wcwidth: New file.
78743         * modules/mbchar (Depends-on): Add wcwidth.
78744         * modules/mbswidth (Depends-on): Add wcwidth.
78745         * MODULES.html.sh: Add wcwidth.
78746
78747 2006-06-28  Eric Blake  <ebb9@byu.net>
78748
78749         * m4/mbswidth.m4 (gl_MBSDWIDTH): Move wcwidth from here...
78750         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): ...to this new file.
78751
78752 2006-06-28  Eric Blake  <ebb9@byu.net>
78753
78754         * lib/xvasprintf.h: Fix comments.
78755
78756 2006-06-28  Eric Blake  <ebb9@byu.net>
78757
78758         * lib/mbchar.h (wcwidth): Include wcwidth.h.
78759         * lib/mbswidth.c (wcwidth): Move from here...
78760         * lib/wcwidth.h: ...to this new file.
78761
78762 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78763
78764         * m4/savedir.m4: Remove AC_FUNC_CLOSEDIR_VOID requirement.
78765
78766         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Don't require AC_C_CONST, since
78767         it's obsolete.
78768         * m4/strftime.m4 (gl_FUNC_GNU_STRFTIME): Likewise.
78769
78770 2006-06-28  Derek R. Price  <derek@ximbiot.com>
78771
78772         * lib/savedir.c (CLOSEDIR): Remove.  All uses changed to closedir.
78773         Autoconf 2.60 says this stuff was obsolete.
78774
78775 2006-06-28  Bruno Haible  <bruno@clisp.org>
78776
78777         * modules/wcwidth (Files): Add m4/wchar_t.m4.
78778
78779 2006-06-28  Bruno Haible  <bruno@clisp.org>
78780
78781         * m4/wcwidth.m4 (gl_FUNC_WCWIDTH): Also require AC_C_INLINE and
78782         gt_TYPE_WCHAR_T.
78783
78784 2006-06-28  Bruno Haible  <bruno@clisp.org>
78785
78786         * lib/wcwidth.h: Declare nothing if !HAVE_WCHAR_T. Provide a fallback
78787         declaration for wcwidth.
78788         * lib/mbswidth.c: Restore the includes of <wchar.h> and <wctypes.h>.
78789
78790 2006-06-28  Bruno Haible  <bruno@clisp.org>
78791
78792         * lib/mkdtemp.c [MINGW]: Include <io.h>.
78793         (mkdir): Define using _mkdir.
78794
78795 2006-06-28  Bruno Haible  <bruno@clisp.org>
78796
78797         * lib/getaddrinfo.h: Fix POSIX URL.
78798         * lib/getaddrinfo.c (WIN32_NATIVE): New macro. Use it instead of
78799         _WIN32.
78800         (use_win32_p): Make static.
78801         (getaddrinfo): Reject service name if it is empty or does not consist
78802         solely of decimal digits, or if its value is > 65535.
78803         (getnameinfo): Remove useless casts.
78804
78805 2006-06-27  Simon Josefsson  <jas@extundo.com>
78806
78807         * modules/sys_select: New file, suggested by Bruno Haible, Paul
78808         Eggert and Martin Lambers.
78809
78810 2006-06-27  Simon Josefsson  <jas@extundo.com>
78811
78812         * m4/sys_select_h.m4: New file, suggested by Bruno Haible, Paul
78813         Eggert and Martin Lambers.
78814
78815 2006-06-27  Bruno Haible  <bruno@clisp.org>
78816
78817         * m4/stdint.m4 (gl_STDINT_BITSIZEOF): For nonexistent types, set the
78818         result to 0, not to empty.
78819         Reported by Martin Neitzel <neitzel@sco.gaertner.de>.
78820
78821 2006-06-27  Bruno Haible  <bruno@clisp.org>
78822
78823         * lib/stdint_.h (intmax_t, uintmax_t): Undefine before typedef.
78824
78825 2006-06-26  Simon Josefsson  <jas@extundo.com>
78826
78827         * m4/inet_ntop.m4: Don't check for sys/types.h, we assume it is
78828         present.
78829
78830 2006-06-26  Paul Eggert  <eggert@cs.ucla.edu>
78831
78832         * lib/base64.c (B64): Use _ as the formal parameter, not x, to avoid
78833         bug in IBM C V6 for AIX.  Problem reported by Larry Jones in
78834         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00181.html>.
78835
78836 2006-06-26  Mark D. Baushke  <mdb@gnu.org>
78837
78838         * m4/stdint.m4 (gl_STDINT_H): Treat BSD/OS like OpenBSD.
78839
78840 2006-06-26  Bruno Haible  <bruno@clisp.org>
78841
78842         * modules/stdint (Makefile.am): Also substitute HAVE_WCHAR_H.
78843
78844 2006-06-26  Bruno Haible  <bruno@clisp.org>
78845
78846         * m4/stdint.m4 (gl_STDINT_H): Test also for <wchar.h>.
78847
78848 2006-06-26  Bruno Haible  <bruno@clisp.org>
78849
78850         * m4/stdint.m4 (gl_STDINT_H): Don't include <stdint.h> when using the
78851         SGI C compiler in pre-C99 mode.
78852         Suggested by Mark D. Baushke and Larry Jones.
78853
78854 2006-06-26  Bruno Haible  <bruno@clisp.org>
78855
78856         * lib/stdint_.h: Include <wchar.h> if necessary for WCHAR_MIN or
78857         WCHAR_MAX.
78858         Reported by Mark D. Baushke and Larry Jones.
78859
78860 2006-06-26  Bruno Haible  <bruno@clisp.org>
78861
78862         * lib/stdint_.h: Don't include <stdint.h> when using the SGI C compiler
78863         in pre-C99 mode.
78864         Suggested by Mark D. Baushke and Larry Jones.
78865
78866 2006-06-23  Simon Josefsson  <jas@extundo.com>
78867             Bruno Haible  <bruno@clisp.org>
78868
78869         * gnulib-tool (func_emit_lib_Makefile_am): Define MOSTLYCLEANDIRS.
78870         Emit mostlyclean-local rule.
78871         (func_emit_tests_Makefile_am): Likewise.
78872         * modules/sys_socket (Makefile.am): Use MOSTLYCLEANDIRS.
78873
78874 2006-06-23  Mark D. Baushke  <mdb@gnu.org>
78875
78876         * lib/stdint_.h: Treat BSD/OS like OpenBSD.
78877
78878 2006-06-23  Bruno Haible  <bruno@clisp.org>
78879
78880         * tests/test-stdint.c: Update to match ISO C 99 Technical
78881         Corrigendum 1.
78882
78883 2006-06-23  Bruno Haible  <bruno@clisp.org>
78884
78885         * m4/stdint.m4 (gl_STDINT_H): Treat IRIX like OpenBSD.
78886
78887 2006-06-23  Bruno Haible  <bruno@clisp.org>
78888
78889         * lib/stdint_.h: Treat IRIX like OpenBSD.
78890
78891 2006-06-23  Bruno Haible  <bruno@clisp.org>
78892
78893         * lib/stdint_.h (UINT8_C, UINT16_C, UINT32_C): Define according to
78894         ISO C 99 Technical Corrigendum 1.
78895
78896 2006-06-22  Simon Josefsson  <jas@extundo.com>
78897
78898         * m4/sockpfaf.m4: Include winsock2.h too, to make it work under
78899         MinGW.
78900
78901 2006-06-22  Paul Eggert  <eggert@cs.ucla.edu>
78902
78903         * lib/glob.c (collated_compare): Remove 'const' uses that weren't
78904         needed.  Some compiler complained about some of them.  Problem reported
78905         by Larry Jones in
78906         <http://lists.gnu.org/archive/html/bug-gnulib/2006-06/msg00172.html>.
78907
78908 2006-06-21  Simon Josefsson  <jas@extundo.com>
78909
78910         * tests/test-getaddrinfo.c: New file.
78911
78912         * modules/getaddrinfo-tests: New file.
78913
78914         * MODULES.html.sh: Add inet_pton.
78915
78916         * modules/inet_pton: New file.
78917
78918 2006-06-21  Simon Josefsson  <jas@extundo.com>
78919
78920         * m4/getaddrinfo.m4: Don't define WINVER.  Look for gethostbyname in
78921         -lws2_32 too.  Fixes getaddrinfo on Windows 2000, with the price
78922         of using the (limited) gnulib implementation on Windows XP.
78923
78924         * m4/inet_pton.m4: New file.
78925
78926 2006-06-21  Simon Josefsson  <jas@extundo.com>
78927
78928         * lib/getaddrinfo.c (getaddrinfo): Set ai_family in the return
78929         variable.
78930
78931         * lib/socket_.h: Don't define WINVER.
78932
78933         * lib/inet_pton.h, inet_pton.c: New file, taken from glibc but
78934         slightly modified to work in gnulib.
78935
78936 2006-06-21  Simon Josefsson  <jas@extundo.com>
78937
78938         * doc/gnulib.texi (Windows sockets): Add.
78939
78940 2006-06-21  Paul Eggert  <eggert@cs.ucla.edu>
78941
78942         * lib/read-file.c (fread_file): Start with buffer allocation of
78943         0 bytes rather than 1 byte; this simplifies the code.
78944         Don't invoke feof; it's not needed.  Refactor to avoid duplicate
78945         code to free buffer and save/restore errno.
78946         (internal_read_file): Remove unused local.
78947
78948 2006-06-20  Paul Eggert  <eggert@cs.ucla.edu>
78949
78950         * lib/openat.c (openat): Use ?:, not if, to work around GCC bug 4210
78951         <http://gcc.gnu.org/bugzilla/show_bug.cgi?id=4210>.
78952         Problem reported by Denis Excoffier in
78953         <http://lists.gnu.org/archive/html/bug-tar/2006-06/msg00023.html>.
78954
78955 2006-06-19  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
78956
78957         * modules/sys_socket, modules/socklen: Include sys/types since
78958         FreeBSD 4.x's sys/socket.h needs it.
78959
78960 2006-06-19  Simon Josefsson  <jas@extundo.com>
78961
78962         * lib/inet_ntop.c: Always build inet_ntop4, since inet_ntop6 calls it.
78963
78964 2006-06-19  Paul Eggert  <eggert@cs.ucla.edu>
78965
78966         * lib/alloca_.h (alloca) [defined alloca]: Don't define or declare.
78967
78968 2006-06-19  Bruno Haible  <bruno@clisp.org>
78969
78970         * m4/stdint.m4 (gl_STDINT_H): Enclose the values of FULL_PATH_STDINT_H
78971         and FULL_PATH_INTTYPES_H in angle brackets.
78972         Reported by Mark D. Baushke <mdb@gnu.org>.
78973
78974 2006-06-17  Eric Blake  <ebb9@byu.net>
78975
78976         * m4/rmdir-errno.m4 (gl_FUNC_FMDIR_NOTEMPTY): Assume errno.h declares
78977         errno.
78978
78979 2006-06-17  Bruno Haible  <bruno@clisp.org>
78980
78981         * m4/stdint.m4 (gl_STDINT_H) [FreeBSD >= 5]: Don't include
78982         <sys/inttypes.h>.
78983
78984 2006-06-17  Bruno Haible  <bruno@clisp.org>
78985
78986         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove test
78987         whether errno is declared. Assume <errno.h> declares errno.
78988
78989 2006-06-17  Bruno Haible  <bruno@clisp.org>
78990
78991         * lib/stdint_.h [FreeBSD >= 5]: Don't include <sys/inttypes.h>.
78992
78993 2006-06-17  Bruno Haible  <bruno@clisp.org>
78994
78995         * lib/stdint_.h (_UINT8_T, _UINT32_T, _UINT64_T): New macros. Fixes a
78996         problem on Solaris 2.5.1.
78997
78998 2006-06-16  Eric Blake  <ebb9@byu.net>
78999
79000         * lib/unsetenv.c [!defined errno]: Assume errno.h declares errno.
79001         * lib/unicodeio.c [!defined errno]: Likewise.
79002         * lib/strtol.c [!defined errno]: Likewise.
79003         * lib/strtod.c [!defined errno]: Likewise.
79004
79005 2006-06-15  Eric Blake  <ebb9@byu.net>
79006
79007         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Work in spite of -Werror.
79008
79009 2006-06-15  Eric Blake  <ebb9@byu.net>
79010
79011         * config/srclist.txt (ssize_t.m4): Lose sync.
79012
79013 2006-06-15  Bruno Haible  <bruno@clisp.org>
79014
79015         * modules/stdint (Files): Include m4/full-header-path.m4,
79016         m4/size_max.m4, m4/wchar_t.m4.
79017         (Makefile.am): Many more substitutions.
79018         * modules/stdint-tests: New file.
79019         * tests/test-stdint.c: New file.
79020
79021 2006-06-15  Bruno Haible  <bruno@clisp.org>
79022
79023         * m4/stdint.m4 (gl_STDINT_H): Rewritten to produce a complete stdint.h.
79024         (gl_HEADER_STDINT_H, gl_HEADER_INTTYPES_H, gl_STDINT_CHECK_TYPES,
79025         gl_STDINT_MISSING_BOUND, gl_STDINT_MISSING_BOUNDS,
79026         gl_STDINT_MISSING_BOUNDS2, gl_STDINT_BITSIZEOF, gl_CHECK_TYPES_SIGNED,
79027         gl_CHECK_TYPE_SAME): New macros.
79028
79029 2006-06-15  Bruno Haible  <bruno@clisp.org>
79030
79031         * m4/size_max.m4 (gl_SIZE_MAX): Make it work also when cross-compiling.
79032
79033 2006-06-15  Bruno Haible  <bruno@clisp.org>
79034
79035         * lib/stdint_.h: Rewritten to be fully auto-configured.
79036         Fixes bug on HP-UX/IA64.
79037
79038 2006-06-11  Paul Eggert  <eggert@cs.ucla.edu>
79039
79040         * lib/getdate.y (__attribute__): Don't define if already defined.
79041         Problem reported by Larry Jones.
79042         * lib/utimens.c (__attribute__): Likewise.
79043
79044 2006-06-04  Paul Eggert  <eggert@cs.ucla.edu>
79045
79046         * lib/regexec.c (group_nodes_into_DFAstates): Fix a buffer overrun
79047         reported by Andreas Schwab.
79048
79049 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79050             Bruno Haible  <bruno@clisp.org>
79051
79052         * m4/strndup.m4 (gl_FUNC_STRNDUP): Replace the AC_REPLACE_FUNCS with a
79053         check for the declaration of strnlen and a run test that exposes the
79054         AIX 5.1 strnlen bug.  In the failure case, #define strndup to
79055         rpl_strndup.
79056
79057 2006-05-30  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79058             Bruno Haible  <bruno@clisp.org>
79059
79060         * lib/strndup.c (strndup) [!_LIBC]: Don't undefine macro definition.
79061
79062 2006-05-28  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79063
79064         * m4/c-strtod.m4 (gl_C99_STRTOLD): Use a link test rather than a
79065         compile test, for Tru64 4.0D.
79066
79067 2006-05-28  Karl Berry  <karl@gnu.org>
79068
79069         * config/srclist.txt (printf-args.c): lose sync.
79070
79071 2006-05-26  Martin Lambers  <marlam@marlam.de>
79072
79073         * lib/getpass.c: Updates the test for the native W32 API, and adds
79074         missing includes, thus fixing compilation warnings.
79075
79076 2006-05-25  Sergey Poznyakoff  <gray@gnu.org.ua>
79077
79078         * lib/exclude.c (exclude_fnmatch): New function.
79079         (excluded_file_name): Call exclude_fnmatch.
79080         * lib/exclude.h (excluded_file_name): New prototype
79081
79082 2006-05-25  Paul Eggert  <eggert@cs.ucla.edu>
79083
79084         * lib/tempname.c (small_open, large_open): New macros.
79085         (__open, __open64) [!_LIBC]: Remove.
79086         (__gen_tempname): Use small_open and large_open instead of __open
79087         and __open64.  This fixes a portability bug on HP-UX 11.11i
79088         reported by Simon Wing-Tang in
79089         <http://lists.gnu.org/archive/html/bug-coreutils/2006-05/msg00114.html>.
79090
79091 2006-05-24  Bruno Haible  <bruno@clisp.org>
79092
79093         * lib/printf-args.c (printf_fetchargs): Turn NULL pointers for
79094         TYPE_STRING and TYPE_WIDE_STRING into a non-NULL replacement.
79095         Reported by Thorsten Maerz <torte@netztorte.de> via
79096         Aaron Stone <aaron@serendipity.cx>.
79097
79098 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79099
79100         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Rename cache variables to use
79101         gl_ rather than jm_.  Link, don't run, so that cross-compiles are
79102         allowed.  Check that resulting type is arithmetic.  Move AC_REQUIRE
79103         and AC_CHECK_HEADERS_ONCE outside of AC_CACHE_CHECK, since they're
79104         not really conditional on the cache.
79105         (gl_PREREQ_NANOSLEEP): Check for sys/select.h.
79106
79107 2006-05-19  Paul Eggert  <eggert@cs.ucla.edu>
79108
79109         * lib/nanosleep.c [HAVE_SYS_SELECT_H]: Include <sys/select.h>.
79110         Use the usual Autoconf way to include <time.h> and/or sys/time.h.
79111         (my_usleep): Don't mishandle maximum value.
79112
79113 2006-05-19  Jim Meyering  <jim@meyering.net>
79114
79115         * lib/getugroups.c: Correct an outdated comment.  From Bruno Haible.
79116
79117 2006-05-17  Bruno Haible  <bruno@clisp.org>
79118
79119         Cygwin portability.
79120         * lib/classpath.c (PATH_SEPARATOR) [CYGWIN]: Define as ':'.
79121
79122 2006-05-17  Bruno Haible  <bruno@clisp.org>
79123
79124         * lib/stdint_.h: Fix recognition of Cygwin.
79125
79126 2006-05-15  Bruno Haible  <bruno@clisp.org>
79127
79128         * build-aux/config.rpath: Improve support for Sun C 5.9 on Linux, based
79129         on libtool patch by Ralf Wildenhues.
79130
79131 2006-05-14  Paul Eggert  <eggert@cs.ucla.edu>
79132
79133         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Fix overly-picky
79134         test for C99 conformance; (bool) 0.5 is an integer constant
79135         expression, but (bool) -0.5 is not.  Problem reported by Fedor
79136         Sergeev in <http://forum.sun.com/jive/thread.jspa?threadID=96202>.
79137
79138 2006-05-11  Simon Josefsson  <jas@extundo.com>
79139
79140         * m4/xvasprintf.m4: Fix obvious typo.
79141
79142 2006-05-11  Jim Meyering  <jim@meyering.net>
79143
79144         * lib/sha1.c (sha1_buffer): Correct comment: s/MD5/SHA1/.  From
79145         James Lemley.
79146
79147 2006-05-10  Simon Josefsson  <jas@extundo.com>
79148
79149         * lib/md4.c: Typo fix, update copyright years.
79150         (K1, K2): Don't use L because it turn computations into 64-bit on
79151         64-bit platforms.
79152
79153 2006-05-10  Paul Eggert  <eggert@cs.ucla.edu>
79154
79155         * lib/crc.c (crc32_update): Remove unnecessary L suffix.
79156         * lib/md4.c (rol): Cast right-shift arg to uint32_t to prevent
79157         unwanted sign propagation, e.g., on hosts with 64-bit int.
79158         There still are some problems with reeelly weird theoretical hosts
79159         (e.g., 33-bit int) but it's not worth worrying about now.
79160         * lib/sha1.c (rol): Likewise.
79161         (K1, K2, K3, K4): Remove unnecessary L suffix.
79162
79163 2006-05-10  Bruno Haible  <bruno@clisp.org>
79164
79165         * lib/des.c: Cast to avoid warnings.
79166
79167 2006-05-09  Bruno Haible  <bruno@clisp.org>
79168
79169         * modules/xvasprintf (Files): Add m4/xvasprintf.m4.
79170         (Depends-on): Depend also on xsize, stdarg.
79171         (configure.ac): Add gl_XVASPRINTF.
79172
79173 2006-05-09  Bruno Haible  <bruno@clisp.org>
79174
79175         * m4/xvasprintf.m4: New file.
79176
79177 2006-05-09  Bruno Haible  <bruno@clisp.org>
79178
79179         * lib/xvasprintf.c: Include limits.h, string.h, xsize.h.
79180         (EOVERFLOW): Define fallback value.
79181         (xstrcat): New function.
79182         (xvasprintf): Recognize the special case of a string concatenation.
79183
79184 2006-05-08  Eric Blake  <ebb9@byu.net>
79185
79186         * gnulib-tool (func_version): Base copyright year on CVS date.
79187         (func_emit_copyright_notice): New function.
79188         (func_emit_lib_Makefile_am): Use it.
79189         (func_emit_tests_Makefile_am): Likewise.
79190         (func_import): Likewise.
79191
79192 2006-05-08  Bruno Haible  <bruno@clisp.org>
79193
79194         * modules/stdarg: New file.
79195         * MODULES.html.sh (func_all_modules): Add section for <stdarg.h>.
79196
79197 2006-05-08  Bruno Haible  <bruno@clisp.org>
79198
79199         * m4/stdarg.m4: New file, from GNU gettext.
79200
79201 2006-05-08  Bruno Haible  <bruno@clisp.org>
79202
79203         * config/srclist.txt (build-aux/config.rpath): different from latest
79204         release.
79205
79206 2006-05-08  Bruno Haible  <bruno@clisp.org>
79207
79208         * build-aux/config.rpath: Add support for Sun C 5.9 on Linux.
79209
79210 2006-05-05  Jim Meyering  <jim@meyering.net>
79211
79212         * m4/warning.m4: New file, derived from bison's file by the same name.
79213
79214 2006-05-03  Bruno Haible  <bruno@clisp.org>
79215
79216         * lib/stdint_.h: Shorter URL.
79217         * lib/inttypes.h: Likewise.
79218
79219 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79220
79221         * modules/inttypes (Maintainer): Change from Derek Price to 'all'.
79222
79223 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79224
79225         * lib/verify.h: Document the internals better.  Most of this change
79226         was written by Bruno Haible.
79227
79228 2006-05-02  Paul Eggert  <eggert@cs.ucla.edu>
79229
79230         * doc/verify.texi: New file, partly based on a proposal by
79231         Bruno Haible.
79232
79233 2006-05-02  Bruno Haible  <bruno@clisp.org>
79234
79235         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Move the include_next
79236         test from here...
79237         * m4/_inttypes_h.m4 (gl_INTTYPES_H): ... to here.
79238
79239 2006-04-29  Bruno Haible  <bruno@clisp.org>
79240
79241         * lib/gcd.c: Use WORD_T and GCD instead of unsigned long and gcd.
79242         Suggested by Oskar Liljeblad <oskar@osk.mine.nu>.
79243
79244 2006-04-29  Bruno Haible  <bruno@clisp.org>
79245
79246         * gnulib-tool: Make --update option actually work.
79247
79248 2006-04-29  Bruno Haible  <bruno@clisp.org>
79249
79250         * doc/gcd.texi: New file.
79251         * doc/gnulib.texi: Include it.
79252
79253 2006-04-25  Paul Eggert  <eggert@cs.ucla.edu>
79254
79255         * lib/getdate.y (get_date): When adding relative date, start with the
79256         initial time, not with the result of the first mktime call.
79257
79258 2006-04-25  Bruno Haible  <bruno@clisp.org>
79259
79260         * gnulib-tool (func_import): Output the include directives in three
79261         blocks, sorted separately.
79262         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79263
79264 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79265
79266         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use prototype
79267         to define main with arguments, for C++.  Reported by Eric Blake.
79268         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC):
79269         Prefer 'int main ()' to 'int main (void)', for C++.
79270         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Likewise.
79271         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Specify a return type
79272         for 'main', for C99 and C++.
79273
79274 2006-04-24  Paul Eggert  <eggert@cs.ucla.edu>
79275
79276         * m4/fsusage.m4 (gl_FILE_SYSTEM_USAGE): Use return, not exit.
79277         Don't assume that exit status -1 is valid.
79278         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79279         * m4/putenv.m4 (gl_FUNC_PUTENV): Likewise.
79280         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Likewise.
79281         * m4/readdir.m4 (GL_FUNC_READDIR): Include <stdlib.h>.
79282         * m4/rename.m4 (vb_FUNC_RENAME): Likewise.
79283         * m4/unlink-busy.m4 (gl_FUNC_UNLINK_BUSY_TEXT): Use AC_RUN_IFELSE,
79284         not AC_TRY_RUN.  Use return, not exit.  Don't assume that
79285         functions can be used without declaring them, or that you can
79286         exit with status -1.
79287         * m4/utimes-null.m4 (gl_FUNC_UTIMES_NULL): Likewise.
79288
79289 2006-04-24  Karl Berry  <karl@gnu.org>
79290
79291         * config/srclist.txt (longdouble.m4): sync lost.
79292
79293 2006-04-24  Eric Blake  <ebb9@byu.net>
79294
79295         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Avoid unused variable warning.
79296
79297 2006-04-24  Bruno Haible  <bruno@clisp.org>
79298
79299         * m4/poll.m4 (gl_FUNC_POLL): When cross-compiling, reject also the
79300         poll() implementation in AIX.
79301         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79302
79303 2006-04-24  Bruno Haible  <bruno@clisp.org>
79304
79305         * m4/poll.m4 (gl_FUNC_POLL): Rearrange code, so that POLL_H gets
79306         assigned exactly once.
79307
79308 2006-04-23  Claudio Fontana  <claudio@gnu.org>
79309             Bruno Haible  <bruno@clisp.org>
79310
79311         * modules/gettext (Makefile.am): Add a -I flag for <libintl.h>.
79312         * gnulib-tool (func_emit_lib_Makefile_am): Emit empty default value
79313         for AM_CPPFLAGS.
79314
79315 2006-04-23  Bruno Haible  <bruno@clisp.org>
79316
79317         * modules/copy-file: Depend on unistd.
79318         * modules/execute: Likewise.
79319         * modules/fatal-signal: Likewise.
79320         * modules/findprog: Likewise.
79321         * modules/mkdtemp : Likewise.
79322         * modules/pipe: Likewise.
79323         * modules/wait-process: Likewise.
79324
79325 2006-04-23  Bruno Haible  <bruno@clisp.org>
79326
79327         * lib/fwriteerror.c (fwriteerror): Call fclose also when an error
79328         condition was already detected.
79329         Reported by Ben Pfaff <blp@cs.stanford.edu>.
79330
79331 2006-04-23  Bruno Haible  <bruno@clisp.org>
79332
79333         * lib/copy-file.c: Include <unistd.h> unconditionally.
79334         * lib/execute.c: Likewise.
79335         * lib/fatal-signal.c: Likewise.
79336         * lib/findprog.c: Likewise.
79337         * lib/mkdtemp.c: Likewise.
79338         * lib/pipe.h: Likewise.
79339         * lib/pipe.c: Likewise.
79340         * lib/wait-process.h: Likewise.
79341
79342 2006-04-23  Bruno Haible  <bruno@clisp.org>
79343
79344         * gnulib-tool (func_usage): Fix --import description. Document
79345         --update.
79346         (func_import): Create temporary file in a temporary directory, if
79347         --dry-run is specified. Silence errors from 'grep' when there are no
79348         m4 files in $m4dir.
79349         (func_create_testdir): Silence errors from 'grep' when there are no
79350         m4 files in $m4dir.
79351         Reported by Karl Berry <karl@freefriends.org>.
79352
79353 2006-04-20  Bruno Haible  <bruno@clisp.org>
79354
79355         * m4/argp.m4 (gl_ARGP): Don't call AC_CHECK_DECLS_ONCE with more than
79356         one argument, so that the code will be portable to Autoconf 2.60.
79357         * m4/getlogin_r.m4 (gl_PREREQ_GETLOGIN_R): Likewise.
79358         * m4/getpass.m4 (gl_PREREQ_GETPASS): Likewise.
79359         * m4/unlocked-io.m4 (gl_FUNC_GLIBC_UNLOCKED_IO): Likewise.
79360
79361 2006-04-19  Derek Price  <derek@ximbiot.com>
79362             Eric Blake  <ebb9@byu.net>
79363
79364         * m4/full-header-path.m4 (gl_FULL_HEADER_PATH): Use </full/path.h>
79365         rather than "/full/path.h".  Update comment to match.  Shorten &
79366         generalize m4_translit call via AS_TR_CPP.
79367
79368 2006-04-19  Derek Price  <derek@ximbiot.com>
79369             Eric Blake  <ebb9@byu.net>
79370
79371         * lib/inttypes.h: Correct grammar in comment.
79372
79373 2006-04-18  Derek Price  <derek@ximbiot.com>
79374             Paul Eggert  <eggert@cs.ucla.edu>
79375
79376         * modules/inttypes: New file.
79377         * modules/strtoimax, modules/strtoumax: Depend on inttypes.
79378
79379 2006-04-18  Derek Price  <derek@ximbiot.com>
79380             Paul Eggert  <eggert@cs.ucla.edu>
79381
79382         * m4/_inttypes_h.m4, m4/full-header-path.m4, m4/include_next.m4:
79383         New files.
79384
79385 2006-04-18  Derek Price  <derek@ximbiot.com>
79386             Paul Eggert  <eggert@cs.ucla.edu>
79387
79388         * lib/inttypes.h: New file.
79389         * lib/strtoimax.c: Assume <inttypes.h>.
79390
79391 2006-04-15  Paul Eggert  <eggert@cs.ucla.edu>
79392
79393         * lib/utimens.c (futimens): glibc futimesat messes up if /proc
79394         isn't mounted.  Problem reported by Kir Kolyshkin.
79395
79396 2006-04-13  Paul Eggert  <eggert@cs.ucla.edu>
79397
79398         * lib/regcomp.c (init_dfa): Don't use wchar_t or wctype_t if
79399         RE_ENABLE_I18N is not defined.  Problem reported by Mark D. Baushke via
79400         Derek R. Price.
79401         * lib/regex.h (RE_DUP_MAX): Update comment to match current
79402         implementation.
79403
79404 2006-04-12  Eric Blake  <ebb9@byu.net>
79405
79406         * modules/time_r (Makefile.am): Remove lib_SOURCES line, as this
79407         is now done automatically by the corresponding Autoconf macro.
79408
79409 2006-04-11  Paul Eggert  <eggert@cs.ucla.edu>
79410
79411         * m4/time_r.m4 (gl_TIME_R): Add AC_LIBSOURCES for time_r.c and
79412         time_r.h.
79413
79414 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79415
79416         Merge regex changes from libc, removing some of our
79417         POSIX-conformance changes that were rejected and redoing them in a
79418         less-intrusive way.
79419
79420         * lib/regcomp.c (re_compile_internal, init_dfa):
79421         Length arg is now size_t, not Idx.  All uses changed.
79422         (peek_token): Forward decl now says internal_function.
79423         (__re_error_msgid, __re_error_msgid_idx):
79424         Now static rather than extern with attribute_hidden.
79425         (re_compile_pattern) [!defined _LIBC]: Use K&R-style defn.
79426         For some reason libc prefers K&R style defns for external functions.
79427         (regerror) [!defined _LIBC]: Likewise.
79428         (re_set_syntax, re_compile_fastmap, regcomp, regfree, re_comp):
79429         (seek_collating_symbol_entry, lookup_collation_sequence_value):
79430         (build_range_exp, build_collating_symbol):
79431         Use K&R-style defn.
79432         (re_compile_fastmap): Use '\0' to memset, not 0.
79433         (utf8_sb_map): Make the calculations more obvious.
79434         (init_dfa, parse_bracket_exp, build_charclass_op):
79435         Call calloc and cast result, as glibc does.
79436         (init_word_char, fetch_token, peek_token, peek_token_bracket):
79437         (build_range_exp, build_collating_symbol):
79438         Now internal functions.
79439
79440         * lib/regex.c [!defined _LIBC]: Allow compiling with C++ compilers.
79441
79442         * lib/regex.h (__USE_GNU_REGEX): New macro.  Don't depend on
79443         _REGEX_SOURCE any more; depend on _GNU_SOURCE instead.
79444         Don't depend on VMS; depend on __VMS instead, for POSIX
79445         namespace cleanness.
79446         (regoff_t): Define to ssize_t, not long int.
79447
79448         Remove the REG_ macros named below.  Instead, make the old names
79449         (e.g., RE_BACKSLASH_ESCAPE_IN_LISTS) visible only if
79450         __USE_GNU_REGEX.
79451         (REG_BACKSLASH_ESCAPE_IN_LISTS):
79452         (REG_BK_PLUS_QM, REG_CHAR_CLASSES, REG_CONTEXT_INDEP_ANCHORS):
79453         (REG_CONTEXT_INDEP_OPS, REG_CONTEXT_INVALID_OPS):
79454         (REG_DOT_NEWLINE, REG_DOT_NOT_NULL, REG_HAT_LISTS_NOT_NEWLINE):
79455         (REG_INTERVALS, REG_LIMITED_OPS, REG_NEWLINE_ALT):
79456         (REG_NO_BK_BRACES, REG_NO_BK_PARENS, REG_NO_BK_REFS):
79457         (REG_NO_BK_VBAR, REG_NO_EMPTY_RANGES):
79458         (REG_UNMATCHED_RIGHT_PAREN_ORD, REG_NO_POSIX_BACKTRACKING):
79459         (REG_NO_GNU_OPS, REG_DEBUG, REG_INVALID_INTERVAL_ORD):
79460         (REG_IGNORE_CASE, REG_CARET_ANCHORS_HERE):
79461         (REG_CONTEXT_INVALID_DUP, REG_NO_SUB, REG_SYNTAX_EMACS):
79462         (REG_SYNTAX_AWK, REG_SYNTAX_GNU_AWK, REG_SYNTAX_POSIX_AWK):
79463         (REG_SYNTAX_GREP, REG_SYNTAX_EGREP, REG_SYNTAX_POSIX_EGREP):
79464         (REG_SYNTAX_ED, REG_SYNTAX_SED, _REG_SYNTAX_POSIX_COMMON):
79465         (REG_SYNTAX_POSIX_BASIC, REG_SYNTAX_POSIX_MINIMAL_BASIC):
79466         (REG_SYNTAX_POSIX_EXTENDED, REG_SYNTAX_POSIX_MINIMAL_EXTENDED):
79467         (REG_DUP_MAX, REG_UNALLOCATED, REG_REALLOCATE, REG_FIXED):
79468         (REG_NREGS):
79469         Remove.  All uses replaced by the old RE_* names.
79470         (RE_BACKSLASH_ESCAPE_IN_LISTS):
79471         (RE_BK_PLUS_QM, RE_CHAR_CLASSES, RE_CONTEXT_INDEP_ANCHORS):
79472         (RE_CONTEXT_INDEP_OPS, RE_CONTEXT_INVALID_OPS):
79473         (RE_DOT_NEWLINE, RE_DOT_NOT_NULL, RE_HAT_LISTS_NOT_NEWLINE):
79474         (RE_INTERVALS, RE_LIMITED_OPS, RE_NEWLINE_ALT):
79475         (RE_NO_BK_BRACES, RE_NO_BK_PARENS, RE_NO_BK_REFS):
79476         (RE_NO_BK_VBAR, RE_NO_EMPTY_RANGES):
79477         (RE_UNMATCHED_RIGHT_PAREN_ORD, RE_NO_POSIX_BACKTRACKING):
79478         (RE_NO_GNU_OPS, RE_DEBUG, RE_INVALID_INTERVAL_ORD):
79479         (RE_IGNORE_CASE, RE_CARET_ANCHORS_HERE):
79480         (RE_CONTEXT_INVALID_DUP, RE_NO_SUB):
79481         Don't bother having these macros be independent of each others'
79482         values, since they no longer exist in the POSIX name space.
79483
79484         Rename the following member names back to their old names,
79485         unless !__USE_GNU_REGEX.  All uses changed back.
79486         (buffer): Renamed from re_buffer.
79487         (allocated): Renamed from re_allocated.
79488         (used): Renamed from re_used.
79489         (syntax): Renamed from re_syntax.
79490         (fastmap): Renamed from re_fastmap.
79491         (translate): Renamed from re_translate.
79492         (can_be_null): Renamed from re_can_be_null.
79493         (regs_allocated): Renamed from re_regs_allocated.
79494         (fastmap_accurate): Renamed from re_fastmap_accurate.
79495         (no_sub): Renamed from re_no_sub.
79496         (not_bol): Renamed from re_not_bol.
79497         (not_eol): Renamed from re_not_eol.
79498         (newline_anchor): Renamed from re_newline_anchor.
79499         (num_regs): Renamed from rm_num_regs.
79500         (start): Renamed from rm_start.
79501         (end): Renamed from rm_end.
79502
79503         (free_state): Move up a bit.
79504
79505         * lib/regex_internal.h (inline) [__GNUC__ < 3 && defined _LIBC]:
79506         #define to be empty.
79507         (ASCII_CHARS): New macro, replacing all uses of 0x80 and/or SBC_MAX / 2
79508         when that is what is intended.
79509         (SBC_MAX): Define to UCHAR_MAX + 1, not 256.
79510         (__re_error_msgid, __re_error_msgid_idx): Remove decls; not needed.
79511         (MAX): New macro.
79512         (re_xmalloc, re_calloc, re_xrealloc, re_x2realloc): Remove.
79513         All uses changed back to re_malloc, etc.  It's now the caller's
79514         responsibility to check for overflow; all callers changed.
79515         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc, re_xnrealloc):
79516         (re_x2nrealloc): Remove.
79517         (free_state): Remove decl.
79518
79519         * lib/regexc.c (regexec, re_match, re_search, re_match_2, re_search_2):
79520         (re_set_registers, re_exec):
79521         Use K&R-style defn.
79522
79523         2006-01-31  Roland McGrath  <roland@redhat.com>
79524
79525         * lib/regcomp.c (calc_eclosure_iter): Remove dead variables.
79526         Reported by Mike Frysinger <vapier@gentoo.org>.
79527
79528         2006-01-15  Andreas Jaeger  <aj@suse.de>
79529
79530         [BZ #1950]
79531         * lib/regex_internal.c (re_string_reconstruct): Adjust for
79532         build_wcs_upper_buffer change.
79533         (build_wcs_upper_buffer): Change return type.
79534
79535         2005-12-10  Ulrich Drepper  <drepper@redhat.com>
79536
79537         * lib/regex_internal.h: Include <stdint.h> if available.
79538
79539         2005-12-06  Paolo Bonzini  <bonzini@gnu.org>
79540
79541         * lib/regex_internal.h (SIZE_MAX): Provide a default definition.
79542
79543         2005-10-14  Ulrich Drepper  <drepper@redhat.com>
79544
79545         * lib/regcomp.c: Adjust for changed secondary hash function.
79546
79547         2005-09-30  Ulrich Drepper  <drepper@redhat.com>
79548
79549         * lib/regex.h: Pretty printing.
79550         Clean up namespace a bit.
79551
79552         2005-09-30  Jakub Jelinek  <jakub@redhat.com>
79553
79554         * lib/regexec.c (update_cur_sifted_state, check_arrival,
79555         check_arrival_add_next_nodes): Avoid using uninitialized variable.
79556
79557         2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
79558                     Ulrich Drepper  <drepper@redhat.com>
79559
79560         [BZ #1302]
79561         * lib/regex_internal.h (bitset_t): Renamed from bitset.  All uses
79562         changed.
79563         (bitset_word_t): Renamed from bitset_word.  All uses changed.
79564
79565         2005-09-22  Ulrich Drepper  <drepper@redhat.com>
79566
79567         [BZ #281]
79568         * lib/regex.h: Define RE_TRANSLATE_TYPE as unsigned char *.
79569         * lib/regcomp.c: Remove unnecessary uses of
79570         unsigned RE_TRANSLATE_TYPE.
79571         * lib/regex_internal.h: Likewise.
79572         * lib/regex_internal.c: Likewise.
79573         * lib/regexec.c: Likewise.
79574         Based on a patch by Stepan Kasal <kasal@ucw.cz>.
79575
79576         2005-09-07  Ulrich Drepper  <drepper@redhat.com>
79577
79578         * lib/regexec.c (find_recover_state): Remove unnecessary
79579         initialization.
79580         (transit_state_bkref): Make DFA a const pointer.
79581         (get_subexp): Likewise.
79582         (check_arrival): Likewise.
79583         (update_cur_sifted_state): Likewise.
79584         (re_search_internal): Likewise.
79585         (prune_impossible_nodes): Likewise.
79586         (acquire_init_state_context): Likewise.
79587         (proceed_next_node): Likewise.
79588         (set_regs): Likewise.
79589         (free_fail_stack_return): Likewise.
79590         (check_arrival_expand_ecl): Mark DFA parameter as const.
79591         (check_arrival_expand_ecl_sub): Likewise.
79592         (check_subexp_limits): Likewise.
79593         (sub_epsilon_src_nodes):  Likewise.
79594         (add_epsilon_src_nodes):  Likewise.
79595         (merge_state_array): Likewise.
79596         (update_regs): Likewise.
79597         (build_trtable): Likewise.
79598         (sift_states_backward): Mark MCTX parameter as const.
79599         (build_sifted_states): Likewise.
79600         (update_cur_sifted_state): Likewise.
79601         (sift_states_mkref): Likewise.
79602         (check_arrival_expand_ecl): Mark eclosure as const.
79603         (check_dst_limits_calc_pos_1): Likewise.
79604         * lib/regex_internal.h (re_match_context_t): Make dfa a const
79605         pointer.
79606
79607         2005-09-06  Ulrich Drepper  <drepper@redhat.com>
79608
79609         * lib/regexec.c (merge_state_with_log): Define dfa as const pointer.
79610         (transit_state_sb): Likewise.
79611         (transit_state_mb): Likewise.
79612         (sift_states_iter_mb): Likewise.
79613         (check_arrival_add_next_nodes): Likewise.
79614         (check_node_accept_bytes): Change first parameter to pointer-to-const.
79615         [_LIBC] (re_search_2_stub): Use mempcpy.
79616
79617         * lib/regex_internal.c (re_string_reconstruct): Avoid calling
79618         mbrtowc for very simple UTF-8 case.
79619
79620         * lib/regex_internal.c (re_acquire_state): Make DFA pointer arg
79621         a pointer-to-const.
79622         (re_acquire_state_context): Likewise.
79623         * lib/regex_internal.h: Adjust prototypes.
79624
79625         * lib/regex.c: Prevent using C++ compilers.
79626
79627         * lib/regex_internal.c (re_acquire_state): Minor code rearrangement.
79628         (re_acquire_state_context): Likewise.
79629
79630 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79631
79632         * modules/regex (Depends-on): Add ssize_t.
79633
79634 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79635
79636         * m4/regex.m4 (gl_REGEX): Check for new glibc interface to
79637         translation table.
79638
79639 2006-04-09  Paul Eggert  <eggert@cs.ucla.edu>
79640
79641         * doc/gnulib-tool.texi (Modified imports): pathname -> file name.
79642
79643 2006-03-29  Mark D. Baushke  <mdb@gnu.org>
79644             Bruno Haible  <bruno@clisp.org>
79645
79646         * lib/stdint_.h: On OpenBSD, don't redefine types already included in
79647         <sys/types.h> and <inttypes.h>.
79648
79649 2006-03-25  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79650
79651         * m4/argz.m4 (gl_FUNC_ARGZ): If we define `error_t', also define
79652         `__error_t_defined', so argp.h will not typedef the former.
79653
79654 2006-03-25  Paul Eggert  <eggert@cs.ucla.edu>
79655
79656         * m4/regex.m4 (gl_REGEX): Don't insist on REG_SYNTAX_POSIX_EGREP,
79657         REG_SYNTAX_EMACS, and REG_IGNORE_CASE.  Settle for the traditional
79658         glibc names.  Even if glibc is changed to conform to POSIX, the
79659         traditional names will be available anyway, since regex depends on
79660         the extensions module.  Also, fix a longstanding typo in the
79661         implementation of Spencer ERE test #75 from grep 2.3.  Problems
79662         reported by Emanuele Giaquinta.  Also, change sense of cached
79663         variable, so that the message makes sense.
79664
79665 2006-03-24  Simon Josefsson  <jas@extundo.com>
79666
79667         * lib/base64.c: Fix problems reported by Eric Blake <ebb9@byu.net>,
79668         including some doc fixes.
79669         (base64_encode_alloc): Fix +1 bug on allocation failures.
79670
79671 2006-03-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79672
79673         * lib/base64.c (base64_encode): Do not read past end of array with
79674         unsanitized input on systems with CHAR_BIT > 8.
79675
79676 2006-03-24  Eric Blake  <ebb9@byu.net>
79677
79678         * lib/time_r.c (copy_string_result): Remove, as it is no longer used.
79679
79680 2006-03-22  Karl Berry  <karl@gnu.org>
79681
79682         * config/srclist.txt (*setenv.[ch]): get from coreutils.
79683         * config/srclistvars.sh (COREUTILS): new var.
79684
79685 2006-03-17  Jim Meyering  <jim@meyering.net>
79686
79687         * m4/regex.m4 (gl_REGEX): Fix typo in last change:
79688         s/_REGEX_WIDE_OFFSETS/_REGEX_LARGE_OFFSETS/.
79689
79690 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79691
79692         * m4/regex.m4 (gl_REGEX): Don't check for off_t, since the code
79693         no longer needs it.  Instead, check that regoff_t is as least
79694         as wide as ptrdiff_t.
79695
79696         Don't define _REGEX_WIDE_OFFSETS unless using the included regex,
79697         so that our regex.h stays compatible with the installed regex.
79698         This is helpful for installers who configure --without-included-regex.
79699         Problem reported by Emanuele Giaquinta.
79700
79701 2006-03-16  Paul Eggert  <eggert@cs.ucla.edu>
79702
79703         * lib/regex.h (regoff_t) [defined _REGEX_LARGE_OFFSETS]:
79704         Typedef to long int, not to off_, as POSIX will likely change
79705         in that direction.
79706
79707 2006-03-15  Eric Blake  <ebb9@byu.net>
79708
79709         * m4/dirfd.m4 (gl_FUNC_DIRFD): Use AC_REQUIRE for AC_HEADER_DIRENT.
79710
79711 2006-03-13  Sergey Poznyakoff  <gray@gnu.org.ua>
79712
79713         * lib/argp-help.c (validate_uparams): Fix typo
79714         * lib/argp-parse.c (argp_default_options): Consistently begin help
79715         messages with a lowercase letter.
79716
79717 2006-03-11  Paul Eggert  <eggert@cs.ucla.edu>
79718
79719         * lib/time_r.h (asctime_r, ctime_r): Remove.  These functions can
79720         overrun buffers and shouldn't be used (much as gets shouldn't be
79721         used).
79722         * lib/time_r.c (asctime_r, ctime_r): Likewise.
79723
79724 2006-03-08  Simon Josefsson  <jas@extundo.com>
79725
79726         * m4/gc-random.m4: Permit 'no' as variable values and fix warnings,
79727         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79728
79729 2006-03-08  Simon Josefsson  <jas@extundo.com>
79730
79731         * m4/gc-random.m4: Call AC_CANONICAL_HOST and use $host_os instead of
79732         $target, suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79733
79734 2006-03-08  Simon Josefsson  <jas@extundo.com>
79735
79736         * lib/gc-gnulib.c (randomize): Don't open files called 'no', they
79737         signal that configure disabled the device.
79738
79739 2006-03-08  Simon Josefsson  <jas@extundo.com>
79740
79741         * build-aux/maint.mk: Fix refresh-po, to handle no translated
79742         languages.
79743
79744 2006-03-07  Simon Josefsson  <jas@extundo.com>
79745
79746         * modules/getopt (Depends-on): Add unistd.
79747
79748         * modules/unistd: New file.
79749
79750 2006-03-07  Simon Josefsson  <jas@extundo.com>
79751
79752         * modules/gc-random: New file.
79753
79754 2006-03-07  Simon Josefsson  <jas@extundo.com>
79755
79756         * m4/unistd_h.m4: New file.
79757
79758 2006-03-07  Simon Josefsson  <jas@extundo.com>
79759
79760         * m4/readline.m4 (gl_FUNC_READLINE): Rewrite the cached part of the
79761         test to be side-effect free by storing the result in the cache
79762         variable gl_cv_lib_readline, and moving the assignment of
79763         LIBREADLINE and LTLIBREADLINE outside the COMMANDS-TO-SET-IT.
79764         From Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
79765
79766 2006-03-07  Simon Josefsson  <jas@extundo.com>
79767
79768         * m4/gc-random.m4: New file, mostly from gc.m4.  Warn instead of
79769         error on missing devices (the functions will return an error).
79770
79771         * m4/gc.m4: Move random stuff to gc-random.m4
79772
79773 2006-03-07  Simon Josefsson  <jas@extundo.com>
79774
79775         * lib/unistd_.h: New file.
79776
79777 2006-03-07  Simon Josefsson  <jas@extundo.com>
79778
79779         * lib/gc-libgcrypt.c, gc-gnulib.c: Use GC_USE_RANDOM.
79780
79781 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79782
79783         * m4/unistd_h.m4 (gl_HEADER_UNISTD): Rename, to match modules file.
79784         Problem reported by Juan Manuel Guerrero.
79785
79786 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79787
79788         * lib/c-stack.c: Include unistd.h unconditionally, since we now assume
79789         the unistd module.
79790         * lib/getlogin_r.c: Likewise.
79791         * lib/getlogin_r.h: Likewise.
79792         * lib/glob.c: Likewise.
79793         * lib/pagealign_alloc.c: Likewise.
79794         * lib/unistd_.h: Remove; no longer needed.
79795
79796 2006-03-07  Paul Eggert  <eggert@cs.ucla.edu>
79797
79798         * MODULES.html.sh (Support for systems lacking POSIX:2001):
79799         Add unistd.
79800         * modules/c-stack (Depends-on): Add unistd.
79801         * modules/getlogin_r: Likewise.
79802         * modules/glob: Likewise.
79803         * modules/pagealign_alloc: Likewise.
79804         * modules/unistd (Files): Remove lib/unistd_.h.
79805         (EXTRA_DIST): Remove.
79806         (unistd.h): Create using 'echo' rather than 'cp', so that we don't
79807         need unistd_.h.
79808         (MOSTLYCLEANFILES): Remove unistd.h-t.
79809
79810 2006-03-03  Simon Josefsson  <jas@extundo.com>
79811
79812         * build-aux/maint.mk: Add several syntax checks from CoreUtils.
79813
79814 2006-03-03  Simon Josefsson  <jas@extundo.com>
79815
79816         * build-aux/maint.mk: Add refresh-po rule, based on ideas from
79817         libidn and bison.
79818
79819 2006-03-03  Simon Josefsson  <jas@extundo.com>
79820
79821         * build-aux/maint.mk: Add indent target.
79822
79823 2006-03-03  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de> (tiny change)
79824
79825         * m4/poll.m4 (gl_FUNC_POLL): If we deem poll(2) unacceptable, use
79826         our replacement poll.h in any case, to avoid a differing
79827         declaration from a system header.  Seen on AIX.
79828
79829 2006-03-01  Simon Josefsson  <jas@extundo.com>
79830
79831         * lib/readline.c: Fix typo, tiny patch from Stepan Kasal
79832         <kasal@ucw.cz>.
79833
79834 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79835
79836         * modules/gettime (Depends-on): Add extensions module.
79837         * modules/nanosleep (Depends-on): Likewise.
79838         * modules/settime (Depends-on): Likewise.
79839
79840 2006-03-01  Paul Eggert  <eggert@cs.ucla.edu>
79841
79842         * m4/clock_time.m4 (gl_CLOCK_TIME): Require gl_USE_SYSTEM_EXTENSIONS,
79843         not merely AC_GNU_SOURCE, for the benefit of Solaris 10 when compiled
79844         pedantically.
79845         * m4/nanosleep.m4 (gl_FUNC_NANOSLEEP): Likewise.
79846         * m4/timespec.m4 (gl_TIMESPEC): Likewise.
79847
79848         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Use "=" with "test",
79849         not "==".  Reported by Ralf Wildenhues.
79850
79851 2006-03-01  Karl Berry  <karl@gnu.org>
79852
79853         * doc/Copyright/request-*: new files, synced from gnuorg.
79854
79855 2006-03-01  Karl Berry  <karl@gnu.org>
79856
79857         * config/srclist.txt (Copyright/*): new entries.
79858
79859 2006-02-28  Simon Josefsson  <jas@extundo.com>
79860
79861         * lib/getopt.c: Protect #include of unistd.h, for MSVS.
79862
79863 2006-02-27  Simon Josefsson  <jas@extundo.com>
79864
79865         * lib/base64.h: Indent #define's.  From Jim Meyering
79866         <jim@meyering.net>.
79867
79868 2006-02-27  Jim Meyering  <jim@meyering.net>
79869
79870         Revert the change of 2006-02-24, so these files can continue
79871         to be sync'd from gettext.
79872         * lib/mkdtemp.c, setenv.c, unsetenv.c: *Un*-normalize inclusion
79873         of `config.h'.
79874
79875 2006-02-26  Paul Eggert  <eggert@cs.ucla.edu>
79876
79877         * modules/intprops: New file.
79878         * MODULES.html.sh (Numeric conversion functions <stdlib.h>):
79879         Add intprops.
79880         * modules/getloadavg (Files): Remove lib/intprops.h.
79881         (Depends-on): Add intprops.
79882         * modules/human: Likewise.
79883         * modules/inttostr: Likewise.
79884         * modules/openat: Likewise.
79885         * modules/sig2str: Likewise.
79886         * modules/userspec: Likewise.
79887         * modules/utimecmp: Likewise.
79888         * modules/xnanosleep: Likewise.
79889         * modules/xstrtol: Likewise.
79890
79891 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny changes)
79892
79893         * modules/xstrtod: Omit xstrtod.h, xstrtod.c; they're in LIB_SOURCES.
79894         * modules/lock-tests (TESTS): Use $(EXEEXT).
79895         * modules/tls-tests: Likewise.
79896         * modules/argp-tests: Likewise.
79897         (check_PROGRAMS): New var, replacing...
79898         (noinst_PROGRAMS, test_argp_SOURCES): Remove.
79899
79900 2006-02-24  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79901
79902         * lib/mkdtemp.c, lib/setenv.c, lib/unsetenv.c: Normalize inclusion of
79903         `config.h'.
79904
79905 2006-02-24  Paul Eggert  <eggert@cs.ucla.edu>
79906
79907         * lib/glob.c: Say "invalid" rather than "illegal" in comments.
79908
79909 2006-02-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
79910
79911         Sync from coreutils.
79912         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Require gl_FUNC_LCHMOD and
79913         gl_CHDIR_SAFER.
79914
79915 2006-02-22  Jim Meyering  <jim@meyering.net>
79916
79917         Sync from coreutils.
79918         * m4/chdir-safer.m4: New file.
79919
79920 2006-02-20  Paul Eggert  <eggert@cs.ucla.edu>
79921
79922         * lib/getcwd.c (AT_FDCWD): Work around a bug in Solaris 9 and 10, where
79923         AT_FDCWD exceeds INT_MAX.
79924         * lib/openat.h (AT_FDCWD): Likewise.
79925
79926 2006-02-17  Eric Blake  <address@hidden>
79927
79928         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Fix caching error.
79929
79930 2006-02-16  Simon Josefsson  <jas@extundo.com>
79931
79932         * modules/getaddrinfo (Depends-on): Add sys_socket.
79933
79934 2006-02-15  Simon Josefsson  <jas@extundo.com>
79935
79936         * build-aux/maint.mk: Add dsyntax-check rule.
79937
79938 2006-02-15  Eric Blake  <ebb9@byu.net>
79939
79940         * m4/sys_socket_h.m4 (gl_HEADER_SYS_SOCKET): Don't attempt using
79941         winsock2.h or ws2tcpip.h when sys/socket.h is present. Fixes
79942         'present but cannot compile' warnings on cygwin.
79943         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Use gl_HEADER_SYS_SOCKET.  Don't
79944         use ws2tcpip.h if sys/socket.h works.
79945         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Use gl_HEADER_SYS_SOCKET.
79946         (gl_GETADDRINFO): Don't use ws2tcpip.h when sys/socket.h is present.
79947
79948 2006-02-14  Simon Josefsson  <jas@extundo.com>
79949
79950         * modules/maintainer-makefile (Files): Rename.
79951
79952         * build-aux/GNUmakefile: Rename Makefile.maint to maint.mk
79953         and (the local) Makefile.cfg to maint-cfg.mk.
79954
79955         * build-aux/Makefile.maint, build-aux/maint.mk: Renamed the former
79956         to the latter.
79957
79958         * modules/maintainer-makefile: New module.
79959
79960         * build-aux/Makefile.maint: New file, from GNU CoreUtils, although
79961         severaly stripped to make it possible to build it up from scratch
79962         with reliable tests.
79963
79964         * build-aux/GNUmakefile: New file, from GNU CoreUtils with some
79965         fixes to permit overriding the default actions when configure and
79966         makefile are not available.
79967
79968 2006-02-14  Paul Eggert  <eggert@cs.ucla.edu>
79969
79970         Sync from coreutils.
79971         * modules/lstat (Depends-on): Don't depend on xalloc.
79972         (License): Change from GPL to LGPL, since this is now simply a
79973         replacement for a libc function.
79974
79975 2006-02-14  Jim Meyering  <jim@meyering.net>
79976
79977         Sync from coreutils.
79978
79979         Eliminate the unwelcome (albeit unlikely) possibility of xmalloc
79980         failure on deficient systems, and simplify gnulib lgpl dependencies.
79981         * lib/lstat.c (rpl_lstat): Rewrite to use stat() in place of the
79982         xmalloc/lstat combination.  Based on a patch from Bruno Haible.
79983
79984         * lib/xalloc-die.c: Remove unused definition of N_.
79985
79986 2006-02-14  Jim Meyering  <jim@meyering.net>
79987
79988         Sync from coreutils.
79989         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Invoke
79990         AC_CHECK_FUNCS(getmntent) unconditionally so that tests of
79991         $ac_cv_func_getmntent (e.g., in gl_LIST_MOUNTED_FILE_SYSTEMS) need not
79992         double-quote uses of that variable, to accommodate the rare case in
79993         which getmntent is available in none of the libraries checked.  This
79994         happens at least on FreeBSD 5.0.
79995
79996 2006-02-13  Simon Josefsson  <jas@extundo.com>
79997
79998         * gnulib-tool (Usage): Fix --import, from
79999         karl@freefriends.org (Karl Berry).
80000
80001 2006-02-13  Sergey Poznyakoff  <gray@gnu.org.ua>
80002
80003         * lib/argp-fmtstream.c: Restore another bugfix lost on 2005-12-12
80004
80005 2006-02-07  Sergey Poznyakoff  <gray@gnu.org.ua>
80006
80007         * lib/argp-namefrob.h: Restore changes accidentally lost during the
80008         "autoupdate" on 2005-12-12.
80009
80010 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
80011
80012         * modules/closeout (Depends-on): Remove atexit.
80013
80014 2006-02-07  Paul Eggert  <eggert@cs.ucla.edu>
80015
80016         * lib/closeout.c (close_stdout): Don't assume 'bool' converts nonzero
80017         ints to 0 or 1, as this isn't true for the stdbool.h substitute.
80018
80019 2006-02-05  Paul Eggert  <eggert@cs.ucla.edu>
80020
80021         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Don't #define
80022         __EXTENSIONS__ if this causes compilation to fail.  Problem
80023         reported by Nelson H. F. Beebe with Solaris 10 and Sun C 5.7
80024         c89 -D_XOPEN_SOURCE -D_XOPEN_SOURCE_EXTENDED.
80025
80026 2006-01-27  Paul Eggert  <eggert@cs.ucla.edu>
80027
80028         * lib/fnmatch.c (L_): Renamed from L, to work around a bug in
80029         Mac OS X 10.3.9 with GCC 3 reported by Claudio Fontana in
80030         <http://lists.gnu.org/archive/html/bug-gnulib/2006-01/msg00074.html>.
80031         All uses changed.
80032
80033 2006-01-26  Simon Josefsson  <jas@extundo.com>
80034
80035         * lib/socket_.h: Set WINVER to 0x0501, to make sure getaddrinfo
80036         prototype is visible on mingw32.
80037
80038         * lib/getaddrinfo.h: Define EAI_ADDRFAMILY and EAI_SYSTEM if not set,
80039         for mingw32.
80040
80041         * lib/gai_strerror.c, getaddrinfo.h: Protect netdb.h #include (for
80042         mingw32).
80043
80044 2006-01-26  Paul Eggert  <eggert@cs.ucla.edu>
80045
80046         * lib/fts.c (diropen): Open with O_NOCTTY | O_NONBLOCK too.  Don't
80047         attempt to open for write; this always fails, at least on POSIX
80048         hosts.  This reinstates the 2006-01-09 change, which was
80049         inadvertently removed.
80050
80051 2006-01-26  Bruno Haible  <bruno@clisp.org>
80052
80053         * gnulib-tool (func_import): Use "trap 'exit $?' instead of "trap :".
80054         Reported by Paul Eggert.
80055
80056 2006-01-26  Bruno Haible  <bruno@clisp.org>
80057             Paul Eggert  <eggert@cs.ucla.edu>
80058
80059         * lib/stdbool_.h (_Bool)
80060         [(! (defined __cplusplus || defined __BEOS__)
80061           && !defined __GNUC__
80062           && !(defined __HP_cc || defined __xlc__
80063                || (defined __SUNPRO_C && (__SUNPRO_C < 0x550 || __STDC__ == 1))
80064                || defined __sgi))]:
80065         #define to signed char in these cases too; this simplifies
80066         the code (so that we don't have to worry about HP-UX, AIX, SunPRO,
80067         etc., separately) and makes it more conservative.
80068
80069 2006-01-25  Simon Josefsson  <jas@extundo.com>
80070
80071         * m4/getaddrinfo.m4: Look for getaddrinfo inside ws2tcip.h and
80072         -lws2_32.  Protect sys/socket.h and netdb.h #include's.  Include
80073         ws2tcpip.h with WINVER=0x0501.  All for mingw32.
80074
80075 2006-01-25  Sergey Poznyakoff  <gray@gnu.org.ua>
80076
80077         * lib/argp-namefrob.h: Bugfix. Remove stray #
80078
80079 2006-01-25  Paul Eggert  <eggert@cs.ucla.edu>
80080
80081         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for xlc bug if __GCC__ too,
80082         so that we test the test.
80083         Check for yet another HP-UX cc bug involving *bool |= bool.
80084
80085 2006-01-25  Karl Berry  <karl@gnu.org>
80086
80087         * config/srclist.txt (vasnprintf.c): sync lost.
80088
80089 2006-01-25  Jim Meyering  <jim@meyering.net>
80090
80091         Sync from the stable (b5) branch of coreutils:
80092
80093         * lib/fts.c (fts_children): Don't let close() clobber errno from
80094         failed fchdir().
80095
80096         * lib/fts.c (fts_stat): When following a symlink-to-directory,
80097         don't necessarily interpret stat-fails+lstat-succeeds as indicating
80098         a dangling symlink.  That can also happen at least for ELOOP.
80099         The fix: return FTS_SLNONE only when the stat errno is ENOENT.
80100         FYI, this bug predates the inclusion of fts.c in coreutils.
80101
80102         * lib/fts.c (fts_open): Put new maxarglen declaration and uses
80103         in their own block, so pre-c99 compilers don't object.
80104
80105         Avoid the double-free (first in fts_read, second in fts_close) that
80106         would occur when an `active' directory is made inaccessible (e.g.,
80107         via chmod a-x) during a traversal.
80108         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80109         before returning.  Reproduce this failure by
80110         mkdir -p a/b; cd a; chmod a-x . b
80111         Reported by Stavros Passas.
80112
80113 2006-01-25  Jim Meyering  <jim@meyering.net>
80114
80115         * lib/fileblocks.c: Remove more useless parentheses.
80116         * lib/readutmp.h: Likewise.
80117
80118 2006-01-25  Bruno Haible  <bruno@clisp.org>
80119
80120         * lib/stdbool_.h (_Bool) [IRIX cc]: Define as 'signed char', to avoid
80121         warnings.
80122         Reported by Paul Eggert.
80123
80124 2006-01-25  Bruno Haible  <bruno@clisp.org>
80125
80126         * gnulib-tool (func_import): Use "trap :" instead of "trap -" to get
80127         rid of a trap command. For Solaris sh.
80128         Reported by Mark D. Baushke <mdb@gnu.org>.
80129
80130 2006-01-24  Simon Josefsson  <jas@extundo.com>
80131
80132         * lib/socket_.h (SHUT_WR, SHUT_RDWR): Don't hardcode, suggested by
80133         Bruno.
80134
80135 2006-01-24  Karl Berry  <karl@gnu.org>
80136
80137         * config/srclist.txt (argp-namefrob.h): sync lost.
80138
80139 2006-01-24  Jim Meyering  <jim@meyering.net>
80140
80141         * modules/openat (Files): Add lib/intprops.h.
80142         From Mark D. Baushke.
80143
80144 2006-01-24  Jim Meyering  <jim@meyering.net>
80145
80146         * m4/openat.m4 (gl_FUNC_OPENAT): Add AC_LIBSOURCES([intprops.h]).
80147         Reported by Mark D. Baushke.
80148
80149 2006-01-24  Jim Meyering  <jim@meyering.net>
80150
80151         * lib/socket_.h: Remove useless parentheses in uses of cpp `defined'.
80152
80153 2006-01-24  Bruno Haible  <bruno@clisp.org>
80154
80155         * modules/strnlen (Maintainer): Change from glibc to all.
80156
80157 2006-01-24  Bruno Haible  <bruno@clisp.org>
80158
80159         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check for IBM and HP-UX bugs.
80160         Patch by Paul Eggert.
80161
80162 2006-01-24  Bruno Haible  <bruno@clisp.org>
80163
80164         * lib/stdbool_.h (_Bool) [__cplusplus]: Don't define if the compiler
80165         already has it.
80166         Report and patch by Albert Chin-A-Young  <china@thewrittenword.com> on
80167         2005-11-26.
80168
80169         * lib/stdbool_.h (_Bool) [HP-UX cc, AIX cc,xlc]: Define as
80170         'signed char' to avoid problems with the built-in _Bool type.
80171         Reported by Paul Eggert on 2005-11-26.
80172
80173 2006-01-24  Bruno Haible  <bruno@clisp.org>
80174
80175         * gnulib-tool (func_import): Avoid constructing complicated sed
80176         expressions inside backquote.
80177         Report and solution by Mark D. Baushke <mdb@gnu.org>.
80178
80179 2006-01-23  Ulrich Drepper  <drepper@redhat.com>
80180
80181         These changes imported from libc.
80182         * lib/getopt.c: Use __fxprintf instead of inline stream orientation
80183         test and two separate function calls.
80184         * lib/strndup.c (__strndup): Add libc_hidden_def.
80185
80186 2006-01-23  Simon Josefsson  <jas@extundo.com>
80187
80188         * modules/lock-tests: Use check_PROGRAMS instead of noinst_PROGRAMS.
80189         Remove the test_*_SOURCES variable: automake infers it by default.
80190         * modules/tls-tests: Likewise.
80191
80192 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80193
80194         Work around porting bugs reported by Dieter in
80195         <http://lists.gnu.org/archive/html/bug-bison/2006-01/msg00049.html>.
80196         * lib/getopt.c (_NOPROTO): Remove; no longer needed.
80197         Include <stdlib.h> and <unistd.h> in all environments; it's safe now.
80198         Include "getopt.h" first, to check interface.
80199         (getenv): Declare only if defined HAVE_DECL_GETENV &&
80200         !HAVE_DECL_GETENV.
80201         * lib/strndup.c [!_LIBC]: Include "strndup.h" to get prototype.
80202         (__strndup): Revert to K&R-style function dfns, the glibc style.
80203         * lib/strnlen.c: Don't claim it's taken from glibc; it's not.
80204         (strnlen, __strnlen): Remove #defines and #undefs; not needed.
80205         Include strnlen.h first, to get prototype properly.
80206         (strnlen): Renamed from __strnlen.
80207         Remove weak alias.
80208
80209 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80210
80211         * m4/getopt.m4 (gl_PREREQ_GETOPT): Check for getenv decl.
80212
80213 2006-01-23  Paul Eggert  <eggert@cs.ucla.edu>
80214
80215         * config/srclist.txt: Adjust to reflect glibc reorganization.
80216         This affects only comments.
80217
80218 2006-01-22  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
80219
80220          * gnulib-tool, build-aux/csharpcomp.sh.in: Do not pass `-q' to mktemp.
80221          Reported by Bruce Korb <bkorb@gnu.org>.
80222
80223 2006-01-22  Paul Eggert  <eggert@cs.ucla.edu>
80224
80225         * lib/quotearg.c (quotearg_buffer_restyled): Add "default: break;"
80226         to pacify gcc -Wswitch-default.
80227
80228 2006-01-22  Bruno Haible  <bruno@clisp.org>
80229
80230         * lib/vasnprintf.c (VASNPRINTF): In the computation of the size of the
80231         temporary buffer for sprintf, take into account the precision also
80232         for 'd', 'i', 'u', 'o', 'x', 'X'.
80233
80234 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80235
80236         * modules/argp-tests: New module
80237         * tests/test-argp.c: New file
80238         * tests/test-argp-2.sh: New file
80239
80240 2006-01-21  Sergey Poznyakoff  <gray@gnu.org.ua>
80241
80242         * lib/argp-help.c (usage_long_opt): Do not print DOC options.
80243         (__argp_base_name): Removed
80244         * lib/argp-namefrob.h (__argp_basename): Removed definition. Was a
80245         typo.
80246         (__argp_base_name): Provide macro definition or extern declaration
80247         depending on the configuration
80248
80249 2006-01-20  Simon Josefsson  <jas@extundo.com>
80250
80251         * modules/inet_ntop (Depends-on): Depend on sys_socket.
80252
80253 2006-01-20  Simon Josefsson  <jas@extundo.com>
80254
80255         * lib/inet_ntop.h: Unconditionally include sys/socket.h.
80256
80257 2006-01-20  Paul Eggert  <eggert@cs.ucla.edu>
80258
80259         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Use -Wl,-z,ignore
80260         rather than -Xlinker -z -Xlinker ignore, as it's more portable.
80261         Suggested by Bruno Haible.
80262
80263 2006-01-20  Karl Berry  <karl@gnu.org>
80264
80265         * config/srclist.txt (argp-fmtstream.h, localcharset.c): comment out
80266         until changes propagate, I guess.
80267
80268 2006-01-19  Simon Josefsson  <jas@extundo.com>
80269
80270         * m4/socklen.m4: Look in ws2tcpip.h too, for mingw32.
80271
80272 2006-01-19  Simon Josefsson  <jas@extundo.com>
80273
80274         * lib/socket_.h: Map SHUT_RD, SHUT_WR, SHUT_RDWR correctly.
80275
80276 2006-01-19  Simon Josefsson  <jas@extundo.com>
80277
80278         * gnulib-tool: Set check_PROGRAMS.
80279
80280         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80281         modules/des-tests, modules/gc-arcfour-tests,
80282         modules/gc-arctwo-tests, modules/gc-des-tests,
80283         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80284         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80285         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80286         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80287         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80288         modules/md5-tests, modules/readline, modules/rijndael-tests: Use
80289         check_PROGRAMS instead of noinst_PROGRAMS to be able to remove
80290         test_*_SOURCES.
80291
80292 2006-01-18  Simon Josefsson  <jas@extundo.com>
80293
80294         * modules/socklen (Depends-on): Depend on sys_socket.
80295
80296 2006-01-18  Simon Josefsson  <jas@extundo.com>
80297
80298         * modules/arcfour-tests, modules/arctwo-tests, modules/crc-tests,
80299         modules/des-tests, modules/gc-arcfour-tests,
80300         modules/gc-arctwo-tests, modules/gc-des-tests,
80301         modules/gc-hmac-md5-tests, modules/gc-hmac-sha1-tests,
80302         modules/gc-md2-tests, modules/gc-md4-tests, modules/gc-md5-tests,
80303         modules/gc-pbkdf2-sha1-tests, modules/gc-rijndael-tests,
80304         modules/gc-sha1-tests, modules/gc-tests, modules/hmac-md5-tests,
80305         modules/hmac-sha1-tests, modules/md2-tests, modules/md4-tests,
80306         modules/md5-tests, modules/readline, modules/rijndael-tests: Add
80307         $(EXEEXT) to automake TESTS variable, for mingw32.
80308
80309 2006-01-17  Simon Josefsson  <jas@extundo.com>
80310
80311         * modules/socklen (Include): Need sys/socket.h.
80312
80313 2006-01-17  Bruno Haible  <bruno@clisp.org>
80314
80315         * modules/ssize_t (Include): Add <sys/types.h>.
80316
80317 2006-01-16  Paul Eggert  <eggert@cs.ucla.edu>
80318
80319         * m4/lib-ignore.m4 (gl_IGNORE_UNUSED_LIBRARIES): Don't use ldd, as
80320         it's not portable and it doesn't work with cross-compiles.
80321         Problem reported by Bruno Haible.  Fix missing-$ typo in
80322         'test "gl_cv_ignore_unused_libraries" ...' that prevented
80323         -zignore from being used with Sun's C compiler.
80324
80325 2006-01-12  Simon Josefsson  <jas@extundo.com>
80326
80327         * lib/base64.c: Fix warning, reported by Bruno Haible
80328         <bruno@clisp.org> and patch by Paul Eggert <eggert@CS.UCLA.EDU>.
80329
80330 2006-01-12  Bruno Haible  <bruno@clisp.org>
80331
80332         * modules/ldd: New file.
80333         * build-aux/ldd.sh.in: New file.
80334         * MODULES.html.sh (Support for building libraries and executables): Add
80335         ldd.
80336
80337 2006-01-12  Bruno Haible  <bruno@clisp.org>
80338
80339         * m4/ldd.m4: New file.
80340
80341 2006-01-12  Bruno Haible  <bruno@clisp.org>
80342
80343         * gnulib-tool (func_import, func_create_testdir): Don't go into an
80344         endless loop while replacing $auxdir with build-aux.
80345
80346 2006-01-11  Simon Josefsson  <jas@extundo.com>
80347
80348         * lib/stdint_.h (SIZE_MAX): Add missing (.
80349
80350 2006-01-11  Paul Eggert  <eggert@cs.ucla.edu>
80351
80352         Sync from coreutils.
80353         * lib/md5.c: Fix commentary typos.
80354         (alignof, UNALIGNED_P): No need for a GCC-specific version.
80355         * lib/md5.h (__attribute__): Remove; unused.
80356         * lib/sha1.c: Fix commentary to match md5 better.
80357         * lib/sha1.h (struct sha1_ctx): Use a word buffer, not a byte buffer,
80358         so that we don't need to worry about alignment.  All uses changed.
80359         This merges the 2005-10-28 md5 change into sha1.
80360
80361 2006-01-11  Jim Meyering  <jim@meyering.net>
80362
80363         Sync from coreutils.
80364         * lib/md5.c (OP): Fix spacing.
80365
80366 2006-01-11  Bruno Haible  <bruno@clisp.org>
80367
80368         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80369         * m4/lock.m4 (gl_LOCK_BODY): Renamed from gl_LOCK.
80370         (gl_LOCK): New macro, requiring gl_LOCK_BODY.
80371
80372 2006-01-11  Bruno Haible  <bruno@clisp.org>
80373
80374         Ensure automatic ordering between gl_LOCK and gl_ARGP.
80375         * gnulib-tool (func_import, func_create_testdir): Put gl_LOCK into
80376         the "early" section as well.
80377
80378 2006-01-11  Bruno Haible  <bruno@clisp.org>
80379
80380         Avoid "ar: no archive members specified" error on MacOS X.
80381         * gnulib-tool (func_modules_add_dummy): New function.
80382         (func_import, func_create_testdir): Invoke it.
80383
80384 2006-01-11  Bruno Haible  <bruno@clisp.org>
80385
80386         * gnulib-tool (func_import, func_create_testdir): Replace build-aux
80387         with $auxdir in AC_CONFIG_FILES statements.
80388
80389 2006-01-11  Bruno Haible  <bruno@clisp.org>
80390
80391         * gnulib-tool (func_emit_lib_Makefile_am, func_emit_tests_Makefile_am):
80392         Initialize also noinst_HEADERS to empty.
80393
80394 2006-01-11  Bruno Haible  <bruno@clisp.org>
80395
80396         * gnulib-tool (AUTOMAKEPATH, AUTOCONF, ACLOCAL, AUTOMAKE): New
80397         variables.
80398         (func_create_megatestdir): Call aclocal, autoconf, automake here, not
80399         autoreconf.
80400
80401 2006-01-11  Bruno Haible  <bruno@clisp.org>
80402
80403         * gnulib-tool (AUTOCONF, ACLOCAL, AUTOMAKE, AUTORECONF): Make
80404         overridable by the user.
80405         Reported by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
80406
80407 2006-01-10  Simon Josefsson  <jas@extundo.com>
80408
80409         * modules/sys_socket: New file.
80410
80411 2006-01-10  Simon Josefsson  <jas@extundo.com>
80412
80413         * m4/sys_socket_h.m4: New file.
80414
80415 2006-01-10  Simon Josefsson  <jas@extundo.com>
80416
80417         * lib/socket_.h: New file.
80418
80419 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80420
80421         * modules/readutmp (Maintainer): Add myself.
80422
80423 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80424
80425         * m4/memcoll.m4 (gl_MEMCOLL): Don't require AC_FUNC_MEMCMP, undoing
80426         the 2002-12-31 change.  Problem and fix reported by Bruno Haible.
80427         People who are still concerned with buggy memcmp implementations
80428         can invoke gl_FUNC_MEMCMP themselves.
80429
80430 2006-01-10  Paul Eggert  <eggert@cs.ucla.edu>
80431
80432         * lib/regex_internal.h (BITSET_WORD_BITS):
80433         Work around a bug in 64-bit PGC (before version 6.1-2), where the
80434         preprocessor mishandles large unsigned values as if they were signed.
80435         Problem reported by Claudio Fontana in
80436         <http://lists.gnu.org/archive/html/bug-gnulib/2005-12/msg00061.html>.
80437
80438 2006-01-10  Jim Meyering  <jim@meyering.net>
80439
80440         Avoid the double-free (first in fts_read, second in fts_close) that
80441         would occur when an `active' directory is made inaccessible (e.g.,
80442         via chmod a-x) during a traversal.
80443         * lib/fts.c (fts_read): After a failed fchdir, update sp->fts_cur
80444         before returning.  Reproduce this failure by
80445         mkdir -p a/b; cd a; chmod a-x . b
80446         Reported by Stavros Passas.
80447
80448         Sync from coreutils.
80449         * lib/sha1.c: Tweak grammar in a comment.
80450
80451 2006-01-10  Jim Meyering  <jim@meyering.net>
80452
80453         * m4/fpending.m4: Also include <stdio.h>, for Dragonfly.
80454         Patch by Joerg Sonnenberger.
80455
80456 2006-01-10  Bruno Haible  <bruno@clisp.org>
80457
80458         * modules/readutmp: Depend on module free.
80459         * modules/strtok_r: Depend on module restrict.
80460
80461 2006-01-10  Bruno Haible  <bruno@clisp.org>
80462
80463         * modules/gettext (configure.ac): Add an invocation of
80464         AM_GNU_GETTEXT_VERSION. Needed since autoreconf is used by gnulib-tool.
80465
80466 2006-01-10  Bruno Haible  <bruno@clisp.org>
80467
80468         * m4/localcharset.m4 (gl_LOCALCHARSET): Also test for getc_unlocked.
80469         Reported by Werner Lemberg <wl@gnu.org>.
80470
80471 2006-01-10  Bruno Haible  <bruno@clisp.org>
80472
80473         * lib/localcharset.c: Update from GNU gettext.
80474
80475 2006-01-10  Bruno Haible  <bruno@clisp.org>
80476
80477         * lib/argp.h (__const): Remove macro. Use const instead.
80478         * lib/argp-fmtstream.h (__const): Likewise.
80479         * lib/glob_.h (__const): Remove macro.
80480         * lib/glob-libc.h: Use const instead of __const.
80481
80482 2006-01-10  Bruno Haible  <bruno@clisp.org>
80483
80484         * gnulib-tool (func_emit_tests_Makefile_am): Emit an empty SUBDIR
80485         variable.
80486         Needed to avoid an automake error regarding the 'gettext' module.
80487
80488 2006-01-09  Simon Josefsson  <jas@extundo.com>
80489
80490         * modules/inet_ntop (Depends-on): Add restrict.
80491
80492 2006-01-09  Simon Josefsson  <jas@extundo.com>
80493
80494         * modules/gc-rijndael-tests (License): Put under LGPL.
80495
80496         * modules/gc-des-tests (License): Likewise.
80497
80498         * modules/gc-arcfour-tests (License): Likewise.
80499
80500         * modules/gc-arctwo-tests (License): Likewise.
80501
80502         * modules/gc-pbkdf2-sha1-tests (License): Likewise.
80503
80504         * modules/gc-hmac-sha1-tests (Files): Likewise.
80505
80506         * modules/gc-hmac-md5-tests (License): Likewise.
80507
80508         * modules/gc-sha1-tests (License): Likewise.
80509
80510         * modules/gc-md5-tests (License): Likewise.
80511
80512         * modules/gc-md4-tests (License): Likewise.
80513
80514         * modules/gc-md2-tests (License): Likewise.
80515
80516         * modules/gc-tests (License): Likewise.
80517
80518         * modules/des-tests (License): Likewise.
80519
80520         * modules/md4-tests (License): Likewise.
80521
80522         * modules/md2-tests (License): Likewise.
80523
80524 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80525
80526         Sync from coreutils:
80527
80528         * MODULES.html.sh (build_lib): New section, with new lib-ignore module.
80529         * modules/lib-ignore: New file.
80530         * modules/mkdir-p (Files): Add chdir-safer.c, chdir-safer.h, lchmod.h,
80531         chdir-safer.m4, lchmod.m4.
80532         * modules/openat: Add mkdirat.c, openat-priv.h.
80533
80534 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80535
80536         Sync from coreutils.
80537         * m4/lib-ignore.m4: New file.
80538         * m4/lchmod.m4: New file.
80539
80540 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80541
80542         Sync from coreutils.
80543         * lib/chdir-long.c (cdb_free): Don't bother trying to open directory
80544         for write access: POSIX says that must fail.
80545         * lib/fts.c (diropen): Likewise.
80546         * lib/save-cwd.c (save_cwd): Likewise.
80547         * lib/chdir-long.c (cdb_free): Open with O_NOCTTY | O_NONBLOCK as
80548         well, for minor improvements on hosts that lack O_DIRECTORY.
80549         * lib/chown.c (rpl_chown) [CHOWN_MODIFIES_SYMLINK]:
80550         Don't try O_WRONLY unless O_RDONLY failed wth EACCES.
80551         Fall back on chown if open failed with EACCES.
80552
80553         * lib/gettime.c (gettime) [!defined OK_TO_USE_1S_CLOCK]:
80554         Report an error at compile-time if only a 1-second nominal clock
80555         resolution is found.
80556
80557         * lib/lchmod.h: New file.
80558         * lib/mkdir-p.c: Include lchmod.h, lchown.h.
80559         (make_dir_parents): Use lchown rather than chown, and
80560         lchmod rather than chmod.
80561
80562         * lib/mountlist.c (ME_DUMMY): "none" and "proc" file systems are
80563         dummies too.  Problem with "none" reported by Bob Proulx.  Problem with
80564         "proc" reported by n0dalus.
80565
80566         * lib/mountlist.c: Include <limits.h>.
80567         (dev_from_mount_options)
80568         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]:
80569         New function.  It no longer assumes "dev=" has the System V meaning
80570         on Linux (since it doesn't).  It also parses "dev=" more carefully.
80571         (read_file_system_list)
80572         [defined MOUNTED_GETMNTENT1 || defined MOUNTED_GETMNTENT2]: Use it.
80573         MOUNTED_GETMNTENT2 is new here; the code didn't used to look for
80574         dev= in that case.
80575
80576         * lib/posixtm.h (PDS_PRE_2000): New macro.
80577         * lib/posixtm.c (year): Arg is now syntax_bits rather than
80578         allow_century.  All usages changed.  Reject dates outside the range
80579         1969-1999 if PDS_PRE_2000 is used.
80580
80581 2006-01-09  Paul Eggert  <eggert@cs.ucla.edu>
80582
80583         Sync from coreutils.
80584         * doc/getdate.texi (General date syntax): Invalid dates are rejected.
80585         (Time of day items): Mention the possibility of leap seconds.
80586         Problem reported by Dr. David Alan Gilbert.
80587
80588 2006-01-09  Jim Meyering  <jim@meyering.net>
80589
80590         Sync from coreutils.
80591
80592         * lib/version-etc.c (COPYRIGHT_YEAR): Update to 2006.
80593
80594         * lib/chdir-safer.h, lib/chdir-safer.c: New files.
80595
80596         * lib/modechange.c (mode_compile): Reject an invalid mode string
80597         that starts with an octal digit.  From Andreas Gruenbacher.
80598
80599         * lib/openat.c: Include "fcntl--.h" and "unistd--.h", to map open
80600         and dup to open_safer and dup_safer, respectively.
80601         (openat_permissive): Fix typo in comment.
80602
80603         * lib/openat.c: Don't include <stdlib.h>, <unistd.h>, <fcntl.h>,
80604         "gettext.h"; either no longer needed or are guaranteed by openat.h.
80605         (_): Remove; no longer needed.
80606         (openat): Renamed from rpl_openat; no need for rpl_openat
80607         since openat.h renames openat for us.
80608         Replace most of the body with a call to openat_permissive,
80609         to avoid duplicate code.
80610         Port to (probably hypothetical) environments were mode_t is
80611         wider than int.
80612         (openat_permissive): Require mode arg, so that we can check
80613         types better.  Put it just after flags.  Change cwd failure
80614         indicator from pointer-to-bool to pointer-to-errno-value.
80615         All callers changed.
80616         Invoke openat_save_fail and/or openat_restore_fail if
80617         cwd_errno is null, so that openat can call us.
80618         (openat_permissive, fdopendir, fstatat, unlinkat):
80619         Simplify errno handling to avoid some duplicate code,
80620         as it's OK to set errno on success.
80621         * lib/openat.h: Revamp code so that function macros depend on
80622         __OPENAT_PREFIX only, not also on AT_FDCWD.
80623         (openat_ro): Remove.  Caller changed to use openat_permissive.
80624         (openat_permissive): Now a macro, if not a function.
80625         (openat_restore_fail, openat_save_fail): Now always functions,
80626         since mkdirat needs them even if __OPENAT_PREFIX is defined.
80627
80628         * lib/openat-priv.h: New file, defining macros used by mkdirat.c
80629         and openat.c.
80630         * lib/mkdirat.c: Include openat-priv.h.
80631         Remove definitions of macros defined therein.
80632         * lib/openat.c: Likewise.
80633
80634         * lib/mkdirat.c (mkdirat): New file and function.
80635         * lib/openat.h (mkdirat): Declare.
80636
80637         * lib/openat.c (fdopendir): Don't change errno when returning non-NULL.
80638
80639         * lib/openat.h (openat_permissive): Declare.
80640         (openat_ro): Define.
80641
80642         * lib/openat.c (EXPECTED_ERRNO): New macro.
80643         (openat_permissive): New function -- used in remove.c rewrite.
80644         (all functions): Set errno just before returning, only if there
80645         was an actual failure.
80646         Use EXPECTED_ERRNO rather than comparing against only ENOTDIR.
80647
80648         Emulate openat-family functions using Linux's procfs, if possible.
80649         Idea and some code based on Ulrich Drepper's glibc changes.
80650
80651         * lib/openat.c: (BUILD_PROC_NAME): New macro.
80652         Include <stdio.h>, <string.h>, "alloca.h" and "intprops.h".
80653         (rpl_openat): Emulate by trying to open /proc/self/fd/%d/%s,
80654         before falling back on save_cwd and restore_cwd.
80655         (fdopendir, fstatat, unlinkat): Likewise.
80656
80657         * lib/openat.c (fstatat, unlinkat): Perform the syscall directly,
80658         skipping the save_cwd...restore_cwd overhead, if FILE is absolute.
80659
80660         * lib/openat.c (rpl_openat): Use the promoted type (int), not mode_t,
80661         as second argument to va_arg.  Otherwise, some versions of gcc
80662         warn that `if this code is reached, the program will abort'.
80663
80664 2006-01-09  Jim Meyering  <jim@meyering.net>
80665
80666         Sync from coreutils.
80667         * m4/openat.m4 (gl_FUNC_OPENAT): Require and compile mkdirat.c.
80668         Require openat-priv.h.
80669
80670 2006-01-09  Bruno Haible  <bruno@clisp.org>
80671
80672         * modules/strnlen (Include): Use strnlen.h.
80673
80674 2006-01-09  Bruno Haible  <bruno@clisp.org>
80675
80676         * m4/stdint.m4 (gl_STDINT_H): Also test for <sys/bitypes.h>.
80677
80678 2006-01-09  Bruno Haible  <bruno@clisp.org>
80679
80680         * lib/sysexit_.h (EX_OK): New macro.
80681         Suggested by Martin Lambers <marlam@marlam.de>.
80682
80683 2006-01-09  Bruno Haible  <bruno@clisp.org>
80684
80685         * lib/stdint_.h: On Linux libc4 and libc5, include <sys/bitypes.h> and
80686         don't define _STDINT_H_NEED_SIGNED_INT_TYPES.
80687
80688 2006-01-09  Bruno Haible  <bruno@clisp.org>
80689
80690         * lib/stdint_.h (SIZE_MAX): Write the value without involving negative
80691         numbers.
80692
80693 2006-01-09  Bruno Haible  <bruno@clisp.org>
80694
80695         * lib/javacomp.sh.in: Move to ../build-aux/javacomp.sh.in.
80696         * lib/javaexec.sh.in: Move to ../build-aux/javaexec.sh.in.
80697         * lib/csharpcomp.sh.in: Move to ../build-aux/csharpcomp.sh.in.
80698         * lib/csharpexec.sh.in: Move to ../build-aux/csharpexec.sh.in.
80699
80700 2006-01-09  Bruno Haible  <bruno@clisp.org>
80701
80702         * build-aux/javacomp.sh.in: New file, moved from lib/.
80703         * modules/javacomp-script (Files): Update.
80704         (configure.ac): Add AC_CONFIG_FILES invocation.
80705         (EXTRA_DIST): Remove variable.
80706
80707         * build-aux/javaexec.sh.in: New file, moved from lib/.
80708         * modules/javaexec (Files): Update.
80709         (configure.ac): Add AC_CONFIG_FILES invocation.
80710         (EXTRA_DIST): Remove javaexec.sh.in.
80711
80712         * build-aux/csharpcomp.sh.in: New file, moved from lib/.
80713         * modules/csharpcomp-script (Files): Update.
80714         (configure.ac): Add AC_CONFIG_FILES invocation.
80715         (EXTRA_DIST): Remove variable.
80716
80717         * build-aux/csharpexec.sh.in: New file, moved from lib/.
80718         * modules/csharpexec (Files): Update.
80719         (configure.ac): Add AC_CONFIG_FILES invocation.
80720         (EXTRA_DIST): Remove csharpexec.sh.in.
80721
80722 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80723
80724         Sync from coreutils.
80725
80726         Add POSIX ACL support
80727         * lib/acl.h (copy_acl, set_acl): Add declarations.
80728         * lib/acl.c (acl_entries): Add fallback implementation for POSIX ACL
80729         systems other than Linux.
80730         (chmod_or_fchmod): New function: use fchmod when possible,
80731         and chmod otherwise.
80732         (file_has_acl): Add a POSIX ACL implementation, with a
80733         Linux-specific subcase.
80734         (copy_acl): Add: copy an acl and S_ISUID, S_ISGID, and
80735         S_ISVTX from one file to another.  Fall back to fchmod/chmod when
80736         acls are unsupported.
80737         (set_acl): Add: set a file's acl and S_ISUID, S_ISGID, and
80738         S_ISVTX to a defined value.  Fall back to fchmod/chmod when acls
80739         are unsupported.
80740
80741 2006-01-09  Andreas Gruenbacher  <agruen@suse.de>
80742
80743         Sync from coreutils.
80744         * m4/acl.m4 (AC_FUNC_ACL): Add POSIX ACL and Linux-specific acl tests.
80745
80746 2006-01-07  Bruno Haible  <bruno@clisp.org>
80747
80748         * gnulib-tool (func_import): Add an AC_PROG_RANLIB dependency to
80749         gl_EARLY.
80750
80751 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80752
80753         * lib/strftime.c (tzname): Don't declare if it is already #defined.
80754         Problem reported for Mingw by Mark Junker.
80755
80756 2006-01-04  Paul Eggert  <eggert@cs.ucla.edu>
80757
80758         * README: Gnulib normally doesn't generate a tarball.
80759
80760 2006-01-03  Paul Eggert  <eggert@cs.ucla.edu>
80761
80762         * lib/xtime.h (xtime_make, xtime_nonnegative_nsec, xtime_nsec): Use
80763         long int, not int, for nanosecond counts, so that people who are
80764         used to POSIX struct timespec won't be surprised.  Reported by Jim
80765         Meyering.
80766
80767 2005-12-28  Bruno Haible  <bruno@clisp.org>
80768
80769         * build-aux/config.rpath: Update from GNU gettext.
80770
80771 2005-12-16  Jim Meyering  <jim@meyering.net>
80772
80773         * modules/fprintftime: New module.
80774         * MODULES.html.sh (Date and time <time.h>): Add fprintftime.
80775
80776 2005-12-16  Jim Meyering  <jim@meyering.net>
80777
80778         * m4/fprintftime.m4: New file.
80779
80780 2005-12-16  Jim Meyering  <jim@meyering.net>
80781
80782         * lib/fprintftime.c, lib/fprintftime.h: New files.
80783
80784 2005-12-15  Simon Josefsson  <jas@extundo.com>
80785
80786         * modules/socklen (configure.ac): Fix M4 macro name, to align with
80787         new m4/socklen.m4.
80788
80789 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80790
80791         * m4/argp.m4: Define HAVE_DECL_PROGRAM_INVOCATION_NAME and
80792         HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME
80793
80794 2005-12-10  Sergey Poznyakoff  <gray@gnu.org.ua>
80795
80796         * lib/argp-fmtstream.c (__argp_fmtstream_update): Fix coredump
80797         * lib/argp-help.c (fill_in_uparams): Check if the constructed
80798         struct uparams is valid. Fall back to the default values if it is
80799         not.
80800
80801 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80802
80803         * modules/argp (Files): Add argp-pin.c
80804         (Depends-on): dirname
80805         (lib_SOURCES): Add argp-pin.c
80806
80807 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80808
80809         * m4/argp.m4:  Check if program_invocation_name and
80810         program_invocation_short_name are declared and define appropriate
80811         macros if they are not.
80812
80813 2005-12-09  Sergey Poznyakoff  <gray@gnu.org.ua>
80814
80815         * lib/argp-help.c (__argp_base_name): New function
80816         (__argp_short_program_name): Rewrite using __argp_base_name
80817         * lib/argp-namefrob.h: Define program_invocation_name and
80818         program_invocation_short_name if requested
80819         (__argp_base_name): Add prototype
80820         * lib/argp-parse.c (argp_def): Use gettext wrappers
80821         (argp_default_parser): Use __argp_base_name
80822         * lib/argp-pin.c: New file. Defines program_invocation_name and
80823         program_invocation_short_name on systems that lack them.
80824
80825 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80826
80827         * m4/stat-time.m4 (gl_STAT_TIME): Add check for
80828         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80829         porting problem reported by Georg Schwarz in
80830         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80831
80832 2005-12-07  Paul Eggert  <eggert@cs.ucla.edu>
80833
80834         * lib/stat-time.h (STATE_TIMESPEC, STAT_TIMESPEC_NS): Add check for
80835         TYPEOF_STRUCT_STAT_ST_ATIM_IS_STRUCT_TIMESPEC, to fix IRIX 5.3
80836         porting problem reported by Georg Schwarz in
80837         <http://lists.gnu.org/archive/html/bug-coreutils/2005-12/msg00083.html>.
80838
80839 2005-12-05  Bruno Haible  <bruno@clisp.org>
80840
80841         * lib/csharpcomp.sh.in (options_csc): For -l option, add a .dll suffix.
80842         * lib/csharpcomp.c (compile_csharp_using_sscli): Likewise.
80843         Reported by Mark Junker <mjscod@gmx.de>.
80844
80845 2005-12-02  Paul Eggert  <eggert@cs.ucla.edu>
80846
80847         * m4/socklen.m4 (gl_TYPE_SOCKLEN_T): Renamed from gl_SOCKLEN_T.
80848         Use implementation from Albert Chin, with some
80849         comments/corrections by Stepan Kasal and myself.
80850
80851 2005-12-02  Bruno Haible  <bruno@clisp.org>
80852
80853         * gnulib-tool (func_import): Accept GPLed build tool modules when
80854         --lgpl is given.
80855         * modules/csharpcomp-script: New file.
80856         * modules/csharpcomp: Depend on it.
80857         * modules/javacomp-script: New file.
80858         * modules/javacomp: Depend on it.
80859         Suggested by Simon Josefsson.
80860
80861 2005-12-01  Paul Eggert  <eggert@cs.ucla.edu>
80862
80863         * m4/regex.m4 (gl_REGEX): Check whether off_t can be used in a switch
80864         statement, to work around an HP-UX 10.20 compiler bug reported by
80865         Peter O'Gorman.
80866
80867 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80868
80869         * modules/savedir (Depends-on): Add openat.
80870
80871 2005-11-29  Paul Eggert  <eggert@cs.ucla.edu>
80872
80873         * lib/stdint_.h (intmax_t) [defined intmax_t]: Do not declare.
80874         (uintmax_t) [defined uintmax_t]: Do not declare.
80875         (SIZE_MAX) [defined SIZE_MAX]: Do not define.
80876         This works around a problem if intmax_t.m4 and/or uintmax_t.m4
80877         and/or size_max.m4 are also used.  Problem reported by Mark D. Baushke.
80878         (SIZE_MAX): Define to ((size_t) -1), not (~(size_t)0), for the
80879         sake of portability to weird hosts that C allows (though we don't
80880         know of any practical examples).
80881
80882         * lib/savedir.h (fdsavedir): New decl.
80883         * lib/savedir.c (fdsavedir, savedirstream): New functions; the latter
80884         contains most of the former guts of savedir.
80885         (savedir): Use savedirstream.
80886         Include "openat.h".
80887
80888 2005-11-25  Paul Eggert  <eggert@cs.ucla.edu>
80889
80890         * modules/obstack (Files): Add m4/ulonglong.m4.
80891         Problem reported by Davide Angelocola.
80892
80893 2005-11-15  Paul Eggert  <eggert@cs.ucla.edu>
80894
80895         * lib/xstrtod.c: Don't bother with #pragma STDC FENV_ACCESS ON, as
80896         coreutils no longer futzes with rounding modes.
80897
80898 2005-11-14  Jim Meyering  <jim@meyering.net>
80899
80900         * lib/mkstemp-safer.c: Include <config.h>, required for possible
80901         replacement of mkstemp.
80902
80903 2005-11-10  Simon Josefsson  <jas@extundo.com>
80904
80905         * lib/readline.c: Remove EOL.
80906
80907 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80908
80909         * modules/gethrxtime (Depends-on): Add gettime.
80910
80911 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80912
80913         * m4/gethrxtime.m4 (gl_PREREQ_GETHRXTIME): Don't require AC_HEADER_TIME
80914         or gettimeofday; no longer needed.
80915
80916 2005-11-10  Paul Eggert  <eggert@cs.ucla.edu>
80917
80918         * lib/gethrxtime.c: Include "timespec.h" rather than the sys/time /
80919         time business.
80920         (gethrxtime) [! (HAVE_NANOUPTIME
80921         || (defined CLOCK_MONOTONIC && HAVE_CLOCK_GETTIME)
80922         || HAVE_MICROUPTIME)]: Fall back on gettime rather than rolling
80923         our own approximation.
80924
80925 2005-11-08  Eric Blake  <ebb9@byu.net>
80926
80927         * lib/inet_ntop.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80928
80929 2005-11-08  Eric Blake  <ebb9@byu.net>
80930
80931         * lib/getaddrinfo.h: Use #if !, not #ifndef, for AC_CHECK_DECLS.
80932
80933 2005-11-04  Bruno Haible  <bruno@clisp.org>
80934
80935         * gnulib-tool: Implement --update mode.
80936
80937 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80938
80939         Fix porting problem reported by Theodoros V. Kalamatianos.
80940         * lib/utimens.c (futimens) [HAVE_WORKING_UTIMES && HAVE_FUTIMES]:
80941         Don't assume that futimes failing means we must fail.
80942
80943 2005-10-30  Paul Eggert  <eggert@cs.ucla.edu>
80944
80945         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Revamp wording and local
80946         variables to suggest the intended function of the PATH_MAX check.
80947
80948 2005-10-30  Kean Johnston  <jkj@sco.com>
80949
80950         Trivial changes to support SCO systems.
80951         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Check for MAXPATHLEN as well
80952         as PATH_MAX.
80953         * m4/fpending.m4 (gl_FUNC_FPENDING): Correct check for SCO systems,
80954         where __ptr is null when no I/O is pending.
80955
80956 2005-10-29  Paul Eggert  <eggert@cs.ucla.edu>
80957
80958         * lib/getcwd.c (__getcwd): Don't assume that system calls after readdir
80959         leave errno alone.  Problem reported by Dmitry V. Levin.
80960
80961 2005-10-28  Simon Josefsson  <jas@extundo.com>
80962
80963         * tests/test-gc-md4.c, tests/test-gc-md5.c, tests/test-gc-sha1.c:
80964         Test more.
80965
80966         * tests/test-gc-md2.c, tests/test-md2.c: New files.
80967
80968         * modules/md2, modules/md2-tests: New files.
80969
80970 2005-10-28  Simon Josefsson  <jas@extundo.com>
80971
80972         * m4/inet_ntop.m4: More tests.
80973
80974         * m4/gc-md2.m4, md2.m4: New file.
80975
80976 2005-10-28  Simon Josefsson  <jas@extundo.com>
80977
80978         * lib/inet_ntop.h, inet_ntop.c: Make it work under mingw32: Add
80979         "restrict" keywords, as per POSIX.  Protect the function
80980         declaration around HAVE_DECL_INET_NTOP rather than HAVE_INET_NTOP.
80981         Don't use K&R prototypes.  Check the sprintf return values.
80982         Re-define EAFNOSUPPORT if not present.  Indent.
80983
80984         * lib/md5.h, md5.c: Simplify buffer handling visavi alignment,
80985         suggested by Bruno Haible <bruno@clisp.org>.
80986
80987         * lib/gc-gnulib.c, gc-libgcrypt.c: Check calloc return value.
80988
80989         * lib/gc.h: Add MD2 and RMD160 length defines.  Add prototypes.
80990
80991         * lib/gc-libgcrypt.c: Add MD2 (which is not available through
80992         libgcrypt).
80993
80994         * lib/gc-gnulib.c: Add MD2.  Implement gc_hash_* API.
80995
80996         * lib/md2.h, lib/md2.c: New files.
80997
80998 2005-10-28  Paul Eggert  <eggert@cs.ucla.edu>
80999
81000         * lib/savedir.c (savedir): Don't assume that xrealloc etc. leave
81001         errno alone.  Problem reported by Frederic Jolliton.
81002
81003 2005-10-27  Paul Eggert  <eggert@cs.ucla.edu>
81004
81005         * modules/verify (License): Change from GPL to LGPL.  This is a
81006         tiny module and there are apparently near-equivalents that are
81007         under the BSD license.
81008
81009 2005-10-24  Simon Josefsson  <jas@extundo.com>
81010
81011         * modules/sha1: Relicense to LGPL.
81012
81013 2005-10-24  Simon Josefsson  <jas@extundo.com>
81014
81015         * lib/md4.h: Shrink buffer size, now that we changed the type.
81016
81017 2005-10-23  Simon Josefsson  <jas@extundo.com>
81018
81019         * gnulib-tool (func_import): Fix --tests-base.
81020
81021 2005-10-22  Simon Josefsson  <jas@extundo.com>
81022
81023         * modules/arcfour (Depends-on): Need stdint.
81024
81025 2005-10-22  Simon Josefsson  <jas@extundo.com>
81026
81027         * m4/gc.m4: Don't be fooled by --disable-*random-device parameters,
81028         suggested by Bruno Haible <bruno@clisp.org>.  Fix error messages.
81029
81030 2005-10-22  Simon Josefsson  <jas@extundo.com>
81031
81032         * lib/md4.h, md4.c: Simplify buffer handling visavi alignment,
81033         suggested by Bruno Haible <bruno@clisp.org>.
81034
81035 2005-10-22  Simon Josefsson  <jas@extundo.com>
81036
81037         * lib/crc.h: Include stddef.h, for size_t.
81038
81039 2005-10-22  Simon Josefsson  <jas@extundo.com>
81040
81041         * lib/arcfour.h, arcfour.c: Use fixed size indices in the
81042         arcfour_context struct (simplify test vector testing in GNU
81043         Shishi).
81044
81045 2005-10-21  Simon Josefsson  <jas@extundo.com>
81046
81047         * modules/des, modules/des-tests: New files.
81048
81049         * modules/gc-des, modules/gc-des-tests: New files.
81050
81051         * tests/test-des.c, tests/test-gc-des.c: New file.
81052
81053 2005-10-21  Simon Josefsson  <jas@extundo.com>
81054
81055         * modules/arctwo, modules/arctwo-tests: New files.
81056
81057         * tests/test-arctwo.c: New file.
81058
81059         * modules/gc-arctwo, modules/gc-arctwo-tests: New files.
81060
81061         * tests/test-gc-arctwo.c: New file.
81062
81063 2005-10-21  Simon Josefsson  <jas@extundo.com>
81064
81065         * m4/gc.m4: Don't use libgcrypt if gcrypt.h isn't found, suggested by
81066         Bruno Haible <bruno@clisp.org>.
81067
81068         * m4/gc-des.m4: New file.
81069
81070 2005-10-21  Simon Josefsson  <jas@extundo.com>
81071
81072         * m4/arctwo.m4: New file.
81073
81074         * m4/gc-arctwo.m4: New file.
81075
81076 2005-10-21  Simon Josefsson  <jas@extundo.com>
81077
81078         * lib/rijndael-api-fst.c: Fix bugs in CBC mode for more than one
81079         block.
81080
81081 2005-10-21  Simon Josefsson  <jas@extundo.com>
81082
81083         * lib/hmac-md5.c (hmac_md5): Add comments, suggested by Bruno Haible
81084         <bruno@clisp.org>.
81085
81086         * lib/hmac-sha1.c (hmac_sha1): Likewise.
81087
81088         * lib/crc.c (crc32_update): Actually use crc parameter, suggested by
81089         Bruno Haible <bruno@clisp.org>.
81090
81091         * lib/crc.h: Include stdint.h directly, suggested by Bruno Haible
81092         <bruno@clisp.org>.
81093
81094 2005-10-21  Simon Josefsson  <jas@extundo.com>
81095
81096         * lib/gc-libgcrypt.c (gc_cipher_open): Handle ECB.
81097
81098 2005-10-21  Simon Josefsson  <jas@extundo.com>
81099
81100         * lib/gc-gnulib.c: Support ARCTWO in CBC mode.
81101
81102 2005-10-21  Simon Josefsson  <jas@extundo.com>
81103
81104         * lib/des.h, lib/des.c: New files.
81105
81106         * lib/gc-gnulib.c: Support DES.c
81107
81108 2005-10-21  Simon Josefsson  <jas@extundo.com>
81109
81110         * lib/arctwo.h, lib/arctwo.c: New files.
81111
81112         * lib/gc-gnulib.c: Support ARCTWO.
81113
81114 2005-10-21  Simon Josefsson  <jas@extundo.com>
81115
81116         * lib/arctwo.h (arctwo_setkey): Protect variable in CPP macro,
81117         suggested by Ralf Wildenhues <Ralf.Wildenhues@gmx.de>.
81118
81119 2005-10-21  Simon Josefsson  <jas@extundo.com>
81120
81121         * gnulib-tool (func_import, func_create_testdir): Define automake
81122         conditional GL_COND_LIBTOOL if libtool is used (to be used by modules
81123         Makefile.am snippet),
81124         suggested by Bruno Haible <bruno@clisp.org>.
81125
81126         * modules/gc (Makefile.am): Use it.
81127
81128 2005-10-21  Bruno Haible  <bruno@clisp.org>
81129
81130         * gnulib-tool (func_import, func_create_testdir): Add quoting to last
81131         patch.
81132
81133 2005-10-19  Simon Josefsson  <jas@extundo.com>
81134
81135         * tests/test-gc-rijndael.c: New file.
81136
81137         * modules/gc-rijndael, modules/gc-rijndael-test: New files.
81138
81139 2005-10-19  Simon Josefsson  <jas@extundo.com>
81140
81141         * tests/test-gc-md4.c, tests/test-gc-md5.c: Test gc_hash_buffer
81142         interface too.
81143
81144 2005-10-19  Simon Josefsson  <jas@extundo.com>
81145
81146         * tests/test-gc-arcfour.c: New file.
81147
81148         * modules/gc-arcfour, modules/gc-arcfour-tests: New files.
81149
81150 2005-10-19  Simon Josefsson  <jas@extundo.com>
81151
81152         * modules/gc-md4, modules/gc-md4-tests: New file.
81153
81154         * tests/test-gc-md4.c: New file.
81155
81156 2005-10-19  Simon Josefsson  <jas@extundo.com>
81157
81158         * m4/gc-md4.m4: New file.
81159
81160 2005-10-19  Simon Josefsson  <jas@extundo.com>
81161
81162         * m4/gc-hmac-md5.m4, gc-hmac-sha1.m4, gc-md4.m4,
81163         gc-md5.m4, gc-sha1.m4: Fix typo, suggested by Stepan Kasal
81164         <kasal@ucw.cz>.
81165
81166 2005-10-19  Simon Josefsson  <jas@extundo.com>
81167
81168         * m4/gc-arcfour.m4: New file.
81169
81170         * m4/gc-rijndael.m4: New file.
81171
81172 2005-10-19  Simon Josefsson  <jas@extundo.com>
81173
81174         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support MD4.
81175
81176 2005-10-19  Simon Josefsson  <jas@extundo.com>
81177
81178         * lib/gc-gnulib.c: Support ARCFOUR.
81179
81180 2005-10-19  Simon Josefsson  <jas@extundo.com>
81181
81182         * lib/gc-gnulib.c: Implement gc_cipher_* API, currently only with AES
81183         support.
81184
81185         * lib/gc.h: Add ECB enum type.
81186
81187         * lib/hmac-md5.c, hmac-sha1.c: Include memxor.h.
81188
81189 2005-10-18  Simon Josefsson  <jas@extundo.com>
81190
81191         * tests/test-md5.c: New file.
81192
81193         * modules/md5-tests: New file.
81194
81195 2005-10-18  Simon Josefsson  <jas@extundo.com>
81196
81197         * tests/test-md4.c: New file.
81198
81199         * modules/md4, modules/md4-tests: New files.
81200
81201 2005-10-18  Simon Josefsson  <jas@extundo.com>
81202
81203         * m4/md4.m4: New file.
81204
81205 2005-10-18  Simon Josefsson  <jas@extundo.com>
81206
81207         * lib/md4.h, lib/md4.c: New files, based on md5.?.
81208
81209 2005-10-17  Stepan Kasal  <kasal@ucw.cz>
81210
81211         * gnulib-tool (func_create_testdir): Omit the second check whether
81212         BUILT_SOURCES in nonempty.
81213
81214 2005-10-17  Simon Josefsson  <jas@extundo.com>
81215
81216         * tests/test-rijndael.c: New file.
81217
81218 2005-10-17  Simon Josefsson  <jas@extundo.com>
81219
81220         * modules/sha1: Depend on stdint instead of md5.
81221
81222         * modules/md5: Depend on stdint, remove uint32_t.
81223
81224 2005-10-17  Simon Josefsson  <jas@extundo.com>
81225
81226         * modules/gc-sha1-tests: New file.
81227
81228         * tests/test-gc-sha1.c: New file.
81229
81230 2005-10-17  Simon Josefsson  <jas@extundo.com>
81231
81232         * m4/md5.m4: Remove call to uint32_t.m4.
81233
81234 2005-10-17  Simon Josefsson  <jas@extundo.com>
81235
81236         * lib/sha1.c: Use uint32_t instead of md5_uint32.t
81237
81238         * lib/sha1.h: Use stdint.h and uint32_t instead of md5_uint32 from
81239         md5.h.
81240
81241         * lib/md5.c: Use uin32_t.  Fix non-gcc UNALIGNED_P macro.
81242
81243         * lib/md5.h: Use stdint.h and uint32_t.  Doc fix.
81244
81245 2005-10-17  Simon Josefsson  <jas@extundo.com>
81246
81247         * lib/gc.h, gc-libgcrypt.c: Add more hash types/functions.
81248
81249 2005-10-17  Simon Josefsson  <jas@extundo.com>
81250
81251         * lib/gc.h, gc-libgcrypt.c: Add ciphers.
81252
81253 2005-10-17  Simon Josefsson  <jas@extundo.com>
81254
81255         * lib/gc-libgcrypt.c (gc_hmac_sha1): Fix assert.
81256
81257         * lib/gc.h (gc_nonce, gc_pseudo_random, gc_random): Add prototypes.
81258
81259 2005-10-17  Bruno Haible  <bruno@clisp.org>
81260
81261         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Change the return statement so
81262         that it can also be used in a test.
81263
81264 2005-10-16  Bruno Haible  <bruno@clisp.org>
81265
81266         * gnulib-tool (func_emit_tests_Makefile_am): Also define
81267         TESTS_ENVIRONMENT, so that individual tests can augment it.
81268
81269         * gnulib-tool (func_create_testdir): Use an intermediate target for
81270         building $(BUILT_SOURCES). Needed because BUILT_SOURCES can contain
81271         macros, like $(ALLOCA_H), which cannot be passed through the command
81272         line.
81273
81274 2005-10-15  Simon Josefsson  <jas@extundo.com>
81275
81276         * modules/rijndael-tests: New file.
81277
81278         * modules/rijndael: New file.
81279
81280 2005-10-15  Simon Josefsson  <jas@extundo.com>
81281
81282         * m4/rijndael.m4: New file.
81283
81284 2005-10-15  Simon Josefsson  <jas@extundo.com>
81285
81286         * lib/rijndael-api-fst.h, lib/rijndael-api-fst.c: New files.
81287
81288         * lib/rijndael-alg-fst.h, lib/rijndael-alg-fst.c: New files.
81289
81290 2005-10-14  Simon Josefsson  <jas@extundo.com>
81291
81292         * tests/test-arcfour.c: New file.
81293
81294         * modules/arcfour, modules/arcfour-tests: New files.
81295
81296 2005-10-14  Simon Josefsson  <jas@extundo.com>
81297
81298         * m4/arcfour.m4: New file.
81299
81300 2005-10-14  Simon Josefsson  <jas@extundo.com>
81301
81302         * lib/arcfour.h, lib/arcfour.c: New files.
81303
81304 2005-10-14  Roland McGrath  <roland@redhat.com>
81305
81306         Import from libc.  [BZ #1331]
81307         * lib/obstack.h [!__STDC__] (obstack_int_grow_fast): Fix misnamed
81308         macro argument.
81309         Reported by Matej Vela <vela@debian.org>.
81310
81311 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81312
81313         * lib/obstack.c [defined _LIBC && defined USE_IN_LIBIO]: Don't
81314         include <wchar.h>; no longer needed.
81315
81316 2005-10-14  Paul Eggert  <eggert@cs.ucla.edu>
81317
81318         * config/srclist.txt: Add glibc bug 321 for obstack.c, obstack.h.
81319
81320 2005-10-14  Jakub Jelinek  <jakub@redhat.com>
81321         and  Ulrich Drepper  <drepper@redhat.com>
81322
81323         Import from libc.
81324         * lib/obstack.c (print_and_abort) [defined _LIBC]: Use __fxprintf
81325         instead of inline stream orientation test and two separate
81326         function calls.  Pay no attention to USE_IN_LIBIO.
81327
81328 2005-10-13  Simon Josefsson  <jas@extundo.com>
81329
81330         * modules/gc-hmac-md5-tests: New file.
81331
81332         * tests/test-gc-hmac-sha1.c: New file.
81333
81334         * tests/test-gc.c (main): Remove MD5 and HMAC-MD5 tests.
81335
81336         * modules/gc-hmac-md5-tests: New file.
81337
81338         * tests/test-gc-md5.c: New file.
81339
81340         * modules/gc-md5-tests: New file.
81341
81342 2005-10-13  Simon Josefsson  <jas@extundo.com>
81343
81344         * lib/gc-pbkdf2-sha1.c (gc_pbkdf2_sha1): Optimize CEIL computation.
81345         Move memory allocation outside of loop.
81346
81347 2005-10-13  Paul Eggert  <eggert@cs.ucla.edu>
81348
81349         * lib/mkdir-p.c (make_dir_parents): Don't report an error if an
81350         intermediate directory is in a read-only file system.  Problem
81351         reported by Eric Blake.
81352
81353 2005-10-13  Oskar Liljeblad  <oskar@osk.mine.nu>
81354
81355         * modules/human (Depends-on): Depend on xstrtoumax, not xstrtol.
81356
81357 2005-10-12  Simon Josefsson  <jas@extundo.com>
81358
81359         * tests/test-hmac-sha1.c: New file.
81360
81361         * modules/hmac-sha1-tests: New file.
81362
81363         * modules/hmac-sha1: New file.
81364
81365 2005-10-12  Simon Josefsson  <jas@extundo.com>
81366
81367         * modules/gc-sha1: New file.
81368
81369 2005-10-12  Simon Josefsson  <jas@extundo.com>
81370
81371         * modules/gc-pbkdf2-sha1, modules/gc-pbkdf2-sha1-tests: New files.
81372
81373         * tests/test-gc-pbkdf2-sha1.c: New file.
81374
81375 2005-10-12  Simon Josefsson  <jas@extundo.com>
81376
81377         * modules/gc-md5, modules/gc-hmac-md5: New files.
81378
81379         * modules/gc (Files): Remove md5, memxor and hmac files.
81380
81381 2005-10-12  Simon Josefsson  <jas@extundo.com>
81382
81383         * m4/gc-pbkdf2-sha1.m4: New file.
81384
81385         * m4/gc-hmac-sha1.m4: New file.
81386
81387         * m4/gc-sha1: New file.
81388
81389         * m4/hmac-sha1.m4: New file.
81390
81391 2005-10-12  Simon Josefsson  <jas@extundo.com>
81392
81393         * m4/gc-md5.m4, m4/gc-hmac-md5.m4: New files.
81394
81395         * m4/gc.m4: Don't call gl_MD5, gl_MEMXOR or gl_HMAC_MD5.
81396
81397 2005-10-12  Simon Josefsson  <jas@extundo.com>
81398
81399         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Use Gc_rc for return types,
81400         suggested by Bruno Haible <bruno@clisp.org>.
81401
81402 2005-10-12  Simon Josefsson  <jas@extundo.com>
81403
81404         * lib/gc.h, gc-gnulib.c, gc-libgcrypt.c: Support SHA-1.
81405
81406 2005-10-12  Simon Josefsson  <jas@extundo.com>
81407
81408         * lib/gc-pbkdf2-sha1.c: New file.
81409
81410         * lib/gc.h: Add gc_pbkdf2_sha1 prototype.
81411
81412 2005-10-12  Simon Josefsson  <jas@extundo.com>
81413
81414         * lib/gc-libgcrypt.c (gc_hmac_sha1): New function.
81415
81416         * lib/gc-gnulib.c (gc_hmac_sha1): New function.
81417
81418 2005-10-12  Simon Josefsson  <jas@extundo.com>
81419
81420         * lib/gc-gnulib.c: Condition MD5 and HMAC-MD5 use on GC_USE_MD5 and
81421         GC_USE_HMAC_MD5, respectively.
81422
81423         * lib/gc-libgcrypt.c (gc_md5): Fix assert call.
81424         (gc_md5): Fix typo.
81425
81426         * lib/gc.h (gc_hash_buffer): Use gc_hash in prototype.
81427
81428         * lib/gc-libgcrypt.c (gc_hash_buffer): Ditto.
81429
81430         * lib/gc-gnulib.c (gc_hash_buffer): Ditto.
81431
81432 2005-10-12  Bruno Haible  <bruno@clisp.org>
81433
81434         * m4/stdbool.m4 (gl_STDBOOL_H): Define as an alias of AM_STDBOOL_H.
81435         Reported by Stepan Kasal <kasal@ucw.cz>.
81436
81437 2005-10-11  Simon Josefsson  <jas@extundo.com>
81438
81439         * tests/test-crc.c: New file.
81440
81441         * modules/crc, modules/crc-tests: New files.
81442
81443 2005-10-11  Simon Josefsson  <jas@extundo.com>
81444
81445         * m4/crc.m4: New file.
81446
81447 2005-10-11  Simon Josefsson  <jas@extundo.com>
81448
81449         * lib/gc.h: Add gc_hash and gc_hash_buffer.
81450
81451         * lib/gc-gnulib.c (gc_hash_buffer): Add.  Reorder #include's.
81452
81453         * lib/gc-libgcrypt.c (gc_hash_buffer): Add.
81454
81455 2005-10-11  Simon Josefsson  <jas@extundo.com>
81456
81457         * lib/crc.h, lib/crc.c: New files.
81458
81459         * lib/gc.h (gc_hash_buffer): Add doc.
81460
81461 2005-10-11  Bruno Haible  <bruno@clisp.org>
81462
81463         * modules/c-strcasestr: New file.
81464         * MODULES.html.sh (String handling <string.h>): Add c-strcasestr.
81465
81466 2005-10-11  Bruno Haible  <bruno@clisp.org>
81467
81468         * modules/c-strcase: New file.
81469         * MODULES.html.sh (String handling <string.h>): Add c-strcase.
81470
81471 2005-10-11  Bruno Haible  <bruno@clisp.org>
81472
81473         * lib/strcasecmp.c: Include limits.h.
81474         (strcasecmp): Avoid integer overflow on exotic platforms.
81475         * lib/strncasecmp.c: Include limits.h.
81476         (strncasecmp): Avoid integer overflow on exotic platforms.
81477         Reported by Paul Eggert.
81478
81479 2005-10-11  Bruno Haible  <bruno@clisp.org>
81480
81481         * lib/c-strcasestr.h: New file, from GNU gettext.
81482         * lib/c-strcasestr.c: New file, from GNU gettext.
81483
81484 2005-10-11  Bruno Haible  <bruno@clisp.org>
81485
81486         * lib/c-strcase.h: New file, from GNU gettext.
81487         * lib/c-strcasecmp.c: New file, from GNU gettext.
81488         * lib/c-strncasecmp.c: New file, from GNU gettext.
81489
81490 2005-10-10  Paul Eggert  <eggert@cs.ucla.edu>
81491
81492         * modules/mempcpy (License): GPL -> LGPL.
81493         * modules/strchrnul (License): Likewise.
81494         * modules/sysexits (License): Likewise.
81495
81496 2005-10-08  Simon Josefsson  <jas@extundo.com>
81497
81498         * config/srclist.txt: Bug 1423 is closed, but 1439 remains.
81499
81500 2005-10-07  Simon Josefsson  <jas@extundo.com>
81501
81502         * m4/memxor.m4: Remove gl_C_RESTRICT call.
81503
81504 2005-10-06  Simon Josefsson  <jas@extundo.com>
81505
81506         * tests/test-hmac-md5.c: New file.
81507
81508         * modules/hmac-md5-tests: New file.
81509
81510         * modules/hmac-md5: New file.
81511
81512 2005-10-06  Simon Josefsson  <jas@extundo.com>
81513
81514         * m4/hmac-md5.m4: New file.
81515
81516         * m4/memxor.m4: Require gl_C_RESTRICT.
81517
81518 2005-10-06  Simon Josefsson  <jas@extundo.com>
81519
81520         * lib/memxor.c (memxor): Avoid casts and warnings.
81521
81522 2005-10-06  Simon Josefsson  <jas@extundo.com>
81523
81524         * lib/hmac-md5.c: New file.
81525
81526         * lib/hmac.h: New file.
81527
81528 2005-10-06  Paul Eggert  <eggert@cs.ucla.edu>
81529
81530         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Check that bool
81531         promotes to int, not unsigned int, to catch the AIX 5.3
81532         compiler bug.
81533
81534 2005-10-05  Simon Josefsson  <jas@extundo.com>
81535
81536         * modules/memxor: New file.
81537
81538         * modules/iconv (Files): Move config.rpath to havelib, it is used
81539         there.
81540
81541         * modules/havelib (Files): Add config.rpath.
81542
81543 2005-10-05  Simon Josefsson  <jas@extundo.com>
81544
81545         * m4/memxor.m4: New file.
81546
81547 2005-10-05  Simon Josefsson  <jas@extundo.com>
81548
81549         * lib/memxor.c (memxor): Fix compiler error.
81550
81551         * lib/md5.h (MD5_DIGEST_SIZE, MD5_BLOCK_SIZE): Add, see also
81552         <http://sourceware.org/bugzilla/show_bug.cgi?id=1423>.
81553
81554         * lib/memxor.h, lib/memxor.c: New files.
81555
81556         * lib/getaddrinfo.h: Don't protect sys/types.h with HAVE_SYS_TYPES_H,
81557         we assume all systems have it, suggested by Jim Meyering
81558         <jim@meyering.net>.  Remove HAVE_SYS_SOCKET_H test too, to see if
81559         any systems lack sys/socket.h; mingw32 is known to lack it, but we
81560         don't support it yet anyway.  Also remove HAVE_NETDB_H test, for
81561         same reasons.
81562
81563 2005-10-05  Simon Josefsson  <jas@extundo.com>
81564
81565         * config/srclist.txt: Add glibc bug 1423 for md5.h.
81566
81567 2005-10-05  Paul Eggert  <eggert@cs.ucla.edu>
81568
81569         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Don't check for
81570         sys/socket.h, netdb.h, sys/types.h; the checks areno longer
81571         needed, since the source code now assumes these .h files.
81572
81573 2005-10-05  Derek Price  <derek@ximbiot.com>
81574
81575         * lib/getdelim.c (SIZE_MAX): New macro, if not already defined.
81576
81577 2005-10-05  Bruno Haible  <bruno@clisp.org>
81578
81579         * modules/stdint (License): Change to LGPL.
81580
81581 2005-10-04  Simon Josefsson  <jas@extundo.com>
81582
81583         * lib/getaddrinfo.h: Move sys/types.h include first, reported by "Mark
81584         D. Baushke" <mdb@gnu.org>.
81585
81586 2005-10-04  Bruno Haible  <bruno@clisp.org>
81587
81588         * lib/verify.h (verify_true): Provide alternative definition for C++.
81589
81590 2005-10-03  Paul Eggert  <eggert@cs.ucla.edu>
81591
81592         * lib/getdelim.c: Include getdelim.h first.  Include <limits.h>.
81593         (SSIZE_MAX): New macro, if not already defined.
81594         (getdelim): Fix buffer overrun on 64-bit hosts with lines longer
81595         than 2 GiB.
81596
81597 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81598
81599         Sync from coreutils.
81600         * m4/openat.m4 (gl_FUNC_OPENAT): Check for fdopendir.
81601         * m4/ullong_max.m4 (gl_ULLONG_MAX): Simplify so that it merely
81602         defines ULONG_MAX_LT_ULLONG_MAX.  Thomas M.Ott reports that
81603         ULLONG_MAX doesn't work with 2.7.2.1.
81604
81605 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81606
81607         * modules/xreadlink (Makefile.am): Remove lib_SOURCES.
81608         From Ben Pfaff.
81609
81610         * modules/exclude (Depends-on): Depend on verify.
81611         * modules/strtoimax (Depends-on): Likewise.
81612         * modules/utimecmp (Depends-on): Likewise.
81613
81614 2005-10-02  Paul Eggert  <eggert@cs.ucla.edu>
81615
81616         * lib/exclude.c: Include verify.h.
81617         (verify): Remove.  All callers changed to use verify.h's version.
81618         * lib/strtoimax.c: Likewise.
81619         * lib/utimecmp.c: Likewis.e
81620
81621         Sync from coreutils.
81622         * lib/.cppi-disable: Add getaddrinfo.h, getdelim.h, getline.h,
81623         getpass.c, mbchar.h, mbuiter.h, strcase.h, strnlen.h, strnlen1.h.
81624         * lib/.cvsignore: Add fts.h, search.h, t-fpending.
81625         * lib/settime.c (settime): Fix { typo in previous patch.  Also, don't
81626         bother returning ENOSYS if settimeofday or stime fails; just let
81627         them return whatever errno they want to return.
81628         * lib/utimens.c: Include unistd.h, for dup2.
81629         (futimens): Fix typo: HAVE_FUTIMESAT was misspelled in an #if.
81630         (futimens) [! HAVE_FUTIMESAT]: If !file, set errno before returning -1.
81631
81632 2005-10-02  Jim Meyering  <jim@meyering.net>
81633
81634         Sync from coreutils.
81635         * m4/utimes.m4 (gl_FUNC_UTIMES): Detect the version of utimes
81636         from glibc-2.2.5 that fails for read-only files.
81637
81638 2005-10-02  Jim Meyering  <jim@meyering.net>
81639
81640         Sync from coreutils.
81641         * lib/fts-cycle.c [HAVE_CONFIG_H]: Include <config.h>.
81642         * lib/openat-die.c: Use `#ifdef HAVE_CONFIG_H', not
81643         `#if HAVE_CONFIG_H'.
81644         * lib/openat.c (fdopendir): Do not define if HAVE_FDOPENDIR.
81645         Remove AT_FDCWD test.
81646         Do not consume the fd unless successful.
81647         * lib/openat.h (fdopendir): Do not define if HAVE_FDOPENDIR.
81648         * lib/settime.c (settime): Move the HAVE_STIME block `up' into an #elif
81649         block, so that we don't even try to compile it if settimeofday is
81650         available.  This works around a compilation failure on OSF1 V5.1,
81651         due to stime requiring a `long int*' while tv_sec is `int'.
81652
81653 2005-10-02  Alfred M. Szmidt  <ams@gnu.org>
81654
81655         Sync from coreutils.
81656         * m4/chdir-long.m4 (gl_FUNC_CHDIR_LONG): Compare $gl_have_path...
81657         against `yes', rather than just testing for nonempty.
81658
81659 2005-10-01  Simon Josefsson  <jas@extundo.com>
81660
81661         * m4/getaddrinfo.m4: Include sys/types.h for sys/socket.h, on FreeBSD
81662         and Darwin.
81663
81664         * m4/getaddrinfo.m4: Use AC_GNU_SOURCE, GNU only declare getaddrinfo
81665         as an (POSIX) extension.  Check for sys/types.h, sys/socket.h, and
81666         netdb.h too, needed by getaddrinfo.h.  Check if getaddrinfo,
81667         freeaddrinfo and gai_strerror are declared by the POSIX headers.
81668         Check if struct addrinfo is declared.
81669
81670 2005-10-01  Simon Josefsson  <jas@extundo.com>
81671
81672         * lib/getaddrinfo.h: Protect #include's of sys/socket.h and netdb.h.
81673         Only define struct addrinfo if !HAVE_STRUCT_ADDRINFO.  Protect
81674         AI_* and EAI_* definitions.  Protect function declarations.
81675
81676 2005-10-01  Jim Meyering  <jim@meyering.net>
81677
81678         Sync from coreutils.
81679
81680         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Look for getservbyname in these
81681         libraries [inet nsl socket xnet].  Nelson Beebe reported that with
81682         native cc on Solaris 7, getaddrinfo.c requires -lsocket.
81683         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81684         in the inet and nsl libraries.  Required on Solaris 5.7.
81685
81686 2005-10-01  Jim Meyering  <jim@meyering.net>
81687
81688         Sync from coreutils.
81689         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Check for gethostbyname
81690         in the inet and nsl libraries.  Required on Solaris 5.7.
81691
81692 2005-10-01  Eric Blake  <ebb9@byu.net>  (tiny change)
81693
81694         * lib/getdelim.c (getdelim): Remove unused variables.
81695
81696 2005-09-29  Paul Eggert  <eggert@cs.ucla.edu>
81697
81698         * lib/xtime.h (XTIME_PRECISION): Now of type int, not long long int,
81699         so that the code works even with ancient cpp.  Portability problem
81700         with GCC 2.7.2.1 reported by Thomas M.Ott.
81701
81702 2005-09-27  Paul Eggert  <eggert@cs.ucla.edu>
81703
81704         * modules/regex (Depends-on): Add strcase.
81705
81706         * modules/gethostname (Licence): Change from GPL to LGPL, since
81707         gethostname.c is a trivial implementation of a standard library
81708         function.
81709         * modules/poll (License): Change from GPL to LGPL, since it's
81710         derived from LGPL code.
81711
81712 2005-09-27  Jim Meyering  <jim@meyering.net>
81713
81714         * lib/getcwd.c: Change #ifdef<TAB>HAVE_CONFIG_H to #ifdef
81715         HAVE_CONFIG_H.
81716
81717         * lib/intprops.h (signed_type_or_expr__): Define.
81718         (INT_STRLEN_BOUND) [__GNUC__]: Use a slightly tighter bound
81719         for unsigned types.
81720
81721 2005-09-26  Paul Eggert  <eggert@cs.ucla.edu>
81722
81723         * lib/verify.h (verify_expr): Remove, replacing with:
81724         (verify_true): New macro that returns true instead of void.
81725         (verify_type__): Remove.
81726         (verify): Use verify_true rather than verify_type__.
81727
81728 2005-09-26  Bruno Haible  <bruno@clisp.org>
81729
81730         * modules/mbchar (Include): Mention that HAVE_WCHAR_H && HAVE_WCTYPE_H
81731         is necessary.
81732         (lib_SOURCES): Remove mbchar.c.
81733         * modules/mbfile (Include): Mention that HAVE_MBRTOWC is necessary.
81734         (Files): Add m4/mbrtowc.m4.
81735         * modules/mbiter: Likewise.
81736         * modules/mbuiter: Likewise.
81737
81738 2005-09-26  Bruno Haible  <bruno@clisp.org>
81739
81740         * m4/mbchar.m4 (gl_MBCHAR): Check for wchar.h and wctype.h. Don't
81741         compile mbchar.c if they are not both present.
81742         * m4/mbfile.m4 (gl_MBFILE): Require gl_FUNC_MBRTOWC.
81743         * m4/mbiter.m4 (gl_MBITER): Likewise.
81744         * m4/strstr.m4 (gl_PREREQ_STRSTR): Use AC_REQUIRE.
81745         * m4/strcasestr.m4 (gl_PREREQ_STRCASESTR): Likewise.
81746         * m4/strcase.m4 (gl_PREREQ_STRCASECMP): Likewise.
81747
81748 2005-09-25  Jim Meyering  <jim@meyering.net>
81749
81750         * modules/inet_ntop (Depends-on): Add socklen, since inet_ntop.c
81751         also uses socklen_t.
81752
81753 2005-09-24  Paul Eggert  <eggert@cs.ucla.edu>
81754
81755         * lib/utimens.c (ENOSYS): Define if not already defined.
81756         (futimens): Support having a null PATH if the file descriptor
81757         is nonnegative.
81758
81759         * lib/regex_internal.h (__GNUC_PREREQ, always_inline, inline, pure):
81760         Remove.
81761         (__attribute): Define to empty unless GCC 3.1 or later.
81762         This works around a core dump on OpenBSD 3.4, which has GCC
81763         2.95.3, which dumps core when given __attribute__(()).  It also
81764         simplifies other tests, since we really don't want to bother with
81765         worrying about which ancient version of GCC supported what.
81766         Original problem reported by Yoann Vandoorselaere, with part of
81767         the fix suggested by Derek Price.
81768
81769 2005-09-24  Jim Meyering  <jim@meyering.net>
81770
81771         * lib/verify.h (verify_type__): Use `unsigned int' as the bitfield type
81772         so we can once again use a positive bitfield width of 1 -- now we
81773         don't have to explain why we were using a bitfield width of 2.
81774
81775 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81776
81777         * m4/regex.m4 (gl_REGEX): If replacing, define regcomp to rpl_regcomp,
81778         and similarly for the other external symbols.  Problem reported
81779         by James Gallager.
81780
81781         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Catch Sun Studio 10u1 on Linux
81782         bug reported by Jim Meyering.
81783
81784         * m4/utimens.m4 (gl_UTIMENS): Check for futimesat.
81785         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Undo previous change;
81786         not needed, since socklen is a prerequisite module.
81787
81788 2005-09-23  Paul Eggert  <eggert@cs.ucla.edu>
81789
81790         * lib/getaddrinfo.c [HAVE_NETINET_IN_H]: Include <netinet/in.h>.
81791         Problem reported by Eric Blake.
81792         (getaddrinfo): Initialize se so that it's not garbage.
81793         Redo internal storage allocation so that it doesn't make unportable
81794         assumptions about alignment.
81795         Fix a memory leak.
81796
81797         * lib/utimens.c (futimens): Use futimesat if available.
81798         Prefer it to futimes since it doesn't have the futimes bug.
81799
81800         * lib/verify.h (GL_CONCAT0, GL_CONCAT): Remove.
81801         (verify): Don't use the __LINE__ trick, as it doesn't work in general.
81802         Instead, declare a function that returns a pointer to an array,
81803         and use verify_type__ to declare the size of the array.
81804         Problem and germ of a solution reported by Bruno Haible.
81805         (verify_type__): Use 2, not 1, for bitfield size, to avoid
81806         a warning with Irix 6.5 cc.  Problem reported by Bruno Haible.
81807
81808 2005-09-23  Jim Meyering  <jim@meyering.net>
81809
81810         Sync from coreutils.
81811         Correct build failure (socklen_t not defined) on at least
81812         mips-sgi-irix6.5 and alphaev67-dec-osf5.1.
81813         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Require gl_SOCKLEN_T.
81814
81815 2005-09-23  Jim Meyering  <jim@meyering.net>
81816
81817         * modules/getaddrinfo (Depends-on): Add socklen.
81818
81819 2005-09-23  Bruno Haible  <bruno@clisp.org>
81820
81821         * tests/test-verify.c: New file.
81822
81823 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81824
81825         Sync from coreutils.
81826
81827         * modules/argmatch (Depends-on): Add verify.
81828         * modules/getloadavg (Depends-on): Depend on fcntl-safer, not
81829         unistd-safer.
81830         * modules/save-cwd (Depends-on): Likewise.
81831
81832         * modules/openat (Files): Add lib/openat-die.c.
81833         (Depends-on): Remove error, exitfail.
81834         Add dirname.
81835
81836         * modules/verify: New file.
81837         * MODULES.html.sh (Diagnostics <assert.h>): New section,
81838         with "verify" module.
81839
81840 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81841
81842         Sync from coreutils.
81843
81844         * m4/backupfile.m4, calloc.m4, chown.m4, cloexec.m4, dup2.m4:
81845         * m4/fileblocks.m4, free.m4, ftruncate.m4, getcwd.m4, getpagesize.m4:
81846         * m4/getugroups.m4, group-member.m4, idcache.m4, link-follow.m4:
81847         * m4/mkstemp.m4, mktime.m4, mountlist.m4, nanosleep.m4, pathmax.m4:
81848         * m4/physmem.m4, posixver.m4, putenv.m4, safe-read.m4, same.m4:
81849         * m4/save-cwd.m4, stdio-safer.m4, unistd-safer.m4, unlinkdir.m4:
81850         * m4/userspec.m4, xgetcwd.m4, xreadlink.m4:
81851         Don't bother checking for string.h, stdlib.h, unistd.h.
81852         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't require
81853         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK; that's now the lstat
81854         module's job.
81855         * m4/jm-macros.m4 (gl_MACROS): Likewise.
81856         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_LSTAT.
81857
81858         * m4/getdate.m4 (gl_C_COMPOUND_LITERALS): New macro.
81859         (gl_GETDATE): Use it.
81860
81861         * m4/mkdir-p.m4 (gl_MKDIR_PARENTS): Don't bother checking for unistd.h.
81862
81863 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81864
81865         Sync from coreutils.
81866
81867         * lib/.cppi-disable: Add regcomp.c, regex_internal.c, regex_internal.h,
81868         stat-time.h.
81869         * lib/argmatch.h: Include verify.h
81870         (ARGMATCH_VERIFY): Use verify rather than rolling our own.
81871         (ARGMATCH_ASSERT): Remove; unused.
81872         * lib/canonicalize.c: Assume STDC_HEADERS.
81873         * lib/exclude.c: Include "strcase.h".
81874         * lib/regex_internal.h [!defined _LIBC]: Likewise.
81875         * lib/getusershell.c: Include stdio--.h rather than stdio.h
81876         and stdio-safer.h.
81877         (getusershell): Call fopen, not fopen_safer.
81878         * lib/save-cwd.c: Include fcntl--.h rather than fcntl.h.
81879         Do not include unistd-safer.h.
81880         (save_cwd): Don't call fd_safer; no longer needed
81881         now that we include fcntl--.h.
81882
81883         * lib/getdate.y (relative_time): New type.
81884         (RELATIVE_TIME_0): New constant.
81885         (parser_control): Use relative_time instead of doing it ourselves.
81886         (%union): Add new relative_time rel member.
81887         (tYEAR_UNIT, tMONTH_UNIT, tHOUR_UNIT, tMINUTE_UNIT, tSEC_UNIT):
81888         Now typeless.
81889         (relunit, relunit_snumber): Now of type rel.
81890         (zone, rel, relunit, get_date): Adjust to above changes.
81891
81892         * lib/getloadavg.c: Include fcntl--.h rather than fcntl.h.
81893         Do not include unistd-safer.h.
81894         (getloadavg): Don't call fd_safer; no longer needed
81895         now that we include fcntl--.h.
81896
81897         * lib/mkdir-p.c (ENOSYS): Define to EEXIST if not defined.
81898         (make_dir_parents): Treat ENOSYS like EEXIST.
81899
81900         Improve quality of diagnostics on restore_cwd failure.
81901         * lib/mkdir-p.h (make_dir): Remove.  All uses replaced by mkdir.
81902         (make_dir_parents): Last arg is now int * (for errno), not bool *.
81903         * lib/mkdir-p.c (make_dir, make_dir_parents): Likewise.
81904         Rewrite "mkdir -p" algorithm to avoid the need for "stat"
81905         each time through the loop.  Do not diagnose restore_cwd failure;
81906         that is the caller's job (and perhaps the caller does not care).
81907
81908         * lib/mkdir-p.c (CLEANUP_CWD, CLEANUP): Remove.
81909         (make_dir_parents): Revamp to avoid need for CLEANUP_CWD, CLEANUP.
81910         If the file already exists but is not a directory, don't bother
81911         to try to make its parents.
81912         Close potential file descriptor leak if we can't chdir("/") (!).
81913         Don't always return true if chdir($PWD) fails; return true only
81914         if the requested action was done successfully (except for the
81915         chdir($PWD)).
81916         Don't log final directory unless we actually made it.
81917         Refactor to avoid duplicate code to fix up permissions.
81918         Don't attempt to fix up parent permissions if chdir($PWD) fails.
81919
81920         * lib/strftime.c (my_strftime): Rewrite the previous change slightly,
81921         to make it a bit faster and (I hope) clearer.
81922         * lib/strftime.c (my_strftime): Add support for %:z, %::z, %:::z.
81923         Fix bug in formats like %2N.
81924
81925         * lib/verify.h: New file.
81926
81927 2005-09-22  Paul Eggert  <eggert@cs.ucla.edu>
81928
81929         Sync from coreutils.
81930         * m4/getaddrinfo.m4 (gl_PREREQ_GETADDRINFO): Check for netinet/in.h.
81931
81932 2005-09-22  Jim Meyering  <jim@meyering.net>
81933
81934         Sync from coreutils.
81935
81936         * m4/lstat.m4 (gl_FUNC_LSTAT):
81937         Use AC_LIBSOURCES to require lstat.c and lstat.h.
81938         Remove obsolete comment.
81939         * m4/xreadlink.m4: Use AC_LIBSOURCES and AC_LIBOBJ.
81940         * m4/xstrtod.m4: Likewise.
81941
81942         * m4/openat.m4 (gl_FUNC_OPENAT): Add openat-die.c.
81943
81944 2005-09-22  Jim Meyering  <jim@meyering.net>
81945
81946         Sync from coreutils.
81947
81948         * lib/backupfile.c: Use ARGMATCH_VERIFY, just in case.
81949
81950         * lib/posixtm.c (posixtime) [lint]: Initialize *all* of tm0, not just
81951         the .tm_year member, since otherwise gcc-4.0 would now warn about
81952         tm_zone, tm_gmtoff, tm_isdst, tm_yday, tm_wday.
81953
81954         * lib/quotearg.c (quotearg_n_options): Change code to be suboptimal, in
81955         order to avoid an unsuppressible warning from gcc on 64-bit systems.
81956
81957         * lib/getdate.y (get_date): Undo part of the 2005-04-04 change, so that
81958         the command "date -d'2005-03-27 +1 day'" succeeds once again, even
81959         when run in a time zone for which daylight savings time is in effect
81960         for the starting date.
81961
81962         * lib/mkdir-p.c (make_dir_parents): Don't let a failed chdir($PWD)
81963         stop us from restricting permissions of just-created absolute-named
81964         directories.
81965         * lib/mkdir-p.c (CLEANUP_CWD): Return *true*, not false when failing
81966         to restore initial working directory.
81967         * lib/mkdir-p.c (make_dir_parents): New parameter:
81968         different_working_dir, to tell caller if/when we change the working
81969         directory and are unable to return to the initial one.
81970         * lib/mkdir-p.h (make_dir_parents): Update prototype.
81971         * lib/mkdir-p.c (CLEANUP_CWD): Change one more `return 1' to
81972         `return false'.  This fixes a bug introduced on 2004-07-30.
81973
81974         * lib/openat.c (fdopendir): Be sure to close the supplied
81975         file descriptor before returning.  This makes our replacement
81976         implementation a little closer to Solaris's, where fdopendir
81977         ties the file descriptor to the returned DIR* pointer.
81978         * lib/openat.c (unlinkat): New function.
81979         * lib/openat.h (unlinkat): Add prototype.
81980         * lib/openat-die.c (openat_save_fail): Rename from openat_save_die.
81981         (openat_restore_fail): Rename from openat_restore_die.
81982         * lib/openat.c, openat.h: Reflect s/_die/_fail/ renaming.
81983
81984         Provide an alternative to exiting immediately upon save_cwd or
81985         restore_cwd failure.  Now, an application can arrange e.g.,
81986         to perform a longjump in that case.
81987         * lib/openat.c: Include dirname.h.
81988         Use IS_ABSOLUTE_FILE_NAME rather than testing for leading slash.
81989         (rpl_openat, fdopendir, fstatat): Call openat_save_die
81990         and openat_restore_die rather than calling error directly.
81991         Don't include "error.h" or "exitfail.h"; they're no longer needed.
81992
81993         * lib/openat-die.c (openat_save_die, openat_restore_die): New file.
81994         * lib/openat.h (openat_save_die, openat_restore_die): Declare and
81995         define.
81996
81997         * lib/strftime.c [FPRINTFTIME] (fprintftime): Provide a new interface:
81998         size_t fprintftime (FILE *fp, char const *fmt, struct tm const *tm,
81999                             int utc, int nanoseconds);
82000         Background:
82001         date should not have to allocate a megabyte of virtual memory to
82002         handle a format argument like +%1048575T.  When implemented with
82003         strftime, it must allocate such a buffer, use strftime to fill it
82004         in, print it, then free it.
82005         With fprintftime, it simply prints everything and exits.
82006         With no need for memory allocation, that's one fewer way to fail.
82007         * lib/strftime.c (my_strftime): Parse the colons of %:::z *after* the
82008         optional field width, not before, so we accept %9:z, not %:9z.
82009         (my_strftime): Be sure to use L_('x') for literals.
82010
82011         * lib/backupfile.c, lib/canon-host.c, lib/canonicalize.c, lib/chown.c:
82012         * lib/cloexec.c, lib/dup-safer.c, lib/dup2.c, lib/euidaccess.c:
82013         * lib/fd-safer.c, lib/fileblocks.c, lib/fopen-safer.c, lib/fsusage.c:
82014         * lib/ftruncate.c, lib/getcwd.c, lib/getcwd.h, lib/getloadavg.c:
82015         * lib/getopt_.h, lib/getpagesize.h, lib/getugroups.c:
82016         * lib/group-member.c, lib/human.h, lib/idcache.c, lib/mkdir-p.c:
82017         * lib/mountlist.c, lib/nanosleep.c, lib/pathmax.h, lib/physmem.c:
82018         * lib/posixver.c, lib/putenv.c, lib/raise.c, lib/safe-read.c:
82019         * lib/same.c, lib/save-cwd.c, lib/setenv.c, lib/settime.c:
82020         * lib/tempname.c, lib/unlinkdir.c, lib/unsetenv.c, lib/userspec.c:
82021         * lib/xgethostname.c, lib/xreadlink.c:
82022         Assume HAVE_UNISTD_H, i.e., include <unistd.h> unconditionally.
82023
82024         * lib/chown.c, lib/cloexec.c, lib/dup-safer.c, lib/dup2.c:
82025         * lib/fsusage.c, lib/getcwd.c, lib/getloadavg.c, lib/mountlist.c:
82026         * lib/openat.h, lib/save-cwd.c, lib/tempname.c:
82027         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
82028         and don't include <sys/file.h>).
82029
82030 2005-09-22  Eric Blake  <ebb9@byu.net>  (tiny change)
82031
82032         Sync from coreutils.
82033
82034         * lib/getloadavg.c (getloadavg) [__CYGWIN__]: Port to cygwin.
82035         [__linux__]: Allocate a big enough buffer for /proc/loadavg.
82036         [!LDAV_DONE]: Avoid unused variable warning.
82037
82038 2005-09-21  Bruno Haible  <bruno@clisp.org>
82039
82040         * lib/unicodeio.h (unicode_to_mb): New declaration.
82041
82042 2005-09-20  Derek Price  <derek@ximbiot.com>
82043
82044         * lib/getaddrinfo.c: Don't include <netdb.h> included from
82045         getaddrinfo.h.
82046
82047 2005-09-20  Bruno Haible  <bruno@clisp.org>
82048
82049         * gnulib-tool: Remove trailing slashes from the values specified for
82050         --source-base, --m4-base, --tests-base, --aux-dir.
82051         Suggested by Simon Josefsson <jas@extundo.com>.
82052
82053 2005-09-20  Bruno Haible  <bruno@clisp.org>
82054
82055         * gnulib-tool (func_all_modules, func_modules_transitive_closure,
82056         func_modules_to_filelist, func_import, func_create_testdir): Make all
82057         sorting results locale-independent, so that gnulib-cache.m4 doesn't
82058         change when gnulib-tool is invoked in a different locale.
82059
82060 2005-09-19  Simon Josefsson  <jas@extundo.com>
82061
82062         * m4/socklen.m4: Fix typo.
82063
82064 2005-09-19  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
82065
82066         Use a consistent style for including <config.h>.
82067         * lib/__fpending.c, lib/acl.c, lib/argmatch.c, lib/argp-help.c,
82068         lib/argp-parse.c, lib/argp-pvh.c, lib/backupfile.c, lib/basename.c,
82069         lib/c-stack.c, lib/calloc.c, lib/check-version.c, lib/cloexec.c,
82070         lib/closeout.c, lib/copy-file.c, lib/creat-safer.c, lib/cycle-check.c,
82071         lib/dirfd.c, lib/dirname.c, lib/dup-safer.c, lib/dup2.c,
82072         lib/euidaccess.c, lib/exclude.c, lib/exitfail.c, lib/fatal-signal.c,
82073         lib/fd-safer.c, lib/file-type.c, lib/fileblocks.c, lib/filemode.c,
82074         lib/filenamecat.c, lib/findprog.c, lib/fnmatch.c, lib/fopen-safer.c,
82075         lib/free.c, lib/fsusage.c, lib/ftruncate.c, lib/full-write.c,
82076         lib/fwriteerror.c, lib/getaddrinfo.c, lib/getcwd.c, lib/getdelim.c,
82077         lib/getline.c, lib/getlogin_r.c, lib/getndelim2.c, lib/getnline.c,
82078         lib/getopt1.c, lib/getpass.c, lib/group-member.c, lib/hard-locale.c,
82079         lib/hash-pjw.c, lib/hash.c, lib/human.c, lib/idcache.c,
82080         lib/inet_ntop.c, lib/isdir.c, lib/long-options.c, lib/malloc.c,
82081         lib/memcasecmp.c, lib/memcmp.c, lib/memcoll.c, lib/memcpy.c,
82082         lib/memmove.c, lib/mkdir-p.c, lib/modechange.c, lib/mountlist.c,
82083         lib/open-safer.c, lib/physmem.c, lib/pipe-safer.c, lib/pipe.c,
82084         lib/poll.c, lib/posixver.c, lib/progname.c, lib/progreloc.c,
82085         lib/putenv.c, lib/quote.c, lib/quotearg.c, lib/readline.c,
82086         lib/readlink.c, lib/realloc.c, lib/regex.c, lib/rename.c, lib/rmdir.c,
82087         lib/rpmatch.c, lib/safe-read.c, lib/same.c, lib/save-cwd.c,
82088         lib/savedir.c, lib/sig2str.c, lib/strcspn.c, lib/strerror.c,
82089         lib/stripslash.c, lib/strncasecmp.c, lib/strndup.c, lib/strnlen.c,
82090         lib/strnlen1.c, lib/strsep.c, lib/strstr.c, lib/strtod.c,
82091         lib/strtoimax.c, lib/strtol.c, lib/strverscmp.c, lib/tempname.c,
82092         lib/time_r.c, lib/userspec.c, lib/utimecmp.c, lib/version-etc-fsf.c,
82093         lib/version-etc.c, lib/wait-process.c, lib/xalloc-die.c, lib/xgetcwd.c,
82094         lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c, lib/xreadlink.c,
82095         lib/xsetenv.c, lib/xstrndup.c, lib/xstrtoimax.c, lib/xstrtol.c,
82096         lib/xstrtoumax.c, lib/yesno.c:
82097         Standardize inclusion of config.h.
82098         * lib/__fpending.h, lib/dirfd.h, lib/getdate.h, lib/human.h,
82099         lib/inttostr.h:  Removed inclusion of config.h from header files.
82100         * lib/inttostr.c:  Adjusted in-tree users.
82101         * lib/timespec.h: Remove superfluous warning to include config.h.
82102         * lib/atexit.c, lib/chdir-long.c, lib/chown.c, lib/fchown-stub.c,
82103         lib/getgroups.c, lib/gettimeofday.c, lib/lchown.c, lib/lstat.c,
82104         lib/mkdir.c, lib/mkstemp.c, lib/nanosleep.c, lib/openat.c, lib/raise.c,
82105         lib/readtokens0.c, lib/readutmp.c, lib/unlinkdir.c: Guard inclusion of
82106         config.h with HAVE_CONFIG_H.
82107
82108 2005-09-19  Jim Meyering  <jim@meyering.net>
82109
82110         * modules/pathmax (License): Change to LGPL.
82111
82112 2005-09-19  Derek Price  <derek@ximbiot.com>
82113
82114         * config/srclist.txt: glibc's glob.h is now in lib/glob-libc.h.
82115
82116 2005-09-19  Bruno Haible  <bruno@clisp.org>
82117
82118         * gnulib-tool (import): Provide default for --tests-base.
82119
82120 2005-09-19  Bruno Haible  <bruno@clisp.org>
82121
82122         * doc/quote.texi: New file, extracted from gnulib.texi.
82123         * doc/ctime.texi: New file, extracted from gnulib.texi.
82124         * doc/inet_ntoa.texi: New file, extracted from gnulib.texi.
82125         * doc/gnulib-tool.texi: New file, extracted from gnulib.texi.
82126         * doc/gnulib.texi: Include them.
82127
82128 2005-09-18  Bruno Haible  <bruno@clisp.org>
82129
82130         Portability fix.
82131         * gnulib-tool (func_readlink): New function.
82132         (func_ln_if_changed): Use it.
82133
82134 2005-09-18  Bruno Haible  <bruno@clisp.org>
82135
82136         * gnulib-tool: Support --with-tests also with --import.
82137         (func_emit_tests_Makefile_am): Use variables $m4base and $testsbase.
82138         (func_import): Use variables $testsbase and $inctests. Emit a
82139         gl_TESTS_BASE form into gnulib-cache.m4. Create $testsbase/Makefile.am.
82140         Remind the user to add AC_CONFIG_FILES($testsdir/Makefile) and
82141         SUBDIRS += $testsdir.
82142         (func_create_testdir): Update.
82143
82144 2005-09-18  Bruno Haible  <bruno@clisp.org>
82145
82146         * gnulib-tool: Revise --dry-run implementation. Use variable $doit
82147         instead of $dry_run.
82148         (func_cp_if_changed, func_mv_if_changed): Remove functions.
82149         (func_ln_if_changed): Don't handle dry-run here.
82150         (func_import): In dry-run mode, detect more precisely which actions
82151         would be performed, and don't use "...ing" verbs.
82152
82153 2005-09-18  Bruno Haible  <bruno@clisp.org>
82154
82155         * gnulib-tool (func_tmpdir): New function, taken from GNU gettextize.
82156         (func_import): Use join on two temporary files instead of three nested
82157         loops, in order to determine which files are new or old.
82158
82159 2005-09-18  Bruno Haible  <bruno@clisp.org>
82160
82161         * gnulib-tool (func_import): Comment out code that spits out the
82162         new files with --dry-run.
82163
82164 2005-09-18  Bruno Haible  <bruno@clisp.org>
82165
82166         * doc/gnulib.texi (Invoking gnulib-tool): 50% rewritten.
82167
82168 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82169
82170         * lib/stat-time.h: New file.
82171         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP, ATIME_CMP, CTIME_CMP):
82172         (MTIME_CMP, TIMESPEC_NS): Remove.  Now done by stat-time.h,
82173         in a different way.
82174         (timespec_cmp): New function.
82175         * lib/utimecmp.c: Include stat-time.h.
82176         (SYSCALL_RESOLUTION): Depend on whether various struct stat
82177         members exist, not on the obsolescent ST_MTIM_NSEC.
82178         (utimecmp): Use the new stat-time functions rater than TIMESPEC_NS.
82179
82180 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82181
82182         * config/srclist.txt: Remove glibc bug 1033 and uncomment mktime.c.
82183
82184 2005-09-16  Paul Eggert  <eggert@cs.ucla.edu>
82185
82186         * MODULES.html.sh (File system functions): Add stat-time.
82187         * modules/stat-time: New file.
82188         * modules/timespec (Files): Remove m4/st_mtim.m4; this
82189         is now done in a different way, by the stat-time module.
82190         * modules/utimecmp (Depends-on): Add stat-time.
82191
82192 2005-09-15  Paul Eggert  <eggert@cs.ucla.edu>
82193
82194         * m4/st_mtim.m4: Remove.  Superseded by...
82195         * m4/stat-time.m4: New file.
82196         * m4/timespec.m4 (gl_TIMESPEC): Require AC_C_INLINE.
82197         Do not invoke AC_STRUCT_ST_MTIM_NSEC; no longer needed.
82198
82199 2005-09-15  Derek Price  <derek@ximbiot.com>
82200
82201         * m4/strstr.m4 (gl_FUNC_STRSTR): Don't define strstr here.
82202
82203 2005-09-15  Derek Price  <derek@ximbiot.com>
82204
82205         * lib/regex_internal.h: Blank `pure' for GNUC < 3.
82206         * lib/regex_internal.c: Ditto, using this...
82207         (__GNUC_PREREQ): ...new macro.
82208         * lib/regcomp.c, regexec.c: Blank `always_inline' for GNUC < 3.1
82209         using...
82210         (__GNUC_PREREQ): ...this new macro.
82211
82212         * lib/strstr.h: Include string.h. Define strstr as a macro here.
82213
82214 2005-09-15  Derek Price  <derek@ximbiot.com>
82215             Paul Eggert  <eggert@cs.ucla.edu>
82216
82217         * lib/regcomp.c, regexec.c, regex_internal.c: Back out previous
82218         changes, consolidating in...
82219         * lib/regex_internal.h: ...this file.
82220
82221 2005-09-13  Jim Meyering  <jim@meyering.net>
82222
82223         * lib/canon-host.c: Filter through gnu indent and reword comments
82224         slightly.
82225         * lib/canon-host.h (ch_strerror_r): Tweak cpp indentation and spacing.
82226
82227 2005-09-13  Derek Price  <derek@ximbiot.com>
82228
82229         * lib/canon-host.c (canon_host_r): Set *cherror on memory allocation
82230         failure.
82231         Reported by Jim Meyering  <jim@meyering.net>.
82232
82233 2005-09-12  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
82234
82235         * lib/base64.c: Typo.
82236         (base64_encode): Put b64str in initialized data section.
82237
82238 2005-09-12  Paul Eggert  <eggert@cs.ucla.edu>
82239
82240         Merge glibc and coreutils changes into gnulib, plus a few
82241         extra fixes.
82242         * lib/md5.c: Use #error rather than a string.
82243         (CYCLIC): New macro, from glibc source.  Use it instead of rol.
82244         * lib/md5.h (__GNUC_PREREQ, __THROW): Define if not defined already.
82245         (__attribute__): Define to empty for non recent-GCC.
82246         (__md5_buffer, __md5_finish_ctx, __md5_init_ctx, __md5_process_block):
82247         (__md5_process_bytes, __md5_read_ctx, __md5_stream):
82248         Renamed from their non-__ counterparts, with new macros replacing
82249         them if not _LIBC.  Add __THROW attribute.
82250         (rol): Remove.
82251         (struct md5_ctx): Align buffer if using GCC.
82252         * lib/sha1.h (struct sha1_ctx): Likewise.
82253         * lib/sha1.c (SWAP): Renamed from the NOTSWAP.  All uses changed.
82254         The old name was backwards.
82255         (NOTSWAP): Remove; not used.
82256         (rol): New macro, moved here from md5.h.
82257         (sha1_process_block): Remove a FIXME that doesn't make sense.
82258
82259 2005-09-12  Derek Price  <derek@ximbiot.com>
82260
82261         Return usable errors from canon-host.
82262         * lib/canon-host.h: New file.
82263         * lib/canon-host.c (canon_host): Wrap...
82264         (canon_host_r): ...this new function, which now relies exclusively on
82265         getaddrinfo.
82266         (ch_strerror): New function.
82267         (last_cherror): New global.
82268         * lib/getaddrinfo.c: Move include of getaddrinfo.h first to test
82269         interface.
82270         (getaddrinfo): Add AI_CANONNAME functionality.  Don't do arithmetic on
82271         void *.
82272         (freeaddrinfo): Free ai->ai_canonname when set.
82273
82274 2005-09-12  Derek Price  <derek@ximbiot.com>
82275
82276         Make canon-host require getaddrinfo.
82277         * m4/canon-host.m4 (gl_CANON_HOST): Remove most dependencies.
82278         AC_LIBSOURCE canon-host.h.  Call...
82279         (gl_PREREQ_CANON_HOST): ...this new function, which requires
82280         gl_GETADDRINFO.
82281         * m4/getaddrinfo.m4 (gl_GETADDRINFO): Compile gai_strerror when needed.
82282
82283 2005-09-12  Derek Price  <derek@ximbiot.com>
82284
82285         * modules/canon-host: Add canon-host.h.  Depend on getaddrinfo.  Make
82286         LGPL.
82287         * modules/getaddrinfo: Add link to opengroup spec.  Depend on strdup.
82288
82289 2005-09-12  Derek Price  <derek@ximbiot.com>
82290
82291         * lib/gai_strerror.c: Include config.h when available.  Include
82292         getaddrinfo.h before other headers to test interface.
82293         Reported by Larry Jones <lawrence.jones@ugs.com>.
82294
82295 2005-09-12  Derek Price  <derek@ximbiot.com>
82296             Paul Eggert  <eggert@cs.ucla.edu>
82297
82298         * modules/glob (Files): Add glob-libc.h.
82299
82300 2005-09-12  Derek Price  <derek@ximbiot.com>
82301             Paul Eggert  <eggert@cs.ucla.edu>
82302
82303         * m4/glob.m4 (gl_GLOB_SUBSTITUTE): AC_LIBSOURCES for glob.c,
82304         glob_.h, glob-libc.h.
82305         (gl_PREREQ_GLOB): Remove _SYS_CDEFS_H hack; no longer needed.
82306
82307 2005-09-12  Derek Price  <derek@ximbiot.com>
82308             Paul Eggert  <eggert@cs.ucla.edu>
82309
82310         * lib/glob-libc.h: Renamed from glob_.h.  The new version is
82311         taken from libc's glob.h, except with '#ifdef __GLOB_GNULIB'
82312         protecting things that should be done only in gnulib contexts.
82313         * lib/glob_.h: New file, containing only the glob things needed for
82314         gnulib.
82315         (GLOB_PREFIX): Remove.  All uses changed to look for __GLOB_GNULIB.
82316         (__GLOB_CONCAT, __GLOB_XCONCAT, __GLOB_ID): Remove; no longer needed.
82317         (glob, globfree, glob_pattern_p): Now defined simply in terms of
82318         rpl_glob, rpl_globfree, rpl_glob_pattern_p.
82319         (__GLOB_GNULIB): New macro, to keep the glob.h changes clearer
82320         and to respect the namespace rules better.
82321
82322 2005-09-08  Simon Josefsson  <jas@extundo.com>
82323
82324         * modules/socklen: New file.
82325
82326 2005-09-08  Simon Josefsson  <jas@extundo.com>
82327
82328         * m4/socklen.m4: New file.
82329
82330 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82331
82332         * modules/utimens (Files): Add m4/utimbuf.m4, since
82333         m4/utimens.m4 requires gl_CHECK_TYPE_STRUCT_UTIMBUF.
82334         Reported by Sergey Poznyakoff.
82335
82336 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82337
82338         * lib/glob.c (glob, globfree, __glob_pattern_p): Use old-style function
82339         definitions, since that's the preferred style in glibc.
82340         Fix a minor spacing issue, and update copyright notice to match
82341         glibc's.
82342
82343 2005-09-08  Paul Eggert  <eggert@cs.ucla.edu>
82344
82345         * config/srclist.txt: Remove glibc bug 1061; it's been fixed.
82346
82347 2005-09-06  Simon Josefsson  <jas@extundo.com>
82348
82349         * lib/getpass.c (getpass): Fix typo, test for HAVE_TCSETATTR and not
82350         TCSETATTR.  Reported by Derek Price <derek@ximbiot.com>.
82351
82352 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82353
82354         * lib/regex_internal.h (bitset_not): Add parens to avoid gcc -Wall
82355         warning.
82356
82357 2005-09-06  Paul Eggert  <eggert@cs.ucla.edu>
82358
82359         * config/srclist.txt: Add glibc bug 1302.
82360
82361 2005-09-05  Paul Eggert  <eggert@cs.ucla.edu>
82362
82363         Change bitset word type from unsigned int to unsigned long int,
82364         as this has better performance on typical 64-bit hosts.
82365         Port bitset code to hosts with unusual word sizes.
82366         * lib/regcomp.c (build_equiv_class, build_charclass, build_range_exp):
82367         (build_collating_symbol):
82368         Prefer bitset to re_bitset_ptr_t in prototypes, when the actual
82369         argument is a bitset.  This is merely a style issue, but it makes
82370         it clearer that an entire array is expected.
82371         (re_compile_fastmap_iter, init_dfa, init_word_char, optimize_subexps):
82372         * lib/regcomp.c (lower_subexp, parse_bracket_exp, built_charclass_op):
82373         Port to the case where bitset_word is not the same as unsigned int.
82374         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82375         (bitset_not, bitset_merge, bitset_set_all, bitset_mask):
82376         Likewise.
82377         * lib/regexec.c (check_dst_limits_calc_pos_1,
82378         check_subexp_matching_top):
82379         (build_trtable, group_nodes_into_DFAstates):
82380         Likewise.
82381         * lib/regcomp.c (re_compile_fastmap_iter, utf8_sb_map, optimize_utf8):
82382         Don't assume that SBC_MAX is a multiple of BITSET_WORD_BITS.
82383         * lib/regex_internal.h (bitset_set_all, bitset_not): Likewise.
82384         * lib/regexec.c (group_nodes_into_DFAstates): Likewise.
82385         * lib/regcomp.c (utf8_sb_map): Don't assume UINT_MAX == 0xffffffff.
82386         * lib/regcomp.c (optimize_subexps, lower_subexp):
82387         Work even if bitset_word has holes in its bitwise representation.
82388         * lib/regex_internal.h (BITSET_WORD_BITS): Likewise.
82389         * lib/regexec.c (check_dst_limits_calc_pos_1,
82390         check_subexp_matching_top):
82391         Likewise.
82392         * lib/regex_internal.c (re_string_reconstruct):
82393         Don't assume UCHAR_MAX == 255.
82394         * lib/regex_internal.h (bitset_set_all): Likewise.
82395         * lib/regex_internal.h (BITSET_WORD_BITS): Renamed from UINT_BITS.
82396         All uses changed.
82397         (BITSET_WORDS): Renamed from BITSET_UINTS.  All uses changed.
82398         (bitset_word): New type, replacing 'unsigned int' for bitset uses.
82399         All uses changed.
82400         (BITSET_WORD_MAX): New macro.
82401         (bitset_set, bitset_clear, bitset_contain, bitset_empty):
82402         (bitset_set_all, bitset_copy):  Now inline functions, not macros.
82403         (bitset_empty, bitset_copy):
82404         Prefer sizeof (bitset) to multiplying it out ourselves.
82405         (bitset_not_merge): Remove; unused.
82406         (bitset_contain): Return bool, not unsigned int with one bit on.
82407         All callers changed.
82408         * lib/regexec.c (build_trtable): Don't assume bitset has no stricter
82409         alignment than re_node_set; do this by defining a new internal
82410         type struct dests_alloc and using it to allocate memory.
82411
82412 2005-09-05  Bruno Haible  <bruno@clisp.org>
82413
82414         * gnulib-tool (func_import): Fix comparison in handling of symbolic
82415         links.
82416
82417 2005-09-04  Martin Lambers  <marlam@marlam.de>  (tiny change)
82418
82419         * modules/size_max (Makefile.am): Add size_max.h
82420
82421 2005-09-04  Derek Price  <derek@ximbiot.com>
82422
82423         * gnulib-tool (func_import): Fix reversed $symbolic logic.
82424
82425 2005-09-03  Simon Josefsson  <jas@extundo.com>
82426
82427         * gnulib-tool: Fix typo.
82428
82429 2005-09-03  Simon Josefsson  <jas@extundo.com>
82430
82431         * config/srclist.txt: Add glibc bug 1293.
82432
82433 2005-09-03  Derek Price  <derek@ximbiot.com>
82434
82435         * m4/getlogin_r (gl_GETLOGIN_R): Fix cut & paste error.
82436         From Larry Jones <lawrence.jones@ugs.com>.
82437
82438 2005-09-02  Simon Josefsson  <jas@extundo.com>
82439
82440         * modules/socklen: New file.
82441
82442 2005-09-02  Simon Josefsson  <jas@extundo.com>
82443
82444         * modules/havelib: New module.
82445
82446         * modules/gettext, modules/iconv, modules/lock, modules/readline:
82447         Use havelib.
82448
82449 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82450
82451         Check for arithmetic overflow when calculating sizes, to prevent
82452         some buffer-overflow issues.  These patches are conservative, in the
82453         sense that when I couldn't determine whether an overflow was possible,
82454         I inserted a run-time check.
82455         * lib/regex_internal.h (re_xmalloc, re_xrealloc, re_x2realloc): New
82456         macros.
82457         (SIZE_MAX) [!defined SIZE_MAX]: New macro.
82458         (re_alloc_oversized, re_x2alloc_oversized, re_xnmalloc):
82459         (re_xnrealloc, re_x2nrealloc): New inline functions.
82460         * lib/regcomp.c (init_dfa, analyze, build_range_exp,
82461         parse_bracket_exp):
82462         (build_equiv_class, build_charclass): Check for arithmetic overflow
82463         in size expression calculations.
82464         * lib/regex_internal.c (re_string_realloc_buffers):
82465         (build_wcs_upper_buffer, re_node_set_add_intersect):
82466         (re_node_set_init_union, re_node_set_insert, re_node_set_insert_last):
82467         (re_dfa_add_node, register_state): Likewise.
82468         * lib/regexec.c (re_search_stub, re_copy_regs, re_search_internal):
82469         (prune_impossible_nodes, push_fail_stack, set_regs, check_arrival):
82470         (build_trtable, extend_buffers, match_ctx_init, match_ctx_add_entry):
82471         (match_ctx_add_subtop, match_ctx_add_sublast): Likewise.
82472
82473 2005-09-02  Paul Eggert  <eggert@cs.ucla.edu>
82474
82475         * modules/inttostr (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
82476         m4/ulonglong.m4.  Problem reported by Martin Lambers.
82477
82478 2005-09-02  Bruno Haible  <bruno@clisp.org>
82479
82480         Support for lib vs. lib64 distinction on biarch platforms.
82481         * m4/lib-prefix.m4 (AC_LIB_PREPARE_MULTILIB): New macro.
82482         (AC_LIB_PREFIX): Require it. Use $acl_libdirstem instead of 'lib'.
82483         * m4/lib-link.m4 (AC_LIB_LINKFLAGS_BODY): Likewise.
82484
82485 2005-09-02  Bruno Haible  <bruno@clisp.org>
82486
82487         * gnulib-tool (import): In the other first-use case, provide defaults
82488         as well.
82489
82490 2005-09-02  Bruno Haible  <bruno@clisp.org>
82491
82492         * config/srclist.txt: lib-link.m4 and lib-prefix.m4 currently have
82493         patches not yet found in the latest gettext release.
82494
82495 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82496
82497         * lib/glob.c (GET_LOGIN_NAME_MAX): Renamed from LOGIN_NAME_MAX,
82498         to avoid a collision with bits/local_lim.h in glibc.
82499         All uses changed.  Problem reported by Dmitry V. Levin in
82500         <http://sources.redhat.com/bugzilla/show_bug.cgi?id=1060>.
82501
82502         * lib/regex_internal.c (build_wcs_upper_buffer): Fix portability
82503         bugs in int versus size_t comparisons.
82504         (re_string_context_at): Fix bug where the code assumed that
82505         Idx is signed.
82506
82507         Use bool where appropriate.
82508         * lib/regcomp.c (re_set_fastmap): ICASE arg is bool, not int.
82509         All callers changed.
82510         (calc_eclosure_iter): Likewise, for ROOT arg.
82511         (parse_bracket_element): Likewise, for ACCEPT_HYPHEN arg.
82512         (build_charclass_op): Likewise, for NON_MATCH arg.
82513         * lib/regex_internal.c (re_string_allocate, re_string_construct):
82514         (re_string_construct_common): Likewise, for ICASE arg.
82515         * lib/regexec.c (re_search_2_stub, re_search_stub):
82516         Likewise, for RET_LEN arg.
82517         (check_matching): Likewise, for FL_LONGEST_MATCH arg.
82518         (set_regs): Likewise, for FL_BACKTRACK arg.
82519         * lib/regcomp.c (re_compile_fastmap_iter, optimize_utf8):
82520         (duplicate_node_closure, calc_inveclosure, calc_eclosure):
82521         (calc_eclosure_iter, parse_bracket_exp):
82522         Use bool for internal variables that are booleans.
82523         * lib/regexec.c (re_search_internal, check_matching,
82524         proceed_next_node):
82525         (set_regs, build_sifted_states, sift_states_bkref):
82526         (check_arrival_add_next_nodes, check_arrival_expand_ecl_sub):
82527         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
82528         (find_collation_sequence_value):
82529         Likewise.
82530         * lib/regex_internal.c (re_node_set_insert, re_node_set_insert_last):
82531         (re_node_set_compare):
82532         Return bool, not int. All callers changed.
82533         * lib/regexec.c (check_halt_node_context, check_dst_limits):
82534         (build_trtable, check_node_accept): Likewise.
82535         * lib/regex_internal.h: Include stdbool.h.
82536
82537         Fix bugs uncovered when converting to bool.
82538         * lib/regcomp.c (calc_eclosure_iter): Check for storage allocation
82539         failure instead of charging ahead blindly.
82540         * lib/regex_internal.c (register_state): Likewise.
82541         * lib/regexec.c (re_search_2_stub): Use simpler method than boolean
82542         for freeing internal storage.
82543         (group_nodes_into_DFA_states): Use unsigned int, not int, for
82544         bitset pieces used as boolean, to avoid undefined behavior
82545         on hosts that do int overflow checking.
82546
82547 2005-09-01  Paul Eggert  <eggert@cs.ucla.edu>
82548
82549         * config/srclist.txt: Add glibc bugs 1285-1287.
82550
82551 2005-09-01  Jim Meyering  <jim@meyering.net>
82552
82553         * m4/lchown.m4: Require gl_FUNC_CHOWN, for the definition of
82554         CHOWN_MODIFIES_SYMLINK, which is used by lchown.c.
82555         Require gl_STAT_MACROS, too.
82556
82557 2005-09-01  Bruno Haible  <bruno@clisp.org>
82558
82559         * gnulib-tool (import): In the first-use case, provide defaults.
82560
82561 2005-09-01  Bruno Haible  <bruno@clisp.org>
82562
82563         * gnulib-tool (func_import): Remove the .tmp files.
82564
82565 2005-09-01  Bruno Haible  <bruno@clisp.org>
82566
82567         * gnulib-tool (func_import): Fix handling of symbolic links.
82568
82569 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82570
82571         On 64-bit hosts (where size_t is 64 bits and int is 32 bits), the
82572         old glibc regex code mishandles strings longer than 2**31 bytes.
82573         This patch fixes this when the regex code is used in gnulib
82574         (i.e., outside glibc).
82575
82576         This patch should not affect the use of the regex code inside
82577         glibc.  No doubt this problem also needs to be handled for glibc
82578         as well, but the result will be an incompatible change to the
82579         glibc ABI, and the old ABI will have to be supported too.  That
82580         can be the the subject for another patch.
82581
82582         * lib/regex.h (_REGEX_LARGE_OFFSETS): New feature-test macro,
82583         governing whether the rest of this patch is active.  By default,
82584         the macro is disabled and the patch has no effect.
82585         (regoff_t) [defined _REGEX_LARGE_OFFSETS]: Define to off_t, not int.
82586         (__re_idx_t, __re_size_t, __re_long_size_t): New types.
82587         (struct re_pattern_buffer, re_search, re_search_2, re_match):
82588         (re_match_2, re_set_registers): Use the new types.
82589         * lib/regex_internal.h (Idx, re_hashval_t): New types.
82590         (REG_MISSING, REG_ERROR, REG_VALID_INDEX, REG_VALID_NONZERO_INDEX):
82591         New macros.
82592         (re_node_set, re_charset_t, re_token_t, re_string_realloc_buffers):
82593         (re_string_context_at, bin_tree_t, re_dfastate_t):
82594         (struct re_state_table_entry, state_array_t, re_sub_match_last_t):
82595         (re_sub_match_top_t, re_match_context_t, re_sift_context_t):
82596         (struct re_fail_stack_ent_t, struct re_fail_stack_t, struct re_dfa_t):
82597         (re_string_char_size_at, re_string_wchar_at):
82598         (re_string_elem_size_at):
82599         Use the new types and macros to port to 64-bit hosts.
82600         Use unsigned types for internal values, so that the code
82601         mostly works even for arrays larger than SSIZE_MAX.
82602         * lib/regcomp.c (re_compile_internal, init_dfa, duplicate_node):
82603         (search_duplicated_node, calc_eclosure_iter, fetch_number):
82604         (parse_reg_exp, parse_branch, parse_expression, parse_sub_exp):
82605         (build_equiv_class, build_charclass, re_compile_fastmap_iter):
82606         (free_dfa_content, create_initial_state, optimize_utf8, analyze):
82607         (optimize_subexps, calc_first, link_nfa_nodes, duplicate_node_closure):
82608         (calc_inveclosure, parse_dup_op, build_range_exp):
82609         (build_collating_symbol, parse_bracket_exp, build_charclass_op):
82610         (fetch_number, create_token_tree, mark_opt_subexp):
82611         Likewise.
82612         * lib/regex_internal.c (re_string_construct_common,
82613         create_ci_newstate):
82614         (create_cd_newstate, re_string_allocate, re_string_construct):
82615         (re_string_realloc_buffers, build_wcs_upper_buffer):
82616         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
82617         (re_string_reconstruct, re_string_peek_byte_case):
82618         (re_string_fetch_byte_case, re_string_context_at):
82619         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
82620         (re_node_set_init_copy, re_node_set_add_intersect):
82621         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82622         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82623         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
82624         (re_acquire_state, re_acquire_state_context, register_state):
82625         Likewise.
82626         * lib/regex.c (match_ctx_init, match_ctx_add_entry,
82627         search_cur_bkref_entry):
82628         (match_ctx_add_subtop, match_ctx_add_sublast, sift_ctx_init):
82629         (re_search_internal, re_search_2_stub, re_search_stub)
82630         (re_copy_regs, check_matching, check_halt_state_context, update_regs):
82631         (push_fail_stack, sift_states_iter_mb, build_sifted_states):
82632         (update_cur_sifted_state, check_dst_limits):
82633         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82634         (check_subexp_limits, sift_states_bkref, merge_state_array):
82635         (check_subexp_matching_top, get_subexp, get_subexp_sub):
82636         (find_subexp_node, check_arrival, check_arrival_add_next_nodes):
82637         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
82638         (expand_bkref_cache, check_node_accept_bytes):
82639         (group_nodes_into_DFAstates, check_node_accept, regexec, re_match):
82640         (re_search, re_match_2, re_search_2, prune_impossible_nodes):
82641         (acquire_init_state_context, check_halt_node_context):
82642         (proceed_next_node, pop_fail_stack, set_regs, free_fail_stack_return):
82643         (sift_states_backward, clean_state_log_if_needed):
82644         (sub_epsilon_src_nodes, add_epsilone_src_nodes, merge_state_with_log):
82645         (find_recover_state, transit_state_sb, transit_state_mb):
82646         (transit_state_bkref, build_trtable, match_ctx_clean):
82647         Likewise.
82648         * lib/regcomp.c (parse_dup_op): Add an extra test if Idx is unsigned,
82649         to work around an assumption that REG_MISSING is negative.
82650
82651         * lib/regcomp.c (re_comp) [defined _REGEX_RE_COMP || defined _LIBC]:
82652         (seek_collating_symbol_entry) [defined _LIBC]:
82653         (lookup_collation_sequence_value) [defined _LIBC]:
82654         (build_range_exp, build_collating_symbol) [defined _LIBC]:
82655         Use prototypes rather than old-style function definitions.
82656         * lib/regexec.c (re_exec) [defined _REGEX_RE_COMP || defined _LIBC]:
82657         (transit_state_sb) [0]:
82658         (find_collation_sequence_value) [defined _LIBC]: Likewise.
82659
82660         * lib/regexec.c (re_search_internal): Simplify update of rm_so and
82661         rm_eo.
82662
82663         * lib/regcomp.c (re_compile_fastmap_iter, init_dfa, init_word_char):
82664         (optimize_subexps, lower_subexp):
82665         Don't assume 1<<31 has defined behavior on hosts with 32-bit int,
82666         since the signed shift might overflow.  Use 1u<<31 instead.
82667         * lib/regex_internal.h (bitset_set, bitset_clear, bitset_contain):
82668         Likewise.
82669         * lib/regexec.c (check_dst_limits_calc_pos_1,
82670         check_subexp_matching_top): Likewise.
82671
82672         * lib/regcomp.c (optimize_subexps, lower_subexp):
82673         Use CHAR_BIT rather than 8, for clarity.
82674         * lib/regexec.c (check_dst_limits_calc_pos_1):
82675         (check_subexp_matching_top): Likewise.
82676         * lib/regcomp.c (init_dfa): Make table_size unsigned, so that we don't
82677         have to worry about portability issues when shifting it left.
82678         Remove no-longer-needed test for table_size > 0.
82679         * lib/regcomp.c (parse_sub_exp): Do not shift more bits than there are
82680         in a word, as the resulting behavior is undefined.
82681         * lib/regexec.c (check_dst_limits_calc_pos_1): Likewise;
82682         in one case, a <= should have been an <, and in another case the
82683         whole test was missing.
82684         * lib/regex_internal.h (BYTE_BITS): Remove.  All uses changed to
82685         the standard name CHAR_BIT.
82686         * lib/regexec.c (match_ctx_add_entry): Don't assume that ~0 == -1;
82687         this is not true on one's complement and signed-magnitude hosts.
82688
82689         * lib/regex_internal.h (re_sub_match_top_t): Remove unused member
82690         next_last_offset.
82691         (struct re_dfa_t): Remove unused member states_alloc.
82692         * lib/regcomp.c (init_dfa): Don't initialize unused members.
82693
82694 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82695
82696         * m4/regex.m4 (gl_REGEX): Require AC_SYS_LARGEFILE, Define
82697         _REGEX_LARGE_OFFSETS).  Test for regoff_t/off_t bug in 64-bit
82698         and large-file glibc and in 32-bit large-file Solaris.
82699
82700 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82701
82702         * lib/regex_internal.c (re_string_reconstruct): Don't assume buffer
82703         lengths fit in regoff_t; this isn't true if regoff_t is the same
82704         width as size_t.
82705         * lib/regex.c (re_search_internal): 5th arg is LAST_START
82706         (= START + RANGE) instead of RANGE.  This avoids overflow
82707         problems when regoff_t is the same width as size_t.
82708         All callers changed.
82709         (re_search_2_stub): Check for overflow when adding the
82710         sizes of the two strings.
82711         (re_search_stub): Check for overflow when adding START
82712         to RANGE; if it occurs, substitute the extreme value.
82713
82714 2005-08-31  Paul Eggert  <eggert@cs.ucla.edu>
82715
82716         * config/srclist.txt: Add glibc bugs 1273, 1278-1282, 1284.
82717
82718 2005-08-31  Jim Meyering  <jim@meyering.net>
82719
82720         * lib/regcomp.c (search_duplicated_node): Make first pointer arg
82721         a pointer-to-const.
82722         * lib/regex_internal.c (create_ci_newstate, create_cd_newstate):
82723         (register_state): Likewise.
82724         * lib/regexec.c (search_cur_bkref_entry, check_dst_limits):
82725         (check_dst_limits_calc_pos_1, check_dst_limits_calc_pos):
82726         (group_nodes_into_DFAstates): Likewise.
82727
82728 2005-08-31  Jim Meyering  <jim@meyering.net>
82729
82730         * check-module: Add a FIXME comment.
82731
82732 2005-08-31  Eric Blake  <ebb9@byu.net>
82733
82734         * modules/unistd-safer (Files): Add unistd--.h.
82735         * modules/stdio-safer (Files): Add stdio--.h.
82736
82737 2005-08-31  Derek Price  <derek@ximbiot.com>
82738
82739         * lib/getdelim.c (getdelim): Return EOF on EOF.
82740         Reported by Larry Jones <lawrence.jones@ugs.com>.
82741
82742 2005-08-31  Bruno Haible  <bruno@clisp.org>
82743
82744         Avoid unnecessary diffs in the generated lib/Makefile.am.
82745         * gnulib-tool (func_emit_lib_Makefile_am): Don't write the cmd into
82746         the generated files.
82747         (func_import): Don't set cmd.
82748
82749 2005-08-31  Bruno Haible  <bruno@clisp.org>
82750
82751         * lib/strstr.c: Include <stddef.h>, for NULL.
82752         * lib/strcasestr.c: Likewise.
82753         Reported by Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
82754
82755 2005-08-31  Bruno Haible  <bruno@clisp.org>
82756
82757         * gnulib-tool: New option --macro-prefix.
82758         (func_import): Use macro_prefix.
82759         (import): Handle option --macro-prefix.
82760
82761 2005-08-31  Bruno Haible  <bruno@clisp.org>
82762
82763         * gnulib-tool (import): Rename most ac_* variables to cached_*.
82764         Also use new variables cached_lgpl, cached_libtool.
82765
82766 2005-08-31  Bruno Haible  <bruno@clisp.org>
82767
82768         * gnulib-tool (func_import): Require AC_GNU_SOURCE etc. instead of
82769         always instantiating them.
82770
82771 2005-08-31  Bruno Haible  <bruno@clisp.org>
82772
82773         * gnulib-tool (func_import): Read the previous cached settings
82774         from gnulib-cache.m4 and gnulib-comp.m4. Remove files that were
82775         earlier added by gnulib but are now dropped. Warn when a gnulib file
82776         overwrites a non-gnulib file.
82777
82778 2005-08-31  Bruno Haible  <bruno@clisp.org>
82779
82780         * gnulib-tool (func_import): Generate two files gnulib-cache.m4 and
82781         gnulib-comp.m4 instead of a single gnulib.m4, to make it easy for
82782         projects that don't keep autogenerated files in CVS. Put into
82783         actioncmd only the specified modules, not the transitive closure.
82784
82785 2005-08-31  Bruno Haible  <bruno@clisp.org>
82786
82787         * gnulib-tool (func_import): Fix defaulting of $libname and $libtool.
82788         Create directories that shall be filled.
82789         (import): Don't look for gl_* macros in configure.ac. Recurse across
82790         all directories containing a gnulib-cache.m4 files, if meaningful.
82791
82792 2005-08-31  Bruno Haible  <bruno@clisp.org>
82793
82794         * gnulib-tool (func_import): Emit also a stub for gl_LIBTOOL.
82795         (import): Set seen_libtool when we see gl_LIBTOOL.
82796
82797 2005-08-31  Bruno Haible  <bruno@clisp.org>
82798
82799         * gnulib-tool (func_import): Also copy m4/gnulib-tool.m4. Omit
82800         declaration macro definitions from generated gnulib.m4.
82801
82802 2005-08-30  Oskar Liljeblad  <oskar@osk.mine.nu>
82803
82804         * lib/iconvme.h: Add prototype for iconv_alloc.
82805
82806 2005-08-29  Simon Josefsson  <jas@extundo.com>
82807
82808         * lib/iconvme.c: Fix errno.
82809
82810 2005-08-29  Bruno Haible  <bruno@clisp.org>
82811
82812         * gnulib-tool: Enclose all occurrences of $destdir in "...", so
82813         that it works when the directory contains spaces.
82814
82815 2005-08-29  Bruno Haible  <bruno@clisp.org>
82816
82817         * gnulib-tool (import): Avoid unnecessary spaces in $avoidlist.
82818
82819 2005-08-29  Bruno Haible  <bruno@clisp.org>
82820
82821         * gnulib-tool (func_import): Emit more comments into gnulib.m4.
82822         Emit more advice.
82823
82824 2005-08-29  Bruno Haible  <bruno@clisp.org>
82825         and Stepan Kasal  <kasal@ucw.cz>
82826
82827         * check-module: If more parameters are given, check each of them
82828         separately; add more exceptions, as noted by Jim Meyering.
82829         (check_module): New procedure.
82830         (%exempt_header): Now contains all exceptions.
82831
82832 2005-08-29  Ben Pfaff  <blp@cs.stanford.edu>
82833
82834         * modules/byteswap (Makefile.am): Fix rule to not assume GNU make.
82835
82836 2005-08-29  Oskar Liljeblad  <oskar@osk.mine.nu>
82837
82838         * lib/iconvme.c: Split iconv_string into iconv_alloc.
82839
82840 2005-08-28  Bruno Haible  <bruno@clisp.org>
82841
82842         * m4/gnulib-tool.m4: New file.
82843
82844 2005-08-27  Jim Meyering  <jim@meyering.net>
82845
82846         * modules/unistd-safer (Files): Add pipe-safer.c.
82847         * modules/fcntl-safer (Files): Add creat-safer.c.
82848
82849 2005-08-27  Jim Meyering  <jim@meyering.net>
82850
82851         * m4/stdlib-safer.m4: New file.  From coreutils.
82852         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Add stdio--.h.
82853         * m4/fcntl-safer.m4 (gl_FCNTL_SAFER): Add creat-safer.c to the
82854         AC_LIBSOURCES list and arrange to compile it via AC_LIBOBJ.
82855         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise, add pipe-safer.c.
82856         Add pipe-safer.c and unistd--.h to the AC_LIBSOURCES list.
82857
82858 2005-08-27  Jim Meyering  <jim@meyering.net>
82859
82860         * lib/fopen-safer.c: Merge minor changes from coreutils.
82861         * lib/dup-safer.c: Likewise.
82862         * lib/fd-safer.c: Likewise.
82863
82864         Merge from coreutils.
82865         * lib/stdio--.h: New file.
82866         * lib/stdlib--.h: New file.
82867         * lib/mkstemp-safer.c: New file.
82868
82869         GNU tar needs these.
82870         * lib/pipe-safer.c: New file.
82871         * lib/creat-safer.c: New file.
82872         * lib/fcntl--.h (creat): Define to creat_safer.
82873         * lib/fcntl-safer.h: Include <sys/types.h> and declare creat_safer.
82874         * lib/unistd--.h (pipe): Define to pipe_safer.
82875         * lib/unistd-safer.h: Declare pipe_safer.
82876
82877 2005-08-26  Simon Josefsson  <jas@extundo.com>
82878
82879         * lib/getpass.c: Use _WIN32 instead of WIN32, suggested by Bruno
82880         Haible <bruno@clisp.org>.
82881
82882 2005-08-26  Paul Eggert  <eggert@cs.ucla.edu>
82883
82884         * lib/regex_internal.h: Remove all references to
82885         RE_NO_INTERNAL_PROTOTYPES; no longer neeeded now that we assume C89
82886         or better.
82887         (bitset_not, bitset_merge, bitset_not_merge):
82888         (bitset_mask, re_string_allocate, re_string_construct):
82889         (re_string_reconstruct, re_string_destruct, re_string_elem_size_at):
82890         (re_string_char_size_at, re_string_wchar_at, re_string_peek_byte_case):
82891         (re_string_fetch_byte_case, re_node_set_alloc, re_node_set_init_1):
82892         (re_node_set_init_2, re_node_set_init_copy, re_node_set_add_intersect):
82893         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
82894         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
82895         (re_node_set_remove_at, re_dfa_add_node, re_acquire_state):
82896         (re_acquire_state_context):
82897         Remove unnecessary forward decls.
82898         (re_string_char_size_at, re_string_wchar_at, re_string_elem_size_at):
82899         Put __attribute at function definition,
82900         now that the function decl has been removed.
82901         * lib/regex_internal.c (re_string_peek_byte_case):
82902         (re_string_fetch_byte_case, re_node_set_compare, re_node_set_contains):
82903         Likewise.
82904
82905 2005-08-25  Stepan Kasal  <kasal@ucw.cz>
82906
82907         * m4/regex.m4: Add AC_PREREQ(2.50).
82908         (gl_REGEX): If --with-included-regex was given, skip the autodetection.
82909
82910 2005-08-25  Simon Josefsson  <jas@extundo.com>
82911
82912         * m4/getpass.m4: Check for termios.h, tcgetattr, tcsetattr, and
82913         __fsetlocking.
82914
82915 2005-08-25  Simon Josefsson  <jas@extundo.com>
82916
82917         * lib/getpass.c: Add WIN32 implementation.  Conditionalize use of
82918         termios.h, tcgetattr, tcsetattr and __fsetlocking.  Remove some
82919         GLIBC specific code.
82920
82921 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82922
82923         Make regex safe for g++.  This fixes one real bug (an "err"
82924         that should have been "*err").  g++ problem reported by
82925         Sam Steingold.
82926         * lib/regex_internal.h (re_calloc): New macro, consistent with
82927         re_malloc etc.  All callers of calloc changed to use re_calloc.
82928         * lib/regex_internal.c (build_wcs_upper_buffer): Return reg_errcode_t,
82929         not int.  All callers changed.
82930         * lib/regcomp.c (re_compile_fastmap_iter): Don't use
82931         alloca (mb_cur_max); just use an array of size MB_LEN_MAX.
82932         * lib/regexec.c (push_fail_stack): Use re_realloc, not realloc.
82933         (find_recover_state): Change "err" to "*err"; this fixes what
82934         appears to be a real bug.
82935         (check_arrival_expand_ecl_sub): Be consistent about reg_errcode_t
82936         versus int.
82937
82938 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82939
82940         * modules/regex (Depends-on): Add malloc, since the code
82941         assumes that !malloc(0) means failure.
82942
82943 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82944
82945         * lib/regexec.c (set_regs): Don't alloca with an unbounded size.
82946
82947         alloca modernization/simplification for regex.
82948         * lib/regex.c: Remove portability cruft for alloca.  This no longer
82949         needs to be at the start of the file, and can be moved into
82950         regex_internal.h and simplified.
82951         * lib/regex_internal.h: Include <alloca.h>.
82952         (__libc_use_alloca) [!defined _LIBC]: New macro.
82953         * lib/regexec.c (build_trtable): Remove "#ifdef _LIBC", since the code
82954         now works outside glibc.
82955
82956 2005-08-25  Paul Eggert  <eggert@cs.ucla.edu>
82957
82958         * config/srclist.txt: Add glibc bugs 1241, 1245.
82959
82960 2005-08-25  Jim Meyering  <jim@meyering.net>
82961
82962         * lib/open-safer.c: Include <config.h>.
82963         Otherwise, we'd lose LARGEFILE support in any file using
82964         e.g. "fcntl--.h"
82965
82966 2005-08-25  Bruno Haible  <bruno@clisp.org>
82967
82968         * m4/minmax.m4: Require autoconf 2.52.
82969         (gl_MINMAX_IN_HEADER): Add comments. Use m4_pushdef/m4_popdef instead
82970         of define/undefine. Use AS_TR_SH and AS_TR_CPP as more robust
82971         alternatives of translit over the alphabet.
82972         Based on a patch from Stepan Kasal <kasal@ucw.cz>.
82973
82974 2005-08-24  Simon Josefsson  <jas@extundo.com>
82975
82976         * tests/test-getpass.c: New file.
82977
82978 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82979
82980         * m4/regex.m4 (gl_REGEX): Use POSIX-compliant spellings when testing
82981         for GNU regex features.
82982
82983 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
82984
82985         * lib/regcomp.c (regerror): 2nd arg is 'restrict', as per POSIX.
82986         * lib/regex.h (regerror): Likewise.
82987
82988         * lib/regex.c: Do not include <sys/types.h>, as POSIX no longer
82989         requires this.  (The code never needed it.)
82990
82991         * lib/regcomp.c, regex_internal.c, regex_internal.h, regexec.c:
82992         All uses of recently-renamed identifiers changed to use the new,
82993         POSIX-compliant names.  The code will build and run just fine
82994         without these changes, but it's better to eat our own dog food
82995         and use the standard-conforming names.
82996
82997         * lib/regex.h: Fix a multitude of POSIX name space violations.
82998         These changes have an effect only for programs that define
82999         _POSIX_C_SOURCE, _POSIX_SOURCE, or _XOPEN_SOURCE; they
83000         do not change anything for programs compiled in the normal way.
83001         Also, there is no effect on the ABI.
83002
83003         (_REGEX_SOURCE): New macro.
83004         Do not include <stddef.h> if _XOPEN_SOURCE and VMS are both
83005         defined and _GNU_SOURCE is not; this fixes a name space violation.
83006
83007         Rename the following macros to obey POSIX requirements.
83008         The old names are still visible as macros if _REGEX_SOURCE is defined.
83009         (REG_BACKSLASH_ESCAPE_IN_LISTS): renamed from
83010         RE_BACKSLASH_ESCAPE_IN_LISTS.
83011         (REG_BK_PLUS_QM): renamed from RE_BK_PLUS_QM.
83012         (REG_CHAR_CLASSES): renamed from RE_CHAR_CLASSES.
83013         (REG_CONTEXT_INDEP_ANCHORS): renamed from RE_CONTEXT_INDEP_ANCHORS.
83014         (REG_CONTEXT_INDEP_OPS): renamed from RE_CONTEXT_INDEP_OPS.
83015         (REG_CONTEXT_INVALID_OPS): renamed from RE_CONTEXT_INVALID_OPS.
83016         (REG_DOT_NEWLINE): renamed from RE_DOT_NEWLINE.
83017         (REG_DOT_NOT_NULL): renamed from RE_DOT_NOT_NULL.
83018         (REG_HAT_LISTS_NOT_NEWLINE): renamed from RE_HAT_LISTS_NOT_NEWLINE.
83019         (REG_INTERVALS): renamed from RE_INTERVALS.
83020         (REG_LIMITED_OPS): renamed from RE_LIMITED_OPS.
83021         (REG_NEWLINE_ALT): renamed from RE_NEWLINE_ALT.
83022         (REG_NO_BK_BRACES): renamed from RE_NO_BK_BRACES.
83023         (REG_NO_BK_PARENS): renamed from RE_NO_BK_PARENS.
83024         (REG_NO_BK_REFS): renamed from RE_NO_BK_REFS.
83025         (REG_NO_BK_VBAR): renamed from RE_NO_BK_VBAR.
83026         (REG_NO_EMPTY_RANGES): renamed from RE_NO_EMPTY_RANGES.
83027         (REG_UNMATCHED_RIGHT_PAREN_ORD): renamed from
83028         RE_UNMATCHED_RIGHT_PAREN_ORD.
83029         (REG_NO_POSIX_BACKTRACKING): renamed from RE_NO_POSIX_BACKTRACKING.
83030         (REG_NO_GNU_OPS): renamed from RE_NO_GNU_OPS.
83031         (REG_DEBUG): renamed from RE_DEBUG.
83032         (REG_INVALID_INTERVAL_ORD): renamed from RE_INVALID_INTERVAL_ORD.
83033         (REG_IGNORE_CASE): renamed from RE_ICASE.  This renaming is a bit
83034         unusual, since we can't clash with the POSIX REG_ICASE.
83035         (REG_CARET_ANCHORS_HERE): renamed from RE_CARET_ANCHORS_HERE.
83036         (REG_CONTEXT_INVALID_DUP): renamed from RE_CONTEXT_INVALID_DUP.
83037         (REG_NO_SUB): renamed from RE_NO_SUB.
83038         (REG_SYNTAX_EMACS): renamed from RE_SYNTAX_EMACS.
83039         (REG_SYNTAX_AWK): renamed from RE_SYNTAX_AWK.
83040         (REG_SYNTAX_GNU_AWK): renamed from RE_SYNTAX_GNU_AWK.
83041         (REG_SYNTAX_POSIX_AWK): renamed from RE_SYNTAX_POSIX_AWK.
83042         (REG_SYNTAX_GREP): renamed from RE_SYNTAX_GREP.
83043         (REG_SYNTAX_EGREP): renamed from RE_SYNTAX_EGREP.
83044         (REG_SYNTAX_POSIX_EGREP): renamed from RE_SYNTAX_POSIX_EGREP.
83045         (REG_SYNTAX_ED): renamed from RE_SYNTAX_ED.
83046         (REG_SYNTAX_SED): renamed from RE_SYNTAX_SED.
83047         (_REG_SYNTAX_POSIX_COMMON): renamed from _RE_SYNTAX_POSIX_COMMON.
83048         (REG_SYNTAX_POSIX_BASIC): renamed from RE_SYNTAX_POSIX_BASIC.
83049         (REG_SYNTAX_POSIX_MINIMAL_BASIC): renamed from
83050         RE_SYNTAX_POSIX_MINIMAL_BASIC.
83051         (REG_SYNTAX_POSIX_EXTENDED): renamed from RE_SYNTAX_POSIX_EXTENDED.
83052         (REG_SYNTAX_POSIX_MINIMAL_EXTENDED): renamed from
83053         RE_SYNTAX_POSIX_MINIMAL_EXTENDED.
83054         (REG_DUP_MAX): renamed from RE_DUP_MAX.  No need to undef it.
83055         (REG_UNALLOCATED): Renamed from REGS_UNALLOCATED.
83056         (REG_REALLOCATE): Renamed from REGS_REALLOCATE.
83057         (REG_FIXED): Renamed from REGS_FIXED.
83058         (REG_NREGS): Renamed from RE_NREGS.
83059
83060         (REG_ICASE, REG_NEWLINE, REG_NOSUB): Do not depend on the values
83061         of other REG_* macros, since POSIX says the user is allowed to
83062         #undef these macros selectively.
83063
83064         (reg_errcode_t): Update comment stating what other tables need
83065         to be consistent.
83066
83067         Rename the following enum values to obey POSIX requirements.
83068         The old names are still visible as macros.
83069         (_REG_ENOSYS): Renamed from REG_ENOSYS.  Define even if _XOPEN_SOURCE
83070         is not defined, since GNU is supposed to be a superset of POSIX as
83071         much as possible, and since we want reg_errcode_t to be a signed
83072         type for implementation consistency.
83073         (_REG_NOERROR): Renamed from REG_NOERROR.
83074         (_REG_NOMATCH): Renamed from REG_NOMATCH.
83075         (_REG_BADPAT): Renamed from REG_BADPAT.
83076         (_REG_ECOLLATE): Renamed from REG_ECOLLATE.
83077         (_REG_ECTYPE): Renamed from REG_ECTYPE.
83078         (_REG_EESCAPE): Renamed from REG_EESCAPE.
83079         (_REG_ESUBREG): Renamed from REG_ESUBREG.
83080         (_REG_EBRACK): Renamed from REG_EBRACK.
83081         (_REG_EPAREN): Renamed from REG_EPAREN.
83082         (_REG_EBRACE): Renamed from REG_EBRACE.
83083         (_REG_BADBR): Renamed from REG_BADBR.
83084         (_REG_ERANGE): Renamed from REG_ERANGE.
83085         (_REG_ESPACE): Renamed from REG_ESPACE.
83086         (_REG_BADRPT): Renamed from REG_BADRPT.
83087         (_REG_EEND): Renamed from REG_EEND.
83088         (_REG_ESIZE): Renamed from REG_ESIZE.
83089         (_REG_ERPAREN): Renamed from REG_ERPAREN.
83090         (REG_ENOSYS, REG_NOERROR, REG_NOMATCH, REG_BADPAT, REG_ECOLLATE):
83091         (REG_ECTYPE, REG_EESCAPE, REG_ESUBREG, REG_EBRACK, REG_EPAREN):
83092         (REG_EBRACE, REG_BADBR, REG_ERANGE, REG_ESPACE, REG_BADRPT, REG_EEND):
83093         (REG_ESIZE, REG_ERPAREN): Now macros, not enum constants.
83094
83095         (_REG_RE_NAME, _REG_RM_NAME): New macros.
83096         (REG_TRANSLATE_TYPE): Renamed from RE_TRANSLATE_TYPE.  All uses
83097         changed.  But support the old name if the new one is not defined
83098         and if _REGEX_SOURCE.
83099
83100         Change the following member names in struct re_pattern_buffer.
83101         The old names are still supported if !_REGEX_SOURCE.
83102         The new names are always supported, regardless of _REGEX_SOURCE.
83103         (re_buffer): Renamed from buffer.
83104         (re_allocated): Renamed from allocated.
83105         (re_used): Renamed from used.
83106         (re_syntax): Renamed from syntax.
83107         (re_fastmap): Renamed from fastmap.
83108         (re_translate): Renamed from translate.
83109         (re_can_be_null): Renamed from can_be_null.
83110         (re_regs_allocated): Renamed from regs_allocated.
83111         (re_fastmap_accurate): Renamed from fastmap_accurate.
83112         (re_no_sub): Renamed from no_sub.
83113         (re_not_bol): Renamed from not_bol.
83114         (re_not_eol): Renamed from not_eol.
83115         (re_newline_anchor): Renamed from newline_anchor.
83116
83117         Change the following member names in struct re_registers.
83118         The old names are still supported if !_REGEX_SOURCE.
83119         The new names are always supported, regardless of _REGEX_SOURCE.
83120         (rm_num_regs): Renamed from num_regs.
83121         (rm_start): Renamed from start.
83122         (rm_end): Renamed from end.
83123
83124         (re_set_syntax, re_compile_pattern, re_compile_fastmap):
83125         (re_search, re_search_2, re_match, re_match_2, re_set_registers):
83126         Prepend __ to parameter names.
83127
83128         Undo yesterday's changes.
83129
83130 2005-08-24  Paul Eggert  <eggert@cs.ucla.edu>
83131
83132         * config/srclist.txt: Remove glibc bug 1233 and add 1236, which
83133         supersedes it. Add glibc bugs 1237, 1238, 1240.  Comment out
83134         lib/regex.c.
83135
83136 2005-08-24  Jim Meyering  <jim@meyering.net>
83137
83138         Sync from coreutils.
83139         * m4/fcntl-safer.m4: New file.
83140
83141         * m4/xgetcwd.m4: Use AC_LIBSOURCES and AC_LIBOBJ to indicate source
83142         and object files for this module.
83143
83144 2005-08-24  Jim Meyering  <jim@meyering.net>
83145
83146         Sync from coreutils.
83147         * lib/fcntl--.h, lib/fcntl-safer.h, lib/open-safer.c: New files.
83148
83149 2005-08-24  Jim Meyering  <jim@meyering.net>
83150
83151         * modules/xgetcwd (Makefile.am): Remove `lib_SOURCES += ...' line,
83152         now that xgetcwd.m4 requires xgetcwd.c and xgetcwd.h.
83153
83154 2005-08-24  Jim Meyering  <jim@meyering.net>
83155
83156         * modules/fcntl-safer: New module.
83157         * modules/fts (Depends-on): Add fcntl-safer.
83158         * MODULES.html.sh (File descriptor based Input/Output):
83159         Add fcntl-safer.
83160
83161 2005-08-24  Bruno Haible  <bruno@clisp.org>
83162
83163         Support for unit test modules.
83164         * modules/README: Mention tests modules.
83165         * modules/TEMPLATE-TESTS: New file.
83166         * gnulib-tool: New options --extract-tests-module, --with-tests and
83167         --tests-base (unused for the moment).
83168         (testsbase, inctests): New variables.
83169         (func_all_modules): Exclude TEMPLATE-TESTS and *-tests.
83170         (func_verify_module): Exclude TEMPLATE-TESTS.
83171         (func_verify_nontests_module, func_verify_tests_module): New functions.
83172         (func_get_dependencies): Add implicit dependency for tests modules.
83173         (func_get_tests_module): New function.
83174         (func_modules_transitive_closure): When --with-tests was specified,
83175         include the unit tests as well, unless explicitly avoided.
83176         (func_emit_lib_Makefile_am): Ignore the tests modules here.
83177         (func_emit_tests_Makefile_am): New function.
83178         (func_create_testdir): When --with-tests was specified, emit a
83179         tests/ directory.
83180         * MODULES.html.sh (Future developments): Update.
83181
83182 2005-08-24  Bruno Haible  <bruno@clisp.org>
83183
83184         * modules/tls-tests: New file.
83185         * tests/test-tls.c: New file, from GNU gettext.
83186
83187 2005-08-24  Bruno Haible  <bruno@clisp.org>
83188
83189         * modules/lock-tests: New file.
83190         * tests/test-lock.c: New file, from GNU gettext.
83191
83192 2005-08-24  Bruno Haible  <bruno@clisp.org>
83193
83194         * lib/lock.h: Add multiple inclusion guard.
83195         * lib/tls.h: Add multiple inclusion guard.
83196
83197 2005-08-24  Bruno Haible  <bruno@clisp.org>
83198
83199         * gnulib-tool: Add support for the --aux-dir option to
83200         --create-testdir, --create-megatestdir, --test, --megatest.
83201         (func_create_testdir, func_create_megatestdir): Optionally emit a
83202         AC_CONFIG_AUX_DIR directive.
83203         (create-testdir, create-megatestdir, test, megatest): Provide a
83204         default value for $auxdir.
83205
83206 2005-08-24  Bruno Haible  <bruno@clisp.org>
83207
83208         * gnulib-tool (import): Use compound statement instead of subshell
83209         where possible.
83210
83211 2005-08-24  Bruno Haible  <bruno@clisp.org>
83212
83213         * gnulib-tool (import): Change --aux-dir default to "build-aux".
83214
83215 2005-08-24  Bruno Haible  <bruno@clisp.org>
83216
83217         * gnulib-tool (func_version): Update.
83218
83219 2005-08-24  Bruno Haible  <bruno@clisp.org>
83220
83221         * gnulib-tool (func_import, func_create_testdir,
83222         func_create_megatestdir): Quote all autoconf macro arguments.
83223
83224 2005-08-24  Bruno Haible  <bruno@clisp.org>
83225
83226         * gnulib-tool (func_create_megatestdir): Call autoreconf without the
83227         option --force, because --force causes the aclocal.m4 of each
83228         subdirectory to be newer than the corresponding config.h.in.
83229
83230 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83231
83232         * m4/regex.m4 (gl_INCLUDED_REGEX): Remove; no longer used.
83233         All contents moved to gl_REGEX.
83234         (gl_REGEX): Don't bother checking whether lib/regex.c exists;
83235         assume that it does.
83236
83237 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83238
83239         * lib/regex.h (REG_NOSYS)
83240         [!defined _XOPEN_SOURCE && 200112L <= _POSIX_C_SOURCE]:
83241         Define, since POSIX requires it as of 2001.
83242         (_REG_ENOSYS)
83243         [! (defined _XOPEN_SOURCE || 200112L <= _POSIX_C_SOURCE)]:
83244         New private symbol, used to keep the enum signed in all cases.
83245         * lib/regex.h (RE_NO_EMPTY_RANGES): Fix doc bug reported by James
83246         Youngman in
83247         <http://lists.gnu.org/archive/html/bug-gnulib/2005-07/msg00132.html>.
83248
83249         * lib/regex_internal.c (re_string_skip_chars, register_state):
83250         (calc_state_hash):
83251         Remove forward decls; no longer needed now that we use prototypes.
83252         * lib/regexec.c (acquire_init_state_context, check_halt_node_context):
83253         (proceed_next_node, pop_fail_stack, sub_epsilon_src_nodes):
83254         (clean_state_log_if_needed): Likewise.
83255
83256 2005-08-23  Paul Eggert  <eggert@cs.ucla.edu>
83257
83258         * config/srclist.txt: Add glibc bugs 1231-1233.
83259
83260 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83261
83262         Fix problems reported by Sam Steingold in
83263         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00007.html>.
83264         * lib/regexec.c (sift_states_bkref): Fix portability bug: the code
83265         assumed that reg_errcode_t is a signed type, which is not
83266         necessarily true if _XOPEN_SOURCE is not defined.
83267         * lib/regex_internal.c (calc_state_hash): Put 'inline' before type,
83268         since some compilers warn about it otherwise.
83269
83270 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83271
83272         * lib/regcomp.c (create_initial_state): Remove duplicate decl.
83273         (init_word_char, create_initial_state, duplicate_node_closure):
83274         (fetch_token, peek_token_bracket, build_range_exp):
83275         (build_collating_symbol): Remove forward decls; no longer needed
83276         now that we use prototypes.
83277
83278         * lib/regcomp.c:
83279         (re_compile_pattern, re_set_syntax, re_compile_fastmap):
83280         (re_compile_fastmap_iter, regcomp, regerror, regfree):
83281         (re_compile_internal, init_dfa, init_word_char, free_workarea_compile):
83282         (create_initial_state, optimize_utf8, analyze, postorder, preorder):
83283         (optimize_subexps, lower_subexps, lower_subexp, calc_first, calc_next):
83284         (link_nfa_nodes, duplicate_node_closure, search_duplicated_node):
83285         (duplicate_node, calc_inveclosure, calc_eclosure, calc_eclosure_iter):
83286         (fetch_token, peek_token, peek_token_bracket, parse, parse_reg_exp):
83287         (parse_branch, parse_expression, parse_sub_exp, parse_dup_op):
83288         (build_range_exp, build_collating_symbol, parse_bracket_exp):
83289         (parse_bracket_element, parse_bracket_symbol, build_equiv_class):
83290         (build_charclass, build_charclass_op, fetch_number, create_tree):
83291         (create_token_tree, mark_opt_subexp, duplicate_tree):
83292         Use prototypes rather than old-style definitions.
83293
83294         * lib/regex_internal.c:
83295         (re_string_allocate, re_string_construct, re_string_realloc_buffers):
83296         (re_string_construct_common, build_wcs_buffer, build_wcs_upper_buffer):
83297         (re_string_skip_chars, build_upper_buffer, re_string_translate_buffer):
83298         (re_string_reconstruct, re_string_peek_byte_case):
83299         (re_string_fetch_byte_case, re_string_destruct, re_string_context_at):
83300         (re_node_set_alloc, re_node_set_init_1, re_node_set_init_2):
83301         (re_node_set_init_copy, re_node_set_add_intersect):
83302         (re_node_set_init_union, re_node_set_merge, re_node_set_insert):
83303         (re_node_set_insert_last, re_node_set_compare, re_node_set_contains):
83304         (re_node_set_remove_at, re_dfa_add_node, calc_state_hash):
83305         (re_acquire_state, re_acquire_state_context, register_state):
83306         (create_ci_newstate, create_cd_newstate, free_state):
83307         Likewise.
83308         * lib/regexec.c (regexec, re_match, re_search, re_match_2,
83309         re_search_2):
83310         (re_search_2_stub, re_search_stub, re_copy_regs, re_set_registers):
83311         (re_search_internal, prune_impossible_nodes):
83312         (acquire_init_state_context, check_matching, static):
83313         (check_halt_node_context, check_halt_state_context, proceed_next_node):
83314         (push_fail_stack, pop_fail_stack, set_regs, free_fail_stack_return):
83315         (update_regs, sift_states_backward, build_sifted_states):
83316         (clean_state_log_if_needed, merge_state_array):
83317         (update_cur_sifted_state, add_epsilon_src_nodes):
83318         (sub_epsilon_src_nodes, check_dst_limits, check_dst_limits_calc_pos_1):
83319         (check_dst_limits_calc_pos, check_subexp_limits, sift_states_bkref):
83320         (sift_states_iter_mb, transit_state, merge_state_with_log, static):
83321         (find_recover_state, check_subexp_matching_top, transit_state_mb):
83322         (transit_state_bkref, get_subexp, get_subexp_sub, find_subexp_node):
83323         (check_arrival, check_arrival_add_next_nodes):
83324         (check_arrival_expand_ecl, check_arrival_expand_ecl_sub):
83325         (expand_bkref_cache, build_trtable, group_nodes_into_DFAstates):
83326         (check_node_accept_bytes, check_node_accept, extend_buffers):
83327         (match_ctx_init, match_ctx_clean, match_ctx_free, match_ctx_add_entry):
83328         (search_cur_bkref_entry, match_ctx_add_subtop, match_ctx_add_sublast):
83329         (sift_ctx_init):
83330         Likewise.
83331
83332         * lib/regex_internal.h:
83333         (re_string_allocate, re_string_construct, re_string_reconstruct):
83334         (re_string_realloc_buffers, build_wcs_buffer, build_wcs_upper_buffer):
83335         (build_upper_buffer, re_string_translate_buffer, re_string_destruct):
83336         (re_string_elem_size_at, re_string_char_size_at, re_string_wchar_at):
83337         (re_string_context_at, re_string_peek_byte_case):
83338         (re_string_fetch_byte_case): Declare even if RE_NO_INTERNAL_PROTOTYPES
83339         is defined, since we now use prototypes always.
83340
83341         * lib/regex.h (_RE_ARGS): Remove.  No longer needed, since we assume
83342         C89 or better.  All uses removed.
83343
83344 2005-08-20  Paul Eggert  <eggert@cs.ucla.edu>
83345
83346         * config/srclist.txt: Add glibc bugs 1220-1227.
83347
83348 2005-08-20  Jim Meyering  <jim@meyering.net>
83349
83350         * lib/regexec.c (regexec, re_search_stub) [!_LIBC]: Omit declaration
83351         of unused local, dfa.
83352
83353 2005-08-20  Bruno Haible  <bruno@clisp.org>
83354
83355         * m4/regex.m4 (gl_PREREQ_REGEX): Require AC_GNU_SOURCE.
83356
83357 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83358
83359         * lib/regex_internal.c (re_string_realloc_buffers, re_node_set_insert):
83360         (re_node_set_insert_last, re_dfa_add_node):
83361         Rename local variables to avoid GCC shadowing warnings.
83362
83363 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83364
83365         * lib/regex_internal.c (re_acquire_state, re_acquire_state_context)
83366         [defined lint]: Suppress bogus uninitialized-variable warnings.
83367
83368         * lib/regcomp.c (duplicate_node): Return new index, not an error code,
83369         and let the caller return REG_ESPACE if out of space.  This
83370         removes an uninitialied-variable warning with GCC 4.0.1, and also
83371         avoids taking the address of a local variable.  All callers
83372         changed.
83373
83374 2005-08-19  Paul Eggert  <eggert@cs.ucla.edu>
83375
83376         * config/srclist.txt: Comment out $LIBCSRC/posix/regex_internal.c,
83377         $LIBCSRC/posix/regexec.c.
83378         Add glibc bug 1217 for regcomp.c.
83379
83380 2005-08-19  Jim Meyering  <jim@meyering.net>
83381
83382         * lib/regexec.c (proceed_next_node): Redo local variables to
83383         avoid GCC shadowing warnings.
83384
83385 2005-08-18  Bruno Haible  <bruno@clisp.org>
83386
83387         * lib/strstr.c (strstr): Fix return value in multibyte case.
83388         * lib/strcasestr.c (strcasestr): Likewise.
83389
83390 2005-08-17  Paul Eggert  <eggert@cs.ucla.edu>
83391
83392         * lib/regex.h: Remove useless space-before-tab.  From coreutils.
83393
83394 2005-08-17  Jim Meyering  <jim@meyering.net>
83395
83396         Make the %s format (seconds since the epoch) work for a negative
83397         number and when used with a zero-padded field width, e.g. %015s.
83398
83399         * lib/strftime.c (my_strftime): Move the `do_number_sign_and_padding'
83400         label so that it precedes the code to set `digits'.  Otherwise,
83401         %0Ns wouldn't work.  Before this change, `date -d @-22 +%05s' would
83402         print `00-22'.  Now, it prints `-0022', as it should.
83403
83404 2005-08-17  Bruno Haible  <bruno@clisp.org>
83405
83406         * modules/strstr (Files): Add m4/mbrtowc.m4.
83407         (Depends-on): Add mbuiter.
83408
83409 2005-08-17  Bruno Haible  <bruno@clisp.org>
83410
83411         * modules/strcasestr: New file.
83412         * MODULES.html.sh (String handling, based on ANSI C 89): Add
83413         strcasestr.
83414
83415 2005-08-17  Bruno Haible  <bruno@clisp.org>
83416
83417         * modules/strcase (Depends-on): Add mbuiter. Remove strnlen1, mbchar.
83418
83419 2005-08-17  Bruno Haible  <bruno@clisp.org>
83420
83421         * modules/mbuiter: New file.
83422         * MODULES.html.sh (Extended multibyte and wide character utilities):
83423         Add mbuiter.
83424
83425 2005-08-17  Bruno Haible  <bruno@clisp.org>
83426
83427         * m4/strstr.m4 (gl_FUNC_STRSTR): Use the replacement function always.
83428         (gl_PREREQ_STRSTR): Use gl_FUNC_MBRTOWC.
83429
83430 2005-08-17  Bruno Haible  <bruno@clisp.org>
83431
83432         * m4/strcasestr.m4: New file.
83433
83434 2005-08-17  Bruno Haible  <bruno@clisp.org>
83435
83436         * lib/strstr.h: Ignore HAVE_STRSTR, always declare the gnulib function.
83437         * lib/strstr.c: Completely rewritten, with multibyte locale support.
83438
83439 2005-08-17  Bruno Haible  <bruno@clisp.org>
83440
83441         * lib/strcasestr.h: New file.
83442         * lib/strcasestr.c: New file.
83443
83444 2005-08-17  Bruno Haible  <bruno@clisp.org>
83445
83446         * lib/strcasecmp.c: Use mbuiter.h.
83447
83448 2005-08-17  Bruno Haible  <bruno@clisp.org>
83449
83450         * lib/mbuiter.h: New file.
83451
83452 2005-08-16  Paul Eggert  <eggert@cs.ucla.edu>
83453
83454         * m4/getopt.m4 (gl_GETOPT_CHECK_HEADERS): Do not override the results
83455         of gl_GETOPT_SUBSTITUTE.  That way, if both gl_GETOPT_SUBSTITUTE
83456         and gl_GETOPT are both invoked via different paths (as happens
83457         with GNU tar CVS because it uses both argp and getopt), the former
83458         wins.
83459
83460 2005-08-16  Bruno Haible  <bruno@clisp.org>
83461
83462         * modules/tls: New file.
83463         * MODULES.html.sh (Multithreading): Add tls.
83464
83465 2005-08-16  Bruno Haible  <bruno@clisp.org>
83466
83467         * modules/strnlen1: New file.
83468         * MODULES.html.sh (String handling): Add strnlen1.
83469
83470 2005-08-16  Bruno Haible  <bruno@clisp.org>
83471
83472         * modules/strcase (Files): Add m4/mbrtowc.m4.
83473         (Depends-on): Add strnlen1, mbchar.
83474
83475 2005-08-16  Bruno Haible  <bruno@clisp.org>
83476
83477         * modules/mbiter: New file.
83478         * MODULES.html.sh (Extended multibyte and wide character utilities):
83479         Add mbiter.
83480
83481 2005-08-16  Bruno Haible  <bruno@clisp.org>
83482
83483         * modules/mbfile: New file.
83484         * MODULES.html.sh (Extended multibyte and wide character utilities):
83485         Add mbfile.
83486
83487 2005-08-16  Bruno Haible  <bruno@clisp.org>
83488
83489         * modules/mbchar: New file.
83490         * MODULES.html.sh (Extended multibyte and wide character utilities):
83491         New section.
83492
83493 2005-08-16  Bruno Haible  <bruno@clisp.org>
83494
83495         * m4/tls.m4: New file, from GNU gettext.
83496
83497 2005-08-16  Bruno Haible  <bruno@clisp.org>
83498
83499         * m4/strcase.m4 (gl_FUNC_STRCASECMP): Use the replacement function
83500         always.
83501         (gl_PREREQ_STRCASECMP): Use gl_FUNC_MBRTOWC.
83502
83503 2005-08-16  Bruno Haible  <bruno@clisp.org>
83504
83505         * m4/mbiter.m4: New file.
83506
83507 2005-08-16  Bruno Haible  <bruno@clisp.org>
83508
83509         * m4/mbfile.m4: New file.
83510
83511 2005-08-16  Bruno Haible  <bruno@clisp.org>
83512
83513         * m4/mbchar.m4: New file.
83514
83515 2005-08-16  Bruno Haible  <bruno@clisp.org>
83516
83517         * lib/tls.h: New file, from GNU gettext.
83518         * lib/tls.c: New file, from GNU gettext.
83519
83520 2005-08-16  Bruno Haible  <bruno@clisp.org>
83521
83522         * lib/strnlen1.h: New file.
83523         * lib/strnlen1.c: New file.
83524
83525 2005-08-16  Bruno Haible  <bruno@clisp.org>
83526
83527         * lib/strcasecmp.c (struct mbiter_multi): Remove at_end field.
83528         (mbi_init): Update.
83529         (mbi_avail, mbi_advance): Let the iteration end before the terminating
83530         NUL byte, not after it.
83531
83532 2005-08-16  Bruno Haible  <bruno@clisp.org>
83533
83534         * lib/strcase.h (strcasecmp): Add note in comments.
83535         * lib/strncasecmp.c: Use code from strcasecmp.c.
83536         * lib/strcasecmp.c: Use mbchar module. Define private mbiter variant.
83537         (strcasecmp): Work correctly in multibyte locales.
83538
83539 2005-08-16  Bruno Haible  <bruno@clisp.org>
83540
83541         * lib/mbiter.h: New file.
83542
83543 2005-08-16  Bruno Haible  <bruno@clisp.org>
83544
83545         * lib/mbfile.h: New file.
83546
83547 2005-08-16  Bruno Haible  <bruno@clisp.org>
83548
83549         * lib/mbchar.h: New file.
83550         * lib/mbchar.c: New file.
83551
83552 2005-08-16  Bruno Haible  <bruno@clisp.org>
83553
83554         * lib/mbchar.h (mb_cmp, mb_casecmp): Order the invalid characters after
83555         the valid ones. Makes the comparison operations transitive:
83556         cmp (a, b) < 0 && cmp (b, c) < 0 ==> cmp (a, c) < 0.
83557         * lib/strcasecmp.c (strcasecmp): Use mb_casecmp.
83558
83559 2005-08-15  Simon Josefsson  <jas@extundo.com>
83560
83561         * modules/ssize_t (License): Change to 'unlimited'.
83562
83563         * gnulib-tool (sed_extract_prog): Recognize 'unlimited' license.
83564
83565 2005-08-15  Paul Eggert  <eggert@cs.ucla.edu>
83566
83567         * config/srclist.txt: Comment out $LIBCSRC/posix/regex.h.
83568         Add comments for each pending glibc patch.
83569
83570 2005-08-15  Bruno Haible  <bruno@clisp.org>
83571
83572         * lib/regex.h (__restrict_arr): Don't define to __restrict if
83573         __cplusplus is defined.
83574
83575 2005-08-14  Jim Meyering  <jim@meyering.net>
83576
83577         Sync from coreutils.
83578
83579         * lib/fts-cycle.c (setup_dir, enter_dir, leave_dir, free_dir):
83580         Use the hash-table-based cycle-detection code not just when
83581         FTS_TIGHT_CYCLE_CHECK if specified, but also with FTS_LOGICAL.
83582         Reported by James Youngman in
83583         <http://lists.gnu.org/archive/html/bug-gnulib/2005-08/msg00011.html>.
83584         * lib/fts_.h: Mention that with FTS_LOGICAL, we use
83585         FTS_TIGHT_CYCLE_CHECK.
83586         * lib/fts.c (fts_cross_check) [FTS_DEBUG]:
83587         s/active_dir_ht/fts_cycle.ht/. This lets us compile with -DFTS_DEBUG,
83588         once again.
83589         * lib/fts.c [! _LIBC]: Include "lstat.h" rather than rolling our own.
83590         * lib/fts.c (fd_safer): Remove decl.
83591         Include fcntl--.h rather than unistd-safer.h
83592         (fts_safe_changedir): Don't call fd_safer; no longer needed
83593         now that we include fcntl--.h.
83594
83595 2005-08-12  Simon Josefsson  <jas@extundo.com>
83596
83597         * modules/getndelim2: Use ssize_t module.
83598         * modules/getnline: Likewise.
83599         * modules/safe-read: Likewise.
83600         * modules/xreadlink: Likewise.
83601
83602         * modules/ssize_t: New file.
83603
83604 2005-08-12  Simon Josefsson  <jas@extundo.com>
83605
83606         * m4/readline.m4: Look for termcap, curses or ncurses if required.
83607
83608 2005-08-12  Simon Josefsson  <jas@extundo.com>
83609
83610         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
83611         ssize_t.
83612
83613 2005-08-12  Simon Josefsson  <jas@extundo.com>
83614
83615         * MODULES.html.sh (Extra functions based on ANSI C 89: Misc): Add
83616         readline, getdelim and check_version.
83617         (Support for systems lacking ISO C 99: Sizes of integer types):
83618         Add size_max.
83619
83620 2005-08-12  Bruno Haible  <bruno@clisp.org>
83621
83622         * m4/readline.m4 (gl_FUNC_READLINE): Look for ncurses first.
83623
83624 2005-08-11  Simon Josefsson  <jas@extundo.com>
83625
83626         * modules/readline: New file.
83627
83628         * modules/strnlen (Files): Add strnlen.h.
83629
83630 2005-08-11  Simon Josefsson  <jas@extundo.com>
83631
83632         * m4/readline.m4: New file.
83633
83634 2005-08-11  Simon Josefsson  <jas@extundo.com>
83635
83636         * lib/readline.h, readline.c: New file.
83637
83638 2005-08-11  Simon Josefsson  <jas@extundo.com>
83639
83640         * doc/gnulib.texi (Initial import, Finishing touches): Mention
83641         gl_AVOID.
83642
83643 2005-08-11  Bruno Haible  <bruno@clisp.org>
83644
83645         * lib/strnlen.h (strnlen): Change parameter name to match comment.
83646
83647 2005-08-10  Stepan Kasal  <kasal@ucw.cz>
83648
83649         * m4/onceonly_2_57.m4: Really require Autoconf 2.57.
83650
83651 2005-08-10  Simon Josefsson  <jas@extundo.com>
83652
83653         * tests/test-iconvme.c: New file.
83654
83655 2005-08-10  Simon Josefsson  <jas@extundo.com>
83656
83657         * m4/strnlen.m4: New file.
83658
83659         * m4/strndup.m4: Don't check for strnlen declaration, done in
83660         strnlen.m4.
83661
83662 2005-08-10  Simon Josefsson  <jas@extundo.com>
83663
83664         * lib/strndup.c: Use strnlen.h.
83665
83666         * lib/strnlen.h: New file.
83667
83668 2005-08-08  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>  (tiny change)
83669
83670         * README: Typos.
83671
83672 2005-08-02  Simon Josefsson  <jas@extundo.com>
83673
83674         * modules/readline: New file.
83675
83676 2005-08-02  Simon Josefsson  <jas@extundo.com>
83677
83678         * modules/getdelim: New file.
83679
83680         * modules/getline: Rewrite, don't use getndelim2.
83681
83682 2005-08-02  Simon Josefsson  <jas@extundo.com>
83683
83684         * m4/getline.m4: Separate out getdelim stuff into separate module.
83685
83686         * m4/getdelim.m4: New file.
83687
83688 2005-08-02  Simon Josefsson  <jas@extundo.com>
83689
83690         * lib/getline.h, getline.c: Rewrite.
83691
83692         * lib/getdelim.h, lib/getdelim.c: New files, ported from glibc.
83693
83694 2005-07-31  Bruno Haible  <bruno@clisp.org>
83695
83696         * lib/lock.h (gl_lock_initializer): New macro.
83697         (gl_lock_define_initialized): Use it.
83698         (gl_rwlock_initializer): New macro.
83699         (gl_rwlock_define_initialized): Use it.
83700         (gl_recursive_lock_initializer): New macro.
83701         (gl_recursive_lock_define_initialized): Use it.
83702
83703 2005-07-30  Karl Berry  <karl@gnu.org>
83704
83705         * doc/gnulib.texi (Initial import): mention -I$(top_builddir)/lib.
83706         Report from Ben Pfaff, regarding getopt.
83707
83708 2005-07-26  Paul Eggert  <eggert@cs.ucla.edu>
83709
83710         Add support to getopt for Emacs, which doesn't use LIBOBJS in the
83711         normal way.
83712         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE_HEADER): New macro.
83713         (gl_GETOPT_SUBSTITUTE): Use it.  Invoke gl_PREREQ_GETOPT.
83714         (gl_GETOPT_IFELSE, gl_GETOPT_CHECK_HEADERS): New macros.
83715         (gl_GETOPT): Use the new macros.  Most of the implementation
83716         is moved to the new macros.  This is for programs like Emacs
83717         that don't want all the functionality of gl_GETOPT.
83718
83719 2005-07-26  Bruno Haible  <bruno@clisp.org>
83720
83721         * m4/lock.m4: Update from GNU gettext.
83722
83723 2005-07-26  Bruno Haible  <bruno@clisp.org>
83724
83725         * lib/lock.h: Update from GNU gettext.
83726         * lib/lock.c: Update from GNU gettext.
83727
83728 2005-07-25  Paul Eggert  <eggert@cs.ucla.edu>
83729
83730         * m4/regex.m4 (gl_INCLUDED_REGEX): Use AC_RUN_IFELSE instead of the
83731         obsolescent AC_TRY_RUN.  Include the default includes files, for
83732         'exit'.
83733
83734 2005-07-24  Bruno Haible  <bruno@clisp.org>
83735
83736         * modules/visibility: New file.
83737         * MODULES.html.sh (Misc): Add visibility.
83738
83739 2005-07-24  Bruno Haible  <bruno@clisp.org>
83740
83741         * m4/visibility.m4: New file.
83742
83743 2005-07-24  Bruno Haible  <bruno@clisp.org>
83744
83745         * doc/visibility.texi: New file.
83746
83747 2005-07-22  Bruno Haible  <bruno@clisp.org>
83748
83749         * modules/alloca-opt (Makefile.am): Remove explicit dependency on
83750         $(ALLOCA_H), redundant through BUILT_SOURCES.
83751         * modules/argz (Makefile.am): Remove explicit dependency on $(ARGZ_H),
83752         redundant through BUILT_SOURCES.
83753         * modules/byteswap (Makefile.am): Remove explicit dependency on
83754         $(BYTESWAP_H), redundant through BUILT_SOURCES.
83755         * modules/fnmatch (Makefile.am): Remove explicit dependency on
83756         $(FNMATCH_H), redundant through BUILT_SOURCES.
83757         * modules/getopt (Makefile.am): Remove explicit dependency on
83758         $(GETOPT_H), redundant through BUILT_SOURCES.
83759         * modules/glob (Makefile.am): Remove explicit dependency on $(GLOB_H),
83760         redundant through BUILT_SOURCES.
83761         * modules/poll (Makefile.am): Remove explicit dependency on $(POLL_H),
83762         redundant through BUILT_SOURCES.
83763         * modules/stdbool (Makefile.am): Remove explicit dependency on
83764         $(STDBOOL_H), redundant through BUILT_SOURCES.
83765         * modules/stdint (Makefile.am): Remove explicit dependency on
83766         $(STDINT_H), redundant through BUILT_SOURCES.
83767         * modules/sysexits (Makefile.am): Add $(SYSEXITS_H) to BUILT_SOURCES.
83768         Remove explicit dependency on $(SYSEXITS_H).
83769         Reported by Alexandre Duret-Lutz <adl@src.lip6.fr>.
83770
83771 2005-07-18  Simon Josefsson  <jas@extundo.com>
83772
83773         * lib/check-version.c (check_version): Accept identical versions too.
83774
83775 2005-07-18  Bruno Haible  <bruno@clisp.org>
83776
83777         * modules/lock: New file.
83778         * MODULES.html.sh (Multithreading): New section.
83779
83780 2005-07-18  Bruno Haible  <bruno@clisp.org>
83781
83782         * m4/lock.m4: New file, from GNU gettext.
83783
83784 2005-07-18  Bruno Haible  <bruno@clisp.org>
83785
83786         * lib/lock.h: New file, from GNU gettext.
83787         * lib/lock.c: New file, from GNU gettext.
83788
83789 2005-07-18  Bruno Haible  <bruno@clisp.org>
83790
83791         * lib/lock.h (gl_once_t): New type.
83792         (gl_once_define, gl_once): New macros.
83793         * lib/lock.c (fresh_once): New variable.
83794         (glthread_once, glthread_once_call, glthread_once_singlethreaded): New
83795         functions.
83796
83797 2005-07-16  Simon Josefsson  <jas@extundo.com>
83798
83799         * doc/gnulib.texi (Library version handling): Add ELF symbol collision
83800         workaround, suggested by Bruno.
83801
83802 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83803
83804         * modules/xalloc (Depends-on): Add xalloc-die.
83805         * modules/xvasprintf (Depends-on): Add xalloc-die.
83806
83807 2005-07-15  Paul Eggert  <eggert@cs.ucla.edu>
83808
83809         * lib/quotearg.c: Add translator comment suggested by Bruno Haible,
83810         with a minor change.
83811
83812 2005-07-15  Bruno Haible  <bruno@clisp.org>
83813
83814         * m4/poll.m4 (gl_FUNC_POLL): Check against MacOS X 10.4 poll() bug.
83815         When using lib/poll.c, define poll as rpl_poll.
83816
83817 2005-07-14  Paul Eggert  <eggert@cs.ucla.edu>
83818
83819         * modules/argp (Depends-on): Remove unlocked-io.
83820
83821 2005-07-14  Derek Price  <derek@ximbiot.com>
83822
83823         * m4/glob.m4 (gl_GLOB): Cache glob interface check result.  Add check
83824         for glob symlink bug.
83825
83826 2005-07-14  Bruno Haible  <bruno@clisp.org>
83827
83828         * m4/argp.m4 (gl_ARGP): Remove invocation of gl_FUNC_GLIBC_UNLOCKED_IO.
83829         Instead, test for *_unlocked function declarations directly.
83830
83831 2005-07-11  Simon Josefsson  <jas@extundo.com>
83832
83833         * modules/size_max: New file.
83834
83835         * modules/xsize: Depend on size_max module for size_max.m4.
83836
83837 2005-07-11  Simon Josefsson  <jas@extundo.com>
83838
83839         * lib/size_max.h: New file.
83840
83841 2005-07-11  Paul Eggert  <eggert@cs.ucla.edu>
83842
83843         * lib/version-etc-fsf.c (version_etc_copyright): Parameterize the
83844         copyright symbol and the year.
83845         * lib/version-etc.c (COPYRIGHT_YEAR): New constant.
83846         (version_etc_va): Use parameterized copyright notice.
83847         Reword to conform to the current GNU coding standards.
83848
83849 2005-07-11  Karl Berry  <karl@gnu.org>
83850
83851         * doc/gnulib.texi (Quoting): new node.
83852         (Initial import): more info, from Patrice.
83853
83854 2005-07-11  Bruno Haible  <bruno@clisp.org>
83855
83856         * gnulib-tool (func_usage): Document option --avoid.
83857         (Command line options): Handle --avoid.
83858         (func_acceptable): New function.
83859         (func_modules_transitive_closure): Use it.
83860
83861 2005-07-11  Bruno Haible  <bruno@clisp.org>
83862
83863         * MODULES.html.sh: Use shortcut URLs to the www.opengroup.org site.
83864         Reported by Jim Meyering.
83865
83866 2005-07-10  Bruno Haible  <bruno@clisp.org>
83867
83868         * m4/size_max.m4 (gl_SIZE_MAX): Cast ~(size_t)0 back to size_t.
83869         Needed when size_t is smaller than 'unsigned int'.
83870         Reported by Paul Eggert.
83871
83872 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83873
83874         * modules/argp (Depends-on): Add unlocked-io
83875
83876 2005-07-09  Sergey Poznyakoff  <gray@gnu.org.ua>
83877
83878         * lib/argp-namefrob.h: Include unlocked-io.h. Removed unnecessary
83879         block of defines.
83880
83881 2005-07-08  Paul Eggert  <eggert@cs.ucla.edu>
83882
83883         * config/srclist.txt: Comment out regcomp.c, since we have a porting
83884         fix now.
83885
83886 2005-07-08  Eric Blake  <ebb9@byu.net>  (tiny change)
83887         and Paul Eggert  <eggert@cs.ucla.edu>
83888
83889         * lib/regcomp.c (init_dfa, build_range_exp): Store __btowc value
83890         in wint_t, not wchar_t.  Remove now-unnecessary cast.
83891
83892 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83893
83894         * modules/regex (Files): Add lib/regex_internal.c,
83895         lib/regex_internal.h, lib/regexec.c, lib/regcomp.c, m4/codeset.m4.
83896         (Depends-on): Add extensions.
83897         (Makefile.am): Remove lib_SOURCES; now done by m4 code.
83898
83899 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83900
83901         * m4/backupfile.m4 (gl_BACKUPFILE): Use AC_CHECK_FUNCS_ONCE on
83902         pathconf.
83903         * m4/same.m4 (gl_SAME): Likewise.
83904         Require AC_SYS_LONG_FILE_NAMES; bug reported by Gerrit P. Haase.
83905
83906         * m4/regex.m4: Adjust to new libc regex implementation.
83907         (gl_INCLUDED_REGEX): Add AC_LIBSOURCES for
83908         all the .c and .h parts of (the new) regex.
83909         Quote the m4 stuff better.
83910         Check for RE_ICASE bug of old gnulib.
83911         Check for REG_STARTEND of recent libc.
83912         Rename local variables from jm_* to gl_*.
83913         Quote operand of "test -f".
83914         Say "recent enough" version of libc, not "version 2".
83915         (gl_PREREQ_REGEX): Remove AC_FUNC_ALLOCA, since alloca is a
83916         prerequisite module.  Remove AC_HEADER_STDC; no longer needed.
83917         Check for locale.h, isblank, mbrtowc, wcrtomb, wcscoll.
83918         Remove check for btowc, isascii.
83919         Require AM_LANGINFO_CODESET.
83920
83921 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83922
83923         * lib/regex.c, regex.h: Sync from libc.
83924         * lib/regcomp.c, lib/regexec_internal.c, lib/regex_internal.h:
83925         * lib/regexec.c:
83926         New files, synced from libc, except that regex_internal.h
83927         currently has a small porting fix.
83928
83929 2005-07-07  Paul Eggert  <eggert@cs.ucla.edu>
83930
83931         * config/srclist.txt: Add regcomp.c, regex.c, regex.h,
83932         regex_internal.c, regexec.c.
83933         Add regex_internal.h too, but as a comment, since the libc version
83934         is currently broken in gnulib mode.
83935
83936 2005-07-06  Paul Eggert  <eggert@cs.ucla.edu>
83937
83938         Support programs like Emacs that use gnulib but not gettext.
83939         * MODULES.html.sh (Internationalization functions): Add gettext-h.
83940         * modules/gettext-h: New file.
83941         * modules/gettext (Files): Remove lib/gettext.h.
83942         (Depends-on): Add gettext-h.
83943         (Makefile.am): Remove lib_SOURCES.
83944         * modules/argmatch, modules/c-stack, modules/closeout:
83945         * modules/copy-file, modules/csharpcomp, modules/csharpexec:
83946         * modules/execute, modules/file-type, modules/getaddrinfo:
83947         * modules/getopt, modules/human, modules/javacomp:
83948         * modules/javaexec, modules/mkdir-p, modules/obstack:
83949         * modules/openat, modules/pagealign_alloc, modules/pipe:
83950         * modules/quotearg, modules/regex, modules/rpmatch:
83951         * modules/unicodeio, modules/userspec, modules/version-etc:
83952         * modules/wait-process, modules/xalloc-die, modules/xmemcoll:
83953         * modules/xsetenv:
83954         Depend on gettext-h, not gettext.
83955
83956 2005-07-05  Paul Eggert  <eggert@cs.ucla.edu>
83957
83958         * gnulib-tool (func_import): Add support for 'public domain' license.
83959         * modules/alloca, modules/atexit, modules/memmove:
83960         Now public domain, not GPL.
83961         * modules/dup2, modules/getpagesize, modules/malloc, modules/memset:
83962         * modules/realloc, modules/strerror, modules/strtod:
83963         Now LGPL, not GPL.
83964
83965 2005-07-05  Bruno Haible  <bruno@clisp.org>
83966
83967         * m4/mbrtowc.m4 (gl_FUNC_MBRTOWC): Upgrade to version from current
83968         autoconf CVS. Needed for mingw.
83969
83970 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83971
83972         Remove the dependency of the strftime module on the tzset module.
83973         * modules/strftime (Depends-on): Remove dependency on tzset.
83974
83975 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83976
83977         Remove the dependency of the strftime module on the tzset module.
83978         * m4/strftime.m4 (gl_FUNC_STRFTIME): Don't require
83979         gl_FUNC_TZSET_CLOBBER.
83980
83981 2005-07-03  Paul Eggert  <eggert@cs.ucla.edu>
83982
83983         Remove the dependency of the strftime module on the tzset module.
83984         * lib/strftime.c (my_strftime)
83985         [! defined _LIBC && ! HAVE_RUN_TZSET_TEST]:
83986         Copy the input structure, to work around some of the bug with
83987         Solaris 2.5.1 and Solaris 2.6.  If you still care about these old
83988         Solaris releases, you should also use the tzset module, but we won't
83989         require it as a dependency any more since we don't want LGPLed code
83990         to depend on GPLed code.
83991
83992 2005-07-02  Jim Meyering  <jim@meyering.net>
83993
83994         * m4/chown.m4, cloexec.m4, dup2.m4, fsusage.m4:
83995         * m4/getcwd-path-max.m4, getcwd.m4, mkstemp.m4, mountlist.m4:
83996         * m4/pagealign_alloc.m4, save-cwd.m4, unistd-safer.m4:
83997         Don't check for fcntl.h, and don't test for HAVE_FCNTL_H.
83998
83999 2005-07-02  Jim Meyering  <jim@meyering.net>
84000
84001         * lib/backupfile.c (backup_args): Change a `0' to NULL.
84002
84003 2005-07-01  Paul Eggert  <eggert@cs.ucla.edu>
84004
84005         * lib/xnanosleep.c: Include timespec.h, since OpenBSD 3.4 <time.h>
84006         declares only 'struct timespec;' (!).
84007
84008 2005-07-01  Jim Meyering  <jim@meyering.net>
84009
84010         * lib/chown.c, cloexec.c, dup-safer.c, dup2.c, fsusage.c, getcwd.c:
84011         * lib/getloadavg.c, mountlist.c, openat.h, pagealign_alloc.c:
84012         * lib/save-cwd.c, tempname.c:
84013         Assume HAVE_FCNTL_H (i.e., include <fcntl.h> unconditionally,
84014         and don't include <sys/file.h>).
84015
84016 2005-06-29  Jim Meyering  <jim@meyering.net>
84017
84018         * lib/mkdir-p.c (make_dir_parents): Don't apply sizeof to a hard-coded
84019         type name.  Use the variable name instead.
84020         * lib/idcache.c (getuser, getuidbyname, getgroup, getgidbyname):
84021         Likewise.
84022
84023 2005-06-28  Simon Josefsson  <jas@extundo.com>
84024
84025         * modules/check-version (Files): Add check-version.m4.
84026
84027 2005-06-28  Simon Josefsson  <jas@extundo.com>
84028
84029         * m4/check-version.m4: New file, suggested by Jim Meyering
84030         <jim@meyering.net>.
84031
84032 2005-06-28  Simon Josefsson  <jas@extundo.com>
84033
84034         * lib/check-version.h, lib/check-version.c: New files.
84035
84036 2005-06-28  Simon Josefsson  <jas@extundo.com>
84037
84038         * lib/base64.c (base64_encode): Indent.  Rename 'b64' to avoid
84039         collision with global variable.  Better indentation.  Don't
84040         increment buffer pointer beyond buffer end.  Based on comments
84041         from Paul Eggert <eggert@cs.ucla.edu>.
84042
84043         * lib/base64.h: Indent.
84044
84045 2005-06-28  Simon Josefsson  <jas@extundo.com>
84046
84047         * doc/gnulib.texi (Library version handling): New section.
84048
84049 2005-06-28  Jim Meyering  <jim@meyering.net>
84050
84051         * check-module (find_included_lib_files): Hard-code another
84052         pair of exceptions: fts.c includes fts-cycle.c and unistd-safer.h
84053         but modules/fts-lgpl (correctly) does not list those files.
84054
84055         * modules/canonicalize (Files): Add lib/pathmax.h.
84056
84057 2005-06-25  Simon Josefsson  <jas@extundo.com>
84058
84059         * modules/check-version: New file.
84060
84061 2005-06-24  Paul Eggert  <eggert@cs.ucla.edu>
84062
84063         * lib/canon-host.c (canon-host): Append trailing "," to 0 in
84064         initializer of struct addrinfo, as an indication that we don't
84065         care how many members the structure has.
84066
84067 2005-06-24  Derek Price  <derek@ximbiot.com>
84068         and Bruno Haible  <bruno@clisp.org>
84069
84070         Remove stat module & update lstat.
84071         * m4/lstat.m4 (gl_FUNC_LSTAT): Drop AC_FUNC_LSTAT in favor of
84072         AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
84073         * m4/stat.m4: Remove this file.
84074
84075 2005-06-24  Derek Price  <derek@ximbiot.com>
84076         and Bruno Haible  <bruno@clisp.org>
84077
84078         Remove stat module & update lstat.
84079         * lib/stat.c: Remove this file...
84080         (slash_aware_lstat): ...moving this content and its support...
84081         * lib/lstat.c (rpl_lstat): ...into here.
84082         * lib/lstat.h: New file.
84083
84084 2005-06-24  Derek Price  <derek@ximbiot.com>
84085         and Bruno Haible  <bruno@clisp.org>
84086
84087         Remove stat module & update lstat.
84088         * config/srclist.txt (libc sources): Remove stat.
84089
84090 2005-06-24  Derek Price  <derek@ximbiot.com>
84091         and Bruno Haible  <bruno@clisp.org>
84092
84093         Remove stat module & update lstat.
84094         * MODULES.html.sh (stat): Remove.
84095         * MODULES.html: Regenerated.
84096         * modules/lstat (Description): Correct function name.
84097         (Files): Add "lstat.h".
84098         (Depends-on): Remove stat, add xalloc, stat-macros.
84099         * modules/stat: Remove this file.
84100         (Include): Add "lstat.h", remove <sys/stat.h>.
84101
84102 2005-06-23  Paul Eggert  <eggert@cs.ucla.edu>
84103
84104         * lib/mktime.c: Include <string.h> even if !DEBUG.  (From glibc.)
84105         (ranged_convert): Don't save conversion in a temporary struct.
84106         This causes a warning with GCC 4.0.0, and anyway in the typical
84107         case it's not worth the extra 100 bytes or so of code.
84108         (ranged_convert, __mktime_internal): When calling a function via a
84109         pointer P, use P () rather than (*P) (), as we now assume C89 or
84110         better.
84111
84112 2005-06-22  Paul Eggert  <eggert@cs.ucla.edu>
84113
84114         * lib/readutmp.c (desirable_utmp_entry): Fix bug where "who -b" and
84115         "who -r" failed to give output.  Problem reported by Tim Waugh.
84116
84117         * lib/xmalloc.c (HAVE_GNU_CALLOC): New constant.
84118         (xcalloc): Use it to avoid needless tests.
84119         Problem reported by Jim Meyering.
84120
84121 2005-06-20  Derek Price  <derek@ximbiot.com>
84122
84123         * m4/bison.m4: Note that precious decls of YACC & YFLAGS will be
84124         unnecessary for Autoconfs > 2.59c.
84125
84126 2005-06-16  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84127
84128         * lib/argp.h (__option_is_short): Check upper limit of
84129         __key. Isprint() requires its argument to have the value
84130         of an unsigned char or EOF.
84131
84132 2005-06-16  Jim Meyering  <jim@meyering.net>
84133
84134         * lib/calloc.c (rpl_calloc): Allocate a 1-byte buffer (not 1xS or Nx1)
84135         when either N or S is zero.
84136
84137 2005-06-16  Derek Price  <derek@ximbiot.com>
84138
84139         * m4/bison.m4: Declare YACC & YFLAGS precious.
84140
84141 2005-06-10  Paul Eggert  <eggert@cs.ucla.edu>
84142
84143         * lib/fnmatch.c (fnmatch): If there is an encoding error in a
84144         multibyte string or pattern, fall back on unibyte matching.
84145         Problem reported by James Youngman.
84146
84147 2005-06-08  Bruno Haible  <bruno@clisp.org>
84148
84149         * modules/csharpcomp: New file.
84150         * MODULES.html.sh (C#): Add csharpcomp.
84151
84152 2005-06-08  Bruno Haible  <bruno@clisp.org>
84153
84154         * m4/csharpcomp.m4: New file, from GNU gettext.
84155
84156 2005-06-08  Bruno Haible  <bruno@clisp.org>
84157
84158         * lib/csharpcomp.h: New file, from GNU gettext.
84159         * lib/csharpcomp.c: New file, from GNU gettext.
84160         * lib/csharpcomp.sh.in: New file, from GNU gettext.
84161
84162 2005-06-08  Bruno Haible  <bruno@clisp.org>
84163
84164         * lib/binary-io.h (fileno): Undefine before defining it. Avoids a gcc
84165         warning on mingw.
84166
84167 2005-06-07  Derek Price  <derek@ximbiot.com>
84168
84169         Sync from CVS.
84170         * lib/glob_.h: Indent nested #ifdef.
84171
84172 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84173
84174         Sync from coreutils.
84175         Use "file name" when talking about file names, instead of "filename"
84176         or "path", as per the GNU coding standards.
84177         * lib/mkdir-p.c: Renamed from makepath.c.
84178         (make_dir_parents): Renamed from make_path.  All callers changed.
84179         * lib/mkdir-p.h: Likewise.  All includers changed.
84180         * lib/filenamecat.c: Renamed from path-concat.c.
84181         (file_name_concat): Renamed from path_concat.  All callers changed.
84182         [TEST_FILE_NAME_CONCAT]: Renamed from TEST_PATH_CONCAT.
84183         * lib/filenamecat.h: Likewise.  All includers changed.
84184         * lib/acl.c: Don't use "path" or "filename" to mean "file name"
84185         in comments or local variable names.
84186         * lib/basename.c: Likewise.
84187         * lib/canonicalize.c, canonicalize.h: Likewise.
84188         * lib/dirname.c, dirname.h: Likewise.
84189         * lib/euidaccess.c: Likewise.
84190         * lib/exclude.c: Likewise
84191         * lib/fnmatch_.h, fnmatch_loop.c: Likewise.
84192         * lib/fsusage.c, fsuage.h: Likewise.
84193         * lib/fts.c, fts_.h: Likewise.
84194         * lib/getcwd.c: Likewise.
84195         * lib/getloadavg.c: Likewise.
84196         * lib/mkstemp.c: Likewise.
84197         * lib/mountlist.c, mountlist.h: Likewise.
84198         * lib/openat.c, openat.h: Likewise.
84199         * lib/readlink-stub.c: Likewise.
84200         * lib/readutmp.c, readutmp.h: Likewise.
84201         * lib/rename.c: Likewise.
84202         * lib/rmdir.c: Likewise.
84203         * lib/same.c: Likewise.
84204         * lib/savedir.c: Likewise.
84205         * lib/stripslash.c: Likewise.
84206         * lib/tempname.c: Likewise.
84207         * lib/xreadlink.c: Likewise.
84208         * lib/exclude.c (excluded_file_name): Renamed from excluded_filename.
84209         All uses changed.
84210         * lib/exclude.h: Likewise.
84211
84212         * lib/euidaccess.c (getuid, getgid, getuid, getegid)
84213         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84214         * lib/idcache.c (getpwuid, getpwnam, getgrgid, getgrnam)
84215         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84216         * lib/pathmax.h: Include <limits.h> unconditionally, since other
84217         files have been getting away with it for years (MORE/BSD 4.3
84218         is extinct now).
84219         * lib/userspec.c (getpwnam, getgrnam, getgrgid)
84220         [!defined _POSIX_VERSION]: Remove decls; not needed these days.
84221
84222         * lib/pathmax.h (_POSIX_PATH_MAX) [!defined _POSIX_PATH_MAX]:
84223         Define to 256, not 255, as per modern POSIX.
84224
84225 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84226
84227         Sync from coreutils.
84228         Use "file name" when talking about file names, instead of "filename"
84229         or "path", as per the GNU coding standards.
84230         * MODULES.html.sh: mkdir-p renamed from makepath.
84231         filenamecat renamed from path-concat.
84232         * modules/filenamecat: Renamed from modules/path-concat.
84233         (Files): filenamecat.h and filenamecat.c renamed from
84234         path-concat.h and path-concat.c.
84235         (configure.ac): gl_FILE_NAME_CONCAT, not gl_PATH_CONCAT.
84236         (Include): filenamecat.h, not path-concat.h.
84237         * modules/mkdir-p: Renamed from modules/makepath.
84238         (Files): mkdir-p.h and mkdir-p.c renamed from makepath.h and
84239         makepath.c.
84240         (configure.ac): gl_MKDIR_PARENTS, not gl_MAKEPATH.
84241         (Include): mkdir-p.h, not makepath.h.
84242
84243 2005-06-02  Paul Eggert  <eggert@cs.ucla.edu>
84244
84245         Sync from coreutils.
84246         * m4/mkdir-p.m4: Renamed from makepath.m4.
84247         (gl_MKDIR_PARENTS): Renamed from gl_MAKEPATH.  All uses changed.
84248         Rename files from makepath.c to mkdir-p.c, and from
84249         makepath.h to mkdir-p.h.
84250         * m4/filenamecat.m4: Renamed from path-concat.m4.
84251         (gl_FILE_NAME_CONCAT): Renamed from gl_PATH_CONCAT.  All uses changed.
84252         Rename files from path-concat.c to filenamecat.c,
84253         and from path-concat.h to filenamecat.h.
84254         * m4/getcwd-path-max.m4: Don't use "path" or "filename" to mean
84255         "file name" in local variables or comments.
84256         * m4/rename.m4: Likewise.
84257
84258 2005-06-01  Bruno Haible  <bruno@clisp.org>
84259
84260         * modules/csharpexec: New file.
84261         * MODULES.html.sh (C#): New section.
84262
84263 2005-06-01  Bruno Haible  <bruno@clisp.org>
84264
84265         * m4/csharp.m4: New file, from GNU gettext.
84266         * m4/csharpexec.m4: New file, from GNU gettext.
84267
84268 2005-06-01  Bruno Haible  <bruno@clisp.org>
84269
84270         * lib/csharpexec.h: New file, from GNU gettext.
84271         * lib/csharpexec.c: New file, from GNU gettext.
84272         * lib/csharpexec.sh.in: New file, from GNU gettext.
84273
84274 2005-05-31  Derek Price  <derek@ximbiot.com>
84275             Paul Eggert  <eggert@cs.ucla.edu>
84276
84277         Sync from cvs.
84278         * m4/glob.m4: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84279
84280 2005-05-31  Derek Price  <derek@ximbiot.com>
84281             Paul Eggert  <eggert@cs.ucla.edu>
84282
84283         Sync from cvs.
84284         * lib/glob_.h: s/MISSING_SYS_CDEFS_H/_SYS_CDEFS_H/ and comment.
84285
84286 2005-05-29  Derek Price  <derek@ximbiot.com>
84287
84288         * config/srclist.txt (glob_.h, glob.c): Add these files.
84289
84290 2005-05-29  Derek Price  <derek@ximbiot.com>
84291
84292         * MODULES.html.sh: Add glob to Enhanced POSIX.2001 section.
84293         * modules/glob: New file.
84294         * modules/getlogin_r: Add link to POSIX spec in description.
84295
84296 2005-05-29  Derek Price  <derek@ximbiot.com>
84297             Paul Eggert  <eggert@cs.ucla.edu>
84298
84299         * m4/glob.m4: New file.
84300
84301 2005-05-29  Derek Price  <derek@ximbiot.com>
84302             Paul Eggert  <eggert@cs.ucla.edu>
84303
84304         * lib/glob_.h, lib/glob.c: New files.
84305
84306 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84307
84308         * modules/fts (Files): Remove m4/inttypes-pri.m4.
84309         * modules/fts-lgpl (Depends-on): Remove gettext.
84310
84311 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84312
84313         * m4/fts.m4 (gl_FUNC_FTS_CORE): Don't check for inttypes.h or stdint.h,
84314         and don't require gt_INTTYPES_PRI.
84315
84316 2005-05-27  Paul Eggert  <eggert@cs.ucla.edu>
84317
84318         * lib/getlogin_r.c (getlogin_r): Don't set errno to 0 on return.
84319
84320         * lib/fts.c: Don't worry about debugging on pre-C99-compatible hosts;
84321         the configuration hassle isn't worth it.
84322         Include inttypes.h and stdint.h unconditionally if FTS_DEBUG.
84323         (LONGEST_MODIFIER, PRIuMAX): Remove.
84324
84325 2005-05-27  Bruno Haible  <bruno@clisp.org>
84326
84327         * lib/getlogin_r.h: Remove second include of <stddef.h>.
84328
84329 2005-05-26  Paul Eggert  <eggert@cs.ucla.edu>
84330
84331         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Define
84332         _POSIX_PTHREAD_SEMANTICS for Solaris.
84333
84334 2005-05-25  Derek Price  <derek@ximbiot.com>
84335
84336         * MODULES.html.sh: Add getlogin_r to POSIX.2001 support section.
84337
84338 2005-05-25  Derek Price  <derek@ximbiot.com>
84339             Paul Eggert  <eggert@cs.ucla.edu>
84340
84341         * modules/getlogin_r, m4/getlogin_r.m4: New files.
84342         * lib/getlogin_r.c, getlogin_r.h: New files.
84343
84344 2005-05-25  Bruno Haible  <bruno@clisp.org>
84345             Derek Price  <derek@ximbiot.com>
84346
84347         * lib/getlogin_r.h: Simplify API documentation.
84348
84349 2005-05-23  Derek Price  <derek@ximbiot.com>
84350
84351         * modules/minmax (Files): Add m4/minmax.m4.
84352         (configure.ac): Add gl_MINMAX.
84353
84354 2005-05-22  Paul Eggert  <eggert@cs.ucla.edu>
84355
84356         * lib/fts.c (fd_safer) [_LGPL_PACKAGE]: New static function,
84357         so that unistd-safer.h (GPL'ed code) need not be included.
84358
84359 2005-05-22  Bruno Haible  <bruno@clisp.org>
84360
84361         * m4/minmax.m4: New file.
84362         Based on a patch by Derek Price <derek@ximbiot.com>.
84363
84364 2005-05-22  Bruno Haible  <bruno@clisp.org>
84365
84366         * lib/stdint_.h (_STDINT_H_HAVE_INT64): New macro. Use it in #ifdefs.
84367         (INT64_MIN): Fix definition.
84368         Suggested by Paul Eggert <eggert@cs.ucla.edu>.
84369
84370         * lib/stdint_.h (_STDINT_H_NEED_SIGNED_INT_TYPES): Renamed from
84371         NEED_SIGNED_INT_TYPES.
84372
84373         * lib/stdint_.h (_STDINT_H_HAVE_SYSTEM_INTTYPES): Renamed from
84374         HAVE_SYSTEM_INTTYPES.
84375
84376 2005-05-22  Bruno Haible  <bruno@clisp.org>
84377
84378         * lib/minmax.h: Include <limits.h> only when it defines MIN, MAX.
84379         Also include <sys/param.h> if it defines MIN, MAX.
84380         Based on a patch by Derek Price <derek@ximbiot.com>.
84381
84382 2005-05-21  Jim Meyering  <jim@meyering.net>
84383
84384         * modules/fts (Files): Add m4/inttypes-pri.m4.
84385         (Depends-on): Add lstat and remove gettext.  Alphabetize.
84386
84387 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84388
84389         New fts module.
84390         * lib/fts.c: Don't include "cycle-check.h" or "hash.h".
84391         (setup_dir, free_dir): New functions.
84392         (enter_dir, leave_dir): Define trivial
84393         alternatives of _LGPL_PACKAGE.  Move to fts-cycle.c if !_LGPL_PACKAGE.
84394         (HT_INITIAL_SIZE, ENTER_DIR): Remove.  All uses removed.
84395         (LEAVE_DIR): Fix typo: pass Fts and Ent to leave_dir.
84396         (struct Active_dir, AD_compare, AD_hash, enter_dir, leave_dir):
84397         Move to fts-cycle.c.
84398         (fts_open): Use setup_dir.
84399         (fts_close): Use free_dir.
84400         (fts_read): Have just one copy of the ENTER_DIR code rather than three.
84401         This adds a label and some gotos, but the alternatives were messier.
84402         Check for memory allocation failure when entering a dir.
84403         (fts_stat) [_LGPL_PACKAGE]: Bring back glibc cycle detection code.
84404         * lib/fts_.h (_LGPL_PACKAGE) [defined _LIBC]: New macro.
84405         (FTS): New member fts_cycle, that is a union that contains the
84406         old active_dir_ht and cycle_state.  All uses changed to mention
84407         fts_cycle.ht and fts_cycle.state.
84408         * lib/fts-cycle.c: New file, containing GPL'ed code migrated out of
84409         fts.c, with the following changes:
84410         (setup_dir, free_dir): New functions.
84411         (enter_dir): Now returns bool.  Return true if successful, false
84412         if memory exhausted.  All callers changed.
84413         Do not bother partly cleaning up on
84414         memory allocation failure; that is free_dir's job.
84415         However, free ad if hash_insert fails, to avoid memory leak.
84416         (enter_dir, leave_dir): Accommodate change to FTS by inspecting
84417         fts->fts_options to see which union member to use.
84418
84419 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84420
84421         * m4/fts.m4 (gl_FUNC_FTS_CORE): Renamed from gl_FUNC_FTS.
84422         (gl_FUNC_FTS, gl_FUNC_FTS_LGPL): New macros.
84423
84424 2005-05-20  Paul Eggert  <eggert@cs.ucla.edu>
84425
84426         * MODULES.html.sh (File system functions): Add fts, fts-lgpl.
84427
84428 2005-05-20  Jim Meyering  <jim@meyering.net>
84429
84430         * lib/unlinkdir.h (cannot_unlink_dir) [UNLINK_CANNOT_UNLINK_DIR]:
84431         Now a macro, to pacify GCC.
84432
84433 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84434
84435         * m4/chown.m4 (gl_FUNC_CHOWN): Correct sense of test for honoring IDs
84436         of -1.
84437
84438 2005-05-20  Eric Blake  <ebb9@byu.net>  (tiny change)
84439
84440         * lib/chown.c (rpl_chown): Return -1 on failure.
84441
84442 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84443
84444         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME]):
84445         Don't check for stddef.h.
84446         * m4/fts.m4 (gl_FUNC_FTS): Don't require AC_HEADER_STDC, as we
84447         don't use its results.
84448         Don't check for fcntl.h, stddef.h, stdlib.h, string.h, unistd.h,
84449         since we include them unconditionally.  Don't require
84450         AM_STDBOOL_H, since stdbool is a prerequisite.
84451         Don't require AC_C_CONST, AC_TYPE_SIZE_T or check for ptrdiff_t
84452         since we assume C89 or better.
84453         Don't require AC_FUNC_CLOSEDIR_VOID, AC_FUNC_LSTAT, or AC_FUNC_STAT,
84454         as we don't use their results.
84455         Don't check for fchdir, memmove, memset, strrchr, as we use
84456         them unconditionally.
84457         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Don't define
84458         GETTIMEOFDAY_CLOBBERS_LOCALTIME_BUFFER, since nobody uses it.
84459
84460 2005-05-18  Paul Eggert  <eggert@cs.ucla.edu>
84461
84462         * lib/canonicalize.c: Include canonicalize.h first, to test interface.
84463         Include <stddef.h> unconditionally, since we assume C89 now.
84464         All uses of PTR_INT_TYPE replaced by ptrdiff_t.
84465         * lib/fts.c: Include fts_.h first, to check interface.
84466         Do not include intprops.h; no longer needed.
84467         Include cycle-check.h and hash.h, since fts_.h no longer does.
84468         Remove unnecessary casts of closedir to void.
84469         (fts_build): Use a simpler method (not involving TYPE_SIGNED) to
84470         decide whether to decrement nlinks.
84471         * lib/fts_.h: Do not include hash.h or cycle-check.h; no longer needed.
84472         (FTS): Use struct hash_table * instead of Hash_table, so that
84473         we no longer need to include hash.h here.
84474
84475 2005-05-18  Jim Meyering  <jim@meyering.net>
84476
84477         * modules/dirfd (License): Change to LGPL.  Most of the code
84478         is already in the public domain.
84479
84480 2005-05-18  Jim Meyering  <jim@meyering.net>
84481
84482         * m4/fts.m4 (AC_LIBSOURCES): Add intprops.h to the list.
84483         Reported by Yoann Vandoorselaere.
84484
84485 2005-05-17  Jim Meyering  <jim@meyering.net>
84486
84487         * m4/fts.m4: New file, from coreutils.
84488
84489 2005-05-17  Jim Meyering  <jim@meyering.net>
84490
84491         * lib/fts.c, lib/fts_.h: New files, from coreutils.
84492
84493 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84494
84495         Sync from coreutils.
84496         * m4/unlinkdir.m4: New file.
84497
84498 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84499
84500         Sync from coreutils.
84501         * lib/unlinkdir.c, lib/unlinkdir.h: New files.
84502         * lib/gethrxtime.c, lib/gethrxtime.h, lib/getpass.h, lib/mountlist.h,
84503         lib/path-concat.c, lib/regex.h, lib/unlocked-io.h, lib/xtime.h:
84504         White space changes only.
84505         * lib/makepath.c (make_path): Port to hosts where leading "//" is
84506         special.
84507         * lib/yesno.c: Include getline.h, not ctype.h.
84508         (yesno): Don't remove leading white space; POSIX doesn't allow it.
84509         Use getline to remove arbitrary restriction on response length.
84510
84511 2005-05-14  Paul Eggert  <eggert@cs.ucla.edu>
84512
84513         * config/srclist-update: Spell out "Street" in FSF postal
84514         mail address; this is the style the FSF seems to prefer.
84515
84516         * build-aux/depcomp, build-aux/install-sh, build-aux/mdate-sh,
84517         build-aux/missing, build-aux/mkinstalldirs: Sync from Automake;
84518         this updates FSF postal mail address.
84519
84520         Sync from coreutils.
84521         * modules/unlinkdir: New file.
84522         * modules/yesno (Depends-on): Add getline.
84523         * MODULES.html.sh (File system functions): Add unlinkdir.
84524
84525 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84526
84527         * lib/byteswap_.h, lib/getsubopt.h, lib/iconvme.h, lib/strsep.c,
84528         lib/strsep.h:
84529         Change the initial comment to refer to GPL, not LGPL.
84530         gnulib-tool will change it to LGPL as needed.
84531
84532         * lib/__fpending.c, lib/acl.c, lib/acl.h, lib/alloca_.h, lib/allocsa.c,
84533         lib/allocsa.h, lib/argmatch.c, lib/argmatch.h, lib/argp-ba.c,
84534         lib/argp-eexst.c, lib/argp-fmtstream.c, lib/argp-fmtstream.h,
84535         lib/argp-fs-xinl.c, lib/argp-help.c, lib/argp-namefrob.h,
84536         lib/argp-parse.c, lib/argp-pv.c, lib/argp-pvh.c, lib/argp-xinl.c,
84537         lib/argp.h, lib/argz.c, lib/argz_.h, lib/asnprintf.c, lib/asprintf.c,
84538         lib/atanl.c, lib/backupfile.c, lib/backupfile.h, lib/base64.c,
84539         lib/base64.h, lib/basename.c, lib/binary-io.h, lib/byteswap_.h,
84540         lib/c-ctype.c, lib/c-ctype.h, lib/c-stack.c, lib/c-stack.h,
84541         lib/c-strtod.c, lib/calloc.c, lib/canon-host.c, lib/canonicalize.c,
84542         lib/canonicalize.h, lib/ceill.c, lib/chdir-long.c, lib/chdir-long.h,
84543         lib/chown.c, lib/classpath.c, lib/classpath.h, lib/cloexec.c,
84544         lib/closeout.c, lib/closeout.h, lib/concatpath.c, lib/config.charset,
84545         lib/copy-file.c, lib/copy-file.h, lib/cycle-check.c, lib/cycle-check.h,
84546         lib/diacrit.c, lib/diacrit.h, lib/dirfd.c, lib/dirfd.h, lib/dirname.c,
84547         lib/dirname.h, lib/dummy.c, lib/dup-safer.c, lib/dup2.c, lib/eealloc.h,
84548         lib/error.c, lib/error.h, lib/euidaccess.c, lib/exclude.c,
84549         lib/exclude.h, lib/execute.c, lib/execute.h, lib/exit.h,
84550         lib/exitfail.c, lib/exitfail.h, lib/expl.c, lib/fatal-signal.c,
84551         lib/fatal-signal.h, lib/fd-safer.c, lib/file-type.c, lib/file-type.h,
84552         lib/fileblocks.c, lib/filemode.c, lib/filemode.h, lib/findprog.c,
84553         lib/findprog.h, lib/floorl.c, lib/fnmatch.c, lib/fnmatch_.h,
84554         lib/fnmatch_loop.c, lib/fopen-safer.c, lib/free.c, lib/frexpl.c,
84555         lib/fsusage.c, lib/fsusage.h, lib/full-read.c, lib/full-read.h,
84556         lib/full-write.c, lib/full-write.h, lib/fwriteerror.c,
84557         lib/fwriteerror.h, lib/gai_strerror.c, lib/gcd.c, lib/gcd.h,
84558         lib/getaddrinfo.c, lib/getaddrinfo.h, lib/getcwd.c, lib/getcwd.h,
84559         lib/getdate.h, lib/getdate.y, lib/getdomainname.c, lib/getdomainname.h,
84560         lib/getgroups.c, lib/gethostname.c, lib/gethrxtime.c, lib/gethrxtime.h,
84561         lib/getline.c, lib/getline.h, lib/getloadavg.c, lib/getndelim2.c,
84562         lib/getndelim2.h, lib/getnline.c, lib/getnline.h, lib/getopt.c,
84563         lib/getopt1.c, lib/getopt_.h, lib/getopt_int.h, lib/getpagesize.h,
84564         lib/getpass.c, lib/getpass.h, lib/getsubopt.c, lib/getsubopt.h,
84565         lib/gettext.h, lib/gettime.c, lib/gettimeofday.c, lib/getugroups.c,
84566         lib/getusershell.c, lib/group-member.c, lib/group-member.h,
84567         lib/hard-locale.c, lib/hard-locale.h, lib/hash-pjw.c, lib/hash-pjw.h,
84568         lib/hash.c, lib/hash.h, lib/human.c, lib/human.h, lib/iconvme.c,
84569         lib/iconvme.h, lib/idcache.c, lib/inet_ntop.h, lib/intprops.h,
84570         lib/inttostr.c, lib/inttostr.h, lib/isdir.c, lib/javacomp.c,
84571         lib/javacomp.h, lib/javacomp.sh.in, lib/javaexec.c, lib/javaexec.h,
84572         lib/javaexec.sh.in, lib/lbrkprop.h, lib/lchown.c, lib/ldexpl.c,
84573         lib/linebreak.c, lib/linebreak.h, lib/linebuffer.c, lib/linebuffer.h,
84574         lib/localcharset.c, lib/localcharset.h, lib/logl.c, lib/long-options.c,
84575         lib/long-options.h, lib/lstat.c, lib/makepath.c, lib/makepath.h,
84576         lib/malloc.c, lib/mathl.h, lib/mbswidth.c, lib/mbswidth.h, lib/md5.c,
84577         lib/md5.h, lib/memcasecmp.c, lib/memcasecmp.h, lib/memchr.c,
84578         lib/memcmp.c, lib/memcoll.c, lib/memcoll.h, lib/memcpy.c, lib/memmem.c,
84579         lib/memmem.h, lib/mempcpy.c, lib/mempcpy.h, lib/memrchr.c,
84580         lib/memrchr.h, lib/memset.c, lib/minmax.h, lib/mkdir.c, lib/mkdtemp.c,
84581         lib/mkdtemp.h, lib/mkstemp.c, lib/mktime.c, lib/modechange.c,
84582         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
84583         lib/obstack.c, lib/obstack.h, lib/openat.c, lib/openat.h,
84584         lib/pagealign_alloc.c, lib/pagealign_alloc.h, lib/path-concat.c,
84585         lib/path-concat.h, lib/pathmax.h, lib/pathname.h, lib/physmem.c,
84586         lib/physmem.h, lib/pipe.c, lib/pipe.h, lib/poll.c, lib/poll_.h,
84587         lib/posixtm.c, lib/posixtm.h, lib/posixver.c, lib/printf-args.c,
84588         lib/printf-args.h, lib/printf-parse.c, lib/printf-parse.h,
84589         lib/progname.c, lib/progname.h, lib/progreloc.c, lib/putenv.c,
84590         lib/quote.c, lib/quote.h, lib/quotearg.c, lib/quotearg.h, lib/raise.c,
84591         lib/readlink.c, lib/readtokens.c, lib/readtokens.h, lib/readtokens0.c,
84592         lib/readtokens0.h, lib/readutmp.c, lib/readutmp.h, lib/realloc.c,
84593         lib/ref-add.sin, lib/ref-del.sin, lib/regex.c, lib/regex.h,
84594         lib/rename.c, lib/rmdir.c, lib/rpmatch.c, lib/safe-read.c,
84595         lib/safe-read.h, lib/safe-write.c, lib/safe-write.h, lib/same.c,
84596         lib/same.h, lib/save-cwd.c, lib/save-cwd.h, lib/savedir.c,
84597         lib/savedir.h, lib/setenv.c, lib/setenv.h, lib/settime.c,
84598         lib/sh-quote.c, lib/sh-quote.h, lib/sha1.c, lib/sha1.h, lib/sig2str.c,
84599         lib/sig2str.h, lib/sincosl.c, lib/snprintf.c, lib/snprintf.h,
84600         lib/sqrtl.c, lib/stat-macros.h, lib/stat.c, lib/stdbool_.h,
84601         lib/stdint_.h, lib/stdio-safer.h, lib/stpcpy.c, lib/stpcpy.h,
84602         lib/stpncpy.c, lib/stpncpy.h, lib/strcase.h, lib/strcasecmp.c,
84603         lib/strchrnul.c, lib/strchrnul.h, lib/strcspn.c, lib/strdup.c,
84604         lib/strdup.h, lib/strerror.c, lib/strftime.c, lib/strftime.h,
84605         lib/stripslash.c, lib/strndup.c, lib/strndup.h, lib/strnlen.c,
84606         lib/strpbrk.c, lib/strpbrk.h, lib/strsep.c, lib/strsep.h, lib/strstr.c,
84607         lib/strstr.h, lib/strtod.c, lib/strtoimax.c, lib/strtok_r.c,
84608         lib/strtok_r.h, lib/strtol.c, lib/strtoll.c, lib/strtoul.c,
84609         lib/strtoull.c, lib/strverscmp.c, lib/strverscmp.h, lib/sysexit_.h,
84610         lib/tempname.c, lib/time_r.c, lib/time_r.h, lib/timegm.c, lib/timegm.h,
84611         lib/timespec.h, lib/trigl.c, lib/trigl.h, lib/ucs4-utf16.h,
84612         lib/ucs4-utf8.h, lib/unicodeio.c, lib/unicodeio.h, lib/unistd-safer.h,
84613         lib/unlocked-io.h, lib/unsetenv.c, lib/userspec.c, lib/utf16-ucs4.h,
84614         lib/utf8-ucs4.h, lib/utime.c, lib/utimecmp.c, lib/utimecmp.h,
84615         lib/utimens.c, lib/vasnprintf.c, lib/vasnprintf.h, lib/vasprintf.c,
84616         lib/vasprintf.h, lib/version-etc-fsf.c, lib/version-etc.c,
84617         lib/version-etc.h, lib/vsnprintf.c, lib/vsnprintf.h, lib/w32spawn.h,
84618         lib/wait-process.c, lib/wait-process.h, lib/xalloc-die.c, lib/xalloc.h,
84619         lib/xallocsa.c, lib/xallocsa.h, lib/xasprintf.c, lib/xgetcwd.c,
84620         lib/xgetcwd.h, lib/xgetdomainname.c, lib/xgetdomainname.h,
84621         lib/xgethostname.c, lib/xmalloc.c, lib/xmemcoll.c, lib/xnanosleep.c,
84622         lib/xreadlink.c, lib/xreadlink.h, lib/xsetenv.c, lib/xsetenv.h,
84623         lib/xsize.h, lib/xstrndup.c, lib/xstrndup.h, lib/xstrtod.c,
84624         lib/xstrtod.h, lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h,
84625         lib/xstrtoumax.c, lib/xtime.h, lib/xvasprintf.c, lib/xvasprintf.h,
84626         lib/yesno.c, lib/yesno.h:
84627         Update FSF postal mail address.
84628
84629 2005-05-13  Paul Eggert  <eggert@cs.ucla.edu>
84630
84631         * MODULES.html.sh, README, gnulib-tool, tests/test-base64.c,
84632         tests/test-memmem.c, tests/test-stpncpy.c:
84633         Update FSF postal mail address.
84634
84635 2005-05-13  Bruno Haible  <bruno@clisp.org>
84636
84637         * lib/stdint_.h (int64_t, uint64_t, int_least64_t, uint_least64_t,
84638         int_fast64_t, uint_fast64_t, intmax_t, uintmax_t, INT64_MIN, INT64_MAX,
84639         UINT64_MAX, INT_LEAST64_MIN, INT_LEAST64_MAX, UINT_LEAST64_MAX,
84640         INT_FAST64_MIN, INT_FAST64_MAX, UINT_FAST64_MAX, INTMAX_MIN,
84641         INTMAX_MAX, UINTMAX_MAX, INT64_C, UINT64_C, INTMAX_C, UINTMAX_C):
84642         Add support for 64-bit integers in the MSVC compiler.
84643
84644 2005-05-12  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
84645
84646         * modules/getdate (Makefile.am): Add getdate.c to EXTRA_DIST
84647
84648 2005-05-12  Eric Blake  <ebb9@byu.net>  (tiny change)
84649
84650         * gnulib-tool (func_import): Sort and uniquify recommended includes.
84651
84652 2005-05-11  Paul Eggert  <eggert@cs.ucla.edu>
84653
84654         * doc/getdate.texi (General date syntax): Don't say that date
84655         date --iso-8601=ns generates acceptable dates; it doesn't yet.
84656         Problem reported by Nic Ferrier.
84657
84658 2005-05-10  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84659
84660         * lib/getaddrinfo.c: Don't fail when SOCK_STREAM or SOCK_DGRAM are
84661         specified in ai_socktype. Fix invalid ai_protocol
84662         check. ai_protocol is usually set to 0 or depending on
84663         ai_family/ai_socktype to IPPROTO_TCP / IPPROTO_UDP.  Checking for
84664         SOCK_STREAM / SOCK_DGRAM in ai_protocol was invalid.  Set
84665         ai_socktype / ai_protocol in the returned addrinfo structure.
84666
84667 2005-05-10  Simon Josefsson  <jas@extundo.com>
84668
84669         * m4/getaddrinfo.m4: Look in libnsl/libsocket for getaddrinfo, from
84670         Yoann Vandoorselaere <yoann.v@prelude-ids.com>.
84671
84672 2005-05-10  Karl Berry  <karl@gnu.org>
84673
84674         * doc/fdl.texi, gpl.texi, lgpl.texi, COPYING: update FSF address
84675         (from http://www.gnu.org/licenses).
84676         * doc/COPYING.LIB: also rename to COPYING.LESSER.
84677         * doc/COPYING.DOC: remove; per rms, only needed in doc files, so
84678         fdl.texi suffices.
84679
84680 2005-05-10  Karl Berry  <karl@gnu.org>
84681
84682         * config/srclist.txt (COPYING.LESSER): rename from COPYING.LIB.
84683         (COPYING.DOC): remove.
84684
84685         * config/srclist-update: new FSF address.
84686
84687 2005-05-10  Derek Price  <derek@ximbiot.com>
84688
84689         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 bug, not decl, when
84690         possible.
84691
84692 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84693             Bruno Haible  <bruno@clisp.org>
84694
84695         * modules/inet_ntop: New file.
84696         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
84697         inet_ntop.
84698
84699 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84700             Bruno Haible  <bruno@clisp.org>
84701
84702         * m4/inet_ntop.m4: New file.
84703
84704 2005-05-09  Yoann Vandoorselaere  <yoann.v@prelude-ids.com>
84705             Bruno Haible  <bruno@clisp.org>
84706
84707         * lib/inet_ntop.h: New file.
84708         * lib/inet_ntop.c: New file, from glibc with modifications.
84709
84710 2005-05-09  Paul Eggert  <eggert@cs.ucla.edu>
84711
84712         * modules/time_r (License): Change to LGPL.
84713         * modules/extensions (License): Change to LGPL.  Actually,
84714         the license is more permissive than that, but currently gnulib-tool
84715         doesn't know how to handle more-permissive licenses.
84716
84717         * modules/stat-macros (Depends-on): Don't depend on stat-macros (!).
84718         Problem reported by Dave Love.
84719
84720 2005-05-08  Jim Meyering  <jim@meyering.net>
84721
84722         * lib/classpath.c (PATH_SEPARATOR): Remove insignificant trailing
84723         blank.
84724
84725 2005-05-06  Paul Eggert  <eggert@cs.ucla.edu>
84726
84727         * modules/argmatch (Depends-on): Add stdbool.
84728         * modules/backupfile (Depends-on): Likewise.
84729         * modules/chdir-long (Depends-on): Likewise.
84730         * modules/closeout (Depends-on): Likewise.
84731         * modules/cycle-check (Depends-on): Likewise.
84732         * modules/dirname (Depends-on): Likewise.
84733         * modules/fnmatch (Depends-on): Likewise.
84734         * modules/fsusage (Depends-on): Likewise.
84735         * modules/fwriteerror (Depends-on): Likewise.
84736         * modules/getcwd (Depends-on): Likewise.
84737         * modules/getloadavg (Depends-on): Likewise.
84738         * modules/hard-locale (Depends-on): Likewise.
84739         * modules/makepath (Depends-on): Likewise.
84740         * modules/mountlist (Depends-on): Likewise.
84741         * modules/nanosleep (Depends-on): Likewise.
84742         * modules/posixtm (Depends-on): Likewise.
84743         * modules/quotearg (Depends-on): Likewise.
84744         * modules/readtokens (Depends-on): Likewise.
84745         * modules/readtokens0 (Depends-on): Likewise.
84746         * modules/readutmp (Depends-on): Likewise.
84747         * modules/save-cwd (Depends-on): Likewise.
84748         * modules/strftime (Depends-on): Likewise.
84749         * modules/userspec (Depends-on): Likewise.
84750         * modules/utimecmp (Depends-on): Likewise.
84751         * modules/xgetcwd (Depends-on): Likewise.
84752         * modules/xnanosleep (Depends-on): Likewise.
84753         * modules/xstrtod (Depends-on): Likewise.
84754         * modules/yesno (Depends-on): Likewise.
84755
84756 2005-05-05  Paul Eggert  <eggert@cs.ucla.edu>
84757
84758         * m4/getopt.m4 (gl_GETOPT): Check for Solaris 10 getopt, and avoid
84759         needless checks.
84760
84761 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84762
84763         Merge from coreutils.  Among other things,
84764         add bulletproofing for cases where stdin, stdout, or stderr are closed.
84765         * lib/fd-safer.c: New file.
84766         * lib/fcntl-safer.h, open-safer.c: Remove.
84767         * lib/chdir-long.c: Fix comment "fetish" -> "coreutils".
84768         * lib/dup-safer.c: Include unistd-safer.h first.
84769         Don't include errno.h.
84770         (dup_safer) [!defined F_DUPFD]: Let fd_safer do the real work.
84771         * lib/file-type.h: Don't assume invoker included sys/stat.h first.
84772         * lib/file-type.c: Rely on file-type.h change.
84773         * lib/getloadavg.c: Include unistd-safer.h.
84774         (getloadavg): Use safer open.
84775         * lib/getusershell.c: Include "stdio-safer.h".
84776         (getusershell): Use safer fopen.
84777         * lib/long-options.c (long_options): Use NULL rather than 0.
84778         * lib/modechange.h (mode_free): Remove; all callers changed to invoke
84779         'free'.
84780         * lib/modechange.c: Likewise.
84781         xstrtol.h, stdbool.h, stddef.h: Don't include; no longer needed.
84782         (MODE_DONE): New constant.
84783         (struct mode_change): Remove 'next' member.
84784         (make_node_op_equals): New function; like the old one of the
84785         same name, except it allocates an array.
84786         (mode_compile, mode_create_from_ref): Use it.
84787         (mode_compile): Allocate result as an array, not a linked list.
84788         Parse octal string ourself, so that we catch mistakes like "+0".
84789         (mode_adjust): Arg is an array, not a linked list.
84790         * lib/modechange.c: Include stat-macros.h, xalloc.h.
84791         (S_ISDIR, S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR):
84792         (S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH, S_IRXWU):
84793         (S_IRWXG, S_IRWXO, CHMOD_MODE_BITS):
84794         Remove.  This is now stat-macros.h's job.
84795         (talloc): Remove.  All callers replaced by xalloc, so that
84796         our invokers don't have to worry about reporting memory failures.
84797         (make_node_op_equals): Remove.
84798         (MODE_ORDINARY_CHAGE, MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84799         New constants.
84800         (struct mode_change): Moved here from modechange.h.
84801         (mode_append_entry): Remove.
84802         (mode_compile): Remove MASKED_OPS arg, since it encouraged
84803         apps to have incorrect behavior.  Use simpler algorithm for head
84804         and tail.  Don't futz with umask; that's now the job of mode_adjust.
84805         Detect more invalid usages rather than having somewhat-random behavior.
84806         Don't insert an "a=" action, as that leads to incorrect behavior.
84807         (mode_compile, mode_create_from_ref): Return NULL on error instead
84808         of an enum, since now there's only one way to have an error.  All
84809         callers changed.
84810         (mode_adjust): Accept new arg UMASK_VALUE, and interpret it
84811         at the correct time.  Simplify calculation of "+u" and its ilk.
84812         Don't mishandle "+X".
84813         (mode_free): Remove "register" and localize decls.
84814         * lib/modechange.h (MODE_X_IF_ANY_X, MODE_COPY_EXISTING):
84815         (struct mode_change): Move to modechange.c; callers don't
84816         need to see this stuff.
84817         (MODE_MASK_EQUALS, MODE_MASK_PLUS, MODE_MASK_MINUS, MODE_MASK_ALL):
84818         (MODE_INVALID, MODE_MEMORY_EXHAUSTED, MODE_BAD_REFERENCE): Remove.
84819         (mode_change, mode_adjust): Reflect the new signatures noted above.
84820         * lib/nanosleep.c (rpl_nanosleep): Include "timespec.h" before macros
84821         that might redefine system include files.
84822         (siginterrupt) [!HAVE_SIGINTERRUPT]: New macro.
84823         (my_usleep): Use NULL rather than (void *) 0.
84824         (rpl_nanosleep) [!defined SA_NOCLDSTOP]:
84825         Use siginterrupt to specify that system calls should be interrupted.
84826         (rpl_nanosleep): Move initialization of suspended closer to call of
84827         my_usleep.
84828         * lib/readutmp.h (read_utmp): New arg OPTIONS.  All uses changed.
84829         * lib/readutmp.c: Likewise.  Include signal.h, stdbool.h.
84830         (desirable_utmp_entry): New function.
84831         (read_utmp) [defined UTMP_NAME_FUNCTION]: Redo memory allocation
84832         using x2nrealloc, to simplify logic.
84833         (read_utmp) [!defined UTMP_NAME_FUNCTION]: Check for overflow in
84834         size calculation.  Do not assume utmp file is a regular file.
84835         * lib/readutmp.h (UT_PID): Moved here from ../src/who.c.
84836         (READ_UTMP_CHECK_PIDS): New constant.
84837         * lib/save-cwd.c: Include unistd-safer.h.
84838         (save_cwd): Use fd_safer.
84839         * lib/tempname.c (S_ISDIR, S_IRUSR, S_IRUSR, S_IWUSR, S_IXUSR): Remove.
84840         [!_LIBC] Include "stat-macros.h" instead.
84841         * lib/unistd-safer.h (fd_safer): New decl.
84842
84843 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84844
84845         * modules/getloadavg (Depends-on): Add unistd-safer.
84846         * modules/getusershell (Depends-on): Add stdio-safer.
84847         * modules/lstat (Depends-on): Remove xalloc.
84848         * modules/mkstemp (Depends-on): Add stat-macros.
84849         * modules/modechange (Depends-on): Remove xstrtol.
84850         Add stat-macros, xalloc.
84851         * modules/save-cwd (Depends-on): Add unistd-safer.
84852         * modules/stdio-safer (Makefile.am): Remove lib_SOURCES.
84853         * modules/unistd-safer (Files): Add lib/fd-safer.c
84854         (Makefile.am): Remove lib_SOURCES.
84855
84856         * MODULES.html.sh (Enhancements for POSIX:2001 functions):
84857         Remove fcntl-safer; unistd-safer supersedes it.
84858
84859 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84860
84861         * m4/euidaccess.m4 (gl_PREREQ_EUIDACCESS): Don't require
84862         AC_HEADER_STAT.
84863         * m4/lchown.m4 (gl_FUNC_CHOWN): Likewise.
84864         (gl_PREREQ_CHOWN): Remove.
84865         * m4/lstat.m4 (gl_FUNC_LSTAT): Require AC_FUNC_LSTAT instead of calling
84866         it.  Don't require AC_HEADER_STAT.
84867         (gl_PREREQ_LSTAT): Remove.
84868         * m4/mkstemp.m4 (gl_PREREQ_TEMPNAME): Check stdint.h only once.
84869         Don't require AC_HEADER_STAT.
84870         * m4/rmdir.m4 (gl_FUNC_RMDIR): Don't require AC_HEADER_STAT.
84871         (gl_PREREQ_RMDIR): Remove.
84872         * m4/canonicalize.m4 (AC_FUNC_CANONICALIZE_FILE_NAME): Don't
84873         mention stat-macros.h or AC_HEADER_STAT, since we'll make
84874         the stat-macros module a prerequisite.
84875         * m4/file-type.m4 (gl_FILE_TYPE): Likewise.
84876         * m4/filemode.m4 (gl_FILEMODE): Likewise.
84877         * m4/makepath.m4 (gl_MAKEPATH): Likewise.
84878         * m4/modechange.m4 (gl_MODECHANGE): Likewise.
84879         * m4/clock_time.m4 (gl_CLOCK_TIME): Use gl_ rather than fetish_ for
84880         variable names.
84881         * m4/rmdir-errno.m4 (gl_FUNC_RMDIR_NOTEMPTY): Renamed from
84882         fetish_FUNC_RMDIR_NOTEMPTY.  All uses changed.  Use gl_ for
84883         variable prefixes.
84884         * m4/fcntl-safer.m4: Remove.
84885         * m4/stdio-safer.m4 (gl_STDIO_SAFER): Use AC_LIBSOURCES and AC_LIBOBJ.
84886         * m4/unistd-safer.m4 (gl_UNISTD_SAFER): Likewise.
84887         Invoke gl_PREREQ_FD_SAFER.
84888         (gl_PREREQ_FD_SAFER): New macro.
84889         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): Check for siginterrupt.
84890         * m4/readutmp.m4 (gl_READUTMP): Require AC_C_INLINE.
84891         Use AC_CHECK_HEADERS_ONCE and AC_CHECK_FUNCS_ONCE when possible.
84892         Remove duplicate call to AC_LIBOBJ(readutmp).
84893         (gl_PREREQ_READUTMP): Remove.  All uses inlined.
84894
84895         * m4/mmap-anon.m4 (gl_FUNC_MMAP_ANON): Check for message, not for
84896         MAP_ANON.  Problem reported by Moriyoshi Koizumi to bug-cvs.
84897
84898 2005-05-01  Paul Eggert  <eggert@cs.ucla.edu>
84899
84900         * MODULES.html.sh (Misc): Add byteswap.
84901
84902 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84903
84904         * modules/getcwd (Depends-on): Add extensions.
84905         * modules/openat (Depends-on): Likewise.
84906
84907 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84908
84909         * modules/byteswap: New file.
84910
84911 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84912
84913         * m4/byteswap.m4: New file.
84914
84915 2005-05-01  Oskar Liljeblad  <oskar@osk.mine.nu>
84916
84917         * lib/byteswap_.h: New file.
84918
84919 2005-04-25  Karl Berry  <karl@gnu.org>
84920
84921         * m4/gettext.m4: Update from GNU gettext 0.14.4.
84922
84923 2005-04-25  Albert Chin  <china@thewrittenword.com>
84924
84925         * lib/regex.c: Include <stdio.h>, as a workaround to a Compaq Desktop
84926         Toolkit C bug.
84927
84928 2005-04-21  Oskar Liljeblad  <oskar@osk.mine.nu>
84929
84930         * gnulib-tool (Options): Add -s for --symlink/--symbolic.
84931         (func_ln_if_changed): Remove forcibly for no error message
84932         in case file does not exist.
84933
84934 2005-04-19  Simon Josefsson  <jas@extundo.com>
84935
84936         * gnulib-tool (Options): Make --symlink mean --symbolic.
84937
84938 2005-04-18  Oskar Liljeblad  <oskar@osk.mine.nu>
84939
84940         * doc/gnulib.texi (Initial import): Fix.  Mention --aux-dir.
84941
84942 2005-04-16  Simon Josefsson  <jas@extundo.com>
84943
84944         * modules/getpass-gnu (Makefile.am): Don't mention getpass.h.
84945
84946 2005-04-15  Simon Josefsson  <jas@extundo.com>
84947
84948         * m4/getpass.m4 (gl_FUNC_GETPASS): Use AC_LIBSOURCES.
84949
84950 2005-04-15  Simon Josefsson  <jas@extundo.com>
84951
84952         * gnulib-tool: Rename --symlink to --symbolic.
84953
84954 2005-04-15  Oskar Liljeblad  <oskar@osk.mine.nu>
84955
84956         * gnulib-tool: Add -s, --symlink option to gnulib-tool to make
84957         symbolic links to files instead of copying/moving.  Add --aux-dir,
84958         specifying directory relative --dir where auxiliary build tools
84959         are placed.
84960
84961 2005-04-14  Bruno Haible  <bruno@clisp.org>
84962
84963         * modules/allocsa (License): Change to LGPL.
84964         Requested by Yoann Vandoorselaere <yoann@prelude-ids.org>.
84965
84966 2005-04-13  Paul Eggert  <eggert@cs.ucla.edu>
84967
84968         * lib/getdate.y (zone): Allow relunit_snumber after tZONE, so
84969         that "UTC +1 second" continues to work.  Problem reported
84970         by Dmitry V. Levin.
84971         (relunit_snumber): New rule.
84972         (relunit): Use it.
84973
84974 2005-04-12  Paul Eggert  <eggert@cs.ucla.edu>
84975
84976         * lib/getdate.y (universal_time_zone_table): New constant.
84977         (time_zone_table): Remove GMT, UT, UTC entries; they're now in
84978         universal_time_zone_table.
84979         (lookup_zone): Prefer universal_time_zone_table to
84980         local_time_zone_table, so that "GMT" time stamps are allowed in
84981         London during the summer.  Problem reported by Ian Abbott.
84982
84983 2005-04-12  Jim Meyering  <jim@meyering.net>
84984
84985         * lib/human.c (humblock): Set *options even when returning due to
84986         xstrtoumax conversion failure.  Thanks to a used-uninitialized
84987         warning from gcc-4.
84988
84989 2005-04-09  Jim Meyering  <jim@meyering.net>
84990
84991         * lib/posixtm.c (posixtime) [lint]: Avoid spurious warning from gcc-4's
84992         -Wuninitialized: initialize tm0.tm_year.
84993
84994 2005-04-04  Paul Eggert  <eggert@cs.ucla.edu>
84995
84996         * lib/getdate.y (parser_control): rels_seen is now a boolean, not a
84997         count, since there's no maximum.  All uses changed.
84998         Add member dsts_seen.
84999         (local_zone): Accumulate dsts_seen rather than relying on tm_isdst
85000         not being INT_MAX.
85001         (get_date): Initialize dsts_seen, and check that it doesn't go over 1.
85002         Use pc_rels_seen to decide whether a date is absolute.
85003
85004         * lib/getdate.y (number): Don't overwrite year.
85005         (get_date): Initialize pc.year.digits to 0, not 4, to enable above
85006         check.
85007
85008 2005-04-02  Simon Josefsson  <jas@extundo.com>
85009
85010         * lib/getaddrinfo.h: Fix OpenBSD compilation failure, inspired by tiny
85011         patch from Yoann Vandoorselaere <yoann@prelude-ids.org>.
85012
85013 2005-03-28  Eric Blake  <ebb9@byu.net>  (tiny change)
85014
85015         * m4/getcwd-path-max.m4: Return success on systems such as Cygwin
85016         where no absolute path name can be longer than PATH_MAX.
85017
85018 2005-03-27  Jim Meyering  <jim@meyering.net>
85019
85020         * lib/argmatch.c: Clarify comment: null-terminated -> NULL-terminated.
85021
85022 2005-03-26  Paul Eggert  <eggert@cs.ucla.edu>
85023
85024         * lib/intprops.h (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND):
85025         "one's complement" -> "ones' complement" in comment, as per Knuth.
85026         "value of type" -> "type or expression" in comment.
85027         * lib/mktime.c, strftime.c: Propagate intprops.h comment nits.
85028
85029 2005-03-26  Jim Meyering  <jim@meyering.net>
85030
85031         Comment nits.
85032         * lib/intprops.h: Add the apostrophe in `(one|two)'s complement'.
85033         Correct typos: s/or/of/.
85034
85035 2005-03-26  Jim Meyering  <jim@meyering.net>
85036
85037         * modules/check-include-files: Move to ../ and rename to...
85038         * check-module: ...this.
85039
85040 2005-03-25  Jim Meyering  <jim@meyering.net>
85041
85042         * modules/xvasprintf (Files): Add xalloc.h.
85043
85044 2005-03-23  Paul Eggert  <eggert@cs.ucla.edu>
85045
85046         * modules/gettext (Files): config/config.rpath ->
85047         build-aux/config.rpath
85048         * modules/iconv (Files): Likewise.
85049         Problem reported by Oskar Liljeblad.
85050
85051 2005-03-23  Jim Meyering  <jim@meyering.net>
85052
85053         * modules/check-include-files: New script to check for
85054         missing dependencies, multiple includes, etc.
85055
85056         * modules/c-strtold (Depends-on): Add xalloc.
85057         * modules/c-strtod (Depends-on): Add xalloc.
85058         * modules/hash (Depends-on): Add xalloc.
85059         (Files): Remove lib/xalloc.h.
85060
85061         * modules/gethrxtime (Files): Add lib/gethrxtime.h.
85062         * modules/userspec (Files): Add lib/inttostr.h.
85063
85064 2005-03-23  Jim Meyering  <jim@meyering.net>
85065
85066         * lib/canonicalize.c: Remove duplicate `#include "stat-macros.h"'.
85067
85068 2005-03-22  Jim Meyering  <jim@meyering.net>
85069
85070         * modules/stat-macros: New module.
85071         * modules/canonicalize, modules/euidaccess, modules/file-type,
85072         * modules/filemode, modules/lchown, modules/makepath,
85073         * modules/rmdir, modules/stat: Depend on new stat-macros module
85074         rather than listing lib/stat-macros.h manually.
85075         Don't add stat-macros.h to lib_SOURCES or list it in Files: section.
85076
85077 2005-03-22  Jim Meyering  <jim@meyering.net>
85078
85079         * m4/stat-macros.m4 (gl_STAT_MACROS): New file/macro.
85080
85081 2005-03-22  Bruno Haible  <bruno@clisp.org>
85082
85083         * config/srclist.txt: Replace target directory 'config' with
85084         'build-aux'.
85085         * config/config.guess, config.sub, config.rpath, depcomp, install-sh:
85086         * config/mdate-sh, missing, mkinstalldirs, texinfo.tex: Move to
85087         ../build-aux/.
85088
85089 2005-03-21  Paul Eggert  <eggert@cs.ucla.edu>
85090
85091         * modules/chdir-long (Depends-on): Add mempcpy.
85092
85093         * modules/acl, modules/backupfile, modules/c-strtod,
85094         modules/c-strtold, modules/canon-host, modules/canonicalize,
85095         modules/cloexec, modules/closeout, modules/dirfd, modules/dirname,
85096         modules/exclude, modules/exitfail, modules/file-type,
85097         modules/filemode, modules/fpending, modules/fsusage, modules/getcwd,
85098         modules/getdate, modules/getline, modules/getpagesize,
85099         modules/getpass, modules/getugroups, modules/group-member,
85100         modules/hard-locale, modules/hash, modules/human, modules/idcache,
85101         modules/inttostr, modules/long-options, modules/makepath,
85102         modules/md5, modules/memcasecmp, modules/memcoll,
85103         modules/modechange, modules/mountlist, modules/path-concat,
85104         modules/pathmax, modules/physmem, modules/posixtm, modules/posixver,
85105         modules/quote, modules/quotearg, modules/readtokens, modules/readutmp,
85106         modules/safe-read, modules/safe-write, modules/same, modules/savedir,
85107         modules/settime, modules/sha1, modules/sig2str, modules/strdup,
85108         modules/strftime, modules/strndup, modules/strverscmp,
85109         modules/timespec, modules/unlocked-io, modules/userspec,
85110         modules/utimecmp, modules/utimens, modules/xalloc, modules/xstrtol,
85111         modules/yesno:
85112         Remove lib_SOURCES line from Makefile.am section, as this is now
85113         done automatically by the corresponding Autoconf macro.
85114
85115 2005-03-21  Jim Meyering  <jim@meyering.net>
85116
85117         Changes imported from coreutils.
85118
85119         * lib/cycle-check.c: Don't include xalloc.h.
85120
85121         * lib/path-concat.c: Don't include assert.h.
85122         (path_concat): Remove assertion that would have triggered
85123         for ABASE starting with more than one slash.
85124         Reported by Andreas Schwab.
85125
85126         * lib/path-concat.c (path_concat): Set *BASE_IN_RESULT
85127         properly when ABASE is an absolute file name.
85128         Correct the description of this function.
85129         Include <assert.h>.
85130         Add an assertion and a test driver.
85131         This fixes a bug introduced on 2004-07-02.
85132         Andreas Schwab reported the resulting failure of cp --parents:
85133         http://lists.gnu.org/archive/html/bug-coreutils/2005-01/msg00130.html
85134
85135 2005-03-21  Jim Meyering  <jim@meyering.net>
85136
85137         * m4/chdir-long.m4 (gl_PREREQ_CHDIR_LONG): Invoke gl_FUNC_MEMRCHR.
85138         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Check for memrchr decl.
85139
85140 2005-03-21  Jim Meyering  <jim@meyering.net>
85141         and  Paul Eggert  <eggert@cs.ucla.edu>
85142
85143         * m4/acl.m4, m4/backupfile.m4, m4/c-strtod.m4, m4/canon-host.m4,
85144         m4/canonicalize.m4, m4/cloexec.m4, m4/closeout.m4, m4/dirfd.m4,
85145         m4/dirname.m4, m4/exclude.m4, m4/exitfail.m4, m4/file-type.m4,
85146         m4/filemode.m4, m4/fpending.m4, m4/fsusage.m4, m4/getcwd.m4,
85147         m4/getdate.m4, m4/getline.m4, m4/getpagesize.m4, m4/getpass.m4,
85148         m4/getugroups.m4, m4/group-member.m4, m4/hard-locale.m4, m4/hash.m4,
85149         m4/human.m4, m4/idcache.m4, m4/inttostr.m4, m4/long-options.m4,
85150         m4/makepath.m4, m4/md5.m4, m4/memcasecmp.m4, m4/memcoll.m4,
85151         m4/modechange.m4, m4/mountlist.m4, m4/nanosleep.m4, m4/path-concat.m4,
85152         m4/pathmax.m4, m4/physmem.m4, m4/posixtm.m4, m4/posixver.m4,
85153         m4/quote.m4, m4/quotearg.m4, m4/readtokens.m4, m4/readutmp.m4,
85154         m4/safe-read.m4, m4/safe-write.m4, m4/same.m4, m4/savedir.m4,
85155         m4/settime.m4, m4/sha1.m4, m4/sig2str.m4, m4/strdup.m4, m4/strftime.m4,
85156         m4/strndup.m4, m4/strverscmp.m4, m4/timespec.m4, m4/unlocked-io.m4,
85157         m4/userspec.m4, m4/utimecmp.m4, m4/utimens.m4, m4/xalloc.m4,
85158         m4/xnanosleep.m4, m4/xstrtol.m4, m4/yesno.m4:
85159         Use AC_LIBSOURCES and AC_LIBOBJ to indicate source and object files
85160         for these modules.
85161
85162 2005-03-18  Paul Eggert  <eggert@cs.ucla.edu>
85163
85164         * lib/strftime.c (my_strftime): If the underlying strftime returns 0
85165         (which shouldn't happen), generate nothing instead of returning 0
85166         immediately, so that nstrftime (NULL, ...) doesn't return 0.
85167
85168 2005-03-16  Bruno Haible  <bruno@clisp.org>
85169
85170         * modules/stdint (Makefile.am): Use HAVE_LONG_LONG_64BIT instead of
85171         HAVE_LONGLONG_64BIT.
85172
85173 2005-03-16  Bruno Haible  <bruno@clisp.org>
85174
85175         * m4/stdint.m4 (gl_STDINT_H): Define HAVE_LONG_LONG_64BIT instead of
85176         HAVE_LONGLONG_64BIT.
85177
85178 2005-03-16  Bruno Haible  <bruno@clisp.org>
85179
85180         * lib/stdint_.h: Use HAVE_LONG_LONG_64BIT instead of
85181         HAVE_LONGLONG_64BIT.
85182
85183 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85184
85185         * lib/strftime.c (my_strftime): Prepend space to format so that we can
85186         reliably distinguish strftime failure from empty output on POSIX
85187         hosts.
85188
85189 2005-03-15  Paul Eggert  <eggert@cs.ucla.edu>
85190
85191         * lib/iconvme.c (SIZE_MAX): New macro, if not already defined.
85192         (iconv_string): Don't guess a size-zero buffer, as that might cause
85193         buffer overrun.  Instead, avoid multiplying by MB_LEN_MAX if the
85194         result would be 'too large', where 'too large' is (heuristically)
85195         the square root of SIZE_MAX, divided by MB_LEN_MAX to allay
85196         overflow concerns.  This will prevent some unwanted malloc failures
85197         when the inputs are very large.
85198
85199 2005-03-15  Karl Berry  <karl@gnu.org>
85200
85201         * config/srclist.txt (config.rpath): from gettext.
85202         * config/config.rpath: update.
85203
85204 2005-03-15  Bruno Haible  <bruno@clisp.org>
85205
85206         * lib/regex.c (byte_re_match_2_internal): Rename local variable 'not'
85207         to 'negate'.
85208
85209         * lib/regex.c (byte_re_match_2_internal): Reduce scope of same_str_p
85210         variable.
85211
85212         * lib/regex.c (EXTEND_BUFFER, regcomp): Cast the realloc/malloc
85213         results.
85214
85215 2005-03-14  Simon Josefsson  <jas@extundo.com>
85216
85217         * lib/timegm.h: Use proper prototype CPP guards, reported by Dave Love
85218         <fx@gnu.org>.
85219
85220 2005-03-14  Paul Eggert  <eggert@cs.ucla.edu>
85221
85222         * lib/mktime.c (TYPE_TWOS_COMPLEMENT, TYPE_ONES_COMPLEMENT,
85223         TYPE_SIGNED_MAGNITUDE, TYPE_MINIMUM, TYPE_MAXIMUM): Sync from
85224         intprops.h.
85225         * lib/strtol.c: Likewise.
85226
85227 2005-03-14  Jim Meyering  <jim@meyering.net>
85228
85229         * lib/strftime.c (my_strftime) [HAVE_STRFTIME && ! (_NL_CURRENT
85230         && HAVE_STRUCT_ERA_ENTRY)]: Initialize the first byte of ubuf[]
85231         to be nonzero so that we (and caller) can detect the difference
85232         between a valid zero-length expansion and an error return, even
85233         when the underlying strftime fails before writing anything into
85234         that location.
85235
85236 2005-03-14  Bruno Haible  <bruno@clisp.org>
85237
85238         * m4/lib-link.m4, gettext.m4, nls.m4, po.m4:
85239         Update from GNU gettext 0.14.3.
85240
85241 2005-03-10  Jim Meyering  <jim@meyering.net>
85242
85243         * m4/save-cwd.m4 (gl_SAVE_CWD): Check for fchdir.
85244
85245 2005-03-10  Jim Meyering  <jim@meyering.net>
85246
85247         * lib/save-cwd.c [!HAVE_FCHDIR]: Define open, fchdir, and chdir_long
85248         so that this module works on systems without fchdir.
85249
85250 2005-03-09  Paul Eggert  <eggert@cs.ucla.edu>
85251
85252         Factor int-properties macros into a single file, except for
85253         glibc-related files.
85254         * lib/intprops.h: New file.
85255         * lib/getloadavg.c: Include it instead of limits.h.
85256         (INT_STRLEN_BOUND): Remove.
85257         * lib/human.c: Include intprops.h.
85258         (group_number): Use INT_STRLEN_BOUND instead of rolling it ourself.
85259         * lib/human.h (LONGEST_HUMAN_READABLE): Use 146/485 rather than
85260         302/1000.
85261         * lib/inttostr.h: Include intprops.h instead of limits.h.
85262         (INT_STRLEN_BOUND, INT_BUFSIZE_BOUND): Remove.
85263         * lib/mktime.c (TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT): New macros,
85264         for consistency with intprops.h.
85265         (time_t_is_integer, twos_complement_arithmetic): Use them.
85266         * lib/sig2str.h: Include <signal.h>, intprops.h.
85267         (INT_STRLEN_BOUND): Remove.
85268         * lib/strftime.c (TYPE_SIGNED): Remove.
85269         (INT_STRLEN_BOUND): Switch to same implementation as intprops.h.
85270         * lib/strtol.c: Adjust comments to match intprops.h.
85271         * lib/userspec.c: Include intprops.h.
85272         (TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Remove.
85273         * lib/utimecmp.c, xnanosleep.c, xstrtol.c: Likewise.
85274         * lib/utimecmp.c (utimecmp): Use TYPE_IS_INTEGER, TYPE_TWOS_COMPLEMENT
85275         instead of rolling our own expressions.
85276         * lib/xstrtol.c: Include xstrtol.h first, to test interface.
85277
85278         * lib/strftime.c: Include <stdbool.h>.  Use bool where appropriate,
85279         instead of int.
85280         (my_strftime): Do not mishandle years close to INT_MAX, by doing
85281         the right thing even if adding 1900 would overflow.  Similarly
85282         for tm_mon + 1 and tm_yday + 1.
85283         Make %Y always equivalent to %C%y, and similarly for %G and %g.
85284         (DO_NUMBER, DO_NUMBER_SPACEPAD): Set digits to d, not a conditional.
85285         (DO_SIGNED_NUMBER): New macro.
85286         (my_strftime) [HAVE_TZNAME]: Don't dump core if tp->tm_dst > 1.
85287
85288 2005-03-07  Bruno Haible  <bruno@clisp.org>
85289
85290         * m4/mmap-anon.m4 (MAP_FILE, MAP_FAILED): Remove definitions.
85291
85292 2005-03-07  Bruno Haible  <bruno@clisp.org>
85293
85294         * lib/pagealign_alloc.c (MAP_FILE, MAP_FAILED): Define fallbacks.
85295
85296 2005-03-04  Derek R. Price  <derek@ximbiot.com>
85297
85298         * gnulib-tool (func_cp_if_changed, func_mv_if_changed): New functions.
85299         (func_import): Only replace files via --import when they have actually
85300         changed.
85301
85302 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85303
85304         * m4/mmap-anon.m4: New file.
85305         * m4/pagealign_alloc.m4: New file.
85306
85307 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85308             Bruno Haible  <bruno@clisp.org>
85309
85310         * modules/pagealign_alloc: New file.
85311         * MODULES.html.sh (Memory management functions): Add pagealign_alloc.
85312
85313 2005-03-03  Derek R. Price  <derek@ximbiot.com>
85314             Bruno Haible  <bruno@clisp.org>
85315
85316         * lib/pagealign_alloc.h: New file.
85317         * lib/pagealign_alloc.c: New file.
85318
85319 2005-03-03  Bruno Haible  <bruno@clisp.org>
85320
85321         * m4/inttypes.m4, isc-posix.m4, once-only.m4:
85322         Use an all-permissive copyright notice, recommended by RMS.
85323
85324 2005-03-02  Bruno Haible  <bruno@clisp.org>
85325
85326         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Undo the replacement here. Because
85327         of AIX, the replacement has to be done only after <string.h> is
85328         included, therefore not in config.h. stpncpy.h does the replacement,
85329         and stpncpy.c uses it.
85330
85331 2005-03-02  Bruno Haible  <bruno@clisp.org>
85332
85333         * lib/stpncpy.h (stpncpy): Define as a macro without arguments, so that
85334         stpncpy.c uses it.
85335
85336 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85337
85338         Remove workaround for bug in Linux kernel 2.6.8 or thereabouts.
85339         The workaround isn't strictly needed for POSIX conformance, and
85340         it's too much of a pain to configure and maintain.  We'll ask
85341         people to fix their kernels instead.
85342         * lib/xnanosleep.c: Don't include gethrxtime.h or xtime.h.
85343         (NANOSLEEP_BUG_WORKAROUND): Remove.
85344         (xnanosleep): Remove the workaround.
85345
85346 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85347
85348         * modules/gettime (Makefile.am): Remove lib_SOURCES line.
85349         Reported by Derek Price.
85350         (Include): Add "timespec.h".
85351
85352         * modules/xnanosleep (Depends-on): Remove gethrxtime.
85353
85354 2005-03-01  Paul Eggert  <eggert@cs.ucla.edu>
85355
85356         * m4/xnanosleep.m4 (gl_XNANOSLEEP): Remove configuration attempting
85357         to detect nanosleep bug.
85358
85359 2005-03-01  Bruno Haible  <bruno@clisp.org>
85360
85361         * lib/vasnprintf.c (EOVERFLOW): Define to a fallback if needed.
85362
85363 2005-02-26  Paul Eggert  <eggert@cs.ucla.edu>
85364
85365         * modules/gethrxtime: New file.
85366         * modules/xnanosleep (Files): Add m4/xnanosleep.m4.
85367         (Depends-on): Add gethrxtime.
85368         (configure.ac): Add gl_XNANOSLEEP.
85369         (Makefile.am): Remove lib_SOURCES line.
85370
85371 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85372
85373         * m4/gethrxtime.m4, m4/xnanosleep.m4: New files.
85374         * m4/gettime.m4 (gl_GETTIME): Check for nanotime.
85375
85376 2005-02-25  Paul Eggert  <eggert@cs.ucla.edu>
85377
85378         * lib/gethrxtime.h, lib/gethrxtime.c, lib/xtime.h: New files.
85379         * lib/timespec.h (gettime): Return void, since it always
85380         succeeds now.  All uses changed.
85381         * lib/gettime.c (gettime): Likewise.
85382         [HAVE_NANOTIME]: Prefer nanotime.
85383         Assume gettimeofday succeeds, as POSIX requires.
85384         Assime time () succeeds, since other code already does.
85385         * lib/xnanosleep.c: Include xtime.h and gethrxtime.h, not xalloc.h.
85386         (timespec_subtract): Remove.
85387         (NANOSLEEP_BUG_WORKAROUND): New constant.
85388         (xnanosleep): Use gethrxtime rather than gettime; this simplifies
85389         things considerably.  Use it only on GNU/Linux hosts, since the
85390         workaround shouldn't be needed elsewhere.
85391
85392 2005-02-24  Bruno Haible  <bruno@clisp.org>
85393
85394         * modules/gettext (Files): Add m4/glibc2.m4.
85395
85396 2005-02-24  Bruno Haible  <bruno@clisp.org>
85397
85398         * m4/gettext.m4, intdiv0.m4, intmax.m4, inttypes-pri.m4, lcmessage.m4:
85399         * m4/lib-link.m4, lib-prefix.m4, nls.m4, po.m4, printf-posix.m4:
85400         * m4/progtest.m4:
85401         Update from GNU gettext 0.14.2.
85402         * m4/glibc2.m4: New file, from GNU gettext 0.14.2.
85403
85404 2005-02-24  Bruno Haible  <bruno@clisp.org>
85405
85406         * lib/localcharset.c: Update from GNU gettext 0.14.2.
85407         * lib/config.charset: Update from GNU gettext 0.14.2.
85408
85409 2005-02-24  Bruno Haible  <bruno@clisp.org>
85410
85411         * lib/gettext.h: Update from GNU gettext 0.14.2.
85412
85413 2005-02-23  Simon Josefsson  <jas@extundo.com>
85414
85415         * m4/iconvme.m4: New file.
85416
85417 2005-02-23  Jim Meyering  <jim@meyering.net>
85418
85419         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Revert yesteday's
85420         change.
85421         Thanks to Bruno Haible for catching it.
85422
85423 2005-02-22  Simon Josefsson  <jas@extundo.com>
85424
85425         * modules/iconvme: New file.
85426
85427         * MODULES.html.sh: Add iconvme.
85428
85429 2005-02-22  Simon Josefsson  <jas@extundo.com>
85430
85431         * lib/iconvme.h, lib/iconvme.c: New files, from libc.
85432
85433 2005-02-22  Simon Josefsson  <jas@extundo.com>
85434
85435         * config/srclist.txt: Sync iconvme.h, iconvme.c from libc.
85436
85437 2005-02-22  Jim Meyering  <jim@meyering.net>
85438
85439         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Fix typo:
85440         s/ifndef/ifdef/.
85441
85442 2005-02-20  Neil Conway  <neilc@samurai.com>
85443
85444         * lib/xgethostname.c (xgethostname): Check for ENOMEM, which is
85445         returned by OSX/Darwin if the specified buffer is not large
85446         enough for the hostname.
85447
85448 2005-02-03  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85449
85450         * lib/argp-help.c (__argp_help): Create a fake struct argp_state and
85451         pass it to _help, otherwise the latter coredumps trying to
85452         dereference state.root_argp.
85453
85454 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85455
85456         * modules/chdir-long (Depends-on): Add memrchr.
85457         * modules/memrchr (Files): Add lib/memrchr.h.
85458         (Include): "memrchr.h".
85459
85460 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85461
85462         * m4/memrchr.m4 (gl_FUNC_MEMRCHR): Add AC_LIBSOURCES, for memrchr.h.
85463
85464 2005-02-03  Paul Eggert  <eggert@cs.ucla.edu>
85465
85466         * lib/memrchr.h: New file.
85467         * lib/chdir-long.c: Include it.
85468         * lib/memrchr.c [!defined _LIBC]: Include it rather than <string.h>
85469         Don't bother including stddef.h.
85470
85471 2005-02-01  Paul Eggert  <eggert@cs.ucla.edu>
85472
85473         * lib/mountlist.h (MOUNTLIST_H_): New macro, to protect against double
85474         inclusion.
85475         Include <sys/types.h>, for dev_t.
85476         (ME_DUMMY, ME_REMOTE): Move from here....
85477         * lib/mountlist.c (ME_DUMMY, ME_REMOTE): To here.
85478         (ME_DUMMY): Count "subfs" as a dummy.  Problem reported by
85479         Dmitry V. Levin.
85480         Include mountlist.h first, to test the interface.
85481
85482 2005-01-29  Bruno Haible  <bruno@clisp.org>
85483
85484         * lib/progname.c (program_name): Initialize.
85485         Needed when linking statically on MacOS X.
85486
85487 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85488
85489         Sync from coreutils.
85490         * modules/getloadavg (Files): Remove m4/getloadavg.m4.
85491         (Depends-on): Add c-strtod.
85492         (configure.ac): Replace gl_FUNC_GETLOADAVG with AC_FUNC_GETLOADAVG.
85493
85494 2005-01-28  Paul Eggert  <eggert@cs.ucla.edu>
85495
85496         Sync from coreutils.
85497         * m4/getloadavg.m4, glibc.m4, search-libs.m4: Remove.
85498
85499         Remove files that are specific to coreutils.
85500         * m4/check-decl.m4, jm-macros.m4, lib-check.m4, prereq.m4: Remove.
85501
85502 2005-01-28  Bruno Haible  <bruno@clisp.org>
85503
85504         * modules/javacomp: New file.
85505         * MODULES.html.sh (Java): Add javacomp.
85506
85507 2005-01-28  Bruno Haible  <bruno@clisp.org>
85508
85509         * m4/javacomp.m4: New file, from GNU gettext.
85510
85511 2005-01-28  Bruno Haible  <bruno@clisp.org>
85512
85513         * lib/javacomp.sh.in: New file, from GNU gettext.
85514         * lib/javacomp.h: New file, from GNU gettext.
85515         * lib/javacomp.c: New file, from GNU gettext.
85516
85517 2005-01-26  Simon Josefsson  <jas@extundo.com>
85518
85519         * lib/gai_strerror.c: Use GPL in header.
85520
85521 2005-01-26  Bruno Haible  <bruno@clisp.org>
85522
85523         * modules/javaexec: New file.
85524         * MODULES.html.sh (Java): Add javaexec.
85525
85526 2005-01-26  Bruno Haible  <bruno@clisp.org>
85527
85528         * m4/javaexec.m4: New file, from GNU gettext.
85529
85530 2005-01-26  Bruno Haible  <bruno@clisp.org>
85531
85532         * lib/javaexec.sh.in: New file, from GNU gettext.
85533         * lib/javaexec.h: New file, from GNU gettext.
85534         * lib/javaexec.c: New file, from GNU gettext.
85535
85536 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85537
85538         * modules/lchown (Depends-on): Remove lchown.h
85539
85540 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85541
85542         * m4/sysexits.m4 (gl_SYSEXITS): Reverted logic. SYSEXITS_H
85543         must be defined if the header file was not found, in order
85544         to provide a replacement. Reported by Todd Vierling <tv@duh.org>
85545
85546 2005-01-24  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85547
85548         * lib/argp-help.c (hol_entry_help): Avoid using non-constant
85549         initializers for struct pentry_state.
85550         (__argp_error): Check return value of __asprintf
85551         (__argp_failure): Translate error message
85552
85553         * lib/argp-parse.c: Removed braces around the expansion of N_()
85554
85555 2005-01-23  Paul Eggert  <eggert@cs.ucla.edu>
85556
85557         * m4/acl.m4, afs.m4, alloca.m4, argp.m4, assert.m4, atexit.m4,
85558         backupfile.m4, base64.m4, bison.m4, c-bs-a.m4, c-stack.m4,
85559         c-strtod.m4, calloc.m4, canon-host.m4, canonicalize.m4,
85560         clock_time.m4, cloexec.m4, closeout.m4, d-ino.m4, d-type.m4,
85561         dirfd.m4, dirname.m4, dos.m4, dup2.m4, error.m4, euidaccess.m4,
85562         exclude.m4, exitfail.m4, extensions.m4, fcntl-safer.m4,
85563         file-type.m4, fileblocks.m4, filemode.m4, fnmatch.m4, fpending.m4,
85564         free.m4, fstypename.m4, fsusage.m4, ftruncate.m4, getaddrinfo.m4,
85565         getcwd-path-max.m4, getcwd.m4, getdate.m4, getdomainname.m4,
85566         getgroups.m4, gethostname.m4, getline.m4, getndelim2.m4,
85567         getnline.m4, getopt.m4, getpagesize.m4, getpass.m4, getsubopt.m4,
85568         gettime.m4, gettimeofday.m4, getugroups.m4, getusershell.m4,
85569         group-member.m4, hard-locale.m4, hash.m4, host-os.m4, human.m4,
85570         idcache.m4, inttostr.m4, isdir.m4, jm-winsz1.m4, jm-winsz2.m4,
85571         link-follow.m4, long-options.m4, ls-mntd-fs.m4, lstat.m4,
85572         makepath.m4, mathl.m4, md5.m4, memcasecmp.m4, memchr.m4,
85573         memcmp.m4, memcoll.m4, memcpy.m4, memmem.m4, memmove.m4,
85574         memrchr.m4, memset.m4, mkdir-slash.m4, mkstemp.m4, mktime.m4,
85575         modechange.m4, mountlist.m4, nanosleep.m4, obstack.m4,
85576         path-concat.m4, pathmax.m4, perl.m4, physmem.m4, poll.m4,
85577         posixtm.m4, posixver.m4, putenv.m4, quote.m4, quotearg.m4,
85578         readdir.m4, readtokens.m4, readutmp.m4, regex.m4, rename.m4,
85579         restrict.m4, rmdir-errno.m4, rmdir.m4, rpmatch.m4, same.m4,
85580         savedir.m4, settime.m4, sha1.m4, sig2str.m4, snprintf.m4,
85581         sockpfaf.m4, st_dm_mode.m4, st_mtim.m4, stat.m4, stdint.m4,
85582         stdio-safer.m4, strchrnul.m4, strdup.m4, strerror.m4,
85583         strerror_r.m4, strftime.m4, strndup.m4, strnlen.m4, strsep.m4,
85584         strtod.m4, strtoimax.m4, strtok_r.m4, strtol.m4, strtoll.m4,
85585         strtoul.m4, strtoull.m4, strtoumax.m4, strverscmp.m4, sysexits.m4,
85586         time_r.m4, timegm.m4, timespec.m4, tm_gmtoff.m4, tzset.m4,
85587         uint32_t.m4, uintptr_t.m4, unistd-safer.m4, unlink-busy.m4,
85588         unlocked-io.m4, uptime.m4, userspec.m4, utimbuf.m4, utime.m4,
85589         utimecmp.m4, utimens.m4, utimes-null.m4, vsnprintf.m4, xalloc.m4,
85590         xgetcwd.m4, xreadlink.m4, xstrndup.m4, xstrtod.m4, xstrtoimax.m4,
85591         xstrtol.m4, xstrtoumax.m4, yesno.m4:
85592         Use an all-permissive copyright notice, recommended by RMS.
85593
85594 2005-01-21  Paul Eggert  <eggert@cs.ucla.edu>
85595
85596         * modules/chdir-long (Depends-on): Remove mempcpy.
85597
85598 2005-01-21  Jim Meyering  <jim@meyering.net>
85599
85600         * lib/openat.h (AT_SYMLINK_NOFOLLOW): Define to 4096, so it's the
85601         same value as for Solaris 9.
85602
85603         * lib/chdir-long.c (chdir_long): Rewrite to remove limitation on
85604         component length.  This included changing the parameter to be
85605         of type `char *' rather than `char const *'.
85606         * lib/chdir-long.h (chdir_long): Update prototype.
85607
85608         * lib/openat.c (fdopendir, fstatat): New functions.
85609         * lib/openat.h: Include headers required for use of DIR and struct
85610         stat.
85611         [AT_SYMLINK_NOFOLLOW]: Define.
85612         (fdopendir, fstatat): Add prototypes.
85613
85614 2005-01-21  Bruno Haible  <bruno@clisp.org>
85615
85616         * modules/classpath: New file.
85617         * MODULES.html.sh (Java): Add classpath.
85618
85619 2005-01-21  Bruno Haible  <bruno@clisp.org>
85620
85621         * lib/classpath.h: New file, from GNU gettext.
85622         * lib/classpath.c: New file, from GNU gettext.
85623
85624 2005-01-20  Simon Josefsson  <jas@extundo.com>
85625
85626         * modules/version-etc-fsf: New file.
85627
85628 2005-01-20  Simon Josefsson  <jas@extundo.com>
85629
85630         * lib/version-etc-fsf.c: New file, with version_etc_copyright.
85631         * lib/version-etc.c: Remove version_etc_copyright.
85632         * lib/version-etc.h (version_etc_copyright): Use [] instead of * in
85633         prototype, suggested by Paul Eggert <eggert@CS.UCLA.EDU>.
85634
85635 2005-01-20  Simon Josefsson  <jas@extundo.com>
85636
85637         * lib/base64.h (isbase64): Add.
85638
85639         * lib/base64.c (isb64): Rename to isbase64, use to_uchar instead of
85640         using a unsigned prototype, don't inline.
85641         (base64_decode): Use it.
85642
85643 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85644
85645         * m4/save-cwd.m4 (gl_SAVE_CWD): Remove check for fcntl; we now assume
85646         it.
85647
85648 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85649
85650         * lib/save-cwd.c (save_cwd): Remove code to support the case
85651         where fchdir is missing or flaky.
85652
85653 2005-01-20  Paul Eggert  <eggert@cs.ucla.edu>
85654
85655         * MODULES.html.sh (Command-line arguments): Add version-etc-fsf.
85656
85657 2005-01-19  Paul Eggert  <eggert@cs.ucla.edu>
85658
85659         * modules/mempcpy (Makefile.am): Remove mention of mempcpy.h;
85660         AC_LIBSOURCES now does this.
85661         * MODULES.html.sh (Sizes of integer types <limits.h>): New element,
85662         with new ullong_max module.
85663
85664 2005-01-19  Bruno Haible  <bruno@clisp.org>
85665
85666         * modules/sh-quote: New file.
85667         * MODULES.html.sh (Executing programs): Add sh-quote.
85668
85669 2005-01-19  Bruno Haible  <bruno@clisp.org>
85670
85671         * lib/sh-quote.h: New file, from GNU gettext.
85672         * lib/sh-quote.c: New file, from GNU gettext.
85673
85674 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85675
85676         Merge from coreutils.
85677         * m4/ullong_max.m4: New file.
85678         * m4/jm-macros.m4 (gl_MACROS): Require gl_ULLONG_MAX.
85679         (gl_MACROS): Assume localeconv exists.
85680
85681 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85682
85683         Merge changes from coreutils, as described below in several
85684         changelogs dated today.
85685
85686         * lib/save-cwd.c: Include "save-cwd.h" before other include files.
85687         (O_DIRECTORY): Remove; not needed here, since "." must be
85688         a directory.  All uses removed.
85689         (save_cwd): Use __sgi || __sun, not sun || __sun.  __sun is
85690         universal on Suns, and we also need to test for IRIX.
85691         Revamp code to use 'if' rather than '#if'.
85692         Avoid unnecessary comparison of cwd->desc to 0.
85693
85694         * lib/utimens.c (futimens): Robustify the previous patch, by checking
85695         for known valid error numbers rather than observed invalid ones.
85696
85697 2005-01-18  Paul Eggert  <eggert@cs.ucla.edu>
85698
85699         * modules/ullong_max: New file.
85700
85701         * modules/chdir-long, modules/openat: New files.
85702         * modules/save-cwd (Depends-on): Depend on chdir-long.
85703         (Makefile.am): Remove lib_SOURCES; now handled by AC_LIBSOURCES.
85704
85705 2005-01-18  Jim Meyering  <jim@meyering.net>
85706
85707         Merge from coreutils.
85708         * m4/chdir-long.m4, m4/openat.m4: New files.
85709         * m4/save-cwd.m4 (gl_SAVE_CWD): Add AC_LIBSOURCES for save-cwd.c,
85710         save-cwd.h.  Add AC_LIBOBJ for save-cwd.
85711         * m4/chown.m4 (gl_FUNC_CHOWN): When cross-compiling, assume that chown
85712         is sane and DOES follow symlinks.  Besides, testing 20 different
85713         systems found no broken chown implementations.
85714         Prompted by a change in rsync's copy of this macro.
85715         * m4/jm-macros.m4 (gl_MACROS): Require gl_FUNC_CHDIR_LONG.
85716
85717         * m4/lchown.m4 (gl_FUNC_LCHOWN): Use AC_LIBSOURCES.
85718
85719         * m4/utimes.m4: Work around tests/touch/empty-file failure on a system
85720         (sparc64, Linux-2.4.28, glibc-2.3.3) that didn't honor utimes'
85721         NULL-means-set-to-current-time semantics.
85722         Remove temporary file immediately, rather than waiting
85723         for configure's at-exit trap code to do it.
85724
85725 2005-01-18  Jim Meyering  <jim@meyering.net>
85726
85727         * lib/version-etc.c (version_etc_copyright): Update copyright date.
85728
85729         * lib/utimens.c (futimens): Account for the fact that futimes
85730         can also fail with errno == ENOSYS or errno == ENOENT.
85731         Patch from Dmitry V. Levin.
85732
85733         Change the name of the robust chdir function from chdir to chdir_long.
85734         * lib/save-cwd.c: Include chdir-long.h rather than chdir.h.
85735         (restore_cwd): Use chdir_long, not chdir.
85736         * lib/chdir-long.c: Renamed from chdir.c.
85737         * lib/chdir-long.h: Renamed from chdir.h.
85738         [!defined PATH_MAX]: Define chdir_long to chdir on systems like the
85739         Hurd.
85740
85741 2005-01-18  Bruno Haible  <bruno@clisp.org>
85742
85743         * m4/allocsa.m4, m4/codeset.m4, m4/copy-file.m4, m4/eaccess.m4:
85744         * m4/eealloc.m4, m4/eoverflow.m4, m4/execute.m4, m4/fatal-signal.m4:
85745         * m4/findprog.m4, m4/glibc21.m4, m4/iconv.m4, m4/intmax_t.m4:
85746         * m4/inttypes_h.m4, m4/lib-ld.m4, m4/lib-link.m4, m4/lib-prefix.m4:
85747         * m4/linebreak.m4, m4/localcharset.m4, m4/longdouble.m4:
85748         * m4/longlong.m4, m4/mbrtowc.m4, m4/mbstate_t.m4, m4/mbswidth.m4:
85749         * m4/mkdtemp.m4, m4/pipe.m4, m4/readlink.m4, m4/safe-read.m4:
85750         * m4/safe-write.m4, m4/setenv.m4, m4/sig_atomic_t.m4:
85751         * m4/signalblocking.m4, m4/signed.m4, m4/size_max.m4, m4/ssize_t.m4:
85752         * m4/stdbool.m4, m4/stdint_h.m4, m4/stpcpy.m4, m4/stpncpy.m4:
85753         * m4/strcase.m4, m4/strcspn.m4, m4/strpbrk.m4, m4/strstr.m4:
85754         * m4/ucs4-utf.m4, m4/uintmax_t.m4, m4/ulonglong.m4, m4/unicodeio.m4:
85755         * m4/utf-ucs4.m4, m4/vasnprintf.m4, m4/vasprintf.m4:
85756         * m4/wait-process.m4, m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4:
85757         Use an all-permissive copyright notice, recommended by RMS.
85758
85759 2005-01-18  Bob Proulx  <bob@proulx.com>
85760
85761         * lib/obstack.c [DEFAULT_ALIGNMENT]: Use an intermediate type to
85762         simplify offsetof() macro construct to avoid compile failure with
85763         native HP-UX 11.0 ANSI C compiler.
85764
85765 2005-01-17  Bruno Haible  <bruno@clisp.org>
85766
85767         * lib/stpncpy.c: Remove HAVE_STPNCPY and gnu_stpncpy renaming,
85768         redundant because stpncpy.m4 takes care of it.
85769
85770 2005-01-17  Bruno Haible  <bruno@clisp.org>
85771
85772         * lib/progreloc.c: Include xalloc.h instead of xmalloc.h.
85773
85774 2005-01-17  Bruno Haible  <bruno@clisp.org>
85775
85776         * lib/progreloc.c (xstrdup): Define as strdup if no xmalloc should be
85777         used.
85778
85779 2005-01-17  Bruno Haible  <bruno@clisp.org>
85780
85781         * lib/fwriteerror.h (fwriteerror): Change specification to include
85782         fclose.
85783         * lib/fwriteerror.c: Include <stdbool.h>.
85784         (fwriteerror): At the end, close the file stream. Record whether
85785         stdout was already closed.
85786
85787 2005-01-17  Bruno Haible  <bruno@clisp.org>
85788
85789         * lib/execute.c (environ): Declare if needed.
85790         * lib/pipe.c (environ): Likewise.
85791         Reported by Michael Schloh von Bennewitz <michael.schloh@cw.com>.
85792
85793 2005-01-11  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85794
85795         * modules/argp: Depend on vsnprintf
85796
85797 2005-01-10  Jim Meyering  <jim@meyering.net>
85798
85799         * modules/closeout (Depends-on): Add atexit.
85800
85801 2005-01-06  Bruno Haible  <bruno@clisp.org>
85802
85803         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Rename stpncpy to gnu_stpncpy here.
85804
85805 2005-01-04  Paul Eggert  <eggert@cs.ucla.edu>
85806
85807         * lib/human.c (SIZE_MAX, UINTMAX_MAX): Move these conditional
85808         definitions to be after all include files, to avoid collisions.
85809         Problem reported by Bob Proulx.
85810
85811 2005-01-04  Jim Meyering  <jim@meyering.net>
85812
85813         Changes imported from coreutils.
85814         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Rather than using "conftestXXXXXX"
85815         as the mkstemp template, use a temporary directory and an
85816         8.3-friendly template to avoid trouble on systems like DJGPP.
85817         Reported by Juan M. Guerrero via Stepan Kasal.
85818         * m4/(gl_FUNC_MKSTEMP): Include <unistd.h> for the declaration of
85819         close. Remove the temporary directory right away, rather than waiting
85820         for configure's at-exit trap code to do it.
85821         Suggestion from Stepan Kasal.
85822
85823 2005-01-01  Simon Josefsson  <jas@extundo.com>
85824
85825         * gnulib-tool: Print #include directives when --import'ing.
85826
85827 2004-12-28  Simon Josefsson  <jas@extundo.com>
85828
85829         * tests/test-base64.c: Include required header files.  Remove
85830         unused variables.
85831
85832 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85833
85834         * modules/error (Depends-on): Remove gettext.
85835
85836 2004-12-28  Paul Eggert  <eggert@cs.ucla.edu>
85837
85838         * lib/error.c [!_LIBC && !ENABLE_NLS]: Do not include "gettext.h";
85839         not needed.  This removes a dependency on the gettext module.
85840         [defined _LIBC]: Do not include <libintl.h>; not needed.
85841
85842 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85843
85844         * m4/c-strtod.m4 (gl_C99_STRTOLD): New macro.
85845         (gl_C_STRTOD): Use it instead of AC_CHECK_DECLS_ONCE(strtold).
85846
85847 2004-12-24  Paul Eggert  <eggert@cs.ucla.edu>
85848
85849         * lib/c-strtod.c (STRTOD): Depend on HAVE_C99_STRTOLD, not
85850         HAVE_DECL_STRTOLD.
85851
85852 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85853
85854         * modules/getdate (Depends-on): Remove alloca-opt.
85855
85856 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85857
85858         * m4/getdate.m4 (gl_GETDATE): Remove AC_FUNC_ALLOCA.
85859
85860 2004-12-23  Paul Eggert  <eggert@cs.ucla.edu>
85861
85862         * lib/argp-parse.c: Include <stddef.h>.
85863         (alignof, alignto): New macros.
85864         (parser_init): Don't assume that void * is aligned sufficiently
85865         for struct option.
85866
85867         * lib/getdate.y (YYSTACK_USE_ALLOCA): Define to 0, since there's no
85868         need to extend the stack.
85869         (YYINITDEPTH): New macro, so that the initial stack isn't overly
85870         large.
85871
85872 2004-12-22  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
85873
85874         * lib/argp-parse.c (parser_init): Avoid arithmetics on void pointers.
85875
85876 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85877
85878         * modules/regex (lib_SOURCES): Remove regex.c, undoing previous
85879         (2004-10-24) change.  Apparently this was a false alarm.
85880
85881         * modules/getdate: Depend on alloca-opt, not alloca.
85882
85883 2004-12-19  Paul Eggert  <eggert@cs.ucla.edu>
85884
85885         * lib/alloca_.h: Conditionalize on _GNULIB_ALLOCA_H, not _ALLOCA_H.
85886         Remove now-obsolete comment about AIX.
85887         * lib/getdate.y: Include <alloca.h> only if HAVE_ALLOCA.
85888         (YYSTACK_USE_ALLOCA): Define to 0 if !HAVE_ALLOCA.
85889         (YYMAXDEPTH): New macro.
85890
85891 2004-12-18  Simon Josefsson  <jas@extundo.com>
85892
85893         * modules/alloca: Depend on alloca-opt, instead of duplicating it.
85894
85895 2004-12-18  Bruno Haible  <bruno@clisp.org>
85896
85897         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Also test for sigaction.
85898
85899 2004-12-18  Bruno Haible  <bruno@clisp.org>
85900
85901         * lib/fatal-signal.c (fatal_signals): Make non-const.
85902         (init_fatal_signals): New function.
85903         (uninstall_handlers, install_handlers): Ignore signals that were set to
85904         SIG_IGN.
85905         (at_fatal_signal): Call init_fatal_signals.
85906         (init_fatal_signal_set): Likewise. Ignore signals that were set to
85907         SIG_IGN.
85908         Reported by Paul Eggert.
85909
85910 2004-12-18  Bruno Haible  <bruno@clisp.org>
85911
85912         * doc/alloca.texi: New file.
85913         * doc/alloca-opt.texi: New file.
85914
85915 2004-12-17  Jim Meyering  <jim@meyering.net>
85916
85917         * config/install-sh: Use `(exit N); exit N', not `(exit N); exit'.
85918         Otherwise, install-sh could exit with improper exit status when
85919         exiting via a trapped interrupt.  Thanks to a report from Bob Proulx.
85920
85921 2004-12-16  Simon Josefsson  <jas@extundo.com>
85922
85923         * tests/test-base64.c: Add license.
85924
85925 2004-12-15  Stepan Kasal  <address@hidden>
85926
85927         * gnulib-tool (func_emit_lib_Makefile_am): Shorten a long sed command.
85928
85929 2004-12-12  Paul Eggert  <eggert@cs.ucla.edu>
85930
85931         * modules/getcwd (Files): Add m4/d-ino.m4.
85932         Suggested by Mark D. Baushke.
85933
85934 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85935
85936         * lib/getdate.y (textint): New member "negative".
85937         (time_zone_hhmm): New function.
85938         Expect 14 shift-reduce conflicts, not 13.
85939         (o_colon_minutes): New rule.
85940         (time, zone): Use it to add support for +HH:MM, UTC+HH:MM.
85941         (yylex): Set the "negative" member of signed numbers.
85942
85943 2004-12-08  Paul Eggert  <eggert@cs.ucla.edu>
85944
85945         * doc/getdate.texi (Time of day items, Time zone items):
85946         Describe new formats +00:00, UTC+00:00.
85947
85948 2004-12-07  Paul Eggert  <eggert@cs.ucla.edu>
85949
85950         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): Fix typo in previous change:
85951         spurious "-l"s.  Problem reported by Stepan Kasal.
85952
85953 2004-12-06  Paul Eggert  <eggert@cs.ucla.edu>
85954
85955         * m4/ls-mntd-fs.m4 (AC_FUNC_GETMNTENT): New macro, to work around bug
85956         in Autoconf 2.59.  Problem reported by Mark D. Baushke.
85957
85958 2004-12-04  Simon Josefsson  <jas@extundo.com>
85959
85960         * modules/getaddrinfo (License): Add LGPL, reported by Yoann
85961         Vandoorselaere <yoann@prelude-ids.org>.
85962
85963 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85964
85965         Changes imported from coreutils.
85966         * m4/hard-locale.m4 (gl_HARD_LOCALE): Assume locale.h and setlocale
85967         exist.
85968         * m4/human.m4 (gl_HUMAN): Assume locale.h and localeconv exist.
85969
85970 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85971
85972         Changes imported from coreutils.
85973         * lib/hard-locale.c: Assume <locale.h> exists.
85974         Include "strdup.h".
85975         (GLIBC_VERSION): New macro.
85976         (hard_locale): Assume setlocale exists.
85977         Rewrite to avoid #ifdef.
85978         Use strdup rather than malloc + strcpy.
85979         * lib/human.c: Assume <locale.h> exists.
85980         (human_readable): Assume localeconv exists.
85981
85982 2004-12-04  Paul Eggert  <eggert@cs.ucla.edu>
85983
85984         * modules/hard-locale (Depends-on): Add strdup.
85985
85986 2004-12-01  Jakub Jelinek  <jakub@redhat.com>
85987
85988         * lib/mktime.c (__mktime_internal): If SEC_REQUESTED != SEC,
85989         convert T2, not T.  (Imported from libc.)
85990
85991 2004-11-30  Simon Josefsson  <jas@extundo.com>
85992
85993         * modules/restrict (License): Change to LGPL.
85994
85995 2004-11-30  Simon Josefsson  <jas@extundo.com>
85996
85997         * m4/restrict.m4: Add copyright and copying conditions.
85998
85999 2004-11-30  Simon Josefsson  <jas@extundo.com>
86000
86001         * m4/base64.m4: New file.
86002
86003 2004-11-30  Simon Josefsson  <jas@extundo.com>
86004
86005         * MODULES.html.sh (Extra functions based on ANSI C 89): Add
86006         base64.
86007
86008         * tests/test-base64.c: New file.
86009
86010         * modules/base64: New file.
86011
86012 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
86013
86014         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX):
86015         Define HAVE_PARTLY_WORKING_GETCWD if getcwd is partly working.
86016
86017         * m4/readutmp.m4 (gl_READUTMP): Don't check for sys/param.h.
86018
86019 2004-11-30  Paul Eggert  <eggert@cs.ucla.edu>
86020
86021         * lib/getcwd.c (is_ENAMETOOLONG): New macro.
86022         (__getcwd.c): Don't restore errno; glibc doesn't.
86023         [HAVE_PARTLY_WORKING_GETCWD && !defined AT_FDCWD]: Try system getcwd
86024         first, falling back to our code only if its results look suspicious.
86025         Ensure that the resulting buffer is only as large as necessary.
86026
86027         * lib/readutmp.c: Include readutmp.h first.
86028         Include <errno.h>, since readutmp.h no longer does that.
86029         * lib/readutmp.h: Don't include <errno.h>,
86030         <sys/param.h>, <time.h>; not needed to establish interface.
86031         (errno): Remove decl.
86032         (HAVE_STRUCT_XTMP_UT_TYPE): Remove; no longer needed.
86033         (UT_TYPE_EQ, UT_TYPE_NOT_DEFINED, UT_TYPE_BOOT_TIME,
86034         UT_TYPE_USER_PROCESS, IS_USER_PROCESS): New macros.
86035
86036 2004-11-28  Simon Josefsson  <jas@extundo.com>
86037
86038         * lib/base64.h, base64.c: New file.
86039
86040 2004-11-27  Paul Eggert  <eggert@cs.ucla.edu>
86041
86042         * lib/getcwd.h: New file, which I forgot to check in on 2004-11-25.
86043
86044 2004-11-26  Paul Eggert  <eggert@cs.ucla.edu>
86045
86046         * modules/getcwd (Files): Add lib/getcwd.h, m4/getcwd.m4.
86047         (Depends-on): Remove pathmax, same.  Add mempcpy.
86048         (configure.ac): GL_FUNC_GETCWD_PATH_MAX -> gl_FUNC_GETCWD.
86049         (Makefile.am): Append getcwd.h to lib_SOURCES.
86050         (Include): Add getcwd.h.
86051         (Maintainer): Change from Jim Meyering to "all, glibc",
86052         since getdate now uses intended-for-glibc code.
86053         * modules/xgetcwd (Files): Remove m4/getcwd.m4.
86054         (Depends-on): Depend on getcwd.  Do not depend on pathmax.
86055
86056 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86057
86058         Fix problems reported by Scott S. Tinsley for HP-UX 11.11 using
86059         HP's ANSI C compiler.
86060         * lib/fsusage.c (statvfs) [HAVE_SYS_STATVFS_H]: Remove decl.
86061         Declaring int functions causes warnings on some modern systems and
86062         shouldn't be needed to compile on ancient ones.
86063         * lib/same.c (MIN) [defined MIN]: Don't define, since it's already
86064         defined.
86065
86066         * lib/getcwd.c: Replace by a copy of glibc/sysdeps/posix/getcwd.c, but
86067         with the following changes.
86068         (__set_errno): Parenthesize properly.
86069         Include <stdbool.h>.
86070         (MIN, MAX, MATCHING_INO): New macros.
86071         (__getcwd): Define with prototype, not K&R form.
86072         Use heuristics to allocate default buffer on stack if possible.
86073         If AT_FDCWD is defined, use openat and fstatat to avoid O(N**2)
86074         behavior, and to avoid the PATH_MAX limit when computing
86075         ../../../../...
86076         Use MATCHING_INO to compare inode number to file.
86077         Check for arithmetic overflow in size calculations.
86078         Fix bug in reallocation of dot array that caused getcwd to fail
86079         on directories nested deeper than 75.
86080         Be more careful about saving errno on error.
86081         Do not use realloc; use only free+malloc, as this is a bit
86082         more flexible and avoids a needless copy operation.
86083         Do not inspect st_dev and st_ino for symbolic links; POSIX
86084         doesn't specify the latter.
86085         Check for closedir errors.
86086         Avoid needless casts.
86087         Use "#ifdef weak_alias" around weak_alias, to be like other
86088         glibc code.
86089         The following changes to getcwd.c have effect only when used in
86090         gnulib; they have no effect inside glibc proper.
86091         (#pragma alloca) [defined _AIX && !defined __GNUC__]: Remove,
86092         as alloca isn't used.
86093         (alloca, __alloca): Likewise.
86094         [!_LIBC]: Include "getcwd.h", "mempcpy.h".
86095         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
86096         unconditionally, as gnulib assumes C89 or better.
86097         Do not include <sys/param.h>.
86098         (errno) [!defined __GNU_LIBRARY__ && !defined STDC_HEADERS]: Remove
86099         no-longer-necessary 'extern int errno' decl; gnulib assumes C89 or
86100         better.
86101         (NULL) [!defined NULL]: Remove; we assume C89 or better.
86102         Include <dirent.h> in a way that is compatible with modern Autoconf.
86103         (_D_ALLOC_NAMELEN, _D_EXACT_NAMLEN):
86104         New macros, if not already defined.
86105         Include <unistd.h> if _LIBC, not if __GNU_LIBRARY__.
86106         Use "_LIBC", not "defined _LIBC", for consistency.
86107         (HAVE_MEMPCPY): Remove; no longer needed now that gnulib has
86108         a mempcpy module.
86109         (__lstat, __closedir, __opendir, __readdir) [!_LIBC]: New macros.
86110         (GETCWD_RETURN_TYPE): Remove.  All uses replaced by char *.
86111         * lib/xgetcwd.c: David MacKenzie's old code was removed, so give
86112         credit only to Jim Meyering and adjust the copyright dates.
86113         Do not include <limits.h>, <stdio.h>, <sys/types.h>,
86114         <stdlib.h>, <unistd.h>, "pathmax.h".
86115         Instead, include "xgetcwd.h" (first) and "getcwd.h".
86116         (INITIAL_BUFFER_SIZE): Remove.
86117         (xgetcwd): Rely on getcwd, since we now depend on a reliable one.
86118
86119 2004-11-25  Paul Eggert  <eggert@cs.ucla.edu>
86120
86121         * m4/getcwd-path-max.m4 (gl_FUNC_GETCWD_PATH_MAX): Renamed from
86122         GL_FUNC_GETCWD_PATH_MAX for consistency.  All uses changed.
86123         Use the _ONCE methods, for efficiency.
86124         Check for fcntl.h.  In test program, include <errno.h>
86125         and <fcntl.h> if available.  Remove old K&R cruft from
86126         test program.  Check for common errors in GNU/Linux,
86127         OpenBSD, and Solaris.  Just set gl_cv_func_getcwd_path_max;
86128         don't do AC_LIBOBJ, as that's getcwd.m4's job.
86129         * m4/getcwd.m4 (gl_FUNC_GETCWD_NULL): Renamed from
86130         AC_FUNC_GETCWD_NULL.  All used changed.  Change cache variable
86131         name accordingly.
86132         (gl_FUNC_GETCWD, gl_PREREQ_GETCWD): New macros.  Revamp to
86133         accommodate new getcwd.c.
86134         * m4/jm-macros.m4 (gl_MACROS): Don't require GL_FUNC_GETCWD_PATH_MAX.
86135         * m4/prereq.m4 (gl_PREREQ): Add gl_FUNC_MEMPCPY.
86136         * m4/xgetcwd.m4 (gl_XGETCWD): Replace with gl_FUNC_GETCWD, since
86137         that's all we need now.
86138
86139 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86140
86141         * m4/argp.m4 (gl_ARGP): Require gl_GETOPT_SUBSTITUTE unconditionally:
86142         argp-parse.c depends on getopt internals, that means we should
86143         always use our getopt, to be on the safe side.
86144         * m4/getopt.m4 (gl_GETOPT): Check if GETOPT_H is already set, in
86145         order not to spoil the result of an eventual previous invocation
86146         of gl_GETOPT_SUBSTITUTE.
86147
86148 2004-11-23  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86149
86150         * lib/getopt_.h: Re-addition of __getopt_argv_const caused
86151         redefinition warnings. To avoid them, include the defines
86152         in `#if !defined __need_getopt ... #endif'. The only place
86153         where __getopt_argv_const is used is in definitions
86154         of getopt_long and getopt_long_only below, which are as well
86155         protected by `#ifndef __need_getopt'.
86156         [defined __GETOPT_PREFIX && !defined __need_getopt]: Undef
86157         __need_getopt after including <stdio.h> and <unistd.h> These
86158         headers might have defined it.
86159
86160 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86161
86162         * m4/utimens.m4 (gl_UTIMENS): Check for futimes function.
86163
86164 2004-11-23  Paul Eggert  <eggert@cs.ucla.edu>
86165
86166         * lib/utimens.c (__attribute__, ATTRIBUTE_UNUSED): New macros.
86167         (futimens): New function, which uses futimes if available.
86168         (futimens, utimens): Support timespec==NULL, with same semantics
86169         as utime and utimens.
86170         * lib/utimens.h (futimens): New decl.
86171
86172 2004-11-23  Jim Meyering  <jim@meyering.net>
86173
86174         * lib/getopt_.h: Remove trailing blanks.
86175
86176 2004-11-23  Jim Meyering  <jim@meyering.net>
86177
86178         * lib/__fpending.c: Add comment.
86179
86180 2004-11-22  Paul Eggert  <eggert@cs.ucla.edu>
86181
86182         * modules/canonicalize (Depends-on): Add xreadlink.
86183         Problem reported by James Youngman.
86184
86185 2004-11-20  Paul Eggert  <eggert@cs.ucla.edu>
86186
86187         * lib/getopt_.h (__GETOPT_CONCAT, __GETOPT_XCONCAT, __GETOPT_ID):
86188         New macros.
86189         (getopt, getopt_long, getopt_long_only, optarg, opterr, optind,
86190         optopt): Use them instead of invoking ## directly; otherwise, the
86191         symbols will be __GETOPT_PREFIXgetopt rather than rpl_getopt.
86192
86193 2004-11-19  Bruno Haible  <bruno@clisp.org>
86194
86195         * lib/strtok_r.c: Move comments from here...
86196         * lib/strtok_r.h: ... to here.
86197
86198 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86199
86200         * m4/calloc.m4 (_AC_FUNC_CALLOC_IF): Check for buggy calloc
86201         implementations that mishandle size_t overflow.
86202
86203 2004-11-17  Paul Eggert  <eggert@cs.ucla.edu>
86204
86205         * lib/realloc.c (rpl_realloc): Call 'free' if n==0, since realloc
86206         might fail.  Problem reported by Yoann Vandoorselaere.
86207         * lib/calloc.c (rpl_calloc): Defend against buggy calloc
86208         implementations that mishandle size_t overflow.
86209
86210 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86211
86212         * modules/canon-host (Depends-on): Add strdup.
86213
86214 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86215
86216         * m4/canon-host.m4 (gl_CANON_HOST): Check for getaddrinfo.
86217
86218 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86219
86220         * lib/canon-host.c: Include "strdup.h".
86221         (canon_host): Use getaddrinfo if available, so that IPv6 works.
86222         Use strdup instead of malloc/strcpy to duplicate strings.
86223
86224         * lib/human.h (LONGEST_HUMAN_READABLE): Add 1 for space before unit.
86225         (human_space_before_unit): New constant.
86226         * lib/human.c (human_readable): Support it.
86227
86228         * lib/xgetcwd.c: Include <limits.h>, for PATH_MAX.
86229         (xgetcwd): Set errno correctly when failing.
86230         Work around Solaris 9 bug: getcwd sets errno==ERANGE even though
86231         the failure is actually due to a PATH_MAX problem.
86232
86233         Further getopt changes to make it more likely that glibc will
86234         buy the changes back.
86235         * lib/getopt.c (POSIXLY_CORRECT): New constant.
86236         (getopt): Use it, so to preserve glibc semantic
86237         * lib/getopt1.c (getopt_long, getopt_long_only): Arg is char * const *
86238         when compiling for libc.
86239         * lib/getopt_.h (__getopt_argv_const): Bring it back.
86240         (getopt_long, getopt_long_only): Use it.
86241
86242         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86243         _getopt_internal): New arg POSIXLY_CORRECT.  All callers changed.
86244         (getopt): Argv is now char * const *, as per standard.
86245         (_getopt_internal_r, _getopt_internal): Argv is now char **,
86246         not char *__getopt_argv_const *.
86247         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86248         _getopt_long_only_r): Likewise.
86249         * lib/getopt_.h (getopt, getopt_long, geopt_long_only): Likewise.
86250         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86251         _getopt_long_r, _getopt_long_only_r): Likewise.
86252         * lib/getopt_.h (__getopt_argv_const): Remove.
86253         (getopt): Argv is now char * const *, as per standard.
86254
86255         * lib/getdate.y (tORDINAL): New token.
86256         (day, relunit): Allow it for relative times.
86257         (relative_time_table): Use tORDINAL for ordinals.
86258
86259 2004-11-16  Paul Eggert  <eggert@cs.ucla.edu>
86260
86261         * doc/getdate.texi (General date syntax): "next" is 1, not 2.
86262         Document that "second" isn't allowed as an ordinal number.
86263
86264 2004-11-16  Jim Meyering  <jim@meyering.net>
86265
86266         * modules/closeout (Depends-on): Add fpending.
86267
86268 2004-11-15  Jim Meyering  <jim@meyering.net>
86269
86270         * lib/closeout.c: Include "__fpending.h" once again.
86271         Include <stdbool.h>.
86272         (close_stdout): Don't fail just because stdout was closed initially,
86273         since some programs don't write to stdout in the normal course of
86274         operation (other than --version and --help), and we don't want this
86275         function to make e.g. `touch file >&-' fail.
86276         But do fail if it was closed and someone has tried to write to it.
86277         E.g., `printf foo >&-' must fail.
86278
86279 2004-11-13  Jim Meyering  <jim@meyering.net>
86280
86281         * m4/jm-macros.m4: Do require gl_FUNC_FPENDING.
86282
86283 2004-11-12  Simon Josefsson  <jas@extundo.com>
86284
86285         * config/srclist.txt: Add strtok_r.c, glibc bought our changes, but a
86286         small doc fix is still pending.
86287
86288 2004-11-11  Simon Josefsson  <jas@extundo.com>
86289
86290         * modules/strtok_r: New file.
86291
86292         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86293         strtok_r.
86294
86295 2004-11-11  Simon Josefsson  <jas@extundo.com>
86296
86297         * m4/strtok_r.m4: New file.
86298
86299         * m4/getopt.m4: Replace opterr.
86300
86301 2004-11-11  Simon Josefsson  <jas@extundo.com>
86302
86303         * lib/strtok_r.h, strtok_r.c: New file.
86304
86305 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86306
86307         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): Define __GETOPT_PREFIX instead
86308         of replacing opterr, getopt, etc.  This should handle the
86309         powerpc-apple-darwin5.5 problem recently noted by Simon Josefsson.
86310
86311 2004-11-11  Paul Eggert  <eggert@cs.ucla.edu>
86312
86313         * lib/getopt_.h (__getopt_argv_const): New macro, to be used so that
86314         we can stop lying to compilers about the constness of argv when we
86315         are compiled outside glibc.
86316         (getopt, getopt_long, getopt_long_only): Use it.
86317         * lib/getopt.c (_getopt_initialize, _getopt_internal_r,
86318         _getopt_internal, getopt): Likewise.
86319         * lib/getopt1.c (getopt_long, _getopt_long_r, getopt_long_only,
86320         _getopt_long_only_r): Likewise.
86321         * lib/getopt_int.h (_getopt_internal, _getopt_internal_r,
86322         _getopt_long_r, _getopt_long_only_r): Likewise.
86323
86324         * lib/getopt_.h [defined __GETOPT_PREFIX && !defined __need_getopt]:
86325         Include <stdlib.h> and <stdio.h>, and <unistd.h> if available.
86326         Then rename getopt to __GETOPT_PREFIX##getopt, and so forth for
86327         the other external symbols.
86328         (getopt) [!defined __GNU_LIBRARY]: Use prototype, not old-style
86329         declaration, since the above renaming now works around collisions.
86330
86331 2004-11-11  Jim Meyering  <jim@meyering.net>
86332
86333         * lib/linebreak.c: Remove trailing blanks.
86334         * lib/alloca_.h: Likewise.
86335         * lib/acosl.c: Likewise.
86336         * lib/euidaccess.c: Likewise.
86337         * lib/allocsa.h: Likewise.
86338
86339 2004-11-10  Simon Josefsson  <jas@extundo.com>
86340
86341         * m4/getaddrinfo.m4: New file.
86342
86343 2004-11-10  Simon Josefsson  <jas@extundo.com>
86344
86345         * lib/getaddrinfo.h, lib/getaddrinfo.c: New files.
86346
86347 2004-11-10  Simon Josefsson  <jas@extundo.com>
86348
86349         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
86350         getaddrinfo.
86351
86352         * modules/getaddrinfo: New file.
86353
86354 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86355
86356         * m4/prereq.m4 (gl_PREREQ): Require gt_FUNC_SETENV.
86357
86358 2004-11-10  Paul Eggert  <eggert@cs.ucla.edu>
86359
86360         * lib/mktime.c (SHR): New macro, which is a portable
86361         substitute for >> that should work even on Crays.
86362         (TIME_T_MIDPOINT, ydhms_diff, __mktime_internal): Use it.
86363         Problem reported by Mark D. Baushke in
86364         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00071.html>.
86365         * lib/getdate.y (SHR): Likewise.
86366         (tm_diff): Use it.
86367         * lib/strftime.c (SHR): Likewise.
86368         (tm_diff): Use it.
86369         * lib/quotearg.c (struct quoting_options): Use unsigned int for
86370         quote_these_too, so that right shifts are well defined.  All uses
86371         changed.
86372
86373 2004-11-10  Jim Meyering  <jim@meyering.net>
86374
86375         Ensure that no close failure goes unreported.
86376         * lib/closeout.c (close_stdout): Always close stdout.  I.e., don't
86377         return early when it seems there's nothing to flush.
86378         Don't include __fpending.h.
86379
86380 2004-11-10  Jim Meyering  <jim@meyering.net>
86381
86382         * modules/closeout (Depends-on): Remove fpending.
86383
86384 2004-11-10  Jim Meyering  <jim@meyering.net>
86385
86386         * m4/jm-macros.m4 (gl_MACROS): Don't require gl_FUNC_FPENDING.
86387
86388 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86389
86390         * m4/strftime.m4 (_gl_STRFTIME_PREREQS): Remove.  Move its body to
86391         gl_FUNC_STRFTIME.
86392         (gl_FUNC_STRFTIME): Use AC_CHECK_FUNCS_ONCE and AC_CHECK_HEADERS_ONCE
86393         and AC_REQUIRE when possible, to avoid duplicate checks.
86394         Check for <wchar.h>.
86395
86396 2004-11-09  Paul Eggert  <eggert@cs.ucla.edu>
86397
86398         * lib/strftime.c (DO_MULTIBYTE): Check for wchar.h, too.
86399
86400 2004-11-09  Bruno Haible  <bruno@clisp.org>
86401
86402         * m4/sockpfaf.m4: New file.
86403
86404 2004-11-05  Bruno Haible  <bruno@clisp.org>
86405
86406         * lib/readlink.c: Include stddef.h, needed for size_t on Woe32.
86407         Reported by Mark D. Baushke <mdb@cvshome.org>.
86408
86409 2004-11-04  Bruno Haible  <bruno@clisp.org>
86410
86411         2004-09-11  Bruno Haible  <bruno@clisp.org>
86412                 * allocsa.valgrind: New file.
86413         2004-02-06  Bruno Haible  <bruno@clisp.org>
86414                 * allocsa.h (sa_alignof): Define differently with HP-UX cc, to
86415                 avoid a bug of this cc on HP-UX 10.20 dealing with enums.
86416                 Reported by Christopher Seip <chris.seip@hp.com>.
86417
86418 2004-11-04  Bruno Haible  <bruno@clisp.org>
86419
86420         * modules/allocsa (Files): Add lib/allocsa.valgrind.
86421         (Makefile.am): Distribute it.
86422
86423 2004-11-03  Paul Eggert  <eggert@cs.ucla.edu>
86424
86425         * lib/xreadlink.c (xreadlink): AIX and HP-UX readlink return -1
86426         with errno == ERANGE if the buffer is too small.
86427         Problem reported by Mark D. Baushke.
86428
86429 2004-11-03  Albert Chin  <china@thewrittenword.com>
86430             Paul Eggert  <eggert@cs.ucla.edu>
86431
86432         * m4/uint32_t.m4 (gl_AC_TYPE_UINT32_T): When determining uint32_t
86433         equivalent, substitute $ac_type for equivalent type rather than
86434         blindly using uint32_t *always* which won't work if uint32_t is not
86435         available.  Define _UINT32_T to work around typedef of uint32_t if
86436         <sys/sched.h>, <pthread.h>, or <semaphore.h> used on Solaris
86437         2.5.1.
86438
86439 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86440
86441         * m4/jm-macros.m4: Sync from coreutils.
86442         (gl_MACROS): Check for mbrlen, for pathchk.
86443         (gl_CHECK_ALL_TYPES): Require AC_TYPE_MBSTATE_T, for pathchk.
86444
86445 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86446
86447         * lib/xreadlink.c (MAXSIZE): New macro.
86448         (xreadlink): Use it instead of SSIZE_MAX.  Ensure initial buffer
86449         size does not exceed MAXSIZE.  Avoid cast.
86450         As suggested by Mark D. Baushke in
86451         <http://lists.gnu.org/archive/html/bug-gnulib/2004-11/msg00009.html>,
86452         if readlink fails with buffer size just under MAXSIZE, try again
86453         with MAXSIZE.
86454
86455 2004-11-02  Paul Eggert  <eggert@cs.ucla.edu>
86456
86457         * config/srclist.txt: Add mktime.c; glibc bought all our changes.
86458
86459 2004-11-02  Derek R. Price  <derek@ximbiot.com>
86460         and  Paul Eggert  <eggert@cs.ucla.edu>
86461
86462         * lib/getdate.y [!TEST]: Include <stdio.h>, since we use sprintf now.
86463         (get_date): Overparenthesize to avoid GCC warning.
86464
86465 2004-11-02  Bruno Haible  <bruno@clisp.org>
86466
86467         * m4/setenv.m4 (gt_FUNC_SETENV): Define VOID_UNSETENV if unsetenv()
86468         returns void.
86469
86470 2004-11-02  Bruno Haible  <bruno@clisp.org>
86471
86472         * lib/setenv.h (unsetenv): Define as a macro if the system's unsetenv()
86473         function returns void.
86474
86475 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86476
86477         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for declarations of
86478         fflush_unlocked, flockfile, funlockfile, funlockfile,
86479         fputs_unlocked, putc_unlocked.
86480
86481 2004-11-01  Paul Eggert  <eggert@cs.ucla.edu>
86482
86483         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86484         (funlockfile, fputs_unlocked, putc_unlocked): Don't define if
86485         already declared.
86486
86487 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86488
86489         * modules/getdate (Files): Add doc/getdate.texi.
86490         (Depends-on): Add setenv, xalloc.
86491
86492 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86493
86494         * lib/getdate.y: Add support for TZ="foo" within a date string.
86495         Fix some bugs near time_t boundaries.  Reject dates with
86496         out-of-range components, e.g., "Sept 31".
86497         Include <stdlib.h>, "setenv.h", "xalloc.h".
86498         (ISDIGIT_LOCALE): Remove; unused.
86499         Note that the TZ and time functions used here are not reentrant.
86500         (mktime_ok, get_tz): New functions.
86501         (TZBUFSIZE): New constant.
86502         (get_date): Parse leading TZ="foo".  Reject out-of-range components;.
86503         This requires that we sometimes generate our own TZ="XXX..." setting.
86504
86505 2004-10-29  Paul Eggert  <eggert@cs.ucla.edu>
86506
86507         * doc/getdate.texi: New file, from coreutils with modifications for
86508         the new TZ parsing.
86509
86510 2004-10-27  Derek R. Price  <derek@ximbiot.com>
86511
86512         * lib/mktime.c (not_equal_tm): Remove redundant check.
86513
86514 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86515
86516         * modules/regex (lib_SOURCES): Add regex.c.
86517         Reported by James Youngman in
86518         <http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00199.html>.
86519
86520 2004-10-24  Paul Eggert  <eggert@cs.ucla.edu>
86521
86522         * lib/getdate.y: Use Bison 1.875 features, and some minor
86523         code cleanups.  This change does not affect semantics.
86524         Don't include <stdlib.h>; no longer needed.
86525         Don't include unlocked-io.h; only the "#if TEST" code uses
86526         stdio, and performance isn't crucial there.
86527         (PC, YYLEX_PARAM, YYPARSE_PARAM): Remove; replaced by
86528         Bison 1.875 features as described below.
86529         All uses of "PC." replaced by "pc->".
86530         (YYSTYPE): Add a forward declaration.
86531         (yylex, yyerror): Use full prototypes in forward decls.
86532         Use "%pure-parser" rather than obsolescent "%pure_parser".
86533         Use %parse-param and %lex-param instead of obsolescent
86534         YYPARSE_PARAM and YYLEX_PARAM.
86535         (meridian_table, month_and_day_table, time_units_table,
86536         relative_time_table, time_zone_table, military_table,
86537         lookup_zone, lookup_word, get_date):
86538         Use NULL instead of 0 where appropriate.
86539         (to_hour): Avoid abort (), to avoid a dependency on
86540         stdlib.h.
86541         (yyerror, yylex): Now accepts parser_control * arg.
86542         (main) [TEST]: Use '\0' rather than 0 for char.
86543
86544 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86545
86546         * m4/getpagesize.m4 (gl_GETPAGESIZE): Check for <sys/param.h>.
86547
86548 2004-10-22  Paul Eggert  <eggert@cs.ucla.edu>
86549
86550         * lib/getpagesize.c (getpagesize): Don't assume <sys/param.h> exists.
86551         It's now the caller's responsibility to handle the case where
86552         !HAVE_GETPAGESIZE && !defined getpagesize.
86553
86554         * lib/mktime.c (leapyear): Arg is long int, not int.
86555
86556 2004-10-18  Paul Eggert  <eggert@cs.ucla.edu>
86557
86558         * lib/argp-fs-xinl.c, argp-xinl.c: Update from glibc.
86559
86560 2004-10-17  Paul Eggert  <eggert@cs.ucla.edu>
86561
86562         * gnulib-tool (func_emit_lib_Makefile_am): Fix typo: a $ was
86563         missing.  Problem reported by James Youngman.
86564
86565 2004-10-16  Simon Josefsson  <jas@extundo.com>
86566
86567         * gnulib-tool: Fix comments.  Fix parse problem.
86568         (func_emit_lib_Makefile_am): Don't hard code a in libgl_a_SOURCES.
86569
86570 2004-10-15  Paul Eggert  <eggert@cs.ucla.edu>
86571
86572         * m4/getopt.m4 (gl_GETOPT): Detect and reject the incompatible BSD
86573         implementation of getopt_long.  Problem reported by Alexander Taler in:
86574         http://lists.gnu.org/archive/html/bug-gnulib/2004-10/msg00103.html
86575
86576 2004-10-15  Bruno Haible  <bruno@clisp.org>
86577
86578         * gnulib-tool: Untabify. Initialize supplied_libname.
86579         (func_usage): More homogenous output.
86580         (func_modules_transitive_closure, func_modules_to_filelist,
86581         func_emit_lib_Makefile_am): New functions.
86582         (func_import): New function, extracted from big case statement. Use
86583         func_get_license, func_modules_transitive_closure,
86584         func_modules_to_filelist, func_emit_lib_Makefile_am. Initialize
86585         opt_lgpl. Don't use test -a, as it's not portable.
86586         (func_create_testdir): Use func_modules_transitive_closure,
86587         func_modules_to_filelist, func_emit_lib_Makefile_am.
86588
86589 2004-10-15  Bruno Haible  <bruno@clisp.org>
86590
86591         * gnulib-tool (func_import): Let gl_INIT define LTALLOCA when needed.
86592
86593 2004-10-15  Bruno Haible  <bruno@clisp.org>
86594
86595         * gnulib-tool (func_emit_lib_Makefile_am): Add markers to separate
86596         the portions belonging to each module.
86597         Suggested by Derek Robert Price <derek@ximbiot.com>.
86598
86599 2004-10-12  Simon Josefsson  <jas@extundo.com>
86600
86601         * lib/getpass.c (fflush_unlocked, flockfile, funlockfile)
86602         (fputs_unlocked, putc_unlocked) [!_LIBCS && !USE_UNLOCKED_IO]: Map
86603         to real functions.
86604
86605 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86606
86607         * modules/vsnprintf: New file.
86608
86609 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86610
86611         * m4/vsnprintf.m4: New file.
86612
86613 2004-10-11  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86614
86615         * lib/vsnprintf.h: New file.
86616         * lib/vsnprintf.c: New file.
86617
86618 2004-10-11  Bruno Haible  <bruno@clisp.org>
86619
86620         * MODULES.html.sh (Support for systems lacking ISO C 99): Add
86621         vsnprintf.
86622
86623 2004-10-10  Paul Eggert  <eggert@cs.ucla.edu>
86624
86625         * config/srclistvars.sh: Add GNUSTANDARDS (for eggert only).
86626
86627 2004-10-07  Bruno Haible  <bruno@clisp.org>
86628
86629         * lib/snprintf.c (snprintf): Avoid a memory allocation if the result
86630         fits into the provided buffer.
86631
86632 2004-10-06  Paul Eggert  <eggert@cs.ucla.edu>
86633
86634         * lib/diacrit.c, diacrit.h: Add GPL notice.
86635
86636         * lib/atanl.c, logl.c: Add GPL notice, to match glibc's added LGPL
86637         notice.
86638         * lib/atanl.c (atanl): Keep the code as similar to glibc as possible.
86639         * lib/logl.c (logl): Keep the code as similar to glibc as possible.
86640         This avoids a potential constant-folding bug.
86641
86642 2004-10-05  Bruno Haible  <bruno@clisp.org>
86643
86644         * m4/strsep.m4 (gl_FUNC_STRSEP): Require AC_GNU_SOURCE. Don't check
86645         for the declaration of strsep.
86646
86647 2004-10-05  Bruno Haible  <bruno@clisp.org>
86648
86649         * lib/strsep.h: Don't declare strsep() if HAVE_STRSEP.
86650
86651 2004-10-04  Simon Josefsson  <jas@extundo.com>
86652
86653         * modules/memmem: New file.
86654         * tests/test-memmem.c: New file.
86655         * MODULES.html.sh (Extra functions based on ANSI C 89): Add memmem.
86656
86657 2004-10-04  Simon Josefsson  <jas@extundo.com>
86658
86659         * m4/memmem.m4: New file.
86660
86661 2004-10-04  Simon Josefsson  <jas@extundo.com>
86662
86663         * lib/memmem.h: New file.
86664         * lib/memmem.c: New file, taken from glibc.
86665
86666 2004-10-04  Simon Josefsson  <jas@extundo.com>
86667
86668         * lib/error.c, md5.c, regex.c: Use '#if USE_UNLOCKED_IO' instead of
86669         '#ifdef USE_UNLOCKED_IO'.
86670
86671 2004-10-04  Simon Josefsson  <jas@extundo.com>
86672
86673         * config/srclist.txt: Add memmem from glibc.
86674
86675 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86676
86677         * modules/xalloc (Files, Makefile.am): Remove xstrdup.c.
86678
86679         * modules/argmatch, modules/argp, modules/closeout, modules/error,
86680         modules/exclude, modules/getdate, modules/getline,
86681         modules/getndelim2, modules/getpass, modules/getpass-gnu,
86682         modules/getusershell, modules/linebuffer, modules/md5,
86683         modules/mountlist, modules/posixtm, modules/readtokens,
86684         modules/readutmp, modules/regex, modules/sha1,
86685         modules/version-etc, modules/yesno:
86686         Remove dependency on unlocked-io.
86687
86688 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86689
86690         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Remove.  All uses removed.
86691
86692         * m4/unlocked-io.m4: Add copyright notice.
86693         (gl_FUNC_GLIBC_UNLOCKED_IO): Define USE_UNLOCKED_IO.
86694
86695 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86696
86697         * lib/xalloc.h (xmemdup): Renamed from xclone.  All uses changed.
86698         * lib/xmalloc.c (xmemdup): Likewise.
86699         * lib/xalloc.h (CCLONE, CLONE, NEW, XCALLOC, XMALLOC, XREALLOC,
86700         XFREE): Remove these long-obsolescent macros.
86701         * lib/xmalloc.c (xstrdup): Implementation moved here from xstrdup.c
86702         * lib/xstrdup.c: Remove.
86703
86704         * lib/regex.c (re_comp): Cast gettext return value to char *,
86705         Problem reported by Martin Neitzel via Mark D. Baushke.
86706
86707 2004-10-04  Paul Eggert  <eggert@cs.ucla.edu>
86708
86709         * lib/argmatch.c, closeout.c, error.c, exclude.c, getdate.y,
86710         getndelim2.c, getpass.c, getusershell.c, linebuffer.c,
86711         md5.c, mountlist.c, posixtm.c, readtokens.c, readutmp.c,
86712         regex.c, sha1.c, version-etc.c, yesno.c:
86713         Include "unlocked-io.h" only if USE_UNLOCKED_IO.
86714         * lib/unlocked-io.h: Don't worry about USE_UNLOCKED_IO; that's now
86715         the includer's responsibility.
86716
86717         Sync from coreutils.
86718
86719         * lib/modechange.c (mode_compile): Don't decrement a pointer that
86720         points to the start of a string, as the C Standard says the
86721         resulting behavior is undefined.
86722
86723         * lib/backupfile.h (enum backuptype): Rename none -> no_backups,
86724         simple -> simple_backups, numbered_existing ->
86725         numbered_existing_backups, numbered -> numbered_backups
86726         to avoid shadowing problems.  All uses changed.
86727         * lib/argmatch.c (enum backuptype) [defined TEST]: Likewise.
86728         * lib/backupfile.c (check_extension, numbered_backup):
86729         Rename locals to avoid shadowing 'basename'.
86730         * lib/backupfile.h (VALID_BACKUP_TYPE): Don't evaluate arg more than
86731         once.
86732
86733         * lib/.cppi-disable: Add getopt_.h, getopt_int.h.
86734         * lib/.cvsignore: Add getopt.h.
86735
86736 2004-10-04  Bruno Haible  <bruno@clisp.org>
86737
86738         * modules/README: New file.
86739         * gnulib-tool (func_all_modules, func_verify_module): modules/README is
86740         not a module.
86741
86742 2004-10-02  Jim Meyering  <jim@meyering.net>
86743
86744         * lib/dirfd.h, getpagesize.h: Add copyright notice.
86745
86746 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86747
86748         * modules/strsep: New file.
86749
86750 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86751
86752         * m4/strsep.m4: New file.
86753
86754 2004-10-01  Yoann Vandoorselaere  <yoann@prelude-ids.org>
86755
86756         * lib/strsep.h: New file.
86757         * lib/strsep.c: New file.
86758
86759 2004-10-01  Simon Josefsson  <jas@extundo.com>
86760
86761         * lib/snprintf.c (snprintf): Handle size==0.
86762
86763 2004-10-01  Simon Josefsson  <jas@extundo.com>
86764             Bruno Haible  <bruno@clisp.org>
86765
86766         * lib/snprintf.c: Include <stdarg.h>, <stdlib.h>, <string.h>.
86767         (snprintf): Declare 'args'.
86768
86769 2004-10-01  Paul Eggert  <eggert@cs.ucla.edu>
86770
86771         * lib/snprintf.c: Remove comments as to why each header is needed.
86772
86773 2004-10-01  Bruno Haible  <bruno@clisp.org>
86774
86775         * MODULES.html.sh: Add strsep.
86776
86777 2004-09-30  Simon Josefsson  <jas@extundo.com>
86778
86779         * modules/snprintf: New file.
86780
86781 2004-09-30  Simon Josefsson  <jas@extundo.com>
86782
86783         * m4/snprintf.m4: New file.
86784
86785 2004-09-30  Simon Josefsson  <jas@extundo.com>
86786
86787         * lib/snprintf.h, lib/snprintf.c: New files.
86788
86789 2004-09-30  Sergey Poznyakoff  <gray@Mirddin.farlep.net>
86790
86791         * lib/argp-help.c (canon_doc_option): Fixed coredump if *name==NULL
86792         (hol_entry_help): Never translate an empty string.
86793         Do not translate option tag (opt->name) if OPTION_NO_TRANS is set
86794         * lib/argp.h (OPTION_NO_TRANS): New option.
86795
86796 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86797
86798         * modules/argp (Maintainer): Replace Simon Josefsson
86799         by Sergey Poznyakoff.
86800
86801 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86802
86803         * config/srclist.txt: Comment-out argp/argp.h, until we get the argp
86804         changes merged back into glibc.
86805
86806 2004-09-30  Paul Eggert  <eggert@cs.ucla.edu>
86807
86808         * MODULES.html.sh (Support for systems lacking ISO C 99): Add snprintf.
86809
86810 2004-09-29  Oskar Liljeblad  <oskar@osk.mine.nu>
86811
86812         * lib/xvasprintf.c: Include xalloc.h.
86813         (xvasprintf): Use xalloc_die, not xmalloc_die.
86814
86815 2004-09-29  Bruno Haible  <bruno@clisp.org>
86816
86817         * modules/alloca-opt: New file, derived from modules/alloca.
86818         * modules/allocsa: Depend on alloca-opt instead of alloca.
86819         * modules/setenv: Likewise.
86820         * modules/vasnprintf: Likewise.
86821         * MODULES.html.sh: Add alloca-opt.
86822
86823 2004-09-28  Simon Josefsson  <jas@extundo.com>
86824
86825         * gnulib-tool: New parameter --lgpl, to asseert that modules are
86826         LGPL, and to replace license template from GPL to LGPL.
86827
86828 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86829
86830         * modules/dummy: Change license to LGPL.
86831
86832 2004-09-28  Paul Eggert  <eggert@cs.ucla.edu>
86833
86834         * lib/dummy.c: Change copyright notice to FSF, and license to GPL.
86835
86836 2004-09-24  Simon Josefsson  <jas@extundo.com>
86837
86838         * modules/minmax (License): Change from GPL to LGPL.
86839
86840 2004-09-23  Simon Josefsson  <jas@extundo.com>
86841
86842         * gnulib-tool (--import): Typo.
86843
86844 2004-09-23  Simon Josefsson  <jas@extundo.com>
86845
86846         * gnulib-tool (--import): Make sure *.m4 end up in m4/ by default.
86847
86848 2004-09-22  Bruno Haible  <bruno@clisp.org>
86849
86850         * modules/*: Add 'License' field.
86851         * gnulib-tool: Accept --extract-license option.
86852         (func_get_license): New function.
86853
86854 2004-09-21  Bruno Haible  <bruno@clisp.org>
86855
86856         * modules/vasnprintf (Files): Add m4/stdint_h.m4, m4/inttypes_h.m4.
86857         Reported by Simon Josefsson.
86858
86859 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86860
86861         * modules/inttostr (Files): Add m4/longlong.m4, since it uses
86862         gl_AC_TYPE_LONG_LONG.
86863
86864 2004-09-20  Paul Eggert  <eggert@cs.ucla.edu>
86865
86866         * config/srclist.txt: Add getsubopt.c, since libc bought our changes.
86867
86868 2004-09-18  Simon Josefsson  <jas@extundo.com>
86869         and  Paul Eggert  <eggert@cs.ucla.edu>
86870
86871         * gnulib-tool: Replace various ad-hoc automake/autoconf/aclocal
86872         calls with autoreconf.  Define GL_LIB.
86873
86874 2004-09-14  Karl Berry  <karl@gnu.org>
86875
86876         * config/srclist.txt: unsync setenv.c, sigh.
86877
86878 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86879
86880         * lib/argp-pvh.c (argp_program_version_hook): Provide initial value.
86881         Problem reported by Bruno Haible in:
86882         http://lists.gnu.org/archive/html/bug-tar/2004-09/msg00023.html
86883
86884 2004-09-13  Paul Eggert  <eggert@cs.ucla.edu>
86885
86886         * config/srclist.txt: Comment out argp-pvh.c.
86887
86888 2004-09-11  Paul Eggert  <eggert@cs.ucla.edu>
86889
86890         * lib/mempcpy.h: Wrap the entire include file inside #ifndef mempcpy,
86891         in case some system header has #define'd it.  Problem reported by
86892         Soeren D. Schulze in
86893         <http://lists.gnu.org/archive/html/bug-gnulib/2004-09/msg00017.html>.
86894
86895 2004-09-09  Karl Berry  <karl@gnu.org>
86896
86897         * regex.[ch]: delete from the root.  These were supposed to be
86898                 synced with emacs cvs, but this has not happened for about
86899                 a year, and anyway nothing else uses emacs regex.[ch].
86900                 bug-gnulib mail from Jeff Bailey, 9 Sep 2004 15:49:24 -0700.
86901                 lib/regex[.ch] is untouched.
86902
86903 2004-09-09  Bruno Haible  <bruno@clisp.org>
86904
86905         * modules/vasnprintf (Files): Add m4/eoverflow.m4.
86906
86907 2004-09-09  Bruno Haible  <bruno@clisp.org>
86908
86909         * m4/eoverflow.m4: New file, taken from GNU libiconv eilseq.m4 with
86910         modifications.
86911         * m4/vasnprintf.m4 (gl_FUNC_VASNPRINTF): Require gl_EOVERFLOW.
86912
86913 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86914
86915         * modules/xvasprintf: New file.
86916         * MODULES.html.sh (Extra functions based on ANSI C 89): Add vasprintf.
86917
86918 2004-09-08  Oskar Liljeblad  <oskar@osk.mine.nu>
86919
86920         * lib/xvasprintf.h: New file.
86921         * lib/xvasprintf.c: New file.
86922         * lib/xasprintf.c: New file.
86923
86924 2004-09-08  Bruno Haible  <bruno@clisp.org>
86925
86926         * m4/stdint.m4: New file, taken from GNU clisp with modifications.
86927
86928 2004-09-08  Bruno Haible  <bruno@clisp.org>
86929
86930         * lib/vasnprintf.c (VASNPRINTF): Signal EOVERFLOW if the resulting
86931         length is > INT_MAX.
86932         * lib/vasprintf.c (vasprintf): Don't test for length > INT_MAX any
86933         more.
86934
86935 2004-09-08  Bruno Haible  <bruno@clisp.org>
86936
86937         * lib/stdint_.h: New file, taken from GNU clisp.
86938
86939 2004-09-08  Bruno Haible  <bruno@clisp.org>
86940             Oskar Liljeblad  <oskar@osk.mine.nu>
86941
86942         * modules/stdint: New file.
86943         * MODULES.html.sh (Support for systems lacking ISO C 99): Add stdint.
86944
86945 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86946
86947         Import from coreutils.
86948         * lib/userspec.c: Don't use <alloca.h>, so that we don't use alloca on
86949         strings on unbounded length.  alloca's performance benefits aren't
86950         that important here.
86951         (V_STRDUP): Remove.
86952         (parse_with_separator): New function, with most of the internals
86953         of the old parse_user_spec.  Allow user to omit both user and group,
86954         for compatibility with FreeBSD.
86955         Clone only the user name, not the entire spec.
86956         Do not set *uid, *gid unless entirely successful.
86957         Avoid memory leak in some failing cases.
86958         Fix regression for USER.GROUP reported by Dmitry V. Levin in
86959         <http://lists.gnu.org/archive/html/bug-coreutils/2004-08/msg00102.html>
86960         (parse_user_spec): Rewrite to use parse_with_separator.
86961
86962 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86963
86964         * modules/userspec: Don't depend on alloca.
86965
86966 2004-08-19  Paul Eggert  <eggert@cs.ucla.edu>
86967
86968         * m4/userspec.m4 (gl_USERSPEC): Don't require AC_FUNC_ALLOCA.
86969
86970 2004-08-17  Paul Eggert  <eggert@cs.ucla.edu>
86971
86972         * MODULES.html.sh: Add xalloc-die, c-strtod, c-strtold, raise,
86973         readtokens0, getcwd, fcntl-safer, canonicalize, cycle-check,
86974         utimecmp, utimens, xnanosleep.  Rename sha to sha1.
86975
86976 2004-08-16  Simon Josefsson  <jas@extundo.com>
86977
86978         * gnulib-tool: Use sed instead of autoconf --trace, inspired by
86979         libtoolize behaviour by "Gary V. Vaughan" <gary@gnu.org>.
86980         Add --dry-run for --import.
86981         Let user provided command line parameters override configure.ac
86982         settings.
86983
86984 2004-08-12  Simon Josefsson  <jas@extundo.com>
86985
86986         * m4/getopt.m4 (gl_GETOPT_SUBSTITUTE): New macro,
86987         as discussed with Paul Eggert in threads rooted at
86988         <http://lists.gnu.org/archive/html/bug-gnulib/2004-06/msg00039.html>
86989         and
86990         <http://lists.gnu.org/archive/html/bug-gnulib/2004-07/msg00001.html>.
86991         Before, the test was empty, and relied on ELIDE_CODE in source
86992         code.)
86993         (gl_PREREQ_GETOPT): New macro.
86994         (gl_GETOPT): Use them.
86995
86996 2004-08-12  Simon Josefsson  <jas@extundo.com>
86997
86998         * lib/getopt.c, getopt1.c: Remove ELIDE_CODE hack.
86999         * lib/getopt_.h: Renamed from getopt.h.
87000
87001 2004-08-12  Simon Josefsson  <jas@extundo.com>
87002
87003         * gnulib-tool: Add --source-base, --m4-base, --libtool options.
87004         Change default library name from libfoo to libgnu.
87005         Now, if you have a configure.ac that says:
87006                 gl_SOURCE_BASE(gl)
87007                 gl_M4_BASE(gl/m4)
87008                 gl_MODULES(error getopt etcetera)
87009                 gl_INIT
87010         you can import all you need by running:
87011                 ../gnulib/gnulib-tool --import
87012
87013         * modules/getopt (Files): Rename getopt.h to getopt_.h.
87014         (Makefile.am): Rewrite, use logic from argz.
87015         (Include): Use <getopt.h> instead of "getopt.h".
87016
87017 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87018
87019         * modules/argp (Files): Add m4/unlocked-io.m4.
87020         (Depends-on): Add extensions.
87021
87022 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87023
87024         * m4/argp.m4 (gl_ARGP): Do not check for argp.h or argp_parse; nobody
87025         uses HAVE_ARGP_H or HAVE_ARGP_PARSE.
87026         Require gl_FUNC_GLIBC_UNLOCKED_IO, gl_USE_SYSTEM_EXTENSIONS.
87027         Check for program_invocation_name, program_invocation_short_name,
87028         flockfile, funlockfile, features.h, _getopt_long_only_r.
87029
87030 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87031
87032         * lib/argp-help.c, argp-parse.c: Use "gettext.h" instead of
87033         its complicated substitute.
87034         * lib/argp-help.c: Include <errno.h>, for program_invocation_short_name
87035         and program_invocation_name.
87036         (__argp_basename) [!_LIBC]: Remove; the only use was
87037         replaced by its body.
87038         (__argp_short_program_name): Change condition from
87039         !defined __argp_short_program_name to
87040         ! (defined _LIBC || HAVE_DECL_PROGRAM_INVOCATION_SHORT_NAME),
87041         to match argp-namefrob.h.
87042         (__argp_failure): Don't assume strerror_r returns char *.
87043         * lib/argp-parse.c (N_): Define unconditionally.
87044         (argp_default_options): Fill out initializers with 0 to avoid
87045         gcc warnings.
87046
87047 2004-08-12  Paul Eggert  <eggert@cs.ucla.edu>
87048
87049         * config/srclist.txt: Remove getopt.c, getopt.h (renamed to getopt_.h),
87050         getopt1.c.
87051
87052 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87053
87054         Merge from coreutils.
87055
87056         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for wmemchr and wmemcpy.
87057
87058         * m4/obstack.m4 (gl_PREREQ_OBSTACK): Require
87059         gl_AC_HEADER_INTTYPES_H, gl_AC_HEADER_STDINT_H, gl_AC_TYPE_UINTMAX_T.
87060
87061 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87062
87063         Merge from coreutils.
87064
87065         * lib/fnmatch.c (WIDE_CHAR_SUPPORT): Don't set to 1 if missing
87066         wmemchr or wmemcpy.  Problem reported by Robert Dahlem
87067         for Reliant Unix 5.43.
87068
87069         * lib/obstack.c: Include <inttypes.h> and <stdint.h> if available.
87070         (union fooround): Use uintmax_t, not long int.
87071         The rest is a merge from libc:
87072         [defined _LIBC]: Include <shlib-compat.h>.
87073         (_obstack) [defined _LIBC]: Remove after 2.3.4.
87074
87075         * lib/settime.c (settime): Recode to avoid warning with
87076         Sun Forte C 6U2.
87077
87078         * lib/strverscmp.c: Convert to UTF-8.
87079
87080 2004-08-11  Paul Eggert  <eggert@cs.ucla.edu>
87081
87082         * modules/obstack (Files): Add m4/inttypes_h.m4, m4/stdint_h.m4,
87083         m4/uintmax_t.m4.
87084
87085 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87086
87087         * modules/xalloc-die: New file.
87088         * modules/xalloc: Remove dependencies on error, gettext, exitfail.
87089
87090         * modules/md5 (Files): Add m4/uint32_t.m4.
87091         * modules/sha1: Renamed from modules/sha.
87092         (Files):
87093         Rename lib/sha.h to lib/sha1.h.
87094         Rename lib/sha.c to lib/sha1.c.
87095         Rename m4/sha.m4 to m4/sha1.m4.
87096         (lib_SOURCES): Likewise.
87097         (configure.ac): Rename gl_SHA to gl_SHA1.
87098         (Include): sha.h -> sha1.h.
87099
87100 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87101
87102         * m4/uint32_t.m4, m4/uintptr_t.m4: New files.
87103         * m4/sha1.m4: Renamed from sha.m4.
87104         (gl_SHA1): Renamed from gl_SHA.  All uses changed.
87105
87106 2004-08-09  Paul Eggert  <eggert@cs.ucla.edu>
87107
87108         * lib/obstack.h (obstack_empty_p):
87109         Don't assume that chunk->contents is suitably aligned.
87110         * lib/obstack.c (_obstack_begin, _obstack_begin_1, _obstack_newchunk):
87111         Likewise. Problem reported by Benno in
87112         <http://sources.redhat.com/ml/libc-alpha/2004-08/msg00055.html>.
87113
87114         * lib/chown.c (rpl_chown): Work even if the file is writeable but not
87115         readable.  This could be improved further but it'd take some work.
87116
87117 2004-08-08  Simon Josefsson  <jas@extundo.com>
87118
87119         * modules/xgethostname (Depends-on): Remove exit and error (not
87120         used).
87121
87122         * modules/getpass-gnu: Add getpass.h.
87123         (Depends-on): Add stdbool.
87124         * modules/getpass: Add getpass.h.
87125
87126 2004-08-08  Simon Josefsson  <jas@extundo.com>
87127
87128         * m4/getpass.m4 (gl_FUNC_GETPASS, gl_FUNC_GETPASS_GNU):
87129         Check getpass declaration.
87130
87131 2004-08-08  Simon Josefsson  <jas@extundo.com>
87132
87133         * lib/xgethostname.c: Don't include error.h (not used).
87134
87135         * lib/getpass.h: Add.
87136         * lib/getpass.c: Include getpass.h first.
87137
87138 2004-08-08  Paul Eggert  <eggert@cs.ucla.edu>
87139
87140         * lib/xalloc-die.c: New file.
87141         * lib/xalloc.h (xalloc_fail_func, xalloc_msg_memory_exhausted): Remove.
87142         All uses removed.
87143         * lib/xmalloc.c (xalloc_fail_func, xalloc_msg_memory_exhausted):
87144         Likewise. Move inclusions of gettext.h, error.h, exitfail.h to
87145         xalloc-die.c.
87146         (_, N_, xalloc_die): Move to xalloc-die.c.
87147         * lib/userspec.c (parse_user_spaec): Use xstrdup rather than strdup,
87148         so that we needn't mess with xalloc_msg_memory_exhausted.
87149
87150         * lib/sha1.h: Renamed from sha.h.
87151         (SHA1_H): Renamed from _SHA_H.
87152         (sha1_ctx): Renamed from sha_ctx.
87153         (sha1_init_ctx): Renamed from sha_init_ctx.
87154         (sha1_process_block): Renamed from sha_process_block.
87155         (sha1_process_bytes): Renamed from sha_process_bytes.
87156         (sha1_finish_ctx): Renamed from sha_finish_ctx.
87157         (sha1_read_ctx): Renamed from sha_read_ctx.
87158         (sha1_stream): Renamed from sha_stream.
87159         (sha1_buffer): Renamed from sha_buffer.
87160         * lib/sha1.c: Likewise; renamed from sha.c.
87161         Do not include <sys/types.h>.
87162         Include <stddef.h> rather than <stdlib.h>.
87163
87164 2004-08-08  Bruno Haible  <bruno@clisp.org>
87165
87166         * lib/pathname.h (FILE_SYSTEM_PREFIX_LEN): Renamed from
87167         FILESYSTEM_PREFIX_LEN.
87168         * lib/progreloc.c: Likewise.
87169         * lib/concatpath.c (concatenated_pathname): Use FILE_SYSTEM_PREFIX_LEN.
87170
87171 2004-08-06  Simon Josefsson  <jas@extundo.com>
87172
87173         * modules/progname (Depends-on): Don't depend on stdbool.
87174
87175 2004-08-06  Simon Josefsson  <jas@extundo.com>
87176
87177         * modules/getsubopt: New file.
87178         * MODULES.html.sh (Support for systems lacking POSIX:2001): Add
87179         getsubopt.
87180
87181 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87182
87183         More merge from coreutils.
87184
87185         * m4/utimens.m4, m4/utimecmp.m4: New files.
87186         * m4/backupfile.m4, euidacces.m4, acl.m4, afs.m4, calloc.m4, dirfd.m4,
87187         fsusage.m4, jm-macros.m4, ls-mntd-fs.m4, md5.m4, mountlist.m4,
87188         prereq.m4, sha.m4: Import changes from coreutils.
87189
87190 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87191
87192         More merge from coreutils.
87193         * modules/raise, modules/readtokens0, modules/utimens:
87194         * modules/utimecmp, module/xnanosleep: New files.
87195         * modules/strftime: Add lib/strftime.h.
87196         Change include from <time.h> to "strftime.h".
87197         * modules/yesno: Add lib/yesno.h.
87198         * modules/backupfile: Remove lib/addext.c.
87199         * modules/euidaccess: Add stat-macros.h.
87200         * modules/canonicalize, modules/euidaccess,
87201         modules/filemode, modules/lchown, modules/makepath,
87202         modules/rmdir, modules/stat: Likewise.
87203
87204 2004-08-06  Paul Eggert  <eggert@cs.ucla.edu>
87205
87206         Merge from tar.
87207         * lib/argp-help.c (make_hol, hol_append): Don't assume that
87208         SIZE_MAX is a valid preprocessor constant.
87209         (__argp_basename): Change from "#ifndef _LIBC"
87210         to "#ifndef __argp_short_program_name", so that
87211         we don't compile these functions for tar.
87212
87213         More merges from coreutils.
87214         * lib/raise.c, lib/readtokens0.h, lib/readtokens0.c, lib/strftime.h:
87215         * lib/utimens.h, lib/utimens.c, lib/utimecmp.h, lib/utimecmp.c:
87216         * lib/xnanosleep.h, lib/xnanosleep.c, lib/yesno.h: New files.
87217         * lib/addext.c: Remove; no longer needed.
87218         * lib/yesno.c, lib/argmatch.h, lib/argmatch.c, lib/backupfile.h,
87219         lib/backupfile.c, lib/euidaccess.c, lib/filemode.c, lib/closeout.c,
87220         lib/dup2.c, lib/exclude.c, lib/fileblocks.c, lib/filemode.c,
87221         lib/fnmatch.c, lib/fnmtahc_loop.c, lib/fopen-safer.c, lib/fsusage.c,
87222         lib/fsusage.h, lib/ftruncate.c, lib/full-write.c, lib/getdate.y,
87223         lib/getloadavg.c, lib/getugroups.c, lib/hard-locale.c,
87224         lib/hard-locale.h, lib/hash.c, lib/human.c, lib/human.h, lib/lchown.c,
87225         lib/lchown.h, lib/makepath.c, lib/makepath.h, lib/md5.c, lib/md5.h,
87226         lib/memchr.c, lib/memcoll.c, lib/memrchr.c, lib/modechange.c,
87227         lib/modechange.h, lib/mountlist.c, lib/mountlist.h, lib/nanosleep.c,
87228         lib/posixtm.c, lib/putenv.c, quotearg.c, lib/quotearg.h,
87229         lib/readtokens.c, lib/readutmp.c, lib/readutmp.h, lib/rmdir.c,
87230         lib/safe-read.c, lib/save-cwd.c, lib/savedir.c, lib/setenv.c,
87231         lib/sig2str.c, lib/stat.c, lib/strtoimax.c, lib/strverscmp.c,
87232         lib/userspec.c, lib/utime.c, lib/version-etc.c., lib/xgethostname.c,
87233         lib/xmemcoll.c, lib/xreadlink.c, lib/xstrtod.c, lib/xstrtod.h,
87234         lib/xstrtoimax.c, lib/xstrtol.c, lib/xstrtol.h, lib/xstrtoumax.c:
87235         Import changes from coreutils.
87236
87237 2004-08-05  Simon Josefsson  <jas@extundo.com>
87238
87239         * m4/strdup.m4: Always run gl_PREREQ_STRDUP, since strdup.h need it.
87240
87241 2004-08-05  Simon Josefsson  <jas@extundo.com>
87242
87243         * m4/getsubopt.m4: New file.
87244
87245 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87246
87247         Merge from coreutils.
87248
87249         * m4/c-strtod.m4, m4/canonicalize.m4, m4/fcntl-safer.m4:
87250         * m4/getcwd-path-max.m4: New files.
87251
87252         * m4/dos.m4 (gl_AC_DOS): filesystem -> file system renaming.
87253         FILESYSTEM_PREFIX_LEN ->
87254         FILE_SYSTEM_PREFIX_LEN.
87255         FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX ->
87256         FILE_SYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX.
87257         FILESYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR ->
87258         FILE_SYSTEM_BACKSLASH_IS_FILE_NAME_SEPARATOR.
87259
87260         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't require gl_AC_DOS, the
87261         prerequisite modules now handle the DOS stuff.
87262         Don't check for unistd.h.
87263
87264 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87265
87266         Merge from coreutils.
87267
87268         * lib/.gdb-history: Remove; this doesn't belong here.
87269
87270         * lib/c-strtod.c, lib/c-strtod.h, lib/c-strtold.c, lib/cycle-check.c:
87271         * lib/cycle-check.h, lib/dev-ino.h, lib/canonicalize.h:
87272         * lib/canonicalize.c, lib/fcntl-safer.h, lib/fcntl-safer.c:
87273         * lib/getcwd.c: New files.
87274
87275         * lib/dirname.h: Include <stdbool.h>.
87276         (FILE_SYSTEM_PREFIX_LEN): Renamed from FILESYSTEM_PREFIX_LEN,
87277         for consistency with POSIX terminology.  All uses changed.
87278         (IS_ABSOLUTE_FILE_NAME, IS_RELATIVE_FILE_NAME): New macros.
87279         (strip_trailing_slashes): Use bool for booleans.
87280         * lib/stripslash.c (strip_trailing_slashes): Likewise.
87281
87282         * lib/error.c: Work around bug in OpenBSD 3.4 sterror_r: it
87283         sometimes returns a positive errno value even when it succeeds.
87284         (print_errno_message) [!LIBC]: Fall back on strerror if
87285         __strerror_r fails.
87286
87287         * lib/path-concat.c (mempcpy): Don't define if a system header defines
87288         it. Don't include stdio.h, stdlib.h, unistd.h, strdup.h.
87289         (longest_relative_suffix): New function.
87290         (path_concat): Use it.  Assume first argument is not NULL.
87291         Port to DOS.  Omit redundant separators.
87292         Report an error instead of returning NULL.
87293         Use mempcpy instead of memcpy.
87294         (xpath_concat): Remove: not declared or used.
87295
87296         * lib/same.h: Include <stdbool.h>
87297         (same_name): Return bool, not int.
87298         * lib/same.c (same_name): Likewise.
87299         (errno): Don't declare; we assume C89 or better now.
87300
87301         * lib/stat-macros (S_ISCTG, S_ISOFD, S_ISOFL): New macros,
87302         if not already defined.
87303
87304         * lib/xgetcwd.c (errno): Don't declare; we assume C89 or better now.
87305         * lib/dup-safer.c (errno): Likewise.
87306
87307 2004-08-05  Paul Eggert  <eggert@cs.ucla.edu>
87308
87309         Merge from coreutils.
87310         * modules/c-strtod, modules/c-strtold, modules/canonicalize:
87311         * modules/cycle-check, modules/fcntl-safer, modules/getcwd: New files.
87312         * modules/path-concat: Don't depend on strdup.
87313
87314 2004-08-03  Simon Josefsson  <jas@extundo.com>
87315
87316         * lib/strdup.h: Only use HAVE_DECL_STRDUP if defined.
87317         * lib/progname.h: Don't include stdbool.h.
87318
87319 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87320
87321         * modules/fatal: Remove, as the "fatal" module wasn't used or working.
87322         * MODULES.html.sh (func_all_modules): Remove fatal.
87323
87324 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87325
87326         * m4/fatal.m4: Remove, as the "fatal" module wasn't used or working.
87327
87328 2004-08-03  Paul Eggert  <eggert@cs.ucla.edu>
87329
87330         * lib/fatal.c, fatal.h: Remove as the "fatal" module wasn't used or
87331         working.
87332
87333 2004-08-02  Simon Josefsson  <jas@extundo.com>
87334
87335         * lib/getsubopt.h: New file, with comments from Bruno Haible.
87336         * lib/getsubopt.c: New file, from glibc, but slightly modified based on
87337         suggestions from Paul Eggert <eggert@cs.ucla.edu>.
87338
87339 2004-08-01  Simon Josefsson  <jas@extundo.com>
87340
87341         * lib/xgetdomainname.c: Include stdlib.h, for free().
87342
87343 2004-07-19  Bruno Haible  <bruno@clisp.org>
87344
87345         * MODULES.html.sh (func_all_modules): Add dummy.
87346
87347 2004-07-16  Simon Josefsson  <jas@extundo.com>
87348
87349         * modules/dummy: New file.
87350
87351 2004-07-16  Simon Josefsson  <jas@extundo.com>
87352
87353         * lib/dummy.c: New file.
87354
87355 2004-07-16  Bruno Haible  <bruno@clisp.org>
87356
87357         * lib/backupfile.h: Add extern "C" for C++.
87358         * lib/closeout.h: Likewise.
87359         * lib/copy-file.h: Likewise.
87360         * lib/findprog.h: Likewise.
87361         * lib/full-write.h: Likewise.
87362         * lib/pathname.h: Likewise.
87363         * lib/progname.h: Likewise.
87364         * lib/stpcpy.h: Likewise.
87365         * lib/stpncpy.h: Likewise.
87366         * lib/strcase.h: Likewise.
87367         * lib/strstr.h: Likewise.
87368         * lib/xalloc.h: Likewise.
87369
87370         * lib/mbswidth.h: Add extern "C" for C++.
87371         Reported by Albert Chin-A-Young <china@thewrittenword.com>.
87372
87373 2004-07-13  Robert Millan  <robertmh@gnu.org>
87374
87375         * m4/host-os.m4: s/KNetBSD/kNetBSD/g and s/KFreeBSD/kFreeBSD/g.
87376
87377 2004-07-09  Simon Josefsson  <jas@extundo.com>
87378
87379         * lib/getndelim2.c: Include stddef.h, for ptrdiff_t.  (FreeBSD 4.9
87380         failed without this.)
87381
87382 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87383
87384         * modules/chown (Files): Add lib/fchown-stub.c, since
87385         gl_PREREQ_CHOWN invokes AC_LIBOBJ(fchown-stub).
87386
87387 2004-07-09  Paul Eggert  <eggert@cs.ucla.edu>
87388
87389         * lib/fchown-stub.c: New file.
87390
87391 2004-06-24  Jim Meyering  <jim@meyering.net>
87392
87393         * lib/obstack.h (obstack_base): Cast to (void *), per documentation.
87394
87395 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87396
87397         * modules/argz: Omit "#include".
87398
87399         * MODULES.html.sh (func_all_modules): Add calloc, to match
87400         2004-06-01 addition of calloc module.
87401
87402 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87403
87404         * m4/argz.m4: New file, which is autoupdated from libtool.
87405
87406 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87407
87408         * lib/argz.c, lib/argz_.h: New files, which are autoupdated from
87409         libtool.
87410
87411 2004-06-22  Paul Eggert  <eggert@cs.ucla.edu>
87412
87413         * config/srclist-update: Don't insist on "USA." before the
87414         close-comment, as libtool omits the period and puts the */ on a
87415         separate line.
87416         * config/srclist.txt: Add argz.c, argz_.h, argz.m4.
87417         * config/srclistvars.sh: Add LIBTOOL (for eggert only).
87418
87419 2004-06-22  Gary V. Vaughan  <gary@gnu.org>
87420
87421         * modules/argz: New file.
87422         * MODULES.html.sh (func_all_modules): Add argz.
87423
87424 2004-06-12  Jim Meyering  <jim@meyering.net>
87425         and  Paul Eggert  <eggert@cs.ucla.edu>
87426
87427         * modules/hash (Files): Add lib/xalloc.h.
87428         * modules/pipe (Depends-on): Add wait-process.
87429         * modules/stat (Depends-on): Add xalloc.
87430         * modules/userspec (Files): Add lib/userspec.h.
87431         * modules/xstrto
87432
87433         Upgrade from gettext-0.13.
87434         * modules/gettext (Files): Add m4/intmax.m4, m4/longdouble.m4,
87435         m4/longlong.m4, m4/printf-posix.m4, m4/signed.m4, m4/size_max.m4,
87436         m4/wchar_t.m4, m4/wint_t.m4, m4/xsize.m4.
87437
87438 2004-06-10  Jim Meyering  <jim@meyering.net>
87439
87440         * lib/calloc.c: New file.
87441
87442 2004-06-06  Paul Eggert  <eggert@cs.ucla.edu>
87443
87444         * lib/getdate.y (yylex): Allow space between sign and number.
87445         Problem reported by Dan Jacobson.
87446
87447 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87448
87449         Merge from coreutils CVS.
87450
87451         * m4/backupfile.m4, dirname.m4, human.m4, inttypes.m4, longlong.m4,
87452         makepath.m4, memchr.m4, memcmp.m4, mountlist.m4, path-concat.m4,
87453         putenv.m4, quotearg.m4, readutmp.m4, strtoimax.m4, strtoll.m4,
87454         strtoull.m4, strtoumax.m4, ulonglong.m4, vasnprintf.m4,
87455         xstrtol.m4: Fix copyright date and/or serial number.
87456
87457         * m4/chown.m4 (gl_PREREQ_CHOWN): Check for fcntl.h.
87458         See if we need an fchown replacement.
87459         (gl_FUNC_CHOWN_FOLLOWS_SYMLINK): New macro.
87460         (gl_FUNC_CHOWN): Require gl_FUNC_CHOWN_FOLLOWS_SYMLINK,
87461         and use the replacement function if we detect either defect.
87462
87463         * m4/prereq.m4 (gl_PREREQ): Add gl_ALLOCSA, gl_CLOEXEC, gl_INTTOSTR,
87464         gl_UTIMECMP.
87465
87466 2004-06-01  Paul Eggert  <eggert@cs.ucla.edu>
87467         and  Jim Meyering  <jim@meyering.net>
87468
87469         Merge from coreutils CVS.
87470
87471         * lib/stat-macros.h: New file, with contents from file-type.h
87472         and coreutils' system.h.
87473         * lib/file-type.c: Include "stat-macros.h".
87474         * lib/file-type.h (file_type): Move all macro definitions to new file,
87475         stat-macros.h.
87476
87477         * lib/chown.c (rpl_chown) [CHOWN_FAILS_TO_HONOR_ID_OF_NEGATIVE_ONE]:
87478         Wrap old code with this conditional.
87479         [CHOWN_MODIFIES_SYMLINK]: Try to work around a chown
87480         function that does not dereference symlinks.
87481         * lib/lchown.c (lchown) [CHOWN_MODIFIES_SYMLINK]: Just call chown.
87482
87483         * lib/xreadlink.c: Include xreadlink.h first, to catch .h file
87484         dependency problems.
87485         (xreadlink): Accept new arg SIZE, for efficiency.
87486         All decls and uses changed.
87487         * lib/xreadlink.h: Include <stddef.h>, for size_t.
87488
87489         * lib/.cppi-disable: Add alloca_.h, allocsa.h, exit.h, getndelim2.h,
87490         gettext.h, localcharset.h, strdup.h, strndup.h, strtoul.c, time_r.h.
87491
87492         * lib/.cvsignore: Add alloca.h, fnmatch.h, poll.h, stdbool.h,
87493         sysexits.h.
87494
87495 2004-06-01  Jim Meyering  <jim@meyering.net>
87496
87497         * m4/calloc.m4: New file.
87498
87499 2004-05-31  Paul Eggert  <eggert@cs.ucla.edu>
87500
87501         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Detect _Bool bug in HP aC++/ANSI
87502         C B3910B A.05.55 [Dec 04 2003].  Problem reported by Jim Meyering.
87503         Also, fix a typo in a diagnostic.
87504
87505 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87506
87507         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Do not require AC_FUNC_MALLOC
87508         or AC_FUNC_REALLOC.
87509
87510 2004-05-30  Paul Eggert  <eggert@cs.ucla.edu>
87511
87512         * lib/xmalloc.c (HAVE_MALLOC, HAVE_REALLOC): Do not require these
87513         macros to be defined.
87514         (xnmalloc_inline, xnrealloc_inline, xcalloc): Do not die if
87515         the allocator returns NULL because the requested size is zero.
87516
87517 2004-05-20  Paul Eggert  <eggert@cs.ucla.edu>
87518
87519         * lib/malloc/obstack.c (_obstack) [defined _LIBC]: Bring back this
87520         var.  Add comment explaining why libc still defines it.  This
87521         merges the following patch from glibc:
87522         http://sources.redhat.com/ml/libc-alpha/2004-05/msg00157.html
87523
87524 2004-05-20  Andreas Schwab  <schwab@suse.de>
87525
87526         * m4/free.m4: Replace free if it not known to work, not the other
87527         way round.
87528
87529 2004-05-19  Paul Eggert  <eggert@cs.ucla.edu>
87530
87531         * lib/obstack.c (_obstack): Remove unused variable.  It hasn't been
87532         present in glibc since revision 1.1 of this file.
87533         * lib/obstack.h (_obstack_free, obstack_1grow, obstack_1grow_fast,
87534         obstack_alignment_mask, obstack_alloc, obstack_base,
87535         obstack_blank, obstack_blank_fast, obstack_chunk_size,
87536         obstack_copy, obstack_copy0, obstack_finish, obstack_grow,
87537         obstack_grow0, obstack_init, obstack_int_grow,
87538         obstack_int_grow_fast, obstack_make_room, obstack_memory_used,
87539         obstack_next_free, obstack_object_size, obstack_ptr_grow,
87540         obstack_ptr_grow_fast, obstack_room): Remove declarations of
87541         nonexistent functions.
87542
87543 2004-05-18  Karl Berry  <karl@gnu.org>
87544
87545         * config/srclist.txt: break link for vasnprintf.c.
87546
87547 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87548
87549         Port obstack to the AS/400, where pointers are 16 bytes wide and
87550         you cannot cast an integer to a valid pointer.  This patch is
87551         currently waiting to be integrated into glibc; see
87552         <http://sources.redhat.com/ml/libc-alpha/2004-05/msg00073.html>.
87553
87554         * lib/obstack.h (__PTR_TO_INT, __INT_TO_PTR): Remove.
87555         All uses of __INT_TO_PTR (PTR_TO_INT ...) replaced by __PTR_ALIGN.
87556         (__BPTR_ALIGN, __PTR_ALIGN): New macros.
87557         (struct obstack): temp member is now a union of a pointer and
87558         an integer, instead of an integer.  All integer uses changed.
87559         This does not affect the physical layout of struct obstack,
87560         except on hosts (like the AS/400) where the size or alignment of
87561         void * is greater than that of ptrdiff_t.
87562         (obstack_finish) [! (defined __GNUC__ && defined __STDC__ &&
87563         __STDC__)]: Store temporary in pointer member of union, not
87564         integer member.
87565         * lib/obstack.c: Include <stddef.h>, for offsetof.
87566         (struct fooalign): Remove; it doesn't need a name.
87567         (union fooround): Change double to long double, and add void *.
87568         (DEFAULT_ALIGNMENT): Use offsetof to compute.
87569         (DEFAULT_ALIGNMENT, DEFAULT_ROUNDING): Now an enum constant,
87570         not a macro.  Hence the values are always int; so remove all
87571         casts-to-int in uses.
87572
87573 2004-05-17  Paul Eggert  <eggert@cs.ucla.edu>
87574
87575         * config/srclist.txt: Break link for argp-help.c and argp-parse.c until
87576         we can get this patch merged into glibc.
87577
87578 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87579             Paul Eggert  <eggert@cs.ucla.edu>
87580
87581         * m4/argp: Depend on alloca.
87582
87583 2004-05-17  Derek R. Price  <derek@ximbiot.com>
87584             Paul Eggert  <eggert@cs.ucla.edu>
87585
87586         * lib/argp-help.c, argp-parse.c: Assume <alloca.h> rather than
87587         freecoding.
87588
87589 2004-05-17  Bruno Haible  <bruno@clisp.org>
87590
87591         * lib/vasnprintf.c (VASNPRINTF): Correctly handle the case of a
87592         precision that consists of a '.' followed by an empty digit string.
87593         Patch by Tor Lillqvist <tml@iki.fi>.
87594
87595 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87596
87597         * m4/alloca.m4 (gl_FUNC_ALLOCA): Define HAVE_ALLOCA_H always,
87598         for backward compatibility with older code.  We need our own
87599         alloca.h if _AIX is defined.  Define HAVE_ALLOCA if we discover
87600         it under some other name, and our alloca.h will define it.
87601
87602 2004-05-16  Paul Eggert  <eggert@cs.ucla.edu>
87603             Derek Price  <derek@ximbiot.com>
87604
87605         * lib/alloca.c: Include <alloca.h>, to get our interface.
87606         * lib/alloca_.h: Use __alloca on AIX, so that we don't have to
87607         include <alloca.h> first.  Use C89 prototype for alloca; this
87608         requires including <stddef.h> for size_t.  Use extern "C" if C++.
87609         Use #elif for simplicity, since we can assume C89 now.
87610         Don't try to source the system alloca.h since it will not be found
87611         and to prevent recursively including its replacement.
87612         * lib/fnmatch.c: Include <alloca.h> instead of opencoding.
87613         * lib/regex.c: Likewise.
87614
87615 2004-05-16  Derek Price  <derek@ximbiot.com>
87616             Paul Eggert  <eggert@cs.ucla.edu>
87617
87618         getline cleanup.  This changes the getndelim2 API: both order of
87619         arguments, and meaning of delim2 (now uses EOF, not 0, to indicate
87620         no delimiter).
87621
87622         * lib/getline.c: Don't include stddef.h or stdio.h, since our
87623         interface does that.
87624         (getline): Always use getdelim, so that we don't have two
87625         copies of this code.
87626         * lib/getndelim2.c: Include <limits.h>, <inttypes.h>, <stdint.h>
87627         if available.
87628         (PTRDIFF_MAX, SIZE_MAX, SSIZE_MAX): Define if not defined.
87629         (GETNDELIM2_MAXIMUM): New macro.
87630         (getndelim2): Reorder arguments.  delim==EOF now means no delimiter,
87631         instead of the old practice of delim2==0.  All callers changed.
87632         Return -1 on overflow, instead of returning junk.
87633         Do not set *linesize unless allocation succeeds.
87634         * lib/getndelim2.h: Do not include stddef.h; no longer needed, now
87635         that we include sys/types.h.
87636         * lib/getnline.h: Likewise.
87637         * lib/getndelim2.h (GETNLINE_NO_LIMIT): New macro.
87638         (getndelim2): Reorder arguments.
87639         * lib/getnline.c (getnline, getndelim):
87640         Don't discard the NMAX argument.
87641         (getnline): Invoke getndelim, to avoid code duplication.
87642         * lib/getnline.h (GETNLINE_NO_LIMIT): New macro, used instead
87643         of (size_t) -1 by callers of the getnline family.
87644
87645 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87646
87647         * m4/gettime.m4 (gl_GETTIME): Require gl_TIMESPEC.
87648         Check for gettimeofday.
87649         * m4/settime.m4 (gl_SETTIME): Require gl_TIMESPEC.
87650         Check for settimeofday, stime.
87651
87652 2004-05-13  Paul Eggert  <eggert@cs.ucla.edu>
87653
87654         * lib/nanosleep.c (suspended): Change its type from int to
87655         sig_atomic_t volatile.
87656         (first_call): Make it private to rpl_nanosleep, and have it
87657         be zero initially as that's a bit faster.
87658         (my_usleep): Round up fractional times instead of truncating them,
87659         as this is the usual meaning for 'sleep'.
87660
87661         * lib/gettime.c (gettime): Fall back on `time' if `gettimeofday'
87662         doesn't work.
87663         * lib/settime.c: Include <unistd.h>, for stime (on Solaris 8, anyway).
87664         (ENOSYS): Define if not defined.
87665         (settime): Fall back on stime if it exists and settimeofday fails.
87666         But don't bother with fallbacks if a method fails with errno == EPERM.
87667
87668 2004-05-11  Jim Meyering  <jim@meyering.net>
87669
87670         Prior to this change, the save_cwd caller required read access to the
87671         current directory on most systems (ones with the fchdir function).
87672
87673         * lib/save-cwd.c (save_cwd) [HAVE_FCHDIR]: If opening `.' read-only
87674         fails, try write-only, and finally, resort to using xgetcwd.
87675
87676 2004-05-06  Paul Eggert  <eggert@cs.ucla.edu>
87677
87678         * lib/obstack.c, obstack.h: Import changes from libc.
87679
87680 2004-04-28  Bruno Haible  <bruno@clisp.org>
87681
87682         * lib/findprog.c (find_in_path): Treat Cygwin like Windows, since it
87683         also implicitly appends .exe to executables.
87684         * lib/localcharset.c (ISSLASH): Treat Cygwin like Windows, since it now
87685         accepts Windows pathnames.
87686         * lib/pathname.h (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87687         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87688         * lib/progreloc.c (ISSLASH, IS_PATH_WITH_DIR, FILESYSTEM_PREFIX_LEN):
87689         Treat Cygwin like Windows, since it now accepts Windows pathnames.
87690         Reported by Derek Robert Price <derek@ximbiot.com>.
87691
87692 2004-04-21  Karl Berry  <karl@gnu.org>
87693
87694         * config/srclist.txt (localcharset.c): break sync.
87695
87696 2004-04-20  Paul Eggert  <eggert@twinsun.com>
87697
87698         * m4/host-os.m4: Add a copyright notice.
87699
87700 2004-04-20  Jim Meyering  <jim@meyering.net>
87701
87702         Change UTILS_ to gl_ in AC_DEFINE'd names.
87703         Change utils_- and jm_-prefixed variables, too.
87704         * m4/mkdir-slash.m4 (gl_FUNC_MKDIR_TRAILING_SLASH): Renamed from
87705         UTILS_FUNC_MKDIR_TRAILING_SLASH.
87706         * m4/mkstemp.m4 (gl_FUNC_MKSTEMP): Renamed from UTILS_FUNC_MKSTEP.
87707
87708         * m4/dirfd.m4 (gl_FUNC_DIRFD): Rename from UTILS_FUNC_DIRFD.
87709         Don't emit trailing blanks.
87710         Also rename jm_-prefixed variables to have gl_ prefix.
87711
87712         * m4/host-os.m4 (gl_HOST_OS): Rename from UTILS_HOST_OS.
87713         Also rename jm_-prefixed variables to have gl_ prefix.
87714
87715         * m4/jm-macros.m4: Reflect the renamings.
87716         * m4/prereq.m4: Likewise.
87717
87718 2004-04-20  Jim Meyering  <jim@meyering.net>
87719
87720         * lib/getndelim2.c (getndelim2): Upon realloc failure, don't leak
87721         memory.
87722
87723 2004-04-20  Jim Meyering  <jim@meyering.net>
87724             Bruno Haible  <bruno@clisp.org>
87725
87726         * lib/localcharset.c (get_charset_aliases) [!VMS && !WIN32]: Don't leak
87727         memory when realloc fails.
87728
87729 2004-04-19  Jim Meyering  <jim@meyering.net>
87730
87731         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Require gl_FUNC_FREE,
87732         now that readutmp.c may call `free (0)'.
87733
87734 2004-04-19  Bruno Haible  <bruno@clisp.org>
87735
87736         * m4/mbrtowc.m4: Change jm_ to gl_ in cache variables as well.
87737         * m4/inttypes_h.m4: Likewise.
87738         * m4/stdint_h.m4: Likewise.
87739         * m4/intmax_t.m4: Likewise.
87740         * m4/uintmax_t.m4: Likewise.
87741
87742 2004-04-18  Jim Meyering  <jim@meyering.net>
87743
87744         * m4/prereq.m4: Don't forbid jm_ prefix.
87745
87746         * m4/afs.m4, m4/allocsa.m4, m4/assert.m4, m4/backupfile.m4:
87747         * m4/bison.m4, m4/check-decl.m4, m4/chown.m4, m4/d-ino.m4:
87748         * m4/d-type.m4, m4/dirname.m4, m4/dos.m4, m4/error.m4, m4/fpending.m4:
87749         * m4/fstypename.m4, m4/fsusage.m4, m4/ftruncate.m4, m4/getdate.m4:
87750         * m4/getgroups.m4, m4/gettext.m4, m4/glibc21.m4, m4/group-member.m4:
87751         * m4/human.m4, m4/intmax.m4, m4/intmax_t.m4, m4/inttostr.m4:
87752         * m4/inttypes.m4, m4/inttypes_h.m4, m4/jm-macros.m4, m4/jm-winsz1.m4:
87753         * m4/jm-winsz2.m4, m4/lchown.m4, m4/lib-check.m4, m4/link-follow.m4:
87754         * m4/localcharset.m4, m4/longlong.m4, m4/ls-mntd-fs.m4, m4/lstat.m4:
87755         * m4/makepath.m4, m4/mbrtowc.m4, m4/mbswidth.m4, m4/memchr.m4:
87756         * m4/memcmp.m4, m4/mkdtemp.m4, m4/mkstemp.m4, m4/mountlist.m4:
87757         * m4/nanosleep.m4, m4/path-concat.m4, m4/perl.m4, m4/prereq.m4:
87758         * m4/putenv.m4, m4/quotearg.m4, m4/regex.m4, m4/stat.m4:
87759         * m4/stdint_h.m4, m4/strftime.m4, m4/strtoimax.m4, m4/strtoll.m4:
87760         * m4/strtoull.m4, m4/strtoumax.m4, m4/timespec.m4, m4/uintmax_t.m4:
87761         * m4/ulonglong.m4, m4/unlink-busy.m4, m4/unlocked-io.m4, m4/uptime.m4,
87762         * m4/utimbuf.m4, m4/utime.m4, m4/utimes-null.m4, m4/vasnprintf.m4:
87763         * m4/xstrtoimax.m4, m4/xstrtol.m4, m4/xstrtoumax.m4:
87764         Change jm_ to gl_ in AC_DEFINE'd names. Update all uses.
87765
87766 2004-04-18  Jim Meyering  <jim@meyering.net>
87767
87768         * lib/readutmp.c (read_utmp) [UTMP_NAME_FUNCTION]: Upon realloc
87769         failure, don't leak memory and do call END_UTMP_ENT.
87770
87771 2004-04-16  Jim Meyering  <jim@meyering.net>
87772
87773         * m4/prereq.m4 (jm_PREREQ_STAT): Remove macro.  It is specific to
87774         coreutils' stat program.
87775         (gl_PREREQ): Don't require jm_PREREQ_STAT.
87776
87777 2004-04-11  Paul Eggert  <eggert@twinsun.com>
87778
87779         * lib/inttostr.h: Include <limits.h> unconditionally, since we assume
87780         C89.
87781         (CHAR_BIT): Remove, since we assume C89.
87782         Include <stdint.h> if available, as per current Autoconf CVS advice.
87783
87784 2004-03-31  Jim Meyering  <jim@meyering.net>
87785
87786         * m4/prereq.m4: Require AC_FUNC_MALLOC, not jm_FUNC_MALLOC.
87787         Require AC_FUNC_REALLOC, not jm_FUNC_REALLOC.
87788         * m4/xalloc.m4: Likewise.
87789
87790 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87791
87792         Merge from coreutils.
87793
87794         * m4/inttostr.m4: New file.
87795         * m4/getdate.m4 (gl_GETDATE): Remove time-related stuff.
87796         Require AM_STDBOOL_H and gl_TIMESPEC instead.
87797         Require gl_CLOCK_TIME.
87798         * m4/clock_time.m4 (gl_CLOCK_TIME): Require AC_GNU_SOURCE.
87799
87800 2004-03-30  Paul Eggert  <eggert@twinsun.com>
87801
87802         * lib/cloexec.h, cloexec.c (set_cloexec_flag): Return int
87803         not bool, to be more consistent with Unix conventions.
87804         Suggested by Bruno Haible.
87805
87806         Merge from coreutils.
87807
87808         * lib/imaxtostr.c, lib/inttostr.c, lib/inttostr.h, lib/offtostr.c:
87809         * lib/umaxtostr.c: New files.
87810
87811         * lib/getdate.h: Include stdbool.h, and timespec.h instead of
87812         the usual <time.h> dance.
87813         (get_date): Change signature to support fractional time stamps.
87814         All callers changed.
87815         * lib/getdate.y: Include "getdate.h" first, as we can now
87816         assume C89 and don't need to worry about 'const'.
87817         Similarly, include "unlocked-io.h" near start, not in middle.
87818         Include <limits.h>.
87819         (textint.value): Use long int rather than int.
87820         (textint.digits): Use size_t rather than int.
87821         (BILLION, LOG10_BILLION): New constants.
87822         (parser_control): New member rel_ns.  Members day_ordinal,
87823         time_zone, month, day, hour, minutes, rel_year, rel_month,
87824         rel_day, rel_hour, rel_minutes, rel_seconds
87825         are now long int, not int.  Member seconds is now struct timespec,
87826         not int.  New member timespec_seen.  Members dates_seen, days_seen,
87827         local_zones_seen, rels_seen, times_seen, zones_seen are now size_t,
87828         not int.
87829         (%union.intval): Now long int, not int.
87830         New member timespec.
87831         (tSDECIMAL_NUMBER, tUDECIMAL_NUMBER): New tokens.
87832         (seconds, signed_seconds, unsigned_seconds): New nonterminals.
87833         (spec): Now is a timespec or an item list.
87834         (timespec, items): New nonterminals.
87835         (time, rel, relunit, number, get_date):
87836         Add support for fractional seconds.
87837         (time): Fix bug: seconds weren't cleared in "00:00 +0000" syntax.
87838         (gmtime, localtime, mktime): Remove decls; not needed with C89.
87839         (to_hour): First arg is now long int, not int.
87840         (to_year): Returns long int, not int.
87841         Don't treat year -70 like 70.
87842         (tm_diff): Returns long int, not int.
87843         (lookup_word): Use bool instead of int when appropriate.
87844         (yylex): Use size_t for count, not int.
87845         Detect overflow when parsing large integer constants.
87846         Add support for fractions.
87847         (get_date): Make pointers 'const' if possible.
87848         Use more-portable code to detect integer overflow.
87849         (main) [TEST]: Adjust to above changes.  Test for localtime failure.
87850         Don't use ctime; it's not reliable if the year has >4 digits.
87851
87852         * lib/human.c (humblock): Inspect BLOCKSIZE if BLOCK_SIZE isn't set.
87853         This is for compatibility with BSD.
87854
87855         * lib/timespec.h (ST_TIME_CMP_NS, ST_TIME_CMP): Define.
87856         (ATIME_CMP, CTIME_CMP, MTIME_CMP, TIMESPEC_NS): Likewise.
87857         From coreutils' system.h.
87858
87859         * lib/userspec.c: Don't include "posixver.h".
87860         (parse_user_spec): Fall back on USER.GROUP parsing, regardless
87861         of POSIX version, as POSIX 1003.1-2001 allows that behavior as a
87862         compatible extension.  Simplify code by removing a boolean int
87863         that was always nonzero if a string was nonnull.
87864
87865 2004-03-30  Jim Meyering  <jim@meyering.net>
87866
87867         Merge from coreutils.
87868
87869         Avoid a configure-time warning about sys/ucred.h on OSF V4.0.
87870         * m4/ls-mntd-fs.m4: Test for sys/ucred.h separately, since
87871         on some systems one must include <grp.h> before it.
87872         Reported by Christian Krackowizer.
87873
87874 2004-03-30  Jim Meyering  <jim@meyering.net>
87875
87876         Merge from coreutils.
87877
87878         * lib/mountlist.c [HAVE_SYS_UCRED_H]: Include grp.h before sys/ucred.h.
87879
87880         * lib/readtokens.c (readtoken): Don't leak 64 bytes when reading
87881         an empty input stream.
87882
87883         * lib/readtokens.c: Include <stdbool.h>.
87884         (readtoken): Use `size_t' rather than int/long.
87885         All callers adjusted.
87886         Use `bool' rather than `int' where appropriate.
87887         Use memset rather than an explicit loop.
87888         Use x2nrealloc rather than xrealloc.
87889         Allow the use of `\0' as a delimiter.
87890         (readtokens): Likewise.
87891         * lib/readtokens.h (readtoken, readtokens): Update prototypes.
87892
87893 2004-03-30  Jim Meyering  <jim@meyering.net>
87894
87895         * m4/realloc.m4: Remove file, since now it does no more than
87896         AC_REQUIRE([AC_FUNC_REALLOC]), and that can be done via
87897         the `configure.ac' section of module/realloc.
87898         * m4/malloc.m4: Likewise, but for AC_FUNC_MALLOC.
87899
87900 2004-03-30  Bruno Haible  <bruno@clisp.org>
87901
87902         * lib/getloadavg.c (getloadavg): Don't assume setlocale returns
87903         nonnull.
87904
87905 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87906
87907         Merge changes to getloadavg.c from coreutils and Emacs.
87908
87909         * lib/getloadavg.c [!defined HAVE_SETLOCALE] (setlocale):
87910         Define to an expression, not to the empty string.
87911         Include cloexec.h and xalloc.h.
87912         (getloadavg): Restore LC_NUMERIC locale after setting it temporarily.
87913         Use set_cloexec_flag rather than rolling our own.
87914         * lib/cloexec.c, lib/cloexec.h: New files.
87915
87916 2004-03-29  Paul Eggert  <eggert@twinsun.com>
87917
87918         * m4/cloexec.m4: New file.
87919
87920 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87921
87922         * lib/getopt.h: Sync with libc CVS.
87923
87924 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87925             Bruno Haible  <bruno@clisp.org>
87926
87927         * m4/mbswidth.m4 (gl_MBSWIDTH): Also test whether <wchar.h> declares
87928         mbswidth.
87929
87930 2004-03-18  Paul Eggert  <eggert@twinsun.com>
87931             Bruno Haible  <bruno@clisp.org>
87932
87933         * lib/mbswidth.h: Include <wchar.h> only if
87934         HAVE_DECL_MBSWIDTH_IN_WCHAR_H, not on all platforms that have
87935         <wchar.h>.
87936         * lib/mbswidth.c: Include <stdio.h> and <time.h> before <wchar.h>.
87937
87938 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87939
87940         * lib/argp-parse.c, getopt.c, getopt.h, getopt1.c:
87941         Sync with libc CVS.
87942         * lib/getopt_int.h: New file, also synced from libc.
87943
87944 2004-03-09  Paul Eggert  <eggert@twinsun.com>
87945
87946         * config/srclistvars.sh: Add GNUWWWLICENSES for eggert.
87947         * config/srclist.txt: Sync getopt with libc.  Add getopt_int.h.
87948         Bring back getopt.c, getopt.h, getopt1.c.
87949
87950 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87951
87952         * m4/c-stack.m4 (gl_PREREQ_C_STACK): Renamed from jm_PREREQ_C_STACK.
87953         All uses changed.  Check for sa_sigaction member; this fixes
87954         a bug first reported by Jason Andrade in
87955         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87956
87957 2004-03-07  Paul Eggert  <eggert@twinsun.com>
87958
87959         * lib/c-stack.c (SIGACTION_WORKS): New macro.  Use it instead of long
87960         '#if' expressions.  Unlike the code it replaces, it does not
87961         depend on (defined _SC_PAGESIZE).  However, it does depend on
87962         HAVE_STRUCT_SIGACTION_SA_SIGACTION; this last change fixes a bug
87963         first reported by Jason Andrade in
87964         <http://mail.gnu.org/archive/html/bug-textutils/2003-03/msg00027.html>.
87965
87966 2004-02-25  Simon Josefsson  <jas@extundo.com>
87967
87968         * m4/strdup.m4 (gl_PREREQ_STRDUP): Check whether strdup is declared.
87969
87970 2004-02-25  Simon Josefsson  <jas@extundo.com>
87971
87972         * lib/strdup.h: New file.
87973         * lib/strdup.c: Include it.
87974         * lib/path-concat.c: Include strdup.h. Drop strdup declaration.
87975         * lib/userspec.c: Include strdup.h. Drop strdup declaration.
87976
87977 2004-02-23  Karl Berry  <karl@gnu.org>
87978
87979         * doc/maintain.texi, doc/standards.texi, doc/make-stds.texi: new files
87980         (from fencepost.gnu.org:/gd/gnuorg).
87981
87982 2004-02-23  Karl Berry  <karl@gnu.org>
87983
87984         * config/srclistvars.sh (GNUORG) [karl]: redefine.
87985         * config/srclist.txt: add maintain/standards documents.
87986
87987 2004-02-18  Bruno Haible  <bruno@clisp.org>
87988
87989         * m4/xsize.m4 (gl_XSIZE): Require AC_C_INLINE.
87990         Reported by Derek Robert Price <derek@ximbiot.com>.
87991
87992 2004-02-16  Karl Berry  <karl@gnu.org>
87993
87994         * config/mkinstalldirs, install-sh: update from automake.
87995
87996 2004-02-06  Karl Berry  <karl@gnu.org>
87997
87998         * m4/po.m4: update from gettext 0.14.1.
87999
88000 2004-02-06  Karl Berry  <karl@gnu.org>
88001
88002         * lib/config.charset: update from gettext 0.14.1.
88003
88004 2004-02-05  Paul Eggert  <eggert@twinsun.com>
88005
88006         Add comments and code, prompted by suggestions from Bruno Haible
88007         for sh-quote.
88008         * lib/quotearg.h (quotearg_alloc): New decl.  Improve the comments
88009         describing the enum quoting_style values.
88010         * lib/quotearg.c (quotearg_alloc): New function.
88011         (quotearg_buffer_restyled): Treat lone { and } as special.
88012         Treat = as special.  Work around bug with older shells
88013         that "see" a '\' that is really the 2nd byte of a multibyte char.
88014         Quote empty string with shell_quoting_style.
88015
88016 2004-02-03  Bruno Haible  <bruno@clisp.org>
88017
88018         * m4/pipe.m4: New file, from GNU gettext.
88019
88020 2004-02-03  Bruno Haible  <bruno@clisp.org>
88021
88022         * lib/pipe.h: New file, from GNU gettext.
88023         * lib/pipe.c: New file, from GNU gettext.
88024
88025 2004-01-27  Bruno Haible  <bruno@clisp.org>
88026
88027         * m4/execute.m4: New file, from GNU gettext.
88028
88029 2004-01-27  Bruno Haible  <bruno@clisp.org>
88030
88031         * lib/execute.h: New file, from GNU gettext.
88032         * lib/execute.c: New file, from GNU gettext.
88033         * lib/w32spawn.h: New file, from GNU gettext.
88034
88035 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88036
88037         Merge from diffutils.
88038
88039         * lib/file-type.c (file_type): Add typed memory objects.
88040         * lib/file-type.h (S_TYPEISTMO): New macro.
88041
88042         * lib/c-stack.h (c_stack_action): Remove argv argument.
88043         * lib/c-stack.c (c_stack_action): Likewise.  All uses changed.
88044         (die): Don't calculate message unless segv_action returns.
88045         (get_stack_location, min_address_from_argv, max_address_from_argv,
88046         volatile stack_base, volatile_stack_size): Remove.
88047         (segv_handler): If ! HAVE_XSI_STACK_OVERFLOW_HEURISTIC, assume
88048         that every segmentation violation is a stack overflow.  (Ouch!)
88049         See Debian bug 136249 (still outstanding) for more info about why
88050         HAVE_XSI_STACK_OVERFLOW_HEURISTIC fails on Linux kernels.
88051
88052 2004-01-24  Paul Eggert  <eggert@twinsun.com>
88053
88054         Exit-status fix from coreutils.
88055
88056         Use exit_failure consistently in place of EXIT_FAILURE,
88057         so that program exit statuses are consistent on failure.
88058
88059         * lib/argmatch.c (ARGMATCH_DIE) [! defined ARGMATCH_DIE]:
88060         Include "exitfail.h", and use exit_failure rather than EXIT_FAILURE.
88061         * lib/argmatch.h: Comment fix to match the above.
88062         * lib/obstack.c (obstack_exit_failure) [!defined _LIBC]:
88063         Now a macro referring to exit_failure, instead of a separate
88064         variable.  Include "exitfail.h" to get it.
88065         * lib/xstrtol.h: Include "exitfail.h".
88066         (STRTOL_FATAL_ERROR): Exit with status exit_failure, not 2.
88067
88068         * lib/long-options.c (parse_long_options): Use prototype
88069         for usage function arg.  Pass it EXIT_SUCCESS rather than 0,
88070         for clarity.
88071
88072 2004-01-21  Jim Meyering  <jim@meyering.net>
88073
88074         * lib/mktime.c (__mktime_internal) [!_LIBC]: Define to mktime_internal
88075         so as not to conflict with a different-sized __mktime_internal
88076         function in GNU libc.
88077         * lib/timegm.c (__mktime_internal) [!_LIBC]: Likewise.
88078         Problem building statically-linked `ls' reported by Michael Brunnbauer.
88079
88080 2004-01-20  Karl Berry  <karl@gnu.org>
88081
88082         * config/config.guess: update from config.
88083
88084         * config/srclistvars.sh: GNUWWWLICENSES for karl.
88085
88086 2004-01-20  Bruno Haible  <bruno@clisp.org>
88087
88088         Safer stack allocation.
88089         * lib/setenv.c: Include allocsa.h.
88090         (alloca): Remove fallback definition.
88091         (freea): Remove macro.
88092         (__add_to_environ) [!_LIBC]: Use allocsa instead of alloca. Use freesa
88093         instead of freea.
88094
88095 2004-01-20  Bruno Haible  <bruno@clisp.org>
88096
88097         * m4/eealloc.m4: New file, from GNU gettext.
88098
88099 2004-01-20  Bruno Haible  <bruno@clisp.org>
88100
88101         * m4/allocsa.m4: New file, from GNU gettext.
88102
88103 2004-01-20  Bruno Haible  <bruno@clisp.org>
88104
88105         * lib/xallocsa.h: New file, from GNU gettext.
88106         * lib/xallocsa.c: New file, from GNU gettext.
88107
88108 2004-01-20  Bruno Haible  <bruno@clisp.org>
88109
88110         * lib/wait-process.c: On Windows, include windows.h. Needed on mingw.
88111
88112 2004-01-20  Bruno Haible  <bruno@clisp.org>
88113
88114         * lib/wait-process.c (wait_subprocess): Add ignore_sigpipe argument.
88115         * lib/wait-process.c (wait_subprocess): Likewise. Handle SIGPIPE
88116         specially.
88117
88118 2004-01-20  Bruno Haible  <bruno@clisp.org>
88119
88120         * lib/wait-process.c (wait_process): Disable the 2003-10-31 waitid()
88121         patch.
88122
88123 2004-01-20  Bruno Haible  <bruno@clisp.org>
88124
88125         * lib/wait-process.c (cleanup_slaves): Use ANSI C declaration.
88126
88127 2004-01-20  Bruno Haible  <bruno@clisp.org>
88128
88129         * lib/eealloc.h: New file.
88130
88131 2004-01-20  Bruno Haible  <bruno@clisp.org>
88132
88133         * lib/binary-io.h: Avoid warnings on Cygwin.
88134
88135 2004-01-20  Bruno Haible  <bruno@clisp.org>
88136
88137         * lib/allocsa.h: New file, from GNU gettext.
88138         * lib/allocsa.c: New file, from GNU gettext.
88139
88140 2004-01-18  Karl Berry  <karl@gnu.org>
88141
88142         * doc/gpl.texi, doc/lgpl.texi: new files.
88143
88144 2004-01-18  Karl Berry  <karl@gnu.org>
88145
88146         * config/srclistvars.sh (GNUWWWLICENSES): new variable.
88147         * config/srclist.txt ({fdl,gpl,lgpl}.text): get from there.
88148
88149 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88150
88151         Merge from coreutils.
88152
88153         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for uintptr_t.
88154         * m4/posixver.m4 (gl_POSIXVER): Require gl_DEFAULT_POSIX2_VERSION.
88155         (gl_DEFAULT_POSIX2_VERSION): Move
88156         the documentation from 'configure' into 'config.hin',
88157         so that 'configure --help' isn't burdened by it and
88158         we don't have to worry about its formatting there.
88159         Reword the documentation so that it's more succinct
88160         and can be run together into a single paragraph.
88161         * m4/same.m4 (gl_SAME): Check for pathconf.
88162
88163 2004-01-15  Paul Eggert  <eggert@twinsun.com>
88164
88165         Merge from coreutils.
88166
88167         * lib/posixver.c: Include posixver.h.
88168
88169         * lib/same.c: Include <stdbool.h>, <limits.h>.
88170         (_POSIX_NAME_MAX): Define if not defined.
88171         (MIN): New macro.
88172         (same_name): If file names are silently truncated, report
88173         that the file names are the same if they are the same after
88174         the silent truncation.
88175
88176         * lib/xstrtod.h (xstrtod): Accept an extra arg, specifying the
88177         conversion function.
88178         * lib/xstrtod.c (xstrtod): Likewise.  All callers changed to
88179         include c-strtod.h and use c_strtod.  Don't include stdlib.h; no
88180         longer needed.
88181
88182 2004-01-15  Jim Meyering  <jim@meyering.net>
88183
88184         Merge from coreutils.
88185
88186         * m4/clock_time.m4 (gl_CLOCK_TIME): Don't set LIB_CLOCK_GETTIME
88187         if no library is required.
88188         * m4/jm-macros.m4: Don't require UTILS_SYS_OPEN_MAX.
88189         * m4/jm-macros.m4 (jm_MACROS): Require gl_FUNC_FREE.
88190         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.58.
88191         (AC_LANG_SOURCE): Remove definition, now that we require autoconf-2.58.
88192         * m4/jm-macros.m4 (jm_MACROS): Don't require AC_FUNC_FTW.
88193         * m4/lib-check.m4 (jm_LIB_CHECK): Do not set LIB_CRYPT to the
88194         value, $ac_cv_search_crypt, if it's "none required".
88195         * m4/posixver.m4 (gl_DEFAULT_POSIX2_VERSION): New macro.
88196         * m4/prereq.m4 (jm_PREREQ): Require AC_FUNC_GETLOADAVG,
88197         not gl_FUNC_GETLOADAVG.
88198         * m4/prereq.m4 (jm_PREREQ): Require gl_READTOKENS, gl_MD5, gl_MAKEPATH,
88199         gl_LONG_OPTIONS, and gl_IDCACHE, gl_GETUGROUPS.
88200
88201 2004-01-15  Jim Meyering  <jim@meyering.net>
88202
88203         Merge from coreutils.
88204
88205         * lib/md5.h (rol) [__GNUC__ && __i386__]: Don't use `asm' code.  These
88206         days, gcc-3.x does better all by itself.  Patch from Dean Gaudet:
88207         http://mail.gnu.org/archive/html/bug-coreutils/2003-11/msg00144.html
88208
88209         * lib/posixver.c (DEFAULT_POSIX2_VERSION): Use definition of new,
88210         optional configure-time default.
88211
88212         * lib/version-etc.c (version_etc_copyright): Update copyright date.
88213
88214         * lib/xreadlink.c (xreadlink): Correct outdated comment.
88215
88216 2004-01-15  Alexandre Duret-Lutz  <adl@gnu.org>
88217
88218         Merge from coreutils.
88219
88220         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Do not set LIB_NANOSLEEP to the
88221         value, $ac_cv_search_nanosleep, if it's "none required".
88222
88223 2004-01-14  Paul Eggert  <eggert@twinsun.com>
88224
88225         * lib/fnmatch_loop.c (ALLOCA_LIMIT): Remove macro, which collided
88226         with like-named macro in fnmatch.c.
88227         (EXT): Use an internal constant instead.
88228
88229         Merge fnmatch patches from glibc.
88230         * lib/fnmatch.c (mbsinit): Remove define.
88231         Add libc_hidden_ver (__fnmatch, fnmatch).
88232         * lib/fnmatch_loop.c (FCT): Cast to int32_t and UCHAR when appropriate.
88233         Adjust to renaming of collseq_table_lookup to __collseq_table_lookup.
88234
88235 2004-01-14  Karl Berry  <karl@gnu.org>
88236
88237         * config/install-sh: update from automake.
88238
88239 2004-01-13  Karl Berry  <karl@gnu.org>
88240
88241         * config/install-sh: update from automake.
88242
88243 2004-01-09  Karl Berry  <karl@gnu.org>
88244
88245         * config/install-sh: update from automake.
88246
88247 2004-01-05  Karl Berry  <karl@gnu.org>
88248
88249         * config/config.{sub,guess}: update from config.
88250
88251 2003-12-31  Karl Berry  <karl@gnu.org>
88252
88253         * config/depcomp: update from automake.
88254
88255 2003-12-14  Karl Berry  <karl@gnu.org>
88256
88257         * lib/config.charset: update from gettext-runtime.
88258
88259 2003-12-03  Paul Eggert  <eggert@twinsun.com>
88260
88261         * lib/getgroups.c (getgroups): xmalloc takes one argument, not two.
88262         Bug reported by Alfred M. Szmidt.
88263
88264 2003-12-03  Bruno Haible  <bruno@clisp.org>
88265
88266         * m4/gettext.m4: Upgrade from gettext-0.13.
88267         * m4/po.m4: Upgrade from gettext-0.13.
88268         * m4/size_max.m4 (gl_SIZE_MAX): Don't use the _ONCE macros here.
88269         * m4/intmax.m4: New file, from gettext-0.13.
88270         * m4/printf-posix.m4: New file, from gettext-0.13.
88271
88272 2003-11-29  Karl Berry  <karl@gnu.org>
88273
88274         * lib/argp-{help.c,parse.c,namefrob.h}, argp.h: update from libc.
88275
88276 2003-11-25  Paul Eggert  <eggert@twinsun.com>
88277             Bruno Haible  <bruno@clisp.org>
88278
88279         * lib/printf-parse.h: Don't include sys/types.h.
88280         (ARG_NONE): New macro.
88281         (char_directive): Change type of *arg_index fields to size_t.
88282         * lib/printf-parse.c: Don't include sys/types.h.
88283         (SSIZE_MAX): Remove macro.
88284         (PRINTF_PARSE): Change the type of the arg_index variables to size_t.
88285         Remove unnecessary overflow check.
88286         * lib/vasnprintf.c (VASNPRINTF): Update for type change of *arg_index
88287         fields.
88288
88289 2003-11-25  Bruno Haible  <bruno@clisp.org>
88290
88291         * modules/vasnprintf (Files): Remove m4/ssize_t.m4.
88292
88293 2003-11-25  Bruno Haible  <bruno@clisp.org>
88294
88295         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Don't require
88296         gt_TYPE_SSIZE_T.
88297
88298 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88299
88300         * modules/alloca: Remove dependency on xalloc.
88301
88302 2003-11-24  Paul Eggert  <eggert@twinsun.com>
88303
88304         * lib/alloca.c: Remove dependency on xalloc module.
88305         (xalloc_die): Remove.
88306         (memory_full) [!defined emacs]: New macro.
88307         [!defined emacs]: Don't include xalloc.h.
88308         (alloca): Invoke memory_full, not xalloc_die, if malloc fails or
88309         address arithmetic overflows.  Change datatypes a bit to avoid
88310         unnecessary casts.
88311
88312 2003-11-22  Jim Meyering  <jim@meyering.net>
88313
88314         * lib/xmalloc.c (x2nrealloc_inline): Fix typos in comments:
88315         s/size/size_t/.
88316
88317 2003-11-21  Karl Berry  <karl@gnu.org>
88318
88319         * config/config.{sub,guess}: update from config.
88320
88321 2003-11-18  Karl Berry  <karl@gnu.org>
88322
88323         * config/config.{sub,guess}: update from config.
88324
88325         * config/(printf-{parse,args}.[ch]): sync broken, sigh.
88326
88327 2003-11-17  Paul Eggert  <eggert@twinsun.com>
88328
88329         * README: Mention that S+T cannot overflow if S is the size of
88330         an existing object and T is sufficiently small.
88331
88332 2003-11-17  Jim Meyering  <jim@meyering.net>
88333
88334         On systems without utime and without a utimes function capable of
88335         dealing with a NULL struct utimbuf* argument, this utime replacement
88336         could -- in unusual circumstances -- leak a file descriptor.
88337         * lib/utime.c: Include <unistd.h> and <errno.h>.
88338         (utime_null): Be sure to close `fd' and to preserve errno.
88339         Reported by Geoff Collyer via Arnold Robbins.
88340
88341 2003-11-17  Bruno Haible  <bruno@clisp.org>
88342
88343         * modules/vasnprintf (Files): Add m4/ssize_t.m4.
88344         (Depends-on): Add xsize.
88345
88346 2003-11-17  Bruno Haible  <bruno@clisp.org>
88347
88348         * m4/vasnprintf.m4 (gl_PREREQ_PRINTF_PARSE): Require gt_TYPE_SSIZE_T.
88349
88350 2003-11-17  Bruno Haible  <bruno@clisp.org>
88351
88352         * lib/vasnprintf.c (alloca): Remove fallback definition.
88353         (freea): Remove definition.
88354         (VASNPRINTF): Use alloca only for small sizes, say <= 4000 bytes.
88355         Reported by Paul Eggert.
88356
88357 2003-11-16  Paul Eggert  <eggert@twinsun.com>
88358             Bruno Haible  <bruno@clisp.org>
88359
88360         Protect against address arithmetic overflow.
88361         * lib/printf-args.h: Include stddef.h.
88362         (arguments): Change type of field 'count' to size_t.
88363         * lib/printf-args.c (printf_fetchargs): Use size_t instead of
88364         'unsigned int' where appropriate.
88365         * lib/printf-parse.h: Include sys/types.h.
88366         (char_directive): Change type of *arg_index fields to ssize_t.
88367         (char_directives): Change type of fields 'count', max_*_length to
88368         size_t.
88369         * lib/printf-parse.c: Include sys/types.h and xsize.h.
88370         (SSIZE_MAX): Define fallback value.
88371         (PRINTF_PARSE): Use size_t instead of 'unsigned int' and ssize_t
88372         instead of 'int' where appropriate. Check a_allocated, d_allocated
88373         against overflow. Reject %m$ argument numbers > SSIZE_MAX + 1.
88374         * lib/vasnprintf.c: Include xsize.h.
88375         (VASNPRINTF): Use size_t instead of 'unsigned int' where appropriate.
88376         Check alloca, malloc, realloc, ENSURE_ALLOCATION arguments against
88377         overflow. Avoid wraparound when converting a width or precision from
88378         decimal to binary.
88379
88380 2003-11-16  Bruno Haible  <bruno@clisp.org>
88381
88382         Update from GNU gettext.
88383         * lib/printf-parse.c: Generalize to it can be compiled for wide
88384         strings.
88385         (PRINTF_PARSE, CHAR_T, DIRECTIVE, DIRECTIVES): New macros.
88386         * lib/vasnprintf.c: Generalize to it can be compiled for wide strings.
88387         (VASNPRINTF, CHAR_T, DIRECTIVE, DIRECTIVES, PRINTF_PARSE, USE_SNPRINTF,
88388         SNPRINTF): New macros.
88389         Don't include <alloca.h> if the file is used inside libintl.
88390         (local_wcslen): New function, for Solaris 2.5.1.
88391         (VASNPRINTF): Use it instead of wcslen.
88392
88393 2003-11-16  Bruno Haible  <bruno@clisp.org>
88394
88395         * lib/xsize.h (xmax): New function.
88396         (xsum, xsum3, xsum4): Declare as "pure" functions.
88397
88398 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88399
88400         * modules/xalloc (Files): Undo latest change, since xalloc.h
88401         no longer needs SIZE_MAX or PTRDIFF_MAX.
88402
88403 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88404
88405         * m4/xalloc.m4 (gl_PREREQ_XALLOC): Do not require gl_SIZE_MAX or
88406         gl_PTRDIFF_MAX.
88407
88408 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88409
88410         * lib/xstrtol.c (__xstrtol): Remove "break" immediately after
88411         "return", to pacify some unknown compiler.  Problem reported
88412         by Joerg Schilling.
88413
88414 2003-11-12  Paul Eggert  <eggert@twinsun.com>
88415
88416         * lib/xalloc.h: Do not include <limits.h> or <stdint.h>.
88417         (xalloc_oversized): Use sizeof (ptrdiff_t) and sizeof (size_t) for
88418         the heuristic, rather than PTRDIFF_MAX and SIZE_MAX.  This
88419         heuristic is just as accurate as far as we know, and it removes a
88420         dependency on size_max.m4 and ptrdiff_max.m4.
88421
88422 2003-11-11  Bruno Haible  <bruno@clisp.org>
88423
88424         * modules/xsize (Files): Add m4/size_max.m4.
88425         * modules/xalloc (Files): Add m4/size_max.m4, m4/ptrdiff_max.m4.
88426
88427 2003-11-11  Bruno Haible  <bruno@clisp.org>
88428
88429         * m4/size_max.m4: New file.
88430         * m4/ptrdiff_max.m4: New file.
88431         * m4/xsize,m4 (gl_XSIZE): Require gl_SIZE_MAX.
88432         * m4/xalloc.m4 (gl_PREREQ_XALLOC): New macro.
88433         (gl_XALLOC): Invoke it.
88434
88435 2003-11-11  Bruno Haible  <bruno@clisp.org>
88436
88437         * lib/xsize.h (SIZE_MAX): Remove fallback definition.
88438         * lib/xalloc.h: Include limits.h. Assume SIZE_MAX and PTRDIFF_MAX are
88439         defined.
88440
88441 2003-11-10  Paul Eggert  <eggert@twinsun.com>
88442
88443         * lib/xalloc.h (xalloc_oversized): [! (defined PTRDIFF_MAX &&
88444         PTRDIFF_MAX < SIZE_MAX)]: Fix off-by-one error that would have
88445         rejected some allocations of exactly SIZE_MAX - 2 bytes.
88446         From Bruno Haible.
88447         [defined PTRDIFF_MAX && PTRDIFF_MAX < SIZE_MAX]: Use SIZE_MAX,
88448         not (size_t) -1, since it's defined here.
88449
88450 2003-11-09  Karl Berry  <karl@gnu.org>
88451
88452         * config/mkinstalldirs, depcomp, mdate-sh: update from automake.
88453
88454 2003-11-06  Paul Eggert  <eggert@twinsun.com>
88455
88456         * lib/xalloc.h [HAVE_STDINT_H]: Include <stdint.h>.
88457         (xalloc_oversized) [! (PTRDIFF_MAX < SIZE_MAX)]:
88458         Reject sizes of exactly SIZE_MAX bytes.
88459         * lib/xreadlink.c: Include "xalloc.h" before checking whether SIZE_MAX
88460         is defined, since "xalloc.h" now defines SIZE_MAX on modern hosts.
88461
88462 2003-11-05  Bruno Haible  <bruno@clisp.org>
88463
88464         * lib/xsize.h: Include limits.h, to avoid a possible collision with
88465         SIZE_MAX defined in <limits.h> on Solaris.
88466
88467 2003-11-04  Jim Meyering  <jim@meyering.net>
88468
88469         * modules/sysexits: Use the `$(VAR)' notation for AC_SUBST'd
88470         variable names, rather than @VAR@.
88471         * modules/poll: Likewise.
88472
88473 2003-11-04  Bruno Haible  <bruno@clisp.org>
88474
88475         * modules/xsize: New file.
88476         * modules/linebreak: Depend on xsize.
88477         * MODULES.html.sh (func_all_modules): Add xsize.
88478
88479 2003-11-04  Bruno Haible  <bruno@clisp.org>
88480
88481         * m4/xsize.m4: New file.
88482
88483 2003-11-04  Bruno Haible  <bruno@clisp.org>
88484
88485         * lib/xsize.h: New file.
88486         * lib/linebreak.c: Include xsize.h.
88487         (mbs_possible_linebreaks, mbs_width_linebreaks): Check malloc()
88488         argument for overflow.
88489         Suggested by Paul Eggert.
88490
88491 2003-11-03  Karl Berry  <karl@gnu.org>
88492
88493         * config/config.{guess,sub}: update from config.
88494
88495 2003-11-03  Jim Meyering  <jim@meyering.net>
88496
88497         * modules/userspec (lib_SOURCES): Add userspec.h.
88498         (Include): Add "userspec.h".
88499         Improve description.
88500
88501 2003-11-03  Jim Meyering  <jim@meyering.net>
88502
88503         * lib/userspec.c: Include "userspec.h".
88504         * lib/userspec.h: New file.
88505
88506 2003-11-03  Bruno Haible  <bruno@clisp.org>
88507
88508         * m4/wait-process.m4 (gl_WAIT_PROCESS): Also check for waitid.
88509
88510 2003-11-03  Bruno Haible  <bruno@clisp.org>
88511
88512         * lib/wait-process.c (wait_process): Use waitid with WNOWAIT if
88513         available, to avoid (extremely rare) race condition.
88514         Suggested by Paul Eggert.
88515
88516 2003-11-02  Karl Berry  <karl@gnu.org>
88517
88518         * config/srclist.txt (vasprintf.c): sync broken, sigh.
88519
88520 2003-10-31  Paul Eggert  <eggert@twinsun.com>
88521
88522         * lib/mountlist.h (struct mount_entry.me_type_malloced): New member.
88523         * lib/mountlist.c (SIZE_MAX): Define if not defined already.
88524         (read_filesystem_list): Set and use me_type_malloced.
88525         Use "sizeof *me" rather than "sizeof (struct mount_entry)" (or
88526         whatever the type happens to be), for brevity and consistency.
88527         Check for size calculation overflow on Alphas running OSF/1.
88528
88529 2003-10-31  Jim Meyering  <jim@meyering.net>
88530
88531         * lib/hash.c: Include "xalloc.h" for use of xalloc_oversized.
88532
88533         * lib/linebuffer.c: Include <string.h> for declaration of memset.
88534
88535 2003-10-30  Paul Eggert  <eggert@twinsun.com>
88536             Bruno Haible  <bruno@clisp.org>
88537
88538         * lib/vasprintf.c: Include <limits.h>, <stdlib.h>.
88539         (vasprintf): Fail if the resulting length doesn't fit in an 'int'.
88540
88541 2003-10-30  Paul Eggert  <eggert@cs.ucla.edu>
88542
88543         * m4/host-os.m4 (UTILS_HOST_OS): Change netbsd*-gnu pattern back to
88544         netbsd*-gnu*.  Suggested by Robert Millan.
88545
88546 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88547
88548         * modules/group-member: Depend on stdbool.
88549
88550 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88551
88552         * m4/xalloc.m4 (gl_XALLOC): Undo previous change.
88553
88554 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88555
88556         * m4/host-os.m4 (UTILS_HOST_OS): Resurrect netbsd*-gnu.  Add comments
88557         to it, and to knetbsd*-gnu and kfreebsd*-gnu.  Remove the '*' from
88558         after the 'gnu' in these cases.  This fixes some bugs in the
88559         previous change, and is based on suggestions by Robert Millan.
88560
88561 2003-10-29  Paul Eggert  <eggert@twinsun.com>
88562
88563         * lib/xalloc.h (xalloc_oversized): Now a macro, not a function,
88564         so that it works even if SIZE_MAX < N.  Do not include <stdbool.h>;
88565         no longer needed.
88566         * lib/quotearg.c (quotearg_n_options): Use it.
88567         * lib/group-member.c: Include <stdbool.h>.
88568         (free_group_info): Arg is now const *; don't free arg.
88569         (get_group_info): Now returns bool and accepts struct group_info *,
88570         rather than returning a malloc'ed struct group_info *.
88571         All uses changed.  Check for overflow in internal size calculation.
88572
88573         * lib/getusershell.c (readname): Simplify the code by using x2nrealloc
88574         rather than xmalloc/xrealloc.
88575         * lib/linebuffer.c (initbuffer, readlinebuffer): Simplify the code by
88576         using x2realloc rather than xmalloc/xrealloc.  Also, fix a C
88577         conformance bug: the old code used a pointer after freeing the
88578         storage that it addressed.
88579         * lib/hash.c (hash_initialize): Simplify the code by using
88580         xalloc_oversized rather than doing it by hand.
88581         * lib/getgroups.c (getgroups): Don't use xrealloc, since we don't need
88582         the buffer preserved.  Use free and xmalloc instead.
88583         * lib/quotearg.c (quotearg_n_options): Likewise.
88584         Use a simpler test for size overflow.  Don't use xalloc_oversized
88585         because unsigned int might be wider than size_t (!); this suggests
88586         that we should switch from unsigned int to size_t for slot numbers.
88587
88588 2003-10-28  Paul Eggert  <eggert@twinsun.com>
88589
88590         * m4/host-os.m4 (UTILS_HOST_OS): Identify GNU/KFreeBSD and
88591         GNU/KNetBSD.  These implementations use glibc atop the FreeBSD and
88592         NetBSD kernels.  Requested by Richard Stallman.
88593
88594 2003-10-27  Paul Eggert  <eggert@twinsun.com>
88595
88596         * lib/exclude.c (new_exclude): Use xzalloc rather than xmalloc
88597         to allocate the returned structure.  Do not allocate a subarray,
88598         as x2nrealloc will do that.
88599         (add_exclude): Use x2nrealloc to reallocate ex->exclude,
88600         instead of xnrealloc.
88601         (add_exclude_file): Use x2realloc instead of malloc + xnrealloc.
88602
88603 2003-10-27  Bruno Haible  <bruno@clisp.org>
88604
88605         * lib/stdbool_.h: Better support for BeOS.
88606
88607 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88608
88609         * m4/xalloc.m4 (gl_XALLOC): Requore AC_C_INLINE, since xalloc.h
88610         now uses inline.
88611
88612 2003-10-26  Paul Eggert  <eggert@twinsun.com>
88613
88614         * lib/xalloc.h (xalloc_oversized): New static inline function, for
88615         callers that want to do their own size-overflow checking.  Include
88616         <stdbool.h>, since xalloc_oversized returns bool.
88617         * lib/xalloc.c (array_size_overflow): Remove.  All callers changed
88618         to use xalloc_oversized.
88619
88620         Add two functions x2realloc, x2nrealloc, for programs that grow
88621         arrays dynamically by doubling their sizes.
88622         * lib/xalloc.h (x2realloc, x2nrealloc): New decls.
88623         * lib/xmalloc.c (x2nrealloc_inline, x2nrealloc, x2realloc):
88624         New functions.
88625
88626         Port to C99 semantics for 'inline' of external functions.
88627         Bug reported by Bruno Haible.
88628         * lib/xmalloc.c (xnmalloc_inline): New static inline function,
88629         with the old contents of xnmalloc.
88630         (xnmalloc, xmalloc): Use it.
88631         (xnrealloc_inline): New static inline function,
88632         with the old contents of xnrealloc.
88633         (xnrealloc, xrealloc): Use it.
88634
88635         * lib/alloc.c (alloca): xmalloc cannot return NULL, so don't test for
88636         that.
88637
88638 2003-10-26  Karl Berry  <karl@gnu.org>
88639
88640         * config/srclist.txt (COPYING.DOC): no longer available from
88641         /gd/gnuorg; don't know where the ultimate source is.
88642
88643 2003-10-25  Paul Eggert  <eggert@twinsun.com>
88644
88645         Fix several address-calculation bugs in the hash modules,
88646         plus some minor code cleanup.
88647
88648         * lib/hash.h: Include <stdbool.h>, for bool.
88649         * lib/hash.c: Don't include <stdbool.h>, since hash.h does it now.
88650         * lib/hash.h (Hash_hasher, hash_get_n_buckets, hash_get_n_buckets_used,
88651         hash_get_n_entries, hash_get_max_bucket_length,
88652         hash_get_entries, hash_do_for_each, hash_string, hash_initialize,
88653         hash_rehash): Use size_t rather than unsigned.
88654         * lib/hash.c (struct hash_table, hash_get_n_buckets,
88655         hash_get_n_buckets_used, hash_get_n_entries,
88656         hash_get_max_bucket_length, hash_table_ok, hash_print_statistics,
88657         hash_get_entries, hash_do_for_each, hash_string, is_prime,
88658         next_prime, hash_initialize, hash_rehash, hash_delete, hash_print):
88659         Likewise.
88660         (SIZE_MAX): Define if not defined.
88661         (hash_get_max_bucket_length, hash_table_ok, hash_lookup,
88662         hash_get_first, hash_get_next, hash_get_entries, hash_do_for_each,
88663         hash_print):
88664         Use const * when possible.
88665         (hash_string): Use (unsigned char) *P rather than *(unsigned char *) P.
88666         (check_tuning): Fix bug: if tuning parameters were very close to
88667         0 or 1, rounding errors could have caused subscript violations.
88668         (hash_initialize, allocate_entry, hash_print): Remove unnecessary cast.
88669         (hash_initialize): Add 'fail:' label
88670         to free table and return NULL, and use it to simplify code.
88671         Use calloc rather than clearing the storage ourself.
88672         (hash_initialize, hash_rehash): Check for arithmetic overflow in
88673         buffer size calculations.
88674         * lib/hash-pjw.h (hash_pjw): Use size_t, not unsigned.
88675         Include <stddef.h>, for size_t.
88676         * lib/hash-pjw.c (hash_pjw): Likewise.
88677         Switch to method described by Bruno Haible.
88678         Include <limits.h>, for CHAR_BIT.
88679         (SIZE_BITS): New macro.
88680
88681 2003-10-23  Paul Eggert  <eggert@twinsun.com>
88682
88683         * m4/getline.m4 (AM_FUNC_GETLINE):
88684         Don't include getndelim2.o twice into LIBOBJS; this breaks on some
88685         hosts.  Problem reported by Derek Robert Price in
88686         <http://mail.gnu.org/archive/html/bug-gnulib/2003-10/msg00092.html>.
88687         This patch can be withdrawn after Autoconf 2.58 is required for gnulib.
88688         * m4/getndelim2.m4 (gl_GETNDELIM2): Likewise.
88689
88690 2003-10-21  Paul Eggert  <eggert@twinsun.com>
88691
88692         * lib/getndelim2.c (getndelim2): When size calculation overflows,
88693         ceiling the allocation at NMAX bytes rather than silently
88694         discarding input bytes before NMAX is reached.  This makes
88695         a difference only if NMAX exceeds SIZE_MAX / 2.
88696
88697         * lib/obstack.c: Merge from glibc.
88698         [defined _LIBC]: Include <obstack.h>, not "obstack.h".
88699         Add libc_hidden_def (_obstack_newchunk).
88700         (_obstack_free) [! defined _LIBC]: Remove.
88701         [defined _LIBC]: Make a strong alias from obstack_free, rather than
88702         a clone of the function body.
88703         (fputs) [defined _LIBC && defined USE_IN_LIBIO]: Remove.
88704         [defined _LIBC && !defined USE_IN_LIBIO]: Include <libio/iolibio.h>.
88705
88706         * lib/obstack.h: Indenting cleanup, to make it easier to merge with
88707         glibc.
88708         (obstack_grow, obstack_grow0): Remove unnecessary parentheses around
88709         arg to memcpy.
88710
88711         * lib/obstack.h (obstack_1grow_fast): Properly parenthesize arg.
88712         (obstack_ptr_grow_fast, obstack_int_grow_fast):
88713         Don't use lvalue casts, as GCC plans to remove support for them
88714         in GCC 3.5.  Reported by Joseph S. Myers.  This bug
88715         was also present in the non-GCC version, indicating that this
88716         code had always been buggy and had never been widely used.
88717         (obstack_1grow, obstack_ptr_grow, obstack_int_grow, obstack_blank):
88718         Use the fast variant of each macro, rather than copying the
88719         definiens of the fast variant; that way, we'll be more likely to
88720         catch future bugs in the fast variants.
88721
88722 2003-10-20  Bruno Haible  <bruno@clisp.org>
88723
88724         * modules/wait-process: New file.
88725         * MODULES.html.sh (func_all_modules): Add wait-process.
88726
88727 2003-10-20  Bruno Haible  <bruno@clisp.org>
88728
88729         * m4/wait-process.m4: New file.
88730
88731 2003-10-20  Bruno Haible  <bruno@clisp.org>
88732
88733         * lib/wait-process.h: New file, from GNU gettext.
88734         * lib/wait-process.c: New file, from GNU gettext.
88735
88736 2003-10-19  Jim Meyering  <jim@meyering.net>
88737
88738         * lib/vasnprintf.c (vasnprintf): Work around losing snprintf on
88739         HPUX 10.20.
88740
88741 2003-10-18  Karl Berry  <karl@gnu.org>
88742
88743         * config/config.guess: update from config.
88744
88745 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88746
88747         * lib/getgroups.c: Include <errno.h>, <stdlib.h>.
88748         (getgroups): First arg is int, not size_t.
88749         Don't let 'free' mangle errno.
88750
88751 2003-10-16  Paul Eggert  <eggert@twinsun.com>
88752
88753         * README: Mention that gnulib assumes that (foo *) NULL + 0 == NULL.
88754
88755 2003-10-16  Karl Berry  <karl@gnu.org>
88756
88757         * config/config.{guess,sub}: update from config.
88758
88759 2003-10-16  Jim Meyering  <jim@meyering.net>
88760
88761         * lib/xmalloc.c: Include <string.h>, for declarations of memset and
88762         memcpy.
88763
88764 2003-10-15  Paul Eggert  <eggert@twinsun.com>
88765
88766         * lib/exclude.c: Do not include <inttypes.h> or <stdint.h>.
88767         (SIZE_MAX): Remove.
88768         (new_exclude, add_exclude_file): Initial size no longer needs to
88769         be a power of 2.
88770         (add_exclude, add_exclude_file): Use xnrealloc instead of rolling
88771         our own address arithmetic overflow checking.
88772
88773         * lib/fnmatch.c (SIZE_MAX): Define if standard headers don't.
88774         (fnmatch): Do not alloca more than 2000 wide characters;
88775         instead, use malloc for large buffers.
88776         Check for address arithmetic overflow, and return -1
88777         with errno set to ENOMEM in that case.
88778         * lib/fnmatch_loop.c (ALLOCA_LIMIT): New macro.
88779         (NEW_PATTERN): Do not alloca more than 8000 bytes;
88780         instead, return -1.  Check for address arithmetic overflow.
88781
88782 2003-10-14  Paul Eggert  <eggert@twinsun.com>
88783
88784         Handle invalid suffixes and overflow independently, so that
88785         callers can treat them independently as needed.  Fix some bugs in
88786         suffix handling, e.g., "100k@" was not diagnosed as an invalid
88787         suffix for a human-readable blocksize.  The major caller-visible
88788         change is the addition of a new
88789         LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW enum value, indicating
88790         that both overflow and suffix chars were found.
88791
88792         * lib/human.c (humblock): Don't check separately for invalid suffix
88793         char; that is xstrtoumax's job (now that its bug is fixed).
88794         * lib/xstrtoimax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM) [defined
88795         INTMAX_MAX]: New macros.
88796         * lib/xstrtol.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM, TYPE_MINIMUM,
88797         TYPE_MAXIMUM): New macros.
88798         (bkm_scale, bkm_scale_by_power): Return strtol_error, not int.
88799         (bkm_scale, bkm_scale_by_power, __xstrtol): Return maximal values
88800         if overflow occurs, as it's what __strtol does and it's more useful
88801         in practice.
88802         (__xstrtol): If __strtol reports some error other than ERANGE,
88803         reflect it to the caller as LONGINT_INVALID.  If it reports
88804         ERANGE, continue the rest of parsing, and report LONGINT_OVERFLOW
88805         | LONGINT_INVALID_SUFFIX_CHAR if both errors occur.
88806         * lib/xstrtol.h (LONGINT_INVALID_SUFFIX_CHAR_WITH_OVERFLOW): New enum
88807         value.
88808         (_STRTOL_ERROR): Handle it.  Abort when given unknown error codes.
88809         * lib/xstrtoul.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM): New macros.
88810         * lib/xstrtoumax.c (STRTOL_T_MINIMUM, STRTOL_T_MAXIMUM)
88811         [defined UINTMAX_MAX]: New macros.
88812
88813 2003-10-14  Bruno Haible  <bruno@clisp.org>
88814
88815         * modules/fatal-signal: Add m4/sig_atomic_t.m4 to file list.
88816
88817 2003-10-14  Bruno Haible  <bruno@clisp.org>
88818
88819         * m4/sig_atomic_t: New file, from GNU gettext.
88820         * m4/fatal-signal.m4 (gl_FATAL_SIGNAL): Require gt_TYPE_SIG_ATOMIC_T.
88821
88822 2003-10-14  Bruno Haible  <bruno@clisp.org>
88823
88824         * lib/fatal-signal.h: Improved comments. Suggested by Paul Eggert.
88825         * lib/fatal-signal.c: Use sig_atomic_t. Suggested by Paul Eggert.
88826         Also use volatile where needed.
88827
88828 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88829
88830         * modules/xalloc: Do not depend on 'exit'.  Depend on 'stdbool'.
88831         Change maintainer from Bruno Haible to 'all'.
88832
88833 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88834
88835         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Require AC_C_INLINE.
88836
88837 2003-10-12  Paul Eggert  <eggert@twinsun.com>
88838
88839         * lib/xalloc.h (xnmalloc, xzalloc, xnrealloc, xclone): New decls.
88840         (XMALLOC, XCALLOC, XREALLOC, XFREE, CCLONE, CLONE): Deprecate,
88841         and define in terms of the other primitives.
88842         * lib/xmalloc.c: Include stdbool.h; do not include exit.h.
88843         (SIZE_MAX): Define if not already defined.
88844         (array_size_overflow): New function.
88845         (xalloc_die): Abort instead of exiting if 'error' returns.
88846         (xnmalloc, xnrealloc, xzalloc, xclone): New functions.
88847         (xmalloc, xrealloc): Use them.
88848         (xcalloc): Check for address arithmetic overflow.
88849         * lib/xstrdup.c (xstrdup): Use xclone, since memcpy should be
88850         a bit faster than strcpy.
88851
88852 2003-10-10  Simon Josefsson  <jas@extundo.com>
88853
88854         * modules/argp (Depends-on): Add restrict and strcase.
88855
88856 2003-10-10  Simon Josefsson  <jas@extundo.com>
88857
88858         * m4/argp.m4: Add AC_C_INLINE.
88859
88860 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88861
88862         Merge getpass from libc, plus a few fixes.
88863
88864         * lib/getpass.c (HAVE_STDIO_EXT) [_LIBC]: Define to 1.
88865         Include <stdbool.h>.
88866         Include <stdio_ext.h> if HAVE_STDIO_H, otherwise define
88867         __fsetlocking to empty.
88868         [_LIBC]: Do not include "getline.h" or "unlocked-io.h", but
88869         do include <bits/libc-lock.h>.
88870         Do not include <fcntl.h>; not needed.
88871         [_LIBC]: Include <wchar.h>.
88872         (NOTCANCEL_MODE): New macro.
88873         (flockfile, funlockfile) [_LIBC]: New macros.
88874         (__libc_cleanup_push, __libc_cleanup_pop, __getline, __tcgetattr)
88875         [!_LIBC]: New macros.
88876         (call_fclose): New function.
88877         (getpass): Use it.  Save tty stream separately; this simplifies the
88878         code and makes it more reliable if stdin happens to equal stdout.
88879         Invoke __fsetlocking on tty.
88880         Handle thread cancellation if needed.
88881         Namespace cleanup (use __tcgetattr, __getline).
88882         Use bool for Booleans.
88883         [USE_IN_LIBIO]: Handle wide streams.
88884         [!_LIBC]: Unconditionally do the fseek, since we don't know what
88885         stream might go where.
88886
88887         * lib/unlocked-io.h: Include <stdio.h>, so that the caller
88888         doesn't have to include <stdio.h> before us.
88889         (clearerr_unlocked, feof_unlocked, ferror_unlocked,
88890         fflush_unlocked, fgets_unlocked, fputc_unlocked, fputs_unlocked,
88891         fread_unlocked, fwrite_unlocked, getc_unlocked, getchar_unlocked,
88892         putc_unlocked, putchar_unlocked): Define to the unlocked counterpart
88893         if not declared, so that we can use getpass.c code from libc without
88894         rewriting it.
88895         (flockfile, ftrylockfile, funlockfile): New macros.
88896
88897 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88898
88899         * modules/getpass: Depend on stdbool.
88900
88901 2003-10-08  Paul Eggert  <eggert@twinsun.com>
88902
88903         * m4/getpass.m4 (gl_PREREQ_GETPASS): Check for stdio_ext.h.
88904
88905 2003-10-07  Karl Berry  <karl@gnu.org>
88906
88907         * config/config.{guess,sub}: update from config.
88908
88909 2003-10-06  Jim Meyering  <jim@meyering.net>
88910             Bruno Haible  <bruno@clisp.org>
88911
88912         This lets translators provide better translations for the
88913         "Written by ..." part of --version output.
88914         * lib/version-etc.h: Include stdarg.h.
88915         (version_etc_copyright): Declare as readonly.
88916         (version_etc): Make this function variadic with a NULL-terminated list
88917         of author name strings.
88918         (version_etc_va): New declaration.
88919         * lib/version-etc.c: Include stdarg.h, stdlib.h.
88920         (version_etc_copyright): Declare as readonly.
88921         (version_etc_va): New function. Provide a different translatable string
88922         for each possible number of authors < 10. Abbreviate when there are 10
88923         authors or more.
88924         (version_etc): Make this function variadic. Call version_etc_va.
88925         Suggestion from Gary V. Vaughan.
88926
88927         * lib/long-options.h (parse_long_options): Change prototype: the
88928         authors string is moved to the end and becomes variadic.
88929         * lib/long-options.c: Include stdarg.h.
88930         (parse_long_options): Make this function variadic, too.
88931         Call version_etc_va, not version_etc.
88932
88933 2003-10-06  Bruno Haible  <bruno@clisp.org>
88934
88935         * modules/version-etc-2: Remove file.
88936         * MODULES.html.sh (func_all_modules): Remove version-etc-2.
88937
88938 2003-10-06  Bruno Haible  <bruno@clisp.org>
88939
88940         * modules/fatal-signal: New file.
88941         * MODULES.html.sh (func_all_modules): Add fatal-signal.
88942
88943 2003-10-06  Bruno Haible  <bruno@clisp.org>
88944
88945         * m4/fatal-signal.m4: New file.
88946         * m4/signalblocking.m4: New file, from GNU gettext.
88947
88948 2003-10-06  Bruno Haible  <bruno@clisp.org>
88949
88950         * lib/version-etc-2.h: Remove file.
88951         * lib/version-etc-2.c: Remove file.
88952
88953 2003-10-06  Bruno Haible  <bruno@clisp.org>
88954
88955         * lib/fatal-signal.h: New file, from GNU gettext.
88956         * lib/fatal-signal.c: New file, from GNU gettext.
88957
88958 2003-10-05  Paul Eggert  <eggert@twinsun.com>
88959
88960         * README: Rework advice for preventing empty .o files.
88961         Don't recommend ELIDE constructs.  Recommend <stddef.h>,
88962         not <sys/types.h>.
88963
88964 2003-10-04  Karl Berry  <karl@gnu.org>
88965
88966         * lib/argp*: update from libc.
88967
88968 2003-10-04  Karl Berry  <karl@gnu.org>
88969
88970         * config/config.{guess,sub}: update from config.
88971
88972 2003-10-02  Bruno Haible  <bruno@clisp.org>
88973
88974         * modules/lchown (Include): Add lchown.h.
88975         * modules/time_r (Include): Use "..." syntax.
88976         * modules/xgetdomainname (Include): Add xgetdomainname.h.
88977
88978 2003-10-01  Simon Josefsson  <jas@extundo.com>
88979
88980         * MODULES.html.sh (func_all_modules): Move gethostname from section
88981         'based on' to section 'lacking' POSIX:2001.
88982
88983 2003-10-01  Larry Jones  <lawrence.jones@eds.com>
88984
88985         * lib/getpass.c (getpass): Use a no-op fseek when switching from input
88986         to output mode on the same stream.
88987
88988 2003-09-29  Paul Eggert  <eggert@twinsun.com>
88989
88990         * lib/strftime.c (tm_diff) [! HAVE_TM_GMTOFF]:
88991         Fix arg typo in previous patch.
88992
88993 2003-09-28  Jim Meyering  <jim@meyering.net>
88994
88995         * lib/error.c: Correct cpp indentation.
88996
88997 2003-09-27  Paul Eggert  <eggert@twinsun.com>
88998
88999         * modules/free: New file.
89000
89001 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89002
89003         * m4/free.m4: New file.
89004
89005 2003-09-27  Paul Eggert  <eggert@twinsun.com>
89006
89007         * lib/minmax.h (MIN, MAX)
89008         [__STDC__ && defined __GNUC__ && __GNUC__ >= 2]:
89009         Omit the special code that used __typeof__, since we worry that
89010         it could be more trouble than it's worth.  See:
89011         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00090.html
89012         http://mail.gnu.org/archive/html/bug-gnulib/2003-01/msg00095.html
89013
89014         * lib/free.c: New file.
89015
89016 2003-09-27  Oskar Liljeblad  <oskar@osk.mine.nu>
89017
89018         Trivial fixes to Makefile.am parts of module listings.
89019         * modules/strstr: Append strstr.h to lib_SOURCES.
89020         * modules/strcase: Likewise, for strcase.h.
89021
89022 2003-09-27  Karl Berry  <karl@gnu.org>
89023
89024         * config/mkinstalldirs: update from automake.
89025
89026 2003-09-26  Paul Eggert  <eggert@twinsun.com>
89027
89028         * lib/error.c (SIZE_MAX) [!defined SIZE_MAX]: Define.
89029         (error_tail): Do not loop, reallocating temporary buffer, since
89030         the output cannot contain more wide characters than the input
89031         contains bytes, the size must be big enough already.  This avoids
89032         one potential size overflow calculation.  Check for size overflow
89033         when calculating temporary buffer size.  Free temporary buffer
89034         when done, if it was allocated with malloc; this plugs a memory
89035         leak.  Remove casts from void * to pointers, that are no longer
89036         needed now that we're assuming C89 or better.
89037
89038         Merge error changes from glibc.
89039
89040         * lib/error.c, error.h: Update copyright notice header to match glibc.
89041         * lib/error.c [defined _LIBC]: Include <errno.h>, <bits/libc-lock.h>.
89042         (error, error_at_line) [defined _LIBC && defined __libc_ptf_call]:
89043         Disable cancellation while printing error.
89044         * lib/error.h: Prepend __ to parameter names.
89045
89046 2003-09-26  Jim Meyering  <jim@meyering.net>
89047
89048         * lib/error.c (error_tail): Move some declarations
89049         into inner scope where the local variables are used.
89050
89051 2003-09-26  Bruno Haible  <bruno@clisp.org>
89052
89053         * m4/stpncpy.m4 (gl_FUNC_STPNCPY): Add comments about the AIX
89054         stpncpy().
89055         Don't define stpncpy through config.h; it's now done through stpncpy.h.
89056
89057 2003-09-26  Bruno Haible  <bruno@clisp.org>
89058
89059         * lib/stpncpy.h (gnu_stpncpy): New declaration.
89060         (stpncpy): Define as alias for gnu_stpncpy.
89061         * lib/stpncpy.c [!_LIBC]: Define gnu_stpncpy, not stpncpy.
89062
89063 2003-09-25  Simon Josefsson  <jas@extundo.com>
89064
89065         * lib/xgetdomainname.h: New file.
89066         * lib/xgetdomainname.c: New file.
89067
89068 2003-09-25  Simon Josefsson  <jas@extundo.com>
89069             Bruno Haible  <bruno@clisp.org>
89070
89071         * modules/getdomainname: New file.
89072         * modules/xgetdomainname: New file.
89073         * MODULES.html.sh (func_all_modules): Add getdomainname,
89074         xgetdomainname.
89075
89076 2003-09-25  Simon Josefsson  <jas@extundo.com>
89077             Bruno Haible  <bruno@clisp.org>
89078
89079         * m4/getdomainname.m4: New file.
89080
89081 2003-09-25  Simon Josefsson  <jas@extundo.com>
89082             Bruno Haible  <bruno@clisp.org>
89083
89084         * lib/getdomainname.h: New file.
89085         * lib/getdomainname.c: New file.
89086
89087 2003-09-25  Karl Berry  <karl@gnu.org>
89088
89089         * lib/argp-fmtstream.c, argp-help.c: update from libc.
89090
89091 2003-09-25  Karl Berry  <karl@gnu.org>
89092
89093         * config/install-sh: update from automake.
89094
89095 2003-09-25  Bruno Haible  <bruno@clisp.org>
89096
89097         * modules/version-etc-2: New file, from modules/version-etc with
89098         modifications.
89099         * MODULES.html.sh (func_all_modules): Add version-etc-2.
89100
89101 2003-09-25  Bruno Haible  <bruno@clisp.org>
89102
89103         * lib/version-etc-2.h: New file, from version-etc.h with modifications.
89104         * lib/version-etc-2.c: New file, from version-etc.c with modifications.
89105
89106 2003-09-24  Simon Josefsson  <jas@extundo.com>
89107
89108         * modules/xgethostname: Add xgethostname.h.
89109
89110 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89111
89112         * lib/linebuffer.c (freebuffer): Don't free the argument, just
89113         the buffer associated with the argument.  Bug reported by
89114         Simon Josefsson.
89115
89116 2003-09-24  Paul Eggert  <eggert@twinsun.com>
89117
89118         * README: Document assumptions that 'int' is at least 32 bits
89119         wide, that integer arithmetic is 2's complement without overflow,
89120         that there are no holes in integer values, that adding sizes of
89121         two nonoverlapping objects can't overflow, and that all-bits-zero
89122         yields scalar zero.  Fix spelling and capitalization typos.
89123
89124 2003-09-19  Karl Berry  <karl@gnu.org>
89125
89126         * lib/argp.h: update from libc.
89127
89128 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89129
89130         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Call AC_BEFORE first,
89131         to avoid spurious warnings like "AC_RUN_IFELSE was called before
89132         gl_USE_SYSTEM_EXTENSIONS" from autoreconf.
89133
89134 2003-09-17  Paul Eggert  <eggert@twinsun.com>
89135
89136         * gnulib-tool: Use "test -h", not "test -L", for portability
89137         to Solaris 8 /bin/sh.  (This bug is fixed in Solaris 9.)
89138         (tags_regexp): Remove, since \| doesn't conform to POSIX.
89139         (sed_extract_prog): Issue s commands one-by-one, rather than
89140         using \| in one s command.
89141
89142 2003-09-16  Paul Eggert  <eggert@twinsun.com>
89143
89144         * lib/linebuffer.c (readlinebuffer): Return NULL immediately upon
89145         input error, instead of returning NULL the next time we are called
89146         (and therefore losing track of errno).
89147
89148 2003-09-16  Bruno Haible  <bruno@clisp.org>
89149
89150         * gnulib-tool (func_create_testdir): Warn about duplicated
89151         dependencies.
89152
89153 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89154
89155         * modules/argmatch, modules/fatal, modules/obstack,
89156         modules/xalloc, modules/xgethostname: Sort dependencies by
89157         importance, not alphabetically.
89158
89159 2003-09-15  Paul Eggert  <eggert@twinsun.com>
89160
89161         * lib/getndelim2.c (getndelim2): Don't trash errno when a read
89162         fails, so that the caller gets the proper errno.
89163
89164         * lib/readutmp.c (read_utmp): Likewise.
89165         Check for fstat error.  Close stream and free storage
89166         when failing.
89167
89168 2003-09-14  Karl Berry  <karl@gnu.org>
89169
89170         * config/srclist.txt (strdup.c): disable for c89 changes.
89171
89172 2003-09-14  Jim Meyering  <jim@meyering.net>
89173
89174         * lib/getloadavg.c: Correct cpp indentation.
89175         * lib/strdup.c: Likewise.
89176         * lib/vasnprintf.c: Likewise.
89177
89178 2003-09-14  Bruno Haible  <bruno@clisp.org>
89179
89180         * modules/fwriteerror: New file.
89181         * MODULES.html.sh (func_all_modules): Add fwriteerror.
89182
89183 2003-09-14  Bruno Haible  <bruno@clisp.org>
89184
89185         * lib/fwriteerror.h: New file.
89186         * lib/fwriteerror.c: New file.
89187
89188 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89189
89190         * modules/argmatch, modules/exitfail, modules/fatal, modules/obstack,
89191         modules/xgethostname, modules/xalloc: Depend on exit.
89192
89193 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89194
89195         * m4/error.m4: Require AC_FUNC_STRERROR_R rather than invoking it.
89196
89197         * m4/extensions.m4 (gl_USE_SYSTEM_EXTENSIONS): Require AC_AIX
89198         and AC_MINIX, too, so that their extensions are available.
89199
89200         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Remove.  All uses removed.
89201         This macro has been superseded by gl_BACKUPFILE.
89202
89203         More patches to assume C89 or better.
89204
89205         * m4/error.m4 (gl_ERROR): Don't check for vprintf.
89206
89207         * m4/check-decl.m4 (jm_CHECK_DECLS): Include <string.h>, <stdlib.h>
89208         unconditionally.
89209         * m4/closeout.m4 (gl_CLOSEOUT): Don't check for stdlib.h.
89210         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER):
89211         Include <string.h>, <stdlib.h> unconditionally.
89212         * m4/lstat.m4 (gl_PREREQ_LSTAT): Don't check for stdlib.h, free.
89213         * m4/readdir.m4 (GL_FUNC_READDIR): Don't check for string.h.
89214         * m4/readutmp.m4 (gl_PREREQ_READUTMP): Don't check for standard C
89215         headers or for string.h.
89216         * m4/strtoumax.m4 (gl_PREREQ_STRTOUMAX): Don't check for stdlib.h
89217         or strtoul.
89218
89219         * m4/mkstemp.m4 (jm_PREREQ_TEMPNAME): Do not require standard C
89220         headers.
89221         * m4/strdup.m4 (gl_PREREQ_STRDUP): Likewise.
89222         * m4/userspec.m4 (gl_USERSPEC): Likewise.
89223         * m4/xalloc.m4 (gl_PREREQ_XMALLOC): Likewise.
89224         * m4/xstrtod.m4 (gl_XSTRTOD): Likewise.
89225         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
89226         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't check for limits.h,
89227         memcpy, memset.
89228         (jm_FUNC_GNU_STRFTIME): Don't require standard C headers.
89229         * m4/strtod.m4 (gl_FUNC_STRTOD): Do not check for float.h.
89230         * m4/strtoimax.m4 (gl_PREREQ_STRTOIMAX): Do not check for stdlib.h,
89231         strtol.
89232         * m4/strtol.m4 (gl_FUNC_STRTOL): Do not check for limits.h.
89233         * m4/userspec.m4 (gl_USERSPEC): Do not check for string.h.
89234         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Do not check for string.h, strtol,
89235         strtoul.
89236
89237 2003-09-12  Paul Eggert  <eggert@twinsun.com>
89238
89239         * lib/argmatch.c, fatal.c, xgethostname.c, xmalloc.c: Include exit.h.
89240         * lib/obstack.c [!defined _LIBC]: Likewise.
89241         * lib/argmatch.c (EXIT_FAILURE): Remove; now done by exit.h
89242         * lib/exitfail.c, fatal.c, xgethostname.c, xmalloc.c: Likewise.
89243         * lib/exitfail.c: Don't include stdlib.h; no longer needed.
89244
89245         More changes to assume C89 or better.
89246
89247         * lib/error.c (error_tail): Assume vprintf.
89248
89249         * lib/argmatch.c (getenv): Remove decl.
89250         * lib/progreloc.c (get_full_program_name): Define via prototype.
89251         * lib/setenv.c (clearenv): Likewise.
89252         * lib/stpncpy.c: Do not include <string.h> or <sys/types.h>; not
89253         needed.
89254         * lib/strdup.c: Include <stdlib.h>, <string.h> unconditionally.
89255         (malloc, memcpy): Remove decls.
89256         * lib/strftime.c (HAVE_LIMITS_H, STDC_HEADERS) [defined _LIBC]: Remove.
89257         (HAVE_MEMCPY) [defined emacs && !defined HAVE_BCOPY]: Remove.
89258         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89259         (memcpy): Remove macro.
89260         (MEMCPY) [!defined COMPILE_WIDE]: Define to memcpy unconditionally.
89261         (__P): Remove.  All uses removed.
89262         (PTR): Remove.  All uses changed to void *.
89263         (CHAR_BIT, NULL): Remove.
89264         (spaces, zeros, memset_space, memset_zero)
89265         [!defined memset && !defined HAVE_MEMSET && !defined _LIBC]:
89266         Remove.
89267         (LOCALE_PARAM, LOCALE_PARAM_DECL): Remove.
89268         (memcpy_lowcase, memcpy_uppcase, tm_diff, iso_week_days):
89269         Define with prototype.
89270         Remove now-unnecessary prototype decl.
89271         (extra_args_spec): Assume ANSI C.  All uses changed.
89272         (extra_args_spec_iso): Remove.
89273         (my_strftime, emacs_strftimeu): Define via prototype.
89274         * lib/strtod.c: Include <float.h>, <stdlib.h>, <string.h>
89275         unconditionally.
89276         (DBL_MAX, DBL_MIN, HUGE_VAL, NULL): Remove decls.
89277         * lib/strtoimax.c: Include <stdlib.h> unconditionally.
89278         (strtoul, strtol): Remove decls.
89279         * lib/strtol.c (STDC_HEADERS, HAVE_LIMITS_H, NULL, ULONG_MAX,
89280         LONG_MAX): Remove.
89281         Include <limits.h>, <stddef.h>, <stdlib.h>, <string.h> unconditionally.
89282         (LOCALE_PARAM_DECL): Remove.  All uses changed to LOCALE_PARAM_PROTO.
89283         (LOCALE_PARAM_PROTO): New macro.
89284         (INTERNAL, INTERNAL1, WEAKNAME): Assume ANSI C, not K&R.
89285         (INTERNAL (strtol), strtol): Define with a prototype.
89286         (PARAMS): Remove.  All uses removed.
89287         * lib/tempname.c: Include <string.h> unconditionally.
89288         * lib/userspec.c: Include <stdlib.h>, <string.h> unconditionally.
89289         * lib/xgethostname.c (main): Define with a prototype.
89290         * lib/xmalloc.c: Include "xalloc.h" first, to check interface.
89291         Include <stdlib.h> unconditionally.
89292         (calloc, malloc, realloc, free): Remove decls.
89293         * lib/xstrtod.c: Include "xstrtod.h" first, to check interface.
89294         Include <stdlib.h> unconditionally.  Sort include file names.
89295         (strtod): Remove.
89296         (xstrtod): Define with a prototype.
89297         * lib/xstrtol.c: Include <stdlib.h>, <string.h> unconditionally.
89298         (strtol, strtoul): Remove decls.
89299
89300 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89301
89302         More patches to assume C89 or better.
89303         * m4/strndup.m4 (gl_PREREQ_STRNDUP): Remove STDC_HEADERS check.
89304         * m4/strnlen.m4 (gl_PREREQ_STRNLEN): Don't check for memory.h,
89305         string.h, memchr, STDC_HEADERS.
89306
89307 2003-09-11  Paul Eggert  <eggert@twinsun.com>
89308
89309         * lib/strndup.c: Don't include <stdio.h>, <sys/types.h>.
89310         Include <stdlib.h>, <string.h> unconditionally.
89311         Remove now-unnecessary cast to char *.
89312         * lib/strnlen.c: Include <string.h> unconditionally.
89313         * lib/yesno.c (yesno): Define with a prototype.
89314
89315 2003-09-11  Bruno Haible  <bruno@clisp.org>
89316
89317         * config/srclist.txt (setenv.c, unsetenv.c): Disable for the moment.
89318
89319 2003-09-10  Jim Meyering  <jim@meyering.net>
89320
89321         * lib/error.c: Correct indentation of cpp directives.
89322
89323 2003-09-10  Bruno Haible  <bruno@clisp.org>
89324
89325         * m4/strcspn.m4 (gl_PREREQ_STRCSPN): Remove <string.h> check.
89326         * m4/strpbrk.m4 (gl_PREREQ_STRPBRK): Remove <string.h> check.
89327         * m4/strstr.m4 (gl_PREREQ_STRSTR): Remove <string.h> check.
89328         * m4/unicodeio.m4 (gl_UNICODEIO): Remove <string.h> check.
89329         * m4/setenv.m4 (gl_PREREQ_SETENV, gl_PREREQ_UNSETENV): Remove
89330         <stdlib.h> and <string.h> checks.
89331         * m4/xreadlink.m4 (gl_XREADLINK): Remove <stdlib.h> check.
89332         * m4/yesno.m4 (gl_YESNO): Remove <stdlib.h> check.
89333
89334 2003-09-10  Bruno Haible  <bruno@clisp.org>
89335
89336         * lib/strcspn.c: Include <string.h> unconditionally.
89337         * lib/strpbrk.c: Include <string.h> unconditionally.
89338         * lib/strstr.c: Include <string.h> unconditionally.
89339         * lib/unicodeio.c: Include <string.h> unconditionally.
89340         * lib/setenv.c: Include <stdlib.h> and <string.h> unconditionally.
89341         * lib/unsetenv.c: Likewise.
89342         * lib/xreadlink.c: Include <stdlib.h> unconditionally.
89343         * lib/yesno.c: Include <stdlib.h> unconditionally.
89344         (rpmatch): Add prototype.
89345
89346 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89347
89348         More patches to assume C89 or better.
89349         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Don't check for stdlib.h.
89350         * m4/getopt.m4 (gl_GETOPT): Don't check for string.h.
89351         * m4/getugroups.m4 (gl_GETUGROUPS): Do not check for standard C headers
89352         or for string.h.
89353         * m4/getusershell.m4 (gl_PREREQ_GETUSERSHELL): Do not check for
89354         stdlib.h.
89355         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): Do not require standard
89356         C headers.
89357         * m4/hard-locale.m4 (gl_HARD_LOCALE): Do not check for stdlib.h,
89358         string.h.
89359         * m4/hash.m4 (gl_HASH): Do not check for stdlib.h, malloc, free.
89360         * m4/human.m4 (gl_HUMAN): Do not check for stdlib.h, string.h, getenv.
89361         * m4/idcache.m4 (gl_IDCACHE): Do not check for standard C headers,
89362         or for string.h.
89363         * m4/long-options.m4 (gl_LONG_OPTIONS): Do not check for stdlib.h.
89364         * m4/makepath.m4 (gl_MAKEPATH): Do not check for string.h or standard
89365         C headers.
89366         * m4/md5.m4 (gl_MD5): Don't check for limits.h, standard C headers,
89367         memcpy.
89368         * m4/sha.m4 (gl_SHA): Don't check for standard Cheaders, memcpy.
89369         * m4/memchr.m4 (jm_PREREQ_MEMCHR): Don't check for limits.h, stdlib.h.
89370         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): Don't check for string.h.
89371         * m4/memcoll.m4 (gl_MEMCOLL): Likewise.
89372         * m4/memrchr.c (gl_PREREQ_MEMRCHR): Don't check for limits.h.
89373         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): Don't check for stdlib.h,
89374         string.h, free.
89375         * m4/mktime.m4 (gl_PREREQ_MKTIME): Don't check for standard C headers.
89376         * m4/modechange.m4 (gl_MODECHANGE): Don't check for standard C headers.
89377         * m4/mountlist.m4 (gl_PREREQ_MOUNTLIST_EXTRA): Don't check for standard
89378         C headers, or for string.h.
89379         * m4/obstack.m4 (gl_OBSTACK): Don't check for stddefe.h, string.h.
89380         (gl_PREREQ_OBSTACK): Don't check for stdlib.h.
89381         * m4/path-concat.m4 (gl_PATH_CONCAT): Don't check for standard C
89382         headers, memory.h, stdlib.h, string.h, strings.h.
89383         * m4/posixtm.m4 (gl_POSIXTM): Don't check for stdlib.h, string.h.
89384         * m4/posixver.m4 (gl_POSIXVER): Don't check for getenv.
89385         * m4/putenv.m4 (gl_PREREQ_PUTENV): Don't check for string.h, memcpy,
89386         strchr.
89387         * m4/readtokens.m4 (gl_READTOKENS): Don't check for standard C
89388         headers, memory.h, string.h.
89389         * m4/regex.m4 (jm_PREREQ_REGEX): Do not check for limits.h, string.h.
89390         * m4/rename.m4 (gl_PREREQ_RENAME): Do not check for stdlib.h, string.h,
89391         free.
89392         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Don't check for standard C
89393         headers.
89394         * m4/same.m4 (gl_SAME): Don't check for stdlib.h, string.h, free.
89395         * m4/save-cwd.m4 (gl_SAVE_CWD): Don't check for standard C headers.
89396         * m4/savedir.m4 (gl_SAVEDIR): Don't check for standard C headers.
89397         * m4/strchrnul.m4 (gl_PREREQ_STRCHRNUL): Don't check for string.h.
89398         * m4/xgetcwd.m4 (gl_XGETCWD): Don't check for stdlib.h.
89399
89400 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89401
89402         More K&R removal.
89403
89404         * lib/acosl.c (main): Use a prototype.
89405         * lib/asinl.c, cosl.c, expl.c, frexpl.c, ldexpl.c, sinl.c,
89406         tanl.c: Likewise.
89407
89408         * lib/getloadavg.c (getloadavg, main): Define via prototypes.
89409
89410         * lib/getopt.h (struct option.name): Assume C89, and use 'const'.
89411         (getopt, etopt_long, getopt_long_only, _getopt_internal)
89412         [defined __GNU_LIBRARY__]: Assume C89, so we can always declare
89413         with a prototype.
89414         * lib/getopt.c (const): Remove macro.
89415         Include <string.h> unconditionally.
89416         (my_index): Remove; all uses changed to strchr.
89417         (strlen): Remove decl.
89418         (exchange): Remove forward decl; no longer needed.
89419         (exchange, _getopt_initialize, _getopt_internal, getopt, main):
89420         Define with prototype.
89421         * lib/getopt1.c (const): Remove macro.
89422         (getopt_long, getopt_long_only, main): Define with prototype.
89423
89424         * lib/getugroups.c: Include <string.h> unconditionally.
89425
89426         * lib/getusershell.c: Include <stdlib.h> unconditionally.
89427         (getusershell, setusershell, endusershell, readname, main):
89428         Define with prototypes.
89429
89430         * lib/group-member.c: Include group-member.h first.
89431         Include <stdlib.h> unconditionally.
89432
89433         * lib/hard-locale.c: Include hard-locale.h first.
89434         Include <stdlib.h>, <string.h> unconditionally.
89435
89436         * lib/hash.c (free, malloc): Remove decls.
89437         Include <stdlib.h> unconditionally.
89438
89439         * lib/human.c: Include <stdlib.h>, <string.h> unconditionally.
89440         (getenv): Do not declare.
89441
89442         * lib/idcache.c: Include <string.h> unconditionally.
89443
89444         * lib/long-options.c: Include long-options.h first, to test interface.
89445         Include <stdlib.h> unconditionally.
89446
89447         * lib/makepath.c: Include makepath.h first, to test interface.
89448         Include <stdlib.h> and <string.h> unconditionally.
89449
89450         * lib/linebuffer.c: Include <stdlib.h>.
89451         (free): Remove decl.
89452
89453         * lib/malloc.c: Include <stdlib.h>, for malloc; don't bother with
89454         stddef.h. rpl_malloc returns void *, not char *.
89455         * lib/realloc.c (rpl_realloc): Likewise.  Also, define with a
89456         prototype.
89457
89458         * lib/md5.h: Include <limits.h> unconditionally.
89459         (UINT_MAX_32_BITS): Don't worry about non-__STDC__ case.
89460         (__P): Remove; all uses removed.
89461         * lib/md5.c: Include "md5.h" first.
89462         (md5_init_ctx, md5_read_ctx, md5_finish_ctx, md5_stream,
89463         md5_buffer, md5_process_bytes, md5_process_block):
89464         Define with prototypes.
89465         * lib/sha.h (__P): Remove all uses.  (It wasn't defined??)
89466         * lib/sha.c: Include "sha.h" first.
89467         Include <stdlib.h>, <string.h> unconditionally.
89468
89469         * lib/memchr.c (__ptr_t): Remove; all uses changed to void *.
89470         * lib/memcmp.c (__ptr_t): Likewise.
89471         * lib/memrchr.c (__ptr_t): Likewise.
89472         * lib/memchr.c, memcmp.c, memcoll.c, memrchr.c:
89473         Include <string.h> unconditionally.
89474         * lib/memchr.c, memrchr.c: Include <limits.h> unconditionally.
89475         * lib/memchr.c: Include <stdlib.h> unconditionally.
89476         * lib/memchr.c (LONG_MAX): Remove.
89477         * lib/memrchr.c (LONG_MAX): Likewise.
89478         * lib/memchr.c (__memchr): Define via a prototype.
89479         * lib/memrchr.c (__memrchr): Likewise.
89480         * lib/memcmp.c (__P): Remove, and remove all uses.
89481         (memcmp_bytes, memcmp_common_alignment, memcmp_not_common_alignment):
89482         Remove forward decls; no longer needed.
89483         * lib/memcpy.c, memmove.c, memset.c: Include <stddef.h>.
89484         Use types required by C89 in prototype.
89485
89486         * lib/mkdir.c: Include <stdlib.h>, <string.h> unconditionally.
89487         * lib/savedir.c: Likewise.
89488         * lib/mkdir.c (free): Remove decl.
89489         * lib/rmdir.c (rmdir): Define with a prototype.
89490         * lib/savedir.c: Include savedir.h first, to test interface.
89491
89492         * lib/mktime.c (STDC_HEADERS): Remove.
89493         Include <stdlib.h>, <string.h> unconditionally.
89494
89495         * lib/modechange.c: Include <stdlib.h> unconditionally.
89496         (malloc): Remove decl.
89497
89498         * lib/mountlist.c: Include <stdlib.h>, <string.h> unconditionally.
89499         (free): Remove decl.
89500
89501         * lib/obstack.h (PTR_INT_TYPE) [!defined __PTRDIFF_TYPE__]:
89502         Define to ptrdiff_t, without bothering to check HAVE_STDDEF_H.
89503         (This type really should be intptr_t, but that's a C99ism.)
89504         (_obstack_memcpy): Remove: all uses changed to memcpy.
89505         Include <string.h> unconditionally.
89506         (struct obstack): Assume __STDC__ for types of members
89507         chunkfun, freefun, extra_arg.
89508         (_obstack_newchunk, _obstack_free, _obstack_begin, _obstack_begin_1,
89509         _obstack_memory_used, obstack_alloc_failed_handler, obstack_init,
89510         obstack_begin, obstack_specify_allocation,
89511         obstack_specify_allocation_with_arg, obstack_chunkfun,
89512         obstack_freefun, obstack_free) [! (defined __STDC__ && __STDC__)]:
89513         Remove unprototyped decls and the macros that use them.
89514         * lib/obstack.c (POINTER): Remove.  All uses changed to void *.
89515         (obstack_alloc_failed_handler, CALL_CHUNKFUN, CALL_FREEFUN,
89516         _obstack_begin, _obstack_begin_1, _obstack_allocated_p)
89517         (defined __STDC__ && __STDC__)]:
89518         Remove nonprototyped code.
89519         Include <stdlib.h> unconditionally.
89520         (_obstack_begin, _obstack_begin_1, _obstack_newchunk,
89521         _obstack_allocated_p, _obstack_free, obstack_free,
89522         _obstack_memory_used, print_and_abort):
89523         Define using prototypes.
89524         (obstack_1grow, obstack_1grow_fast, obstack_alloc, obstack_base,
89525         obstack_blank, obstack_blank_fast, obstack_copy, obstack_copy0,
89526         obstack_finish, obstack_grow, obstack_grow0, obstack_make_room,
89527         obstack_next_free, obstack_object_size, obstack_room) [0]:
89528         Remove unused, unprototyped code.
89529
89530         * lib/path-concat.c: Include <stdlib.h>, <string.h> unconditionally.
89531
89532         * lib/physmem.c (physmem_total, physmem_available, main): Define
89533         with prototypes.
89534
89535         * lib/posixtm.c: Include <stdlib.h>, <string.h> unconditionally.
89536         (main): Define with a prototype.
89537
89538         * lib/posixver.c (getenv): Remove decl.
89539
89540         * lib/putenv.c (malloc): Returns void *, not char *.
89541         Include <string.h> unconditionally.
89542         (strchr, memcpy, NULL): Do not define.
89543
89544         * lib/readtokens.c: Include readtokens.h first, to test interface.
89545         Include <stdlib.h>, <string.h> unconditionally.
89546         (init_tokenbuffer): Define with a prototype.
89547
89548         * lib/regex.c (PARAMS): Remove.  All uses removed.
89549         All uses of _RE_ARGS removed, too.
89550         Include <stddef.h>, <stdlib.h>, <string.h>, <limits.h>
89551         unconditionally.
89552         (bzero): Assume memset exists.
89553         (memcmp, memcpy, NULL): Remove.
89554         (SIGN_EXTEND_CHAR): Remove; all uses replaced by casts to signed
89555         char, or assignments to local vars of type signed char.
89556         (init_syntax_once, PREFIX(extract_number_and_incr),
89557         PREFIX(print_partial_compiled_pattern),
89558         PREFIX(print_compiled_pattern), PREFIX(print_double_string),
89559         convert_mbs_to_wcs, print_fastmap, re_set_syntax,
89560         PREFIX(regex_grow_registers), PREFIX(regex_compile),
89561         PREFIX(store_op1), PREFIX(store_op2), PREFIX(insert_op1),
89562         PREFIX(insert_op2), PREFIX(at_begline_loc_p),
89563         PREFIX(at_endline_loc_p), group_in_compile_stack, insert_space,
89564         wcs_compile_range, byte_compile_range, truncate_wchar,
89565         PREFIX(re_compile_fastmap), re_compile_fastmap, re_set_registers,
89566         re_search, re_search_2, PREFIX(re_search_2), re_match, re_match_2,
89567         count_mbs_length, wcs_re_match_2_internal,
89568         byte_re_match_2_internal, PREFIX(group_match_null_string_p),
89569         PREFIX(alt_match_null_string_p),
89570         PREFIX(common_op_match_null_string_p), PREFIX(bcmp_translate),
89571         re_compile_pattern, re_comp, re_exec, regcomp, regexec, regerror,
89572         regfree, PREFIX(extract_number)): Define with prototype.  Remove
89573         now-unnecessary declaration, if any.
89574         (byte_compile_range, PREFIX(regex_compile), re_comp, re_exec,
89575         regcomp, regexec):
89576         Remove now-unnecessary casts among pointer types.
89577         * lib/regex.h (_RE_ARGS): Remove.  All uses removed.
89578
89579         * lib/rename.c: Include <stdlib.h>, <string.h> unconditionally.
89580         (free): Remove decl.
89581
89582         * lib/rpmatch.c: Include <stdlib.h> unconditionally.
89583
89584         * lib/same.c: Include <stdlib.h>, <string.h> unconditionally.
89585         (free): Remove decl.
89586
89587         * lib/save-cwd.c: Include <stdlib.h> unconditionally.
89588         * lib/xgetcwd.c: Likewise.
89589
89590         * lib/stat.c: Include <stdlib.h>, <string.h> unconditionally.
89591         (free): Remove decl.
89592
89593         * lib/strchrnul.c (strchrnul): Define with a prototype.
89594         Fix bug: c_in was not converted to char before searching.
89595
89596         The following changes are not K&R related:
89597
89598         * lib/group-member.h: Include <sys/types.h>, so that this file is
89599         self-contained.
89600         * lib/makepath.h: Likewise.
89601
89602         * lib/getusershell.c (readname, default_index, line_size, readname):
89603         Use size_t, not int, for sizes.
89604         (readname): If the size overflows, report an error instead of
89605         looping forever.
89606
89607 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89608
89609         * config/srclist.txt: Do not get getopt.h, getopt1.c, or regex.h from
89610         libc.
89611
89612 2003-09-09  Paul Eggert  <eggert@twinsun.com>
89613
89614         * README: New section: portability guidelines.
89615
89616 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89617
89618         * m4/getndelim2.m4 (gl_PREREQ_GETNDELIM2): Assume stdlib.h per the
89619         C89 spec.
89620
89621 2003-09-09  Derek Robert Price  <derek@ximbiot.com>
89622
89623         * lib/getndelim2.c: Assume stdlib.h per the C89 spec.
89624
89625 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89626
89627         Assume C89 or better; remove K&R cruft.
89628         A few of these changes were first proposed by Derek Robert Price
89629         in <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00105.html>.
89630
89631         * lib/addext.c: Include <string.h> unconditionally.
89632         * lib/backupfile.c: Include <string.h>, <stdlib.h> unconditionally.
89633         Don't declare getenv or malloc.
89634
89635         * lib/alloca.c: Include <string.h>, <stdlib.h> unconditionally.
89636         (POINTER_TYPE, pointer): Remove; all uses changed to void *.
89637         (NULL): Remove.
89638         (find_stack_direction, alloca): Use prototypes.
89639
89640         * lib/atexit.c (atexit): Define using a prototype.
89641
89642         * lib/basename.c, dirname.c, stripslash.c:
89643         Include <string.h> unconditionally.
89644
89645         * lib/bcopy.c: Include <stddef.h>.
89646         (bcopy): Define with prototype, using 'const' and 'void' and 'size_t'.
89647
89648         * lib/canon-host.c: Include <stdlib.h>, <string.h> unconditionally.
89649
89650         * lib/error.h (error, error_at_line, error_print_progname)
89651         [! (defined (__STDC__) && __STDC__)]: Remove decls.
89652         * lib/error.c: Include error.h first, to check interface.
89653         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89654         (VA_START): Remove; all uses changeed to va_start.
89655         (exit, strerror): Remove decls.
89656         (error_print_progname): Prototype uncondionally.
89657         Don't include <errno.h>; no longer needed.
89658         (private_strerror): Remove.
89659         (error_tail): Always define.
89660         (error, error_at_line): Assume C89 or better; always use prototypes.
89661         * lib/fatal.c: Include "fatal.h" first, to test interface.
89662         Include <stdarg.h>, <stdlib.h>, <string.h> unconditionally.
89663         (VA_START): Remove; all uses changed to va_start.
89664         [! (HAVE_VPRINTF || HAVE_DOPRNT || _LIBC)]: Remove support for
89665         this case.
89666         (exit): Remove decl.
89667         (fatal): Prototype unconditionally.  Assume va_start works.
89668         Abort at end, to pacify gcc.
89669
89670         * lib/euidaccess.c (main): Define with a prototype.
89671
89672         * lib/exclude.c: Include <stdlib.h>, <string.h> unconditionally.
89673
89674         * lib/exitfail.c: Include <stdlib.h> unconditionally.
89675
89676         * lib/fnmatch_.h (__P): Remove.  All uses changed to assume
89677         prototypes.
89678         * lib/fnmatch.c: Include fnmatch.h first, to test interface.
89679         Include <string.h>, <stddef.h>, <stdlib.h> unconditionally.
89680         (getenv): Remove decl.
89681         (fnmatch): Define using a prototype.
89682         * lib/fnmatch_loop.c (FCT): Remove forward decl; no longer needed.
89683         (FCT): Define using a prototype.
89684
89685         * lib/getdate.y: Include <stdlib.h>, <string.h> unconditionally.
89686
89687         * lib/gethostname.c: Include <stddef.h>.
89688         (gethostname): Define with prototype.  Length is size_t, not int.
89689
89690 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89691
89692         Assume C89 or better; remove K&R cruft.
89693         * m4/alloca.m4 (gl_PREREQ_ALLOCA): Don't check for stdlib.h, string.h.
89694         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for stdlib.h,
89695         string.h, getenv, malloc.
89696         * m4/dirname.m4 (gl_DIRNAME): Don't check for string.h or C standard
89697         headers.
89698         * m4/canon-host.m4 (gl_CANON_HOST): Don't check for string.h, stdlib.h.
89699         * m4/error.m4 (jm_PREREQ_ERROR): Do not require STDC headers, and
89700         do not check for strerror.
89701         * m4/exclude.m4: Do not check for stdlib.h, string.h, strings.h.
89702         * m4/exitfail.m4 (gl_EXITFAIL): Do not check for stdlib.h.
89703         * m4/fatal.m4 (gl_FATAL): Do not require STDC headers, and
89704         do not check for doprnt or vprintf.
89705         * m4/fnmatch.m4 (gl_PREREQ_FNMATCH_EXTRA): Remove.  All uses removed.
89706         * m4/getdate.m4 (gl_GETDATE): Don't check for stdlib.h or string.h.
89707
89708 2003-09-08  Paul Eggert  <eggert@twinsun.com>
89709
89710         * lib/getversion.c: Remove; was migrated to backupfile.c in 1997.
89711         getversion.c should have been removed then, but was accidentally
89712         preserved.
89713
89714         * lib/utime.c [!HAVE_UTIMES_NULL]: Include <sys/stat.h>, <fcntl.h>.
89715         (utime_null): Fix typo: 'st' was sometimes called 'sb'.
89716
89717 2003-09-08  Karl Berry  <karl@gnu.org>
89718
89719         * config/config.sub, config.guess, srclistvars.sh: update from savannah
89720                 config, forget about prep.
89721
89722         * config/depcomp, missing: update from automake.
89723
89724 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89725
89726         * modules/time_r: Depend on 'restrict'.  Fix from Simon Josefsson in
89727         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89728
89729 2003-09-07  Paul Eggert  <eggert@twinsun.com>
89730
89731         * lib/time_r.c (gmtime_r, localtime_r): Fix silly typo: missing arg to
89732         copy_tm_result.  Bug reported by Simon Josefsson in
89733         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00028.html>.
89734
89735 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89736
89737         * m4/time_r.m4: New file.
89738         * m4/mktime.m4 (gl_PREREQ_MKTIME): Remove check for limits.h.
89739         * m4/timegm.m4 (gl_FUNC_TIMEGM): Assume that timegm is buggy if mktime
89740         is. Check for timegm declaration.
89741         (gl_PREREQ_TIMEGM): Require gl_FUNC_MKTIME.
89742         Do not check for gmtime_r.
89743         Replace mktime if __mktime_internal does not exist and if mktime
89744         hasn't been replaced already.
89745
89746 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89747
89748         * lib/time_r.c, lib/time_r.h: New files.
89749
89750         * lib/mktime.c (my_mktime_localtime_r): Remove; all uses changed to
89751         __localtime_r.
89752         (__localtime_r) [!defined _LIBC]: New macro.  Include <time_r.h>.
89753         (__mktime_internal) [!defined _LIBC]: Now extern, not static.
89754
89755         * lib/strftime.c (my_strftime_gmtime_r): Remove; all uses changed to
89756         __gmtime_r.
89757         (my_strftime_localtime_r): Remove; all uses changed to __localtime_r.
89758         (__gtime_r, __localtime_r) [!HAVE_TM_GMTOFF]: New macros.
89759         Include <time_r.h>.
89760
89761         * lib/timegm.c: Switch to glibc implementation, with the following
89762         changes:
89763         [defined HAVE_CONFIG_H]: Include <config.h>.
89764         [!defined _LIBC]: Include "timegm.h" rather than <time.h>.
89765         (__mktime_internal) [!defined _LIBC]: New decl.
89766         (__gmtime_r) [!defined _LIBC]: New macro and function.
89767         (timegm): Use a prototype, since gnulib assumes C89.
89768         Do not bother declaring tmp to be const, as it's not really usefu.
89769         * lib/timegm.h: Hoist "#include <time.h>" out of #ifdef.
89770         (timegm): Declare only if HAVE_DECL_TIMEGM.
89771
89772 2003-09-06  Paul Eggert  <eggert@twinsun.com>
89773
89774         * MODULES.html.sh (func_all_modules): Add time_r.
89775         * modules/time_r: New file.
89776         * modules/mktime, modules/strftime, modules/timegm: Depend on time_r.
89777         * modules/timegm: Depend on mktime.  Change maintainer to "all, glibc".
89778
89779 2003-09-03  Paul Eggert  <eggert@twinsun.com>
89780
89781         * lib/human.c (human_readable): Fix bug that rounded 10501 to 10k.
89782         Bug reported by Lute Kamstra in
89783         <http://mail.gnu.org/archive/html/bug-gnulib/2003-09/msg00003.html>.
89784
89785         * lib/getdate.y (relative_time_table): Use tDAY_UNIT for "tomorrow",
89786         "yesterday", "today", and "now" rather than tMINUTE_UNIT.  Of
89787         course with correspondingly smaller numbers for tomorrow and
89788         yesterday.  From Tadayoshi Funaba.  Originally installed into
89789         sh-utils on 1999-08-07, but the patch got lost (I guess during the
89790         coreutils merge?).
89791
89792 2003-08-31  Simon Josefsson  <jas@extundo.com>
89793
89794         * modules/timegm: New file.
89795         * MODULES.html.sh (func_all_modules): Add timegm.
89796
89797 2003-08-31  Simon Josefsson  <jas@extundo.com>
89798
89799         * m4/timegm.m4: New file.
89800
89801 2003-08-31  Simon Josefsson  <jas@extundo.com>
89802
89803         * lib/timegm.h: New file.
89804         * lib/timegm.c: New file.  Based on
89805         wget-1.8.2/src/http.c:mktime_from_utc.
89806
89807 2003-08-31  Karl Berry  <karl@gnu.org>
89808
89809         * lib/argp.h: update from libc.
89810
89811 2003-08-28  Bruno Haible  <bruno@clisp.org>
89812
89813         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Remove AC_DEFINE of fnmatch here.
89814         This avoids havoc on compilers for which '#define fnmatch rpl_fnmatch'
89815         followed by '#define fnmatch fnmatch_posix' gives an error.
89816
89817 2003-08-28  Bruno Haible  <bruno@clisp.org>
89818
89819         * lib/binary-io.h: Undefine O_BINARY before defining it. This avoids a
89820         warning on QNX, which defines O_BINARY to 000000.
89821
89822 2003-08-27  Jim Meyering  <jim@meyering.net>
89823
89824         * m4/mkstemp.m4: Require that the system mkstemp be able to create
89825         70 temporary files, not just 30.  Tru64 V4.0F's mkstemp function
89826         would fail after 32.  Reported by Danny Levinson.  Details here:
89827         http://mail.gnu.org/archive/html/bug-coreutils/2003-08/msg00124.html
89828
89829 2003-08-24  Bruno Haible  <bruno@clisp.org>
89830
89831         * lib/binary-io.h: Include <stdio.h>, to avoid a compilation error when
89832         MSVC7 <stdio.h> is included later.
89833
89834 2003-08-22  Simon Josefsson  <jas@extundo.com>
89835
89836         * modules/strndup (Makefile.am): Add strndup.h to lib_SOURCES.
89837
89838 2003-08-20  Karl Berry  <karl@gnu.org>
89839
89840         * m4/lib-ld.m4: serial 1003 from gettext, no changes besides serial.
89841
89842 2003-08-20  Bruno Haible  <bruno@clisp.org>
89843
89844         * modules/progname: New file.
89845         * MODULES.html.sh (func_all_modules): Add progname.
89846
89847 2003-08-20  Bruno Haible  <bruno@clisp.org>
89848
89849         * lib/progname.h: New file, from GNU gettext.
89850         * lib/progname.c: New file, from GNU gettext.
89851         * lib/progreloc.c: New file, from GNU gettext.
89852
89853 2003-08-19  Jim Meyering  <jim@meyering.net>
89854
89855         * m4/lib-ld.m4: Revert yesterday's change, per Bruno's request here:
89856         http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00155.html
89857
89858 2003-08-19  Bruno Haible  <bruno@clisp.org>
89859
89860         * m4/xalloc.m4 (gl_PREREQ_XSTRDUP): Don't check for <string.h> any
89861         more.
89862
89863 2003-08-19  Bruno Haible  <bruno@clisp.org>
89864
89865         * lib/xstrdup.c: Assume <string.h> exists.
89866
89867 2003-08-18  Paul Eggert  <eggert@twinsun.com>
89868
89869         * modules/stdbool: Add BUILT_SOURCES.  Prefer $@ to target name
89870         in makefile rules.
89871
89872 2003-08-18  Jim Meyering  <jim@meyering.net>
89873
89874         * m4/getloadavg.m4: Use [\t ], not [ \t] (where \t is a literal TAB).
89875         * m4/lib-ld.m4: Likewise.
89876
89877 2003-08-18  Jim Meyering  <jim@meyering.net>
89878
89879         * lib/setenv.h: Indent nested cpp directive.
89880         * lib/vasnprintf.c: Remove trailing blanks.
89881
89882 2003-08-17  Simon Josefsson  <jas@extundo.com>
89883
89884         * modules/xstrndup: New file.
89885         * MODULES.html.sh (func_all_modules): Add xstrndup.
89886
89887 2003-08-17  Simon Josefsson  <jas@extundo.com>
89888
89889         * modules/argp: Fix autoconf macro name. Add more dependencies.
89890
89891 2003-08-17  Simon Josefsson  <jas@extundo.com>
89892
89893         * m4/xstrndup.m4: New file.
89894
89895 2003-08-17  Simon Josefsson  <jas@extundo.com>
89896
89897         * m4/argp.m4: New file.
89898
89899 2003-08-17  Simon Josefsson  <jas@extundo.com>
89900             Bruno Haible  <bruno@clisp.org>
89901
89902         * lib/xstrndup.h: New file.
89903         * lib/xstrndup.c: New file.
89904
89905 2003-08-17  Bruno Haible  <bruno@clisp.org>
89906
89907         * modules/strndup (Files, Include): Add lib/strndup.h.
89908
89909 2003-08-17  Bruno Haible  <bruno@clisp.org>
89910
89911         * modules/euidaccess (Files): Add lib/euidaccess.h.
89912
89913 2003-08-17  Bruno Haible  <bruno@clisp.org>
89914
89915         * lib/strndup.h: New file.
89916
89917 2003-08-17  Bruno Haible  <bruno@clisp.org>
89918
89919         * gnulib-tool (func_create_testdir): Handle gl_USE_SYSTEM_EXTENSIONS
89920         like AC_GNU_SOURCE.
89921         * modules/extensions (configure.ac): Comment out the invocation of
89922         gl_USE_SYSTEM_EXTENSIONS.
89923
89924 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89925
89926         Merges from coreutils, etc.
89927         * m4/rpmatch.m4 (gl_PREREQ_RPMATCH): Insert ':' to prevent a syntax
89928         error in gl_FUNC_MATCH.  This fixes a bug I introduced on 2003-05-28.
89929         * m4/readlink.m4 (gl_PREREQ_READLINK): Renamed from gl_PREREQ_READLINE,
89930         fixing a typo.
89931         * m4/host-os.m4 (UTILS_HOST_OS): Add GNU/NetBSD, GNU/FreeBSD.
89932         * m4/hash.m4 (gl_HASH): Use AM_STDBOOL_H, not AC_HEADER_STDBOOL.
89933
89934 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89935
89936         Document merge from coreutils.
89937         * modules/alloca: Append $(ALLOCA_H) to BUILT_SOURCES.
89938         * modules/fnmatch: Append $(FNMATCH_H) to BUILT_SOURCES.
89939         * modules/utime: Add m4/utimes-null.m4.
89940
89941 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89942
89943         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Do not normalize white
89944         space, undoing this 2003-08-12 change:
89945         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89946
89947 2003-08-16  Paul Eggert  <eggert@twinsun.com>
89948
89949         * config/srclist.txt: Get regex.h, strdup.c, strtoll.c,
89950         strtoul.c from libc, undoing this 2003-08-12 change:
89951         <http://mail.gnu.org/archive/html/bug-gnulib/2003-08/msg00080.html>
89952
89953 2003-08-16  Jim Meyering  <jim@meyering.net>
89954
89955         Merges from coreutils.
89956         * m4/readdir.m4 (GL_FUNC_READDIR): Change name to have GL_ (not jm_)
89957         prefix.  Adjust cache variables similarly.  Create 500 rather than
89958         just 300 files, to exercise bug on Darwin6.5, too.
89959         * m4/perl.m4 (jm_PERL): Use $am_missing_run, not undefined
89960         $missing_dir.
89961         * m4/jm-winsz1.m4: Require AC_SYS_POSIX_TERMIOS, not
89962         AM_SYS_POSIX_TERMIOS.
89963         Reported by mkc@mathdogs.com.
89964         Also change use of $am_cv_sys_posix_termios
89965         to $ac_cv_sys_posix_termios.  Reported by Andreas Schwab.
89966         * m4/getgroups.m4 (jm_FUNC_GETGROUPS): Rewrite to use AC_FUNC_GETGROUPS
89967         and (if needed) to call AC_LIBOBJ and to set GETGROUPS_LIB.
89968         * m4/fsusage.m4 [__GLIBC__]: GNU libc's statvfs stats each mount point
89969         in /proc/mounts until it finds one with matching device number.  This
89970         is unnecessary when the FILE argument *is* a mount point.  No stat call
89971         is necessary in that case.  So, disable the statvfs-testing code on
89972         systems with GNU libc.  Reported by Andrei Gaponenko via Tim Waugh
89973         as RedHat bug# 84846.
89974         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89975         to 1MB, so as not to render systems with no stack size limit (e.g.,
89976         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89977         Include <unistd.h>.  On some systems,
89978         it is required for the definition of _SC_PAGESIZE.
89979
89980 2003-08-16  Jim Meyering  <jim@meyering.net>
89981
89982         Merge from coreutils.
89983         * lib/xstrtoimax.c: #else #if -> #elif.
89984         * lib/xstrtoumax.c: Likewise.
89985
89986 2003-08-16  Jim Meyering  <jim@meyering.net>
89987
89988         * m4/utimes.m4 (gl_FUNC_UTIMES): New file.
89989         * m4/utimes.m4: Removed.
89990         * m4/utimes-null.m4: Renamed from utimes.m4.
89991
89992         * m4/c-stack.m4 (AC_SYS_XSI_STACK_OVERFLOW_HEURISTIC): Limit stack size
89993         to 1MB, so as not to render systems with no stack size limit (e.g.,
89994         linux-2.2.x) unusable.  Suggestion and code from Bruno Haible.
89995         Include <unistd.h>.  On some systems,
89996         it is required for the definition of _SC_PAGESIZE.
89997
89998 2003-08-16  Jim Meyering  <jim@meyering.net>
89999         and Paul Eggert  <eggert@cs.ucla.edu>
90000
90001         Merges from coreutils, etc.
90002
90003         * m4/jm-macros.m4 (AC_LANG_SOURCE(C)): New macro, undefine, then define
90004         using the latest version from cvs.  This avoids problems with #line
90005         directives using a vendor (Sun) compiler.
90006         (jm_MACROS): Bump prerequisite from 2.52g to 2.57.
90007         Don't set GETGROUPS_LIB here; now it's
90008         done via getgroups.m4's wrapper function.
90009         AC_SUBST OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, and MAN here,
90010         rather than just in sh-util/configure.in, so that the
90011         now-shared-by-fileutils-and-textutils lib/Makefile.am are all the
90012         same.
90013         Use AC_CONFIG_LIBOBJ_DIR(lib) to tell the new
90014         AC_FUNC_GETLOADAVG where to find getloadavg.c.
90015         Require AC_FUNC_FTW, gt_INTTYPES_PRI, gl_CLOCK_TIME,
90016         UTILS_SYS_OPEN_MAX, GL_FUNC_GETCWD_PATH_MAX, GL_FUNC_READDIR,
90017         gl_FSUSAGE, gl_MOUNTLIST, AC_FUNC_CANONICALIZE_FILE_NAME.
90018         Remove code that is now done by the newly-required macros.
90019         Append $(EXEEXT) to DF_PROG.
90020         AC_LIBOBJ fchdir-stub if fchdir doesn't exist; similarly for fchown.
90021         Do not invoke or require the following here,
90022         since prereq.m4 or some gnulib .m4 now does this for us:
90023         gl_REGEX, UTILS_FUNC_MKDIR_TRAILING_SLASH, jm_BISON, gl_FUNC_MKTIME,
90024         jm_FUNC_LSTAT, jm_FUNC_STAT, jm_FUNC_REALLOC, jm_FUNC_MALLOC,
90025         jm_FUNC_NANOSLEEP, jm_FUNC_READDIR, jm_FUNC_MEMCMP,
90026         jm_FUNC_GLIBC_UNLOCKED_IO, AC_FUNC_FNMATCH_GNU, jm_FUNC_PUTENV,
90027         jm_AC_PREREQ_XSTRTOUMAX, jm_AC_PREREQ_XSTRTOIMAX,
90028         AC_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, AC_FUNC_VPRINTF,
90029         vb_FUNC_RENAME, UTILS_FUNC_MKSTEP, jm_FUNC_UTIME, AM_FUNC_GETLINE,
90030         AC_FUNC_OBSTACK.
90031         Do not replace the following functions, as this is now the job
90032         of some gnulib .m4: strcasecmp, strncasecmp, dup2, gethostname,
90033         getusershell, sig2str, strcspn, stpcpy, strstr, strtol, strtoul
90034         strpbrk, euidaccess, memcmp, rmdir, rpmatch, strndup, strverscmp,
90035         atexit getpass, strdup, getpagesize.
90036         Replace 'raise'.
90037         Do not check for the following functions, as this is now the job
90038         of some gnulib .m4: bcopy, canonicalize_file_name, fchdir, ftime,
90039         getcwd, getmntinfo, resolvepath.  But check for sysctl, setreuid,
90040         setregid.
90041         (jm_CHECK_ALL_HEADERS): Do not check for fenv.h.
90042         Check for sys/sysctl.h.
90043         (jm_CHECK_ALL_TYPES): Do not require AC_STRUCT_TM, AC_STRUCT_TIMEZONE,
90044         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Invoke gt_TYPE_SSIZE_T instead
90045         of checking for ssize_t ourselves.
90046
90047         * m4/prereq.m4 (jm_PREREQ): Don't invoke macros; AC_REQUIRE them.
90048         Require every macro that gnulib/modules/* suggests for us.
90049         (jm_PREREQ_ADDEXT): New macro.
90050         (jm_PREREQ_STAT): Check for 'struct statfs' on Ultrix 4.4.
90051         Require jm_AC_TYPE_LONG_LONG instead of invoking it.
90052
90053         * m4/physmem.m4 (gl_SYS__SYSTEM_CONFIGURATION): New macro.
90054         (gl_PHYSMEM): Use it.
90055         Also check for `table' function.
90056         Check for new headers and functions.
90057         Add check for sys/sysmp.h.
90058         With suggestions from Kaveh Ghazi.
90059         Ignore headers that are present but cannot be compiled.  This
90060         avoids spurious warnings on Solaris 9 sparc with Forte Developer 7
90061         C 5.4.
90062
90063 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90064
90065         Document merge from coreutils.
90066         * modules/userspec: Depend on posixver.
90067         * modules/strftime: Depend on tzset.
90068
90069 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90070
90071         * lib/config.charset, ref-add.sin, ref-del.sin: Use three spaces,
90072         rather than tab, after '#' in shell-script copyright notices.
90073         Suggested by Bruno Haible.
90074
90075 2003-08-15  Paul Eggert  <eggert@twinsun.com>
90076
90077         * config/srclist-update: Use three spaces, rather than tab, after '#'
90078         in shell-script copyright notices.  Suggested by Bruno Haible.
90079         Remove unnecessary parenthesization in regular expression.
90080
90081 2003-08-15  Jim Meyering  <jim@meyering.net>
90082
90083         Merge from coreutils.
90084         * lib/xgethostname.c: Include <stdlib.h>.
90085         (xghostname): Don't exit for anything other than memory-related
90086         failure; just return NULL.
90087         * lib/userspec.c: Include "posixver.h".
90088         (parse_user_spec): Accept `.' as a separator only
90089         in pre-POSIX-200112 mode.
90090         * lib/strtoimax.c: Use #elif rather than #else #if.
90091         * lib/strftime.c (my_strftime) [!_LIBC && HAVE_TZNAME && HAVE_TZSET]:
90092         Remove function, now that we can rely on a working tzset function.
90093         [!_LIBC]: Ensure that the required autoconf test has been run.
90094         [!defined _NL_CURRENT && HAVE_STRFTIME]:
90095         Use underlying_strftime for %r.
90096         * lib/sha.c: Merge in some clean-up and optimization changes from
90097         glibc.
90098         * lib/sha.c (sha_stream) [BLOCKSIZE]: Move definition to top of file.
90099         Ensure that it is a multiple of 64.
90100         Rearrange loop exit tests so as to avoid performing an
90101         additional fread after encountering an error or EOF.
90102         * lib/realloc.c: Update copyright date.
90103
90104 2003-08-15  Jim Meyering  <jim@meyering.net>
90105         and Paul Eggert  <eggert@twinsun.com>
90106
90107         Merge from coreutils.
90108         * lib/readutmp.h (HAVE_UTMPX_H): Undef if struct utmp has the ut_exit
90109         member but strut utmpx does not.  Needed for AIX 4.3.3.
90110         (UT_EXIT_E_TERMINATION, UT_EXIT_E_EXIT): Define.
90111
90112 2003-08-15  Jim Meyering  <jim@meyering.net>
90113         and Paul Eggert  <eggert@cs.ucla.edu>
90114
90115         Merges from coreutils, etc.
90116         * m4/strftime.m4 (_jm_STRFTIME_PREREQS):
90117         Require gl_FUNC_TZSET_CLOBBER.
90118         * m4/readutmp.m4 (gl_READUTMP): Check for ut_exit.ut_exit,
90119         ut_exit.e_exit, ut_exit.ut_termination, and ut_exit.e_termination
90120         members.
90121
90122 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90123
90124         Help the merge from coreutils.
90125         * m4/gettimeofday.m4 (gl_GETTIMEOFDAY_REPLACE_LOCALTIME): New macro.
90126         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use it.
90127         * m4/tzset.m4: Use it too.
90128
90129 2003-08-14  Paul Eggert  <eggert@twinsun.com>
90130
90131         * modules/tzset: New file.
90132
90133 2003-08-14  Jim Meyering  <jim@meyering.net>
90134
90135         Merges from coreutils.
90136         * modules/fnmatch: Use the `$(FNMATCH_H)' notation for AC_REPLACED
90137         variable names, rather than @FNMATCH_H@.
90138         * modules/alloca: Likewise for $(ALLOCA_H).
90139
90140         * modules/fnmatch (fnmatch.h): Use `$@' in the commands, in place of
90141         the three copies of the literal target, `fnmatch.h'.
90142         * modules/alloca (alloca.h): Likewise.
90143
90144 2003-08-14  Jim Meyering  <jim@meyering.net>
90145
90146         Merge from coreutils.
90147         * m4/tzset.m4: New file.
90148         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Move the
90149         MOUNTED_VMOUNT test to precede the MOUNTED_GETMNTENT1 tests, since
90150         otherwise, AIX 5.1 systems would end up using the latter.
90151         MOUNTED_GETMNTENT1 support is inadequate on such systems: 1) detecting
90152         whether a file system is remote doesn't work  2) the MOUNTED_VMOUNT
90153         code reports the HOSTNAME:/MOUNT_POINT, while the MOUNTED_GETMNTENT1
90154         code reports merely /MOUNT_POINT.  Reported by Mike Jetzer.
90155
90156 2003-08-14  Jim Meyering  <jim@meyering.net>
90157
90158         Merge from coreutils.
90159         * lib/obstack.h: Whitespace changes.
90160         * lib/mountlist.c: Remove anachronistic casts of xmalloc, xrealloc,
90161         and xcalloc return values.
90162         (read_filesystem_list) [MOUNTED_GETFSSTAT]:
90163         Use MNT_NOWAIT, rather than MNT_WAIT.  Otherwise, `df DIR' could
90164         hang on OSF/1 5.1 for DIR on both local and remote file systems.
90165         Reported by (and fix confirmed by) Nelson H. F. Beebe.
90166         (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
90167         error from mntctl.
90168         Use mntctl's return value to drive the entry-processing loop, since
90169         we can't rely on the value of the vmt_length member in the last
90170         entry.  On some systems doing so could result in exhausting
90171         virtual memory.  Based in part on a patch from Mike Jetzer.
90172
90173 2003-08-14  Jim Meyering  <jim@meyering.net>
90174         and Paul Eggert  <eggert@twinsun.com>
90175
90176         Merges from coreutils, plus other fixes.
90177         * lib/physmem.c: Merge in portability changes from gcc/libiberty
90178         to support AIX, IRIX, Tru64, and Windows.  See the ChangeLog there
90179         for credits and details.  Thanks to Kaveh Ghazi for helping
90180         to keep these files in sync.
90181         (ARRAY_SIZE): Define it.
90182         (physmem_total, physmem_available): Add comments. From Kaveh Ghazi.
90183         * lib/memcasecmp.c: Remove unnecessary parentheses after 'defined'.
90184         (memcasecmp): Don't assume size_t fits in unsigned int.
90185         Remove casts and duplicate code.
90186         * lib/md5.c: Include <string.h> and <stdlib.h> unconditionally.
90187         (memcpy): Remove definition.
90188         Merge in some clean-up and optimization changes from glibc.
90189         [BLOCKSIZE]: Move definition to top of file.
90190         Ensure that it is a multiple of 64.
90191         Rearrange loop exit tests so as to avoid performing an
90192         additional fread after encountering an error or EOF.
90193         * lib/md5.h (md5_uintptr): Define.
90194         * lib/makepath.c (CLEANUP_CWD): Report an error if we failed to
90195         return to the initial working directory.  Preserve errno
90196         for caller.
90197         * lib/idcache.c: Include "xalloc.h".
90198         (xmalloc, xrealloc): Remove decls.
90199         (getuser): Remove casts no longer required in C89.
90200         * lib/human.c: Include stdio.h, for sprintf.
90201         * lib/group-member.c: Include "xalloc.h".
90202         (xmalloc, xrealloc): Remove decls.
90203         (get_group_info): Remove casts no longer required in C89.
90204         * lib/getusershell.c (readname): Remove casts no longer required in
90205         C89.
90206         * lib/gettimeofday.c (rpl_gmtime, rpl_tzset): New functions.
90207         * lib/getline.c: Whitespace fix, from coreutils.
90208
90209 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90210
90211         * m4/exclude.m4 (gl_EXCLUDE): Require AC_C_INLINE, AC_HEADER_STDC.
90212         Check for isascii.
90213
90214         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90215         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90216         Undo previous (whitespace-only) change.
90217
90218 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90219
90220         * lib/exclude.c: Include <ctype.h>
90221         (IN_CTYPE_DOMAIN): New macro.
90222         (is_space): New fn.
90223         (add_exclude_file): If LINE_END is a space, ignore trailing spaces
90224         and empty lines.
90225
90226         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90227         Undo previous (whitespace-only) change.
90228
90229 2003-08-13  Paul Eggert  <eggert@twinsun.com>
90230
90231         * config/srclist-update: Change update back to the old behavior,
90232         leaving whitespace alone.  Use one 'sed' command rather than a
90233         pipeline.
90234         (fixlicense): Now a variable, not a function.
90235         (remove_trailing_blanks): Remove.
90236         (fixfile): Don't invoke unexpand or cat, or remove trailing blanks.
90237         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90238         Undo previous (whitespace-only) change.
90239
90240 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90241
90242         Merge from coreutils.
90243         * modules/euidaccess: Add lib_SOURCES, include for new
90244         file euidaccess.h
90245
90246 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90247
90248         * m4/gettext.m4, iconv.m4, intdiv0.m4, inttypes-pri.m4, lib-link.m4,
90249         lib-prefix.m4, longdouble.m4, po.m4, progtest.m4, signed.m4:
90250         Normalize leading white space and remove trailing white space.
90251
90252         Merge from coreutils
90253         * m4/euidaccess.m4 (gl_FUNC_EUIDACCESS): Check for euidaccess decl.
90254
90255         * m4/lib-ld.m4, lib-link.m4, lib-prefix.m4: Regenerate from gettext
90256         0.12.1.  These files are now being upgraded automatically by
90257         ../config/srclist-update.
90258
90259 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90260
90261         * lib/argp-help.c, argp-parse.c, config.charset, getopt.h:
90262         Normalize leading white space and remove trailing white space.
90263         * lib/ref-add.sin, ref-del.sin: Use '#' before empty line in copyright
90264         notice, as per ../config/srclist-update.
90265
90266         Merge from coreutils.
90267         * lib/euidaccess.h: New file.
90268         * lib/euidaccess.c: Include it.
90269         * lib/.cppi-disable: Add printf-args.h, printf-parse.h, stdbool_.h,
90270         vasnprintf.h, vasprintf.h.  Remove strdup.c, gettext.h.
90271         * lib/regex.h, strdup.c, strtoll.c, strtoul.c: Normalize white space.
90272
90273 2003-08-12  Paul Eggert  <eggert@twinsun.com>
90274
90275         * config/srclist-update: Add copyright notice.
90276         (remove_id_lines, remove_trailing_blanks): New constants.
90277         (fixfile): Use them to normalize spacing a bit in copied files.
90278         * config/config.guess, config.sub, install-sh, missing, texinfo.tex:
90279         Normalize leading white space and remove trailing white space.
90280
90281         * config/texinfo.tex: Sync with texinfo.
90282
90283         * config/srclist.txt: Don't get regex.h, strdup.c, strtoll.c,
90284         strtoul.c from libc, to merge coreutils whitespace changes.
90285
90286         * config/srclist.txt: Get the following m4 files from gettext:
90287         codeset.m4, gettext.m4, glibc21.m4, iconv.m4, intdiv0.m4,
90288         inttypes-pri.m4, lcmessage.m4, lib-ld.m4, lib-link.m4, lib-prefix.m4,
90289         longdouble.m4, nls.m4, po.m4, progtest.m4, signed.m4, wchar_t.m4,
90290         wint_t.m4.
90291
90292 2003-08-12  Karl Berry  <karl@gnu.org>
90293
90294         * config/srclist.txt: can't sync vasnprintf.c any more, changes have
90295         been made.
90296
90297 2003-08-11  Paul Eggert  <eggert@twinsun.com>
90298
90299         * modules/gnu-source, m4/gnu-source.m4:
90300         Remove; we're assuming Autoconf 2.54 or later now.
90301         Suggested by Bruno Haible.
90302         * MODULES.html.sh (func_all_modules): Remove gnu-source.
90303
90304 2003-08-11  Bruno Haible  <bruno@clisp.org>
90305
90306         * m4/vasnprintf.m4 (gl_PREREQ_VASNPRINTF): Also check for wcslen.
90307
90308 2003-08-11  Bruno Haible  <bruno@clisp.org>
90309
90310         * lib/vasnprintf.c (local_wcslen): New function, for Solaris 2.5.1.
90311         (vasnprintf): Use it instead of wcslen.
90312
90313 2003-08-11  Bruno Haible  <bruno@clisp.org>
90314
90315         * lib/stdbool_.h (_Bool): Undo last change; instead use a negative enum
90316         value to ensure that _Bool promotes to int. Use #define for _Bool when
90317         using the Solaris C compiler. Adds comments suggested by Paul Eggert.
90318
90319 2003-08-10  Karl Berry  <karl@gnu.org>
90320
90321         * lib/regex.h: update from libc (whitespace fix).
90322
90323 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90324
90325         Merge some files from coreutils.  These changes were
90326         originally made by Jim Meyering.
90327         * lib/acl.c: Include <sys/types.h> before <sys/stat.h>;
90328         many older Unixes require this.
90329         * lib/alloca.c (alloca): Remove cast to argument of free;
90330         no longer needed in C89.
90331         * lib/alloca_.h, regex.h: Fix white space to match
90332         what GNU indent does.
90333
90334 2003-08-09  Paul Eggert  <eggert@twinsun.com>
90335
90336         * m4/regex.m4 (jm_INCLUDED_REGEX): Change "\201" to "\371";
90337         apparently Emacs's Unicode mode got confused before my 2003-08-05
90338         checkin.
90339
90340 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90341
90342         * m4/extensions.m4: New file.
90343         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC):
90344         Require gl_USE_SYSTEM_EXTENSIONS.
90345         * m4/unlocked-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO):
90346         Require gl_USE_SYSTEM_EXTENSIONS rather than AC_GNU_SOURCE.
90347
90348 2003-08-08  Paul Eggert  <eggert@twinsun.com>
90349
90350         * MODULES.html.sh (func_all_modules): Add extensions, gnu-source.
90351         * modules/extensions, modules/gnu-source: New files.
90352         * modules/timespec, modules/unlocked-io: Depend on extensions.
90353
90354 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90355
90356         * modules/restrict: New file.
90357         * MODULES.html.sh (func_all_modules): Add restrict.
90358         * modules/regex: Depend on restrict.
90359
90360 2003-08-07  Paul Eggert  <eggert@twinsun.com>
90361
90362         * m4/restrict.m4: New file.
90363         * m4/regex.m4 (jm_PREREQ_REGEX): Add gl_C_RESTRICT.
90364
90365 2003-08-07  Bruno Haible  <bruno@clisp.org>
90366
90367         * modules/getndelim2 (Makefile.am): Add the files to EXTRA_DIST, not
90368         lib_SOURCES, because getndelim2.m4 now uses AC_LIBOBJ(getndelim2).
90369
90370 2003-08-07  Bruno Haible  <bruno@clisp.org>
90371
90372         * m4/getndelim2.m4 (gl_GETNDELIM2): Use AC_LIBOBJ(getndelim2). This
90373         makes the module 'getndelim2' compatible with the module 'getline'.
90374
90375 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90376
90377         * m4/regex.m4 (jm_INCLUDED_REGEX): Replace a single non-ASCII
90378         byte with "\201" to avoid glitches when editing that source file
90379         with multi-gnome-terminal.
90380
90381 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90382
90383         * lib/bumpalloc.h: Remove.
90384
90385 2003-08-05  Paul Eggert  <eggert@twinsun.com>
90386
90387         * MODULES.html.sh (func_all_modules): Remove bumpalloc.
90388         * modules/bumpalloc: Remove.
90389
90390 2003-08-04  Paul Eggert  <eggert@twinsun.com>
90391
90392         * lib/getloadavg.c: Change copyright notice and spacing to conform to
90393         GNU coding style.
90394
90395         Merge from coreutils.
90396         * lib/error.c [!USE_IN_LIBIO]: Omit this case; assume USE_IN_LIBIO is
90397         1. From glibc.
90398         * lib/getdate.y (date): Also accept dates like May-23-2003; suggestion
90399         from Karl Berry, implemented by Jim Meyering.
90400         * lib/getgroups.c: Include "xalloc.h" instead of declaring xalloc fns;
90401         from Dmitry V. Levin.
90402         Remove anachronistic cast of xrealloc.
90403         * lib/fnmatch_.h (__const): Remove.  Use 'const'.
90404         * lib/fnmatch_loop.c (NEW_PATTERN): Cast alloca return value to proper
90405         type. Otherwise, it wouldn't compile with at least /bin/cc on
90406         ymp-cray-unicos9.0.2.X.
90407         Combine two mostly-identical uses of alloca into one.
90408         Thanks to the Cray-Cyber project for access to a Cray Y-MP.
90409
90410 2003-08-04  Dave Love  <d.love@dl.ac.uk>
90411
90412         [From Emacs.]
90413
90414         * lib/getloadavg.c: Check `__unix' as well as `unix'.  Use #ifdef, not
90415         #if.  Check HAVE_LIBKSTAT as well as LOAD_AVE_TYPE.  Check
90416         F_SETFD, not FD_SETFD.  Use HAVE_STRUCT_NLIST_N_UN_N_NAME, not
90417         obsolete NLIST_NAME_UNION.
90418         [__GNU__]: Undef BSD and FSCALE.
90419         [!NLIST_STRUCT]: Remove conditional definition of NLIST_STRUCT.
90420
90421 2003-08-03  Paul Eggert  <eggert@twinsun.com>
90422
90423         * lib/stdbool_.h (_Bool): Make it signed char, instead of
90424         an enum type, so that it's guaranteed to promote to int.  See:
90425         <http://mail.gnu.org/archive/html/bug-gnulib/2003-07/msg00124.html>
90426
90427 2003-08-03  Karl Berry  <karl@gnu.org>
90428
90429         * config/depcomp: update from automake.
90430
90431 2003-07-31  Paul Eggert  <eggert@twinsun.com>
90432
90433         * lib/strerror.c: Include config.h, limits.h.  Declare sprintf.
90434         (strerror): Don't assume that a printable int fits in 14 bytes.
90435
90436 2003-07-31  Bruno Haible  <bruno@clisp.org>
90437
90438         * modules/getpass-gnu: New file.
90439         * MODULES.html.sh (func_all_modules): Add getpass-gnu.
90440
90441 2003-07-31  Bruno Haible  <bruno@clisp.org>
90442
90443         * m4/getpass.m4 (gl_FUNC_GETPASS_GNU): New macro.
90444
90445 2003-07-24  Karl Berry  <karl@gnu.org>
90446
90447         * config/missing: update from automake.
90448
90449 2003-07-24  Derek Robert Price  <derek@ximbiot.com>
90450             Bruno Haible  <bruno@clisp.org>
90451
90452         * lib/getline.h (getline, getdelim): Change return type to ssize_t.
90453         * lib/getline.c (getline, getdelim): Likewise.
90454         Remove _GNU_SOURCE define; now it's defined in config.h through
90455         m4/getline.m4.
90456
90457 2003-07-23  Karl Berry  <karl@gnu.org>
90458
90459         * config/config.sub: update from prep.
90460
90461 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90462
90463         * modules/xalloc (Depends-on): Add exitfail.
90464         * modules/xmemcoll: Likewise.
90465
90466 2003-07-22  Paul Eggert  <eggert@twinsun.com>
90467
90468         * lib/xalloc.h (XCALLOC, XREALLOC, CCLONE): Fix under- and
90469         over-parenthesization in macros.
90470
90471         Sync with coreutils.
90472
90473         * lib/xalloc.h (XMALLOC, XCALLOC, XREALLOC): Remove casts not
90474         required by C99.
90475
90476         Use `exit_failure' for xalloc and xmemcoll instead of their own
90477         private exit-failure variables.
90478         * lib/xalloc.h (xalloc_exit_failure): Remove.
90479         * lib/xmalloc.c: Likewise.  Include exitfail.h.
90480         (xalloc_die): Use exit_failure instead of xalloc_exit_failure.
90481         * lib/xmemcoll.h (xmemcoll_exit_failure): Remove.
90482         * lib/xmemcoll.c: Likewise.  Include exitfail.h.
90483         (xmemcoll): Use exit_failure instead of xalloc_exit_failure.
90484
90485 2003-07-20  Jim Meyering  <jim@meyering.net>
90486
90487         * modules/closeout (Depends-on): Add exitfail.
90488         Suggestion from Bruno Haible.
90489
90490 2003-07-19  Karl Berry  <karl@gnu.org>
90491
90492         * config/config.sub: update from prep.
90493
90494 2003-07-18  Paul Eggert  <eggert@twinsun.com>
90495
90496         * lib/closeout.h (close_stdout_set_status, close_stdout_status):
90497         Remove.
90498         * lib/closeout.c: Likewise.  Include "closeout.h" right after config.h,
90499         to test that it can stand by itself.  Include "exitfail.h".
90500         Clients should set exit_failure instead.
90501         (EXIT_FAILURE): Remove; no longer needed.  Do not include <stdlib.h>.
90502
90503 2003-07-18  Bruno Haible  <bruno@clisp.org>
90504
90505         * modules/getndelim2: New file.
90506         * modules/getline: Share files with module getndelim2.
90507         * modules/getnline: Depend on getndelim2 instead of sharing files with
90508         it. Add getnline.c to lib_SOURCES.
90509         * MODULES.html.sh (func_all_modules): Add getndelim2.
90510
90511 2003-07-18  Bruno Haible  <bruno@clisp.org>
90512
90513         * m4/getndelim2.m4: New file.
90514         * m4/getline.m4 (AM_FUNC_GETLINE): Add AC_LIBOBJ of getndelim2.c and
90515         invoke gl_PREREQ_GETNDELIM2.
90516         (gl_PREREQ_GETLINE): Drop AC_HEADER_STDC, now done by
90517         gl_PREREQ_GETNDELIM2.
90518         * m4/getnline.m4 (gl_GETNLINE): Drop AC_HEADER_STDC, now done by
90519         gl_GETNDELIM2.
90520
90521 2003-07-18  Bruno Haible  <bruno@clisp.org>
90522
90523         * lib/getndelim2.h: New file.
90524         * lib/getndelim2.c: Make into a module of its own. Include config.h,
90525         getndelim2.h.
90526         (getndelim2): Make non-static. Change return type to ssize_t.
90527         * lib/getline.h: Change argument names.
90528         * lib/getline.c: Include getndelim2.h instead of getndelim2.c.
90529         * lib/getnline.c: Include getndelim2.h.
90530
90531 2003-07-18  Andreas Schwab  <schwab@suse.de>
90532
90533         * lib/memcoll.c (memcoll) [!HAVE_STRCOLL]: Clear errno.
90534
90535 2003-07-17  Karl Berry  <karl@gnu.org>
90536
90537         * config/config.sub: update from prep.
90538
90539 2003-07-17  Bruno Haible  <bruno@clisp.org>
90540
90541         * modules/getnline: New file.
90542         * modules/getline: Add lib/getndelim2.c to source file list.
90543         * MODULES.html.sh (func_all_modules): Add getnline.
90544
90545 2003-07-17  Bruno Haible  <bruno@clisp.org>
90546
90547         * m4/getnline.m4: New file.
90548
90549 2003-07-17  Bruno Haible  <bruno@clisp.org>
90550
90551         * m4/Makefile.am.in: Remove file.
90552         * m4/Makefile.am: Remove file.
90553         * m4/Makefile.in: Remove file.
90554
90555 2003-07-17  Bruno Haible  <bruno@clisp.org>
90556
90557         * lib/getnline.h: New file.
90558         * lib/getnline.c: New file.
90559         * lib/getndelim2.c: New file, extracted from getline.c.
90560         (getndelim2): Renamed from getdelim2, with added nmax argument.
90561         * lib/getline.c: Include getndelim2.c.
90562         (getdelim2): Moved out to getndelim2.c.
90563         (getline, getdelim): Update.
90564
90565 2003-07-17  Bruno Haible  <bruno@clisp.org>
90566
90567         * lib/Makefile.am: Remove file.
90568         * lib/Makefile.in: Remove file.
90569
90570 2003-07-17  Bruno Haible  <bruno@clisp.org>
90571
90572         * configure.in: Remove file.
90573         * Makefile.in: Remove file.
90574
90575 2003-07-17  Bruno Haible  <bruno@clisp.org>
90576
90577         * MODULES.html.sh: Put the </BODY> right before </HTML>.
90578
90579 2003-07-16  Karl Berry  <karl@gnu.org>
90580
90581         * config/srclist-update: was running fixlicense twice, which caused
90582                 texinfo.tex to be nullified for some reason.  Simplify,
90583                 $gplsrc is no longer needed as far as I can see?
90584
90585 2003-07-16  Jim Meyering  <jim@meyering.net>
90586
90587         * modules/save-cwd: Depend on xgetcwd.  From Derek Price.
90588
90589 2003-07-15  Paul Eggert  <eggert@twinsun.com>
90590
90591         * config/srclist.txt: Get the following files from gettext-runtime/intl
90592         instead: config.charset, localcharset.c, localcharset.h, ref-add.sin,
90593         ref-del.sin.  From Bruno Haible.
90594         * config/srclist-update (fixfile): Change grep pattern again, since the
90595         previous fix didn't work (there was another trailing $).  Use
90596         '[$]' to escape the $s.
90597
90598 2003-07-15  Karl Berry  <karl@gnu.org>
90599
90600         * lib/vasnprintf.c: update from gettext.
90601
90602 2003-07-15  Karl Berry  <karl@gnu.org>
90603
90604         * config/srclist-update (fixfile): Change grep pattern, since 'Id'
90605         gets expanded when surrounded by '$'.
90606
90607 2003-07-15  Jim Meyering  <jim@meyering.net>
90608
90609         * modules/save-cwd: Don't depend on error.  From Derek Price.
90610
90611 2003-07-15  Jim Meyering  <jim@meyering.net>
90612
90613         * lib/makepath.c (make_path): Enclose diagnostic in _(...).
90614
90615 2003-07-14  Simon Josefsson  <jas@extundo.com>
90616
90617         * modules/mempcpy: New file.
90618         * MODULES.html.sh (func_all_modules): Add mempcpy.
90619
90620 2003-07-14  Simon Josefsson  <jas@extundo.com>
90621
90622         * m4/mempcpy.m4: New file.
90623
90624 2003-07-14  Simon Josefsson  <jas@extundo.com>
90625
90626         * lib/mempcpy.h: New file.
90627         * lib/mempcpy.c: New file.
90628
90629 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90630
90631         * modules/getdate, modules/posixtm: Depend on mktime.
90632
90633 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90634
90635         * lib/ceill.c, expl.c, floorl.c, frexpl.c, ldexpl.c, mathl.h,
90636         sincosl.c, sqrtl.c, trigl.c, trigl.h, poll.c, poll_.h, mkstemp.c,
90637         unicodeio.c, unicodeio.h, unlocked-io.h:
90638         Switch from LGPL to GPL.
90639
90640 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90641
90642         * lib/asnprintf.c, asprintf.c, config.charset, gettext.h,
90643         localcharset.c, localcharset.h, mkdtemp.c, printf-args.c,
90644         printf-args.h, printf-parse.c, printf-parse.h, ref-add.sin,
90645         ref-del.sin, setenv.c, unsetenv.c, vasnprintf.c, vasnprintf.h,
90646         vasprintf.c, vasprintf.h: Regenerate.  These files are now being
90647         updated automatically by ../config/srclist-update.  This changes
90648         their license from LPGL to GPL.
90649
90650 2003-07-14  Paul Eggert  <eggert@twinsun.com>
90651
90652         * config/srclist.txt: Add tons more gettext files.  $GETTEXT is now
90653         assumed to refer to the root of the most recent stable gettext version.
90654         * config/srclistvars.sh: Add defaults for eggert.
90655         * config/srclist-update: Convert LGPL to GPL in shell scripts, too.
90656         Match "This program" as well as "The program".  This is needed
90657         for gettext.
90658
90659 2003-07-14  Jim Meyering  <jim@meyering.net>
90660
90661         Don't emit diagnostics.  Let callers do that.
90662         * lib/save-cwd.c: Don't include "error.h".
90663         (save_cwd): Don't call error.  Ensure that errno is valid
90664         when returning nonzero.
90665
90666         * lib/save-cwd.h (restore_cwd): Update prototype.
90667         * lib/save-cwd.c (restore_cwd): Remove two parameters.
90668         Simplify.  Don't call error upon failure.  Let callers do that.
90669         (save_cwd): Mention that Irix 5.3 has the same problem as SunOS 4
90670         when auditing is enabled.  But don't bother updating the #if.
90671
90672 2003-07-11  Alexandre Duret-Lutz  <adl@gnu.org>
90673
90674         * lib/obstack.h (__INT_TO_PTR): Revert change of 2003-03-13;
90675         it breaks C++ compilation.
90676         [!__GNUC__ || !__STDC__] (obstack_finish): Cast result to void*.
90677
90678 2003-07-10  Simon Josefsson  <jas@extundo.com>
90679
90680         * modules/strchrnul (Makefile.am): Add strchrnul.h.
90681
90682 2003-07-10  Jim Meyering  <jim@meyering.net>
90683
90684         * m4/clock_time.m4: Remove trailing blank.
90685         * m4/intmax_t.m4: Likewise.
90686
90687 2003-07-10  Jim Meyering  <jim@meyering.net>
90688
90689         * lib/vasnprintf.c: Remove trailing blanks.
90690         Make cpp indentation consistent.
90691
90692 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90693
90694         * lib/alloca_.h, euidaccess.c, getpass.c, memrchr.c, obstack.h,
90695         posixver.c, strftime.c, strnlen.c, strverscmp.c:
90696         Switch from LGPL to GPL.
90697
90698 2003-07-09  Paul Eggert  <eggert@twinsun.com>
90699
90700         * config/srclist.txt: Sort sublists.  Add
90701         $LIBCSRC/sysdeps/generic/strtoul.c. In comments, add more libc files
90702         that differ from gnulib for one reason or another; we'd like this list
90703         to be smaller but for now let's document what we have.
90704
90705 2003-07-08  Paul Eggert  <eggert@twinsun.com>
90706
90707         * config/srclist-update: Port to POSIX 1003.1-2001 hosts by avoiding
90708         the use of GNU extensions.  Change "x=`eval echo $x`" to the shorter
90709         and sweeter "eval x=$x".
90710         * config/srclist.txt: Get lib/argp* from glibc.
90711
90712 2003-07-07  Paul Eggert  <eggert@twinsun.com>
90713
90714         * lib/mktime.c: Fix some boundary cases and remove need for floating
90715         point.
90716
90717         Issue a compile-time diagnostic if time_t is floating point, or if
90718         two's complement arithmetic is not in effect, or if arithmetic
90719         right shift does not propagate the sign.  These assumptions were
90720         all in the original code but they weren't checked.
90721
90722         (TIME_T_MIDPOINT, verify): New macros.
90723         (__isleap): Remove; it has integer overflow problems.
90724         (leapyear): New function, without those problems.
90725         (ydhms_tm_diff): Remove; splitting into two parts.
90726         (ydhms_diff): New function, containing the arithmetic part of
90727         the old ydhms_tm_diff function.  Issue a compile-time
90728         diagnostic if we are not using C99 integer division.
90729         Avoid casts when possible.
90730         (guess_time_tm): New function, containing the checking part of
90731         the old ydhms_tm_diff function.  Return the new value, rather than
90732         the difference between it and the old.  Accept a new argument T
90733         so that *T specifies the old value.  Check for overflow in the result.
90734
90735         (__mktime_internal): Use a time_t offset, not a long int offset.
90736         This undoes the 2003-06-04 change, which is no longer needed now
90737         that we have better overflow checking.
90738         (localtime_offset): Likewise.
90739
90740         (__mktime_internal): Avoid harmful overflow on hosts where time_t
90741         and long are 64-bit but int is only 32-bit.
90742         (ydhms_diff): Use long int to store year1 and yday1.
90743         Issue a compile-time diagnostic if long int is not wide enough.
90744
90745         (__mktime_internal): Use long int to store adjusted year and yday.
90746         Use plain C rather than preprocessor commands, if that doesn't
90747         affect efficiency.
90748         Check for overflow (and try to repair) after each probe
90749         rather than checking only at the very end.  This avoids some bugs
90750         (e.g., southern hemisphere, behind GMT, and GMT offset at minimum time
90751         does not equal GMT offset at maximum time).
90752         Use integer to check for overflow rather than floating point; this
90753         is more portable to non-IEEE hosts, and is a tad faster.
90754         When we detect that we are oscillating between two values,
90755         don't check whether tm_isdst has the requested value, since
90756         we already know the answer.  When tm_isdst has the wrong value,
90757         use a different heuristic to find the right one, based on the
90758         extreme values actually observed in practice in tz2003a,
90759         rather than the (overly optimistic) "previous 3 calendar quarters".
90760
90761         (not_equal_tm, print_tm, check_result): Use "const T" rather than
90762         "T const" to accommodate glibc style.
90763         (check_result): Use less-confusing report format.  "long" -> "long int.
90764         (main): Likewise.
90765         Don't loop if the iteration overflows time_t.
90766         Allow a negative step in the iteration.
90767
90768 2003-07-06  Karl Berry  <karl@gnu.org>
90769
90770         * config/depcomp: update from automake.
90771         * config/config.sub: update from prep.
90772
90773 2003-07-03  Karl Berry  <karl@gnu.org>
90774
90775         * config/config.guess: update from prep.
90776
90777 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90778
90779         * m4/xreadlink.m4 (gl_XREADLINK): Don't check for sys/types.h, since
90780         xreadlink.c now includes it unconditionally.
90781
90782 2003-07-01  Paul Eggert  <eggert@twinsun.com>
90783
90784         * lib/xreadlink.c: Include <sys/types.h> unconditionally, instead of
90785         having it depend on HAVE_SYS_TYPES_H.
90786
90787 2003-07-01  Bruno Haible  <bruno@clisp.org>
90788
90789         * m4/ssize_t.m4 (gt_TYPE_SSIZE_T): Don't include <unistd.h>.
90790         <sys/types.h> should be sufficient.
90791         Reported by Paul Eggert.
90792
90793 2003-06-26  Karl Berry  <karl@gnu.org>
90794
90795         * config/depcomp: update from automake.
90796
90797 2003-06-26  Bruno Haible  <bruno@clisp.org>
90798
90799         * modules/human: Depend on module stdbool.
90800
90801 2003-06-25  Bruno Haible  <bruno@clisp.org>
90802
90803         * modules/readlink: New file.
90804         * modules/xreadlink: Depend on it.
90805         * MODULES.html.sh (func_all_modules): Add readlink.
90806
90807 2003-06-25  Bruno Haible  <bruno@clisp.org>
90808
90809         * m4/readlink.m4: New file.
90810
90811 2003-06-25  Bruno Haible  <bruno@clisp.org>
90812
90813         * lib/readlink.c: New file.
90814
90815 2003-06-22  Karl Berry  <karl@gnu.org>
90816
90817         * config/srclist.txt: update mkinstalldirs from automake.
90818         * config/mkinstalldirs: update.
90819
90820 2003-06-22  Bruno Haible  <bruno@clisp.org>
90821
90822         Portability to mingw32.
90823         * m4/ssize_t.m4: New file, from GNU gettext.
90824         * m4/safe-read.m4 (gl_PREREQ_SAFE_READ): Require gt_TYPE_SSIZE_T.
90825         * m4/xreadlink.m4 (gl_XREADLINK): Require gt_TYPE_SSIZE_T.
90826
90827 2003-06-22  Bruno Haible  <bruno@clisp.org>
90828
90829         * modules/safe-read: Add m4/ssize_t.m4.
90830         * modules/xreadlink: Add m4/ssize_t.m4.
90831
90832 2003-06-20  Bruno Haible  <bruno@clisp.org>
90833
90834         Assume C89, so PARAMS isn't needed.
90835         * lib/unicodeio.h (PARAMS): Remove.
90836         * lib/unicodeio.c: Don't use PARAMS.
90837
90838 2003-06-18  Karl Berry  <karl@gnu.org>
90839
90840         * config/config.{guess,sub}: update from prep.
90841
90842 2003-06-18  Jim Meyering  <jim@meyering.net>
90843
90844         Merge changes from coreutils.
90845         * lib/readutmp.c: Include <string.h> and <stdlib.h> unconditionally.
90846         Remove explicit declarations of xmalloc and realloc.
90847         Include xalloc.h.
90848         (read_utmp): Remove anachronistic cast of xmalloc.
90849
90850 2003-06-17  Paul Eggert  <eggert@twinsun.com>
90851
90852         Assume C89, so PARAMS isn't needed.
90853         * lib/backupfile.h (PARAMS): Remove.  All uses removed.
90854         * lib/closeout.h, lib/dirname.h, lib/filemode.h, lib/fsusage.h,
90855         lib/getdate.h, lib/getline.h, lib/group-member.h, lib/hard-locale.h,
90856         lib/hash.h, lib/linebuffer.h, lib/long-options.h, lib/makepath.h,
90857         lib/memcasecmp.h, lib/memcoll.h, lib/modechange.h, lib/mountlist.h,
90858         lib/path-concat.h, lib/physmem.h, lib/posixtm.h, lib/quote.h,
90859         lib/readutmp.h, lib/same.h, lib/save-cwd.h, lib/savedir.h,
90860         lib/stdio-safer.h, lib/strtoimax.c, lib/strverscmp.h,
90861         lib/unistd-safer.h, lib/version-etc.h, lib/xalloc.h, lib/xreadlink.h,
90862         lib/xstrtod.h, lib/xstrtol.h: Likewise.
90863         * lib/filemode.h, lib/hard-locale.h, lib/memcoll.h, lib/modechange.h,
90864         lib/physmem.h, lib/same.h, lib/strverscmp.h: Do not include config.h;
90865         no longer needed. Anyway, config.h should always be included before any
90866         other file.
90867
90868 2003-06-11  Simon Josefsson  <jas@extundo.com>
90869
90870         * modules/sysexits: New file.
90871         * MODULES.html.sh (func_all_modules): Add sysexits.
90872
90873 2003-06-11  Simon Josefsson  <jas@extundo.com>
90874
90875         * lib/sysexit_.h: New file.
90876
90877 2003-06-11  Derek Price  <derek@ximbiot.com>
90878
90879         * lib/stat.c [LSTAT]: Compile/use slash_aware_lstat only if it is
90880         necessary.
90881
90882 2003-06-11  Bruno Haible  <bruno@clisp.org>
90883
90884         * m4/sysexits.m4: New file.
90885
90886 2003-06-10  Simon Josefsson  <jas@extundo.com>
90887
90888         * lib/argp.h: New file, from glibc.
90889         * lib/argp-ba.c: New file, from glibc.
90890         * lib/argp-eexst.c: New file, from glibc.
90891         * lib/argp-fmtstream.c: New file, from glibc.
90892         * lib/argp-fmtstream.h: New file, from glibc.
90893         * lib/argp-fs-xinl.c: New file, from glibc.
90894         * lib/argp-help.c: New file, from glibc.
90895         * lib/argp-namefrob.h: New file, from glibc.
90896         * lib/argp-parse.c: New file, from glibc.
90897         * lib/argp-pv.c: New file, from glibc.
90898         * lib/argp-pvh.c: New file, from glibc.
90899         * lib/argp-xinl.c: New file, from glibc.
90900
90901 2003-06-10  Simon Josefsson  <jas@extundo.com>
90902
90903         * modules/strchrnul: New file.
90904
90905 2003-06-10  Simon Josefsson  <jas@extundo.com>
90906
90907         * modules/argp: New file.
90908
90909 2003-06-10  Simon Josefsson  <jas@extundo.com>
90910
90911         * m4/strchrnul.m4: New file.
90912
90913 2003-06-10  Simon Josefsson  <jas@extundo.com>
90914
90915         * lib/strchrnul.h: New file.
90916         * lib/strchrnul.c: New file.
90917
90918 2003-06-10  Bruno Haible  <bruno@clisp.org>
90919
90920         * MODULES.html.sh (func_all_modules): Add strchrnul and argp.
90921
90922 2003-06-07  Karl Berry  <karl@gnu.org>
90923
90924         * config/config.{guess,sub}: update from prep.
90925
90926 2003-06-07  Jim Meyering  <jim@meyering.net>
90927
90928         * modules/strtod: Use $(...) notation, not @...@ for
90929         AC_REPLACE'd variables.
90930         * modules/localcharset: Likewise.
90931
90932 2003-06-07  Jim Meyering  <jim@meyering.net>
90933
90934         * lib/readtokens.h: Put `Free Software Foundation, Inc.'
90935         in place of my name in the copyright comment.
90936         Remove definition and uses of __P.
90937
90938         From coreutils.
90939         * lib/stat.c: Don't declare xmalloc explicitly.
90940         Instead, include "xalloc.h".
90941         * lib/readtokens.c (readtokens): Remove anachronistic casts of xmalloc,
90942         xrealloc, and xcalloc return values.
90943         * lib/xgetcwd.c (xgetcwd): Include "xgetcwd.h".
90944         Improve comment.
90945         * lib/xgetcwd.h: Remove definition/uses of PARAMS.
90946
90947 2003-06-07  Bruno Haible  <bruno@clisp.org>
90948
90949         * modules/poll (Makefile.am): Use explicit creation rule for poll.h, to
90950         avoid AC_CONFIG_LINKS.
90951         * modules/fnmatch (Makefile.am): Use explicit creation rule for
90952         fnmatch.h, to avoid AC_CONFIG_LINKS.
90953         * modules/alloca (Makefile.am): Make creation of alloca.h Ctrl-C safe.
90954
90955 2003-06-07  Bruno Haible  <bruno@clisp.org>
90956
90957         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH, gl_FUNC_FNMATCH_POSIX,
90958         gl_FUNC_FNMATCH_GNU): Set FNMATCH_H instead of invoking
90959         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90960         directory.
90961         * m4/poll.m4 (gl_FUNC_POLL): Set POLL_H instead of invoking
90962         AC_CONFIG_LINKS. Needed to allow for a different name of the lib
90963         directory.
90964
90965 2003-06-06  Jim Meyering  <jim@meyering.net>
90966
90967         Merge from coreutils.
90968         * lib/same.c: (same_name): Declare *_basename locals to be `const'.
90969         Consolidate declarations and initializations of *_base* locals.
90970
90971         Merge from coreutils.
90972         This avoids a core dump on systems without GNU putenv,
90973         when running `env -u SOME_ALREADY_UNSET_VARIABLE'.
90974         * lib/putenv.c (__set_errno, LOCK, UNLOCK): Define.
90975         (unsetenv): New static function, from GNU libc.
90976         (rpl_putenv): Use it.
90977
90978         * lib/modechange.c: Remove trailing blanks.
90979
90980         Merge from coreutils.
90981         * lib/fsusage.c: Remove declaration of statfs.
90982         It conflicted with one from OSF/1 5.1 in <sys/mount.h>.
90983
90984         * lib/posixtm.c: Include <stdbool.h> unconditionally.
90985
90986 2003-06-06  Jim Meyering  <jim@meyering.net>
90987
90988         * lib/stdbool_.h: Renamed from stdbool.h.in.
90989
90990 2003-06-06  Jim Meyering  <jim@meyering.net>
90991             Bruno Haible  <bruno@clisp.org>
90992
90993         * modules/stdbool: Reflect renaming: stdbool.h.in -> stdbool_.h.
90994         Adjust Makefile.am snippet not to redirect directly to target.
90995         Use $(STDBOOL_H) notation, not @STDBOOL_H@ for AC_REPLACE'd variables.
90996
90997 2003-06-05  Paul Eggert  <eggert@twinsun.com>
90998
90999         * lib/mktime.c (__mktime_internal): When resolving a tm_isdst
91000         mismatch, look in future quarters as well as past.  This fixes a
91001         bug when processing fall-backwards gaps immediately after a long
91002         period of daylight-saving time.
91003
91004         * lib/mktime.c: Assume freestanding C89 or better.
91005         (HAVE_LIMITS_H): Remove.  Assume it's 1.
91006         (__P): Remove; not used.
91007         (CHAR_BIT, INT_MIN, INT_MAX): Remove; <limits.h> defines them.
91008         (mktime, not_equal_tm, print_tm, check_result,
91009         main): Use prototypes.  Use const * where appropriate.
91010         (main): Fix typo in testing code that uncovered by above changes.
91011         (Local Variables): Remove -DHAVE_LIMITS_H from compile-command.
91012
91013 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91014
91015         * m4/human.m4 (gl_HUMAN): Require AM_STDBOOL_H.  Check for
91016         locale.h, localeconv.  This merges changes from coreutils.
91017
91018         * m4/mktime.m4 (AC_FUNC_MKTIME): New macro, taken from Autoconf CVS.
91019         It can be removed after the next Autoconf is released.
91020         * m4/exclude.m4 (gl_EXCLUDE): Don't check for sys/types.h; no loner
91021         needed.
91022
91023 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91024
91025         * lib/mktime.c: Fix Debian bug 177940
91026         <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=177940>.
91027         (localtime_offset): Now long int, not time_t, because we want it
91028         to be guaranteed to be signed.  All uses changed.
91029         (__mktime_internal): If overflow would occur when adding offset,
91030         don't add it.
91031
91032         Merge 'human' changes from coreutils.  Rewrite to support
91033         locale-specific notations like thousands separators.
91034         * lib/human.c: Simplify authorship notice.
91035         Include human.h immediately after config.h.
91036         <sys/types.h>, <stdio.h>: Do not include; no longer needed.
91037         <limits.h>: Do not include, since human.h does.
91038         (SIZE_MAX, UINTMAX_MAX): New macros.
91039         <strings.h>: Include if HAVE_STRINGS_H, not if !HAVE_STRING_H.
91040         <locale.h>: Include if HAVE_LOCALE_H and HAVE_LOCALECONV.
91041         (HUMAN_READABLE_SUFFIX_LENGTH_MAX): New macro.
91042         (power_letter): Renamed from suffixes.
91043         (generate_suffix_backwards): Remove.
91044         (adjust_value): Now takes int style (because of human.h changes)
91045         and long double value (for greater precision on some platforms).
91046         (group_number): New function.
91047         (human_readable): Use it.  Use integer options, not enum.
91048         Put the options before the sizes in the arg list.
91049         Support all the new options.
91050         The old human_readable function has been removed;
91051         use inttostr.h instead.
91052         (human_readable, default_block_size, humblock):
91053         Use uintmax_t, not int, for block sizes.
91054         (human_readable_inexact, block_size_types): Remove.
91055         (block_size_opts): New constant.
91056         (human_options): Renamed from human_block_size, with new signature
91057         that allows block sizes up to UINTMAX_MAX.  All callers changed.
91058         * lib/human.h: Add copyright and authorship notice.
91059         Include <limits.h> and <stdbool.h> unconditionally.
91060         (PARAMS): Remove.  All uses removed.
91061         (LONGEST_HUMAN_READABLE): Add support for thousands separator.
91062         (enum human_inexact_style): Remove tag; now a nameless enum.
91063         (human_floor, human_ceiling, human_round_to_even): Now have
91064         values 2, 0, 1 rather than -1, 1, 0.
91065         (human_group_digits, human_suppress_point_zero, human_autoscale,
91066         human_base_1024, human_SI, human_B): New constants.
91067         (human_readable_inexact, human_block_size): Remove.
91068         (human_readable): Size args are now uintmax_t, not int.
91069         (human_options): New decl.
91070
91071         * lib/exclude.c: (new_exclude, add_exclude): Remove casts that are
91072         unnecessary now that we assume C89 or better.  This change
91073         imported from coreutils.
91074
91075         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91076         arbitrarily.  This is the same patch as 2003-05-28, but it got lost
91077         in the 2003-05-30 sync from glibc.
91078
91079         .h files should stand alone, but we shouldn't include <sys/types.h>
91080         if we can get away with just <stddef.h>.
91081
91082         * lib/__fpending.h, addext.c, backupfile.c, exclude.c, getline.c,
91083         malloc.c, putenv.c, realloc.c, strcasecmp.c: Include <stddef.h>
91084         rather than <sys/types.h>, as we merely need size_t.
91085         * lib/dirname.h, memcoll.h, xalloc.h, xmemcoll.h: Include <stddef.h>,
91086         to get size_t.
91087         * lib/hash.h, linebuffer.h, readtokens.h, stdio-safer.h, version-etc.h:
91088         Include <stdio.h>, to get FILE.
91089         * lib/memcasecmp.c: Don't include <sys/types.h>, as we can assume
91090         memcasecmp.h has included <stddef.h> and all we need is size_t.
91091         * lib/memcoll.c: Include "memcoll.h", which gets us size_t and checks
91092         our interface, instead of including <sys/types.h>
91093
91094 2003-06-04  Paul Eggert  <eggert@twinsun.com>
91095
91096         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): Comment out for
91097         now, as glibc mktime is buggy on non-glibc systems.
91098
91099 2003-06-03  Karl Berry  <karl@gnu.org>
91100
91101         * config/config.sub: update from prep.
91102
91103 2003-06-02  Paul Eggert  <eggert@twinsun.com>
91104
91105         [from coreutils]
91106         Fix some minor time-related bugs with POSIX time arguments.
91107         Some valid time stamps were being rejected (notably -1, and
91108         time stamps before 1900 on 64-bit hosts).  And some invalid
91109         time stamps were being accepted, e.g. September 31.
91110
91111         * lib/posixtm.h (posixtime): Return bool instead of time_t, so
91112         that we can return (time_t) -1 successfully.
91113         * lib/posixtm.c: Likewise.
91114         [HAVE_STDBOOL_H]: Include <stdbool.h>.
91115         (bool, false, true) [!HAVE_STDBOOL_H]: New type.
91116         (t): Remove static var.
91117         (year, posix_time_parse): Now takes struct tm * arg to modify, instead
91118         of static var.  All uses changed.
91119         (year): Do not reject years before 1900; they can occur with
91120         64-bit time_t.
91121         (posix_time_parse): Do not check for out-of-range components;
91122         that is now the caller's responsibility, since our checks were
91123         only approximations.
91124         (posixtime): Use mktime to check for out-of-range components,
91125         since it knows them exactly.
91126         If mktime returns (time_t) -1, check whether an error actually occurred
91127         by invoking localtime on -1.
91128         (main) [TEST_POSIXTIME]: Check for input data errors, and report
91129         posixtime failures better.
91130         Improve the test data (in comments only).
91131
91132 2003-06-02  Karl Berry  <karl@gnu.org>
91133
91134         * config/mkinstalldirs (version): new variable.
91135         (--version): new option.
91136         (usage): improve message.
91137
91138 2003-05-30  Karl Berry  <karl@gnu.org>
91139
91140         * lib/mktime.c: update from libc.
91141
91142 2003-05-30  Bruno Haible  <bruno@clisp.org>
91143
91144         * modules/gettext: Add files m4/nls.m4 and m4/po.m4.
91145         * config/config.rpath: Upgrade to gettext-0.12.1.
91146
91147 2003-05-30  Bruno Haible  <bruno@clisp.org>
91148
91149         * m4/gettext.m4: Upgrade to gettext-0.12.1.
91150         * m4/nls.m4: New file, from gettext-0.12.1.
91151         * m4/po.m4: New file, from gettext-0.12.1.
91152         * m4/progtest.m4: Upgrade to gettext-0.12.1.
91153
91154 2003-05-30  Bruno Haible  <bruno@clisp.org>
91155
91156         * lib/config.charset: Upgrade to gettext-0.12.1 and libiconv-1.9.1.
91157         * lib/localcharset.h: Likewise.
91158         * lib/localcharset.c: Likewise.
91159
91160 2003-05-29  Karl Berry  <karl@gnu.org>
91161
91162         * config/config.rpath: update from gettext.
91163
91164 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91165
91166         Assume the headers required for C89 freestanding compilers.
91167         * m4/backupfile.m4 (gl_BACKUPFILE): Don't check for limits.h.
91168         * m4/fsusage.m4 (gl_PREREQ_FSUSAGE_EXTRA): Likewise.
91169         * m4/human.m4 (gl_HUMAN): Likewise.
91170         * m4/pathmax.m4 (gl_PATHMAX): Likewise.
91171         * m4/rpmatch.m4 (gl_FUNC_RPMATCH): Likewise.
91172         * m4/userspec.m4 (gl_USERSPEC): Likewise.
91173         * m4/xreadlink.m4 (gl_XREADLINK): Likewise.
91174         * m4/xstrtol.m4 (gl_PREREQ_XSTRTOL): Likewise.
91175         * m4/quote.m4 (gl_QUOTE): Don't check for stddef.h.
91176
91177 2003-05-28  Paul Eggert  <eggert@twinsun.com>
91178
91179         Assume the headers required for C89 freestanding compilers.
91180         * lib/addext.c, lib/backupfile.c, lib/fsusage.c, lib/human.c,
91181         lib/pathmax.h, lib/rpmatch.c, lib/userspec.c, lib/xreadlink.c,
91182         lib/xstrtol.c: Include <limits.h> without checking for HAVE_LIMITS_H.
91183         * lib/backupfile.c, lib/fsusage.c, lib/hash.c, lib/human.c,
91184         lib/safe-read.c, lib/userspec.c, lib/xstrtol.c (CHAR_BIT): Don't
91185         define, since <limits.h> is guaranteed to do that.
91186         * lib/fatal.c: Include <stdarg.h> without checking for __STDC__.
91187         * lib/exclude.c: Include <stdbool.h> unconditionally.
91188         * lib/tempname.c: Include <stddef.h> unconditionally.
91189         * lib/hash.c: Include <limits.h>, since we no longer define CHAR_BIT.
91190         * lib/modechange.c, rpmatch.c (NULL): Don't define, since
91191         <stddef.h> does that.
91192         * lib/quote.c: Dont include <stddef.h> or <sys/types.h>; not needed.
91193         * lib/safe-read.c (INT_MAX): Don't define, since <limits.h> does that.
91194         * lib/safe-read.c (TYPE_MINIMUM, TYPE_MAXIMUM): Remove; no longer
91195         needed.
91196         * lib/xstrtol.c: Likewise.
91197         * lib/safe-read.c: Remove TYPE_SIGNED; no longer needed.
91198         * lib/savedir.c: Include <stddef.h> instead of defining NULL.
91199
91200         * lib/addext.c (addext): Use assignment rather than cast, to avoid
91201         warnings on some platforms.
91202
91203         * lib/mktime.c (__mktime_internal): Do not reject negative timestamps
91204         arbitrarily.
91205
91206 2003-05-26  Jim Meyering  <jim@meyering.net>
91207
91208         Merge in a change from coreutils:
91209         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Test the cache variable, not one
91210         that is guaranteed to be `no'.  Use `no_such_member' to indicate
91211         that condition, rather than `-1' which is slightly misleading.
91212         Change the name of the cache variable to have the gl_ prefix.
91213         Prompted by a patch from Richard Dawe for DJGPP.
91214
91215 2003-05-24  Karl Berry  <karl@gnu.org>
91216
91217         * config/config.guess: update from prep.
91218
91219 2003-05-22  Karl Berry  <karl@gnu.org>
91220
91221         * gnulib-tool (func_usage): =LIBRARY not =libRARY in help msg.
91222
91223 2003-05-20  Karl Berry  <karl@gnu.org>
91224
91225         * config/config.guess: update from prep.
91226
91227 2003-05-18  Karl Berry  <karl@gnu.org>
91228
91229         * config/srclistvars.sh (TEXMF): use TEXMFROOT instead, since TEXMF
91230         might actually be set by the user.
91231
91232         * config/depcomp, install-sh, mdate-sh: update from automake.
91233
91234 2003-05-17  Bruno Haible  <bruno@clisp.org>
91235
91236         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Fix a quoting bug leading to an
91237         invalid expansion for AC_EGREP_CPP.
91238         * m4/strtoimax.m4 (gl_FUNC_STRTOIMAX): Likewise.
91239         * m4/strtoumax.m4 (gl_FUNC_STRTOUMAX): Likewise.
91240         Suggested by Akim Demaille <akim@epita.fr> in
91241         http://mail.gnu.org/archive/html/bug-autoconf/2003-05/threads.html
91242
91243 2003-05-12  Jim Meyering  <jim@meyering.net>
91244
91245         * lib/strftime.c (my_strftime): Let the `-' (no-pad) flag affect
91246         the space-padded-by-default conversion specifiers, %e, %k, %l.
91247
91248 2003-05-12  Bruno Haible  <bruno@clisp.org>
91249
91250         * lib/linebreak.c (iconv_string_length): Don't return -1 just because
91251         the string is longer than 4 KB.
91252
91253 2003-05-11  Karl Berry  <karl@gnu.org>
91254
91255         * config/config.{guess,sub}: update from prep.
91256
91257 2003-05-09  Bruno Haible  <bruno@clisp.org>
91258
91259         * modules/error: Add m4/strerror_r.m4 to file list.
91260
91261 2003-05-03  Bruno Haible  <bruno@clisp.org>
91262
91263         Upgrade to Unicode-4.0.
91264         * lib/linebreak.c (nonspacing_table_data): Change width of U+00AD,
91265         U+0350..U+0357, U+035D..U+035F, U+0600..U+0603, U+0610..U+0615,
91266         U+0656..U+0658, U+0A01, U+0AE2..U+0AE3, U+0CBC, U+17B4..U+17B5,
91267         U+17DD, U+1920..U+1922, U+1927..U+192B, U+1932, U+1939..U+193B
91268         from 1 to 0. Change width of U+0CBF, U+0CC6, U+180E from 0 to 1.
91269         (uc_width): Change width of U+4DC0..U+4DFF from 2 to 1. Change width
91270         of U+2A6D7..U+2F7FF, U+2FA1E..U+2FFFD, U+30000..U+3FFFD from 1 to 2.
91271         Change width of U+E0100..U+E01EF from 1 to 0.
91272
91273 2003-04-25  Jim Meyering  <jim@meyering.net>
91274
91275         * lib/copy-file.c (copy_file_preserving): Declare buf_size to be
91276         of type size_t, not int.
91277
91278 2003-04-25  Bruno Haible  <bruno@clisp.org>
91279
91280         * lib/copy-file.c: Include <stddef.h>, for size_t.
91281
91282 2003-04-21  Paul Eggert  <eggert@twinsun.com>
91283
91284         * m4/error.m4 (gl_ERROR): Do not put under dynamic conditions some
91285         code which expansion is under static control.  Patch imported from
91286         Akim Demaille's patch to Bison; see
91287         <http://mail.gnu.org/archive/html/bison-patches/2003-03/msg00057.html>.
91288
91289 2003-04-14  Bruno Haible  <bruno@clisp.org>
91290
91291         * m4/error.m4 (jm_PREREQ_ERROR): Use AC_FUNC_VPRINTF.
91292
91293 2003-04-11  Jim Meyering  <jim@meyering.net>
91294
91295         Merge changes from Coreutils.
91296
91297         2003-03-22  Jim Meyering  <jim@meyering.net>
91298
91299         * lib/strftime.c (widen): Cast alloca return value to proper type.
91300
91301         2003-01-19  Ulrich Drepper  <drepper@redhat.com>
91302
91303         From GNU libc.
91304         * lib/strftime.c (my_strftime): Handle very large width
91305         specifications for numeric values correctly.  Improve checks for
91306         overflow.
91307
91308         2003-01-19  Jim Meyering  <jim@meyering.net>
91309
91310         * lib/strftime.c (widen) [COMPILE_WIDE]: Merge nearly-identical
91311         definitions.
91312         (nl_get_alt_digit) [! defined my_strftime]: Define.
91313         (my_strftime) [_NL_CURRENT]: Merge nearly-identical uses of
91314         _nl_get_alt_digit and _nl_get_walt_digit.
91315
91316         * lib/strftime.c (my_strftime): Merge in locale-related changes from
91317         libc. These changes have no effect outside of _LIBC.
91318
91319 2003-04-10  Bruno Haible  <bruno@clisp.org>
91320
91321         * modules/findprog: New file.
91322         * MODULES.html.sh (func_all_modules): Add it.
91323
91324 2003-04-10  Bruno Haible  <bruno@clisp.org>
91325
91326         * m4/findprog.m4: New file.
91327         * m4/eaccess.m4: New file.
91328
91329 2003-04-10  Bruno Haible  <bruno@clisp.org>
91330
91331         * lib/findprog.h: New file, from GNU gettext.
91332         * lib/findprog.c: New file, from GNU gettext.
91333
91334 2003-04-05  Jim Meyering  <jim@meyering.net>
91335
91336         Merge changes from Coreutils.
91337
91338         * lib/exclude.h (PARAMS): Remove definition and uses.
91339         * lib/exclude.c: Remove uses of `PARAMS'.
91340
91341         * lib/dirname.c [TEST_DIRNAME]: Update build instructions for test.
91342         Add test-cases for DOS filenames. Declare program_name.
91343         (main): Set up program_name.  Patch by Rich Dawe.
91344
91345         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Detect any
91346         error from mntctl.
91347         Use mntctl's return value to drive the entry-processing loop, since
91348         we can't rely on the value of the vmt_length member in the last
91349         entry.  On some systems doing so could result in exhausting
91350         virtual memory.  Based in part on a patch from Mike Jetzer.
91351
91352 2003-04-04  Bruno Haible  <bruno@clisp.org>
91353
91354         * modules/linebreak: New file.
91355         * MODULES.html.sh (func_all_modules): Add it.
91356
91357 2003-04-04  Bruno Haible  <bruno@clisp.org>
91358
91359         * m4/linebreak.m4: New file.
91360
91361 2003-04-04  Bruno Haible  <bruno@clisp.org>
91362
91363         * lib/linebreak.h: New file, from GNU gettext.
91364         * lib/linebreak.c: New file, from GNU gettext with slight
91365         modifications.
91366         * lib/lbrkprop.h: New file, from GNU gettext.
91367
91368 2003-04-03  Bruno Haible  <bruno@clisp.org>
91369
91370         * modules/utf8-ucs4: New file.
91371         * modules/utf16-ucs4: New file.
91372         * modules/ucs4-utf8: New file.
91373         * modules/ucs4-utf16: New file.
91374         * MODULES.html.sh (func_all_modules): Add them.
91375
91376 2003-04-03  Bruno Haible  <bruno@clisp.org>
91377
91378         * m4/utf-ucs4.m4: New file.
91379         * m4/ucs4-utf.m4: New file.
91380
91381 2003-04-03  Bruno Haible  <bruno@clisp.org>
91382
91383         * lib/utf8-ucs4.h: New file, from GNU gettext.
91384         * lib/utf16-ucs4.h: New file, from GNU gettext.
91385         * lib/ucs4-utf8.h: New file, from GNU gettext.
91386         * lib/ucs4-utf16.h: New file, from GNU gettext.
91387
91388 2003-04-02  Bruno Haible  <bruno@clisp.org>
91389
91390         * modules/binary-io: New file.
91391         * MODULES.html.sh (func_all_modules): Add it.
91392
91393 2003-04-02  Bruno Haible  <bruno@clisp.org>
91394
91395         * lib/binary-io.h: New file, from GNU gettext.
91396
91397 2003-04-01  Bruno Haible  <bruno@clisp.org>
91398
91399         * modules/pathname: New file.
91400         * MODULES.html.sh (func_all_modules): Add it.
91401
91402 2003-04-01  Bruno Haible  <bruno@clisp.org>
91403
91404         * lib/pathname.h: New file, from GNU gettext.
91405         * lib/concatpath.c: New file, from GNU gettext.
91406
91407 2003-03-30  Bruno Haible  <bruno@clisp.org>
91408
91409         * m4/copy-file.m4 (gl_COPY_FILE): Add check for chown().
91410
91411 2003-03-30  Bruno Haible  <bruno@clisp.org>
91412
91413         * lib/copy-file.c (copy_file_preserving): Don't set owner if the
91414         function chown() doesn't exist.
91415
91416 2003-03-28  Bruno Haible  <bruno@clisp.org>
91417
91418         * modules/copy-file: New file.
91419         * MODULES.html.sh (func_all_modules): Add it.
91420
91421 2003-03-28  Bruno Haible  <bruno@clisp.org>
91422
91423         * m4/copy-file.m4: New file.
91424
91425 2003-03-28  Bruno Haible  <bruno@clisp.org>
91426
91427         * lib/copy-file.h: New file, from GNU gettext.
91428         * lib/copy-file.c: New file, from GNU gettext.
91429
91430 2003-03-18  Jim Meyering  <jim@meyering.net>
91431
91432         * lib/quote.c (quote_n): Fix typo in comment.
91433
91434 2003-03-18  Bruno Haible  <bruno@clisp.org>
91435
91436         * m4/onceonly.m4: Use m4_defn instead of defn, for better error
91437         checking.
91438         * m4/onceonly_2_57.m4: Likewise.
91439
91440 2003-03-17  Bruno Haible  <bruno@clisp.org>
91441
91442         * m4/onceonly.m4: Require autoconf 2.54 or newer.
91443         (m4_quote): Remove macro.
91444         * m4/onceonly_2_57.m4: Require autoconf 2.54 or newer.
91445
91446 2003-03-14  Jim Meyering  <jim@meyering.net>
91447
91448         Merge changes from Coreutils.
91449         * lib/obstack.h (obstack_object_size): Declare temporary, __o,
91450         to be const, in order to avoid warnings.
91451         (obstack_room): Likewise.
91452         (obstack_empty_p): Likewise.
91453
91454 2003-03-14  Bruno Haible  <bruno@clisp.org>
91455
91456         * m4/onceonly_2_57.m4 (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE,
91457         AC_CHECK_DECLS_ONCE): Quote AC_FOREACH variable-expansions properly.
91458
91459 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91460
91461         Merge changes from Bison.
91462         * lib/obstack.h: (__INT_TO_PTR) [__STDC__]: Cast result to
91463         (void *) to avoid diagnostic with native c89 on SGI IRIX 6.5
91464         when compiling Bison 1.875's `bitset bset = obstack_alloc
91465         (bobstack, bytes);'.  Problem reported by Nelson H. F. Beebe.
91466         * lib/hash.c: Include <stdbool.h> unconditionally.
91467
91468 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91469
91470         * m4/onceonly.m4 (m4_quote): New macro.
91471         (AC_CHECK_HEADERS_ONCE, AC_CHECK_FUNCS_ONCE, AC_CHECK_DECLS_ONCE):
91472         Quote AC_FOREACH variable-expansions properly.
91473
91474 2003-03-13  Paul Eggert  <eggert@twinsun.com>
91475
91476         * doc/COPYING.DOC, fdl.texi: Sync with latest FSF version.
91477
91478 2003-03-09  Paul Eggert  <eggert@twinsun.com>
91479
91480         * lib/argmatch.c (EXIT_FAILURE): Define if the system doesn't.
91481         Reported by Bruce Becker; see:
91482         http://mail.gnu.org/archive/html/bug-bison/2003-03/msg00017.html
91483
91484 2003-03-03  Paul Eggert  <eggert@twinsun.com>
91485             Bruno Haible  <bruno@clisp.org>
91486
91487         * lib/mbswidth.h: Include <wchar.h>. Needed for UnixWare 7.1.1.
91488         Reported by John Hughes, see
91489         http://mail.gnu.org/archive/html/bug-bison/2003-02/msg00030.html
91490
91491 2003-02-20  Bruno Haible  <bruno@clisp.org>
91492
91493         * MODULES.html.sh (func_all_modules): Add poll.
91494
91495 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91496
91497         * modules/poll: New file.
91498
91499 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91500
91501         * lib/poll_.h: New file.
91502         * lib/poll.c: New file.
91503
91504 2003-02-19  Paolo Bonzini  <bonzini@gnu.org>
91505
91506         * m4/poll.m4: New file.
91507
91508 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91509
91510         * modules/mathl: New file.
91511
91512 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91513
91514         * lib/mathl.h: New file.
91515         * lib/acosl.c: New file.
91516         * lib/asinl.c: New file.
91517         * lib/atanl.c: New file.
91518         * lib/ceill.c: New file.
91519         * lib/cosl.c: New file.
91520         * lib/expl.c: New file.
91521         * lib/floorl.c: New file.
91522         * lib/frexpl.c: New file.
91523         * lib/ldexpl.c: New file.
91524         * lib/logl.c: New file.
91525         * lib/sincosl.c: New file.
91526         * lib/sinl.c: New file.
91527         * lib/sqrtl.c: New file.
91528         * lib/tanl.c: New file.
91529         * lib/trigl.c: New file.
91530         * lib/trigl.h: New file.
91531
91532 2003-02-18  Paolo Bonzini  <bonzini@gnu.org>
91533
91534         * m4/mathl.m4: New file.
91535
91536 2003-02-18  Bruno Haible  <bruno@clisp.org>
91537
91538         * MODULES.html.sh (func_all_modules): Add mathl.
91539
91540 2003-02-17  Bruno Haible  <bruno@clisp.org>
91541
91542         * modules/mkdtemp: New module.
91543         * MODULES.html.sh (func_all_modules): Add it.
91544
91545 2003-02-17  Bruno Haible  <bruno@clisp.org>
91546
91547         * m4/mkdtemp.m4: New file, from GNU gettext with modifications.
91548
91549 2003-02-17  Bruno Haible  <bruno@clisp.org>
91550
91551         * lib/mkdtemp.h: New file, from GNU gettext.
91552         * lib/mkdtemp.c: New file, from GNU gettext.
91553
91554 2003-02-02  Jim Meyering  <jim@meyering.net>
91555
91556         * m4/regex.m4 (jm_INCLUDED_REGEX): Detect broken re_search in
91557         e.g. glibc-2.2.93.
91558
91559 2003-01-31  Bruno Haible  <bruno@clisp.org>
91560
91561         * m4/rename.m4 (vb_FUNC_RENAME): Add a redirection from 'rename' to
91562         'rpl_rename'.
91563         * m4/strnlen.m4 (gl_FUNC_STRNLEN): Add a redirection from 'strnlen' to
91564         'rpl_strnlen'.
91565         * m4/strtod.m4 (gl_FUNC_STRTOD): Add a redirection from 'strtod' to
91566         'rpl_strtod'.
91567         * m4/utime.m4 (jm_FUNC_UTIME): Add a redirection from 'utime' to
91568         'rpl_utime'.
91569
91570 2003-01-31  Bruno Haible  <bruno@clisp.org>
91571
91572         * lib/rename.c: #undef rename before defining rpl_rename.
91573         * lib/strnlen.c: #undef strnlen, define rpl_strnlen instead of strnlen.
91574
91575 2003-01-30  Bruno Haible  <bruno@clisp.org>
91576
91577         * modules/vasnprintf, modules/vasprintf: New modules.
91578         * MODULES.html.sh (func_all_modules): Add them.
91579
91580 2003-01-30  Bruno Haible  <bruno@clisp.org>
91581
91582         * m4/signed.m4: New file, from GNU gettext.
91583         * m4/longdouble.m4: New file, from GNU gettext.
91584         * m4/wchar_t.m4: New file, from GNU gettext.
91585         * m4/wint_t.m4: New file, from GNU gettext.
91586         * m4/vasnprintf.m4: New file.
91587         * m4/vasprintf.m4: New file.
91588
91589 2003-01-30  Bruno Haible  <bruno@clisp.org>
91590
91591         * lib/printf-args.h: New file, from GNU gettext.
91592         * lib/printf-args.c: New file, from GNU gettext.
91593         * lib/printf-parse.h: New file, from GNU gettext.
91594         * lib/printf-parse.c: New file, from GNU gettext.
91595         * lib/vasnprintf.h: New file, from GNU gettext.
91596         * lib/vasnprintf.c: New file, from GNU gettext.
91597         * lib/asnprintf.c: New file, from GNU gettext.
91598         * lib/vasprintf.h: New file, from GNU gettext with modifications.
91599         * lib/vasprintf.c: New file, from GNU gettext.
91600         * lib/asprintf.c: New file, from GNU gettext.
91601
91602 2003-01-29  Bruno Haible  <bruno@clisp.org>
91603
91604         * modules/stpncpy: New module.
91605         * MODULES.html.sh (func_all_modules): Add it.
91606
91607 2003-01-29  Bruno Haible  <bruno@clisp.org>
91608
91609         * m4/stpncpy.m4: New file.
91610
91611 2003-01-29  Bruno Haible  <bruno@clisp.org>
91612
91613         * lib/stpncpy.h: New file, from GNU gettext with modifications.
91614         * lib/stpncpy.c: New file, from GNU gettext with modifications.
91615
91616 2003-01-28  Bruno Haible  <bruno@clisp.org>
91617
91618         * modules/c-ctype: New module.
91619         * MODULES.html.sh (func_all_modules): Add it.
91620
91621 2003-01-28  Bruno Haible  <bruno@clisp.org>
91622
91623         * lib/c-ctype.h: New file, from GNU gettext, with changes suggested by
91624         Paul Eggert.
91625         * lib/c-ctype.c: New file, from GNU gettext, with changes suggested by
91626         Paul Eggert.
91627
91628 2003-01-27  Bruno Haible  <bruno@clisp.org>
91629
91630         * modules/xsetenv: New module.
91631         * MODULES.html.sh (func_all_modules): Add it.
91632
91633 2003-01-27  Bruno Haible  <bruno@clisp.org>
91634
91635         * lib/xsetenv.h: New file, from GNU gettext.
91636         * lib/xsetenv.c: New file, from GNU gettext.
91637
91638 2003-01-23  Jim Meyering  <jim@meyering.net>
91639
91640         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Correct typo: s/-1/no/ that kept this
91641         from working on systems without dirfd (at least Irix and OSF1/Tru64).
91642
91643 2003-01-23  Bruno Haible  <bruno@clisp.org>
91644
91645         * modules/minmax: New module.
91646         * MODULES.html.sh (func_all_modules): Add it.
91647
91648 2003-01-23  Bruno Haible  <bruno@clisp.org>
91649
91650         * lib/minmax.h: New file, from GNU gettext, with comments from Paul
91651         Eggert.
91652
91653 2003-01-22  Bruno Haible  <bruno@clisp.org>
91654
91655         * modules/exit: New module.
91656         * MODULES.html.sh (func_all_modules): Add it.
91657
91658 2003-01-22  Bruno Haible  <bruno@clisp.org>
91659
91660         * lib/exit.h: New file, from GNU gettext.
91661
91662 2003-01-19  Bruno Haible  <bruno@clisp.org>
91663
91664         * gnulib-tool: Recognize option --extract-maintainer.
91665         (func_get_maintainer): New function.
91666         * modules/*: Add Maintainer entry.
91667
91668 2003-01-16  Jim Meyering  <jim@meyering.net>
91669
91670         * m4/regex.m4: The `regex' struct is both input and output.
91671         Initialize it before each use.  Patch by Tim Waugh.
91672
91673 2003-01-16  Bruno Haible  <bruno@clisp.org>
91674
91675         * MODULES.html.sh: Add a table of contents. Add the module name as
91676         leftmost column. Add hyperlinks.
91677
91678 2003-01-15  Bruno Haible  <bruno@clisp.org>
91679
91680         * m4/md5.m4 (gl_MD5): Require AC_C_INLINE.
91681
91682 2003-01-15  Bruno Haible  <bruno@clisp.org>
91683
91684         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): Also test the LL suffix.
91685         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Also test the ULL
91686         suffix.
91687
91688 2003-01-15  Bruno Haible  <bruno@clisp.org>
91689
91690         * m4/alloca.m4 (gl_FUNC_ALLOCA): Invoke AC_EGREP_CPP prerequisites.
91691
91692 2003-01-15  Bruno Haible  <bruno@clisp.org>
91693
91694         * lib/stpcpy.h (stpcpy): Use ANSI C function declarations.
91695         * lib/strcase.h (strcasecmp, strncasecmp): Likewise.
91696
91697 2003-01-14  Jim Meyering  <jim@meyering.net>
91698
91699         * lib/same.c (same_name): Tweak a comment.
91700
91701 2003-01-14  Bruno Haible  <bruno@clisp.org>
91702
91703         * lib/same.c (same_name): Reorder tests so as to avoid calling stat()
91704         when a string comparison is sufficient.
91705
91706 2003-01-14  Bruno Haible  <bruno@clisp.org>
91707
91708         * lib/readtokens.c (readtoken): Cast character to 'unsigned char', not
91709         'unsigned int'.
91710
91711 2003-01-14  Bruno Haible  <bruno@clisp.org>
91712
91713         * lib/hash-pjw.c: Add comment about low quality of this function.
91714
91715 2003-01-13  Bruno Haible  <bruno@clisp.org>
91716
91717         * modules/stpcpy: Distribute lib/stpcpy.h.
91718         * modules/setenv: Depend on alloca. Distribute lib/setenv.h.
91719
91720 2003-01-13  Bruno Haible  <bruno@clisp.org>
91721
91722         * modules/*: Add a description.
91723         * modules/strpbrk: Fix Makefile.am snippet.
91724         * modules/strtoimax: Fix dependencies.
91725         * modules/strtoumax: Likewise.
91726
91727 2003-01-13  Bruno Haible  <bruno@clisp.org>
91728
91729         * gnulib-tool (func_create_testdir): Substitute lib_OBJECTS.
91730         * modules/alloca (Makefile.am): All object files depend on alloca.h.
91731         * modules/stdbool (Makefile.am): All object files depend on stdbool.h.
91732
91733 2003-01-13  Bruno Haible  <bruno@clisp.org>
91734
91735         * gnulib-tool (func_create_testdir): Store config/* files in the main
91736         directory.
91737         * config.rpath: Move to ...
91738         * config/config.rpath: ... here.
91739         * modules/gettext: Contains config/config.rpath, not config.rpath.
91740         * modules/iconv: Likewise.
91741
91742 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91743
91744         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91745         to avoid collisions with libcurses and libreadline.
91746
91747         * m4/getstr.m4: Remove.
91748         * m4/getline.m4 (gl_PREREQ_GETLINE): Require AC_HEADER_STDC.
91749
91750 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91751
91752         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91753         to avoid collisions with libcurses and libreadline.
91754
91755         * lib/Makefile.am (libfetish_a_SOURCES): Remove getstr.c, getstr.h.
91756         * lib/getstr.h, getstr.c: Remove.
91757         * lib/getline.c: Include "getline.h", to check interface.
91758         Move body of old getstr.c here: this defines MIN_CHUNK and
91759         declares getdelim2, which is renamed from getstr.
91760         (getline, getdelim): Adjust to renaming of getstr -> getdelim2.
91761
91762         * lib/linebuffer.c (readlinebuffer): Renamed from readline.
91763         All uses changed.
91764         * lib/linebuffer.h: Likewise.
91765         (readline): Remove backward-compatibility macro.
91766
91767 2003-01-12  Paul Eggert  <eggert@twinsun.com>
91768
91769         Finish renaming getstr -> getdelim2 and readline -> readlinebuffer,
91770         to avoid collisions with libcurses and libreadline.
91771         * getstr: Remove.
91772         * MODULES.html.sh: Remove getstr.
91773         * modules/getline: Depend on unlocked-io, not getstr.
91774
91775 2003-01-12  Jim Meyering  <jim@meyering.net>
91776
91777         * lib/makepath.c: Don't test HAVE_ERRNO_H.  It's not necessary.
91778
91779 2003-01-10  Bruno Haible  <bruno@clisp.org>
91780
91781         * modules/alloca: Change Makefile.am requirements. Simplify Include
91782         requirements. Add lib/alloca_.h to file list.
91783
91784 2003-01-10  Bruno Haible  <bruno@clisp.org>
91785
91786         * m4/alloca.m4 (gl_FUNC_ALLOCA): Also define ALLOCA_H.
91787
91788 2003-01-10  Bruno Haible  <bruno@clisp.org>
91789
91790         * lib/alloca_.h: New file.
91791         * lib/getdate.y: Unconditionally include alloca.h.
91792         * lib/makepath.c: Likewise.
91793         * lib/setenv.c: Likewise.
91794         * lib/userspec.c: Likewise.
91795
91796 2003-01-09  Karl Berry  <karl@gnu.org>
91797
91798         * MODULES.html.sh: include `dirname $0` in PATH, to find
91799         gnulib-tool.
91800
91801 2003-01-09  Bruno Haible  <bruno@clisp.org>
91802
91803         * modules/stdbool: Change configure.ac, Makefile.am requirements.
91804         Simplify Include requirements. Add lib/stdbool.h.in to file list.
91805
91806 2003-01-09  Bruno Haible  <bruno@clisp.org>
91807
91808         * m4/stdbool.m4 (AM_STDBOOL_H): New macro.
91809
91810 2003-01-09  Bruno Haible  <bruno@clisp.org>
91811
91812         * lib/stdbool.h.in: New file.
91813
91814 2003-01-09  Bruno Haible  <bruno@clisp.org>
91815
91816         * gnulib-tool (func_all_modules): Ignore files ending in ~.
91817         * MODULES.html.sh: Likewise.
91818
91819 2003-01-08  Jim Meyering  <jim@meyering.net>
91820
91821         * lib/full-write.c: Undefine and define-away `const' after inclusion
91822         of errno.h, not before.  Suggestion from Bruno Haible.
91823
91824 2003-01-08  Bruno Haible  <bruno@clisp.org>
91825
91826         * modules/full-read: Depend on full-write.
91827
91828 2003-01-08  Bruno Haible  <bruno@clisp.org>
91829
91830         * lib/safe-read.c: Include specification header first, to ensure its
91831         selfcontainedness.
91832         * lib/full-write.c: Likewise.
91833
91834 2003-01-07  Jim Meyering  <jim@meyering.net>
91835
91836         * lib/full-write.c: Rework so that it may serve to define full_read,
91837         too.
91838         * lib/full-read.c: Simply #define FULL_READ and include full-write.c.
91839
91840 2003-01-07  Bruno Haible  <bruno@clisp.org>
91841
91842         * lib/strtoimax.c: Include <stdint.h> as an alternative to
91843         <inttypes.h>.
91844         * lib/xstrtol.h: Likewise.
91845         * lib/xstrtoimax.c: Likewise.
91846         * lib/xstrtoumax.c: Likewise.
91847         * lib/human.h: Likewise.
91848
91849         * lib/tempname.c: Include <inttypes.h> too. Avoids a compilation error
91850         on systems that have <inttypes.h> but not <stdint.h>.
91851
91852 2003-01-07  Bruno Haible  <bruno@clisp.org>
91853
91854         * MODULES.html.sh: Add copyright notice.
91855         (missed_files): Omit CVS directory entries.
91856         (func_module): Make it work with sed-3.02.
91857         * MODULES.txt: Remove file.
91858
91859 2003-01-06  Jim Meyering  <jim@meyering.net>
91860
91861         * lib/version-etc.c: Update year in translatable copyright string.
91862
91863 2003-01-03  Karl Berry  <karl@gnu.org>
91864
91865         * config/config.{guess,sub}: update from prep.
91866
91867 2003-01-02  Karl Berry  <karl@gnu.org>
91868
91869         * doc/COPYING.DOC: belatedly updated to 1.2.
91870
91871 2003-01-01  Karl Berry  <karl@gnu.org>
91872
91873         * gnulib-tool (func_verify_module): report module name $module in
91874         error message, not $1.
91875         * gnulib-tool (create-testdir): don't complain if destdir couldn't
91876         be created, only if it doesn't exist.
91877         * gnulib-tool (last_checkin_date): don't expand the $Date here.
91878
91879 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91880
91881         * m4/memcoll.m4 (gl_MEMCOLL): Require AC_FUNC_MEMCMP.
91882
91883 2002-12-31  Paul Eggert  <eggert@twinsun.com>
91884
91885         * lib/memcoll.c (memcoll): Fall back on a simple algorithm using
91886         memcmp if strcoll doesn't work.
91887
91888 2002-12-31  Bruno Haible  <bruno@clisp.org>
91889
91890         * lib/utime.c (utime_null): No need to call ftruncate if the file was
91891         nonempty.
91892
91893 2002-12-31  Bruno Haible  <bruno@clisp.org>
91894
91895         * lib/memcoll.c (STRCOLL): New macro.
91896         (memcoll): Use it.
91897
91898 2002-12-31  Bruno Haible  <bruno@clisp.org>
91899
91900         * lib/localcharset.h: New file.
91901         * lib/localcharset.c: Include it.
91902         * lib/unicodeio.c: Likewise.
91903
91904 2002-12-31  Bruno Haible  <bruno@clisp.org>
91905
91906         * lib/getstr.h (getstr): Define, to avoid clash with libcurses.
91907         * lib/linebuffer.h (readline): Define, to avoid clash with libreadline.
91908
91909 2002-12-31  Bruno Haible  <bruno@clisp.org>
91910
91911         * lib/getline.h: Include <stddef.h>, for size_t.
91912
91913         * lib/unicodeio.h: Include <stddef.h>, for size_t.
91914         * lib/unicodeio.c: Don't include <stddef.h>.
91915
91916 2002-12-31  Bruno Haible  <bruno@clisp.org>
91917
91918         * lib/getdate.y (get_date): Test HAVE_STRUCT_TM_TM_ZONE, not
91919         HAVE_TM_ZONE.
91920
91921 2002-12-24  Karl Berry  <karl@gnu.org>
91922
91923         * config/config.guess: update from prep.
91924
91925 2002-12-24  Bruno Haible  <bruno@clisp.org>
91926
91927         General infrasructure.
91928         * m4/README: Rewritten.
91929         * m4/onceonly.m4: New file.
91930         * m4/onceonly_2_57.m4: New file.
91931
91932         Module atexit.
91933         * m4/atexit.m4: New file.
91934
91935         Module strtod.
91936         * m4/strtod.m4: New file.
91937
91938         Module strtol.
91939         * m4/strtol.m4: New file.
91940
91941         Module strtoul.
91942         * m4/strtoul.m4: New file.
91943
91944         Module memchr.
91945         * m4/memchr.m4: New file.
91946
91947         Module memcmp.
91948         * m4/memcmp.m4 (gl_PREREQ_MEMCMP): New macro.
91949         (jm_FUNC_MEMCMP): Invoke it.
91950
91951         Module memcpy.
91952         * m4/memcpy.m4: New file.
91953
91954         Module memmove.
91955         * m4/memmove.m4: New file.
91956
91957         Module memset.
91958         * m4/memset.m4: New file.
91959
91960         Module strcspn.
91961         * m4/strcspn.m4: New file.
91962
91963         Module strpbrk.
91964         * m4/strpbrk.m4: New file.
91965
91966         Module strstr.
91967         * m4/strstr.m4: New file.
91968
91969         Module strerror.
91970         * m4/strerror.m4: New file.
91971
91972         Module mktime.
91973         * m4/mktime.m4: Renamed from jm-mktime.m4.
91974         (gl_PREREQ_MKTIME): New macro.
91975         (gl_FUNC_MKTIME): Renamed from jm_FUNC_MKTIME. Invoke gl_PREREQ_MKTIME.
91976
91977         Module malloc.
91978         * m4/malloc.m4 (gl_PREREQ_MALLOC): New macro.
91979         (jm_FUNC_MALLOC): Use AC_FUNC_MALLOC. Invoke gl_PREREQ_MALLOC.
91980         Don't define HAVE_DONE_WORKING_MALLOC_CHECK, since nothing uses it.
91981
91982         Module realloc.
91983         * m4/realloc.m4 (gl_PREREQ_REALLOC): New macro.
91984         (jm_FUNC_REALLOC): Use AC_FUNC_REALLOC. Invoke gl_PREREQ_REALLOC.
91985         Don't define HAVE_DONE_WORKING_REALLOC_CHECK, since nothing uses it.
91986
91987         Module strftime.
91988         * m4/tm_gmtoff.m4: New file, extracted from strftime.m4.
91989         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Use AC_FUNC_STRFTIME.
91990         Don't test for bcopy (we are not emacs). Invoke AC_TYPE_MBSTATE_T and
91991         gl_TM_GMTOFF.
91992         (_jm_STRFTIME_PREREQS, jm_FUNC_GNU_STRFTIME): Use onceonly macros.
91993
91994         Module xalloc.
91995         * m4/xalloc.m4: New file.
91996
91997         Module alloca.
91998         * m4/alloca.m4: New file.
91999
92000         Module putenv.
92001         * m4/putenv.m4 (gl_PREREQ_PUTENV): New macro.
92002         (jm_FUNC_PUTENV): Invoke it.
92003
92004         Module setenv.
92005         * m4/setenv.m4 (gt_FUNC_SETENV): New macro.
92006         (gt_CHECK_VAR_DECL): Fix quoting error that led to infinite loop in m4
92007         when invoked twice.
92008         (gt_PREREQ_SETENV, gt_PREREQ_UNSETENV): New macros, replacing old
92009         gt_FUNC_SETENV.
92010
92011         Module memrchr.
92012         * m4/memrchr.m4: New file.
92013
92014         Module stpcpy.
92015         * m4/stpcpy.m4: New file.
92016
92017         Module strcase.
92018         * m4/strcase.m4: New file.
92019
92020         Module strdup.
92021         * m4/strdup.m4: New file.
92022
92023         Module strnlen.
92024         * m4/strnlen.m4: New file.
92025
92026         Module strndup.
92027         * m4/strndup.m4: New file.
92028
92029         Module xstrtod.
92030         * m4/xstrtod.m4: New file.
92031
92032         Module xstrtol.
92033         * m4/xstrtol.m4: New file.
92034
92035         Module getdate.
92036         * m4/getdate.m4: New file.
92037
92038         Module unlocked-io.
92039         * m4/unlocked-io.m4: Renamed from jm-glibc-io.m4.
92040         (jm_FUNC_GLIBC_UNLOCKED_IO): Invoke AC_GNU_SOURCE. Use onceonly macros.
92041         * m4/jm-glibc-io.m4n: Remove file.
92042
92043         Module long-options.
92044         * m4/long-options.m4: New file.
92045
92046         Module md5.
92047         * m4/md5.m4: New file.
92048
92049         Module sha.
92050         * m4/sha.m4: New file.
92051
92052         Module getstr.
92053         * m4/getstr.m4: New file.
92054
92055         Module getline.
92056         * m4/getline.m4 (gl_PREREQ_GETLINE): New macro.
92057         (AM_FUNC_GETLINE): Invoke AC_GNU_SOURCE. Use <stdlib.h>, not
92058         <sys/types.h>, for size_t. Use the function name gnu_getline, not
92059         simply getline. Infoke gl_PREREQ_GETLINE.
92060
92061         Module obstack.
92062         * m4/obstack.m4: New file.
92063
92064         Module hash.
92065         * m4/hash.m4: New file.
92066
92067         Module readtokens.
92068         * m4/readtokens.m4: New file.
92069
92070         Module strverscmp.
92071         * m4/strverscmp.m4: New file.
92072
92073         Module stdbool.
92074         * m4/stdbool.m4 (AC_HEADER_STDBOOL): Add test for _Bool. Needed for
92075         OSF/1.
92076
92077         Module strtoll.
92078         * m4/strtoll.m4: New file.
92079
92080         Module strtoull.
92081         * m4/strtoull.m4: New file.
92082
92083         Module strtoimax.
92084         * m4/strtoimax.m4: New file.
92085
92086         Module strtoumax.
92087         * m4/strtoumax.m4: New file.
92088
92089         Module xstrtoimax.
92090         * m4/xstrtoimax.m4 (jm_XSTRTOIMAX): Renamed from
92091         jm_AC_PREREQ_XSTRTOIMAX.
92092         Moved the strtol prerequisites to strtol.m4.
92093         Moved the strtoll prerequisites to strtoll.m4.
92094         Moved the strtoimax prerequisites to strtoimax.m4.
92095
92096         Module xstrtoumax.
92097         * m4/xstrtoumax.m4 (jm_XSTRTOUMAX): Renamed from
92098         jm_AC_PREREQ_XSTRTOUMAX.
92099         Moved the strtoul prerequisites to strtoul.m4.
92100         Moved the strtoull prerequisites to strtoull.m4.
92101         Moved the strtoumax prerequisites to strtoumax.m4.
92102
92103         Module chown.
92104         * m4/chown.m4 (gl_PREREQ_CHOWN): New macro.
92105         (jm_FUNC_CHOWN): Use AC_FUNC_CHOWN. Invoke gl_PREREQ_CHOWN.
92106
92107         Module dup2.
92108         * m4/dup2.m4: New file.
92109
92110         Module ftruncate.
92111         * m4/ftruncate.m4 (gl_PREREQ_FTRUNCATE): New macro.
92112         (jm_FUNC_FTRUNCATE): Use AC_REPLACE_FUNCS. Invoke gl_PREREQ_FTRUNCATE.
92113
92114         Module getgroups.
92115         * m4/getgroups.m4 (gl_PREREQ_GETGROUPS): New macro.
92116         (jm_FUNC_GETGROUPS): Use AC_FUNC_GETGROUPS. Invoke gl_PREREQ_GETGROUPS.
92117
92118         Module gettimeofday.
92119         * m4/gettimeofday.m4 (gl_PREREQ_GETTIMEOFDAY): New macro.
92120         (AC_FUNC_GETTIMEOFDAY_CLOBBER): Use onceonly macros. Invoke
92121         gl_PREREQ_GETTIMEOFDAY.
92122
92123         Module mkdir.
92124         * m4/mkdir-slash.m4 (gl_PREREQ_MKDIR): New macro.
92125         (UTILS_FUNC_MKDIR_TRAILING_SLASH): Invoke gl_PREREQ_MKDIR.
92126
92127         Module mkstemp.
92128         * m4/mkstemp.m4 (gl_PREREQ_MKSTEMP): New macro.
92129         (jm_PREREQ_TEMPNAME): New macro, from prereq.m4. Also invoke
92130         jm_AC_TYPE_UINTMAX_T.
92131         (UTILS_FUNC_MKSTEMP): Invoke gl_PREREQ_MKSTEMP and jm_PREREQ_TEMPNAME.
92132
92133         Module stat.
92134         * m4/stat.m4 (gl_PREREQ_STAT): New macro.
92135         (jm_FUNC_STAT): Use AC_FUNC_STAT. Invoke gl_PREREQ_STAT.
92136
92137         Module lstat.
92138         * m4/lstat.m4 (gl_PREREQ_LSTAT): New macro.
92139         (jm_FUNC_LSTAT): Use AC_FUNC_LSTAT. Invoke gl_PREREQ_LSTAT.
92140
92141         Module timespec.
92142         * m4/timespec.m4 (gl_TIMESPEC): New macro.
92143         (jm_CHECK_TYPE_STRUCT_TIMESPEC): Add check for <sys/time.h>.
92144         * m4/st_mtim.m4: Indentation.
92145
92146         Module nanosleep.
92147         * m4/nanosleep.m4 (gl_PREREQ_NANOSLEEP): New macro.
92148         (jm_FUNC_NANOSLEEP): Add check for <sys/time.h>. Invoke
92149         gl_PREREQ_NANOSLEEP.
92150
92151         Module regex.
92152         * m4/regex.m4 (jm_PREREQ_REGEX): New macro.
92153         (jm_INCLUDED_REGEX): Invoke jm_PREREQ_REGEX.
92154         (gl_REGEX): New macro.
92155
92156         Module rename.
92157         * m4/rename.m4 (gl_PREREQ_RENAME): New macro.
92158         (vb_FUNC_RENAME): Invoke gl_PREREQ_RENAME.
92159
92160         Module rmdir.
92161         * m4/rmdir.m4: New file.
92162
92163         Module utime.
92164         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Use onceonly macros.
92165         * m4/utime.m4 (gl_PREREQ_UTIME): New macro.
92166         (jm_FUNC_UTIME): Invoke gl_PREREQ_UTIME.
92167
92168         Module dirname.
92169         * m4/dirname.m4: New file.
92170
92171         Module getopt.
92172         * m4/getopt.m4: New file.
92173
92174         Module unistd-safer.
92175         * m4/unistd-safer.m4: New file.
92176
92177         Module fnmatch.
92178         * m4/fnmatch.m4 (_AC_FUNC_FNMATCH_IF): Include <stdlib.h>, for exit()
92179         declaration.
92180         (gl_PREREQ_FNMATCH_EXTRA): New macro.
92181         (gl_FUNC_FNMATCH_POSIX): New macro.
92182         (gl_FUNC_FNMATCH_GNU): Renamed from AC_FUNC_FNMATCH_GNU. Invoke
92183         gl_PREREQ_FNMATCH_EXTRA. Use the function name gnu_fnmatch, not
92184         simply fnmatch.
92185
92186         Module exclude.
92187         * m4/exclude.m4: New file.
92188
92189         Module human.
92190         * m4/human.m4: New file.
92191
92192         Module acl.
92193         * m4/acl.m4: Nop.
92194
92195         Module backupfile.
92196         * m4/backupfile.m4: New file.
92197         * m4/d-ino.m4: Indentation.
92198
92199         Module fsusage.
92200         * m4/fsusage.m4 (gl_FSUSAGE): New macro.
92201         (jm_STATFS_TRUNCATES): New macro, from coreutils-4.5.4/configure.ac.
92202         (gl_PREREQ_FSUSAGE_EXTRA): New macro.
92203
92204         Module dirfd.
92205         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Invoke some AC_EGREP_CPP
92206         requirements.
92207
92208         Module euidaccess.
92209         * m4/euidaccess.m4: New file.
92210
92211         Module file-type.
92212         * m4/file-type.m4: New file.
92213
92214         Module fileblocks.
92215         * m4/fileblocks.m4: New file.
92216
92217         Module filemode.
92218         * m4/filemode.m4: New file.
92219
92220         Module isdir.
92221         * m4/isdir.m4: New file.
92222
92223         Module lchown.
92224         * m4/lchown.m4 (gl_PREREQ_LCHOWN): New macro.
92225         (jm_FUNC_LCHOWN): Invoke gl_PREREQ_LCHOWN.
92226
92227         Module makepath.
92228         * m4/makepath.m4: New file.
92229
92230         Module modechange.
92231         * m4/modechange.m4: New file.
92232
92233         Module mountlist.
92234         * m4/mountlist.m4: New file.
92235         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Use onceonly macros.
92236         Indentation.
92237
92238         Module path-concat.
92239         * m4/path-concat.m4: New file.
92240
92241         Module pathmax.
92242         * m4/pathmax.m4: New file.
92243
92244         Module same.
92245         * m4/same.m4: New file.
92246
92247         Module save-cwd.
92248         * m4/save-cwd.m4: New file.
92249
92250         Module savedir.
92251         * m4/savedir.m4: New file.
92252
92253         Module xgetcwd.
92254         * m4/xgetcwd.m4: New file.
92255         * m4/getcwd.m4 (AC_FUNC_GETCWD_NULL): Use onceonly macros.
92256
92257         Module xreadlink.
92258         * m4/xreadlink.m4: New file.
92259
92260         Module safe-read.
92261         * m4/safe-read.m4: New file.
92262
92263         Module safe-write.
92264         * m4/safe-write.m4: New file.
92265
92266         Module closeout.
92267         * m4/closeout.m4: New file.
92268
92269         Module stdio-safer.
92270         * m4/stdio-safer.m4: New file.
92271
92272         Module getpass.
92273         * m4/getpass.m4: New file.
92274
92275         Module getugroups.
92276         * m4/getugroups.m4: New file.
92277
92278         Module group-member.
92279         * m4/group-member.m4 (gl_PREREQ_GROUP_MEMBER): New macro.
92280         (jm_FUNC_GROUP_MEMBER): Invoke AC_GNU_SOURCE, gl_PREREQ_GROUP_MEMBER.
92281
92282         Module idcache.
92283         * m4/idcache.m4: New file.
92284
92285         Module userspec.
92286         * m4/userspec.m4: New file.
92287
92288         Module gettime.
92289         * m4/clock_time.m4: New file.
92290         * m4/gettime.m4: New file.
92291
92292         Module settime.
92293         * m4/settime.m4: New file.
92294
92295         Module posixtm.
92296         * m4/posixtm.m4: New file.
92297
92298         Module gethostname.
92299         * m4/gethostname.m4: New file.
92300
92301         Module canon-host.
92302         * m4/canon-host.m4: New file.
92303
92304         Module gettext.
92305         * m4/codeset.m4: New file, from gettext-0.11.5.
92306         * m4/gettext.m4: New file, from gettext-0.11.5.
92307         * m4/glibc21.m4: New file, from gettext-0.11.5.
92308         * m4/iconv.m4: New file, from gettext-0.11.5.
92309         * m4/intdiv0.m4: New file, from gettext-0.11.5.
92310         * m4/inttypes-pri.m4: New file, from gettext-0.11.5.
92311         * m4/inttypes.m4: New file, from gettext-0.11.5.
92312         * m4/inttypes_h.m4: New file, from gettext-0.11.5 with modifications.
92313         * m4/isc-posix.m4: New file, from gettext-0.11.5.
92314         * m4/lcmessage.m4: New file, from gettext-0.11.5.
92315         * m4/lib-ld.m4: New file, from gettext-0.11.5.
92316         * m4/lib-link.m4: New file, from gettext-0.11.5.
92317         * m4/lib-prefix.m4: New file, from gettext-0.11.5.
92318         * m4/progtest.m4: New file, from gettext-0.11.5.
92319         * m4/stdint_h.m4: New file, from gettext-0.11.5 with modifications.
92320         * m4/uintmax_t.m4: New file, from gettext-0.11.5 with modifications.
92321         * m4/ulonglong.m4: New file, from gettext-0.11.5 with modifications.
92322
92323         Module localcharset.
92324         * m4/localcharset.m4: New file.
92325
92326         Module hard-locale.
92327         * m4/hard-locale.m4: New file.
92328
92329         Module mbswidth.
92330         * m4/mbswidth.m4 (gl_MBSWIDTH): Renamed from jm_PREREQ_MBSWIDTH. Use
92331         onceonly macros.
92332         * m4/mbrtowc.m4: Add comment.
92333
92334         Module memcasecmp.
92335         * m4/memcasecmp.m4: New file.
92336
92337         Module memcoll.
92338         * m4/memcoll.m4: New file.
92339
92340         Module unicodeio.
92341         * m4/unicodeio.m4: New file.
92342
92343         Module rpmatch.
92344         * m4/rpmatch.m4: New file.
92345
92346         Module yesno.
92347         * m4/yesno.m4: New file.
92348
92349         Module exitfail.
92350         * m4/exitfail.m4: New file.
92351
92352         Module c-stack.
92353         * m4/c-stack.m4 (gl_C_STACK): New macro.
92354         (jm_PREREQ_C_STACK): Check for <sys/time.h>. Use onceonly macros.
92355
92356         Module error.
92357         * m4/error.m4 (gl_ERROR): New macro.
92358         (jm_PREREQ_ERROR): Use onceonly macros.
92359
92360         Module fatal.
92361         * m4/fatal.m4: New file.
92362
92363         Module getloadavg.
92364         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Use onceonly macros.
92365         (gl_FUNC_GETLOADAVG, gl_PREREQ_GETLOADAVG): New macros.
92366
92367         Module getpagesize.
92368         * m4/getpagesize.m4: New file.
92369
92370         Module getusershell.
92371         * m4/getusershell.m4: New file.
92372
92373         Module physmem.
92374         * m4/physmem.m4: New file.
92375
92376         Module posixver.
92377         * m4/posixver.m4: New file.
92378
92379         Module quotearg.
92380         * m4/quotearg.m4: New file.
92381
92382         Module quote.
92383         * m4/quote.m4: New file.
92384
92385         Module readutmp.
92386         * m4/readutmp.m4: New file, based on jm_PREREQ_READUTMP from prereq.m4.
92387
92388         Module sig2str.
92389         * m4/sig2str.m4: New file.
92390
92391         Other.
92392         * m4/longlong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Remove, moved to
92393         ulonglong.m4.
92394         * m4/intmax_t.m4: New file.
92395         * m4/d-type.m4: Indentation.
92396         * m4/jm-macros.m4: Update.
92397         * m4/prereq.m4 (jm_PREREQ): Update.
92398         (jm_PREREQ_ADDEXT): Remove, obsoleted by backupfile.m4.
92399         (jm_PREREQ_CANON_HOST): Remove, obsoleted by canon-host.m4.
92400         (jm_PREREQ_DIRNAME): Remove, obsoleted by dirname.m4.
92401         (jm_PREREQ_EXCLUDE): Remove, obsoleted by exclude.m4.
92402         (jm_PREREQ_GETPAGESIZE): Remove, obsoleted by getpagesize.m4.
92403         (jm_PREREQ_HARD_LOCALE): Remove, obsoleted by hard-locale.m4.
92404         (jm_PREREQ_HASH): Remove, obsoleted by hash.m4.
92405         (jm_PREREQ_HUMAN): Remove, obsoleted by human.m4.
92406         (jm_PREREQ_MEMCHR): Remove, obsoleted by memchr.m4.
92407         (jm_PREREQ_PHYSMEM): Remove, obsoleted by physmem.m4.
92408         (jm_PREREQ_POSIXVER): Remove, obsoleted by posixver.m4.
92409         (jm_PREREQ_QUOTEARG): Remove, obsoleted by quotearg.m4.
92410         (jm_PREREQ_READUTMP): Remove, obsoleted by readutmp.m4.
92411         (jm_PREREQ_REGEX): Remove, obsoleted by regex.m4.
92412         (jm_PREREQ_STRNLEN): Remove, obsoleted by strnlen.m4.
92413         (jm_PREREQ_TEMPNAME): Remove, obsoleted by mkstemp.m4.
92414         (jm_PREREQ_XGETCWD): Remove, obsoleted by xgetcwd.m4.
92415         (jm_PREREQ_XREADLINK): Remove, obsoleted by xreadlink.m4.
92416         * m4/readdir.m4 (jm_FUNC_READDIR): Use onceonly macros.
92417
92418 2002-12-24  Bruno Haible  <bruno@clisp.org>
92419
92420         * MODULES.txt: Update according to m4/ changes.
92421
92422         Module gettext.
92423         * config.rpath: New file, from gettext-0.11.5.
92424
92425         * modules/*: New module descriptions.
92426         * gnulib-tool: New file.
92427         * MODULES.html.sh: New file.
92428
92429 2002-12-21  Karl Berry  <karl@gnu.org>
92430
92431         * doc/fdl.texi: update to version 1.2.
92432
92433 2002-12-19  Karl Berry  <karl@gnu.org>
92434
92435         * config/config.guess: update from prep.
92436
92437 2002-12-18  Bruno Haible  <bruno@clisp.org>
92438
92439         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't test for localtime_r.
92440         * m4/jm-mktime.m4 (jm_FUNC_MKTIME): Likewise.
92441
92442 2002-12-17  Bruno Haible  <bruno@clisp.org>
92443
92444         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Remove checks for limits.h,
92445         stdlib.h, string.h.
92446
92447 2002-12-17  Bruno Haible  <bruno@clisp.org>
92448
92449         * lib/canon-host.c (strdup): Remove unused declaration.
92450
92451         * lib/fsusage.c: Include full_read.h.
92452         (get_fs_usage): Use full_read instead of safe_read.
92453
92454         * lib/utime.c (utime_null): Use SAFE_READ_ERROR.
92455
92456 2002-12-12  Karl Berry  <karl@gnu.org>
92457
92458         * config/config.guess: update from prep.
92459
92460 2002-12-11  Bruno Haible  <bruno@clisp.org>
92461
92462         * m4/setenv.m4: New file, from gettext-0.11.5.
92463
92464 2002-12-11  Bruno Haible  <bruno@clisp.org>
92465
92466         * lib/setenv.h: Rewritten to cope with systems that have setenv() but
92467         not unsetenv().
92468         * lib/setenv.c, unsetenv.c: Taken from glibc-2.2.4 with the following
92469         modifications:
92470
92471         2002-12-11  Bruno Haible  <bruno@clisp.org>
92472
92473                 * setenv.c (alloca): Fall back to malloc.
92474                 (freea): New macro.
92475                 (setenv): Use freea() to free memory allocated with alloca().
92476
92477         2002-11-13  Bruno Haible  <bruno@clisp.org>
92478
92479                 * setenv.c (compar_fn_t, __add_to_environ, setenv): Use ANSI C
92480                 function declarations.
92481                 * unsetenv.c (unsetenv): Likewise.
92482
92483         2002-03-04  Bruno Haible  <bruno@clisp.org>
92484
92485                 Portability to AIX 4.3.3.
92486                 * unsetenv.c: New file, extracted from setenv.c.
92487                 * setenv.c: Move the unsetenv() function to unsetenv.c.
92488
92489         2001-12-20  Bruno Haible  <bruno@clisp.org>
92490
92491                 * setenv.c (__add_to_environ): Don't call realloc(NULL,...),
92492                 use malloc instead. For SunOS 4.
92493
92494         2001-12-11  Bruno Haible  <bruno@clisp.org>
92495
92496                 * setenv.c: Declare alloca.
92497                 (compar_fn_t): New typedef.
92498                 (KNOWN_VALUE, STORE_VALUE): Use it.
92499
92500         * lib/Makefile.am (libfetish_a_SOURCES): Add setenv.c, unsetenv.c,
92501         setenv.h.
92502
92503 2002-12-10  Paul Eggert  <eggert@twinsun.com>
92504
92505         Port exclude.c and exclude.h to more non-GNU systems, e.g. Solaris 7.
92506         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE, EXCLUDE_WILDCARDS):
92507         Choose values that are less likely to collide with system fnmatch
92508         options.
92509         * lib/exclude.c (FNM_CASEFOLD, FNM_LEADING_DIR): Define to 0 if not
92510         defined (e.g., a pure POSIX system).
92511         (EXCLUDE_macros_do_not_collide_with_FNM_macros): Use FNM_PATHNAME
92512         instead of FNM_FILE_NAME, for compatibility with pure POSIX sytems.
92513
92514 2002-12-06  Paul Eggert  <eggert@twinsun.com>
92515
92516         Undo the 2001-07-02 change for jm-glibc-io, as it was too much of
92517         a pain in practice to deal with generated m4 files.  This change
92518         goes together with the 2002-12-04 unlocked-io.h change in ../lib.
92519
92520         * m4/Makefile.am.in (Makefile.am): Don't mention jm-glibc-io.m4n
92521         and jm-glibc-io.m4, as they are no longer a special case.
92522         * m4/jm-glibc-io.m4: Rename from jm-glibc-io.m4n, and remove the
92523         kludge and the auto-generation stuff.  Check only whether the
92524         functions are declared, not whether they exist, since older hosts
92525         that don't declare the functions can't use the optimization anyway.
92526
92527 2002-12-06  Jim Meyering  <jim@meyering.net>
92528
92529         * lib/error.c: Be consistent: change `#ifndef _LIBC' to `#if !_LIBC'.
92530
92531         Merge in changes from libc's misc/error.c, in preparation
92532         for the merge of gnulib's changes back into libc.
92533
92534         * lib/error.c (_): Define only if not already defined.
92535         Move definition to follow all #include directives.
92536         Include unlocked-io.h only if !_LIBC.
92537         [_LIBC]: Include <libio/libioP.h>.
92538         [USE_IN_LIBIO]: Include <libio/iolibio.h>
92539         (fflush): Tweak definition to use INTUSE.
92540         (putc): Define.
92541
92542 2002-12-05  Paul Eggert  <eggert@twinsun.com>
92543
92544         * lib/alloca.c [defined emacs]: Include "lisp.h".
92545         (xalloc_die) [defined emacs]: New macro.
92546         (free) [defined emacs && defined EMACS_FREE]: Define to EMACS_FREE.
92547         [! defined emacs]: Include <xalloc.h>.
92548         (POINTER_TYPE) [!defined POINTER_TYPE]: New macro.
92549         (pointer): Typedef to POINTER_TYPE *.
92550         (malloc): Remove decl; we now always use xmalloc.
92551         (alloca): Use old-style definition, since Emacs needs this.
92552         Check for arithmetic overflow when computing combined size.
92553
92554 2002-12-04  Paul Eggert  <eggert@twinsun.com>
92555
92556         Do not generate unlocked-io.h automatically, since it's easier to
92557         maintain it by hand.
92558
92559         * lib/unlocked-io.h: New file, from GNU diffutils,
92560         but with proper copyright notice and attribution.
92561         * lib/gen-uio: Remove.
92562         * lib/Makefile.am: Add copyright notice.
92563         (libfetish_a_SOURCES): Add unlocked-io.h.
92564         (BUILT_SOURCES, all-local): Remove unlocked-io.h.
92565         (DISTCLEANFILES, io_functions): Remove macros.
92566         (EXTRA_DIST): Remove gen_uio.
92567         (unlocked-io.h): Remove rule.
92568
92569 2002-12-04  Jim Meyering  <jim@meyering.net>
92570
92571         Reflect the fact that stat.c and lstat.c are no longer generated.
92572         * lib/Makefile.am (BUILT_SOURCES): Remove stat.c and lstat.c.
92573         (DISTCLEANFILES): Likewise.
92574         (EXTRA_DIST): Likewise.
92575         (all_local): Don't depend on stat.c or lstat.c.
92576         (stat.c, lstat.c): Remove rules.
92577         (EXTRA_DIST): Remove xstat.in.
92578
92579         * lib/xstat.in: Remove file.  Contents moved into stat.c.
92580         * lib/stat.c: New file.  Contents mostly from xstat.in.
92581         * lib/stat.c: Rework so that it may serve to define rpl_lstat, too.
92582         * lib/lstat.c: New file. Simply #define LSTAT and include stat.c.
92583
92584         * lib/safe-read.c: Rework so that it may serve to define safe_write,
92585         too.
92586         * lib/safe-write.c: Simply #define SAFE_WRITE and include safe-read.c.
92587
92588 2002-12-03  Jim Meyering  <jim@meyering.net>
92589
92590         * lib/safe-read.c, safe-write.c: Change variable names and comments,
92591         but not semantics, to minimize the differences between these two files.
92592         (safe_read): Change comment to mention SAFE_READ_ERROR.
92593
92594         * lib/safe-read.c (IS_EINTR): Define.
92595         (safe_read): Use IS_EINTR in place of in-function cpp directives.
92596
92597 2002-12-02  Jim Meyering  <jim@meyering.net>
92598
92599         * lib/safe-read.c (EINTR): Define.
92600         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
92601         (INT_MAX): Provide fallback.
92602         (safe_read): Rewrite to iterate IFF the read fails with EINTR.
92603
92604         * lib/safe-read.h (SAFE_READ_ERROR): Define.
92605
92606 2002-12-02  Bruno Haible  <bruno@clisp.org>
92607
92608         * lib/safe-write.c (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM):
92609         Define, taken from safe-read.c.
92610         (INT_MAX): Provide fallback.
92611         (safe_write): Rewrite to iterate IFF the write fails with EINTR.
92612         * lib/safe-write.h (SAFE_WRITE_ERROR): Define.
92613
92614         * lib/safe-read.c (EINTR): Remove definition.
92615         (safe_read): Don't use EINTR if it is absent.
92616
92617 2002-12-01  Jim Meyering  <jim@meyering.net>
92618
92619         * lib/safe-read.c: (safe_read): Also exit the loop when read returns
92620         zero.
92621         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM, INT_MAX): Define.
92622
92623 2002-11-27  Paul Eggert  <eggert@twinsun.com>
92624
92625         * lib/hash.c (hash_lookup, hash_get_first, hash_get_next,
92626         hash_find_entry, hash_rehash): Replace `if (limit <= value) abort ();'
92627         with `if (! (value < limit)) abort ();', for readability.
92628
92629 2002-11-26  Karl Berry  <karl@gnu.org>
92630
92631         * lib/strdup.c: copy from libc again, with jim's ok.
92632         * lib/.cppi-disable: re-add strdup.c
92633
92634 2002-11-25  Karl Berry  <karl@gnu.org>
92635
92636         * lib/strtoll.c: copy from libc, meaning we now #include <strtol.c>
92637         instead of "strtol.c".
92638
92639 2002-11-25  Karl Berry  <karl@gnu.org>
92640
92641         * config/install-sh: update from automake for variable quoting, $0 in
92642         error msgs, etc.
92643
92644         * config/srclist.txt ($LIBCSRC/time/mktime.c lib gpl): new entry.
92645         * config/srclist.txt ($LIBCSRC/sysdeps/generic/strtoll.c lib gpl): new
92646         entry.
92647
92648 2002-11-25  Jim Meyering  <jim@meyering.net>
92649
92650         * lib/mktime.c: Sync from libc, now that it has the latest fix.
92651
92652 2002-11-24  Karl Berry  <karl@gnu.org>
92653
92654         * lib/error.c, getopt.c, getopt.h, getopt1.c, obstack.c, regex.c,
92655         regex.h, strdup.c, strtoll.c, tempname.c: change license to gpl.
92656
92657 2002-11-24  Jim Meyering  <jim@meyering.net>
92658
92659         Update from coreutils:
92660
92661         * lib/mktime.c: Merge in changes from libc.
92662
92663         Avoid a link-time failure on some Linux systems.
92664         * lib/mktime.c (STATIC): Define to be empty (_LIBC) or `static'
92665         (otherwise).
92666         (__mon_yday): Declare with the STATIC attribute.
92667         (__mktime_internal): Likewise.
92668         Based on a report from Greg Schafer.
92669
92670 2002-11-23  Jim Meyering  <jim@meyering.net>
92671
92672         * lib/sig2str.c (str2signum, sig2str): Avoid a warning from gcc:
92673         Use `unsigned', not `int', as type of index.
92674
92675         * lib/xstat.in [@BEGIN_LSTAT_ONLY@]: Include <string.h>.
92676
92677         * lib/fsusage.c: Remove unneeded parentheses around operands of
92678         `defined'.
92679
92680 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92681
92682         * lib/quotearg.h: Allow multiple inclusion by surrounding with
92683         "#ifndef QUOTEARG_H_".  Include <stddef.h>, for size_t,
92684         so that we can be included first.
92685         (PARAMS): Remove; we now assume C89 or later.  All uses removed.
92686         * lib/quotearg.c: Include quotearg.h immediately after config.h.
92687         No need to include stddef.h or sys/types.h any more.
92688         Surround local include files with "", not "<>".
92689         Assume HAVE_LIMITS_H unconditionally, as we assume C89.
92690         Similarly, assume HAVE_C_BACKSLASH_A, CHAR_BIT, UCHAR_MAX, UINT_MAX,
92691         HAVE_STDLIB_H, HAVE_STRING_H, STDC_HEADERS.
92692         (HAVE_MBSINIT): Undef if !HAVE_MBRTOWC.
92693         (mbsinit): Define to 1 if !defined mbsinit && !HAVE_MBSINIT.
92694         (ISPRINT): Remove; no longer needed now that we assume C89.
92695
92696         (clone_quoting_options, quotearg_buffer, quotearg_n_options):
92697         Preserve errno.
92698
92699         (quotearg_buffer_restyled, quotearg_n, quotearg_n_style,
92700         quotearg_char): Use SIZE_MAX rather than
92701         (size_t) -1 when we are talking about "infinity".
92702
92703         (quotearg_buffer_restyled): Fix bug when quoting trigraphs.
92704
92705 2002-11-22  Paul Eggert  <eggert@twinsun.com>
92706
92707         * lib/hash.c: Avoid use of <assert.h>, as the GNU Coding Standards
92708         hint that one should use `if (! x) abort ();' rather than `assert
92709         (x);', and anyway it's one less thing to worry about configuring.
92710         (hash_lookup, hash_get_first, hash_get_next, hash_find_entry,
92711         hash_rehash, hash_insert): Use abort rather than assert.
92712
92713 2002-11-22  Bruno Haible  <bruno@clisp.org>
92714
92715         * lib/safe-read.h: Assume C89. Add comments.
92716         (safe_read): Change return type to size_t.
92717         * lib/safe-read.c (safe_read): Change return type to size_t. Handle
92718         byte counts > SSIZE_MAX correctly.
92719         * lib/safe-write.h: New file.
92720         * lib/safe-write.c: New file.
92721         * lib/full-read.h: New file.
92722         * lib/full-read.c: New file.
92723         * lib/full-write.h: Assume C89. Add comments.
92724         * lib/full-write.c: Include safe-write.h.
92725         (full_write): Rewritten to use safe_write.
92726         Suggested by Jim Meyering and Paul Eggert.
92727
92728 2002-11-21  Jim Meyering  <jim@meyering.net>
92729
92730         * lib/strdup.c (strdup): Tweak comment and initial #if/#include.
92731
92732         Merge in changes from the coreutils.
92733
92734         2002-09-25  Paul Eggert  <eggert@twinsun.com>
92735         * lib/fsusage.c [! HAVE_INTTYPES_H && HAVE_STDINT_H] Include
92736         <stdint.h>.
92737         (UINTMAX_MAX) [!defined UINTMAX_MAX]: New macro.
92738         (PROPAGATE_ALL_ONES): Work even if X is unsigned and narrower than
92739         int.  Work more efficiently if X is the same width as uintmax_t.
92740         Do not compare X to -1, to avoid bogus compiler warning.
92741         (get_fs_usage): (uintmax_t) -1 -> UINTMAX_MAX to avoid a cast.
92742         Don't assume that f_frsize and f_bsize are the same type.
92743
92744         * lib/mountlist.c: #undef MNT_IGNORE before defining it, to avoid
92745         warning on FreeBSD.
92746
92747         * lib/makepath.c (make_path): Restore umask *before* creating the final
92748         component.
92749         (make_path): Minor reformatting.
92750
92751         * lib/xmalloc.c: Adjust to work with new autoconf macros,
92752         AC_FUNC_MALLOC and AC_FUNC_REALLOC: test #ifndef
92753         HAVE_MALLOC/HAVE_REALLOC.
92754
92755         * lib/mountlist.h (ME_DUMMY): Don't count entries of type `auto' as
92756         dummy ones.  At least on GNU/Linux systems, `auto' means something
92757         else.
92758         From Michael Stone.
92759
92760 2002-11-21  Bruno Haible  <bruno@clisp.org>
92761
92762         Remove case insensitive option matching.
92763         * lib/argmatch.h (argcasematch): Remove declaration.
92764         (ARGCASEMATCH): Remove macro.
92765         (__xargmatch_internal): Remove case_sensitive argument.
92766         (XARGMATCH): Update.
92767         (XARGCASEMATCH): Remove macro.
92768         * lib/argmatch.c (argmatch): Renamed from __argmatch_internal. Remove
92769         case_sensitive argument.
92770         (argcasematch): Remove function.
92771         (__xargmatch_internal): Remove case_sensitive argument.
92772         (main): Use XARGMATCH instead of XARGCASEMATCH.
92773
92774         * lib/xmalloc.c: Change compile-time error message. Add comment about
92775         required autoconf version.
92776
92777 2002-11-20  Paul Eggert  <eggert@twinsun.com>
92778
92779         Merge argmatch cleanups from Bison.  Assume C89.
92780
92781         * lib/argmatch.c: Include config.h here, not in argmatch.h.
92782         Include stdlib.h, for EXIT_FAILURE.
92783         Always include <string.h>, since we assume C89.
92784         (EXIT_FAILURE): Remove pre-C89 bug workaround.
92785         * lib/argmatch.h: Do not include <config.h> or <sys/types.h>.
92786         Include <stddef.h> instead, since it's all we need for size_t.
92787         (PARAMS): Remove.  All uses removed.
92788         (ARRAY_CARDINALITY): Do not bother to #undef.
92789         (ARRAY_CARDINALITY, ARGMATCH, ARGCASEMATCH, invalid_arg,
92790         ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92791         Remove unnecessary parentheses.
92792         (ARGMATCH_VALID, XARGMATCH, XARGCASEMATCH):
92793         Insert necessary parentheses.
92794         (ARGMATCH_CONSTRAINT, ARGMATCH_VERIFY): New macros.
92795         (ARGMATCH_ASSERT): Use ARGMATCH_CONSTRAINT.
92796
92797 2002-11-19  Bruno Haible  <bruno@clisp.org>
92798
92799         * lib/mbswidth.c: Include mbswidth.h right at the beginning.
92800         * lib/mbswidth.h: Include <stddef.h>, for size_t.
92801
92802         * lib/mbswidth.h (PARAMS): Remove macro.
92803         (mbswidth, mbsnwidth): Use ANSI C function declarations.
92804         * lib/mbswidth.c (mbswidth, mbsnwidth): Likewise.
92805
92806         * lib/gcd.h (PARAMS): Remove macro.
92807         (gcd): Use ANSI C function declarations.
92808         * lib/gcd.c (gcd): Likewise.
92809
92810 2002-11-15  Bruno Haible  <bruno@clisp.org>
92811
92812         * lib/strcspn.c: Include <stddef.h>.
92813         (strcspn): Use ANSI C function declaration. Change return type to
92814         size_t. Use NULL.
92815         * lib/strpbrk.c: Minimize diffs to glibc. Include <stddef.h>.
92816         (strpbrk): Use NULL.
92817         * lib/strpbrk.h (PARAMS): Remove macro.
92818         (strpbrk): Use ANSI C function declaration.
92819         * lib/strstr.c: Don't include <sys/types.h>.
92820         * lib/strstr.h (PARAMS): Remove macro.
92821         (strstr): Use ANSI C function declarations.
92822
92823 2002-11-14  Karl Berry  <karl@gnu.org>
92824
92825         * config/mkinstalldirs: `do' on separate line, instead of
92826         `for var; do'.
92827
92828 2002-11-06  Bruno Haible  <bruno@clisp.org>
92829
92830         * lib/gcd.h (gcd): Change argument type to 'unsigned long'.
92831         * lib/gcd.c (gcd): Likewise.
92832
92833 2002-11-05  Bruno Haible  <bruno@clisp.org>
92834
92835         * lib/gcd.h: New file, from gettext-0.11.5.
92836         * lib/gcd.c: New file, from gettext-0.11.5.
92837
92838 2002-11-05  Bruno Haible  <bruno@clisp.org>
92839
92840         * lib/error.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92841         * lib/getopt.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92842         * lib/obstack.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92843         * lib/regex.c [!_LIBC]: Include gettext.h instead of <libintl.h>.
92844
92845         * lib/argmatch.c: Include gettext.h instead of <locale.h> and
92846         <libintl.h>.
92847         * lib/makepath.c: Include gettext.h instead of <locale.h> and
92848         <libintl.h>.
92849
92850         * lib/closeout.c: Include gettext.h instead of <libintl.h>.
92851         * lib/human.c: Include gettext.h instead of <libintl.h>.
92852         * lib/quotearg.c: Include gettext.h instead of <libintl.h>.
92853         * lib/rpmatch.c: Include gettext.h instead of <libintl.h>.
92854         * lib/unicodeio.c: Include gettext.h instead of <libintl.h>.
92855         * lib/userspec.c: Include gettext.h instead of <libintl.h>.
92856         * lib/version-etc.c: Include gettext.h instead of <libintl.h>.
92857         * lib/xmalloc.c: Include gettext.h instead of <libintl.h>.
92858         (textdomain): Remove definition.
92859         * lib/xmemcoll.c: Include gettext.h instead of <libintl.h>.
92860
92861         * lib/long-options.c: Remove include of <libintl.h> and definition of
92862         _.
92863         * lib/same.c: Remove include of <libintl.h> and definition of _.
92864
92865 2002-11-04  Owen Taylor  <otaylor@redhat.com>
92866
92867         * lib/config.charset: A few additions for Solaris.
92868
92869 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92870
92871         Make it possible to build libcharset with CC=gcc CFLAGS="-x c++".
92872         * lib/localcharset.c (locale_charset): Declare as extern "C".
92873
92874 2002-11-04  Bruno Haible  <haible@clisp.cons.org>
92875
92876         * lib/config.charset: msdos in uk_UA uses CP1125.
92877
92878 2002-11-04  Bruno Haible  <bruno@clisp.org>
92879
92880         * lib/stpcpy.h: New file, from GNU gettext-0.11.5.
92881         * lib/strcase.h: New file, from GNU gettext-0.11.5.
92882         * lib/strpbrk.h: New file, from GNU gettext-0.11.5.
92883         * lib/strstr.h: New file, from GNU gettext-0.11.5.
92884         * lib/xgetcwd.h: New file, from GNU gettext-0.11.5.
92885
92886 2002-11-04  Bruno Haible  <bruno@clisp.org>
92887
92888         * lib/localcharset.c (locale_charset): Don't return an empty string.
92889
92890 2002-11-04  Bruno Haible  <bruno@clisp.org>
92891
92892         * lib/localcharset.c (get_charset_aliases): Add more Windows specific
92893         aliases.
92894
92895 2002-11-04  Bruno Haible  <bruno@clisp.org>
92896
92897         * lib/config.charset: Update for newest glibc. Add canonical names
92898         ISO-8859-14, KOI8-T, TCVN5712-1, GEORGIAN-PS.
92899
92900 2002-11-04  Bruno Haible  <bruno@clisp.org>
92901
92902         * lib/config.charset: Add support for NetBSD.
92903
92904 2002-11-04  Bruno Haible  <bruno@clisp.org>
92905
92906         * lib/config.charset [msdosdjgpp]: For Russian, use CP866.
92907
92908 2002-11-01  Bruno Haible  <bruno@clisp.org>
92909
92910         * configure.in: Add AC_CONFIG_AUX_DIR call.
92911         (AC_OUTPUT): Add m4/Makefile, lib/Makefile. Remove doc/Makefile,
92912         test/Makefile.
92913         * Makefile.in (subdirs): Add m4, lib. Remove doc, test.
92914
92915 2002-09-28  Karl Berry  <karl@gnu.org>
92916
92917         * config/srclist.txt: can't copy install-sh/mkinstalldirs from
92918         installed automake until the next release, since changes have been
92919         made.
92920
92921 2002-09-25  Karl Berry  <karl@gnu.org>
92922
92923         * lib/strdup.c: copy from libc/string (via ../config/srclist*).
92924         * lib/getopt*: copy from libc/posix.
92925         * lib/gettext.h: copy from gettext.
92926         * lib/.cppi-disable: add strdup.c, gettext.h.
92927
92928 2002-09-25  Karl Berry  <karl@gnu.org>
92929
92930         * config/srclist.txt: enable gettext.h check.
92931         * config/config.{guess,sub}: update from prep.
92932         * config/depcomp, install-sh, mdate-sh, missing, mkinstalldirs: update
92933                 from automake 1.6.3.
92934         See srclist*.
92935
92936 2002-08-23  Stefan Monnier  <monnier@cs.yale.edu>
92937
92938         * regex.c (PATFETCH): Remove the translating fetch.
92939         (PATFETCH_RAW): Rename to PATFETCH.
92940         (set_image_of_range): New fun.
92941         (SET_RANGE_TABLE_WORK_AREA): Use it.
92942         (regex_compile): Don't translate the pattern chars so eagerly.
92943         Only do it when inserting an `exactn' bytecode or when handling
92944         a char-range.
92945         (mutually_exclusive_p): Avoid empty statement.
92946
92947 2002-07-06  Jim Meyering  <meyering@lucent.com>
92948
92949         * m4/README: Don't mention Makefile.am.in.
92950         Outline how I've tested changes to .m4 files.  Yep, it's a pain.
92951
92952 2002-07-01  Jim Meyering  <meyering@lucent.com>
92953
92954         * lib/c-stack.c: Include sys/time.h.
92955         From Volker Borchert.
92956
92957 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92958
92959         * m4/fnmatch.m4 (_AC_LIBOBJ_FNMATCH): Check for btowc.
92960
92961 2002-06-26  Paul Eggert  <eggert@twinsun.com>
92962
92963         * lib/fnmatch.c, fnmatch_loop.c (WIDE_CHAR_SUPPORT):
92964         New macro.  Use it uniformly instead of
92965         (defined HAVE_WCTYPE_H && defined HAVE_WCHAR_H).
92966         It also uses HAVE_BTOWC, to fix a porting bug on Solaris 2.5.1
92967         reported by Vin Shelton.
92968
92969 2002-06-22  Paul Eggert  <eggert@twinsun.com>
92970
92971         * lib/c-stack.h (segv_handler, c_stack_action) [! defined SA_SIGINFO]:
92972         Do not assume SA_SIGINFO behavior.
92973         Bug reported by Jim Meyering on NetBSD 1.5.2.
92974
92975 2002-06-22  Jim Meyering  <meyering@lucent.com>
92976
92977         * m4/c-stack.m4: New file, from diffutils-2.8.2.
92978         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_C_STACK.
92979
92980         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Don't require AC__GNU_SOURCE,
92981         now that configure.ac uses AC_GNU_SOURCE.
92982         (jm_MACROS): Rename: jm_FUNC_FNMATCH to AC_FUNC_FNMATCH_GNU.
92983         * m4/prereq.m4 (jm_PREREQ_EXCLUDE): Likewise, wrt jm_FUNC_FNMATCH.
92984
92985         Update to latest tools.  Suggestions from Paul Eggert.
92986         * m4/stdbool.m4: New file, from diffutils-2.8.2.
92987         * m4/gnu-source.m4: Update from diffutils-2.8.2.
92988         * m4/fnmatch.m4: Likewise.
92989         * m4/prereq.m4: Change each use of AC_CHECK_HEADERS(stdbool.h)
92990         to AC_HEADER_STDBOOL
92991
92992 2002-06-22  Jim Meyering  <meyering@lucent.com>
92993
92994         * lib/fnmatch.c (ISASCII, ISPRINT): Undefine, to avoid warning about
92995         redefinition due to Solaris 2.6's definition in /usr/include/sys/euc.h.
92996
92997 2002-06-22  Jim Meyering  <meyering@lucent.com>
92998
92999         * lib/c-stack.c, lib/c-stack.h: New files, from diffutils-2.8.2.
93000
93001         * lib/exitfail.c, exitfail.h: Likewise.
93002         * lib/Makefile.am (libfetish_a_SOURCES): Add exitfail.c and exitfail.h.
93003
93004         * lib/Makefile.am (libfetish_a_SOURCES): Add fnmatch_.h in place
93005         of fnmatch.h.
93006         (EXTRA_DIST): Add fnmatch_loop.c.
93007         (libfetish_a_SOURCES): Add c-stack.c and c-stack.h.
93008
93009         * lib/fnmatch_loop.c: New file, from diffutils-2.8.2.
93010         * lib/fnmatch.c: Update from diffutils-2.8.2.
93011         * lib/fnmatch_.h: New file.  From diffutils-2.8.2.
93012         * lib/fnmatch.h: Remove file.
93013
93014 2002-06-21  Jim Meyering  <meyering@lucent.com>
93015
93016         * m4/c-bs-a.m4: Add comment, from diffutils-2.8.2.
93017         * m4/mbrtowc.m4: Likewise.
93018
93019         * m4/mbstate_t.m4: Update from diffutils-2.8.2.
93020         * m4/mbswidth.m4: Reflect name change:
93021         s/AC_MBSTATE_T/AC_TYPE_MBSTATE_T.
93022         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
93023
93024         * m4/lib-link.m4: Update from gettext-0.11.2.
93025         * m4/gettext.m4: Likewise.
93026
93027         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for hurd.h.
93028         From Alfred M. Szmidt.
93029
93030 2002-06-18  Paul Eggert  <eggert@twinsun.com>
93031
93032         * lib/file-type.h: Report an error if neither S_ISREG nor
93033         S_IFREG is defined, instead of using a test specific to glibc
93034         2.2.  This should be safe, since POSIX requires S_ISREG and
93035         Unix Version 7 had S_IFREG.  We don't need to check for
93036         <sys/types.h> since we don't use any symbols that it defines.
93037
93038 2002-06-15  Richard Dawe  <richdawe@bigfoot.com>
93039
93040         * lib/Makefile.am (lstat.c, stat.c, .sin.sed): Use t-$@, rather than
93041         $@-t, so that each temporary file name is unique and valid in the first
93042         8 characters, for operation under DOS.
93043
93044 2002-06-15  Paul Eggert  <eggert@twinsun.com>
93045
93046         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Check for st_author.
93047
93048 2002-06-15  Jim Meyering  <meyering@lucent.com>
93049
93050         Work even with DJGPP 2.03, which lacks support for symlinks.
93051         From Richard Dawe.
93052         * lib/xstat.in (S_ISLNK): Define to 0 if neither S_ISLNK nor S_IFLNK
93053         is defined.
93054         * lib/lchown.c (S_ISLNK): Likewise.
93055
93056 2002-06-15  Jim Meyering  <meyering@lucent.com>
93057
93058         * lib/file-type.h (FILE_TYPE_H): Guard entire contents with #ifndef.
93059         For GNU libc 2.2 and newer, ensure that <sys/types.h> and <sys/stat.h>
93060         have been included before this file.
93061
93062 2002-06-14  Jim Meyering  <meyering@lucent.com>
93063
93064         * lib/file-type.h: Use the version from diffutils-2.8.2.
93065         * lib/file-type.c: Likewise.
93066
93067 2002-06-07  Jim Meyering  <meyering@lucent.com>
93068
93069         * m4/prereq.m4 (jm_PREREQ_STAT): Check for sys/param.h and sys/mount.h.
93070         They're needed at least for NetBSD 1.5.2.
93071         ($statxfs_includes): Include those same headers.
93072         ($statxfs_includes): Include sys/vfs.h if available.
93073         ($statxfs_includes): Likewise for sys/statvfs.h.
93074         Check for the following members in both structs statfs and statvfs:
93075         f_basetype, f_type, f_fsid.__val, f_namemax, f_namelen.
93076
93077 2002-06-01  Jim Meyering  <meyering@lucent.com>
93078
93079         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename macro:
93080         s/D_TYPE_IN_DIRENT/HAVE_STRUCT_DIRENT_D_TYPE/.
93081
93082 2002-05-28  Jim Meyering  <meyering@lucent.com>
93083
93084         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `mkdir', not `rmdir'.
93085         Reported by Volker Borchert.
93086
93087 2002-05-27  Jim Meyering  <meyering@lucent.com>
93088
93089         Fix a problem seen only on nonconforming systems whereby ls.c's
93090         use of localtime, and then of gettimeofday would cause trouble:
93091         the localtime call used to initialize rpl_gettimeofday's save
93092         mechanism would clobber ls's current local time information so
93093         that in any long listing the first file would always be listed
93094         with date 1970-01-01.  Analysis by Volker Borchert.
93095
93096         * lib/gettimeofday.c (localtime): Undefine.
93097         (rpl_localtime): New function.
93098
93099 2002-05-27  Jim Meyering  <meyering@lucent.com>
93100
93101         * m4/gettimeofday.m4 (AC_FUNC_GETTIMEOFDAY_CLOBBER): Also replace
93102         localtime.
93103
93104         * m4/readdir.m4 (jm_FUNC_READDIR): Undefine `rmdir' so we don't try to
93105         use the replacement function; it wouldn't resolve at link time.
93106         Reported by Volker Borchert.
93107
93108 2002-05-22  Jim Meyering  <meyering@lucent.com>
93109
93110         * lib/Makefile.am (libfetish_a_SOURCES): Add file-type.c and
93111         file-type.h.
93112         * lib/file-type.h: New file.
93113         * lib/file-type.c (file_type): New file/function.  Extracted from
93114         diffutils.
93115
93116 2002-04-30  Jim Meyering  <meyering@lucent.com>
93117
93118         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_STAT.
93119
93120 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93121
93122         * m4/prereq.m4 (jm_PREREQ_SIG2STR): Remove; all callers changed.
93123
93124 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93125
93126         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): Check for stdlib.h.
93127         Do not check for alloca.h (no longer used) or stdbool.h (was never
93128         used?).  Add AM_C_PROTOTYPES since hard-locale.h uses it.
93129
93130 2002-04-29  Paul Eggert  <eggert@twinsun.com>
93131
93132         * lib/hard-locale.c: Upgrade to version used in GNU Diffutils 2.8.1.
93133
93134 2002-04-29  Jim Meyering  <meyering@lucent.com>
93135
93136         * m4/jm-macros.m4 (jm_MACROS): Remove use of AC_FUNC_STRNLEN.
93137         * m4/prereq.m4: Add jm_PREREQ_STRNLEN.
93138         Use AC_FUNC_STRNLEN here instead.
93139
93140         * m4/jm-macros.m4: Don't AC_REQUIRE([AC_PROG_CC_STDC]).
93141         With autoconf-2.53a, it's part of AC_PROG_CC.
93142
93143 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93144
93145         * m4/jm-macros.m4 (jm_MACROS): Add AC_REPLACE_FUNCS(sig2str).
93146         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_SIG2STR.
93147
93148 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93149
93150         * lib/sig2str.h, lib/sig2str.c: New files.
93151         * lib/Makefile.am (libfetish_a_SOURCES): Add sig2str.h.
93152
93153 2002-04-28  Paul Eggert  <eggert@twinsun.com>
93154
93155         * lib/sig2str.h (SIGNUM_BOUND): Do not use WTERMSIG, to avoid
93156         depending on <sys/wait.h> and WTERMSIG.  Default to 64 instead
93157         of 127, since 64 is the largest conceivable number for ancient
93158         nonstandard hosts.
93159         * lib/sig2str.c: Do not include <sys/wait.h>; no longer needed.
93160
93161 2002-04-28  Jim Meyering  <meyering@lucent.com>
93162
93163         * lib/sig2str.c (WTERMSIG): Remove definition (unused).
93164
93165 2002-04-24  Jim Meyering  <meyering@lucent.com>
93166
93167         * m4/prereq.m4 (jm_PREREQ_HARD_LOCALE): New macro.
93168         (jm_PREREQ): Use it.
93169
93170         * m4/getloadavg.m4: Check for these headers: locale.h unistd.h
93171         mach/mach.h fcntl.h.
93172         Check for this function: setlocale.
93173
93174 2002-04-24  Jim Meyering  <meyering@lucent.com>
93175
93176         * lib/gettext.h: New file, from Gettext.
93177         * lib/Makefile.am (INCLUDES): Remove -I../intl.
93178         (libfetish_a_SOURCES): Add gettext.h.
93179
93180 2002-04-16  Jim Meyering  <meyering@lucent.com>
93181
93182         * m4/prereq.m4 (jm_PREREQ_READUTMP): Also check for these members:
93183         ut_pid, ut_id, ut_exit.
93184
93185 2002-04-16  Jim Meyering  <meyering@lucent.com>
93186
93187         * lib/readutmp.h (UT_TYPE): Remove definition (now in who.c).
93188         (HAVE_STRUCT_XTMP_UT_EXIT, HAVE_STRUCT_XTMP_UT_ID): Define.
93189         (HAVE_STRUCT_XTMP_UT_PID, HAVE_STRUCT_XTMP_UT_TYPE): Define.
93190
93191 2002-04-12  Jim Meyering  <meyering@lucent.com>
93192
93193         * m4/ls-mntd-fs.m4 (checking for getmntinfo function...): Remove
93194         now-bogus check for f_type in sys/mount.h.  Instead, just test for the
93195         existence of the getmntinfo function.  Needed for Darwin 5.3.
93196
93197         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Also detect when dirfd is a macro.
93198         This is necessary at least on Darwin 5.3.
93199
93200         * m4/jm-macros.m4: Don't AC_REPLACE(strnlen), now that we use
93201         AC_FUNC_STRNLEN.  Otherwise, we'd end up putting two copies of
93202         strnlen.o in the library, and that makes some versions of ranlib
93203         object.
93204
93205 2002-04-12  Jim Meyering  <meyering@lucent.com>
93206
93207         * lib/dirfd.h (dirfd): Elide prototype if dirfd is a macro.
93208
93209 2002-04-09  Jim Meyering  <meyering@lucent.com>
93210
93211         * m4/malloc.m4: (jm_FUNC_MALLOC): Change the `checking ...' message
93212         to be more precise.  Rather than saying we're checking whether the
93213         function `works', say what we're testing.
93214         * m4/realloc.m4 (jm_FUNC_REALLOC): Likewise.
93215         Reported by Bruno Haible.
93216
93217 2002-03-10  Jim Meyering  <meyering@lucent.com>
93218
93219         * lib/makepath.c (make_path): Remove a comma from a diagnostic.
93220         Suggestion from Santiago Vila.
93221
93222 2002-03-08  Jim Meyering  <meyering@lucent.com>
93223
93224         * lib/rename.c: Mention that this wrapper is needed also on
93225         mips-dec-ultrix4.4 systems.
93226
93227 2002-03-02  Jim Meyering  <meyering@lucent.com>
93228
93229         * lib/gettime.c (gettime): Test HAVE_CLOCK_GETTIME,
93230         not HAVE_CLOCK_SETTIME.
93231
93232 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93233
93234         * m4/jm-macros.m4 (jm_MACROS): Do not replace stime; no longer used.
93235         Check for clock_settime.
93236
93237 2002-02-27  Paul Eggert  <eggert@twinsun.com>
93238
93239         * lib/nanosleep.h: Rename to....
93240         * lib/timespec.h: New name for nanosleep.h.  All uses changed.
93241
93242         * lib/gettime.c: New file.
93243         * lib/settime.c: New file.
93244         * lib/stime.c: Remove.
93245
93246         * lib/Makefile.am (libfetish_a_SOURCES): Add gettime.c, settime.c,
93247         timespec.h.  Remove nanosleep.h.
93248
93249 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93250
93251         * m4/acl.m4: New file.
93252         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_ACL.
93253         Do not check for acl or sys/acl.h, as AC_FUNC_ACL does that now.
93254
93255 2002-02-25  Paul Eggert  <eggert@twinsun.com>
93256
93257         * lib/acl.c, lib/acl.h: New files.
93258         * lib/Makefile.am (libfetish_a_SOURCES): Add acl.h, acl.c.
93259
93260 2002-02-24  Jim Meyering  <meyering@lucent.com>
93261
93262         * lib/strnlen.c (strnlen): Define-away/undef so that an inconsistent
93263         prototype in string.h (on at least AIX4.3.2.0 w/gcc-2.95.3) doesn't
93264         cause trouble.  Reported by Nelson Beebe.
93265
93266 2002-02-23  Paul Eggert  <eggert@twinsun.com>
93267
93268         * lib/path-concat.c (xpath_concat): Reorder code to pacify
93269         compilers that don't know that xalloc_die never returns.
93270
93271 2002-02-20  Jim Meyering  <meyering@lucent.com>
93272
93273         * lib/getdate.c: Regenerate using bison-1.33.
93274
93275 2002-02-17  Jim Meyering  <meyering@lucent.com>
93276
93277         * config/config.guess (main): Don't use `head -1'; it's no longer
93278         portable. Use `sed 1q' instead.
93279
93280 2002-02-16  gettextize  <bug-gnu-gettext@gnu.org>
93281
93282         * m4/codeset.m4: Upgrade to gettext-0.11.
93283         * m4/gettext.m4: Upgrade to gettext-0.11.
93284         * m4/glibc21.m4: Upgrade to gettext-0.11.
93285         * m4/iconv.m4: Upgrade to gettext-0.11.
93286         * m4/isc-posix.m4: Upgrade to gettext-0.11.
93287         * m4/lcmessage.m4: Upgrade to gettext-0.11.
93288         * m4/lib-ld.m4: New file, from gettext-0.11.
93289         * m4/lib-link.m4: New file, from gettext-0.11.
93290         * m4/lib-prefix.m4: New file, from gettext-0.11.
93291         * m4/progtest.m4: Upgrade to gettext-0.11.
93292
93293 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93294
93295         * m4/prereq.m4 (jm_PREREQ_POSIXVER): New macro.
93296         (jm_PREREQ): Use it.
93297
93298 2002-02-15  Paul Eggert  <eggert@twinsun.com>
93299
93300         * lib/posixver.c, lib/posixver.h: New files.
93301         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93302
93303 2002-02-02  Paul Eggert  <eggert@twinsun.com>
93304             Bruno Haible  <bruno@clisp.org>
93305
93306         * lib/unicodeio.h (print_unicode_char): Add exit_on_error argument.
93307         (fwrite_success_callback): New declaration.
93308         * lib/unicodeio.c (unicode_to_mb): New function, extracted from
93309         print_unicode_char. Call failure callback instead of error.
93310         (fwrite_success_callback): New function.
93311         (exit_failure_callback): New function.
93312         (fallback_failure_callback): New function.
93313         (print_unicode_char): Call unicode_to_mb.
93314
93315 2002-01-26  Jim Meyering  <meyering@lucent.com>
93316
93317         * m4/jm-macros.m4 (jm_MACROS): Require autoconf-2.52g.
93318         * m4/strnlen.m4: Remove file, now that it's part of autoconf.
93319
93320 2002-01-26  Jim Meyering  <meyering@lucent.com>
93321
93322         * lib/Makefile.am (getdate$U.o): Depend on unlocked-io.h.
93323
93324 2002-01-22  Paul Eggert  <eggert@twinsun.com>
93325
93326         * m4/jm-macros.m4 (jm_MACROS): Require AC_FUNC_FSEEKO.
93327
93328 2002-01-22  Jim Meyering  <meyering@lucent.com>
93329
93330         * lib/Makefile.am (Makefile): Don't depend on $(BUILT_SOURCES).
93331         Otherwise, some versions of automake would omit the rule that makes
93332         Makefile from Makefile.in.
93333
93334 2002-01-21  Paul Eggert  <eggert@twinsun.com>
93335
93336         * lib/xmemcoll.h, lib/xmemcoll.c: New files.
93337         * lib/Makefile.am (libfetish_a_SOURCES): Add them.
93338         * lib/memcoll.c: Include errno.h, and declare errno if not defined.
93339         (memcoll): Set errno to zero if there is no error.
93340
93341         * lib/quotearg.c (quotearg_buffer_restyled):
93342         Fix bug with quoting buffers containing NUL when backslashing escapes.
93343         This bug was exposed by the other changes in this patch.
93344         (quotearg_n_options): New arg ARGSIZE.
93345         All callers changed.
93346         (quoting_options_from_style): New function.
93347         (quotearg_n_style): Use it.
93348         (quotearg_n_style_mem): New function.
93349
93350         * lib/quotearg.h (quotearg_n_style_mem): New function.
93351
93352 2002-01-19  Jim Meyering  <meyering@lucent.com>
93353
93354         * m4/jm-macros.m4 (jm_MACROS): Use AC_FUNC_STRNLEN.
93355         Remove useless quotes: DF_PROG="df".
93356         * m4/strnlen.m4: New file.
93357
93358 2002-01-16  Paul Eggert  <eggert@twinsun.com>
93359
93360         * lib/backupfile.c (ISDIGIT): Comment fix.
93361         * lib/getdate.y (ISDIGIT): Likewise.
93362         * lib/posixtm.c (ISDIGIT, year): Likewise.
93363         * lib/strverscmp.c (ISDIGIT): Likewise.
93364         * lib/userspec.c (ISDIGIT): Likewise.
93365
93366 2002-01-16  Jim Meyering  <meyering@lucent.com>
93367
93368         * lib/getdate.y: Add three semicolons, each just before a closing
93369         brace. Bison (as of version 1.31) no longer papers over that mistake.
93370
93371 2002-01-05  Jim Meyering  <meyering@lucent.com>
93372
93373         * lib/version-etc.c (version_etc_copyright): Update copyright year.
93374
93375 2001-12-19  Paul Eggert  <eggert@twinsun.com>
93376
93377         * lib/closeout.c (close_stdout_status): If ferror (stdout), do
93378         not silently exit merely because the output buffer happens to
93379         have nothing pending.
93380
93381 2001-12-18  Paul Eggert  <eggert@twinsun.com>
93382
93383         See the big note in ../ChangeLog.
93384         * lib/human.c (suffixes): Prefer K to k for 1024.
93385         (generate_suffix_backwards): New function.
93386         (human_readable_inexact): Use it.
93387         * lib/xstrtol.c (__xstrtol): If there is no number but there
93388         is a valid suffix, assume 1.  "MB" now means decimal, "MiB" binary.
93389         Accept 'K' as well as 'k'.
93390
93391 2001-12-15  Jim Meyering  <meyering@lucent.com>
93392
93393         * lib/regex.h (__restrict_arr): Update from libc.
93394
93395         * lib/mountlist.h (ME_REMOTE): Recognize file systems of type smbfs
93396         as `remote' if the name starts with `//'.  Suggested by Michael Stone.
93397         (STREQ): Define.
93398
93399 2001-12-14  Jim Meyering  <meyering@lucent.com>
93400
93401         * m4/jm-macros.m4 (jm_MACROS): Check for iswspace.
93402         Suggestion from Bruno Haible.
93403
93404 2001-12-10  Jim Meyering  <meyering@lucent.com>
93405
93406         * lib/linebuffer.c: Remove explicit declarations of xmalloc and
93407         xrealloc, Instead, include "xalloc.h".
93408         (initbuffer): Don't cast xmalloc return value to char*.
93409         (readline): Reword comment.
93410         Don't cast xrealloc return value to char*
93411         Return NULL, not 0.
93412
93413 2001-12-09  Jim Meyering  <meyering@lucent.com>
93414
93415         * lib/modechange.c (mode_compile): Add cast to avoid pedantic warning
93416         about `signed and unsigned type in conditional expression'.
93417         * lib/posixtm.c (posix_time_parse): Likewise.
93418
93419         * lib/xreadlink.c (xreadlink): Add cast to avoid a pedantic warning.
93420
93421         * lib/readtokens.c (readtoken): Declare an index to be of type unsigned
93422         to avoid a pedantic warning.
93423
93424         * lib/getstr.c: Don't include assert.h.
93425         (getstr): Remove warning-evoking assertions.
93426         Return -1 if offset parameter is out of bounds.
93427         Change the type of a local from int to size_t.
93428
93429         * lib/strftime.c (my_strftime_localtime_r): Include this function
93430         definition in the `#if ! HAVE_TM_GMTOFF' block.
93431
93432         * lib/xgethostname.c: Remove declarations of xmalloc and xrealloc.
93433         Include xalloc.h instead.
93434
93435 2001-12-02  Jim Meyering  <meyering@lucent.com>
93436
93437         * lib/tempname.c: Don't declare getenv, thus reverting the change of
93438         2001-11-18.  It's no longer necessary, now that stdlib.h is always
93439         included.
93440
93441         * lib/regex.c [!__BOUNDED_POINTERS__]: Define away __bounded,
93442         __unbounded, and __ptrvalue.  Reported by Uwe H. Steinfeld.
93443
93444 2001-11-30  Akim Demaille  <akim@epita.fr>
93445
93446         * lib/xstrdup.c: Include xalloc.h, so that xstrdup is declared
93447         before being defined.
93448
93449 2001-11-27  Paul Eggert  <eggert@twinsun.com>
93450
93451         * lib/quotearg.h (quotearg_n, quotearg_n_style):
93452         First arg is int, not unsigned.
93453         * lib/quotearg.c (quotearg_n, quotearg_n_style): Likewise.
93454         (SIZE_MAX, UINT_MAX): New macros.
93455         (quotearg_n_options): Abort if N is negative.
93456         Avoid overflow check on hosts where size_t is 64 bits and int
93457         is 32 bits, as overflow is impossible there.
93458         Fix off-by-one typo that caused unnecessary reallocation.
93459
93460 2001-11-27  Jim Meyering  <meyering@lucent.com>
93461
93462         * lib/tempname.c: Merge with version from libc.
93463         * lib/regex.c: Likewise.
93464
93465         * lib/tempname.c: Include stdlib.h unconditionally.  On some old
93466         systems for which STDC_HEADERS is 0, it was not included, resulting in
93467         a warning about an integer-to-pointer conversion problem with getenv.
93468         Reported by Volker Borchert.
93469
93470 2001-11-26  Jim Meyering  <meyering@lucent.com>
93471
93472         * lib/gtod.h: Remove file.
93473         * lib/Makefile.am (libfetish_a_SOURCES): Remove gtod.h.
93474         * lib/gettimeofday.c: Don't include gtod.h.
93475         (GTOD_init): Remove function.
93476         (rpl_gettimeofday): Do its job here instead, rather than aborting.
93477         Suggestion from Volker Borchert.
93478
93479 2001-11-23  Jim Meyering  <meyering@lucent.com>
93480
93481         * lib/hash.h (struct hash_table): Don't define here.  Merely declare
93482         it.
93483         * lib/hash.c (struct hash_table): Define it here instead.
93484
93485 2001-11-22  Jim Meyering  <meyering@lucent.com>
93486
93487         * lib/hash.h: Bracket contents of file with #ifndef HASH_H_ ... #endif.
93488
93489 2001-11-20  Jim Meyering  <meyering@lucent.com>
93490
93491         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Update comment to reflect that
93492         SunOS 4.1.4 and Solaris 2.5.1 lose, too.
93493
93494 2001-11-19  Jim Meyering  <meyering@lucent.com>
93495
93496         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Don't bother with a temporary
93497         directory.  Use "conftestXXXXXX" as the template.
93498         Suggestion from Paul Eggert.
93499
93500         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): Close each descriptor
93501         immediately, so the test doesn't mistakenly hit the max-open-files
93502         limit.
93503
93504 2001-11-18  Paul Eggert  <eggert@twinsun.com>
93505
93506         * lib/tempname.c (TMP_MAX): Remove; no longer needed.
93507         (TEMPORARIES): New macro.
93508         (__gen_tempname): Use TEMPORARIES rather than TMP_MAX.  This
93509         removes an artificial limitation (e.g. HP-UX 10.20, where
93510         TMP_MAX is 17576).
93511
93512 2001-11-18  Jim Meyering  <meyering@lucent.com>
93513
93514         * m4/prereq.m4 (jm_PREREQ_TEMPNAME): Check for declaration of getenv.
93515
93516 2001-11-18  Jim Meyering  <meyering@lucent.com>
93517
93518         * lib/tempname.c [!HAVE_DECL_GETENV]: Declare getenv to avoid warning
93519         on SunOS 4.
93520
93521         * lib/Makefile.am (Makefile): Depend on $(BUILT_SOURCES), so those
93522         files will be created before anything else.
93523
93524 2001-11-17  Paul Eggert  <eggert@twinsun.com>
93525
93526         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): Do not define
93527         WINSIZE_IN_PTEM if <termios.h> defines struct winsize.
93528
93529 2001-11-17  Jim Meyering  <meyering@lucent.com>
93530
93531         * m4/mkstemp.m4 (UTILS_FUNC_MKSTEMP): New file and macro.
93532         Prompted by a report from Bob Proulx.
93533
93534         * m4/jm-macros.m4 (jm_MACROS): Don't test for mkstemp here.
93535         Instead, require UTILS_FUNC_MKSTEMP.
93536
93537 2001-11-17  Jim Meyering  <meyering@lucent.com>
93538
93539         * m4/jm-macros.m4 (jm_MACROS): Remove code to set POW_LIBM.
93540         Now, that's done as part of AC_FUNC_STRTOD.
93541
93542 2001-11-17  Jim Meyering  <meyering@lucent.com>
93543
93544         * lib/modechange.c (mode_adjust): Fix error introduced on 1999-04-26
93545         that made e.g., `chmod a=,o=w,g=o F' cause F to be group readable
93546         rather than group writable.  Patch by Juan F. Codagnone.
93547
93548         * lib/readtokens.c: Remove explicit declarations of xmalloc and
93549         xrealloc, Instead, include "xalloc.h".
93550
93551         * lib/mountlist.c: Include unlocked-io.h after all system headers.
93552         Remove explicit declarations of xmalloc, xrealloc,
93553         and xstrdup.  Instead, include "xalloc.h".
93554
93555         * lib/argmatch.c, closeout.c, error.c, exclude.c: Include
93556         unlocked-io.h.
93557         * lib/fatal.c, getdate.y, getpass.c, getstr.c, getusershell.c:
93558         Likewise.
93559         * lib/mountlist.c, posixtm.c, readtokens.c, readutmp.c: Likewise.
93560
93561         * lib/regex.c, sha.c, version-etc.c, yesno.c: Likewise.
93562         Reported by Padraig Brady.
93563
93564         * lib/mkstemp.c: #undef mkstemp.
93565         Include config.h.
93566         (rpl_mkstemp): Rename from mkstemp.
93567         Protoize.
93568
93569 2001-11-16  Jim Meyering  <meyering@lucent.com>
93570
93571         * lib/physmem.c [HAVE_SYS_PSTAT_H]: Include <sys/pstat.h>.
93572         (physmem_total) [HAVE_PSTAT_GETSTATIC]: If sysconf couldn't be used to
93573         determine the amount of total physical memory, use pstat_getstatic.
93574         HPUX-11 doesn't define _SC_PHYS_PAGES.
93575         (physmem_available) [HAVE_PSTAT_GETSTATIC && HAVE_PSTAT_GETDYNAMIC]:
93576         If sysconf couldn't be used to determine the amount of available
93577         physical memory, use both pstat_getstatic and pstat_getdynamic.
93578         Based on a patch from Bob Proulx.
93579
93580 2001-11-10  Jim Meyering  <meyering@lucent.com>
93581
93582         * m4/prereq.m4 (jm_PREREQ_PHYSMEM): New function.
93583         (jm_PREREQ): Use it.
93584
93585 2001-11-09  Jim Meyering  <meyering@lucent.com>
93586
93587         * m4/jm-macros.m4: Require autoconf-2.52f.
93588         (AC_FUNC_ERROR_AT_LINE, AC_FUNC_OBSTACK, AC_FUNC_STRTOD):
93589         Use these AC_-prefixed names, not the AM_-prefixed ones.
93590
93591         * m4/afs.m4 (jm_AFS): Quote the body.  Patch by Akim Demaille.
93592
93593 2001-11-05  Jim Meyering  <meyering@lucent.com>
93594
93595         * lib/xstat.in (slash_aware_lstat): Correct a misleading comment.
93596
93597 2001-11-04  Jim Meyering  <meyering@lucent.com>
93598
93599         * m4/fpending.m4: Remove unused cruft that saved, set, and restored
93600         $DEFS.
93601
93602 2001-11-03  Jim Meyering  <meyering@lucent.com>
93603
93604         * m4/jm-glibc-io.m4n (jm_FUNC_GLIBC_UNLOCKED_IO): Quote first arg
93605         of AC_DEFUN.
93606
93607         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): Rework so dirfd.c doesn't have to
93608         know the name of the variable in the macro definition.
93609
93610 2001-11-03  Jim Meyering  <meyering@lucent.com>
93611
93612         * lib/argmatch.h (ARGMATCH_TO_ARGUMENT): Remove casts of first two args
93613         in argmatch_to_argument call.
93614
93615         * lib/dirfd.c (dirfd): Reflect the fact that DIR_TO_FD now takes an
93616         argument.
93617
93618         * lib/hash.c (hash_clear): Fix a bug that could lead to an infloop or
93619         e.g., a fault due to an attempt to free a NULL pointer.
93620
93621 2001-11-01  Jim Meyering  <meyering@lucent.com>
93622
93623         * m4/dirfd.m4 (UTILS_FUNC_DIRFD): New macro.
93624         * m4/jm-macros.m4 (jm_MACROS): Require UTILS_FUNC_DIRFD.
93625
93626 2001-11-01  Jim Meyering  <meyering@lucent.com>
93627
93628         * lib/dirfd.c, lib/dirfd.h: New files.
93629         * lib/Makefile.am (libfetish_a_SOURCES): Add dirfd.h.
93630
93631         * lib/hash.c (hash_print) [TESTING]: Clean up.
93632
93633 2001-10-22  Paul Eggert  <eggert@twinsun.com>
93634
93635         * lib/hard-locale.c (alloca): Define to __builtin_alloca if __GNUC__,
93636         to avoid a warning if -Wall.
93637
93638 2001-10-22  Jeff Bailey  <jbailey@outpost.dnsalias.org>
93639
93640         * README: New file
93641         * doc/*: Add COPYING, COPYING.LIB, COPYING.DOC, fdl.texi
93642         (per RMS's instructions, this is now the canonical source)
93643         * lgpl/, gpl/: New directories.
93644
93645 2001-10-21  Paul Eggert  <eggert@twinsun.com>
93646
93647         * lib/regex.c (uintptr_t): Remove macro and decl; it's config.h's job.
93648
93649 2001-10-21  Jim Meyering  <meyering@lucent.com>
93650
93651         * lib/obstack.c (_): Honor the setting of ENABLE_NLS.  Otherwise,
93652         this code would end up calling gettext even in packages built
93653         with --disable-nls.
93654         * lib/getopt.c (_): Likewise.
93655         * lib/regex.c (_): Likewise.
93656
93657 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93658
93659         * m4/error.m4 (jm_PREREQ_ERROR):
93660         Do not invoke AC_CHECK_FUNCS with strerror_r, as
93661         AC_FUNC_STRERROR_R does that.
93662         Check for strerror declaration.
93663
93664         * m4/strerror_r.m4: Add copyright notice, as nontrivial m4 files
93665         are supposed to have them these days.
93666         (AC_FUNC_STRERROR_R): Always do char* test, so that it gets cached.
93667         Merge changes from latest Autoconf CVS.
93668         Rename ac_cv_func_strerror_r_works to ac_cv_func_strerror_r_char_p,
93669         and rename HAVE_WORKING_STRERROR_R to STRERROR_R_CHAR_P, since
93670         POSIX decided to standardize on the int flavor of strerror_r.
93671
93672 2001-10-20  Paul Eggert  <eggert@twinsun.com>
93673
93674         * lib/error.c (strerror_r): Do not declare unless !_LIBC.
93675         Do not check for HAVE_DECL_STRERROR_R missing unless STRERROR_R_CHAR_P.
93676         Use strerror_r that is only a macro, even if it is not a function.
93677         (strerror): Check for HAVE_DECL_STRERROR before declaring.
93678         (private_strerror): Use prototypes, not old-style function definition.
93679         (print_errno_message): New function.
93680         Support the POSIX 'int'-flavored strerror_r, as well as the traditional
93681         char*-flavored one.
93682         (error_tail, error, error_at_line): Use it.
93683
93684 2001-10-11  Jim Meyering  <meyering@lucent.com>
93685
93686         * lib/argmatch.c (argmatch_invalid): Use quotearg_n_style (0, ...
93687         and quote_n (1, ... to avoid clobbering a buffer.
93688
93689 2001-10-05  Jim Meyering  <meyering@lucent.com>
93690
93691         * lib/Makefile.am: (libfetish_a_SOURCES): Add hash-pjw.c and
93692         hash-pjw.h.
93693         * lib/hash-pjw.c: New file (factored out of fileutils' remove.c).
93694         * lib/hash-pjw.h: New file.
93695
93696 2001-09-30  Jim Meyering  <meyering@lucent.com>
93697
93698         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): See if
93699         `struct fsstat' has the `f_fstypename' member.
93700         Use that to define FS_TYPE, which is now used to make
93701         the getfsstat link test tighter.
93702
93703 2001-09-30  Jim Meyering  <meyering@lucent.com>
93704
93705         * lib/mountlist.c [MOUNTED_GETFSSTAT]:
93706         Include <sys/ucred.h>, for Apple Darwin.
93707         Include sys/mount.h and sys/fs_types.h only if available.
93708         (FS_TYPE): Define.
93709         (read_filesystem_list): Use FS_TYPE.
93710
93711 2001-09-29  Paul Eggert  <eggert@twinsun.com>
93712
93713         * lib/exclude.c (excluded_filename): 0 -> false, since it's
93714         a boolean context.
93715
93716 2001-09-29  Jim Meyering  <meyering@lucent.com>
93717
93718         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93719         [one-argument getmntent function]): Include stdio.h before mntent.h.
93720         SunOS 4.1.x needs it for the declaration of `FILE'.
93721         Patch by Volker Borchert.
93722
93723         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS)
93724         Check for these headers: sys/param.h sys/ucred.h sys/mount.h
93725         sys/fs_types.h, and make the link-test for getfsstat guard #include
93726         directives with appropriate #if HAVE_*_H tests so that we can
93727         detect getfsstat on Apple Darwin1.3.7 systems.
93728         Reported by Nelson Beebe.
93729         Fix harmless typo in cache variable name: s/getsstat/getfsstat/.
93730
93731 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93732
93733         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93734         #defines strtoimax.  Also treat the other strto* functions
93735         like strtoimax.
93736
93737         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
93738         Check for strtoul and strtoumax,
93739         as those declarations are made even in the signed case.
93740         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX):
93741         Likewise, for strtol and strtoimax.
93742
93743 2001-09-28  Paul Eggert  <eggert@twinsun.com>
93744
93745         Fix bug reported by Petter Reinholdtsen for HP-UX 10.20, which
93746         #defines strtoimax.  Also treat the other strto* functions
93747         like strtoimax.
93748
93749         * lib/xstrtol.c (strtol): Do not declare if HAVE_DECL_STRTOL.
93750         (strtoul): Do not declare if HAVE_DECL_STRTOUL.
93751         (strtoimax, strtoumax): Do not declare if already defined as a macro.
93752
93753 2001-09-26  Jim Meyering  <meyering@lucent.com>
93754
93755         Most macros in unlocked-io.h had the wrong number of arguments.
93756         * lib/gen-uio: New script.
93757         (USE_UNLOCKED_IO): Define to 1 if not already defined.
93758         * lib/unlocked-io.hin: Remove file.
93759         * lib/Makefile.am (unlocked-io.h): Rewrite to use a separate script,
93760         rather than trying to embed it here.
93761         (EXTRA_DIST): Add gen-uio.  Remove unlocked-io.hin
93762         Reported by Padraig Brady.
93763
93764 2001-09-25  Volker Borchert  <bt@teknon.de>
93765
93766         * lib/gettimeofday.c (rpl_gettimeofday): Declare local variable
93767         `result'.
93768
93769 2001-09-24  Jim Meyering  <meyering@lucent.com>
93770
93771         * m4/gettext.m4: Use the version from gettext-0.10.40, not CVS.
93772
93773 2001-09-23  Jim Meyering  <meyering@lucent.com>
93774
93775         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add a compile-test
93776         instead of the mere test for existence of mntent.h.  The latter
93777         would get a false-positive on AIX 3.4 systems.
93778         In the outer getmntent if-block, don't die if neither of the getmntent
93779         tests succeeds.  Instead, just fall through and continue with the
93780         remaining tests.
93781
93782 2001-09-23  Jim Meyering  <meyering@lucent.com>
93783
93784         * lib/mountlist.c: Remove useless parentheses in #if directives.
93785         (MOUNTED) [!defined MOUNTED]: Define to _PATH_MOUNTED, for when
93786         the deprecated MOUNTED symbol is no longer defined in mntent.h.
93787
93788 2001-09-22  Jim Meyering  <meyering@lucent.com>
93789
93790         * m4/gettext.m4: New file.  From gettext.
93791         * m4/lcmessage.m4: Sync with gettext -- this changes only comments.
93792         * m4/progtest.m4: Likewise
93793         * m4/isc-posix.m4: Decrement serial number to sync with gettext.
93794         * m4/glibc21.m4: Likewise.
93795
93796         * m4/libintl.m4: Remove.  No longer used.
93797
93798 2001-09-22  Jim Meyering  <meyering@lucent.com>
93799
93800         * lib/localcharset.c: Update from latest gettext.
93801         * lib/config.charset: Likewise.
93802
93803 2001-09-20  Jim Meyering  <meyering@lucent.com>
93804
93805         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX): Check for declaration of
93806         strtoimax.
93807         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check for declaration of
93808         strtoumax.
93809
93810 2001-09-20  Jim Meyering  <meyering@lucent.com>
93811
93812         * lib/xstrtol.c (strtoimax): Guard declaration with
93813         `#if !HAVE_DECL_STRTOIMAX', rather than just `#ifndef strtoimax'.
93814         The latter fails because some systems (at least rs6000-ibm-aix4.3.3.0)
93815         have their own, conflicting declaration of strtoimax in sys/inttypes.h.
93816         (strtoumax): Likewise, for completeness (it wasn't necessary).
93817
93818 2001-09-17  Paul Eggert  <eggert@twinsun.com>
93819
93820         * lib/strtoimax.c (HAVE_LONG_LONG):
93821         Redefine to HAVE_UNSIGNED_LONG_LONG if unsigned.
93822         (strtoimax): Use sizeof (long), not sizeof strtol (ptr, endptr, base),
93823         to work around bug in IBM C compiler.
93824
93825 2001-09-17  Jim Meyering  <meyering@lucent.com>
93826
93827         * m4/chown.m4, fstypename.m4, getgroups.m4, gettimeofday.m4,
93828         * m4/jm-mktime.m4, lstat.m4, malloc.m4, memcmp.m4, mkdir-slash.m4,
93829         * m4/nanosleep.m4, putenv.m4, readdir.m4, realloc.m4, rename.m4,
93830         * m4/st_dm_mode.m4, stat.m4, strerror_r.m4, timespec.m4, utimbuf.m4,
93831         * m4/utimes.m4: Use AC_DEFINE rather than AC_DEFINE_UNQUOTED,
93832         whenever the right hand side need not be expanded by the shell.
93833
93834 2001-09-16  Paul Eggert  <eggert@twinsun.com>
93835
93836         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): Remove test for GNU C
93837         library.  It's not correct, as some older glibcs are buggy.
93838         fnmatch wasn't fixed until glibc 2.2.
93839
93840         Use AC_DEFINE, not AC_DEFINE_UNQUOTED, as there's no
93841         special shell magic here.
93842
93843 2001-09-16  Jim Meyering  <meyering@lucent.com>
93844
93845         * m4/mkdir-slash.m4 (UTILS_FUNC_MKDIR_TRAILING_SLASH): New file/macro.
93846         * m4/jm-macros.m4: Require it.
93847
93848 2001-09-16  Jim Meyering  <meyering@lucent.com>
93849
93850         * lib/mkdir.c: New file.
93851
93852 2001-09-15  Jim Meyering  <meyering@lucent.com>
93853
93854         * m4/jm-macros.m4: Check for help2man.
93855
93856 2001-09-11  Jim Meyering  <meyering@lucent.com>
93857
93858         * m4/host-os.m4 (UTILS_HOST_OS): New file/macro.
93859         The body, by Paul Eggert, was moved here from configure.in.
93860         * m4/jm-macros.m4: Require UTILS_HOST_OS.
93861
93862 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93863
93864         * m4/prereq.m4 (jm_PREREQ_XREADLINK): New macro.
93865         (jm_PREREQ): Use it.
93866
93867 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93868
93869         * lib/xreadlink.c (xreadlink): Omit size_t* arg.  All uses changed.
93870         Use ssize_t, not int, to store result of readlink.
93871         Check for ssize_t overflow as well as size_t overflow,
93872         as POSIX says the result of readlink is implementation-defined
93873         when ssize_t overflows.
93874         Remove unnecessary cast to char*.
93875         Use free+malloc instead of realloc, as the storage doesn't need
93876         to be preserved and it's clearer and can be more efficient that way.
93877         (SIZE_MAX, SSIZE_MAX): New macros, if <limits.h> doesn't declare.
93878         * lib/xreadlink.h (xreadlink): Update prototype.
93879
93880 2001-09-04  Paul Eggert  <eggert@twinsun.com>
93881
93882         * lib/xgetcwd.c: Revert some of the previous change; intead,
93883         fix the HAVE_GETCWD_NULL code to behave more like the
93884         !HAVE_GETCWD_NULL code used to.
93885
93886         Include "xalloc.h".
93887         (xgetcwd): Do not return NULL when memory is exhausted; instead,
93888         invoke xalloc_die.
93889
93890 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93891
93892         * m4/prereq.m4 (jm_PREREQ_XGETCWD): Check for limits.h and
93893         sys/param.h, as pathmax.h includes them.
93894
93895 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93896
93897         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_XGETCWD.
93898         (jm_PREREQ_XGETCWD): New macro.
93899
93900         * m4/getcwd.m4: New file.
93901
93902 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93903
93904         * lib/xgetcwd.c: Fix the !HAVE_GETCWD_NULL code to behave more
93905         like the HAVE_GETCWD_NULL code.
93906         Include pathmax.h if not HAVE_GETCWD.
93907         Do not include xalloc.h.
93908         (INITIAL_BUFFER_SIZE): New symbol.
93909         Do not use xmalloc / xrealloc, since the caller is responsible for
93910         handling errors.  Preserve errno around `free' during failure.
93911         Do not overrun buffer when using getwd.
93912
93913 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93914
93915         * lib/xgetcwd.c (xgetcwd): Use HAVE_GETCWD_NULL, not (defined
93916         __GLIBC__ && __GLIBC__ >= 2), to decide whether to use
93917         getcwd (NULL, 0).
93918
93919 2001-09-03  Paul Eggert  <eggert@twinsun.com>
93920
93921         * lib/exclude.c (fnmatch_no_wildcards): Fix confusion between
93922         usage of FNM_CASEFOLD and FNM_LEADING_DIR.  The bug was
93923         spotted by Jim Meyering.
93924
93925 2001-09-03  Jim Meyering  <meyering@lucent.com>
93926
93927         * lib/xreadlink.c (xreadlink): Preserve errno around `free' during
93928         failure.
93929
93930 2001-09-02  Jim Meyering  <meyering@lucent.com>
93931
93932         * lib/error.c: Update from GNU libc.
93933
93934 2001-09-01  Jim Meyering  <meyering@lucent.com>
93935
93936         * m4/jm-macros.m4 (jm_MACROS): Check for canonicalize_file_name.
93937         Used by df.
93938
93939 2001-09-01  Jim Meyering  <meyering@lucent.com>
93940
93941         * lib/xreadlink.c: New file.
93942         * lib/xreadlink.h: New file.
93943         * lib/Makefile.am (libfetish_a_SOURCES): Add xreadlink.c and
93944         xreadlink.h.
93945
93946         * lib/regex.c (uintptr_t) [!_LIBC]: Define to private_uintptr_t, so it
93947         doesn't conflict with sparc Solaris 7's definition in
93948         /usr/include/sys/int_types.h.
93949
93950         * lib/exclude.c: Use `""', not `<>' to #include non-system header
93951         files.
93952         (fnmatch_no_wildcards): Rewrite not to use function names, strcasecmp
93953         and strncasecmp as r-values.  Unixware didn't have declarations.
93954
93955 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93956
93957         * lib/xstrtol.h: Add copyright notice.
93958         (_DECLARE_XSTRTOL): Improve quality of diagnostic for
93959         LONGINT_INVALID_SUFFIX_CHAR.
93960
93961 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93962
93963         * lib/xstrtol.c (strtoimax): New decl.
93964
93965 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93966
93967         * lib/xgetcwd.c: Don't include pathmax.h.
93968         Include stdlib.h and unistd.h if available.
93969         Include xalloc.h.
93970         (xmalloc, xstrdup, free): Remove decls.
93971         (xgetcwd): Don't assume sizes fit in unsigned.
93972         Check for overflow when computing sizes.
93973         Simplify reallocation code.
93974
93975 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93976
93977         * lib/savedir.c (savedir): Remove size parameter, as POSIX says that
93978         a directory's st_size can have an arbitrary value, so the old
93979         usage could waste an arbitrary amount of memory.  All uses
93980         changed.
93981         * lib/savedir.h: Update prototype.
93982
93983 2001-08-31  Paul Eggert  <eggert@twinsun.com>
93984
93985         * lib/Makefile.am (libfetish_a_SOURCES): Remove strtoxmax.c.
93986
93987         * lib/strtoimax.c: Renamed from strtoxmax.c, removing the
93988         old strtoimax.c.
93989
93990         Also, make the following further changes to make this file's
93991         configuration more similar to that of strtol.c:
93992         (UNSIGNED): Renamed from STRTOUXMAX_UNSIGNED.  All uses changed.
93993         (strtoumax, uintmax_t, strtoull, strtol): Remove.
93994         (intmax_t, strtoimax, strtol, strtoll): New macros, if UNSIGNED.
93995         (strtoimax): Renamed from strtoumax.  All uses of unsigned values
93996         changed to signed values.
93997
93998         And make the following changes as well:
93999         Fix copyright notice, as 1999 was missing.
94000         (verify): New macro.
94001         (strtoimax): Check sizes at compile-time, not run-time.
94002         Prefer strtol to strtoll if both work.
94003         (main): Remove; it was not that useful and was a pain to maintain.
94004
94005         * lib/strtoumax.c: Include strtoimax.c, not strtouxmax.c.
94006
94007 2001-08-31  Jim Meyering  <meyering@lucent.com>
94008
94009         * lib/xgetcwd.c (xgetcwd): Reorganize to avoid some duplication.
94010         Use an initial, malloc'd, buffer of length 128 rather than
94011         a statically allocated one of length 1024.
94012
94013 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94014
94015         Simplify code, partly by assuming autoconf 2.52 semantics.
94016
94017         * m4/Makefile.am (EXTRA_DIST): Remove uintmax_t.m4.
94018
94019         * m4/inttypes.m4 (AC_PREREQ): Bump to 2.52.
94020         (jm_AC_HEADER_INTTYPES_H): Remove; now done by autoconf in 2.52.
94021         All uses removed.
94022         (jm_AC_TYPE_INTMAX_T, jm_AC_TYPE_UINTMAX_T):
94023         Move AC_REQUIRE to next-to-top level, to avoid confusion.
94024         Use 2.52's AC_CHECK_TYPE instead of merely looking for the header.
94025         * m4/prereq.m4 (jm_PREREQ_HUMAN): Don't require
94026         jm_AC_HEADER_INTTYPES_H.
94027         * m4/jm-macros.m4 (jm_MACROS): Likewise.
94028
94029         * m4/uintmax_t.m4: Remove, as it duplicates inttypes.m4.
94030
94031         * m4/xstrtoimax.m4 (jm_AC_PREREQ_XSTRTOIMAX):
94032         Quote first arg of AC_DEFUN.
94033         Require jm_AC_TYPE_UINTMAX_T and jm_AC_TYPE_UNSIGNED_LONG_LONG
94034         since they are needed to parse the include file even if we need
94035         only xstrtoimax.  Simplify logic behind the args to AC_REPLACE.
94036         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Likewise,
94037         but with opposite signedness.
94038
94039 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94040
94041         Merge 'exclude' changes from tar 1.13.22.
94042         This fixes one or two unlikely storage allocation overflow bugs,
94043         but doesn't change user-visible behavior otherwise.
94044
94045 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94046
94047         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_EXCLUDE.
94048         (jm_PREREQ_EXCLUDE): New macro.
94049
94050 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94051
94052         * lib/quotearg.c: BSD/OS 4.1 wchar.h requires FILE and struct
94053         tm to be declared.
94054
94055 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94056
94057         * lib/hash.c: Remove '2001' from copyright notice.
94058
94059 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94060
94061         * lib/full-write.h: New file.
94062         * lib/Makefile.am (libfetish_a_SOURCES): Add full-write.h.
94063         * lib/full-write.c: Correct credits, as cccp.c no longer
94064         exists and anyway it was so heavily changed from the old cccp
94065         code as to be unrecognizable.  Include full-write.h.
94066         (full_write): Return size_t, with short writes meaning failure.
94067         All callers changed.  This fixes a bug with large buffers
94068         on 64-bit hosts.
94069         * lib/utime.c: Include full-write.h.
94070
94071 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94072
94073         * lib/exclude.c (bool): Declare, perhaps by including stdbool.h.
94074         (<sys/types.h>): Include only if HAVE_SYS_TYPES_H.
94075         (<stdlib.h>, <string.h>, <strings.h>, <inttypes.h>, <stdint.h>):
94076         Include if available.
94077         (<xalloc.h>): Include
94078         (SIZE_MAX): Define if <stdint.h> or <inttypes.h> doesn't.
94079         (verify): New macro.  Use it to verify that EXCLUDE macros do not
94080         collide with FNM macros.
94081         (struct patopts): New struct.
94082         (struct exclude): Use it, as exclude patterns now come with options.
94083         (new_exclude): Support above changes.
94084         (new_exclude, add_exclude_file):
94085         Initial size must now be a power of two to simplify overflow checking.
94086         (free_exclude, fnmatch_no_wildcards): New function.
94087         (excluded_filename): No longer requires options arg, as the options
94088         are determined by add_exclude.  Now returns bool, not int.
94089         (excluded_filename, add_exclude):
94090         Add support for the fancy new exclusion options.
94091         (add_exclude, add_exclude_file): Now takes int options arg.
94092         Check for arithmetic overflow when computing sizes.
94093         (add_exclude_file): xrealloc might modify errno, so don't
94094         realloc until after errno might be used.
94095
94096         * lib/exclude.h (EXCLUDE_ANCHORED, EXCLUDE_INCLUDE,EXCLUDE_WILDCARDS):
94097         New macros.
94098         (free_exclude): New decl.
94099         (add_exclude, add_exclude_file): Now takes int options arg.
94100         (excluded_filename): No longer requires options arg, as the options
94101         are determined by add_exclude.  Now returns bool, not int.
94102
94103 2001-08-30  Paul Eggert  <eggert@twinsun.com>
94104
94105         * lib/alloca.c (alloca): Arg is of type size_t, not unsigned.
94106
94107 2001-08-27  Jim Meyering  <meyering@lucent.com>
94108
94109         * lib/Makefile.am (libfetish_a_SOURCES): Add strtoxmax.c
94110
94111         * lib/version-etc.c (N_): Remove definition.
94112         Revert most of last change.
94113         Instead, simply don't mark the `Copyright...' string for translation.
94114         Based on advice from Paul Eggert.
94115
94116         * lib/strtoxmax.c: Tweak comment.
94117
94118 2001-08-26  Jim Meyering  <meyering@lucent.com>
94119
94120         * m4/jm-macros.m4: Require jm_AC_PREREQ_XSTRTOIMAX.
94121
94122         * m4/xstrtoimax.m4: New file.
94123         * m4/xstrtoumax.m4: Add comments explaining why we
94124         AC_REPLACE_FUNCS(strtol).
94125
94126 2001-08-26  Jim Meyering  <meyering@lucent.com>
94127
94128         * lib/version-etc.c (version_etc_copyright_fmt): Replace literal year
94129         of copyright with `%s' so translators don't get an untranslated
94130         message in 2002.
94131         (COPYRIGHT_YEAR): Define.
94132         (version_etc): Use fprintf rather than fputs.
94133         Suggestion from Ulrich Drepper.
94134
94135         * lib/Makefile.am (libfetish_a_SOURCES): Add xstrtoimax.c.
94136
94137         * lib/strtoll.c: New file, from GNU libc.
94138         * lib/xstrtoimax.c: New file.
94139
94140         * lib/xstrtol.h: Add xstrtoimax.
94141         * lib/strtoumax.c: New file.  Simply include "strtoumax.c".
94142         * lib/strtoimax.c: New file.  Likewise, but first define
94143         STRTOUXMAX_SIGNED.
94144
94145         * lib/strtoumax.c: Factor to work both for unsigned and signed types,
94146         ...
94147         * lib/strtoxmax.c: ... then renamed to this.
94148
94149 2001-08-18  Paul Eggert  <eggert@twinsun.com>
94150
94151         * m4/inttypes.m4: Add AC_PREREQ(2.13).
94152         (jm_AC_HEADER_INTTYPES_H): Test for intmax_t, too.
94153         (jm_AC_TYPE_INTMAX_T): New macro.
94154         (jm_AC_TYPE_UINTMAX_T): Moved here from uintmax_t.m4.
94155
94156         * m4/longlong.m4 (jm_AC_TYPE_LONG_LONG): New macro.
94157
94158         * m4/longlong.m4: Renamed from ulonglong.m4.
94159         * m4/inttypes.m4: Renamed from inttypes_h.m4.
94160         * m4/uintmax_t.m4: Removed.
94161
94162 2001-08-13  Paul Eggert  <eggert@twinsun.com>
94163
94164         * lib/Makefile.am (unlocked-io.h): Do not append "_unlocked" twice.
94165         Port to Solaris 8, where 'sed' requires a space after the 'r'
94166         command, and where sh dislikes "$/".  Clean up the spacing a bit.
94167         Redirect output to $tmp just once.
94168
94169 2001-08-12  Paul Eggert  <eggert@sic.twinsun.com>
94170
94171         * lib/addext.c (<errno.h>): Include.
94172         (errno): Declare if not defined.
94173         (addext): Work correctly when pathconf returns -1 and leaves
94174         errno alone because there is no limit.  Also, work even if
94175         pathconf returns a value greater than SIZE_MAX.
94176
94177 2001-08-12  Jim Meyering  <meyering@lucent.com>
94178
94179         * m4/afs.m4, assert.m4, bison.m4, check-decl.m4, chown.m4, d-ino.m4,
94180         d-type.m4, dos.m4, error.m4, fnmatch.m4, fpending.m4, fstypename.m4,
94181         fsusage.m4, ftruncate.m4, getgroups.m4, glibc.m4, gnu-source.m4,
94182         group-member.m4, jm-glibc-io.m4, jm-macros.m4, jm-mktime.m4,
94183         jm-winsz1.m4, jm-winsz2.m4, lchown.m4, lib-check.m4, libintl.m4,
94184         link-follow.m4, ls-mntd-fs.m4, lstat.m4, malloc.m4, mbrtowc.m4,
94185         mbstate_t.m4, mbswidth.m4, memcmp.m4, nanosleep.m4, perl.m4,
94186         prereq.m4, putenv.m4, readdir.m4, realloc.m4, regex.m4, rename.m4,
94187         rmdir-errno.m4, search-libs.m4, st_dm_mode.m4, st_mtim.m4, stat.m4,
94188         strftime.m4, timespec.m4, unlink-busy.m4, uptime.m4, utimbuf.m4,
94189         utime.m4, utimes.m4, xstrtoumax.m4:
94190         Quote the first argument in each use of AC_DEFUN.
94191
94192 2001-08-12  Jim Meyering  <meyering@lucent.com>
94193
94194         * lib/xgetcwd.c (xgetcwd) [defined __GLIBC__ && __GLIBC__ >= 2]:
94195         Simply `return getcwd (NULL, 0);'.
94196         [! (defined __GLIBC__ && __GLIBC__ >= 2)]:
94197         Use 1300 as initial value for length, not PATH_MAX.
94198
94199         * lib/pathmax.h: Clean up cpp syntax.
94200
94201 2001-08-12  Jim Meyering  <meyering@lucent.com>
94202
94203         * lib/gettimeofday.c: New file.
94204         * lib/gtod.h: New file.
94205         * lib/Makefile.am (libfetish_a_SOURCES): Add gtod.h.
94206
94207 2001-08-05  Jim Meyering  <meyering@lucent.com>
94208
94209         * m4/jm-macros.m4: Require autoconf-2.52.
94210
94211 2001-08-04  Jim Meyering  <meyering@lucent.com>
94212
94213         * lib/error.h (__attribute__): Remove `|| __STRICT_ANSI__' from #if
94214         stmt, to get in sync with glibc.
94215
94216 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94217
94218         The following changes are from gettext 0.10.39 as maintained by
94219         Bruno Haible.
94220
94221         * lib/mbswidth.h (MBSW_REJECT_UNPRINTABLE, MBSW_REJECT_INVALID):
94222         Renamed from MBSW_ACCEPT_UNPRINTABLE and MBSW_ACCEPT_INVALID
94223         with inverted sense.  All uses changed.
94224
94225         * lib/mbswidth.c: Don't include <limits.h>.
94226         Include <stdlib.h> and <string.h> unconditionally.
94227         (iswcntrl, mbsinit, ISCNTRL): New macros.
94228         (mbsnwidth): Use K&R style function declarations.
94229         Don't bother checking for MB_LEN_MAX == 1, since the compiler
94230         can optimize it when MB_CUR_MAX == 1.
94231         The width of control characters is zero, not 1.
94232
94233 2001-08-03  Paul Eggert  <eggert@twinsun.com>
94234
94235         The following changes are from gettext 0.10.39 as maintained by
94236         Bruno Haible, except that getline.m4 continues to use AC_LIBOBJ.
94237
94238         * m4/codeset.m4: Upgrade to serial AM1.
94239         (AM_LANGINFO_CODESET): Renamed from jm_LANGINFO_CODESET;
94240         all uses changed.  Quote first arg of AC_DEFUN.
94241         (am_cv_langinfo_codeset): Renamed from jm_cv_langinfo_codeset.
94242
94243         * m4/iconv.m4: Upgrade to serial AM2.
94244         (AM_ICONV): Renamed from jm_ICONV; all uses changed.
94245         Add --with-libconv-prefix.
94246         Quote first arg of AC_DEFUN.  Add description for ICONV_CONST.
94247         (am_cv_func_iconv): Renamed from jm_cv_func_iconv.
94248         (am_cv_lib_iconv): Renamed from jm_cv_lib_iconv.
94249         (am_cv_proto_iconv): Renamed from jm_cv_proto_iconv.
94250         * m4/jm-macros.m4 (jm_MACROS): Reflect s/jm_/AM_/ renamings.
94251
94252         * m4/c-bs-a.m4 (AC_C_BACKSLASH_A): Quote first arg of AC_DEFUN.
94253         * m4/getline.m4 (AM_FUNC_GETLINE): Likewise.
94254         * m4/glibc21.m4 (jm_GLIBC21): Likewise.
94255         * m4/inttypes_h.m4 (jm_AC_HEADER_INTTYPES_H): Likewise.
94256         * m4/isc-posix.m4 (AC_ISC_POSIX): Likewise.
94257         * m4/lcmessage.m4 (AM_LC_MESSAGES): Likewise.
94258         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): Likewise.
94259         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Likewise.
94260         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Likewise.
94261
94262         * m4/getline.m4 (AM_FUNC_GETLINE): Don't bother checking for
94263         string.h any more.
94264
94265         * m4/progtest.m4 (AM_PATH_PROG_WITH_TEST): If not found, print "no",
94266         not the default value.
94267
94268         2001-06-25  Bruno Haible  <haible@clisp.cons.org>
94269         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Don't require AM_C_PROTOTYPES.
94270         Also check for mbsinit.  Needed for SCO 3.2v5.0.2.
94271         Also include <string.h>; this is where AIX 3.2.5 declares wcwidth.
94272         Also check for iswcntrl, used for wcwidth fallback.
94273         Use AC_TRY_COMPILE to emulate AC_CHECK_DECLS, for portability
94274         to Autoconf 2.13.
94275
94276 2001-08-03  Jim Meyering  <meyering@lucent.com>
94277
94278         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Use `#include', not `@%:@include',
94279         as it was in the original.  Reported by Paul Eggert.
94280
94281 2001-07-16  Jim Meyering  <meyering@lucent.com>
94282
94283         * m4/gettimeofday.m4: New file.
94284         Prompted by a report from Bernhard Baehr.
94285
94286 2001-07-15  Jim Meyering  <meyering@lucent.com>
94287
94288         * m4/Makefile.am.in (Makefile.am): Remove most of the unlocked-io.h
94289         stuff. Now it's in ../Makefile.cfg.
94290
94291 2001-07-15  Jim Meyering  <meyering@lucent.com>
94292
94293         * lib/Makefile.am (EXTRA_DIST): Add unlocked-io.hin.
94294         (BUILT_SOURCES): Add unlocked-io.h.
94295         (io_functions): Define.
94296         (unlocked-io.h): New rule.
94297         (DISTCLEANFILES): Add unlocked-io.h.
94298         (all-local): Depend on unlocked-io.h, to ensure it is created.
94299
94300         * lib/unlocked-io.hin: New file
94301
94302         * lib/regex.c: Update from glibc.
94303
94304 2001-07-05  Jim Meyering  <meyering@lucent.com>
94305
94306         * lib/Makefile.am (noinst_HEADERS): Remove definition, per new automake
94307         recommendation.
94308         (libfetish_a_SOURCES): Put all .h files here instead.
94309         Remove a thus-exposed (better checks in automake) duplicate and
94310         two unnecessary .h files.
94311
94312 2001-07-04  Jim Meyering  <meyering@lucent.com>
94313
94314         * m4/Makefile.am.in (glibc-io.struct): New target.  Rework the code
94315         that generates jm-glibc-io.m4 so that it doesn't trigger any make
94316         distcheck failure.
94317
94318 2001-07-02  Jim Meyering  <meyering@lucent.com>
94319
94320         The following changes were prompted by suggestions from Bruno Haible.
94321
94322         * m4/jm-glibc-io.m4n: New file, the template from which jm-glibc-io.m4
94323         is now generated.
94324         * m4/Makefile.am.in (Makefile.am): Include jm-glibc-io.m4n in emitted
94325         definition of EXTRA_DIST.
94326         (Makefile.am): Emit the dependency, `all-local: jm-glibc-io.m4' to
94327         ensure that the generated file is created/updated whenever the list
94328         of $(unlocked_functions) is changed.
94329         (jm-glibc-io.m4): New rule.
94330         (unlocked-io.h): New rule -- currently unused.
94331
94332 2001-06-24  Jim Meyering  <meyering@lucent.com>
94333
94334         * m4/regex.m4 (jm_INCLUDED_REGEX): Use a quadrigraph to represent an
94335         unmatched right bracket, rather than kludging it with an extra,
94336         falsely-matching quote in a comment.  Patch by Akim Demaille.
94337
94338 2001-06-11  Jim Meyering  <meyering@lucent.com>
94339
94340         * lib/regex.c: Update from GNU libc.
94341
94342 2001-05-27  Jim Meyering  <meyering@lucent.com>
94343
94344         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for ut_type in struct utmpx.
94345         Check for ut_type in struct utmp.
94346
94347 2001-05-27  Jim Meyering  <meyering@lucent.com>
94348
94349         * lib/readutmp.h (UT_TYPE): Define.
94350
94351 2001-05-24  Jim Meyering  <meyering@lucent.com>
94352
94353         * lib/argmatch.c: Include "quote.h".
94354         (argmatch_invalid): Remove explicit `' quotes.  Instead, use the
94355         quote function.  Reported by Göran Uddeborg.
94356
94357 2001-05-22  Jim Meyering  <meyering@lucent.com>
94358
94359         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Don't use AC_LIBOBJ(strftime),
94360         now that we use the package-supplied version unconditionally.
94361         (jm_FUNC_STRFTIME): Don't replace strftime, for the same reason.
94362
94363 2001-05-21  Jim Meyering  <meyering@lucent.com>
94364
94365         * m4/regex.m4: Change a couple backticks to single quotes to avoid
94366         shell syntax errors.
94367
94368 2001-05-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94369
94370         * m4/dos.m4 (jm_AC_DOS): Check for _WIN32, __WIN32__, and __MSDOS__.
94371
94372 2001-05-20  Paul Eggert  <eggert@twinsun.com>
94373
94374         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME):
94375         Don't bother to check library strftime, since
94376         we'll be using our own my_strftime function anyway.
94377         Define my_strftime instead of strftime.
94378
94379 2001-05-20  Alexandre Duret-Lutz  <duret_g@epita.fr>
94380
94381         * lib/dirname.c (dir_name): Compute append_dot using path, not newpath
94382         which is not yet declared.
94383
94384 2001-05-15  Jim Meyering  <meyering@lucent.com>
94385
94386         * m4/regex.m4: Use proper quoting so brackets appear in the test
94387         program.
94388         Reported by, and with help from, Bruno Haible.
94389
94390 2001-05-13  Jim Meyering  <meyering@lucent.com>
94391
94392         * m4/jm-macros.m4 (major_t, minor_t): Define to unsigned int if
94393         undefined.
94394
94395 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94396
94397         dirname code cleanup.  base_name now behaves more compatibly
94398         with POSIX basename when given file names that have trailing
94399         slashes, and similarly for dir_name.  Add new primitives
94400         base_len and dir_len.  Put the directory-name-related decls
94401         into dirname.h.
94402
94403         * lib/addext.c (ISSLASH, base_name): Remove; now in dirname.h.
94404         * lib/backupfile.c (base_name): Likewise.
94405         * lib/basename.c (FILESYSTEM_PREFIX_LEN, PARAMS, ISSLASH): Likewise.
94406         * lib/dirname.c (FILESYSTEM_PREFIX_LEN, ISSLASH): Likewise.
94407         * lib/makepath.c (strip_trailing_slashes): Likewise.
94408         * lib/path-concat.c (DIRECTORY_SEPARATOR, FILESYSTEM_PREFIX_LEN,
94409         ISSLASH): Likewise.
94410         * lib/rename.c (strip_trailing_slashes): Likewise.
94411         * lib/same.c (base_name): Likewise.
94412         * lib/stripslash.c (ISSLASH): Likewise.
94413
94414         * lib/addext.c: Include <dirname.h> after size_t is defined.
94415         * lib/backupfile.c: Likewise.
94416
94417         * lib/addext.c (addext): Use base_len to trim redundant
94418         trailing slashes instead of doing it ourselves.
94419         But do not trim the last slash if it is not redundant.
94420
94421         * lib/backupfile.c (find_backup_file_name,
94422         max_backup_version): Use base_len instead of rolling it ourselves.
94423         Handle the case of "" and (on DOS) "C:" correctly.
94424
94425         * lib/basename.c: Do not include <stdio.h>, <assert.h>; no longer
94426         needed. Include <string.h>, <dirname.h>.
94427         (base_name): Allow file names ending in slashes, other than names
94428         that are all slashes.  In this case, return the basename followed
94429         by the slashes.  This is more general, and can be used in places
94430         where the original base_name purposely had an assertion failure.
94431         (base_len): New function.
94432
94433         * lib/dirname.c: Include <string.h> instead of <stdlib.h>.
94434         Do not include <assert.h>; no longer needed.
94435         Include xalloc.h.
94436         (memrchr): Remove decl.
94437         (dir_name_r): Remove.
94438         (dir_len): Renamed from dirlen.  All callers changed.
94439         Rewrite in terms of base_name, for simplicity and consistency.
94440         (dir_name): Never return NULL.  All callers changed.
94441         Do not include <stdlib.h> in test program; no longer needed.
94442         return 0; is fine for test program.
94443
94444         * lib/dirname.h (DIRECTORY_SEPARATOR, ISSLASH, FILESYSTEM_PREFIX_LEN):
94445         New macros.
94446         (base_name, base_len, dir_len, strip_trailing_slashes): New decls.
94447
94448         * lib/path-concat.c (path_concat): Use base_len to compute
94449         base length, not strlen; this means we cannot rely on memcpy
94450         to null-terminate.
94451
94452         * lib/same.c (STREQ): Remove.
94453         (same_name): Handle the case where the basename ends in trailing '/'.
94454
94455         * lib/stripslash.c (strip_trailing_slashes): Return nonzero if
94456         a slash was stripped.  Do not strip the last slash after a
94457         file system prefix.
94458
94459 2001-05-11  Paul Eggert  <eggert@twinsun.com>
94460
94461         * lib/Makefile.am (libfetish_a_SOURCES):
94462         Add strftime.c, since we now compile it on all hosts.
94463
94464         * lib/strftime.c (my_strftime):
94465         Define to nstrftime if emacs, but only if my_strftime is not defined.
94466         (extra_args, extra_args_spec, extra_args_spec_iso): Rename from
94467         ut_argument, ut_argument_spec, ut_argument_spec_iso, respectively.
94468         Add one more extra argument: a nanoseconds value.
94469         All uses changed.
94470         (ns): New macro.
94471         (my_strftime function): Add %N format.
94472         (emacs_strftimeu): Renamed from emacs_strftime,
94473         with extra ut argument.
94474
94475 2001-05-09  Paul Eggert  <eggert@twinsun.com>
94476
94477         * m4/jm-macros.m4 (jm_MACROS): Do not check for fseeko; no longer used.
94478
94479 2001-04-21  Jim Meyering  <meyering@lucent.com>
94480
94481         * m4/rmdir-errno.m4: Write to a new file, so that a restrictive umask
94482         doesn't interfere.
94483
94484 2001-04-21  Alexandre Duret-Lutz  <duret_g@epita.fr>
94485
94486         * m4/ftruncate.m4: Check for chsize.
94487         Link with ftruncate.o unconditionally if ftruncate is missing.
94488         This was required when cross-compiling to i586-mingw32msvc.
94489
94490 2001-04-08  Jim Meyering  <meyering@lucent.com>
94491
94492         * lib/getdate.y (get_date): Set tm_isdst to -1 to ensure that it is
94493         recomputed; that's necessary when the offset spans a DST transition.
94494         Patch by David J. MacKenzie.  Reported by Hon-Yin Kok.
94495
94496 2001-04-02  Jim Meyering  <meyering@lucent.com>
94497
94498         * lib/regex.h, regex.c: Update from GNU libc.
94499
94500 2001-03-24  Jim Meyering  <meyering@lucent.com>
94501
94502         * m4/jm-macros.m4: Require autoconf-2.49d.
94503
94504 2001-03-20  Bruno Haible  <haible@clisp.cons.org>
94505
94506         * m4/iconv.m4 (jm_ICONV): Recommend GNU libiconv.
94507
94508 2001-03-19  Paul Eggert  <eggert@twinsun.com>
94509
94510         * lib/version-etc.c (version_etc_copyright): Update to 2001.
94511
94512 2001-03-17  Jim Meyering  <meyering@lucent.com>
94513
94514         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Remove my copy of AC_FUNC_MEMCMP,
94515         now that the version in autoconf is equivalent.
94516         (jm_FUNC_MEMCMP): Adjust to use AC_FUNC_MEMCMP.
94517
94518         * m4/error.m4 (jm_PREREQ_ERROR): Invoke AC_FUNC_STRERROR_R.
94519         Suggestion from Akim Demaille.
94520
94521         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_TEMPNAME.
94522         (jm_PREREQ_TEMPNAME): New function.
94523
94524 2001-03-16  Paul Eggert  <eggert@twinsun.com>
94525
94526         * lib/tempname.c (uint64_t): Define to uintmax_t if
94527         not defined, and if UINT64_MAX is not defined.
94528         Required at least for Vax Ultrix4.3, which doesn't define uint64_t.
94529         Reported by John David Anglin.
94530
94531 2001-03-15  Bruno Haible  <haible@clisp.cons.org>
94532
94533         * lib/localcharset.c (locale_charset): Allow wildcard syntax. Also
94534         resolve alias if codeset is empty.
94535         * lib/config.charset (BeOS): Use wildcard syntax.
94536
94537 2001-03-13  Jim Meyering  <meyering@lucent.com>
94538
94539         * lib/path-concat.c (path_concat)
94540         [FILESYSTEM_ACCEPTS_DRIVE_LETTER_PREFIX]: Don't insert a backslash when
94541         concatenating e.g., `C:' and `foo'.
94542         From Bruno Haible.
94543
94544 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94545
94546         * lib/localcharset.c (locale_charset): Don't use
94547         setlocale(LC_CTYPE,NULL). Don't return NULL.
94548         * lib/unicodeio.c (print_unicode_char): Simplify accordingly.
94549
94550 2001-03-06  Bruno Haible  <haible@clisp.cons.org>
94551
94552         * lib/config.charset: Update for FreeBSD 4.2 and OSF/1 5.1. Add
94553         support for DOS/DJGPP.
94554
94555 2001-03-01  Paul Eggert  <eggert@twinsun.com>
94556
94557         * m4/jm-macros.m4 (jm_MACROS): Use mkstemp replacement if the system
94558         lacks mkstemp.  Compile our own tempname.c if we compile our own
94559         mkstemp.c, as mkstemp relies on tempname.
94560
94561 2001-03-01  Jim Meyering  <meyering@lucent.com>
94562
94563         * m4/dos.m4 (jm_AC_DOS): Remove extra backslashes, now that
94564         AH_VERBATIM really does output its argument verbatim.
94565
94566 2001-02-28  Paul Eggert  <eggert@twinsun.com>
94567
94568         * lib/Makefile.am (libfetish_a_SOURCES):
94569         Add dup-safer.c, fopen-safer.c.
94570         (noinst_HEADERS): Add stdio-safer.h, unistd-safer.h.
94571
94572         * lib/dup-safer.c, lib/fopen-safer.c, lib/stdio-safer.h:
94573         * lib/unistd-safer.h: New files.
94574
94575 2001-02-25  Paul Eggert  <eggert@twinsun.com>
94576
94577         The mkstemp replacement is taken from glibc 2.2.2, with some
94578         portability fixes for use outside glibc, as follows:
94579
94580         * lib/tempname.c (struct_stat64): New macro.
94581         (direxists, __gen_tempname): Use it.
94582         This avoids a portability problem with Solaris 8.
94583
94584         * lib/tempname.c (<config.h>): Include if HAVE_CONFIG_H.
94585         (<stddef.h>, <stdint.h>, <string.h>):
94586         Include only if STDC_HEADERS || _LIBC.
94587         (<fcntl.h>): Include only if HAVE_FCNTL_H || _LIBC.
94588         (<unistd.h>): Include only if HAVE_UNISTD_H || _LIBC.
94589         (<sys/time.h>): Include only if HAVE_SYS_TIME_H || _LIBC.
94590         (__set_errno): Define this macro if <errno.h> doesn't.
94591         (P_tmpdir, TMP_MAX, __GT_FILE, __GT_BIGFILE, __GT_DIR, __GT_NOCREATE):
94592         Define these macros if <stdio.h> doesn't.
94593         (S_ISDIR, S_IRUSR, S_IWUSR, S_IXUSR):
94594         Define these macros if <sys/stat.h>
94595         doesn't.  Ignore <sys/stat.h> S_ISDIR if STAT_MACROS_BROKEN.
94596         (stat64, __getpid, __gettimeofday, __mkdir, __open, __open64, lxstat64,
94597         __xstat64): Define if not _LIBC.
94598         (__secure_getenv): Define if ! (HAVE___SECURE_GETENV || _LIBC).
94599         (__gen_tempname): Invoke gettimeofday only if
94600         HAVE_GETTIMEOFDAY || _LIBC;
94601         otherwise, fall back on plain "time".
94602         Use macros like S_IRUSR | S_IWUSR rather than octal values like 0600.
94603
94604         * lib/mkstemp.c (__GT_FILE): Define to zero if not defined.
94605
94606         * lib/mkstemp.c, lib/tempname.c: New files, taken from glibc 2.2.2.
94607
94608 2001-02-18  Paul Eggert  <eggert@twinsun.com>
94609
94610         * m4/jm-macros.m4 (jm_CHECK_ALL_HEADERS): Check for sys/resource.h.
94611
94612 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94613
94614         * m4/mbrtowc.m4: New file, defining jm_FUNC_MBRTOWC.
94615         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH):
94616         Use jm_FUNC_MBRTOWC, not AC_CHECK_FUNCS(mbrtowc).
94617         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Likewise.
94618
94619 2001-02-17  Paul Eggert  <eggert@twinsun.com>
94620
94621         * lib/mbswidth.c, quotearg.c (mbrtowc, mbsinit):
94622         Remove workaround macros for hosts that have mbrtowc but not
94623         mbstate_t, as we now insist on proper declarations for both
94624         before using mbrtowc.
94625
94626 2001-02-17  Jim Meyering  <meyering@lucent.com>
94627
94628         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Don't check for
94629         getmntent via AC_CHECK_FUNCS, since that would get a `no' and disrupt
94630         further attempts by AC_FUNC_GETMNTENT to check with e.g., -lgen on
94631         UnixWare 7.1.1.
94632
94633         * m4/mbrtowc.m4 (jm_FUNC_MBRTOWC): Adapt to use AC_CACHE_CHECK etc.,
94634         rather than AC_CACHE_VAL.
94635
94636 2001-02-17  Jim Meyering  <meyering@lucent.com>
94637
94638         * lib/strtoul.c: Sync from GNU libc.  Use double quotes, not <...>
94639         around included file name.
94640
94641         * lib/strnlen.c (__strnlen): Merge in a change from GNU libc.
94642
94643         * lib/strftime.c: Update from GNU libc (the only changes were to
94644         comments).
94645
94646 2001-02-17  Jim Meyering  <meyering@lucent.com>
94647
94648         * lib/regex.c: Update from libc.
94649
94650 2001-02-17  Bruno Haible  <haible@clisp.cons.org>
94651
94652         * lib/mbswidth.h (mbswidth): Also define as macro, to avoid prototype
94653         clash.
94654
94655 2001-02-16  Paul Eggert  <eggert@twinsun.com>
94656
94657         * lib/alloca.c (malloc): Undef before defining, since stdlib.h
94658         may have defined it.  Needed for Encore Umax-3.0.9.16b systems.
94659         Reported by Mark Hounschell via Paul Eggert.
94660
94661 2001-02-07  Jim Meyering  <meyering@lucent.com>
94662
94663         * m4/regex.m4 (jm_INCLUDED_REGEX): Add a test for the latest bug.
94664
94665 2001-02-05  Jim Meyering  <meyering@lucent.com>
94666
94667         * m4/jm-macros.m4: Require autoconf-2.14d (not yet released), because
94668         it includes the patch required for `large file' support with at least
94669         HP-UX's 10.20 /bin/cc.
94670
94671 2001-02-03  Jim Meyering  <meyering@lucent.com>
94672
94673         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Restore prior use of
94674         AS_IF, now that it works once again (mysteriously).
94675         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94676
94677 2001-01-30  Jim Meyering  <meyering@lucent.com>
94678
94679         Don't use filenames that are 8.3-equivalent to "conftest" on DOS.
94680         * m4/chown.m4: Rename conftestchown to conftest.chown.
94681         * m4/rename.m4: s/conftestdir/conftest.d1/ and
94682         s/conftestdir2/conftest.d2/.
94683         * m4/utimes.m4: s/conftestdata/conftest.data/
94684         Inspired by Pavel Roskin's change in autoconf.
94685
94686 2001-01-30  Bruno Haible  <haible@clisp.cons.org>
94687
94688         * lib/config.charset: Update for FreeBSD 4.2.
94689
94690 2001-01-27  Jim Meyering  <meyering@lucent.com>
94691
94692         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Open-code what was
94693         a use of AS_IF.
94694         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Likewise.
94695
94696 2001-01-26  Jim Meyering  <meyering@lucent.com>
94697
94698         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Check for stddef.h, now that
94699         quotearg.c includes it.
94700
94701 2001-01-26  Jim Meyering  <meyering@lucent.com>
94702
94703         * lib/quotearg.c: Include stddef.h.
94704         * lib/quote.c: Include stddef.h.
94705         Reported by Axel Kittenberger.
94706
94707         * lib/xmalloc.c [HAVE_DONE_WORKING_MALLOC_CHECK]: Enclose error-evoking
94708         line in double quotes so that it evokes a better diagnostic.
94709         [HAVE_DONE_WORKING_REALLOC_CHECK]: Likewise.
94710         Reported by Axel Kittenberger.
94711
94712 2001-01-24  Stefan Monnier  <monnier@cs.yale.edu>
94713
94714         * regex.c (mutually_exclusive_p): Don't blindly handle `charset_not'
94715         as if it was a `charset'.
94716
94717 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94718
94719         * m4/iconv.m4 (jm_ICONV): Also check whether the iconv declaration
94720         has const.
94721
94722 2001-01-21  Bruno Haible  <haible@clisp.cons.org>
94723
94724         * lib/unicodeio.c (print_unicode_char): Cast the second iconv() arg,
94725         to avoid a warning.  Add back 'const' to inptr.
94726
94727 2001-01-20  Jim Meyering  <meyering@lucent.com>
94728
94729         Be sure that headers are checked before used in code compiled
94730         for the type checks.
94731         * m4/jm-macros.m4 (jm_MACROS): Remove all header checks.
94732         In place of that, invoke jm_CHECK_ALL_TYPES.
94733         (jm_CHECK_ALL_HEADERS): New functions with the above checks.
94734         (jm_CHECK_ALL_TYPES): Require jm_CHECK_ALL_HEADERS.
94735         Alan Iwi reported a build failure on an f300-fujitsu-uxpv4.1_ES;
94736         The check for ssize_t was mistakenly run before the test for unistd.h.
94737
94738         The configure-time check for stdbool.h was missing.
94739         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_HASH.
94740         (jm_PREREQ_HASH): New function.
94741
94742 2001-01-17  Jim Meyering  <meyering@lucent.com>
94743
94744         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use AS_IF, not AS_IFELSE,
94745         for autoconf-2.49c.
94746         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Likewise.
94747
94748 2001-01-16  Jim Meyering  <meyering@lucent.com>
94749
94750         * lib/basename.c: Include <stdio.h>, needed by assert on SunOS 4.
94751         From Bruno Haible.
94752
94753 2001-01-14  Jim Meyering  <meyering@lucent.com>
94754
94755         * m4/rename.m4: Use temporary directories named conftestdir{,2}, not
94756         foo and bar.  Create conftestdir/ in the script, not in the C code.
94757         Remove directories in the script, not in the C code.
94758         Remove conftestdir{,2} before trying to create the directory.
94759         Make the entire configure script fail if the mkdir fails.
94760
94761 2001-01-14  Jim Meyering  <meyering@lucent.com>
94762
94763         * lib/rename.c: New file.  From Volker Borchert.
94764         Include stdlib.h, string.h or strings.h, and xalloc.h.
94765         Use strip_trailing_slashes rather than open-coding it.
94766
94767 2001-01-03  Paul Eggert  <eggert@twinsun.com>
94768
94769         * lib/strftime.c: Sync with glibc time/strftime.c 1.81.
94770
94771 2001-01-03  Jim Meyering  <meyering@lucent.com>
94772
94773         * lib/unicodeio.c (print_unicode_char): Remove `const' from declaration
94774         of local `inptr' to avoid warning with some system declarations of
94775         iconv.
94776
94777 2001-01-02  Volker Borchert  <bt@teknon.de>
94778
94779         * m4/rename.m4: New file.
94780         * m4/jm-macros.m4 (jm_MACROS): Require vb_FUNC_RENAME.
94781
94782 2001-01-01  Jim Meyering  <meyering@lucent.com>
94783
94784         * m4/prereq.m4 (jm_PREREQ_READUTMP): Include utmp.h (if available),
94785         even on systems with utmpx.h.  It's necessary for the declaration of
94786         utmp's ut_user member.  Reported by Andreas Jaeger.
94787
94788         * m4/check-decl.m4 (jm_CHECK_DECLS): Include grp.h and pwd.h if
94789         available. They are required for the declarations of getgrgid and
94790         getpwuid resp.
94791         (_jm_DECL_HEADERS): Check for grp.h and pwd.h.
94792         Reported by Andreas Jaeger.
94793
94794 2001-01-01  Alexandre Duret-Lutz  <duret_g@epita.fr>
94795
94796         * m4/libintl.m4 (AM_GNU_GETTEXT): Define MKINSTALLDIRS by
94797         expanding the value of $ac_aux_dir, as in AM_MISSING_HAS_RUN,
94798         so `make install' also works in VPATH builds.
94799
94800 2000-12-31  Alexandre Duret-Lutz  <duret_g@epita.fr>
94801
94802         * m4/libintl.m4 (AM_WITH_NLS): When using AC_CONFIG_AUX_DIR,
94803         prepend $(top_srcdir) to the value of MKINSTALLDIRS so that it
94804         can be used in subdirectories.
94805
94806 2000-12-29  Paul Eggert  <eggert@twinsun.com>
94807
94808         * lib/modechange.c: Do not assume that mode_t uses the
94809         traditional octal encoding.  E.g. "chmod 1 FOO" should set
94810         the other-execute bit of FOO even if S_IXOTH != 1.
94811
94812         (SUID, SGID, SVTX, RUSR, WUSR, XUSR, RGRP, WGRP, XGRP, ROTH,
94813         WOTH, XOTH, ALLM): New macros.
94814         (S_ISUID, S_ISGID, S_ISVTX, S_IRUSR, S_IWUSR, S_IXUSR,
94815          S_IRGRP, S_IWGRP, S_IXGRP, S_IROTH, S_IWOTH, S_IXOTH):
94816         Use them.
94817         (S_ISGID): Fix typo; it was defaulting to the same value as S_ISUID.
94818         (S_IRWXU, S_IRWXG, S_IRWXO): Specify defaults in terms of the above.
94819         (mode_compile):
94820         No need to use uintmax_t; unsigned long is long enough.
94821         Don't bother to get suffix since we don't use it.
94822
94823 2000-12-26  Jim Meyering  <meyering@lucent.com>
94824
94825         * m4/dos.m4 (jm_AC_DOS): Rewrite (though it's still a stub) to work
94826         better with autoheader.
94827
94828 2000-12-24  Jim Meyering  <meyering@lucent.com>
94829
94830         * lib/hash.c (is_prime): Return explicit boolean values.
94831         (hash_get_first): Return NULL to appease Irix5.6's 89.
94832         Reported by Nelson Beebe.
94833
94834 2000-12-19  Bruno Haible  <haible@clisp.cons.org>
94835
94836         * lib/localcharset.c (locale_charset): Add support for Win32.
94837
94838 2000-12-18  Paul Eggert  <eggert@twinsun.com>
94839
94840         * lib/physmem.h, lib/physmem.c: New files.
94841
94842         * lib/Makefile.am (libfetish_a_SOURCES): Add physmem.c.
94843         (noinst_HEADERS): Add physmem.h.
94844
94845         * lib/xstrtol.c (__xstrtol): Add undocumented suffixes 'g' and
94846         't' for compatibility with Solaris 8 sort.
94847
94848 2000-12-18  Bruno Haible  <haible@clisp.cons.org>
94849
94850         * lib/config.charset: Add support for BeOS.
94851
94852 2000-12-17  Jim Meyering  <meyering@lucent.com>
94853
94854         * m4/dos.m4 (jm_AC_DOS): New file and macro.
94855         * m4/jm-macros.m4 (jm_MACROS): Require jm_AC_DOS.
94856
94857 2000-12-16  Jim Meyering  <meyering@lucent.com>
94858
94859         This bug had a serious impact on chown: `chown N:M FILE' (for integer
94860         N and M) would have treated it like `chown N:N FILE'.
94861
94862         * lib/userspec.c (parse_user_spec): Fix typo: s/u/g/.
94863
94864 2000-12-16  Jim Meyering  <meyering@lucent.com>
94865
94866         * lib/getusershell.c [!SHELLS_FILE && __DJGPP__]: Define
94867         SHELLS_FILE to a file name that's useful on djgpp systems.
94868         Include stdlib.h.
94869         (ADDITIONAL_DEFAULT_SHELLS): Define.
94870         (default_shells): Prepend ADDITIONAL_DEFAULT_SHELLS.
94871         Based mostly on a patch from Prashant TR.
94872
94873 2000-12-16  Bruno Haible  <haible@clisp.cons.org>
94874
94875         * lib/config.charset: Add ISO-8859-3, BIG5HKSCS, GB18030, JOHAB,
94876         VISCII, CP874, CP949, CP950, CP1250, CP1253, CP1254, CP1255, CP1256,
94877         CP1257 to the list of canonical encodings. Rename EUC-CN to GB2312.
94878
94879 2000-12-08  Andreas Schwab  <schwab@suse.de>
94880
94881         * lib/mbswidth.c (mbsnwidth): Don't loop endlessly when called with an
94882         invalid mulitbyte sequence and with the MBSW_ACCEPT_INVALID flag set.
94883
94884 2000-12-07  Jim Meyering  <meyering@lucent.com>
94885
94886         * lib/stripslash.c (ISSLASH): Define.
94887         (strip_trailing_slashes): Use ISSLASH rather than comparing against
94888         `/'.
94889         From Prashant TR.
94890
94891         * lib/dirname.c (FILESYSTEM_PREFIX_LEN): Define.
94892         (dir_name_r): Declare this function as static.
94893         [BACKSLASH_IS_PATH_SEPARATOR]: Fix a bug that'd
94894         manifest itself on a name containing a mix of slashes and
94895         backslashes.
94896         Make this function work with names starting with a DOS-style
94897         drive letter and colon prefix.
94898         (dir_name): Append `.' if necessary.
94899         Based mostly on patches from Prashant TR and Eli Zaretskii.
94900
94901         * lib/dirname.h (dir_name_r): Remove prototype.
94902
94903 2000-12-06  Paul Eggert  <eggert@twinsun.com>
94904
94905         * m4/off_t-format.m4: Remove this file.
94906         * m4/jm-macros.m4 (jm_MACROS): Remove jm_SYS_OFF_T_PRINTF_FORMAT.
94907
94908 2000-12-06  Jim Meyering  <meyering@lucent.com>
94909
94910         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): If we need the
94911         replacement strtoull, we may well need the replacement strtoul, too.
94912         Check for declarations of strtoul and strtoull.
94913         Check for strtol.  Mainly as a cue to cause automake to include
94914         strtol.c -- that file is included by each of strtoul.c and strtoull.c.
94915         Check for limits.h -- strtol.c needs it.
94916
94917 2000-12-05  Jim Meyering  <meyering@lucent.com>
94918
94919         * lib/dirname.c (dir_name_r): Add `const' in a few local declarations.
94920
94921 2000-12-04  Jim Meyering  <meyering@lucent.com>
94922
94923         * lib/path-concat.c: [!HAVE_DECL_MALLOC]: Declare malloc.
94924         Also include memory.h, stdlib.h, unistd.h if appropriate.
94925         Reported by Andreas Jaeger (conflicting declaration of malloc).
94926
94927 2000-12-02  Jim Meyering  <meyering@lucent.com>
94928
94929         * m4/off_t-format.m4 (OFF_T_PRINTF_FORMAT_STRING): New file/macro.
94930         * m4/jm-macros.m4 (jm_MACROS): require it.
94931
94932 2000-12-02  Jim Meyering  <meyering@lucent.com>
94933
94934         * lib/closeout.h: Make idempotent, to avoid some obscure warnings.
94935
94936 2000-12-01  Paul Eggert  <eggert@twinsun.com>
94937
94938         * lib/memrchr.c: Include <config.h> before any system include file.
94939
94940 2000-11-30  Jim Meyering  <meyering@lucent.com>
94941
94942         * m4/jm-macros.m4 (jm_MACROS): Check for stdint.h.
94943
94944 2000-11-30  Jim Meyering  <meyering@lucent.com>
94945
94946         * m4/getloadavg.m4: s/ifval/m4_ifval/ to accommodate new autoconf.
94947
94948 2000-11-29  Paul Eggert  <eggert@twinsun.com>
94949
94950         * lib/dirname.c (dir_name_r): Fix typo: int -> size_t.
94951
94952 2000-11-26  Jim Meyering  <meyering@lucent.com>
94953
94954         * lib/memcoll.c: Include sys/types.h.  From Werner Almesberger.
94955
94956 2000-11-22  Paul Eggert  <eggert@twinsun.com>
94957
94958         * lib/strftime.c (my_strftime): Do not invoke mbrlen with a
94959         size of (size_t) -1; it's not portable.
94960
94961 2000-11-17  Jim Meyering  <meyering@lucent.com>
94962
94963         * lib/strstr.c: Update from GNU libc.
94964
94965 2000-11-17  Akim Demaille  <akim@epita.fr>
94966
94967         * lib/obstack.h: Formatting changes.
94968         (obstack_grow, obstack_grow0): Don't cast WHERE at all: that would
94969         prevent type checking.
94970         (obstack_ptr_grow, obstack_ptr_grow_fast): When assigning, don't
94971         cast the value to (void *): assigning a `foo *' to a `void *'
94972         variable is valid.
94973         (obstack_int_grow, obstack_int_grow_fast): Don't cast AINT to int.
94974
94975 2000-11-16  Jim Meyering  <meyering@lucent.com>
94976
94977         * lib/strverscmp.c: Incorporate weak-alias-related changes from glibc.
94978
94979 2000-11-11  Jim Meyering  <meyering@lucent.com>
94980
94981         * lib/error.c: Add a couple #includes, merging from GNU libc version.
94982
94983 2000-11-10  Jim Meyering  <meyering@lucent.com>
94984
94985         * lib/obstack.h: Update from GNU libc.
94986         * lib/obstack.c: Likewise.
94987
94988 2000-11-08  Bruno Haible  <haible@clisp.cons.org>
94989
94990         * m4/jm-macros.m4 (jm_MACROS): Add test for wcrtomb.
94991
94992 2000-11-06  Paul Eggert  <eggert@twinsun.com>
94993
94994         * lib/getusershell.c (setusershell): Use rewind rather than
94995         fseek/fseeko, to avoid configuration hassles with fseeko.
94996         Don't bother opening SHELLS_FILE if shellstream is NULL;
94997         it's not necessary.
94998
94999 2000-11-05  Jim Meyering  <meyering@lucent.com>
95000
95001         * lib/makepath.h (make_dir): Declare.
95002         * lib/makepath.c (make_dir): Remove `static' attribute.
95003         Tweak a comment.
95004
95005 2000-11-04  Jim Meyering  <meyering@lucent.com>
95006
95007         * m4/regex.m4: Use the `m4_' prefix on `syscmd' and `m4_sysval'.
95008
95009 2000-11-04  Alexandre Duret-Lutz  <duret_g@epita.fr>
95010
95011         * lib/hash.c (hash_get_next): Fix a thinko:  when ENTRY is the
95012         last one in a bucket, advance to the next bucket.
95013
95014 2000-11-02  Vesselin Atanasov  <vesselin@bgnet.bg>
95015
95016         * lib/fnmatch.c: Do not comment out all the code if we are using
95017         the GNU C library, because in some cases we are replacing buggy
95018         code in the GNU C library itself.
95019
95020 2000-10-30  Stefan Monnier  <monnier@cs.yale.edu>
95021
95022         * regex.c (re_iswctype, re_wctype_to_bit): Fix braino.
95023         (regex_compile): Catch bogus \(\1\).
95024
95025 2000-10-30  Paul Eggert  <eggert@twinsun.com>
95026
95027         * lib/fnmatch.c (FOLD): Do not assume that characters are unsigned.
95028         (fnmatch): Fix some FNM_FILE_NAME and FNM_LEADING_DIR bugs,
95029         e.g. fnmatch("d*/*1", "d/s/1", FNM_FILE_NAME) incorrectly yielded zero.
95030
95031 2000-10-30  Paul Eggert  <eggert@twinsun.com>
95032
95033         * lib/error.h, getline.h, modechange.h:
95034         Remove "2000" from Copyright line, as the file hasn't been
95035         changed this year other than in the copyright notice.
95036
95037         * lib/xalloc.h: Add "2000" to Copyright line, as this file
95038         was changed this year.
95039
95040 2000-10-29  Jim Meyering  <meyering@lucent.com>
95041
95042         * m4/fsusage.m4: s/AC_SHELL_IFELSE/AS_IFELSE/ to match autoconf
95043         renaming.
95044         * m4/ls-mntd-fs.m4: Likewise
95045
95046 2000-10-29  Jim Meyering  <meyering@lucent.com>
95047
95048         * lib/xstat.in: Fix grammar in comment.
95049
95050 2000-10-29  Greg Louis  <glouis@dynamicro.on.ca>
95051
95052         * lib/regex.h (__restrict_arr): Move definition out of #ifndef block.
95053         Required because egcs-2.91.66 (aka 1.1.2) defines __restrict, but
95054         doesn't define __restrict_arr.
95055
95056 2000-10-28  Jim Meyering  <meyering@lucent.com>
95057
95058         * m4/prereq.m4 (jm_PREREQ): Add jm_PREREQ_MEMCHR.
95059         (jm_PREREQ_MEMCHR): New function.
95060
95061 2000-10-28  Jim Meyering  <meyering@lucent.com>
95062
95063         * lib/memchr.c: Update from libc.
95064         Adjust for portability:
95065         [HAVE_STDLIB_H]: Include stdlib.h.
95066         [HAVE_BP_SYM_H || _LIBC]: Guard inclusion of bp-sym.h.
95067         Undef __memchr, too.
95068         [!weak_alias]: Define __memchr to memchr.
95069
95070         * lib/regex.c: Update from libc.
95071         * lib/regex.h: Likewise.
95072         * lib/getopt1.c: Likewise.
95073         * lib/memcmp.c: Likewise.
95074
95075         * lib/getusershell.c (setusershell) [HAVE_FSEEKO]: Use fseeko.
95076         Avoid using fseek, when possible -- it's broken by design.
95077         Patch by Ulrich Drepper.
95078
95079 2000-10-27  Stefan Monnier  <monnier@cs.yale.edu>
95080
95081         * regex.c (POP_FAILURE_REG_OR_COUNT, re_match_2_internal)
95082         (re_match_2_internal, re_match_2_internal, re_match_2_internal):
95083         Giving in to popular pressure to shut up the compiler with casts.
95084
95085 2000-10-26  Jim Meyering  <meyering@lucent.com>
95086
95087         * lib/strftime.c: Update from libc.
95088
95089 2000-10-25  Stefan Monnier  <monnier@cs.yale.edu>
95090
95091         * regex.c: More `unsigned char' -> `re_char' changes.
95092         Also change several `int' into `re_wchar_t'.
95093         (PATTERN_STACK_EMPTY, PUSH_PATTERN_OP, POP_PATTERN_OP): Remove.
95094         (PUSH_FAILURE_POINTER): Don't cast any more.
95095         (POP_FAILURE_REG_OR_COUNT): Remove the cast that strips `const'.
95096         We want GCC to complain, since this piece of code makes
95097         re_match non-reentrant, which *should* be fixed.
95098         (GET_BUFFER_SPACE): Use size_t rather than unsigned long.
95099         (EXTEND_BUFFER): Use RETALLOC.
95100         (SET_LIST_BIT): Don't cast.
95101         (re_wchar_t): New type.
95102         (re_iswctype, re_wctype_to_bit): Make it crystal clear to GCC
95103         that those two functions will always properly return.
95104         (IMMEDIATE_QUIT_CHECK): Cast to void.
95105         (analyse_first): Use recursion rather than an explicit stack.
95106         (re_compile_fastmap): Can't fail anymore.
95107         (re_search_2): Don't check re_compile_fastmap for failure.
95108         (PUSH_NUMBER): Renamed from PUSH_FAILURE_COUNT.
95109         Now also sets the new value (passed in a new argument).
95110         (re_match_2_internal): Use it.
95111         Also, use a new var `reg' of type size_t when looping through regs
95112         rather than reuse the inappropriate `mcnt'.
95113
95114 2000-10-25  Jim Meyering  <meyering@lucent.com>
95115
95116         * lib/obstack.c: Update from libc.
95117
95118 2000-10-24  Kenichi Handa  <handa@etl.go.jp>
95119
95120         * regex.c (regex_compile): Change the way of handling a range from
95121         a char less than 256 to a char not less than 256.
95122
95123 2000-10-24  Andrew Innes  <andrewi@gnu.org>
95124
95125         * regex.c (IMMEDIATE_QUIT_CHECK): New macro, which does QUIT on
95126         NT-Emacs only.
95127         (re_match_2_internal): Use IMMEDIATE_QUIT_CHECK instead of QUIT,
95128         so that re_search functions only quit when callers expect them to.
95129
95130 2000-10-23  Jim Meyering  <meyering@lucent.com>
95131
95132         * lib/hard-locale.c (hard_locale): Revert last change -- it was simply
95133         wrong.  That set_locale call must not have any side effects.
95134         From Paul Eggert.
95135
95136 2000-10-22  Jim Meyering  <meyering@lucent.com>
95137
95138         * lib/md5.c (md5_process_block) [OP]: Use `rol', not CYCLIC.
95139         [CYCLIC]: Remove now-unused definition.
95140
95141         * lib/save-cwd.c (O_DIRECTORY): Define, if needed.
95142         (save_cwd) [HAVE_FCHDIR]: Use O_DIRECTORY when opening ".".
95143         Suggestion from Ulrich Drepper.
95144
95145 2000-10-21  Jim Meyering  <meyering@lucent.com>
95146
95147         * m4/check-decl.m4 (jm_CHECK_DECLS): Also check for memrchr.
95148         * m4/prereq.m4 (jm_PREREQ_DIRNAME): New macro.
95149         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memrchr.
95150
95151 2000-10-21  Jim Meyering  <meyering@lucent.com>
95152
95153         * lib/dirname.c (memrchr): Declare if necessary.
95154         (dir_name): Remove the restriction that there be no
95155         trailing slashes.  Now, this code skips past them, effectively
95156         ignoring them.
95157         [TEST_DIRNAME] (main): New unit tests.
95158
95159         * lib/memrchr.c: New file from GNU libc.
95160         Undef __memrchr, too.
95161         [!weak_alias]: Define __memrchr to memrchr.
95162         Guard weak_alias use with `#ifdef weak_alias'.
95163
95164 2000-10-21  Jim Meyering  <meyering@lucent.com>
95165
95166         * lib/dirname.c (dir_name_r): New function, factored out of dir_name.
95167         (dir_name): Use dir_name_r.
95168         * lib/dirname.h (dir_name_r): Declare it.
95169
95170 2000-10-17  Jim Meyering  <meyering@lucent.com>
95171
95172         * lib/quote.h (PARAMS): Define and use.
95173         Reported by Akim Demaille.
95174
95175         * lib/getopt.c: Update from libc.
95176
95177 2000-10-16  Jim Meyering  <meyering@lucent.com>
95178
95179         * lib/hard-locale.c (hard_locale): Use "", not 0 as 2nd arg to
95180         setlocale.
95181         From Jan Fedak.
95182
95183 2000-10-15  Stefan Monnier  <monnier@cs.yale.edu>
95184
95185         * regex.c (WIDE_CHAR_SUPPORT): Define if _LIBC as well.
95186
95187 2000-09-25  Jim Meyering  <meyering@lucent.com>
95188
95189         * lib/md5.h (rol): Define (from GnuPG).
95190
95191         * lib/sha.c: Give credit (GnuPG) where due.
95192         (M): Use rol rather than open-coding it.
95193         Add a FIXME comment.
95194
95195 2000-09-21  Jim Meyering  <meyering@lucent.com>
95196
95197         * lib/userspec.c (parse_user_spec): Remove debugging printf I'd added.
95198         Reported by Michael Stone.
95199
95200 2000-09-20  Jim Meyering  <meyering@lucent.com>
95201
95202         * lib/Makefile.am (libfetish_a_SOURCES): Add sha.c.
95203         (noinst_HEADERS): Add sha.h.
95204         Based on code from Scott G. Miller and from GnuPG.
95205
95206 2000-09-18  Jim Meyering  <meyering@lucent.com>
95207
95208         * m4/getloadavg.m4 (AC_FUNC_GETLOADAVG): Restore the initial value of
95209         LIBS. Otherwise, everyone ends up linking with -lelf for some
95210         configurations.
95211         Reported by Mike Stone.
95212
95213 2000-09-15  Jim Meyering  <meyering@lucent.com>
95214
95215         * lib/regex.c: Update from libc.
95216
95217 2000-09-10  Jim Meyering  <meyering@lucent.com>
95218
95219         * lib/getopt.c (_getopt_internal): Update from glibc.
95220
95221 2000-09-09  Jim Meyering  <meyering@lucent.com>
95222
95223         * lib/quotearg.c: Rename ISASCII to IN_CTYPE_DOMAIN, so people don't
95224         think it should be used as a general replacement for isascii.
95225         * lib/fnmatch.c: Likewise.
95226         * lib/mbswidth.c: Likewise
95227         * lib/regex.c: Likewise.
95228
95229         Don't use atoi.
95230         * lib/userspec.c: Include sys/param.h and limits.h.
95231         Include xstrtol.h.
95232         (CHAR_BIT, TYPE_SIGNED, TYPE_MINIMUM, TYPE_MAXIMUM): Define.
95233         (UID_T_MAX, GID_T_MAX, MAXUID, MAXGID): Define.
95234         (parse_user_spec): Use xstrtoul, not atoi when converting numeric
95235         UID, GID.  Check range.
95236
95237 2000-09-06  Jim Meyering  <meyering@lucent.com>
95238
95239         * lib/getopt.c (_getopt_internal): Update from glibc.
95240
95241 2000-08-30  Jim Meyering  <meyering@lucent.com>
95242
95243         * lib/strftime.c: Merge in changes from GNU libc.
95244
95245 2000-08-26  Jim Meyering  <meyering@lucent.com>
95246
95247         * m4/jm-macros.m4: Use jm_FUNC_FPENDING.
95248         * m4/fpending.m4: New file.
95249
95250 2000-08-26  Jim Meyering  <meyering@lucent.com>
95251
95252         * lib/closeout.c: Include "__fpending.h".
95253         (close_stdout_status): Return right away if there's nothing to flush.
95254
95255         * lib/Makefile.am (noinst_HEADERS): Add __fpending.h.
95256         * lib/__fpending.c: New file.
95257         * lib/__fpending.h: New file.
95258
95259 2000-08-20  Jim Meyering  <meyering@lucent.com>
95260
95261         * m4/check-decl.m4: Include utmp.h `#if HAVE_UTMP_H', rather than
95262         `#if !HAVE_UTMPX_H'.  The latter would lose on systems with neither
95263         utmp.h nor utmpx.h.  Reported by Eli Zaretskii.
95264
95265 2000-08-11  J. David Anglin  <dave@hiauly1.hia.nrc.ca>
95266
95267         Improve fileutils installation on systems where running
95268         programs (like install) can't be unlinked.
95269         * m4/unlink-busy.m4 (jm_FUNC_UNLINK_BUSY_TEXT): New file/macro.
95270         * m4/jm-macros.m4: Use jm_FUNC_UNLINK_BUSY_TEXT.
95271
95272 2000-08-07  Paul Eggert  <eggert@twinsun.com>
95273
95274         Standardize on "memory exhausted" instead of "Memory exhausted"
95275         or "virtual memory exhausted".
95276         * lib/obstack.c (print_and_abort): Use "memory exhausted", not
95277         "virtual memory exhausted".
95278         * lib/same.c (same_name): Invoke xalloc_die instead of printing
95279         our own message.
95280         * lib/userspec.c (parse_user_spec): Likewise.
95281         * lib/bumpalloc.h: comment fix
95282         * lib/same.c, userspec.c: Include xalloc.h.
95283
95284         * lib/xalloc.h (xalloc_msg_memory_exhausted): Now char const[],
95285         not char *const and pointing to a constant array.
95286         * lib/xmalloc.c (xalloc_msg_memory_exhausted): Likewise.
95287         (xrealloc): Comment fix.
95288
95289         * lib/userspec.c (parse_user_spec):
95290         Don't translate a message until just before returning,
95291         to avoid unnecessary translation.
95292
95293 2000-08-07  Jim Meyering  <meyering@lucent.com>
95294
95295         * lib/addext.c, argmatch.c, argmatch.h, backupfile.h, bumpalloc.h,
95296         chown.c, diacrit.h, dirname.h, dup2.c, exclude.h, fileblocks.c,
95297         fnmatch.c, fnmatch.h, fsusage.c, fsusage.h, getdate.h,
95298         getgroups.c, gethostname.c, getopt.h, group-member.c,
95299         hard-locale.c, hash.h, isdir.c, lchown.c, linebuffer.c,
95300         linebuffer.h, long-options.h, malloc.c, md5.c, md5.h, memchr.c,
95301         memcmp.c, memcoll.c, memset.c, mktime.c, modechange.h, obstack.h,
95302         pathmax.h, realloc.c, rmdir.c, safe-read.c, save-cwd.c, stime.c,
95303         stpcpy.c, strcasecmp.c, strcspn.c, strdup.c, stripslash.c,
95304         strstr.c, strtod.c, strtol.c, strtoul.c, strtoull.c, strtoumax.c,
95305         utime.c, version-etc.h, xalloc.h, xstrdup.c, xstrtoumax.c,
95306         yesno.c: Back out Copyright date changes for each file with no change
95307         this year.  This eases coordination with other programs using the same
95308         source code modules.  From Paul Eggert.
95309
95310 2000-08-06  Paul Eggert  <eggert@twinsun.com>
95311
95312         * m4/mbstate_t.m4 (AC_MBSTATE_T): Define mbstate_t to be int,
95313         not char, for compatibility with glibc 2.1.3 strftime.c.
95314
95315 2000-08-03  Greg McGary  <greg@mcgary.org>
95316
95317         * lib/regex.c (SET_HIGH_BOUND, MOVE_BUFFER_POINTER,
95318         ELSE_EXTEND_BUFFER_HIGH_BOUND): New macros.
95319         (EXTEND_BUFFER): Use them.
95320
95321 2000-08-01  Jim Meyering  <meyering@lucent.com>
95322
95323         * lib/dirname.c (ISSLASH): Define.
95324         (BACKSLASH_IS_PATH_SEPARATOR): Define.
95325         (dir_name) [BACKSLASH_IS_PATH_SEPARATOR]: Handle the case in which
95326         both `\' and `/' may be use as path separators.
95327         Based on a patch from Prashant TR.
95328
95329 2000-07-31  Paul Eggert  <eggert@twinsun.com>
95330
95331         * lib/quotearg.c (quotearg_n_options): Don't make the initial
95332         slot vector a constant, since it might get modified.
95333
95334 2000-07-31  Jim Meyering  <meyering@lucent.com>
95335
95336         * lib/xmalloc.c: Use `virtual memory exhausted', not
95337         `Memory exhausted'.
95338         * lib/obstack.c (print_and_abort): Likewise.
95339
95340 2000-07-30  Paul Eggert  <eggert@twinsun.com>
95341
95342         * lib/quotearg.c (quotearg_n_options): Preallocate a slot 0
95343         buffer, so that the caller can always quote one small
95344         component of a "memory exhausted" message in slot 0.
95345         From a suggestion by Jim Meyering.
95346
95347 2000-07-30  Jim Meyering  <meyering@lucent.com>
95348
95349         * lib/makepath.c (make_path): Quote the other instance, too.
95350
95351         * lib/quotearg.c (N_STATIC_SLOTVECS): Define.
95352         (STATIC_BUF_SIZE): Define.
95353         (quotearg_n_options): Use only statically allocated storage when
95354         N < N_STATIC_SLOTVECS and the length of the quoted result is smaller
95355         than STATIC_BUF_SIZE.
95356
95357 2000-07-29  Jim Meyering  <meyering@lucent.com>
95358
95359         * lib/diacrit.c (diacrit_diac): Use __MSDOS__ in favor of MSDOS.
95360         * lib/dirname.c (dir_name): Likewise.
95361
95362         * lib/basename.c (base_name): Use ISSLASH rather than comparing against
95363         `/'.
95364
95365         * lib/dirname.c (dir_name) [MSDOS]: Declare `lim' to be const.
95366         (dir_name): Assert that there are no trailing slashes.
95367
95368 2000-07-29  Bruno Haible  <haible@clisp.cons.org>
95369
95370         * lib/mbswidth.h (mbswidth): Add a flags argument.
95371         (mbswidth): New declaration.
95372         (MBSW_ACCEPT_INVALID, MBSW_ACCEPT_UNPRINTABLE): New macros.
95373         * lib/mbswidth.c (mbswidth): Add a flags argument.
95374         (mbsnwidth): New function.
95375
95376 2000-07-24  Jim Meyering  <meyering@lucent.com>
95377
95378         * lib/mbswidth.c: Remove useless #else.  From Bruno Haible.
95379
95380 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95381
95382         * m4/mbswidth.m4 (jm_PREREQ_MBSWIDTH): Check for wcwidth declaration.
95383
95384 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95385
95386         * lib/quotearg.c: Streamline by invoking multibyte code only if needed.
95387         <wchar.h>: Include only if HAVE_MBRTOWC && 1 < MB_LEN_MAX.
95388         (MB_CUR_MAX): Redefine to 1 if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX).
95389         (quotearg_buffer_restyled): If a unibyte locale, don't bother to
95390         invoke multibyte primitives.
95391
95392 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95393
95394         * lib/quotearg.c:
95395         Include <wchar.h> even if ! (HAVE_MBRTOWC && 1 < MB_LEN_MAX),
95396         so that mbstate_t is always defined.
95397
95398         Do not inspect MB_LEN_MAX, since it's incorrectly defined to
95399         be 1 in at least one GCC installation, and this configuration
95400         error is likely to be common.  Ignoring MB_LEN_MAX hurts
95401         performance on hosts that have mbrtowc but have only unibyte
95402         locales, but I assume these hosts are rare.
95403
95404 2000-07-23  Paul Eggert  <eggert@twinsun.com>
95405
95406         * lib/mbswidth.c (_XOPEN_SOURCE):
95407         Don't define; this causes problems on Solaris 7.
95408         (wcwidth) [!HAVE_DECL_WCWIDTH]: Declare.
95409
95410 2000-07-23  Jim Meyering  <meyering@lucent.com>
95411
95412         * m4/check-decl.m4 (jm_CHECK_DECLS): Check for declarations of these,
95413         too: getgrgid, getpwuid, getuid.
95414
95415 2000-07-23  Jim Meyering  <meyering@lucent.com>
95416
95417         * lib/basename.c (base_name): Add an assertion.
95418
95419 2000-07-23  Bruno Haible  <haible@clisp.cons.org>
95420
95421         * lib/quotearg.c: When the system forces us to redefine mbstate_t,
95422         shadow its mbsinit function.
95423
95424 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95425
95426         * lib/mbswidth.h: New file.
95427         * lib/mbswidth.c: New file.
95428         * lib/Makefile.am (libfetish_a_SOURCES): Add mbswidth.c.
95429         (noinst_HEADERS): Add mbswidth.h.
95430
95431 2000-07-17  Bruno Haible  <haible@clisp.cons.org>
95432
95433         * lib/config.charset: Add support for FreeBSD. Improve support for
95434         HP-UX and IRIX 6.
95435
95436 2000-07-16  Bruno Haible  <haible@clisp.cons.org>
95437
95438         * m4/mbswidth.m4: New file.
95439         * m4/prereq.m4 (jm_PREREQ): Call jm_PREREQ_MBSWIDTH.
95440
95441 2000-07-15  Jim Meyering  <meyering@lucent.com>
95442
95443         * lib/makepath.c: Include quote.h.
95444         (make_path): Convert "`%s'" in format strings to "%s", and wrap each
95445         corresponding argument in a `quote (...)' call.
95446         Give better diagnostics.
95447
95448         * lib/Makefile.am (libfetish_a_SOURCES): Add quote.c.
95449         (noinst_HEADERS): Add quote.h.
95450
95451         * lib/quote.c (quote, quote_n): New file.  Two functions taken verbatim
95452         from tar's src/misc.c.
95453         * lib/quote.h: New file.  Prototypes for same.
95454
95455 2000-07-14  Paul Eggert  <eggert@twinsun.com>
95456
95457         From a suggestion by Bruno Haible.
95458         * lib/quotearg.c (mbrtowc): Do not use HAVE_WCHAR_H in the definition.
95459         Use defined mbstate_t, not HAVE_MBSTATE_T_OBJECT,
95460         to decide whether to define the BeOS workaround macro;
95461         this adjusts to the change to AC_MBSTATE_T.
95462
95463 2000-07-14  Jim Meyering  <meyering@lucent.com>
95464
95465         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Require
95466         jm_AC_TYPE_UINTMAX_T.
95467
95468 2000-07-13  Paul Eggert  <eggert@twinsun.com>
95469
95470         * lib/quotearg.h (enum quoting style): New enum clocale_quoting_style.
95471
95472         * lib/quotearg.c (quoting_style_args, quoting_style_vals,
95473         quotearg_buffer_restyled): Add support for
95474         clocale_quoting_style.  Undo previous change to
95475         locale_quoting_style behavior, and undo the "{LEFT QUOTATION MARK}"
95476         and "{RIGHT QUOTATION MARK}" msgids.
95477
95478 2000-07-10  Paul Eggert  <eggert@twinsun.com>
95479
95480         From a suggestion by Bruno Haible.
95481         * m4/mbstate_t.m4 (AC_MBSTATE_T):
95482         Renamed from AC_MBSTATE_T_OBJECT.  All uses changed.
95483         Change from a two-part test, which defines both HAVE_MBSTATE_T_OBJECT
95484         and mbstate_t, to a single-part test that simply defines mbstate_t.
95485         * m4/prereq.m4 (jm_PREREQ_QUOTEARG):
95486         s/AC_MBSTATE_T_OBJECT/AC_MBSTATE_T/.
95487
95488 2000-07-10  Jim Meyering  <meyering@lucent.com>
95489
95490         * m4/strerror_r.m4: Mirror the correction made in autoconf.
95491
95492         * m4/gnu-source.m4: Output to confdefs.h directly.
95493         Suggestion from Akim Demaille.
95494
95495 2000-07-09  Paul Eggert  <eggert@twinsun.com>
95496
95497         The old behavior of quoting `like this' doesn't look good with
95498         newer, ISO-style fonts.  See:
95499         http://www.cl.cam.ac.uk/~mgk25/ucs/quotes.html
95500
95501         Instead, quote "like this" by default.  Let the translator
95502         tailor the locale-specific quoting behavior by providing
95503         translations for {LEFT QUOTATION MARK} and {RIGHT QUOTATION MARK}.
95504
95505         * lib/quotearg.c (N_): New macro.
95506         (gettext_default): New function.
95507         (quotearg_buffer_restyled): Use
95508         gettext_default ("{LEFT QUOTATION MARK}", "\"") for left quote, and
95509         gettext_default ("{RIGHT QUOTATION MARK}", "\"") for right quote.
95510
95511 2000-07-09  Jim Meyering  <meyering@lucent.com>
95512
95513         * m4/jm-macros.m4 (jm_MACROS): Add a test to see if -lm is required
95514         to link seq.  If so, set SEQ_LIBM to -lm.  From Bruno Haible.
95515
95516         * m4/gnu-source.m4 (AC__GNU_SOURCE): New file/macro.
95517         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require it.
95518
95519 2000-07-09  Jim Meyering  <meyering@lucent.com>
95520
95521         * lib/Most files: Update copyright dates to include 2000.
95522
95523 2000-07-08  Jim Meyering  <meyering@lucent.com>
95524
95525         * lib/xgethostname.c (ENAMETOOLONG): Define to an unlikely value
95526         if not defined.
95527         (xgethostname): Remove now-unnecessary #ifdef.
95528         Move declaration of `err' into loop where it's used.
95529
95530 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95531         and Bruno Haible  <haible@clisp.cons.org>
95532
95533         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Test for mbstate_t
95534         only if the test for an object-type mbstate_t fails.  This
95535         prevents us from mistakenly reporting that mbstate_t is a
95536         system object type after we "#define mbstate_t int" to work
95537         around its lack.
95538
95539 2000-07-05  Paul Eggert  <eggert@twinsun.com>
95540         and Bruno Haible  <haible@clisp.cons.org>
95541
95542         * lib/quotearg.c (mbrtowc): Declare returned type, since BeOS doesn't.
95543
95544 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95545
95546         * m4/strerror_r.m4 (AC_FUNC_STRERROR_R): Pass a reasonably large buffer
95547         to strerror_r.
95548         Include <ctype.h> for use of isalpha.
95549
95550 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95551
95552         * lib/xgethostname.c (xgethostname): Protect against the SunOS 5.5 bug
95553         by allocating a larger buffer. Test the gethostname return value for
95554         being >= 0, not == 0, for BeOS.  Don't exhaust memory if gethostname
95555         returns an error and ENAMETOOLONG isn't defined.
95556
95557 2000-07-05  Bruno Haible  <haible@clisp.cons.org>
95558
95559         * lib/quotearg.c (struct quoting_options): Simplify quote_these_too
95560         dimension.
95561
95562 2000-07-04  Jim Meyering  <meyering@lucent.com>
95563
95564         * m4/fsusage.m4 (jm_FILE_SYSTEM_USAGE): Use plain old `echo' instead
95565         of the deprecated AC_CHECKING.
95566
95567 2000-07-04  Jim Meyering  <meyering@lucent.com>
95568
95569         * lib/strndup.c: [!HAVE_DECL_STRNLEN]: Declare strnlen.
95570         Reported by Bruno Haible.
95571
95572 2000-07-04  Jim Meyering  <meyering@lucent.com>
95573
95574         * lib/quotearg.c: Make inclusion of <wchar.h> independent of whether
95575         HAVE_MBRTOWC is set.  Required at least for irix-5.6, which
95576         lacks mbrtowc.
95577
95578 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95579
95580         * m4/mbstate_t.m4 (AC_MBSTATE_T_OBJECT): Port to autoconf 2.13.
95581         Add AC_CHECK_HEADERS(stdlib.h), since we use HAVE_STDLIB_H.
95582
95583 2000-07-03  Paul Eggert  <eggert@twinsun.com>
95584         and Bruno Haible  <haible@clisp.cons.org>
95585
95586         * lib/quotearg.c (mbrtowc):
95587         Assign to *pwc, and return 1 only if result is nonzero.
95588         (iswprint): Use ISPRINT when substituting our own mbrtowc.
95589
95590 2000-07-03  Jim Meyering  <meyering@lucent.com>
95591
95592         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strnlen.
95593
95594 2000-07-03  Jim Meyering  <meyering@lucent.com>
95595
95596         * lib/readutmp.h: [HAVE_UTMPX_H]: Include <utmp.h> if HAVE_UTMP_H.
95597         This is necessary to get a definition of e.g., UTMP_FILE on
95598         HP-UX 10.20.
95599         From Bob Proulx.
95600
95601 2000-07-02  Jim Meyering  <meyering@lucent.com>
95602
95603         * m4/mbstate_t.m4: Also define mbstate_t, if necessary.
95604
95605         * m4/chown.m4: Replace each use of AC_SUBST(LIBOBJS)/LIBOBJS=... with
95606         AC_LIBOBJ(function_name).
95607         * m4/chown.m4: Likewise.
95608         * m4/fnmatch.m4: Likewise.
95609         * m4/ftruncate.m4: Likewise.
95610         * m4/getgroups.m4: Likewise.
95611         * m4/getline.m4: Likewise.
95612         * m4/group-member.m4: Likewise.
95613         * m4/jm-macros.m4: Likewise.
95614         * m4/lstat.m4: Likewise.
95615         * m4/malloc.m4: Likewise.
95616         * m4/memcmp.m4: Likewise.
95617         * m4/nanosleep.m4: Likewise.
95618         * m4/putenv.m4: Likewise.
95619         * m4/realloc.m4: Likewise.
95620         * m4/regex.m4: Likewise.
95621         * m4/stat.m4: Likewise.
95622         * m4/strftime.m4: Likewise.
95623
95624 2000-07-02  Jim Meyering  <meyering@lucent.com>
95625
95626         * lib/quotearg.c (mbstate_t): Don't define here.
95627
95628 2000-07-02  Jim Meyering  <meyering@lucent.com>
95629
95630         * lib/nanosleep.c (SIGCONT): Define if not already defined.
95631
95632 2000-07-01  Jim Meyering  <meyering@lucent.com>
95633
95634         * m4/uptime.m4: Put double quotes around use of $cross_compiling.
95635
95636 2000-07-01  Jim Meyering  <meyering@lucent.com>
95637
95638         * m4/ls-mntd-fs.m4: Remove a `FIXME' comment and fix the associated
95639         problem.
95640
95641 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95642
95643         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Rename BeOS specific
95644         macro from MOUNTED_NEXT_DEV to MOUNTED_FS_STAT_DEV.
95645
95646 2000-07-01  Bruno Haible  <haible@clisp.cons.org>
95647
95648         * lib/mountlist.c: Use MOUNTED_FS_STAT_DEV instead of MOUNTED_NEXT_DEV,
95649         per change in ../m4/ls-mntd-fs.m4.
95650         (read_filesystem_list): Ignore symbolic links.
95651
95652 2000-06-29  Jim Meyering  <meyering@lucent.com>
95653
95654         * lib/same.c: Include <string.h> or <strings.h>, as appropriate,
95655         for declaration of strcmp.
95656
95657         * lib/long-options.c: Include <stdlib.h>, for declaration of exit.
95658
95659         * lib/mountlist.c (fsp_to_string) [HAVE_F_FSTYPENAME_IN_STATFS]:
95660         Avoid warning by casting result to `char *' to remove `const'.
95661
95662 2000-06-28  Jim Meyering  <meyering@lucent.com>
95663
95664         * m4/mbstate_t.m4: Use stdlib.h, not stdio.h.  The latter is not
95665         included by quotearg.c, for which we perform this test.  From
95666         Bruno Haible.
95667
95668 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95669
95670         * m4/check-decl.m4 (_jm_DECL_HEADERS): Check for utmp.h as well.
95671         * m4/prereq.m4 (jm_PREREQ_READUTMP): Likewise. If either <utmp.h> or
95672         <utmpx.h> exists, put readutmp.o into LIBOBJS.
95673
95674 2000-06-27  Bruno Haible  <haible@clisp.cons.org>
95675
95676         * lib/Makefile.am (libfetish_a_SOURCES): Remove readutmp.c.
95677
95678 2000-06-26  Paul Eggert  <eggert@twinsun.com>
95679
95680         savedir now sets errno on failure and invokes xmalloc to get memory.
95681         Fix a couple of other minor bugs while we're at it.
95682
95683         * lib/savedir.c (<unistd.h>): Do not include; there's no need.
95684         (NAMLEN): Remove macro.
95685         (malloc, realloc): Remove decls.
95686         (stpcpy): Likewise.
95687         ("xalloc.h"): Include.
95688         (NAME_SIZE_DEFAULT): New macro.
95689         (savedir): Use xmalloc / xrealloc to allocate memory.
95690         Use NAME_SIZE_DEFAULT if name_size is negative or overflows to zero.
95691         Skip "" directory entries.
95692         Use strlen to calculate directory entry length, since the old method
95693         is rarely used these days and isn't worth supporting.
95694         Don't use a pointer after freeing it.
95695         Check for integer overflow when calculating allocation size.
95696         Use memcpy to copy entries, instead of stpcpy.
95697         Set errno properly when returning NULL.
95698         Check for readdir error.
95699
95700 2000-06-26  Jim Meyering  <meyering@lucent.com>
95701
95702         * lib/posixtm.c [HAVE_STDLIB_H]: Include stdlib.h, for decl of abort.
95703
95704 2000-06-25  Jim Meyering  <meyering@lucent.com>
95705
95706         * m4/mbstate_t.m4: Include stdio.h before wchar.h to work around
95707         Linux header bug when _XOPEN_SOURCE is defined to 500.
95708
95709 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95710
95711         * lib/unicodeio.c (print_unicode_char): Work around ansi2knr
95712         deficiency.
95713
95714 2000-06-25  Bruno Haible  <haible@clisp.cons.org>
95715
95716         * lib/getusershell.c (xmalloc, xrealloc): Remove functions.
95717         Include xalloc.h.
95718         Don't include <stdlib.h>.  Don't declare malloc, realloc.
95719
95720 2000-06-24  Jim Meyering  <meyering@lucent.com>
95721
95722         * m4/strerror_r.m4: Revive this file -- to try out an experimental
95723         version of AC_FUNC_STRERROR_R that may work even on BeOS, a system
95724         for which strerror does return char*, but which lacks a conveniently
95725         accessible declaration of the function.  If the compile-test says
95726         strerror_r doesn't work, then resort to a `run'-test that works on
95727         BeOS and segfaults on DEC Unix.
95728
95729 2000-06-24  Jim Meyering  <meyering@lucent.com>
95730
95731         * lib/error.c [!HAVE_DECL_STRERROR_R]: Declare strerror_r.
95732
95733 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95734
95735         * m4/mbstate_t.m4: New file, defining AC_MBSTATE_T_OBJECT.
95736         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Use it.  Add check for iswprint.
95737
95738 2000-06-23  Paul Eggert  <eggert@twinsun.com>
95739
95740         * lib/quotearg.c: Include <wctype.h> after <wchar.h>, for Solaris 2.5.
95741         (mbrtowc, mbstate_t): Define substitutes if
95742         HAVE_MBRTOWC && HAVE_WCHAR_H && !HAVE_MBSTATE_T_OBJECT.
95743         (iswprint): Define to 1 if !defined iswprint && !HAVE_ISWPRINT,
95744         not if ! (HAVE_MBRTOWC && HAVE_WCHAR_H).
95745
95746 2000-06-23  Jim Meyering  <meyering@lucent.com>
95747
95748         * m4/afs.m4: Add missing AC_MSG_RESULT.
95749         Reported by Bruno Haible.
95750
95751         * m4/fsusage.m4: s/AC_MSG_CHECKING/AC_CHECKING/.
95752         Suggestion from Bruno Haible.
95753
95754 2000-06-23  Jim Meyering  <meyering@lucent.com>
95755
95756         * lib/getpass.c: New file, from Bruno Haible.  Required for BeOS.
95757
95758 2000-06-21  Jim Meyering  <meyering@lucent.com>
95759
95760         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add getpass.
95761
95762 2000-06-21  Jim Meyering  <meyering@lucent.com>
95763
95764         * lib/Makefile.am (libfetish_a_SOURCES): Add getstr.c.
95765         (noinst_HEADERS): Add getstr.h.
95766
95767         * lib/getline.c (getstr): Move into a separate file.
95768         * lib/getstr.c (getstr): New file, extracted from getline.c, with
95769         the following changes: new parameter, delim2; both delim[12]
95770         parameters have type `int', not `char'.  The latter would lose
95771         with 8-bit delimiters.
95772         * lib/getstr.h: New file.
95773
95774 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95775
95776         * lib/xgetcwd.c (xgetcwd): If the required pathname length is smaller
95777         than 1024, return a memory chunk of least possible size, instead
95778         of size PATH_MAX + 2. In the loop, increment the size proportionally.
95779         Use free/xmalloc instead of xrealloc to avoid copying for very long
95780         paths.
95781
95782 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95783
95784         * lib/path-concat.c (path_concat): Don't access dir[-1] if dir is
95785         the empty string.
95786
95787 2000-06-21  Bruno Haible  <haible@clisp.cons.org>
95788
95789         * lib/canon-host.c (canon_host): Use malloc and memcpy to copy an
95790         address, not strdup.  Include <stdlib.h> and don't declare free().
95791
95792 2000-06-19  Jim Meyering  <meyering@lucent.com>
95793
95794         * lib/getloadavg.c [HAVE_NLIST_H] (NLIST_STRUCT): Define.
95795
95796 2000-06-18  Jim Meyering  <meyering@lucent.com>
95797
95798         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Remove mkdir.
95799
95800         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): Change the
95801         `checking whether...' message to be consistent with that of the
95802         lstat test.
95803
95804 2000-06-18  Jim Meyering  <meyering@lucent.com>
95805
95806         * lib/mkdir.c: Remove file, due mainly to copyright incompatibility.
95807         Besides, these days every porting target provides a mkdir function.
95808
95809         * lib/strnlen.c: Include memory.h, string.h, and/or strings.h as
95810         needed. (this snippet comes from src/system.h).
95811
95812 2000-06-16  Bruno Haible  <haible@clisp.cons.org>
95813
95814         * m4/glibc21.m4 (jm_GLIBC21): Define GLIBC21 for Makefiles, not for C.
95815
95816 2000-06-15  Paul Eggert  <eggert@twinsun.com>
95817
95818         * lib/human.c (adjust_value): New function.
95819         (human_readable_inexact): Apply rounding style even when
95820         printing approximate values.
95821
95822 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95823
95824         * lib/human.c (human_readable_inexact): Allow an input block
95825         size that is not a multiple of the output block size, and vice versa.
95826         Reported by Piergiorgio Sartor.
95827
95828 2000-06-14  Paul Eggert  <eggert@twinsun.com>
95829
95830         * lib/getdate.y (get_date): Apply relative times after time
95831         zone indicator, not before.  Reported by Todd A. Jacobs.
95832
95833 2000-06-13  Jim Meyering  <meyering@lucent.com>
95834
95835         * lib/Makefile.am (all-local): Depend on lstat.c and stat.c.
95836
95837         * lib/xstat.in [!HAVE_DECL_FREE]: Declare free in lstat.c.
95838
95839 2000-06-12  Paul Eggert  <eggert@twinsun.com>
95840
95841         * lib/xstat.in: Include <stdlib.h> in lstat, to declare "free".
95842
95843 2000-06-12  Jim Meyering  <meyering@lucent.com>
95844
95845         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Replace with
95846         AC_FUNC_GETLOADAVG from autoconf, and tweak the latter to accept an
95847         optional argument.
95848         * m4/jm-macros.m4: s/AM_FUNC_GETLOADAVG/AC_FUNC_GETLOADAVG/, and supply
95849         the optional argument, `lib'.
95850
95851 2000-06-08  Jim Meyering  <meyering@lucent.com>
95852
95853         * m4/largefile.m4: Remove file (now that it's part of autoconf).
95854
95855 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95856
95857         Rewrite largefile configuration so that we don't need to run
95858         getconf and don't need AC_CANONICAL_HOST.  [I'm leaving the use of
95859         AC_CANONICAL_HOST in configure.in -- jmm]
95860
95861         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS,
95862         AC_SYS_LARGEFILE_SPACE_APPEND): Remove.
95863         (AC_SYS_LARGEFILE_TEST_INCLUDES): New macro.
95864         (AC_SYS_LARGEFILE_MACRO_VALUE): Change arguments from
95865         CODE-TO-SET-DEFAULT to VALUE, INCLUDES, FUNCTION-BODY.
95866         All uses changed.
95867         Instead of inspecting the output of getconf, try to compile the
95868         test program without and with the macro definition.
95869         (AC_SYS_LARGEFILE): Do not require AC_CANONICAL_HOST or check
95870         for getconf.  Instead, check for the needed flags by compiling
95871         test programs.
95872
95873 2000-06-04  Paul Eggert  <eggert@twinsun.com>
95874
95875         * lib/strnlen.c: Include <config.h> if HAVE_CONFIG_H.
95876
95877 2000-06-04  Jim Meyering  <meyering@lucent.com>
95878
95879         * lib/getugroups.c (getugroups): Cast -1 to gid_t, for systems like
95880         SunOS 4.1.4 for which gid_t is an unsigned type.
95881
95882 2000-06-03  Jim Meyering  <meyering@lucent.com>
95883
95884         * m4/prereq.m4 (jm_PREREQ_HUMAN): Use []-quoted list in AC_CHECK_DECLS,
95885         now that autoconf requires that.
95886
95887         * m4/jm-glibc-io.m4: Add a kludge to make autoheader emit the required
95888         #undefs.  E.g., #undef HAVE_DECL_FERROR_UNLOCKED.
95889         Use []-quoted list in AC_CHECK_DECLS, now that autoconf requires that.
95890
95891 2000-06-03  Jim Meyering  <meyering@lucent.com>
95892
95893         * lib/strnlen.c [!HAVE_DECL_MEMCHR]: Declare memchr.
95894
95895 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95896
95897         * m4/glibc21.m4: New file.
95898         * m4/jm-macros.m4 (jm_MACROS): Call jm_GLIBC21.
95899
95900 2000-06-03  Bruno Haible  <haible@clisp.cons.org>
95901
95902         * lib/Makefile.am (install-exec-local): On systems with glibc-2.1 or
95903         newer, don't install charset.alias.
95904         * lib/config.charset: Change the Linux/glibc rules so they become empty
95905         on glibc-2.1 or newer.
95906
95907 2000-06-02  Jim Meyering  <meyering@lucent.com>
95908
95909         * lib/mountlist.c: Back out last change.  Instead, do this...
95910         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Set the
95911         me_dummy member using the same `ignore'-testing code.
95912         * lib/mountlist.h (ME_DUMMY): Add `autofs' to the list of ignored
95913         fs_type strings.
95914         From Mark D. Roth.
95915
95916 2000-05-29  Jim Meyering  <meyering@lucent.com>
95917
95918         * lib/mountlist.c (read_filesystem_list) [MOUNTED_VMOUNT]: Ignore
95919         mounts with the `ignore' attribute.  Based on a patch from
95920         Mark D. Roth.
95921
95922 2000-05-28  Jim Meyering  <meyering@lucent.com>
95923
95924         * m4/jm-macros.m4 (AC_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK): Rename from
95925         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95926         * m4/stat.m4: Likewise.
95927         * m4/lstat.m4: Likewise.
95928         * m4/lstat-slash.m4: Remove file (absorbed into autoconf).
95929
95930         * m4/jm-macros.m4 (AC_FUNC_STRERROR_R): Rename from jm_FUNC_STRERROR_R.
95931         * m4/strerror_r.m4: Remove file (absorbed into autoconf).
95932
95933 2000-05-26  Jim Meyering  <meyering@lucent.com>
95934
95935         * m4/uptime.m4: Use `$cross_compiling', not `$ac_cv_prog_cc_cross'.
95936
95937 2000-05-24  Jim Meyering  <meyering@lucent.com>
95938
95939         * m4/prereq.m4: Use []-quoted list in AC_CHECK_MEMBERS, now that
95940         autoconf requires that.
95941         * m4/lib-check.m4: Likewise.
95942         * m4/jm-macros.m4: Likewise.
95943         * m4/strftime.m4: Likewise.
95944
95945         * m4/check-decl.m4 (jm_CHECK_DECLS): Use []-quoted list in
95946         AC_CHECK_DECLS, now that autoconf requires that.
95947
95948 2000-05-22  Jim Meyering  <meyering@lucent.com>
95949
95950         * m4/stat.m4: Require jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
95951         * m4/lstat.m4: Likewise.
95952
95953 2000-05-22  Jim Meyering  <meyering@lucent.com>
95954
95955         * lib/makepath.c: Remove old, now-unnecessary `#ifdef __MSDOS__' block.
95956
95957 2000-05-20  Jim Meyering  <meyering@lucent.com>
95958
95959         * m4/prereq.m4 (jm_PREREQ_HUMAN): New macro.
95960         (jm_PREREQ): Use it.
95961
95962 2000-05-18  Jim Meyering  <meyering@lucent.com>
95963
95964         * lib/hash.c (hash_rehash): Fix a nasty bug: copy the free entry list
95965         back, too, since it may have been modified by allocate_entry.
95966         (hash_delete): Rewrite to use neither the assignment operator
95967         nor the comma operator in an if-expression.
95968
95969 2000-05-15  Paul Eggert  <eggert@twinsun.com>
95970
95971         * lib/closeout.c:
95972         <sys/stat.h>, <sys/types.h>, <unistd.h>, (STDOUT_FILENO):
95973         Remove; no longer needed.
95974         "quotearg.h": Add include.
95975         (file_name): Do not bother to explicitly initialize to NULL; it's less
95976         efficient on some hosts.
95977         (close_stdout_status): Remove test as to whether stdout was already
95978         closed; it breaks for the case "echo x | sort >&-".
95979         Quote file name colons.
95980         Do not assume that _("write error") lacks format strings.
95981
95982 2000-05-15  Jim Meyering  <meyering@lucent.com>
95983
95984         * lib/version-etc.c (version_etc_copyright): Update the copyright
95985         string used in all --version output.
95986
95987 2000-05-14  Jim Meyering  <meyering@lucent.com>
95988
95989         * lib/closeout.c (close_stdout_set_file_name): New function.
95990         (close_stdout_status): Use new file-scoped global.
95991         Return right away if fstat says the stdout file descriptor is invalid.
95992         * lib/closeout.h (close_stdout_set_file_name): Declare.
95993
95994 2000-05-10  Jim Meyering  <meyering@lucent.com>
95995
95996         * lib/closeout.c [default_exit_status]: New file-scoped variable.
95997         (close_stdout_set_status): New function.
95998         * lib/closeout.h (close_stdout_set_status): Declare.
95999
96000 2000-05-09  Jim Meyering  <meyering@lucent.com>
96001
96002         * m4/gettext.m4: Rename this...
96003         * m4/libintl.m4: ...to this.
96004
96005 2000-05-08  Jim Meyering  <meyering@lucent.com>
96006
96007         * lib/long-options.c: Don't include closeout.h.
96008         (parse_long_options): Don't call close_stdout for --version.
96009
96010 2000-05-06  Paul Eggert  <eggert@twinsun.com>
96011
96012         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _XOPEN_SOURCE to
96013         be 500, instead of _GNU_SOURCE to be 1, to work around glibc
96014         2.1.3 bug.  This avoids a clash when files like regex.c define
96015         _GNU_SOURCE.
96016
96017 2000-05-06  Jim Meyering  <meyering@lucent.com>
96018
96019         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add atexit.
96020         (AC_REPLACE_FUNCS): Add strnlen.
96021
96022         * m4/rmdir-errno.m4 (fetish_FUNC_RMDIR_NOTEMPTY): New macro and file.
96023         * m4/jm-macros.m4: Require fetish_FUNC_RMDIR_NOTEMPTY.
96024
96025         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Save and restore LIBS around
96026         AC_SEARCH_LIBS call for nanosleep.
96027         (LIB_NANOSLEEP): Set and AC_SUBST.
96028
96029 2000-05-06  Jim Meyering  <meyering@lucent.com>
96030
96031         * lib/strnlen.c: Undefine __strnlen and strnlen.
96032         [!weak_alias]: Define __strnlen to strnlen.
96033
96034         * lib/atexit.c: New file, from libiberty.
96035
96036 2000-05-06  Jim Meyering  <meyering@lucent.com>
96037
96038         * lib/closeout.c (close_stdout_status): Also check for errors on the
96039         stderr stream.
96040
96041 2000-05-05  Jim Meyering  <meyering@lucent.com>
96042
96043         * m4/jm-macros.m4 (jm_MACROS): Save and restore LIBS around
96044         AC_SEARCH_LIBS call for clock_gettime.
96045         (LIB_CLOCK_GETTIME): Set and AC_SUBST.
96046
96047         * m4/search-libs.m4: Update from autoconf.
96048
96049         su doesn't work on Solaris 2.6.
96050         * m4/lib-check.m4: When checking for struct spwd.sp_pwdp, also include
96051         <shadow.h>.  Reported by Dragos Harabor.
96052
96053 2000-05-05  Bruno Haible  <haible@clisp.cons.org>
96054
96055         * lib/localcharset.c (get_charset_aliases): Use malloc, realloc and
96056         memcpy instead of xmalloc, xrealloc, path_concat.
96057         (locale_charset): Treat empty environment variables as absent.
96058         (DIRECTORY_SEPARATOR, ISSLASH): New macros.
96059
96060 2000-05-04  Jim Meyering  <meyering@lucent.com>
96061
96062         * lib/getopt.c: Update from glibc.
96063         * lib/obstack.c: Likewise.
96064         * lib/obstack.h: Likewise.
96065         * lib/regex.c: Likewise.  NB: K&R compiler support is dropped for this
96066         file
96067
96068         * lib/regex.h: Likewise.
96069         * lib/strndup.c: Likewise.
96070         * lib/strnlen.c: New file, from glibc.
96071
96072 2000-05-03  Jim Meyering  <meyering@lucent.com>
96073
96074         * m4/check-decl.m4 (AC_CHECK_DECLS): Add strndup.
96075
96076 2000-05-02  Paul Eggert  <eggert@twinsun.com>
96077
96078         * m4/largefile.m4 (AC_SYS_LARGEFILE): Define _GNU_SOURCE if
96079         this is needed to make ftello visible (e.g. glibc 2.1.3).  Use
96080         compile-time test, rather than inspecting host and OS, to
96081         decide whether to define _LARGEFILE_SOURCE.
96082
96083 2000-05-01  Jim Meyering  <meyering@lucent.com>
96084
96085         * m4/fsusage.m4: Use AC_MSG_CHECKING instead of obsolete AC_CHECKING.
96086
96087         * m4/ls-mntd-fs.m4 (jm_LIST_MOUNTED_FILESYSTEMS): Add BeOS support.
96088         Based on a patch from Bruno Haible.
96089
96090 2000-05-01  Jim Meyering  <meyering@lucent.com>
96091
96092         * lib/full-write.c (full_write): Remove `FIXME' part of comment.
96093
96094 2000-04-29  Jim Meyering  <meyering@lucent.com>
96095
96096         * lib/path-concat.c: Declare strdup only if it's not defined.
96097         * lib/canon-host.c: Likewise.
96098
96099 2000-04-28  Jim Meyering  <meyering@lucent.com>
96100
96101         * lib/rpmatch.c [HAVE_LIMITS_H]: Include limits.h before regex.h to
96102         avoid redefinition warning on some systems (HPUX).  Otherwise, regex.h
96103         is included first, then limits.h is included by locale.h by libintl.h.
96104         From John David Anglin.
96105
96106 2000-04-25  Jim Meyering  <meyering@lucent.com>
96107
96108         * lib/makepath.c (S_IRWXUGO): Define.
96109         (make_path): Always perform explicit chmod if MODE specifies any
96110         of the `special' permission bits.  Prompted by a bug report against
96111         install from Mate Wierdl and Joost van Baal.
96112
96113 2000-04-18  Jim Meyering  <meyering@lucent.com>
96114
96115         * m4/prereq.m4 (jm_PREREQ_GETPAGESIZE): New macro.
96116         (jm_PREREQ): Use it.
96117
96118 2000-04-18  Jim Meyering  <meyering@lucent.com>
96119
96120         * lib/README: New file.
96121
96122         * lib/getpagesize.h [!getpagesize && HAVE_OS_H && B_PAGE_SIZE]: Define
96123         getpagesize.  For BeOS.  Based on a patch from Bruno Haible.
96124
96125 2000-04-17  Jim Meyering  <meyering@lucent.com>
96126
96127         Get it right :-)
96128         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Emit the
96129         actual #define via AH_VERBATIM.  Don't need separate AC_DEFINE.
96130         Suggestion from Akim Demaille.
96131
96132 2000-04-17  Jim Meyering  <meyering@lucent.com>
96133
96134         * lib/strftime.c (my_strftime) [strftime]: Declare strftime here, since
96135         the definition of it to rpl_strftime also defined-away the system's
96136         declaration.
96137
96138 2000-04-15  Jim Meyering  <meyering@lucent.com>
96139
96140         Use `C' to denote so-called `contiguous' files, the same way
96141         that tar does.
96142         * lib/filemode.c (S_ISCTG) [!S_ISCTG && S_IFCTG]: Define.
96143         (ftypelet): Use S_ISCTG.
96144         From Michael Deutschmann.
96145
96146 2000-04-14  Jim Meyering  <meyering@lucent.com>
96147
96148         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use the one-arg
96149         form of AC_DEFINE.  Otherwise, the #ifndef in AH_VERBATIM gets
96150         clobbered.
96151
96152 2000-04-14  Jim Meyering  <meyering@lucent.com>
96153
96154         * lib/strftime.c (my_strftime) [#ifdef strftime]: Declare strftime.
96155
96156 2000-04-13  Jim Meyering  <meyering@lucent.com>
96157
96158         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES) [_GNU_SOURCE]: Use new
96159         AH_VERBATIM to insert required #ifndef into config.h.in.
96160         Suggestion from Akim Demaille.
96161
96162 2000-04-12  Jim Meyering  <meyering@lucent.com>
96163
96164         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Use AC_CHECK_HEADERS, not
96165         `AC_CHECK_HEADER' to check for locale.h.  Thanks to a report from
96166         Christian Krackowizer.
96167
96168         More code moved from ../configure.in into (jm_CHECK_ALL_TYPES).
96169         * m4/jm-macros.m4 (_GNU_SOURCE): Define.
96170         (AC_SYS_LARGEFILE): Require.
96171         (AM_C_PROTOTYPES): Require.
96172
96173 2000-04-08  Jim Meyering  <meyering@lucent.com>
96174
96175         * lib/Makefile.am (charset.alias): Use t-$@, not $@-t so the DOS 8.3
96176         names don't conflict.  Reported by Eli Zaretskii.
96177
96178 2000-04-07  Jim Meyering  <meyering@lucent.com>
96179
96180         * lib/putenv.c: Move inclusion of errno.h so it follows that of
96181         sys/types.h, to work around system header problems on AIX 3.2.5.
96182         From Bruno Haible.
96183
96184 2000-04-07  Bruno Haible  <haible@clisp.cons.org>
96185
96186         * lib/unicodeio.c (print_unicode_char): Avoid triggering Solaris iconv
96187         bug.  Deal with the different error behavior of Irix iconv.
96188
96189 2000-04-05  Paul Eggert  <eggert@twinsun.com>
96190
96191         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Don't use -n32 on
96192         IRIX if the installer said otherwise.
96193
96194 2000-04-05  Jim Meyering  <meyering@lucent.com>
96195
96196         Portability tweaks required for ultrix4.3.
96197         * m4/check-decl.m4 [!HAVE_UTMPX_H] (headers): Include <utmp.h>.
96198         (jm_CHECK_DECLS): Add getutent to the list of functions.
96199         (_jm_DECL_HEADERS): Add utmpx.h.
96200         From John David Anglin.
96201
96202         * m4/strftime.m4: Back out the 2000-04-02 change.
96203         Instead of that change, simply undefine putenv in the test program.
96204
96205 2000-04-05  Jim Meyering  <meyering@lucent.com>
96206
96207         Portability tweaks required for ultrix4.3.
96208         * lib/readutmp.h [HAVE_UTMPX_H && !HAVE_DECL_GETUTENT]: Declare
96209         getutent.
96210         * lib/readutmp.c: Include sys/types.h before sys/stat.h.
96211         * lib/canon-host.c: Declare strdup.
96212         * lib/path-concat.c: Likewise.
96213         From John David Anglin.
96214
96215 2000-04-04  Jim Meyering  <meyering@lucent.com>
96216
96217         Be more DOS 8.3-friendly.
96218         * lib/ref-add.sin: Renamed from ref-add.sed.in.
96219         * lib/ref-del.sin: Renamed from ref-del.sed.in.
96220         * lib/Makefile.am: Reflect renaming.
96221         Reported by Eli Zaretskii.
96222
96223         Use a temporary file name that won't clash with `charset.alias'
96224         in the DOS 8.3 name space.
96225         * lib/Makefile.am (charset_tmp): Define.
96226         (install-exec-local): Use $(charset_tmp) instead of $(charset_alias)-t.
96227         (uninstall-local): Likewise.
96228         Reported by Eli Zaretskii.
96229
96230 2000-04-03  Jim Meyering  <meyering@lucent.com>
96231
96232         * m4/gettext.m4: Fix typo in comment.
96233
96234         * m4/codeset.m4 (AC_CHECK_HEADERS): Add langinfo.h (moved here from
96235         textutils/configure.in).  Suggestion from Paul Eggert.
96236         (AC_CHECK_FUNCS): Add nl_langinfo.  (also from textutils/configure.in)
96237
96238 2000-04-02  Paul Eggert  <eggert@twinsun.com>
96239
96240         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Set TZ environment
96241         variable in the shell rather than using putenv, which isn't
96242         portable.  This avoids the configure-time inter-test dependency
96243         on the potentially-renamed putenv function.
96244
96245 2000-03-30  Paul Eggert  <eggert@twinsun.com>
96246
96247         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Include <sys/stat.h>
96248         before checking struct stat.st_blksize, so that
96249         HAVE_STRUCT_STAT_ST_BLKSIZE is defined correctly.
96250
96251 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96252
96253         * m4/strftime.m4 (_jm_STRFTIME_PREREQS): Check for strftime,
96254         since strftime.c uses HAVE_STRFTIME to decide whether to use
96255         the underlying strftime.
96256
96257 2000-03-29  Paul Eggert  <eggert@twinsun.com>
96258
96259         * lib/time/strftime.c (my_strftime): Make sure we call the system
96260         strftime, not ourselves, when invoking the underlying strftime.
96261
96262 2000-03-24  Jim Meyering  <meyering@lucent.com>
96263
96264         * lib/Makefile.am (EXTRA_DIST): Add ref-add.sed.in and ref-del.sed.in.
96265         (charset_alias): Define.
96266         (install-exec-local): Factor out common code.
96267         (uninstall-local): Split lines longer than 80.
96268         (ref-add.sed, ref-del.sed): Remove rules... (do the following instead)
96269         (SUFFIXES): Define.
96270         (.sed.in.sed): New rule.  Don't redirect directly to $@.
96271         (CLEANFILES): Add ref-add.sed and ref-del.sed.
96272
96273 2000-03-19  Bruno Haible  <haible@clisp.cons.org>
96274
96275         * lib/config.charset: Output a line containing "Packages using this
96276         file".
96277         * lib/ref-add.sed.in, lib/ref-del.sed.in: New files.
96278         * lib/Makefile.am (install-exec-local, uninstall-local, ref-add.sed,
96279         ref-del.sed): New rules.
96280
96281 2000-03-17  Jim Meyering  <meyering@lucent.com>
96282
96283         * lib/unicodeio.c (<string.h>): Include only #if HAVE_STRING_H.
96284         Otherwise, include <strings.h>
96285
96286 2000-03-17  Bruno Haible  <haible@clisp.cons.org>
96287
96288         * lib/unicodeio.c (utf8_wctomb): New function.
96289         (print_unicode_char): Pass the Unicode character to iconv in UTF-8
96290         format instead of in UCS-4 with platform dependent endianness.
96291
96292 2000-03-10  Jim Meyering  <meyering@lucent.com>
96293
96294         * m4/lib-check.m4: Look for getspnam in -lgen, too.
96295         From Marco Franzen.
96296
96297 2000-03-07  Paul Eggert  <eggert@twinsun.com>
96298
96299         * lib/savedir.c (savedir): Work even if directory size is
96300         negative; this can happen with some screwy NFS configurations.
96301
96302 2000-03-06  Jim Meyering  <meyering@lucent.com>
96303
96304         * lib/localcharset.c (get_charset_aliases): Don't try to free file_name
96305         if it's NULL (because we ran out of memory).  From Bruno Haible.
96306
96307 2000-03-05  Jim Meyering  <meyering@lucent.com>
96308
96309         * lib/localcharset.c ("path-concat.h"): Include.
96310         (get_charset_aliases): Use path_concat instead of ANSI string
96311         concatenation.
96312
96313         * lib/unicodeio.h (PARAMS): Define.
96314         Use it to guard prototype.
96315
96316 2000-03-04  Jim Meyering  <meyering@lucent.com>
96317
96318         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require AC_C_VOLATILE,
96319         for lib/localcharset.c.
96320
96321 2000-03-04  Jim Meyering  <meyering@lucent.com>
96322
96323         * lib/Makefile.am (install-exec-local): Create $(libdir) before
96324         installing into it.
96325         (uninstall-local): Uncomment this rule so `make distcheck' works
96326         once again.
96327
96328         * lib/unicodeio.c (<errno.h>): Include it.
96329         (errno): Declare if not defined.
96330
96331         * lib/localcharset.c: Add Bruno's comment justifying use of volatile.
96332
96333         * lib/config.charset: New version, incorporating remarks from a linux
96334         i18n mailing list.  From Bruno Haible.
96335
96336 2000-03-04  Bruno Haible  <haible@clisp.cons.org>
96337
96338         * m4/codeset.m4: New file.
96339         * m4/iconv.m4: New file.
96340         * m4/jm-macros.m4 (jm_MACROS): Call jm_LANGINFO_CODESET and jm_ICONV.
96341
96342 2000-03-03  Jim Meyering  <meyering@lucent.com>
96343
96344         * m4/regex.m4: Make sure re_compile_pattern accepts patterns like `{1'.
96345
96346 2000-03-02  Jim Meyering  <meyering@lucent.com>
96347
96348         * m4/timespec.m4: Require AC_HEADER_TIME before the cache check so
96349         the messages come out on separate lines.
96350
96351         * m4/jm-glibc-io.m4 (jm_FUNC_GLIBC_UNLOCKED_IO): Use AC_CHECK_DECLS,
96352         rather than jm_CHECK_DECLARATIONS.
96353         * m4/decl.m4: Remove now-unused file.
96354
96355         * m4/check-decl.m4 (AC_CHECK_DECLS): Add getlogin, ttyname, and
96356         geteuid.
96357
96358 2000-03-02  Jim Meyering  <meyering@lucent.com>
96359
96360         * lib/Makefile.am (EXTRA_DIST): Add config.charset.
96361
96362 2000-03-01  Jim Meyering  <meyering@lucent.com>
96363
96364         * lib/localcharset.c: Guard some #includes with `#if HAVE_...'.
96365         * lib/unicodeio.c: Likewise.
96366
96367 2000-03-01  Bruno Haible  <haible@clisp.cons.org>
96368
96369         * lib/config.charset: New file.
96370         * lib/localcharset.c: New file.
96371         * lib/unicodeio.h, lib/unicodeio.c: New files.
96372         * lib/Makefile.am (DEFS): Add -DLIBDIR=...
96373         (libfetish_a_SOURCES): Add localcharset.c and unicodeio.c.
96374         (noinst_HEADERS): Add unicodeio.h.
96375         (all-local, install-exec-local, charset.alias): New targets.
96376
96377 2000-02-28  Paul Eggert  <eggert@twinsun.com>
96378
96379         * lib/quotearg.c (ALERT_CHAR): New macro.
96380         (quotearg_buffer_restyled): Use it.
96381
96382 2000-02-27  Jim Meyering  <meyering@lucent.com>
96383
96384         * m4/check-decl.m4: Add getenv to the list.
96385
96386 2000-02-27  Jim Meyering  <meyering@lucent.com>
96387
96388         * lib/strtoumax.c: Fix typo in decl of strtoul: s/long long/long/.
96389         Guard declaration of strtoull also with `&& HAVE_UNSIGNED_LONG_LONG'.
96390
96391         * lib/backupfile.c: Guard inclusion of stdlib.h with
96392         `#if HAVE_STDLIB_H', not `#if STDC_HEADERS'.
96393         Declare malloc if needed.
96394
96395         * lib/backupfile.c: Use `#if !HAVE_DECL...' instead of
96396         `#ifndef HAVE_DECL..'
96397         now that autoconf always defines the HAVE_DECL_ symbols.
96398         * lib/human.c: Likewise.
96399         * lib/same.c: Likewise.
96400         * lib/strtoumax.c: Likewise.
96401
96402         * lib/backupfile.c: Arrange for cpp to fail if the configure-time
96403         declaration check was not run.
96404         * lib/hash.c: Likewise.
96405         * lib/human.c: Likewise.
96406         * lib/same.c: Likewise.
96407         * lib/strtoumax.c: Likewise.
96408
96409         * lib/userspec.c (parse_user_spec): If there is no `:' but there is a
96410         `.', then first look up the entire `.'-containing string as a login
96411         name.
96412
96413 2000-02-23  Jim Meyering  <meyering@lucent.com>
96414
96415         * m4/check-decl.m4: Now that we have the new AC_CHECK_DECLS, use it
96416         in place of my hack.
96417
96418 2000-02-18  Paul Eggert  <eggert@twinsun.com>
96419
96420         * lib/getdate.y: Handle two-digit years with leading zeros correctly.
96421         (textint): New typedef.
96422         (parser_control): Member year changed from int to textint.
96423         All uses changed.
96424         (YYSTYPE): Removed; replaced by %union with int and textint members.
96425         (tDAY, tDAY_UNIT, tDAYZONE, tHOUR_UNIT, tID, tLOCAL_ZONE, tMERIDIAN,
96426         tMINUTE_UNIT, tMONTH, tMONTH_UNIT tSEC_UNIT, tSNUMBER, tUNUMBER,
96427         tYEAR_UNIT, tZONE, o_merid): Now of type <intval>.
96428         (tSNUMBER, tUNUMBER): Now of type <textintval>.
96429         (date, number, to_year): Use width of number in digits, not its value,
96430         to determine whether it's a 2-digit year, or a 2-digit time.
96431         (yylex): Store number of digits of numeric tokens.
96432         Reported by John Kendall.
96433
96434         (parser_control): Changed from struct parser_control to typedef (for
96435         consistency).  All uses changed.
96436
96437         (tID): Removed; not used.
96438         (yylex): Return '?' for unknown identifiers, rather than (unused) tID.
96439
96440 2000-02-14  Paul Eggert  <eggert@twinsun.com>
96441
96442         * lib/getpagesize.h (getpagesize): Port to VMS for Alpha;
96443         adapted from changes to grep getpagesize.h by Martin P.J. Zinser.
96444
96445 2000-02-12  Jim Meyering  <meyering@lucent.com>
96446
96447         * lib/userspec.c (ISDIGIT): Define it.
96448         (isdigit): Remove definition.
96449         (is_number): Use ISDIGIT, not isdigit.
96450         <libintl.h>: Include.
96451         (_ and N_): Define.
96452         (parse_user_spec): Mark translatable strings.
96453
96454 2000-02-10  Jim Meyering  <meyering@lucent.com>
96455
96456         With these changes, nanosleep.[ch] are finally enough like the other
96457         lib/* replacement files to compile on a few more losing systems.
96458
96459         * lib/nanosleep.h: Don't include config.h.
96460         Remove prototype from declaration of nanosleep.
96461         (PARAMS): Remove now-unneeded definition.
96462         * lib/nanosleep.c: #undef nanosleep.
96463         (rpl_nanosleep): Rename from nanosleep.
96464
96465 2000-02-10  Jim Meyering  <meyering@lucent.com>
96466
96467         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Rename replacement function from
96468         gnu_nanosleep to rpl_nanosleep.
96469
96470 2000-02-09  Jim Meyering  <meyering@lucent.com>
96471
96472         * m4/lib-check.m4 (jm_LIB_CHECK): Fix typo: check for sp_pwdp in
96473         struct spwd, rather than in struct passwd.  Reported by Gaël Quéri.
96474
96475 2000-02-08  Akim Demaille  <akim@epita.fr>
96476
96477         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Quote square brackets with
96478         `[' and `]' and remove uses of `changequote'.
96479         (AC_SYS_LARGEFILE_MACRO_VALUE): Likewise.
96480         (AC_SYS_LARGEFILE): Likewise.
96481         * m4/gettext.m4 (AM_GNU_GETTEXT): Likewise.
96482         * m4/strftime.m4 (jm_FUNC_GNU_STRFTIME): Remove now-unnecessary use
96483         of changequote.
96484         * m4/regex.m4 (jm_INCLUDED_REGEX): Likewise.
96485         * m4/readdir.m4 (jm_FUNC_READDIR): Likewise
96486         * m4/memcmp.m4 (jm_AC_FUNC_MEMCMP): Likewise, and add `int' for main.
96487         * m4/getloadavg.m4 (AM_FUNC_GETLOADAVG): Likewise.
96488
96489 2000-02-05  Jim Meyering  <meyering@lucent.com>
96490
96491         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require most macros.
96492         Remove explicit use of AC_HEADER_TIME.  It is required by
96493         jm_CHECK_TYPE_STRUCT_TIMESPEC.  Using AC_HEADER_TIME and
96494         `AC_REQUIRE'ing jm_CHECK_TYPE_STRUCT_TIMESPEC provoked a but
96495         in autoconf whereby the expansion of the latter ended up preceding
96496         the expansion of its prerequisite, AC_HEADER_TIME.
96497         Reported by Volker Borchert.
96498
96499 2000-02-03  Jim Meyering  <meyering@lucent.com>
96500
96501         * m4/prereq.m4 (jm_PREREQ_READUTMP): Check for utmpxname.
96502
96503 2000-02-03  Jim Meyering  <meyering@lucent.com>
96504
96505         * lib/readutmp.c (read_utmp): Guard with `#ifdef UTMP_NAME_FUNCTION',
96506         rather than with `#if HAVE_UTMPNAME'.
96507
96508 2000-02-02  Jim Meyering  <meyering@lucent.com>
96509
96510         * m4/prereq.m4 (jm_PREREQ_ADDEXT): Fix typo that resulted in no
96511         definition of HAVE_PATHCONF: s/AC_CHECK_FUNC/AC_CHECK_FUNCS/.
96512         Reported by Eli Zaretskii.
96513
96514 2000-02-01  Jim Meyering  <meyering@lucent.com>
96515
96516         * lib/readutmp.h (UT_USER): Add parens.  From Andreas Schwab.
96517
96518 2000-01-31  Jim Meyering  <meyering@lucent.com>
96519
96520         * m4/check-decl.m4 (jm_CHECK_DECLS): Add nanosleep to the list of
96521         functions.  Add the time.h and sys/time.h headers along with the
96522         AC_REQUIRE'ment of AC_HEADER_TIME.
96523
96524 2000-01-31  Jim Meyering  <meyering@lucent.com>
96525
96526         * lib/nanosleep.h (nanosleep): Guard declaration with
96527         `#if ! HAVE_DECL_NANOSLEEP'.
96528         Without this, OFS gets a redeclaration error for rpl_nanosleep, due to
96529         the declaration in that vendor's sys/timers.h.
96530         Reported by Christian Krackowizer.
96531
96532         * lib/quotearg.c (ISASCII): Add #undef and move definition to follow
96533         inclusion of wctype.h to work around Solaris 2.6 namespace pollution.
96534         (ISPRINT): Likewise.
96535         Reported by Tom Tromey.
96536
96537 2000-01-30  Jim Meyering  <meyering@lucent.com>
96538
96539         * m4/lib-check.m4: Clean up some kludgy old shadow password tests.
96540
96541         * m4/prereq.m4 (utmp_includes): Define.
96542         Check for ut_user and ut_name members in both struct utmpx
96543         and struct utmp.
96544
96545 2000-01-30  Jim Meyering  <meyering@lucent.com>
96546
96547         * lib/readutmp.c (extract_trimmed_name): Use UT_USER instead of
96548         hard-coding uses of ->ut_name.  The latter doesn't work with new Linux
96549         header files where only utmpx.ut_user is declared.
96550
96551         * lib/readutmp.h (UT_USER): Define.
96552
96553 2000-01-29  Jim Meyering  <meyering@lucent.com>
96554
96555         * m4/lib-check.m4: New file containing library-related checks from
96556         fileutils and sh-utils (textutils had none).
96557
96558 2000-01-28  Jim Meyering  <meyering@lucent.com>
96559
96560         * m4/perl.m4: Change format of warning message to look more like that
96561         from the missing script.  Suggestion from François Pinard.
96562
96563 2000-01-25  Jim Meyering  <meyering@lucent.com>
96564
96565         * m4/timespec.m4: Require AC_HEADER_TIME, and include sys/time.h as
96566         well as time.h in the compile check.
96567         * m4/nanosleep.m4: Require AC_HEADER_TIME rather than simply using it.
96568         Fix typo in cross-compiling case: s/yes/no/.
96569
96570 2000-01-23  Jim Meyering  <meyering@lucent.com>
96571
96572         * m4/jm-macros.m4: Move df-related tests here from
96573         fileutils/configure.in
96574
96575         * m4/ls-mntd-fs.m4: s/list_mounted_fs/ac_list_mounted_fs/
96576         (jm_LIST_MOUNTED_FILESYSTEMS): Take two parameters.
96577
96578         * m4/fsusage.m4: New file.  Extracted from fileutils/configure.in.
96579         s/space/ac_fsusage_space/.
96580         (jm_FILE_SYSTEM_USAGE): Take two parameters.
96581
96582         * m4/ftruncate.m4: New file (derived from part of
96583         fileutils/configure.in).
96584         * m4/jm-macros.m4 (jm_FUNC_FTRUNCATE): AC_REQUIRE it.
96585         (jm_CHECK_ALL_TYPES): Require AC_HEADER_MAJOR and AC_HEADER_DIRENT.
96586
96587         * m4/jm-macros.m4 (OPTIONAL_BIN_PROGS, OPTIONAL_BIN_ZCRIPTS, MAN):
96588         AC_SUBST these here, rather than just in sh-util/configure.in, so
96589         that the now-shared-by-fileutils-and-textutils lib/Makefile.am are
96590         all the same.
96591         (AM_FUNC_OBSTACK): Add (from fileutils/configure.in).
96592         (AC_CHECK_FUNCS): Merge all checks from fileutils, textutils, sh-utils.
96593         (AM_FUNC_STRTOD): Added (from textutils', sh-utils' configure.in).
96594         (AC_SUBST(POW_LIBM)): Likewise.
96595         (AC_SUBST(DF_PROG)): Moved from fileutils/configure.in.
96596
96597 2000-01-23  Jim Meyering  <meyering@lucent.com>
96598
96599         * lib/Makefile.am (libfetish_a_SOURCES): Remove explicit mention of
96600         obstack.c.
96601
96602 2000-01-22  Jim Meyering  <meyering@lucent.com>
96603
96604         * m4/jm-macros.m4: Call AC_PROG_CC_STDC just before AC_C_CONST.
96605
96606         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): Add wctype.h.
96607
96608         * m4/jm-macros.m4 (AC_CHECK_HEADERS): Add checks from fileutils'
96609         configure.in
96610         (AC_CHECK_HEADERS): Likewise for sh-utils.
96611         (AC_CHECK_HEADERS): Likewise for textutils.
96612         Merge the three lists of headers.
96613
96614         * m4/prereq.m4 (jm_PREREQ_ADDEXT): New macro.  Parts moved here
96615         from fileutils' configure.in.
96616
96617         * m4/decl.m4: Remove kludgy `test -z $ac_...AC_CHECK_HEADERS(...)'
96618         code. Moved tests into their own function (_jm_DECL_HEADERS) in
96619         check-decl.m4.
96620
96621         * m4/check-decl.m4: Use #if rather than #ifdef.
96622         Add HAVE_DECL_STRTOUL and HAVE_DECL_STRTOULL.
96623         (jm_CHECK_DECLARATIONS): Add strtoul strtoull.
96624         (_jm_DECL_HEADERS): Define new function.
96625         (jm_CHECK_DECLARATIONS): Require it.
96626
96627 2000-01-22  Jim Meyering  <meyering@lucent.com>
96628
96629         * lib/strtoumax.c: [! HAVE_DECL_STRTOUL]: Declare strtoul.
96630         [! HAVE_DECL_STRTOULL]: Declare strtoull.
96631         Required for some AIX systems.  Reported by Christian Krackowizer.
96632         [TESTING] (main): New function.
96633
96634         1997-10-17  Eli Zaretskii  <eliz@is.elta.co.il>
96635         * lib/dirname.c (dir_name): Support for DOS-style file names with drive
96636         letters.
96637
96638         * lib/quotearg.c [HAVE_WCTYPE_H]: Include <wctype.h> for decl of
96639         iswprint.
96640
96641         * lib/strverscmp.c (ISDIGIT): Define.
96642         (strverscmp): Use ISDIGIT, not isdigit.
96643
96644 2000-01-19  Jim Meyering  <meyering@lucent.com>
96645
96646         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Include <sys/time.h>, too.
96647         Use AC_HEADER_TIME.  Volker Borchert reported that OpenBSD-2.3/sparc
96648         defines `struct timespec' in <sys/time.h>
96649
96650         * m4/c-bs-a.m4: Remove uses of changequote altogether.
96651         Thanks to Akim for explaining.
96652
96653 2000-01-17  Paul Eggert  <eggert@twinsun.com>
96654
96655         * lib/nanosleep.c (nanosleep):
96656         Don't use SA_INTERRUPT to decide whether to call sigaction, as
96657         POSIX.1 doesn't require SA_INTERRUPT and some systems
96658         (e.g. Solaris 7) don't define it.  Use SA_NOCLDSTOP instead;
96659         it's been part of POSIX.1 since day 1 (in 1988).
96660
96661 2000-01-17  Jim Meyering  <meyering@lucent.com>
96662
96663         * lib/interlock: Remove unused file.  Reported by François Pinard.
96664
96665 2000-01-16  Paul Eggert  <eggert@twinsun.com>
96666
96667         * lib/quotearg.c (quotearg_buffer_restyled): Do not quote
96668         alert, backslash, formfeed, and vertical tab unnecessarily in
96669         shell quoting style.
96670
96671 2000-01-16  Jim Meyering  <meyering@lucent.com>
96672
96673         * m4/jm-macros.m4: Require jm_FUNC_GROUP_MEMBER, jm_FUNC_PUTENV,
96674         AM_FUNC_ERROR_AT_LINE, jm_FUNC_GNU_STRFTIME, jm_FUNC_MKTIME,
96675         jm_FUNC_GETGROUPS AC_FUNC_VPRINTF, AC_FUNC_ALLOCA,
96676         AM_FUNC_GETLOADAVG, and jm_SYS_PROC_UPTIME.
96677
96678 2000-01-16  Jim Meyering  <meyering@lucent.com>
96679
96680         * m4/c-bs-a.m4: Use `changequote(<<,>>)', rather than `changequote(, )'
96681         because the latter didn't work.
96682
96683 2000-01-15  Jim Meyering  <meyering@lucent.com>
96684
96685         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add gethostname and getusershell.
96686         (AC_REPLACE_FUNCS): Add memcpy and memset.
96687         Add these, too: stime strcspn stpcpy strstr strtol strtoul.
96688         Add strpbrk.
96689         Add these: euidaccess memcmp mkdir rmdir rpmatch strndup strverscmp.
96690
96691 2000-01-12  Jim Meyering  <meyering@lucent.com>
96692
96693         * m4/prereq.m4 (jm_PREREQ_CANON_HOST): New macro.
96694         (jm_PREREQ): Use it.
96695         (jm_PREREQ_READUTMP): New macro.
96696         (jm_PREREQ): Use it.
96697
96698 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96699
96700         Quote multibyte characters correctly.
96701         * m4/c-bs-a.m4: New file.
96702         * m4/prereq.m4 (jm_PREREQ_QUOTEARG): New macro.
96703         (jm_PREREQ): Use it.
96704
96705 2000-01-11  Paul Eggert  <eggert@twinsun.com>
96706
96707         * m4/uintmax_t.m4: Port to autoconf 2.13.
96708
96709 2000-01-08  Jim Meyering  <meyering@ascend.com>
96710
96711         * m4/strerror_r.m4 (jm_FUNC_STRERROR_R): New file/macro.
96712         * m4/jm-macros.m4 (jm_FUNC_STRERROR_R): Require it.
96713
96714 2000-01-04  Jim Meyering  <meyering@ascend.com>
96715
96716         * m4/d-type.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_TYPE): Rename from
96717         jm_STRUCT_DIRENT_D_TYPE.
96718         * m4/d-ino.m4 (jm_CHECK_TYPE_STRUCT_DIRENT_D_INO): Rename from
96719         jm_STRUCT_DIRENT_D_INO.
96720         * m4/utimbuf.m4 (jm_CHECK_TYPE_STRUCT_UTIMBUF): Rename from
96721         jm_STRUCT_UTIMBUF.
96722         * m4/jm-macros.m4: Reflect s/jm_STRUCT_/jm_CHECK_TYPE_STRUCT_/
96723         renamings.
96724         * m4/utime.m4: Likewise.
96725
96726         * m4/timespec.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): New file, macro.
96727         * m4/jm-macros.m4 (jm_CHECK_TYPE_STRUCT_TIMESPEC): Require it.
96728
96729 2000-01-03  Paul Eggert  <eggert@twinsun.com>
96730
96731         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): Search for nanosleep in -lrt
96732         (for Solaris 7) and in -lposix4 (for Solaris 2.5.1).
96733
96734 2000-01-02  Jim Meyering  <meyering@ascend.com>
96735
96736         * m4/search-libs.m4: Escape `$' in $3 of dnl comment.  I no longer
96737         remember if this is necessary.
96738
96739 1999-12-26  Jim Meyering  <meyering@ascend.com>
96740
96741         * m4/jm-macros.m4: Use it here.
96742         * m4/nanosleep.m4 (jm_FUNC_NANOSLEEP): New file/macro.
96743
96744 1999-12-23  Jim Meyering  <meyering@ascend.com>
96745
96746         * m4/jm-macros.m4: Check for clock_gettime (moved from
96747         fileutils/configure.in)
96748         Check for gettimeofday.
96749
96750 1999-12-20  Jim Meyering  <meyering@ascend.com>
96751
96752         * m4/strftime.m4: Remove kludge, now that I'm using the fixed
96753         autoconf-2.14a-1999-12-20.
96754
96755 1999-12-19  Jim Meyering  <meyering@ascend.com>
96756
96757         * m4/lstat-slash.m4: New file.
96758         * m4/jm-macros.m4: Use the new macro:
96759         jm_FUNC_LSTAT_FOLLOWS_SLASHED_SYMLINK.
96760
96761 1999-12-07  Jim Meyering  <meyering@ascend.com>
96762
96763         * m4/perl.m4: Require that File::Compare be available, too.
96764         Too many systems seem to lack it.
96765
96766         * m4/strftime.m4: Add checks for most of the cpp macros tested in
96767         GNU's strftime.c.  Prompted by a patch from Paul Eggert.
96768
96769 1999-11-18  Paul Eggert  <eggert@twinsun.com>
96770
96771         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around a
96772         problem with the QNX 4.25 shell, which doesn't propagate exit
96773         status of failed commands inside shell assignments.
96774
96775 1999-11-17  Jim Meyering  <meyering@ascend.com>
96776
96777         * m4/gettext.m4: Use new AC_CONFIG_LINKS in place of AC_LINK_FILES.
96778
96779 1999-11-07  Jim Meyering  <meyering@ascend.com>
96780
96781         * m4/getloadavg.m4: Add `, 1, [FIXME]' to each use of AC_DEFINE.
96782
96783 1999-11-06  Jim Meyering  <meyering@ascend.com>
96784
96785         * m4/link-follow.m4 (jm_AC_FUNC_LINK_FOLLOWS_SYMLINK): New file/macro.
96786         * m4/jm-macros.m4 (jm_MACROS): Use it here.
96787
96788 1999-11-05  Jim Meyering  <meyering@ascend.com>
96789
96790         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Move some tests from
96791         configure.in of textutils, fileutils, and sh-utils into this one
96792         (shared between those packages) file.
96793         Use `AC_CHECK_MEMBERS((struct stat.st_blksize))' instead of deprecated
96794         AC_STRUCT_ST_BLKSIZE.
96795
96796 1999-11-03  Jim Meyering  <meyering@ascend.com>
96797
96798         * m4/ssize_t.m4: Remove file.  No longer needed since the new version
96799         of AC_CHECK_TYPE checks includes unistd.h.
96800         * m4/jm-macros.m4: Use straight `AC_CHECK_TYPE(ssize_t, int)'.
96801         Suggestion from Akim Demaille.
96802
96803 1999-10-30  Jim Meyering  <meyering@ascend.com>
96804
96805         * m4/uintmax_t.m4: Require 2.14a.  Remove backslash before backtick in
96806         m4-quoted string.
96807         * m4/ls-mntd-fs.m4: Likewise.
96808         * m4/jm-macros.m4: Likewise.  Also, use AC_TYPE_SSIZE_T instead
96809         * m4/jm-winsz1.m4: Likewise.
96810
96811         * m4/const.m4: Remove file, since the fix made it into the experimental
96812         version of autoconf.
96813         * m4/mktime.m4: Likewise.
96814
96815         * m4/check-type.m4: Remove file, now that the latest version of
96816         AC_CHECK_TYPE takes a third arg to specify additional #includes.
96817
96818         * m4/ssize_t.m4: New file, requires experimental version of autoconf.
96819         * m4/jm-macros.m4: Use new AC_TYPE_SSIZE_T instead of my hacked
96820         AC_CHECK_TYPE.
96821
96822 1999-10-04  Jim Meyering  <meyering@ascend.com>
96823
96824         * m4/jm-macros.m4: Don't require autoconf-2.14.1.
96825
96826 1999-09-22  Paul Eggert  <eggert@twinsun.com>
96827
96828         * m4/largefile.m4 (AC_SYS_LARGEFILE_FLAGS): Work around GCC
96829         2.95.1 bug with HP-UX 10.20.
96830
96831 1999-09-17  Jim Meyering  <meyering@ascend.com>
96832
96833         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add strdup.
96834         Paul Nevai reported a link failure on a NeXT CUBE with NeXTSTEP 3.3
96835         due to missing strdup (against sh-utils-2.0).
96836
96837 1999-08-29  Jim Meyering  <meyering@ascend.com>
96838
96839         * m4/jm-macros.m4: Require jm_BISON.
96840         * m4/bison.m4: New file.
96841
96842 1999-08-17  Paul Eggert  <eggert@twinsun.com>
96843
96844         * m4/largefile.m4 (AC_SYS_LARGEFILE): Fix typo: missing comma
96845         in value for _FILE_OFFSET_BITS, which broke ports to HP-UX 10.20.
96846
96847 1999-08-05  Jim Meyering  <meyering@ascend.com>
96848
96849         * m4/getline.m4: Rename test file from conftestdata to conftest.data
96850         to avoid conflicts with `conftest' on 8+3 filesystems.
96851         Suggestion from Eli Zaretskii.
96852
96853 1999-08-04  Jim Meyering  <meyering@ascend.com>
96854
96855         * m4/jm-macros.m4: Move a 4-line block of code from the configure.in of
96856         fileutils and sh-utils (textutils's getline test was inadequate).
96857         (AM_FUNC_GETLINE): Run this test.
96858         (AC_CHECK_FUNCS): Check for getdelim.
96859         Reported by Bob Proulx.
96860
96861 1999-08-02  Jim Meyering  <meyering@ascend.com>
96862
96863         * m4/jm-macros.m4: Add a comment.
96864
96865 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96866
96867         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): Check whether
96868         <inttypes.h> defines strtoumax as a macro (and not as a
96869         function).
96870
96871 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96872
96873         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): Make sure
96874         that we can shift, multiply and divide unsigned long long
96875         values; Ultrix cc can't do it.
96876
96877 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96878
96879         * m4/mktime.m4: New file, which is a preview of what should appear
96880         in the next public autoconf release.
96881
96882 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96883
96884         * m4/lfs.m4: Remove this file.
96885         * m4/largefile.m4: New file.  It contains the old contents of
96886         lfs.m4, except that all names with prefix AC_LFS have been
96887         changed to use the prefix AC_SYS_LARGEFILE instead, to be
96888         compatible with future autoconf versions.  Also, some minor m4
96889         quoting problems have been fixed.
96890
96891 1999-08-01  Paul Eggert  <eggert@twinsun.com>
96892
96893         * m4/gettext.m4 (AM_WITH_NLS): Remove unnecessary lines.
96894         Fix typo: $nls_cv_header_intl was misspelled as $nsl_cv_header_intl.
96895         (AM_GNU_GETTEXT): Fix problem with brackets and m4 quoting,
96896         and simplify the shell code.
96897
96898 1999-08-01  Jim Meyering  <meyering@ascend.com>
96899
96900         * m4/mktime.m4 (AC_FUNC_MKTIME): Undefine to avoid syntax errors from
96901         m4.
96902
96903 1999-07-20  Jim Meyering  <meyering@ascend.com>
96904
96905         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memmove.
96906
96907 1999-07-15  Jim Meyering  <meyering@ascend.com>
96908
96909         * m4/jm-macros.m4 (AC_CHECK_FUNCS): Check for getpagesize.
96910
96911 1999-05-22  Jim Meyering  <meyering@ascend.com>
96912
96913         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add memchr.
96914
96915 1999-05-20  Jim Meyering  <meyering@ascend.com>
96916
96917         * m4/search-libs.m4 [AC_SEARCH_LIBS]: Quote name in undefine.
96918         Add a colon after each `then' in case $4 is empty.
96919
96920 1999-05-16  Jim Meyering  <meyering@ascend.com>
96921
96922         * m4/search-libs.m4: New file to override autoconf's AC_SEARCH_LIBS.
96923
96924 1999-05-10  Jim Meyering  <meyering@ascend.com>
96925
96926         * m4/jm-mktime.m4: Reflect renaming: AM_FUNC_MKTIME -> AC_FUNC_MKTIME.
96927
96928         * m4/jm-macros.m4: Require 2.14.1, since we use newly-renamed
96929         AC_FUNC_MKTIME.
96930
96931 1999-05-10  Andreas Schwab  <schwab@issan.cs.uni-dortmund.de>
96932
96933         * m4/jm-mktime.m4, putenv.m4: Fix typos in config.h comments.
96934
96935 1999-05-04  Paul Eggert  <eggert@twinsun.com>
96936
96937         * m4/lfs.m4 (AC_LFS): -n32, -o32, and -n64 should be in CFLAGS,
96938         not CPPFLAGS, so that linking works correctly in IRIX.
96939
96940 1999-04-30  Paul Eggert  <eggert@twinsun.com>
96941
96942         * m4/jm-macros.m4 (AC_REPLACE_FUNCS): Add dup2.
96943
96944 1999-04-20  Paul Eggert  <eggert@twinsun.com>
96945
96946         * m4/uintmax_t.m4 (jm_AC_TYPE_UINTMAX_T): Move unsigned long
96947         long check into new jm_AC_TYPE_UNSIGNED_LONG_LONG macro.
96948         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): Require
96949         jm_AC_TYPE_UNSIGNED_LONG_LONG.
96950         * m4/ulonglong.m4 (jm_AC_TYPE_UNSIGNED_LONG_LONG): New file/macro.
96951
96952         * m4/lfs.m4: Port to AIX and HP-UX.  Support cross-compilation.
96953
96954 1999-04-20  Jim Meyering  <meyering@ascend.com>
96955
96956         * m4/xstrtoumax.m4: Require jm_AC_TYPE_UNSIGNED_LONG_LONG.
96957         AC_REPLACE xstroull if necessary.  From Paul Eggert.
96958         (AC_CHECK_FUNCS): Remove strtoull, strtoumax, strtouq.
96959
96960 1999-04-18  Jim Meyering  <meyering@ascend.com>
96961
96962         * m4/xstrtoumax.m4 (jm_AC_PREREQ_XSTRTOUMAX): New file/macro.
96963         * m4/jm-macros.m4: Use it.
96964
96965 1999-04-06  Jim Meyering  <meyering@ascend.com>
96966
96967         * m4/strftime.m4: Remove test for %f.
96968
96969 1999-03-29  Jim Meyering  <meyering@ascend.com>
96970
96971         * m4/jm-macros.m4 (jm_CHECK_ALL_TYPES): New macro, contains the
96972         superset of the AC_TYPE_* checks in the textutils, fileutils,
96973         and sh-utils, plus AC_TYPE_PID_T.  Paul Eggert suggested adding
96974         AC_TYPE_PID_T.
96975
96976 1999-03-28  Jim Meyering  <meyering@ascend.com>
96977
96978         * m4/jm-macros.m4: Define GNU_PACKAGE here.
96979         Be sure to AC_SUBST it, once again, so that @GNU_PACKAGE@ is
96980         replaced e.g., in the *.sh files of the sh-utils.
96981
96982 1999-03-20  Jim Meyering  <meyering@ascend.com>
96983
96984         * m4/jm-macros.m4: s/jm_WITH_REGEX/jm_INCLUDED_REGEX/.
96985         * m4/regex.m4 (jm_INCLUDED_REGEX): Rename from jm_WITH_REGEX.
96986         Don't depend on AM_GLIBC.  Suggestions from Alain Magloire.
96987
96988 1999-03-19  Jim Meyering  <meyering@ascend.com>
96989
96990         * m4/jm-winsz1.m4 (jm_WINSIZE_IN_PTEM): New macro.
96991
96992 1999-03-12  Jim Meyering  <meyering@ascend.com>
96993
96994         * m4/jm-macros.m4: Use AC_FUNC_SETVBUF_REVERSED.
96995
96996 1999-03-07  Jim Meyering  <meyering@ascend.com>
96997
96998         * m4/jm-glibc-io.m4: Use only those *_unlocked macros that are
96999         declared.
97000
97001 1999-02-17  Jim Meyering  <meyering@ascend.com>
97002
97003         * m4/gettext.m4 (AM_GNU_GETTEXT): Do `changequote' around use of
97004         brackets in macro definition.  From Eli Zaretskii and Alain Magloire.
97005
97006 1999-02-07  Jim Meyering  <meyering@ascend.com>
97007
97008         * m4/group-member.m4: New file -- extracted from sh-utils'
97009         configure.in.
97010
97011         1999-02-05  Eli Zaretskii  <eliz@is.elta.co.il>
97012         * m4/gettext.m4: Support DOS-style d:/foo/bar absolute file names.
97013
97014 1999-02-06  Jim Meyering  <meyering@ascend.com>
97015
97016         * m4/chown.m4: Use `AC_SUBST(LIBOBJS)' since we set LIBOBJS.
97017         * m4/fnmatch.m4: Likewise.
97018         * m4/getgroups.m4: Likewise.
97019         * m4/lstat.m4: Likewise.
97020         * m4/malloc.m4: Likewise.
97021         * m4/putenv.m4: Likewise.
97022         * m4/realloc.m4: Likewise.
97023         * m4/regex.m4: Likewise.
97024         * m4/stat.m4: Likewise.
97025         * m4/strftime.m4: Likewise.
97026         Suggestion from Alain Magloire.
97027
97028         * m4/chown.m4: Use `.$ac_objext', not `.o'.
97029         * m4/fnmatch.m4: Likewise.
97030         * m4/getgroups.m4: Likewise.
97031         * m4/getline.m4: Likewise.
97032         * m4/lstat.m4: Likewise.
97033         * m4/malloc.m4: Likewise.
97034         * m4/memcmp.m4: Likewise.
97035         * m4/putenv.m4: Likewise.
97036         * m4/realloc.m4: Likewise.
97037         * m4/regex.m4: Likewise.
97038         * m4/stat.m4: Likewise.
97039         * m4/strftime.m4: Likewise.
97040         Suggestion from Alain Magloire.
97041
97042         * m4/jm-macros.m4: Actually invoke jm_WITH_REGEX now that it requires
97043         an argument.
97044
97045         * m4/regex.m4: Add a run-time Test for proper operation of
97046         re_compile_pattern.
97047
97048 1999-01-31  Jim Meyering  <meyering@ascend.com>
97049
97050         * m4/getloadavg.m4: Check for locale.h and the function, setlocale.
97051
97052 1999-01-30  Jim Meyering  <meyering@ascend.com>
97053
97054         * m4/check-type.m4: Use 3-arg form of AC_DEFINE.
97055
97056         * m4/jm-mktime.m4: Make this a wrapper around the official
97057         AM_FUNC_MKTIME rather than my private copy, now that the official one
97058         is up to date.
97059         * m4/mktime.m4: Remove file.
97060
97061         * m4/getloadavg.m4: Use 3-arg form of AC_DEFINE.
97062         * m4/uptime.m4: Likewise.
97063         * m4/uintmax_t.m4: Likewise.
97064
97065 1999-01-28  Jim Meyering  <meyering@ascend.com>
97066
97067         * m4/jm-macros.m4: Use jm_AFS.
97068         * m4/afs.m4: New file (from fileutils' configure.in).
97069
97070         * m4/assert.m4: Use the 3-argument forms of AC_DEFINE* macros.
97071         * m4/chown.m4: Likewise.
97072         * m4/d-ino.m4: Likewise.
97073         * m4/d-type.m4: Likewise.
97074         * m4/fnmatch.m4: Likewise.
97075         * m4/getgroups.m4: Likewise.
97076         * m4/gettext.m4: Likewise.
97077         * m4/jm-mktime.m4: Likewise.
97078         * m4/jm-winsz2.m4: Likewise.
97079         * m4/lcmessage.m4: Likewise.
97080         * m4/ls-mntd-fs.m4: Likewise.
97081         * m4/malloc.m4: Likewise.
97082         * m4/memcmp.m4: Likewise.
97083         * m4/putenv.m4: Likewise.
97084         * m4/realloc.m4: Likewise.
97085         * m4/st_mtim.m4: Likewise.
97086         * m4/strftime.m4: Likewise.
97087
97088 1999-01-16  Jim Meyering  <meyering@ascend.com>
97089
97090         * m4/jm-macros.m4 (ARGMATCH_DIE): Define.
97091         (ARGMATCH_DIE_DECL): Define.
97092
97093 1999-01-12  Jim Meyering  <meyering@ascend.com>
97094
97095         * m4/Makefile.am.in: Rewrite to avoid using fmt.
97096         Reported by Lars Hecking.
97097
97098 1999-01-10  Jim Meyering  <meyering@ascend.com>
97099
97100         * m4/fstypename.m4: Use the new 3-arg form of AC_DEFINE instead of my
97101         gross kludge.
97102         * m4/inttypes_h.m4: Likewise.
97103         * m4/lstat.m4: Likewise.
97104         * m4/malloc.m4: Likewise.
97105         * m4/readdir.m4: Likewise.
97106         * m4/realloc.m4: Likewise.
97107         * m4/st_dm_mode.m4: Likewise.
97108         * m4/stat.m4: Likewise.
97109         * m4/utimbuf.m4: Likewise.
97110         * m4/utimes.m4: Likewise.
97111
97112         * m4/check-decl.m4: Use the new 3-arg form of AC_DEFINE instead of the
97113         AC_CHECK_FUNCS hack.  Now, it's still a hack, but at least the
97114         comments in config.h.in are meaningful.
97115
97116         * m4/jm-macros.m4: Require autoconf-2.13 here.
97117
97118         * m4/regex.m4: By default, don't use the included regex.c on systems
97119         with glibc 2.  Suggestion from Uli Drepper.
97120
97121 1999-01-02  Jim Meyering  <meyering@ascend.com>
97122
97123         * m4/jm-macros.m4: Replace strcasecmp and strncasecmp.
97124
97125 1998-12-18  Jim Meyering  <meyering@ascend.com>
97126
97127         * m4/Makefile.am.in (Makefile.am): Simplify rule.
97128         Based on a suggestion from Lars Hecking.
97129
97130 1998-11-16  Paul Eggert  <eggert@twinsun.com>
97131
97132         * m4/lfs.m4 (AC_LFS): Add support for HP-UX 10.20 and HP-UX 11.
97133
97134 1998-11-16  Jim Meyering  <meyering@ascend.com>
97135
97136         * m4/lfs.m4: Double-quote the `uname...` expression.
97137
97138 1998-11-14  Jim Meyering  <meyering@ascend.com>
97139
97140         * m4/lstat.m4: Correct comment.  POSIX does not permit it to succeed.
97141         * m4/stat.m4: Likewise.
97142
97143 1998-11-03  Jim Meyering  <meyering@ascend.com>
97144
97145         * m4/stat.m4: Rewrite to set HAVE_STAT_EMPTY_STRING_BUG.
97146         * m4/lstat.m4: Rewrite to set HAVE_LSTAT_EMPTY_STRING_BUG.
97147
97148 1998-10-18  Jim Meyering  <meyering@ascend.com>
97149
97150         * m4/check-decl.m4 (jm_CHECK_DECL_LOCALTIME_R): Remove macro.
97151
97152 1998-10-17  Jim Meyering  <meyering@ascend.com>
97153
97154         * m4/decl.m4 (jm_CHECK_DECLARATION): Don't hard-code which headers to
97155         include, though we still hard-code the `require'-like AC_CHECK_HEADERS
97156         calls for those previously hard-coded headers.  Instead, take a new
97157         parameter.
97158         (jm_CHECK_DECLARATIONS): Reflect interface change.
97159         * m4/check-decl.m4 (jm_CHECK_DECLS): Likewise.
97160         (jm_CHECK_DECL_LOCALTIME_R): New macro.
97161
97162         * m4/mktime.m4: Test for spring-forward gap before long-running test.
97163
97164 1998-10-14  Jim Meyering  <meyering@ascend.com>
97165
97166         * m4/mktime.m4: Use the more portable "TZ=PST8PDT,M4.1.0,M10.5.0"
97167         instead of "TZ=America/Vancouver".  From Paul Eggert.
97168
97169 1998-10-11  Jim Meyering  <meyering@ascend.com>
97170
97171         * m4/mktime.m4 (jm_AM_FUNC_MKTIME): New file and macro.
97172         This adds a test for a recently added compatibility fix for mktime.c.
97173         * m4/jm-mktime.m4: Require jm_AM_FUNC_MKTIME, not AM_FUNC_MKTIME.
97174
97175 1998-09-27  Jim Meyering  <meyering@ascend.com>
97176
97177         * m4/jm-macros.m4 (jm_MACROS): Require jm_FUNC_FNMATCH.
97178
97179         * m4/fnmatch.m4 (jm_FUNC_FNMATCH): New file/macro.  Extracted from
97180         ../configure.in, including a change from Gordon Matzigkeit to allow
97181         cross-compiling for the Hurd.
97182
97183         * m4/glibc.m4: New file/macro to test for the GNU C Library
97184         versions 1 and 2.  From Gordon Matzigkeit.
97185         Indent.
97186
97187 1998-09-21  Jim Meyering  <meyering@ascend.com>
97188
97189         * m4/chown.m4: Declare locals: before, after.  From Andries Brouwer.
97190
97191 1998-08-18  Paul Eggert  <eggert@twinsun.com>
97192
97193         Port nanosecond-resolution times to UnixWare 2.1.2 and
97194         pedantic Solaris 2.6.
97195
97196         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC): Renamed from
97197         AC_STRUCT_ST_MTIM.
97198         * m4/st_mtim.m4 (AC_STRUCT_ST_MTIM_NSEC):
97199         Generate name of ns member, instead of just 1 or undef.
97200         Allow for UnixWare 2.1.2 and Solaris 2.6 if in pedantic mode.
97201
97202 1998-08-15  Jim Meyering  <meyering@ascend.com>
97203
97204         * m4/ssize_t.m4 (jm_TYPE_SSIZE_T): Remove file.
97205         * m4/check-type.m4: New file.  Replacement for AC_CHECK_TYPE.
97206         * m4/jm-macros.m4: Use the new AC_CHECK_TYPE(ssize_t, int)
97207         instead of jm_TYPE_SSIZE_T.
97208
97209 1998-08-12  Jim Meyering  <meyering@ascend.com>
97210
97211         * m4/st_dm_mode.m4: New file.  From Johan Danielsson.
97212
97213 1998-08-02  Jim Meyering  <meyering@ascend.com>
97214
97215         * m4/st_mtim.m4: Use hack to avoid having to put #undef HAVE_ST_MTIM
97216         in acconfig.h manually.
97217
97218 1998-07-31  Paul Eggert  <eggert@twinsun.com>
97219
97220         * m4/st_mtim.m4: New file.
97221
97222 1998-07-28  Jim Meyering  <meyering@ascend.com>
97223
97224         * m4/utimes.m4: Undef stat.
97225
97226 1998-07-25  Jim Meyering  <meyering@ascend.com>
97227
97228         * m4/utime.m4 (jm_FUNC_UTIME): New file and macro.
97229         * m4/utimes.m4 (jm_FUNC_UTIMES_NULL): New file and macro.
97230
97231 1998-07-09  Manfred Hollstein  <manfred@s-direktnet.de>
97232
97233         * m4/chown.m4 (jm_FUNC_CHOWN): Add a check to verify that the
97234         uid and gid actually remain unchanged.
97235
97236 1998-07-07  Jim Meyering  <meyering@ascend.com>
97237
97238         * m4/jm-glibc-io.m4: Remove fclose_unlocked.
97239
97240 1998-07-04  Jim Meyering  <meyering@ascend.com>
97241
97242         * m4/regex.m4: Use syscmd, ifelse, and sysval.  Mainly as an exercise
97243         to prove that this macro can be used in packages without regex.c.
97244
97245 1998-07-04  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>
97246
97247         * m4/gettext.m4 (AM_WITH_NLS): Remove intl/libintl.h if <libintl.h>
97248         is to be used.
97249
97250 1998-07-03  Jim Meyering  <meyering@ascend.com>
97251
97252         * m4/gettext.m4: Add -lintl if it's found to be necessary.
97253
97254         * m4/gettext.m4: New file -- from gettext-0.10.35.
97255         * m4/lcmessage.m4: Likewise.
97256         * m4/progtest.m4: Likewise.
97257
97258         * m4/regex.m4 (jm_WITH_REGEX): New file and macro.
97259         * m4/jm-macros.m4: Require the new macro.
97260
97261 1998-06-29  Jim Meyering  <meyering@ascend.com>
97262
97263         * m4/fstypename.m4: Include sys/param.h.  NetBSD 1.3.1 requires this
97264         for the definition of NGROUPS (used in a system header included
97265         by sys/mount.h).
97266
97267 1998-06-28  Jim Meyering  <meyering@ascend.com>
97268
97269         * m4/ls-mntd-fs.m4: New file.
97270         * m4/fstypename.m4: New file.
97271
97272         * m4/jm-macros.m4: Require the new macro.
97273         * m4/jm-glibc-io.m4: New file.
97274
97275 1998-05-19  Jim Meyering  <meyering@ascend.com>
97276
97277         * m4/jm-macros.m4: Add jm_FUNC_LCHOWN.
97278         * m4/lchown.m4: New file.
97279
97280         * m4/Makefile.am.in: New file.
97281         * m4/Makefile.am (Makefile.am): Depend on Makefile.am.in.
97282
97283 1998-05-14  Jim Meyering  <meyering@ascend.com>
97284
97285         * m4/Makefile.am (EXTRA_DIST): Add them.
97286         * m4/jm-macros.m4: New file.
97287         * m4/utimbuf.m4: New file.
97288
97289 1998-05-12  Jim Meyering  <meyering@ascend.com>
97290
97291         * m4/Makefile.am (EXTRA_DIST): Add isc-posix.m4.
97292
97293 1998-05-11  Jim Meyering  <meyering@ascend.com>
97294
97295         * m4/isc-posix.m4: New file.
97296
97297 1998-05-10  Jim Meyering  <meyering@ascend.com>
97298
97299         * m4/jm-mktime.m4: Use AM_FUNC_MKTIME, now that it's up to date.
97300
97301 1998-05-09  Jim Meyering  <meyering@ascend.com>
97302
97303         * m4/Makefile.am (EXTRA_DIST): Add ssize_t.m4.
97304         (EXTRA_DIST): Remove mktime.m4, now that the new version is included
97305         with automake.
97306
97307         * m4/ssize_t.m4: New file.
97308         * m4/mktime.m4: Remove file -- the new automake has this now.
97309
97310 1998-04-26  Jim Meyering  <meyering@ascend.com>
97311
97312         * m4/assert.m4: New file.
97313         * m4/Makefile.am (EXTRA_DIST): Add assert.m4.
97314
97315 1998-04-05  Jim Meyering  <meyering@ascend.com>
97316
97317         * m4/prereq.m4 (jm_PREREQ_REGEX): New macro.
97318         (jm_PREREQ): Use it here.
97319
97320 1998-03-23  Jim Meyering  <meyering@eng.ascend.com>
97321
97322         * m4/inttypes_h.m4: Kludges so I don't have to add HAVE_INTTYPES_H
97323         in acconfig.h.
97324
97325 1998-03-15  Jim Meyering  <meyering@eng.ascend.com>
97326
97327         * m4/prereq.m4: New file.
97328         * m4/error.m4: New file.
97329         * m4/Makefile.am (EXTRA_DIST): Add error.m4 and prereq.m4.
97330
97331 1998-02-07  Jim Meyering  <meyering@eng.ascend.com>
97332
97333         * m4/getline.m4: Don't set am_cv_func_working_getline before the
97334         cache-check for the same variable -- that defeated the purpose of
97335         the test; the test program was never run.  This was a problem only
97336         on systems with losing getline functions -- HP-UX 10.20 is one.
97337         Reported by Bjorn Helgaas.
97338
97339 1998-02-06  Jim Meyering  <meyering@eng.ascend.com>
97340
97341         * m4/Makefile.am (EXTRA_DIST): Add perl.m4.
97342
97343 1998-01-10  Jim Meyering  <meyering@na-net.ornl.gov>
97344
97345         * m4/Makefile.am (EXTRA_DIST): Add const.m4.
97346
97347         * m4/const.m4: New file.  Use an initializer in this declaration
97348         typedef int charset[2]; const charset x;
97349         Reported by Bob Glickstein.
97350
97351 1997-12-21  Jim Meyering  <meyering@na-net.ornl.gov>
97352
97353         * m4/chown.m4: Fix reversed types on -1 args to chown.
97354         From Kaveh Ghazi.
97355
97356 1997-12-14  Jim Meyering  <meyering@na-net.ornl.gov>
97357
97358         * m4/check-decl.m4: s/DECLARATION_/DECL_/g.
97359         Add lseek and memchr.
97360
97361         * m4/decl.m4: s/HAVE_DECLARATION_/HAVE_DECL_/g.
97362         T.E.Dickey <dickey@clark.net> said that some older preprocessors
97363         have a 20-character limit on names.
97364
97365 1997-11-30  Jim Meyering  <meyering@na-net.ornl.gov>
97366
97367         * m4/inttypes_h.m4: New file.
97368         * m4/uintmax_t.m4: New file.
97369         * m4/Makefile.am (EXTRA_DIST): Add inttypes_h.m4 and uintmax_t.m4.
97370
97371
97372         -----
97373
97374         Local Variables:
97375         coding: utf-8
97376         End:
97377
97378         Copyright (C) 1997-2012 Free Software Foundation, Inc.
97379
97380         Copying and distribution of this file, with or without
97381         modification, are permitted provided the copyright notice
97382         and this notice are preserved.